floorf-ieee tests: More tests.
[gnulib.git] / ChangeLog
1 2012-02-26  Bruno Haible  <bruno@clisp.org>
2
3         floorf-ieee tests: More tests.
4         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5         (main): Add tests for [MX] shaded specification in POSIX.
6         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7         (Depends-on): Add isnanf-nolibm.
8
9 2012-02-26  Bruno Haible  <bruno@clisp.org>
10
11         fpieee: More comments.
12         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
13
14 2012-02-25  Bruno Haible  <bruno@clisp.org>
15
16         Tests for module 'log10l'.
17         * modules/log10l-tests: New file.
18         * tests/test-log10l.c: New file.
19         * tests/test-math-c++.cc: Check the declaration of log10l.
20
21         New module 'log10l'.
22         * lib/math.in.h (log10l): New declaration.
23         * lib/log10l.c: New file.
24         * m4/log10l.m4: New file.
25         * modules/log10l: New file.
26         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
27         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
28         HAVE_DECL_LOG10L.
29         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
30         HAVE_DECL_LOG10L.
31         * doc/posix-functions/log10l.texi: Mention the new module.
32
33 2012-02-25  Bruno Haible  <bruno@clisp.org>
34
35         fmodl, remainder*: Avoid wrong results due to rounding errors.
36         * lib/fmodl.c (fmodl): Correct the result if it is not within the
37         expected bounds.
38         * lib/remainderf.c (remainderf): Likewise.
39         * lib/remainder.c (remainder): Likewise.
40         * lib/remainderl.c (remainderl): Likewise.
41
42 2012-02-25  Bruno Haible  <bruno@clisp.org>
43
44         Tests for module 'remainderl'.
45         * modules/remainderl-tests: New file.
46         * tests/test-remainderl.c: New file.
47         * tests/test-math-c++.cc: Check the declaration of remainderl.
48
49         New module 'remainderl'.
50         * lib/math.in.h (remainderl): New declaration.
51         * lib/remainderl.c: New file.
52         * m4/remainderl.m4: New file.
53         * modules/remainderl: New file.
54         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
55         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
56         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
57         HAVE_REMAINDERL.
58         * doc/posix-functions/remainderl.texi: Mention the new module.
59
60 2012-02-25  Bruno Haible  <bruno@clisp.org>
61
62         Tests for module 'remainderf'.
63         * modules/remainderf-tests: New file.
64         * tests/test-remainderf.c: New file.
65         * tests/test-math-c++.cc: Check the declaration of remainderf.
66
67         New module 'remainderf'.
68         * lib/math.in.h (remainderf): New declaration.
69         * lib/remainderf.c: New file.
70         * m4/remainderf.m4: New file.
71         * modules/remainderf: New file.
72         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
73         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
74         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
75         HAVE_REMAINDERF.
76         * doc/posix-functions/remainderf.texi: Mention the new module.
77
78 2012-02-25  Bruno Haible  <bruno@clisp.org>
79
80         remainder: Support for MSVC.
81         * lib/math.in.h (remainder): New declaration.
82         * lib/remainder.c: New file.
83         * m4/remainder.m4: New file.
84         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
85         (Depends-on): Add math, round, fma.
86         (configure.ac): Use results of gl_FUNC_REMAINDER.
87         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
88         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
89         HAVE_DECL_REMAINDER.
90         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
91         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
92         * tests/test-math-c++.cc: Check the declaration of remainder.
93         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
94         problems are fixed.
95
96 2012-02-25  Bruno Haible  <bruno@clisp.org>
97
98         Tests for module 'fmodl'.
99         * modules/fmodl-tests: New file.
100         * tests/test-fmodl.c: New file.
101         * tests/test-math-c++.cc: Check the declaration of fmodl.
102
103         New module 'fmodl'.
104         * lib/math.in.h (fmodl): New declaration.
105         * lib/fmodl.c: New file.
106         * m4/fmodl.m4: New file.
107         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
108         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
109         REPLACE_FMODL.
110         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
111         REPLACE_FMODL.
112         * modules/fmodl: New file.
113         * doc/posix-functions/fmodl.texi: Mention the new module.
114
115 2012-02-25  Bruno Haible  <bruno@clisp.org>
116
117         Tests for module 'modfl'.
118         * modules/modfl-tests: New file.
119         * tests/test-modfl.c: New file.
120         * tests/test-math-c++.cc: Check the declaration of modfl.
121
122         New module 'modfl'.
123         * lib/math.in.h (modfl): New declaration.
124         * lib/modfl.c: New file.
125         * m4/modfl.m4: New file.
126         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
127         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
128         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
129         * modules/modfl: New file.
130         * doc/posix-functions/modfl.texi: Mention the new module.
131
132 2012-02-25  Bruno Haible  <bruno@clisp.org>
133
134         Tests for module 'fabsl'.
135         * modules/fabsl-tests: New file.
136         * tests/test-fabsl.c: New file.
137         * tests/test-math-c++.cc: Check the declaration of fabsl.
138
139         New module 'fabsl'.
140         * lib/math.in.h (fabsl): New declaration.
141         * lib/fabsl.c: New file.
142         * m4/fabsl.m4: New file.
143         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
144         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
145         REPLACE_FABSL.
146         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
147         REPLACE_FABSL.
148         * modules/fabsl: New file.
149         * doc/posix-functions/fabsl.texi: Mention the new module.
150
151 2012-02-25  Bruno Haible  <bruno@clisp.org>
152
153         fabs tests: More tests.
154         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
155         (zero): New variable.
156         (main): Add tests for signed zero.
157         * modules/fabs-tests (Files): Add tests/minus-zero.h.
158
159         fabsf tests: More tests.
160         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
161         (zero): New variable.
162         (main): Add tests for signed zero.
163         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
164
165 2012-02-24  Bruno Haible  <bruno@clisp.org>
166
167         atanl: Provide function definition on MSVC.
168         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
169         function pointer.
170         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
171
172 2012-02-24  Bruno Haible  <bruno@clisp.org>
173
174         acosl: Provide function definition on MSVC.
175         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
176         function pointer.
177         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
178
179 2012-02-24  Bruno Haible  <bruno@clisp.org>
180
181         asinl: Provide function definition on MSVC.
182         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
183         function pointer.
184         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
185
186 2012-02-24  Bruno Haible  <bruno@clisp.org>
187
188         tanl: Provide function definition on MSVC.
189         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
190         function pointer.
191         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
192
193 2012-02-24  Bruno Haible  <bruno@clisp.org>
194
195         cosl: Provide function definition on MSVC.
196         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
197         function pointer.
198         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
199
200 2012-02-24  Bruno Haible  <bruno@clisp.org>
201
202         sinl: Provide function definition on MSVC.
203         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
204         function pointer.
205         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
206
207 2012-02-24  Bruno Haible  <bruno@clisp.org>
208
209         logl: Provide function definition on MSVC.
210         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
211         function pointer.
212         * lib/math.in.h (logl): Undefine if it does not exist as a function.
213
214 2012-02-24  Bruno Haible  <bruno@clisp.org>
215
216         expl: Provide function definition on MSVC.
217         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
218         function pointer.
219         * lib/math.in.h (expl): Undefine if it does not exist as a function.
220
221 2012-02-24  Bruno Haible  <bruno@clisp.org>
222
223         sqrtl: Provide function definition on MSVC.
224         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
225         a function pointer.
226         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
227
228 2012-02-24  Bruno Haible  <bruno@clisp.org>
229
230         ceill: Provide function definition on MSVC.
231         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
232         used as a function pointer.
233         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
234
235 2012-02-24  Bruno Haible  <bruno@clisp.org>
236
237         floorl: Provide function definition on MSVC.
238         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
239         used as a function pointer.
240         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
241
242 2012-02-24  Bruno Haible  <bruno@clisp.org>
243
244         ceilf: Provide function definition on MSVC.
245         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
246         used as a function pointer.
247         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
248
249 2012-02-24  Bruno Haible  <bruno@clisp.org>
250
251         floorf: Provide function definition on MSVC.
252         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
253         used as a function pointer.
254         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
255
256 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
257
258         stdnoreturn: new module
259         This implements a replacement for C11's <stdnoreturn.h>.
260         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
261         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
262         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
263         * tests/test-stdnoreturn.c: New files.
264
265 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
266
267         regex: fix false multibyte matches in some regular expressions
268         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
269         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
270         * lib/regex_internal.c (re_string_skip_chars):
271         Fix miscomputation of remain_len that may cause incomplete
272         multi-byte character and false match.
273
274 2012-02-24  Jim Meyering  <meyering@redhat.com>
275
276         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
277         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
278         uses with "==" *before* the call, e.g., 0 == strcmp (...)
279         Remove now-unnecessary str''cmp obfuscation.
280         Suggested by Akim Demaille.
281
282 2012-02-24  Bruno Haible  <bruno@clisp.org>
283
284         streq: Rename macro.
285         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
286         * NEWS: Mention the change.
287         * lib/mbrtowc.c (mbrtowc): Update.
288         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
289         * lib/wcwidth.c (wcwidth): Update.
290         Suggested by Akim Demaille and Jim Meyering.
291
292 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
293
294         regex: fix typo in definition of MIN
295         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
296         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
297
298 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
299             Bruno Haible  <bruno@clisp.org>
300
301         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
302         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
303         entries into a stack-allocated buffer directly.
304         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
305
306 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
307             Bruno Haible  <bruno@clisp.org>
308
309         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
310
311          - There were several instances of this pattern:
312
313              for (;;) {
314                n = acl (f, GETACLCNT, 0, NULL);
315                [ allocate an array A of size N ]
316                if (acl (f, GETACL, n, a) == n)
317                  break;
318              }
319
320            This loop might never terminate if some other process is constantly
321            manipulating the file's ACL.  The loop should be rewritten to
322            terminate.
323
324          - The acl (... GETACLNT ...) call is merely an optimization; its value
325            is merely a hint as to how big to make the array.  A better
326            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
327            and just guess a reasonably-big size, growing the size and trying
328            again if it's not large enough.  This guarantees termination, and
329            saves a system call.
330
331         * lib/acl-internal.h: Include <limits.h>.
332         (MIN, SIZE_MAX): New macros.
333         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
334         a stack-allocated buffer, and use malloc if it does not fit. Don't
335         use GETACLCNT.
336         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
337
338 2012-02-19  Bruno Haible  <bruno@clisp.org>
339
340         acl: Fix endless loop on Solaris with vxfs.
341         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
342         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
343         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
344         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
345         * tests/test-sameacls.c (main)[Solaris]: Likewise.
346         Reported by Bill Jones in
347         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
348
349 2012-02-19  Bruno Haible  <bruno@clisp.org>
350
351         acl: Fix copy-acl test failure on Solaris 11 2011-11.
352         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
353         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
354         that this function returns 0 in some more cases.
355
356 2012-02-19  Bruno Haible  <bruno@clisp.org>
357
358         acl: Update doc references.
359         * doc/acl-resources.txt: Update links to Solaris documentation.
360
361 2012-02-19  Bruno Haible  <bruno@clisp.org>
362
363         Fix test failure in many locales on Solaris 11.
364         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
365         'tr' arguments.
366         * tests/test-pipe-filter-ii1.c (main): Likewise.
367         * build-aux/bootstrap (check_versions): Run 'tr' command with range
368         expressions in the C locale.
369         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
370         * m4/host-os.m4 (gl_HOST_OS): Likewise.
371
372 2012-02-19  Bruno Haible  <bruno@clisp.org>
373
374         gnulib-tool: Improve usage message.
375         * gnulib-tool (func_usage): Move doc of --help and --version to the
376         section "Operation modes".
377
378 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
379
380         README-release: make it easier to execute commands
381         * top/README-release: break commands out on to separate lines.
382
383 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
384
385         GNUmakefile: simplify detection of unconfigured trees
386         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
387         whether the tree make is being run from is already configured or
388         not.  Related simplifications.
389
390 2012-02-13  Simon Josefsson  <simon@josefsson.org>
391
392         * gnulib-tool (func_usage): Document --help and --version.
393
394 2012-02-11  Jim Meyering  <meyering@redhat.com>
395
396         bootstrap: don't exit 0 upon gnulib-tool failure
397         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
398         its exit status, not 0.
399
400 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
401
402         README-release: various improvements
403         * top/README-release: Give a command to push changes for the
404         release.  Add "distcheck" to list of other pre-release checks.
405         Fix instance of "make stable" which should be "make TYPE".
406
407 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
408
409         maint: replace FSF snail-mail addresses with URLs
410         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
411         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
412         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
413         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
414         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
415         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
416         * lib/check-version.c, lib/check-version.h, lib/config.charset:
417         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
418         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
419         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
420         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
421         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
422         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
423         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
424         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
425         * lib/glthread/thread.c, lib/glthread/thread.h:
426         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
427         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
428         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
429         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
430         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
431         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
432         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
433         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
434         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
435         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
436         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
437         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
438         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
439         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
440         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
441         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
442         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
443         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
444         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
445         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
446         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
447         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
448         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
449         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
450         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
451         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
452         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
453         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
454         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
455         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
456         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
457         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
458         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
459         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
460         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
461         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
462         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
463         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
464         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
465         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
466         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
467         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
468         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
469         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
470         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
471         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
472         * tests/test-poll.c, tests/test-quotearg-simple.c:
473         * tests/test-quotearg.c, tests/test-quotearg.h:
474         * tests/test-round-ieee.c, tests/test-round1.c:
475         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
476         * tests/test-roundl-ieee.c, tests/test-roundl.c:
477         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
478         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
479         * tests/test-strerror.c, tests/test-strerror_r.c:
480         * tests/test-strsignal.c, tests/test-strverscmp.c:
481         * tests/test-xmemdup0.c:
482         Replace FSF snail mail addresses with URLs, as per GNU coding
483         standards.  See glibc bug
484         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
485
486 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
487
488         README-release: capitalize a word and split a line
489         * top/README-release: Fix punctuation and spacing.
490
491 2012-02-08  Akim Demaille  <demaille@gostai.com>
492
493         fatal-signal: use C prototypes (with explicit void).
494         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
495         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
496
497 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
498
499         regex: spelling fix
500         * lib/regexec.c: spelling fix
501
502         regex: rely on stdint.h for SIZE_MAX
503         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
504
505 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
506
507         regex: merge glibc changes
508
509         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
510         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
511         (init_word_char): Work even if bitset words are not exactly 32 or
512         64 bits wide.  Don't assume there are no padding bits.
513         * lib/regex.c [_LIBC]: Do not include <config.h>.
514         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
515         and -Wtype-limits.
516         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
517         needless disagreement with glibc.  All uses changed.  Define it to
518         1 only if _GNU_SOURCE, to match glibc.
519         (_REG_RM_NAME): Remove; no longer needed, since the names in
520         question are now all protected by __USE_GNU.
521         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
522         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
523         * lib/regex_internal.h (MIN): New macro.
524
525         2012-01-03 Ulrich Drepper <drepper@gmail.com>
526         * lib/regcomp.c (init_word_char): Optimize regex a bit.
527
528         2011-12-30 Jakub Jelinek <jakub@redhat.com>
529         * lib/regex_internal.c (re_string_fetch_byte_case):
530         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
531         is miscompiled, and it turns out it is because of an incorrect
532         attribute on re_string_fetch_byte_case.  Unlike
533         re_string_peek_byte_case, this one is really not pure, it modifies
534         memory (increments pstr->cur_idx), and with the pure attribute GCC
535         assumed it doesn't and it cached the presumed value of
536         regexp->cur_idx in a variable across the
537          for (;; ++i)
538            {
539              if (i >= BRACKET_NAME_BUF_SIZE)
540                return REG_EBRACK;
541              if (token->type == OP_OPEN_CHAR_CLASS)
542                ch = re_string_fetch_byte_case (regexp);
543              else
544                ch = re_string_fetch_byte (regexp);
545              if (re_string_eoi(regexp))
546                return REG_EBRACK;
547              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
548                break;
549              elem->opr.name[i] = ch;
550            }
551
552         2011-11-29 Andreas Schwab <schwab@redhat.com>
553         * lib/regcomp.c (build_equiv_class):
554         Fix access after end of search string in regex matcher.
555
556         2011-11-12 Ulrich Drepper <drepper@redhat.com>
557         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
558
559         2011-10-12 Ulrich Drepper <drepper@redhat.com>
560         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
561
562         2011-10-11 Ulrich Drepper <drepper@redhat.com>
563         * lib/regcomp.c (parse_branch, parse_sub_exp):
564         More regex memory leak fixes and tests.
565         (parse_sub_exp, parse_bracket_exp):
566         Fix memory leak for some invalid regular expressions.
567
568         2011-05-28 Ulrich Drepper <drepper@gmail.com>
569         * lib/regex_internal.c, lib/regexec.c:
570         Fix unnecessary overallocation due to incomplete character.  When
571         incomplete characters are found at the end of a string the code
572         ran amok and allocated lots of memory.  Stricter limits are now in
573         place.
574
575         2011-05-20 Reuben Thomas <rrt@sc3d.org>
576         * lib/regex.h: Update documentation.
577
578         2011-05-16 Aharon Robbins <arnold@skeeve.com>
579         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
580
581         2010-05-05 Andreas Schwab <schwab@redhat.com>
582         * lib/regexec.c (find_collation_sequence_value):
583         Fix lookup of collation sequence value during regexp matching.
584
585         2010-01-22 Ulrich Drepper <drepper@redhat.com>
586         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
587
588         2008-01-16 Ulrich Drepper <drepper@redhat.com>
589         * lib/regex.h: Cleanup namespace.
590
591         2007-11-26 Ulrich Drepper <drepper@redhat.com>
592         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
593
594         2007-08-26 Ulrich Drepper <drepper@redhat.com>
595         * lib/regex_internal.h: Prevent some declarations and definitions
596         to be seen when used in tests.
597
598         2005-05-06 Ulrich Drepper <drepper@redhat.com>
599         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
600         __libc_lock_* macros if not _LIBC.
601         (struct re_dfa_t): Add lock.
602
603 2012-02-07  Eric Blake  <eblake@redhat.com>
604
605         maint.mk: also prohibit lower-case @var@
606         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
607         lower case, like @top_srcdir@.
608
609 2012-02-04  Eric Blake  <eblake@redhat.com>
610
611         canonicalize: avoid uninitialized memory use
612         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
613         random '/' left in dest.
614         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
615
616 2012-02-04  Bruno Haible  <bruno@clisp.org>
617
618         isatty: Fix test failure of ptsname_r on native Windows.
619         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
620         and don't set errno.
621         (isatty): Test first whether fd is valid. Set errno when returning 0.
622
623 2012-02-04  Bruno Haible  <bruno@clisp.org>
624
625         spawn-pipe tests: Fix a NULL program name in a diagnostic.
626         * tests/test-spawn-pipe-main.c: Include progname.h.
627         (main): Invoke set_program_name.
628         * modules/spawn-pipe-tests (Depends-on): Add progname.
629
630         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
631         * tests/test-nonblocking-socket-main.c: Include progname.h.
632         (main): Invoke set_program_name.
633         * modules/nonblocking-socket-tests (Depends-on): Add progname.
634
635         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
636         * tests/test-nonblocking-pipe-main.c: Include progname.h.
637         (main): Invoke set_program_name.
638         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
639
640 2012-02-04  Eric Blake  <eblake@redhat.com>
641
642         canonicalize-lgpl: fix // handling
643         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
644
645         canonicalize: fix // handling
646         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
647         /// to //, since only // is special.
648
649 2012-02-04  Bruno Haible  <bruno@clisp.org>
650
651         ioctl: Fix test failure on native Windows.
652         * lib/ioctl.c: Include msvc-nothrow.h.
653         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
654
655 2012-02-04  Bruno Haible  <bruno@clisp.org>
656
657         fsync: Avoid test failure on native Windows.
658         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
659         read-only.
660
661 2012-02-04  Bruno Haible  <bruno@clisp.org>
662
663         sys_select: Avoid syntax error on OpenBSD 5.0.
664         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
665         currently being included, just include the system's <sys/select.h>.
666
667 2012-02-04  Bruno Haible  <bruno@clisp.org>
668
669         sys_select: Avoid syntax error on OpenBSD 5.0.
670         * lib/sys_select.in.h: Include <signal.h> only after the include_next
671         <sys/select.h>, not before.
672         Reported by Jiri B <jirib@devio.us>.
673
674 2012-02-04  Bruno Haible  <bruno@clisp.org>
675
676         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
677         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
678         global variables.
679         * tests/test-get-rusage-data.c (main): Likewise.
680         Reported by Jim Meyering.
681
682 2012-02-04  Bruno Haible  <bruno@clisp.org>
683
684         stdioext: Fix last commit.
685         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
686
687 2012-02-03  Bruno Haible  <bruno@clisp.org>
688
689         stdioext: Add tentative support for Plan9.
690         * lib/stdio-impl.h: Include <errno.h>.
691         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
692         * lib/freadable.c (freadable): Likewise.
693         * lib/fwritable.c (fwritable): Likewise.
694         * lib/fbufmode.c (fbufmode): Likewise.
695         * lib/freading.c (freading): Likewise.
696         * lib/fwriting.c (fwriting): Likewise.
697         * lib/freadptr.c (freadptr): Likewise.
698         * lib/freadseek.c (freadptrinc): Likewise.
699         * lib/freadahead.c (freadahead): Likewise.
700         * lib/fpurge.c (fpurge): Likewise.
701         * lib/fseeko.c (rpl_fseeko): Likewise.
702         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
703         Reported by Jens Staal <staal1978@gmail.com>.
704
705 2012-02-02  Jim Meyering  <meyering@redhat.com>
706
707         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
708         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
709         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
710         not even to try to add the attribute.  Instead, add a pragma to suppress
711         the suggestion/warning.
712
713 2012-01-31  Karl Berry  <karl@gnu.org>
714
715         setstate doc: typo.
716         * doc/posix-functions/setstate.texi (setstate): { not (.
717
718 2012-01-31  Bruno Haible  <bruno@clisp.org>
719
720         popen: Make more robust on Windows.
721         * lib/popen.c: On native Windows, use the _popen based code even if
722         HAVE_POPEN is set.
723         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
724         environment variable on native Windows.
725
726 2012-01-30  Bruno Haible  <bruno@clisp.org>
727
728         pclose: Fix typo.
729         * lib/stdio.in.h (pclose): Fix typo in warning message.
730
731 2012-01-30  Bruno Haible  <bruno@clisp.org>
732
733         doc about getlogin_r, setstate.
734         * doc/posix-functions/getlogin_r.texi: List the incompatible
735         declaration problem under "not fixed by gnulib".
736         * doc/posix-functions/setstate.texi: Mention incompatible declaration
737         problem on Solaris 11 and other platforms.
738
739 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
740             Bruno Haible  <bruno@clisp.org>
741
742         poll tests: Make test more robust.
743         * tests/test-poll.c: Include macros.h.
744         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
745         return value of various I/O operations.
746         * modules/poll-tests (Files): Add tests/macros.h.
747
748 2012-01-30  Bruno Haible  <bruno@clisp.org>
749
750         sys_stat: Fix support for mingw64 and MSVC.
751         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
752         header files already do it.
753         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
754         stat itself.
755         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
756
757 2012-01-30  Bruno Haible  <bruno@clisp.org>
758
759         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
760         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
761         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
762
763 2012-01-29  Bruno Haible  <bruno@clisp.org>
764
765         quotearg: Fix test failure on MacOS X 10.5.
766         * tests/test-quotearg-simple.c: Include localcharset.h.
767         (main): If the locale encoding is not ASCII, bypass the tests of
768         locale_quoting_style and clocale_quoting_style.
769         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
770
771 2012-01-29  Jim Meyering  <meyering@redhat.com>
772
773         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
774         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
775         detect uses of canonicalize_file_name.
776
777 2012-01-28  Bruno Haible  <bruno@clisp.org>
778
779         test-framework-sh: Fix test failure with AIX 7.1 diff.
780         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
781         in column 1, like 'diff -c' does.
782         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
783         whether 'diff -u' is used. Instead, test whether the output contains
784         some '@' character.
785
786 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
787
788         strtoimax: eliminate need for stdint.h, inttypes.h checks
789         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
790         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
791         the prerequisites for a recently-introduced strtoimax test.
792         I guess this might cause strtoimax to be replaced when not
793         strictly necessary on older hosts, but this shouldn't introduce
794         any bugs and it should make Emacs 'configure' faster on typical
795         modern hosts.  Problem discovered when importing the latest gnulib
796         to an Emacs test version.
797         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
798
799 2012-01-28  Bruno Haible  <bruno@clisp.org>
800
801         sys_time: Override 'struct timeval' on some native Windows platforms.
802         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
803         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
804         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
805         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
806         needs to be overridden.
807         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
808         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
809         * tests/test-sys_select.c: Check that the tv_sec member has the same
810         size as a 'time_t'.
811         * tests/test-sys_time.c: Likewise.
812         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
813         is set, set also REPLACE_GETTIMEOFDAY.
814         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
815         convert the resulting 'struct timeval' before returning.
816         * lib/select.c: Include <sys/time.h>.
817         (select, timeval): Undefine at the right place.
818         * modules/select (Depends-on): Add sys_time.
819         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
820         some Windows platforms.
821         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
822
823 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
824
825         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
826         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
827         an integer.
828         * lib/fcntl.c (dupfd): Likewise.
829         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
830
831 2012-01-28  Bruno Haible  <bruno@clisp.org>
832
833         fcntl: Avoid compilation error on native Windows.
834         * modules/fcntl (Depends-on): Add 'close'.
835
836 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
837
838         select, poll, isatty: Avoid warnings on x86_64 mingw64.
839         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
840         pointer to an integer.
841         * lib/poll.c (IsConsoleHandle): Likewise.
842         * lib/isatty.c (IsConsoleHandle): Likewise.
843
844 2012-01-28  Jim Meyering  <meyering@redhat.com>
845
846         doc: clarify README-release
847         * top/README-release: Clarify: you should make a point to have
848         the latest stable versions of build tools in your PATH, and the
849         reference to buildreq is solely for its list of tool names, not
850         for its minimal-functional version numbers.
851         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
852
853         maint.mk: use more readable (yet functionally equivalent) quoting
854         It is common to quote a single quote in a single quoted string like
855         this:  '...'\''...'.  Unless you know the idiom, that looks like
856         gibberish, so prefer to double-quote the string when possible.
857         Then you can use a more readable, lone single quote: "...'..."
858         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
859         "don't" is more readable than the equivalent 'don'\''t'.
860         (sc_cast_of_x_alloc_return_value): Likewise.
861         (sc_cast_of_alloca_return_value): Likewise.
862         (sc_makefile_path_separator_check): Similar: use ":" in '...',
863         rather than '\'':'\''.
864
865 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
866
867         stdalign: relax _Alignof and tighten _Alignas test
868         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
869         as it was too strict: alignof must divide offsetof, but it need
870         not equal offsetof.  Inspired by Joseph S. Myers's comment
871         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
872         Conversely, tighten the _Alignas test a bit, as the resulting
873         alignment must be exactly 8.
874
875 2012-01-27  Bruno Haible  <bruno@clisp.org>
876
877         stdalign: Document the last change.
878         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
879
880 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
881
882         stdalign: check that alignof and offsetof are consistent
883         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
884         Problem reported for gnulib by Richard W.M. Jones in
885         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
886
887 2012-01-27  Jim Meyering  <meyering@redhat.com>
888
889         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
890         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
891         convert a sequence with gaps to the minimal containing range.
892         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
893         * tests/test-update-copyright.sh: Test for this.
894         The FSF confirmed it is ok to do this, assuming there is at
895         least one significant change per year in the affected range:
896         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
897
898 2012-01-26  Bruno Haible  <bruno@clisp.org>
899
900         pipe2: refine doc about thread-safety
901         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
902         multithread-safety problem.
903         * doc/glibc-functions/accept4.texi: Likewise.
904
905 2012-01-26  Bruno Haible  <bruno@clisp.org>
906
907         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
908         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
909         In the test program, include <fcntl.h>, for O_RDONLY.
910
911 2012-01-26  Eric Blake  <eblake@redhat.com>
912
913         pipe2: document lack of thread-safety in replacement
914         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
915         issue in replacement.
916         * doc/glibc-functions/accept4.texi (accept4): Likewise.
917         Based on a report by Eric Wong.
918
919 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
920             Bruno Haible  <bruno@clisp.org>
921
922         malloca: Avoid warnings on x86_64 mingw64.
923         * lib/malloca.c: Include <stdint.h>.
924         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
925         * modules/malloca (Depends-on): Add stdint.
926         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
927
928 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
929
930         obstack: remove __STDC__ conditionals
931         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
932         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
933         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
934         m4/include_next.m4 as the only gnulib-maintained places that still
935         refer to __STDC__.
936
937 2012-01-24  Bruno Haible  <bruno@clisp.org>
938
939         havelib: Modern quoting.
940         * build-aux/config.rpath: Quote 'like this', not `like this', as per
941         the recent change to the GNU coding standards.
942
943 2012-01-24  Bruno Haible  <bruno@clisp.org>
944
945         stdint: Improve support for Android.
946         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
947         Reported by Simon Josefsson <simon@josefsson.org>.
948
949 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
950
951         doc: omit trailing empty lines from INSTALL etc.
952         * doc/Makefile (INSTALL): Omit trailing empty lines.
953         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
954         omit trailing empty lines.  This simplifies the build procedure.
955
956 2012-01-23  Jim Meyering  <meyering@redhat.com>
957
958         tests: avoid spurious warnings about gl_sockets_startup
959         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
960         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
961         reporting a "statement with no effect".
962         * tests/test-accept.c (main): Mark as "(void)".
963         * tests/test-accept4.c (main): Likewise.
964         * tests/test-bind.c (main): Likewise.
965         * tests/test-connect.c (main): Likewise.
966         * tests/test-getpeername.c (main): Likewise.
967         * tests/test-getsockname.c (main): Likewise.
968         * tests/test-getsockopt.c (main): Likewise.
969         * tests/test-listen.c (main): Likewise.
970         * tests/test-recv.c (main): Likewise.
971         * tests/test-recvfrom.c (main): Likewise.
972         * tests/test-send.c (main): Likewise.
973         * tests/test-sendto.c (main): Likewise.
974         * tests/test-setsockopt.c (main): Likewise.
975         * tests/test-shutdown.c (main): Likewise.
976
977 2012-01-21  Bruno Haible  <bruno@clisp.org>
978
979         locale-fr.m4: Fix for Android.
980         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
981         failure of the test program on Bionic libc.
982
983 2012-01-21  Jim Meyering  <meyering@redhat.com>
984
985         bootstrap: fail when bootstrap_post_import_hook fails
986         Otherwise, it's far too easy to miss diagnostics emitted
987         between gnulib-tool's output and that of running configure.
988         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
989
990 2012-01-17  Jim Meyering  <meyering@redhat.com>
991
992         maint: enable sc_trailing_blank
993         * build-aux/pmccabe.css: Remove trailing blanks.
994         * doc/acl-cygwin.txt: Likewise.
995         * doc/gnu-oids.texi: Likewise
996         * cfg.mk: Enable sc_trailing_blank.
997         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
998
999 2012-01-17  Jim Meyering  <meyering@redhat.com>
1000
1001         maint: enable sc_prohibit_openat_without_use
1002         * cfg.mk: Enable sc_prohibit_openat_without_use.
1003         Exempt lib/selinux-at.c.
1004
1005 2012-01-17  Jim Meyering  <meyering@redhat.com>
1006
1007         maint: enable sc_prohibit_cloexec_without_use
1008         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
1009         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
1010
1011 2012-01-17  Jim Meyering  <meyering@redhat.com>
1012
1013         maint: enable sc_prohibit_intprops_without_use
1014         * cfg.mk: Enable sc_prohibit_intprops_without_use
1015         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
1016
1017 2012-01-17  Jim Meyering  <meyering@redhat.com>
1018
1019         maint: enable sc_prohibit_hash_pjw_without_use
1020         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
1021         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
1022         to match any use of \<hash_pjw\>, i.e., not necessarily with a
1023         following " (".
1024
1025 2012-01-17  Jim Meyering  <meyering@redhat.com>
1026
1027         maint: enable double-word-prohibiting rule
1028         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
1029         Exempt three files.
1030
1031 2012-01-17  Jim Meyering  <meyering@redhat.com>
1032
1033         maint: remove empty lines at EOF, but excluding modules/*
1034         Apply syntax rules at home as well as abroad.  Most changes
1035         were induced by running this:
1036           make srcdir=. _build-aux=build-aux -f top/maint.mk \
1037             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
1038             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
1039         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
1040         Exempt modules/* and two binary files.
1041         Also exempt doc/INSTALL*, per request from Bruno Haible.
1042         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
1043         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
1044         * doc/Copyright/request-assign.future: Likewise.
1045         * doc/Copyright/request-disclaim.changes: Likewise.
1046         * doc/INSTALL: Likewise.
1047         * doc/INSTALL.ISO: Likewise.
1048         * doc/INSTALL.UTF-8: Likewise.
1049         * doc/acl-cygwin.txt: Likewise.
1050         * doc/acl-resources.txt: Likewise.
1051         * doc/fdl-1.2.texi: Likewise.
1052         * doc/fdl-1.3.texi: Likewise.
1053         * doc/fdl.texi: Likewise.
1054         * lib/argp-pin.c: Likewise.
1055         * lib/round.c: Likewise.
1056         * lib/unicase/u16-totitle.c: Likewise.
1057         * lib/unictype/block_test.c: Likewise.
1058         * lib/uninorm/canonical-decomposition.c: Likewise.
1059         * m4/README: Likewise.
1060         * m4/relocatable-lib.m4: Likewise.
1061         * tests/test-isnand-nolibm.c: Likewise.
1062         * tests/test-isnand.c: Likewise.
1063         * tests/uninorm/NormalizationTest.txt: Likewise.
1064
1065 2012-01-17  Jim Meyering  <meyering@redhat.com>
1066
1067         maint: add framework to run syntax-check rules against gnulib sources
1068         * cfg.mk: New file, to disable all currently-failing tests.
1069         We'll enable them one by one, as they are made to pass.
1070         * Makefile (sc_maint): New rule.
1071
1072 2012-01-21  Bruno Haible  <bruno@clisp.org>
1073
1074         stdint: Add support for Android.
1075         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
1076         include the system's <stdint.h>.
1077         Reported by Simon Josefsson <simon@josefsson.org>.
1078
1079 2012-01-19  Jim Meyering  <meyering@redhat.com>
1080
1081         bootstrap: add bootstrap_post_import_hook
1082         Bison does still need something like the gnulib_mk_hook whose
1083         invocation I had to remove along with slurp in commit 767ccd40.
1084         Technically, we could get along without it, but doing so would
1085         have required living with a warning and a mandatory post-bootstrap
1086         automake rerun.
1087         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
1088         (bootstrap_post_import_hook): New function.
1089         Invoke it after gnulib-tool --import and before autoreconf.
1090
1091 2012-01-18  Jim Meyering  <meyering@redhat.com>
1092
1093         gitlog-to-changelog: don't use "no_"-prefixed variable name
1094         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
1095         to enable both --cluster and --no-cluster.  Change variable name,
1096         s/\$no_cluster/$cluster/, and reverse usage to match.
1097
1098         gitlog-to-changelog: use "||", not "or" in expressions
1099         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
1100         expressions.
1101
1102 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
1103
1104         gitlog-to-changelog: new option --no-cluster
1105         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
1106         clustering of adjacent commit messages.
1107
1108 2012-01-17  Jim Meyering  <meyering@redhat.com>
1109
1110         maint: spell file systems with two words, not one
1111         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
1112         two words, not one.
1113
1114 2012-01-16  Jim Meyering  <meyering@redhat.com>
1115
1116         bootstrap: add a FIXME comment to ensure we eventually remove the hack
1117         * build-aux/bootstrap (gnulib_tool_options): Add comment.
1118
1119 2012-01-16  Eric Blake  <eblake@redhat.com>
1120
1121         bootstrap: cater to autoconf 2.59
1122         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
1123         is not available.
1124
1125         bootstrap: properly check for libtool
1126         * build-aux/bootstrap (libtoolize): Also run libtool when older
1127         usage is detected.
1128
1129 2012-01-15  Bruno Haible  <bruno@clisp.org>
1130
1131         Improve support for MSVC 9.
1132         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
1133         clashes on MSVC.
1134         * lib/fcntl.in.h: Likewise.
1135         * lib/stdlib.in.h: Likewise.
1136         * lib/sys_stat.in.h: Likewise.
1137
1138 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
1139
1140         gnupload: we hold the master copy of this script now
1141         For motivation and more information, see:
1142         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
1143         * build-aux/gnupload: Make it clear in the heading comments that the
1144         master copy of this file is maintained by gnulib.  Since we are at
1145         it, bump its copyright year and ...
1146         ($scriptversion): ... the date in its version.
1147         ($usage): Patches and bug reports should be sent to the gnulib list,
1148         not the automake one.
1149         * config/srclist.txt: Don't try to sync 'gnupload' from automake
1150         anymore.
1151
1152 2012-01-15  Bruno Haible  <bruno@clisp.org>
1153
1154         Fix module 'random'.
1155         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
1156         initstate, setstate are declared.
1157
1158 2012-01-14  Bruno Haible  <bruno@clisp.org>
1159
1160         Tests for module 'random'.
1161         * modules/random-tests: New file.
1162         * tests/test-random.c: New file, based on tests/test-random_r.c.
1163
1164         New module 'random'.
1165         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
1166         declarations.
1167         * lib/random.c: New file, based on glibc/stdlib/random.c.
1168         * m4/random.m4: New file.
1169         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
1170         HAVE_RANDOM.
1171         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
1172         * modules/random: New file.
1173         * config/srclist.txt: Add an entry for random.c.
1174         * doc/posix-functions/random.texi: Mention the 'random' module.
1175         * doc/posix-functions/initstate.texi: Likewise.
1176         * doc/posix-functions/setstate.texi: Likewise.
1177         * doc/posix-functions/srandom.texi: Likewise.
1178
1179 2012-01-12  Bruno Haible  <bruno@clisp.org>
1180
1181         random_r: Use common idioms.
1182         * lib/random_r.c: Include <stdlib.h> first.
1183
1184         random_r: Override incompatible API on AIX, OSF/1.
1185         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
1186         Override the system function if REPLACE_RANDOM_R is 1.
1187         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
1188         and OSF/1, set REPLACE_RANDOM_R.
1189         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
1190         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
1191         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
1192         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
1193         * doc/glibc-functions/random_r.texi: Likewise.
1194         * doc/glibc-functions/setstate_r.texi: Likewise.
1195
1196         random_r: Support for MSVC 9.
1197         * lib/random_r.c: Include stdint.h, not inttypes.h.
1198
1199 2012-01-12  Eric Blake  <eblake@redhat.com>
1200
1201         inet_ntop: guard extra work by IF_LINT
1202         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
1203         better code generation when not checking for warnings.
1204         Suggested by Paul Eggert and Jim Meyering.
1205
1206         strptime: fix regression on mingw
1207         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
1208         Fix regression.  Reported by Bruno Haible.
1209
1210 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
1211             Bruno Haible  <bruno@clisp.org>
1212
1213         copy-file: add error-code-returning variant.
1214         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
1215         (qcopy_file_preserving): New declaration.
1216         * lib/copy-file.c (qcopy_file_preserving): Renamed from
1217         copy_file_preserving. Change return type to 'int'. Don't emit an error
1218         message here.
1219         (copy_file_preserving): New function.
1220         * tests/test-copy-file.c: Include <stdlib.h>.
1221         (main): Test qcopy_file_preserving if the environment variable
1222         NO_STDERR_OUTPUT is set.
1223         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
1224         with NO_STDERR_OUTPUT
1225         * tests/test-copy-file-2.sh: Likewise.
1226
1227 2012-01-10  Bruno Haible  <bruno@clisp.org>
1228
1229         copy-file: Use 'quote' module consistently.
1230         * lib/copy-file.c (copy_file_preserving): Use quote().
1231
1232         copy-file: Refactor.
1233         * lib/copy-file.c: Include quote.h.
1234         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
1235         message here.
1236         * modules/copy-file (Depends-on): Add quote.
1237
1238         acl: Export qcopy_acl.
1239         * lib/acl.h (qcopy_acl): New declaration.
1240         * lib/copy-acl.c (qcopy_acl): Make non-static.
1241
1242         acl: Rename a local variable.
1243         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
1244
1245         acl: Align return values of copy_acl and qcopy_acl.
1246         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
1247         maybe < -1.
1248
1249 2012-01-11  Eric Blake  <eblake@redhat.com>
1250
1251         strptime: silence gcc warnings
1252         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
1253         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
1254         Reported by Daniel P. Berrange.
1255
1256         inet_ntop: silence gcc warning
1257         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
1258         Reported by Daniel P. Berrange.
1259
1260 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
1261
1262         getloadavg test: skip the test on GNU/Linux without /proc mounted
1263         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
1264         file.  When /proc is not mounted, it always fails with ENOENT.
1265         * tests/test-getloadavg.c (main): Treat ENOENT return code from
1266         getloadavg(3) the same way as ENOSYS and ENOTSUP.
1267
1268 2012-01-10  Bruno Haible  <bruno@clisp.org>
1269
1270         regex: Avoid link error on MSVC 9.
1271         * modules/regex (Depends-on): Add wctype.
1272
1273 2012-01-10  Bruno Haible  <bruno@clisp.org>
1274
1275         doc: Mention --with-tests option.
1276         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
1277         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
1278         --with-tests.
1279         Reported by Reuben Thomas.
1280
1281 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
1282
1283         users.txt: order package names lexicographically.
1284         * users.txt: Order package names lexicographically.
1285
1286 2012-01-10  Jim Meyering  <meyering@redhat.com>
1287
1288         maint.mk: fix description in comment
1289         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
1290
1291         ignore-value: remove deprecated ignore_ptr function
1292         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
1293         * NEWS: Note this.
1294
1295 2012-01-09  Jim Meyering  <meyering@redhat.com>
1296
1297         test-init.sh: avoid a subshell
1298         * tests/test-init.sh: Remove protective subshell.
1299         Suggested by Bernhard Voelker.  While a subshell is normally
1300         required to protect against older shells (Solaris, FreeBSD) that
1301         warn about a missing program before performing redirection, the
1302         shell-selection tests performed by init.sh probably exclude any
1303         offending shell.
1304
1305 2012-01-08  Bruno Haible  <bruno@clisp.org>
1306
1307         setlocale tests: Avoid test failure on Solaris 11 2011-11.
1308         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
1309         variable.
1310
1311 2012-01-08  Bruno Haible  <bruno@clisp.org>
1312
1313         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
1314         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1315         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
1316         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
1317         macro.
1318         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
1319         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
1320         * lib/spawn_faction_addopen.c: Add workaround implementation if
1321         HAVE_WORKING_POSIX_SPAWN.
1322         * modules/spawn (Makefile): Substitute
1323         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
1324         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
1325         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
1326         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
1327         (Depends-on): Update conditions.
1328         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
1329         the Solaris 11 bug.
1330
1331 2012-01-08  Bruno Haible  <bruno@clisp.org>
1332
1333         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
1334         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1335         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
1336         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
1337         macro.
1338         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
1339         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
1340         * lib/spawn_faction_adddup2.c: Add workaround implementation if
1341         HAVE_WORKING_POSIX_SPAWN.
1342         * modules/spawn (Makefile): Substitute
1343         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
1344         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
1345         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
1346         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
1347         (Depends-on): Update conditions.
1348         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
1349         the Solaris 11 bug.
1350
1351 2012-01-08  Bruno Haible  <bruno@clisp.org>
1352
1353         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
1354         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1355         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
1356         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
1357         HAVE_WORKING_POSIX_SPAWN.
1358         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
1359         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
1360         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
1361         * lib/spawn_faction_addclose.c: Add workaround implementation if
1362         HAVE_WORKING_POSIX_SPAWN.
1363         * modules/spawn (Makefile): Substitute
1364         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
1365         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
1366         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
1367         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
1368         (Depends-on): Update conditions.
1369         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
1370         the Solaris 11 bug.
1371
1372 2012-01-08  Bruno Haible  <bruno@clisp.org>
1373
1374         doc: Update for Solaris 11 2011-11.
1375         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
1376         * m4/printf.m4: Update comments.
1377
1378 2012-01-08  Bruno Haible  <bruno@clisp.org>
1379
1380         mktime: Avoid compilation error on Solaris 11.
1381         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
1382
1383 2012-01-08  Bruno Haible  <bruno@clisp.org>
1384
1385         doc: Small fix.
1386         * doc/posix-headers/nl_types.texi: Correct platforms list.
1387
1388 2012-01-08  Simon Josefsson  <simon@josefsson.org>
1389
1390         Add lgpl-3.0 module.
1391         * MODULES.html.sh (Support for building documentation): Add
1392         lgpl-3.0.
1393         * modules/lgpl-3.0: New file.
1394
1395 2012-01-08  Jim Meyering  <meyering@redhat.com>
1396
1397         select.c: indent with spaces, not TABs
1398         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
1399
1400 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1401
1402         quotearg: do not use grave accent for left quote
1403         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
1404         locale_quoting_style.
1405         (quotearg_buffer_restyled): Fix example.
1406         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
1407
1408 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1409
1410         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
1411         Most programs do not have translation catalogs for English and much
1412         less separate catalogs for British and American English.  Drop the
1413         suggestion to translators about these two, and provide it
1414         automatically for Unicode locales.  Like most programs, even those
1415         using American English, we use single quotation marks.  This conflicts
1416         with the American typographic convention, but works better when you
1417         cite the entire error message within double quotes.  It also tries not
1418         to clash with established practice and with what non-gnulib programs
1419         will usually do.
1420         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
1421         using an UTF-8 or GB-18030 locale.  The list of other locales with
1422         quotes was provided by Bruno Haible.
1423         (quotearg_buffer_restyled): Adjust instructions to translators.
1424         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
1425         text, since this would be wrong when using Unicode.
1426         * modules/quotearg: Depend on c-strcaseeq.
1427
1428 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1429
1430         quotearg: fix Wikipedia link
1431         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
1432
1433 2012-01-07  Simon Josefsson  <simon@josefsson.org>
1434
1435         Fix for mingw with MSVC9.
1436         * m4/ld-version-script.m4: Check that compiler rejects version
1437         scripts with syntax errors.  Reported by Bruno Haible
1438         <bruno@clisp.org>.
1439
1440 2012-01-06  Bruno Haible  <bruno@clisp.org>
1441
1442         Talk about "native Windows API", not "Woe32".
1443         * lib/accept4.c: Update comments to mention native Windows.
1444         * lib/execute.c: Likewise.
1445         * lib/fatal-signal.c: Likewise.
1446         * lib/localcharset.c: Likewise.
1447         * lib/nanosleep.c: Likewise.
1448         * lib/nl_langinfo.c: Likewise.
1449         * lib/pclose.c: Likewise.
1450         * lib/pipe-filter-gi.c: Likewise.
1451         * lib/pipe-filter-ii.c: Likewise.
1452         * lib/pipe.c: Likewise.
1453         * lib/pipe2.c: Likewise.
1454         * lib/popen.c: Likewise.
1455         * lib/progreloc.c: Likewise.
1456         * lib/relocatable.c: Likewise.
1457         * lib/sigaction.c: Likewise.
1458         * lib/sigprocmask.c: Likewise.
1459         * lib/spawn-pipe.h: Likewise.
1460         * lib/spawn-pipe.c: Likewise.
1461         * lib/spawni.c: Likewise.
1462         * lib/stat-time.h: Likewise.
1463         * lib/w32spawn.h: Likewise.
1464         * tests/test-isatty.c: Likewise.
1465         * lib/config.charset: More comments.
1466         * doc/gnulib-intro.texi: Mention native Windows.
1467         * doc/posix-functions/_Exit_C99.texi: Likewise.
1468         * doc/posix-headers/fcntl.texi: Likewise.
1469
1470 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
1471
1472         argp: Avoid crash if translator uses % characters in a translation.
1473         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
1474         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
1475
1476 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
1477
1478         doc: C11 and C++11 are now official
1479         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
1480         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
1481         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
1482         * modules/stdalign:
1483         Replace references to draft C1X to C11, and to draft C++0X to C++11.
1484
1485 2012-01-06  Bruno Haible  <bruno@clisp.org>
1486
1487         uc-is-grapheme-break tests: Tweak.
1488         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
1489         message.
1490
1491 2012-01-06  Bruno Haible  <bruno@clisp.org>
1492
1493         test-init.sh: correct the test for diff -u
1494         * tests/test-init.sh: Also redirect stdout to /dev/null.
1495
1496 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1497
1498         Use ', not `, for quoting output.
1499         * build-aux/announce-gen (usage, sizes, print_news_deltas)
1500         (print_changelog_deltas, get_tool_versions, main program):
1501         * build-aux/git-version-gen:
1502         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
1503         * build-aux/move-if-change (help):
1504         * build-aux/useless-if-before-free (usage, main program):
1505         * check-module (parse_module_file, usage)
1506         (find_included_lib_files, check_module):
1507         * lib/argmatch.c (main) [TEST]:
1508         * lib/argp-help.c (_help):
1509         * lib/getopt1.c (main) [TEST]:
1510         * lib/git-merge-changelog.c (usage):
1511         * lib/xstrtol-error.c (xstrtol_error):
1512         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
1513         * m4/argz.m4 (gl_FUNC_ARGZ):
1514         * m4/bison.m4 (gl_BISON):
1515         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
1516         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1517         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
1518         * m4/fpending.m4 (gl_PREREQ_FPENDING):
1519         * m4/gc-random.m4 (gl_GC_RANDOM):
1520         * m4/intl.m4 (gt_CHECK_DECL):
1521         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
1522         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
1523         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
1524         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
1525         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
1526         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
1527         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
1528         * tests/test-dirname.c (main):
1529         * tests/test-getpass.c (main):
1530         * tests/test-iconvme.c (main):
1531         * tests/test-parse-datetime.c (LOG):
1532         * tests/test-xstrtoimax.sh:
1533         * tests/test-xstrtol.sh:
1534         * tests/test-xstrtoll.sh:
1535         * tests/test-xstrtoumax.sh:
1536         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
1537         * top/GNUmakefile (abort-due-to-no-makefile):
1538         Quote 'like this', not `like this', as per the recent change to
1539         the GNU coding standards.
1540
1541 2012-01-05  Bruno Haible  <bruno@clisp.org>
1542
1543         strtoimax: Don't force a replacement on systems where intmax_t is int.
1544         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
1545         'intmax_t' is not larger than 'int'.
1546         Reported by Pádraig Brady <P@draigBrady.com>.
1547
1548 2012-01-05  Bruno Haible  <bruno@clisp.org>
1549
1550         doc: Mention NetBSD bugs.
1551         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
1552         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
1553
1554 2012-01-05  Bruno Haible  <bruno@clisp.org>
1555
1556         strtoumax tests: Enhance tests.
1557         * tests/test-strtoumax.c (main): Add tests for large values.
1558
1559 2012-01-05  Bruno Haible  <bruno@clisp.org>
1560
1561         strtoimax: Work around AIX 5.1 bug.
1562         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
1563         definition.
1564         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
1565         Set HAVE_STRTOIMAX.
1566         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
1567         REPLACE_STRTOIMAX.
1568         * modules/inttypes-incomplete (Makefile.am): Substitute
1569         REPLACE_STRTOIMAX.
1570         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
1571         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
1572         (Depends-on): Update conditions.
1573         * tests/test-strtoimax.c (main): Add tests for large values.
1574         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
1575
1576 2012-01-05  Bruno Haible  <bruno@clisp.org>
1577
1578         inttypes: Modernize.
1579         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
1580         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
1581         (Makefile.am): Update inttypes.h rule.
1582
1583 2012-01-05  Jim Meyering  <meyering@redhat.com>
1584
1585         init.sh: don't waste a subshell just to redirect stderr
1586         * tests/init.sh: In testing for diff -u and diff -c, use a
1587         stderr-redirecting exec inside `...` rather than a subshell.
1588
1589         test-init.sh: avoid failure on HP-UX 11.00
1590         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
1591         resolves to diff -c or cmp.  Reported by Bruno Haible.
1592
1593 2012-01-05  Bruno Haible  <bruno@clisp.org>
1594
1595         Tests for module 'strtoull'.
1596         * modules/strtoull-tests: New file.
1597         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
1598
1599 2012-01-05  Bruno Haible  <bruno@clisp.org>
1600
1601         Tests for module 'strtoll'.
1602         * modules/strtoll-tests: New file.
1603         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
1604
1605 2012-01-05  Bruno Haible  <bruno@clisp.org>
1606
1607         Tests for module 'strtoul'.
1608         * modules/strtoul-tests: New file.
1609         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
1610
1611 2012-01-05  Bruno Haible  <bruno@clisp.org>
1612
1613         Tests for module 'strtol'.
1614         * modules/strtol-tests: New file.
1615         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
1616
1617 2012-01-04  Jim Meyering  <meyering@redhat.com>
1618
1619         test-init.sh: accommodate Solaris 5.10's different diff -u output
1620         * tests/test-init.sh: Also exempt @@ lines from the comparison
1621         of diff output, since Solaris 5.10 and GNU diff formats differ.
1622         Reported by Stefano Lattarini.
1623
1624 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1625
1626         test-posixtm: don't assume signed integer wraparound
1627         * tests/test-posixtm.c (main): Don't assume wraparound semantics
1628         after signed integer overflow.  Inspired by (though it may not
1629         fix) Bruno Haible's bug report in
1630         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
1631
1632         Spell out "Windows 9x" and "Windows XP".
1633         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
1634         "Windows 9x" and "WinXP" with "Windows XP".
1635
1636 2012-01-04  Jim Meyering  <meyering@redhat.com>
1637
1638         test-vc-list-files-cvs.sh: remove obsolete comment
1639         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
1640         double exit.  Now that's all encapsulated via skip_ and Exit.
1641
1642 2012-01-04  Bruno Haible  <bruno@clisp.org>
1643
1644         Talk about "native Windows API", not "Win32".
1645         * lib/classpath.c: Update comments to mention native Windows.
1646         * lib/csharpexec.c: Likewise.
1647         * lib/dup2.c: Likewise.
1648         * lib/error.c: Likewise.
1649         * lib/fcntl.c: Likewise.
1650         * lib/filename.h: Likewise.
1651         * lib/findprog.c: Likewise.
1652         * lib/get-rusage-as.c: Likewise.
1653         * lib/get-rusage-data.c: Likewise.
1654         * lib/getpagesize.c: Likewise.
1655         * lib/javaexec.c: Likewise.
1656         * lib/msvc-inval.c: Likewise.
1657         * lib/msvc-nothrow.c: Likewise.
1658         * lib/nanosleep.c: Likewise.
1659         * lib/nonblocking.c: Likewise.
1660         * lib/printf-parse.c: Likewise.
1661         * lib/setlocale.c: Likewise.
1662         * lib/sigaction.c: Likewise.
1663         * lib/strerror_r.c: Likewise.
1664         * lib/tmpdir.c: Likewise.
1665         * lib/vasnprintf.c: Likewise.
1666         * lib/w32spawn.h: Likewise.
1667         * lib/waitpid.c: Likewise.
1668         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
1669         * m4/locale-ar.m4: Likewise.
1670         * m4/locale-fr.m4: Likewise.
1671         * m4/locale-ja.m4: Likewise.
1672         * m4/locale-tr.m4: Likewise.
1673         * m4/locale-zh.m4: Likewise.
1674         * m4/printf.m4: Likewise.
1675         * tests/test-cloexec.c: Likewise.
1676         * tests/test-copy-acl.sh: Likewise.
1677         * tests/test-copy-file.sh: Likewise.
1678         * tests/test-file-has-acl.sh: Likewise.
1679         * tests/test-set-mode-acl.sh: Likewise.
1680         * tests/test-dup-safer.c: Likewise.
1681         * tests/test-dup2.c: Likewise.
1682         * tests/test-dup3.c: Likewise.
1683         * tests/test-fcntl.c: Likewise.
1684         * tests/test-nonblocking-pipe.h: Likewise.
1685         * tests/test-nonblocking-socket.h: Likewise.
1686         * tests/test-pipe.c: Likewise.
1687         * tests/test-pipe2.c: Likewise.
1688         * tests/test-spawn-pipe-child.c: Likewise.
1689         * doc/acl-resources.txt: Likewise.
1690         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1691         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
1692         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
1693         * lib/localcharset.c: Update comments to mention native Windows.
1694         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1695         * lib/localename.c: Likewise.
1696         * lib/progreloc.c: Likewise.
1697         * lib/relocatable.c: Likewise.
1698         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1699         (windows_compute_revents): Renamed from win32_compute_revents.
1700         (windows_compute_revents_socket): Renamed from
1701         win32_compute_revents_socket.
1702         * lib/select.c: Update comments to mention native Windows.
1703         (windows_poll_handle): Renamed from win32_poll_handle.
1704         * m4/threadlib.m4: Update comments to mention native Windows.
1705         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
1706         --enable-threads=windows instead of --enable-threads=win32. Set
1707         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
1708         * lib/glthread/lock.h: Update comments to mention native Windows.
1709         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
1710         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
1711         USE_WIN32_THREADS.
1712         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
1713         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
1714         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
1715         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
1716         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
1717         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
1718         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
1719         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
1720         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
1721         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
1722         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
1723         * tests/test-tls.c: Likewise.
1724         Rationale:
1725         Microsoft renamed the "Win32 API" to "Windows API", as it is available
1726         on both 32-bit and 64-bit Windows systems.
1727         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
1728         line of distinction is between "native Windows" on one side and Unix/
1729         POSIX systems on the other side. More details in
1730         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
1731         Suggested by Paul Eggert.
1732
1733 2012-01-03  Bruno Haible  <bruno@clisp.org>
1734
1735         isatty: Support for MSVC 9.
1736         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
1737         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
1738         (_isatty_nothrow): New function.
1739         (isatty): Use it instead of _isatty.
1740         (IsConsoleHandle): Add comment, from Paolo Bonzini.
1741         * lib/poll.c (IsConsoleHandle): Likewise.
1742         * lib/select.c (IsConsoleHandle): Likewise.
1743         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
1744         (gl_PREREQ_ISATTY): New macro.
1745         * modules/isatty (Depends-on): Add msvc-inval.
1746         (configure.ac): Invoke gl_PREREQ_ISATTY.
1747
1748 2012-01-03  Jim Meyering  <meyering@redhat.com>
1749
1750         maint.mk: remove temporary transition aid from over 1.5 years ago
1751         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
1752         purpose was to aid in the transition (avoiding silent malfunction)
1753         from that old name to the new _sc_search_regexp.  This shim was
1754         added by commit 219c504b.
1755
1756         init.sh: do not try to accommodate compare arguments starting with "-"
1757         * tests/init.sh (compare_dev_null_): Do not try to accommodate
1758         compare arguments that start with "-".  Besides, we do not worry
1759         about this when invoking diff or cmp; why start now with sed?
1760         Using "--" to separate options from argument would trigger sed
1761         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
1762         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
1763
1764 2012-01-02  Bruno Haible  <bruno@clisp.org>
1765
1766         Enhance tests for module 'isatty'.
1767         * modules/isatty-tests (Depends-on): Add pipe-posix.
1768         * tests/test-isatty.c: Include <fcntl.h>.
1769         (DEV_NULL): New macro.
1770         (main): Test the resut of isatty() also on regular files, pipes, and
1771         /dev/null.
1772
1773         New module 'isatty'.
1774         * lib/unistd.in.h (isatty): New declaration.
1775         * lib/isatty.c: New file, based on an idea of
1776         Bastien Roucariès <roucaries.bastien@gmail.com>.
1777         * m4/isatty.m4: New file.
1778         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
1779         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
1780         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
1781         REPLACE_ISATTY.
1782         * modules/isatty: New file.
1783         * doc/posix-functions/isatty.texi: Mention the new module.
1784         Suggested by Paolo Bonzini.
1785
1786 2012-01-02  Bruno Haible  <bruno@clisp.org>
1787
1788         canonicalize: Tweak 2011-12-29 commit.
1789         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
1790         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
1791
1792 2012-01-02  Jim Meyering  <meyering@redhat.com>
1793
1794         gitlog-to-changelog: describe input syntax in --help output
1795         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
1796
1797         gitlog-to-changelog: fix typo in --help: show backslash before email @
1798         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
1799         in sources, but not in actual output.
1800
1801 2011-12-30  Jim Meyering  <meyering@redhat.com>
1802
1803         gitlog-to-changelog: don't malfunction when name contains %-directive
1804         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
1805         in a name string cause trouble.  E.g., with a user name of "%s",
1806         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
1807
1808 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
1809
1810         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
1811         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
1812         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
1813         the "  (tiny change)" notation that is appended to the standard
1814         ChangeLog "date  name  email" header line.
1815
1816 2012-01-01  Jim Meyering  <meyering@redhat.com>
1817
1818         test-framework-sh: init.sh: fix "make dist" failure
1819         When using gnulib-tool's --with-tests option and any module that
1820         depends on test-framework-sh, "make dist" would fail due to the
1821         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
1822         in the gltests directory, and not in the gllib/ directory.
1823         One way to work around that is to move the EXTRA_DIST += init.sh
1824         from the primary module to the -tests one:
1825         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
1826         * modules/test-framework-sh (Makefile.am): ...not here.
1827         Reported by Tom G. Christensen in
1828         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
1829
1830         version-etc: update copyright year reported by --version
1831         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
1832
1833 2011-12-31  Pádraig Brady  <P@draigBrady.com>
1834
1835         canonicalize: only stat() if required
1836         * lib/canonicalize.c (canonicalize_filename_mode):
1837         Avoid calling l?stat() when both CAN_MISSING,
1838         and CAN_NOLINKS are set, as we neither need
1839         to resolve symlinks or test component existence.
1840
1841 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
1842
1843         doc: cover st_ino issues once; add OpenVMS etc.
1844         * doc/posix-functions/stat.texi (stat):
1845         * doc/posix-functions/lstat.texi (lstat):
1846         * doc/posix-functions/fstatat.texi (fstatat):
1847         * doc/posix-functions/fstat.texi (fstat):
1848         Move general 'struct stat' stuff to sys_stat.texi,
1849         leaving behind a pointer.
1850         * doc/posix-headers/sys_stat.texi (sys/stat.h):
1851         Merge duplicate info about 'struct stat' problems into here.
1852         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
1853         and suggest partial workarounds.
1854
1855         same-inode: port to OpenVMS
1856         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
1857         three st_ino values.
1858
1859 2011-12-30  Pádraig Brady  <P@draigBrady.com>
1860
1861         canonicalize: fix references to stat() and lstat()
1862         * lib/canonicalize.c (canonicalize_filename_mode):
1863         Ensure references always resolve to a replacement
1864         function if required (even via a macro).
1865
1866 2011-12-30  Jim Meyering  <meyering@redhat.com>
1867
1868         gitlog-to-changelog: remove a little duplication
1869         * build-aux/gitlog-to-changelog (main): Grep @lines once,
1870         rather than twice.
1871
1872 2011-12-29  Pádraig Brady  <P@draigBrady.com>
1873
1874         canonicalize: add support for not resolving symlinks
1875         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
1876         indicate we don't want to follow symlinks.  Also
1877         provide CAN_MODE_MASK to aid setting these existing
1878         mutually exclusive values.
1879         * lib/canonicalize.c (canonicalize_filename_mode):
1880         Extract the flags from can_mode parameter, which
1881         are currently just used to select between stat()
1882         and lstat().  Also ensure that mutually exclusive
1883         values are flagged immediately as invalid.
1884         * tests/test-canonicalize.c: Verify symlinks are
1885         not followed, and that invalid flag combinations
1886         are diagnosed.
1887
1888 2011-12-25  Jim Meyering  <meyering@redhat.com>
1889
1890         gitlog-to-changelog: do not clump multi-paragraph entries
1891         Identical header lines (date,name,email+coauthors) are suppressed,
1892         thus putting all entries with those same characteristics under
1893         a single header.  However, when a log entry consists of two or
1894         more paragraphs, it may not be clear where it starts and ends.
1895         This change makes it so that such an entry is always separated
1896         from others by a header line, even when that header would
1897         otherwise be suppressed.
1898         * build-aux/gitlog-to-changelog: Implement the above.
1899         Inspired by a related request from Stefano Lattarini in
1900         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
1901
1902 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1903
1904         announce-gen: fix `cmd' typo in diagnostic
1905         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
1906         diagnostic: a missing '$' meant that the command was not output.
1907
1908 2011-12-23  Jim Meyering  <meyering@redhat.com>
1909
1910         test-framework-sh: distribute init.sh
1911         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
1912         Otherwise, "make -C gnulib-tests check" (at least in grep) would
1913         fail due to the lack of init.sh.
1914
1915         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
1916         * modules/atexit-tests: Rather than listing tests/init.sh,
1917         now that there's a module for it, simply depend on that new module.
1918         * modules/closein-tests: Likewise.
1919         * modules/exclude-tests: Likewise.
1920         * modules/getcwd-tests: Likewise.
1921         * modules/perror-tests: Likewise.
1922         * modules/pread-tests: Likewise.
1923         * modules/pwrite-tests: Likewise.
1924         * modules/vc-list-files-tests: Likewise.
1925         * modules/verify-tests: Likewise.
1926         * modules/xalloc-die-tests: Likewise.
1927         * modules/xstrtoimax-tests: Likewise.
1928         * modules/xstrtol-tests: Likewise.
1929         * modules/xstrtoll-tests: Likewise.
1930         * modules/xstrtoumax-tests: Likewise.
1931         * modules/yesno-tests: Likewise.
1932
1933 2011-12-22  Jim Meyering  <meyering@redhat.com>
1934
1935         test-framework-sh: add minimal tests of init.sh's compare function
1936         * modules/test-framework-sh-tests: New file.
1937         * tests/test-init.sh: New file.
1938
1939         test-framework-sh: new module
1940         * modules/test-framework-sh: New file.
1941         * MODULES.html.sh (Support for maintaining and releasing projects):
1942         List it.
1943
1944         init.sh: do not emit simulated diff output to stderr
1945         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
1946
1947 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
1948
1949         .gitignore: ignore gnulib.dvi and regex.info
1950         * doc/.gitignore:add gnulib.dvi and regex.info
1951
1952 2011-12-22  Jim Meyering  <meyering@redhat.com>
1953
1954         init.sh: correct previous change
1955         * tests/init.sh (compare): My previous change was wrong.
1956         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
1957
1958         init.sh: avoid unwarranted test failure when using "set -e"
1959         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
1960         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
1961         a use like "compare exp out" would get evoke an unconditional failure.
1962
1963 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
1964
1965         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
1966         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
1967         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
1968         autoreconf that did not.
1969         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
1970         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
1971
1972 2011-12-17  Jim Meyering  <meyering@redhat.com>
1973
1974         bootstrap: remove some now-unneeded code
1975         This script arose back when gnulib-tool was young.
1976         Since then, it has seen improvements that render much of this
1977         script unnecessary.  In particular, it can now make symlinks
1978         to the files it uses.  Also, I no longer see as much value in
1979         marking files as read-only via comments.
1980         If you relied on the symlink-creation feature of the preceding
1981         version of this script, you can get most of that functionality
1982         by adding the --symlink option to the definition of
1983         gnulib_tool_option_extras in your bootstrap.conf file.
1984         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
1985         Run autopoint and libtoolize *before* gnulib-tool.
1986         After it, run an abbreviated autoreconf, rather than a loop around
1987         all tools.
1988         (slirp, bt_mark_as_generated): Remove functions.
1989
1990 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1991
1992         ftoastr: fix typo
1993         * lib/ftoastr.h: Fix misspelling in comment.
1994
1995 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
1996
1997         * top/README-release: fix punctuation.
1998
1999 2011-12-17  Jim Meyering  <meyering@redhat.com>
2000
2001         bootstrap: correct the recent buildreq change
2002         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
2003         had no effect.
2004         * build-aux/bootstrap (buildreq): Bracket each search term with
2005         "*...*", so that the shell "case" statement works as intended.
2006         Add comments.
2007
2008 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
2009
2010         build: let bootstrap resort to wget when downloading .po files
2011         * build-aux/bootstrap (download_po_files): Fallback to wget when
2012         downloading the .po files via rsync fails.  This is necessary to
2013         bootstrap from behind a strict firewall.
2014
2015 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
2016
2017         stdint: don't assume C++11 when compiling with g++
2018         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
2019         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
2020         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
2021         work also in C++ before C++11, as that improperly inhibits
2022         generating a substitute stdint.h for that case.
2023
2024 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
2025
2026         alloca: protect comment from gnulib-tool
2027         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
2028         that gnulib-tool doesn't think it's a license, and munge it to
2029         say "GCC version 3".
2030
2031 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
2032
2033         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
2034         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
2035         $(abs_top_builddir) instead of $(top_builddir).
2036
2037 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
2038
2039         strftime-tests: also test nanoseconds
2040         * tests/test-strftime.c (T): Add a test of %N.
2041
2042 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
2043
2044         inttypes, stdint: add C++11 support
2045         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
2046         when including inttypes.h and stdint.h.  Support this change to
2047         the standard.
2048         * doc/posix-headers/inttypes.texi (inttypes.h):
2049         * doc/posix-headers/stdint.texi (stdint.h): Document this.
2050         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
2051         Define if not defined already, for the benefit of pre-C++11 hosts.
2052         Define the standard format macros (e.g., PRId8) always.
2053         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
2054         Likewise, if __cpluspus.  Define the standard constant and limit
2055         macros (e.g., INT8_C, INT8_MAX) always.
2056         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
2057         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
2058         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
2059         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
2060         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
2061         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
2062         Likewise.
2063
2064 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
2065
2066         nonblocking tests: Fix test failure on Linux/PPC.
2067         Suggested by Prerna Saxena in
2068         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
2069         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
2070         Set to 1100000.
2071
2072 2011-12-12  Jim Meyering  <meyering@redhat.com>
2073
2074         argmatch: don't hard-code `' when listing valid option arguments
2075         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
2076         use the quote function to add quotes.  Use fputs rather than
2077         fprintf for the format string with no format directive.
2078
2079 2011-12-07  Eric Blake  <eblake@redhat.com>
2080
2081         bootstrap: detect tools required by gnulib-tool
2082         * build-aux/bootstrap (buildreq): Provide minimum implicit
2083         dependencies.
2084         * DEPENDENCIES: Mention patch as a prereq.
2085
2086 2011-12-04  Bruno Haible  <bruno@clisp.org>
2087
2088         sethostname: Port to Windows platforms.
2089         * lib/sethostname.c: Provide an alternate implementation for Windows
2090         platforms.
2091         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
2092         (main): Skip the test if sethostname() fails with EPERM. On Windows
2093         platforms, don't check the result of gethostname().
2094
2095 2011-12-04  Bruno Haible  <bruno@clisp.org>
2096             Jim Meyering  <meyering@redhat.com>
2097
2098         tests: Avoid spurious error message on platforms without mktemp program.
2099         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
2100
2101 2011-12-04  Bruno Haible  <bruno@clisp.org>
2102
2103         sethostname: Fix documentation.
2104         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
2105         "not fixed" section.
2106
2107 2011-12-03  Bruno Haible  <bruno@clisp.org>
2108
2109         gnulib-tool: Verify that the License field is present and non-empty.
2110         * gnulib-tool (func_get_license_raw): New function, extracted from
2111         func_get_license.
2112         (func_get_license): Use it. Warn if the module is not a test module and
2113         has no license.
2114         Suggested by Jim Meyering.
2115
2116 2011-12-03  Bruno Haible  <bruno@clisp.org>
2117
2118         sethostname tests: Fix link error on mingw.
2119         * tests/test-sethostname1.c: New file, extracted from
2120         tests/test-sethostname.c.
2121         * tests/test-sethostname2.c: New file, extracted from
2122         tests/test-sethostname.c.
2123         * tests/test-sethostname.c: Remove file.
2124         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
2125         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
2126         (Depends-on): Add gethostname.
2127         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
2128         Link the latter with $(GETHOSTNAME_LIB).
2129
2130         sethostname tests: Fix compilation error on mingw.
2131         * tests/test-sethostname.c: Don't include <sys/types.h>.
2132         (geteuid): Use a dummy value without uid_t.
2133         * modules/sethostname-tests (Depends-on): Remove sys_types.
2134
2135         sethostname tests: Avoid a gcc warning.
2136         * tests/test-sethostname.c (main): Remove an unused variable.
2137
2138         Tweak last commit.
2139         * modules/sethostname-tests (Files): Sort by decreasing importance.
2140         (configure.ac): Check for geteuid.
2141         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
2142         the test when there's nothing to test. Drop an unnecessary cast.
2143         Improve an error message. Verify that the final sethostname() call
2144         succeeds.
2145
2146 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2147
2148         Add a test suite for the sethostname module.
2149         * modules/sethostname-tests: New file.  A test program
2150         for the sethostname module.
2151         * tests/test-sethostname.c: Likewise.
2152
2153 2011-12-03  Bruno Haible  <bruno@clisp.org>
2154
2155         Tweak last commit.
2156         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
2157         Fix preprocessor directives indentation. Fix typos.
2158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
2159         * modules/unistd (Makefile): Likewise.
2160
2161 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2162
2163         Integrate the sethostname module into unistd.
2164         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
2165         into the unistd.h header.
2166         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
2167         preprocessor directives.
2168         * modules/unistd: Setup the Makefile substitutions of the
2169         SETHOSTNAME preprocessor directives.
2170
2171 2011-12-03  Bruno Haible  <bruno@clisp.org>
2172
2173         Tweak last commit.
2174         * lib/sethostname.c: Don't include <string.h>.
2175         (sethostname): No need to copy the argument string to the stack. Don't
2176         call clearerr. Preserve errno when fprintf failed.
2177         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
2178         Don't invoke AC_REPLACE_FUNCS.
2179         * modules/sethostname (Link): Remove empty section.
2180         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
2181         failure problem.
2182
2183 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2184
2185         New module 'sethostname'.
2186         * lib/sethostname.c (sethostname): New file.  Provide sethostname
2187         for systems that lack it.
2188         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
2189         sethostname declaration and function.
2190         * modules/sethostname: New file.  Define the sethostname module.
2191
2192 2011-12-03  Bruno Haible  <bruno@clisp.org>
2193
2194         Tweak last commit.
2195         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
2196
2197 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
2198
2199         Split the HOST_NAME_MAX detection into a separate m4 macro.
2200         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
2201         macro so it can be used by the pending sethostname module.
2202
2203 2011-12-03  Bruno Haible  <bruno@clisp.org>
2204
2205         Fix module descriptions syntax.
2206         * modules/argv-iter (License): Fix syntax.
2207         * modules/di-set (License): Likewise.
2208         * modules/ino-map (License): Likewise.
2209         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
2210
2211 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
2212
2213         stdalign: port to Clang 3.0
2214         Problem reported by Simon Josefsson in
2215         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
2216         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
2217         which has <stdalign.h> but which does not define alignof.
2218         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
2219
2220 2011-12-01  Eric Blake  <eblake@redhat.com>
2221
2222         mktempd: silence dd usage
2223         * build-aux/mktempd (rand_bytes): Silence dd.
2224
2225 2011-11-30  Simon Josefsson  <simon@josefsson.org>
2226
2227         manywarnings: Don't mention gcc version in docstring.
2228         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
2229         Jim Meyering <meyering@redhat.com>.
2230
2231 2011-11-30  Jim Meyering  <meyering@redhat.com>
2232
2233         hash: mark a few floating point constants with "f" suffix
2234         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
2235         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
2236         floating point constants with "f", since they're destined to be
2237         saved/used as "float"s.
2238
2239 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
2240
2241         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
2242         * tests/test-float.c (test_long_double): Correct and re-enable the
2243         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
2244
2245 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
2246
2247         Avoid subtracting two pointers that don't point into the same block.
2248         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
2249         only pointers into the same memory block are subtracted. We cannot
2250         assume that sizeof (ptrdiff_t) == sizeof (void *).
2251
2252 2011-11-29  Eric Blake  <eblake@redhat.com>
2253
2254         maint.mk: add syntax check for use of compare from init.sh
2255         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
2256         moved here from coreutils.
2257
2258         manywarnings: drop -Wunsuffixed-float-constants
2259         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
2260         '1.0D', which is the only way to silence this warning for 'double'.
2261
2262 2011-11-29  Jim Meyering  <meyering@redhat.com>
2263
2264         hash: mark compute_bucket_size with the pure attribute
2265         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
2266
2267         quotearg, propername: correct pragma guard expression
2268         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
2269         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
2270
2271 2011-11-28  Jim Meyering  <meyering@redhat.com>
2272
2273         propername: do not mark proper_name with the const attribute
2274         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
2275         since it examines data pointed to by its parameter.
2276         * lib/propername.c (proper_name): Instead, add a pragma to suppress
2277         the suggestion from -Wsuggest-attribute=const.
2278
2279         propername: mark one more function as const
2280         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
2281
2282 2011-11-27  Jim Meyering  <meyering@redhat.com>
2283
2284         mark functions with const and pure attributes
2285
2286         Mark functions per suggestions from gcc-4.6 when using these options:
2287         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
2288         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
2289         Follow these guidelines: when possible, apply the attribute to
2290         an extern declaration, not to its definition.  Apply it to the
2291         definition only when the definition is static.
2292         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
2293         * lib/argv-iter.h (argv_iter_n_args): Likewise.
2294         * lib/base64.h (isbase64): Likewise.
2295         * lib/basename-lgpl.c (last_component, base_len): Likewise.
2296         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
2297         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
2298         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
2299         (c_tolower, c_toupper): Likewise.
2300         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
2301         * lib/chdir-long.c (find_non_slash): Likewise.
2302         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
2303         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
2304         * lib/file-type.h (file_type): Likewise.
2305         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
2306         * lib/filevercmp.c (verrevcmp): Likewise.
2307         * lib/freadahead.h (freadahead): Likewise.
2308         * lib/fts.c (fts_maxarglen): Likewise.
2309         * lib/hash-pjw.h (hash_pjw): Likewise.
2310         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
2311         * lib/hash.c (is_prime, next_prime): Likewise.
2312         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
2313         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
2314         (hash_table_ok, hash_get_first, hash_string): Likewise.
2315         (compute_bucket_size): Likewise.
2316         * lib/i-ring.h (i_ring_empty): Likewise.
2317         * lib/isnan.c (isnanl): Likewise.
2318         * lib/math.h (isnanl, rpl_isnanl): Likewise.
2319         * lib/memcasecmp.h (memcasecmp): Likewise.
2320         * lib/memchr2.h (memchr2): Likewise.
2321         * lib/memcmp2.h (memcmp2): Likewise.
2322         * lib/parse-datetime.y (lookup_zone): Likewise.
2323         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
2324         [!WINDOWS_SOCKETS]: Likewise.
2325         * lib/strnlen1.h (strnlen1): Likewise.
2326         * lib/uniwidth.in.h (uc_width): Likewise.
2327         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
2328         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
2329         (quoting_options_from_style): Add a comment.
2330         * lib/propername.h (proper_name): Add a comment.
2331
2332 2011-11-27  Bruno Haible  <bruno@clisp.org>
2333
2334         Remove unused macros from !_LIBC code in glibc-borrowed files.
2335         * lib/fnmatch.c (STRCOLL): Remove macro.
2336         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
2337         * lib/glob.c (__stat, __readdir64): Remove macros.
2338         * lib/tempname.c (__open64, __xstat64): Remove macros.
2339         Suggested by Paul Eggert.
2340
2341 2011-11-27  Bruno Haible  <bruno@clisp.org>
2342
2343         getcwd: Fix link error on MSVC 9.
2344         * modules/getcwd (Depends-on): Add readdir, rewinddir.
2345
2346 2011-11-27  Bruno Haible  <bruno@clisp.org>
2347
2348         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
2349         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
2350         HAVE_OPENDIR is 0.
2351         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
2352         HAVE_CLOSEDIR is 0.
2353         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
2354         is 0.
2355         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
2356
2357 2011-11-27  Bruno Haible  <bruno@clisp.org>
2358
2359         getcwd: Fix bug from 2011-08-17.
2360         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
2361         platforms that need it.
2362         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
2363         code of 4 to be a failure, not a success. This ensures that
2364         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
2365
2366 2011-11-27  Bruno Haible  <bruno@clisp.org>
2367
2368         binary-io tests: Avoid test failure on mingw when libtool is used.
2369         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
2370         Don't verify the size of t-bin-out1.tmp here.
2371         * tests/test-binary-io.sh: Verify it here.
2372         Reported by Simon Josefsson.
2373
2374 2011-11-26  Bruno Haible  <bruno@clisp.org>
2375
2376         Fix conflict between two instantiations of module 'unistd'.
2377         * gnulib-tool (func_emit_autoconf_snippet): Substitute
2378         ${include_guard_prefix} also in the autoconf snippet.
2379         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
2380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
2381         GNULIB_UNISTD_H_GETOPT.
2382         * modules/getopt-posix (configure.ac): Set the
2383         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
2384         * modules/getopt-gnu (configure.ac): Likewise.
2385         * modules/unistd (Makefile.am): Change the substitution value of
2386         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
2387         Reported by Simon Josefsson.
2388
2389 2011-11-25  Bruno Haible  <bruno@clisp.org>
2390
2391         pagealign_alloc: Doc and comments.
2392         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
2393         module.
2394         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
2395
2396 2011-11-25  Jim Meyering  <meyering@redhat.com>
2397
2398         test-update-copyright.sh: avoid false-positive failure
2399         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
2400         around false positive failure on Cygwin/Windows.  The latter was
2401         matching erroneously-created files with names like
2402         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
2403
2404 2011-11-25  Simon Josefsson  <simon@josefsson.org>
2405
2406         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
2407         * m4/valgrind-tests.m4: Check that the parameters that will be
2408         used works, not just a subset of them.  Reported by Bruno Haible
2409         <bruno@clisp.org>.
2410
2411 2011-11-24  Jim Meyering  <meyering@redhat.com>
2412
2413         test-stdalign.c: comment out long double tests
2414         * tests/test-stdalign.c: Don't try to reduce alignment of long double
2415         variables.  That provokes errors like this from gcc-4.7.0 20111124:
2416         error: '_Alignas' specifiers cannot reduce alignment of \
2417         'static_longdouble_alignas'.
2418
2419 2011-11-22  Jim Meyering  <meyering@redhat.com>
2420
2421         init.sh: make "compare /dev/null FILE" output more readable
2422         * tests/init.sh (compare_): Document the preferred order of arguments.
2423         (emit_diff_u_header_): New function.
2424         (compare_dev_null_): Emit a simulated diff, rather than just the
2425         contents of the unexpected file.  Suggestion from Bruno Haible.
2426
2427 2011-11-21  Jim Meyering  <meyering@redhat.com>
2428             Eric Blake  <eblake@redhat.com>
2429
2430         init.sh: work around OSF/1 5.1's mishandling of /dev/null
2431         * tests/init.sh: Make our compare function slightly more portable.
2432         Reported by Bruno Haible in
2433         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
2434
2435 2011-11-21  Simon Josefsson  <simon@josefsson.org>
2436
2437         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
2438         before using it, in code that ends up in config.h.
2439
2440 2011-11-20  Bruno Haible  <bruno@clisp.org>
2441
2442         getcwd: Work around getcwd bug on AIX 5..7.
2443         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
2444         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
2445         Use a different value for gl_cv_func_getcwd_path_max. Move the
2446         definition of HAVE_PARTLY_WORKING_GETCWD from here...
2447         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
2448         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
2449         Define HAVE_MINIMALLY_WORKING_GETCWD.
2450         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
2451         where it is not even minimally working, that is, on AIX.
2452         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
2453         m4/getcwd-path-max.m4.
2454         (main): Update exit code computation.
2455         * doc/posix-functions/getcwd.texi: Mention list of platforms where
2456         getcwd does not handle long file names.
2457
2458 2011-11-20  Bruno Haible  <bruno@clisp.org>
2459
2460         getcwd: Fix bug from 2009-09-10.
2461         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
2462         like "no".
2463
2464 2011-11-20  Simon Josefsson  <simon@josefsson.org>
2465
2466         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
2467
2468 2011-11-20  Bruno Haible  <bruno@clisp.org>
2469
2470         fma tests: Avoid shadowing local variables.
2471         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
2472         expected.
2473
2474 2011-11-20  Bruno Haible  <bruno@clisp.org>
2475
2476         copysignf tests: Fix.
2477         * tests/test-copysignf.c: Fix signature check.
2478
2479 2011-11-20  Bruno Haible  <bruno@clisp.org>
2480
2481         fma: Remove unused code.
2482         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
2483         unused macros.
2484
2485 2011-11-20  Bruno Haible  <bruno@clisp.org>
2486
2487         sethostname: Fix doc about AIX.
2488         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
2489         sethostname; it has it.
2490
2491         sethostname: Mention more portability problems.
2492         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
2493         problem.
2494         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2495
2496 2011-11-19  Bruno Haible  <bruno@clisp.org>
2497
2498         Depend on module fcntl-h when AT_FDCWD is used.
2499         * modules/utimens (Depends-on): Add fcntl-h.
2500         * modules/areadlinkat (Depends-on): Likewise.
2501         * modules/areadlinkat-with-size (Depends-on): Likewise.
2502         * modules/faccessat (Depends-on): Likewise.
2503         * modules/fchmodat (Depends-on): Likewise.
2504         * modules/fchownat (Depends-on): Likewise.
2505         * modules/getcwd (Depends-on): Likewise.
2506         * modules/mkdirat (Depends-on): Likewise.
2507         * modules/mkfifoat (Depends-on): Likewise.
2508         * modules/readlinkat (Depends-on): Likewise.
2509         * modules/symlinkat (Depends-on): Likewise.
2510         * modules/dup2-tests (Depends-on): Likewise.
2511         * modules/fdutimensat-tests (Depends-on): Likewise.
2512         * modules/futimens-tests (Depends-on): Likewise.
2513
2514 2011-11-19  Bruno Haible  <bruno@clisp.org>
2515
2516         euidaccess: Update a comment.
2517         * lib/euidaccess.c: Update comment about platforms with faccessat.
2518
2519 2011-11-19  Bruno Haible  <bruno@clisp.org>
2520
2521         openat: Fix file list.
2522         * modules/openat (Files): Remove lib/at-func.c.
2523
2524 2011-11-19  Bruno Haible  <bruno@clisp.org>
2525
2526         fstatat: Simplify.
2527         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
2528         gnulib should define rpl_fstatat, there is a
2529         "#define fstatat rpl_fstatat" in <sys/stat.h>.
2530
2531 2011-11-19  Bruno Haible  <bruno@clisp.org>
2532
2533         Ensure 'inline' can be used in tests/test-utimens-common.h.
2534         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
2535         * modules/futimens-tests (configure.ac): Likewise.
2536         * modules/utimens-tests (configure.ac): Likewise.
2537         * modules/utimensat-tests (configure.ac): Likewise.
2538
2539 2011-11-19  Simon Josefsson  <simon@josefsson.org>
2540
2541         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
2542         not hash_insert0.
2543         (hash_insert_if_absent): Doc fix.
2544
2545 2011-11-19  Simon Josefsson  <simon@josefsson.org>
2546
2547         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
2548
2549 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
2550
2551         test-getcwd: disambiguate exit status
2552         * tests/test-getcwd.c (test_long_name): Return 0..7.
2553         (main): Exit with an unambiguous exit status.  The old
2554         code yielded a mysterious mixture of two failure codes.
2555
2556         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
2557         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
2558         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
2559         rpl_fstatat or fstatat.  This should fix the other problem
2560         reported by Kai Habel in
2561         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
2562         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
2563         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
2564         and I reproduced it on a Solaris 8 host we still have in production.
2565
2566 2011-11-18  Jim Meyering  <meyering@redhat.com>
2567
2568         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
2569         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
2570         Add a sentence to the comment.
2571         (hash_insert0): New function that simply calls hash_insert_if_absent.
2572         * lib/hash.h (hash_insert_if_absent): Declare it.
2573         (hash_insert0): Add deprecation attribute.
2574         (_GL_ATTRIBUTE_DEPRECATED): Define.
2575         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
2576         not hash_insert0.
2577         * NEWS: Mention it, even though it's not really an incompatible change.
2578
2579 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
2580
2581         openat: avoid compilation failure due to lack of <errno.h> inclusion
2582         * lib/openat.c: Include <errno.h>.
2583
2584 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
2585
2586         * modules/getcwd (Depends-on): Add fdopendir.
2587         This fixes one of the two problems reported by Kai Habel in
2588         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
2589
2590         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
2591         stdalign problem reported by Ian Beckwith in
2592         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
2593         * modules/crypto/gc-arcfour (Depends-on):
2594         Depend conditionally on crypto/arcfour.
2595         * modules/crypto/gc-arctwo (Depends-on):
2596         Depend conditionally on crypto/arctwo.
2597         * modules/crypto/gc-des (Depends-on):
2598         Depend conditionally on crypto/des.
2599         * modules/crypto/gc-hmac-md5 (Depends-on):
2600         Depend conditionally on crypto/hmac-md5.
2601         * modules/crypto/gc-hmac-sha1 (Depends-on):
2602         Depend conditionally on crypto/hmac-sha1.
2603         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
2604         * modules/crypto/gc-md4 (Depends-on):
2605         Depend conditionally on crypto/md4.
2606         * modules/crypto/gc-md5 (Depends-on):
2607         Depend conditionally on crypto/md5.
2608         * modules/crypto/gc-rijndael (Depends-on):
2609         Depend conditionally on crypto/rijndael.
2610         * modules/crypto/gc-sha1 (Depends-on):
2611         Depend conditionally on crypto/sha1.
2612         * modules/crypto/gc-arcfour:
2613         * modules/crypto/gc-arctwo:
2614         * modules/crypto/gc-des:
2615         * modules/crypto/gc-hmac-md5:
2616         * modules/crypto/gc-hmac-sha1:
2617         * modules/crypto/gc-md2:
2618         * modules/crypto/gc-md4:
2619         * modules/crypto/gc-md5:
2620         * modules/crypto/gc-rijndael:
2621         * modules/crypto/gc-sha1:
2622         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
2623         now that the conditional dependencies do the work for us.
2624
2625 2011-11-17  Jim Meyering  <meyering@redhat.com>
2626
2627         tests: factor st_ctime-comparison out of two headers
2628         * tests/test-utimens-common.h (ctime_compare): Define.
2629         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
2630         * tests/test-lutimens.h (test_lutimens): Likewise.
2631         * tests/test-utimens.h (test_utimens): Likewise.
2632
2633         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
2634         Invoke the test program via an init.sh-using wrapper.
2635         * tests/test-getcwd.sh: New file.
2636         * modules/getcwd-tests (Files): Add it.
2637         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
2638
2639 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
2640
2641         gitlog-to-changelog: support multi-author commits.
2642         The FSF cares about keeping track of all authors of patches to its
2643         projects, but Git doesn't provide obvious support for multi-author
2644         changesets. Consensus seems to be forming around the use of extra
2645         Signed-off-by inspired lines in the log message formatted as
2646         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
2647         multi-author commits between version control systems.
2648         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
2649         log message and output in standard ChangeLog multi-author format.
2650         Reported by Peter Rosin <peda@lysator.liu.se>
2651
2652 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
2653             Bruno Haible  <bruno@clisp.org>
2654
2655         Fix some modules' file list.
2656         * modules/fstatat (Files): Add m4/lstat.m4.
2657         * modules/openat (Files): Likewise.
2658         * modules/unlinkat (Files): Likewise.
2659
2660 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
2661
2662         maint.mk: fix tight-scope.mk generation in VPATH builds.
2663         * top/maint.mk (tight-scope.mk): Make sure to prefix file
2664         reference with $(srcdir) so that the file is found correctly even
2665         when running `make syntax-check' in a VPATH build.
2666
2667 2011-11-13  Bruno Haible  <bruno@clisp.org>
2668             Jim Meyering  <meyering@redhat.com>
2669
2670         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
2671         * tests/init.sh (compare): Remove "No differences encountered" or
2672         synonymous output from the 'diff' program.
2673
2674 2011-11-13  Bruno Haible  <bruno@clisp.org>
2675
2676         Makefile: Tweak indentation.
2677         * Makefile: Use tab as first character in every line that contains rule
2678         commands.
2679
2680 2011-11-13  Bruno Haible  <bruno@clisp.org>
2681
2682         Syntax check for copyright statements.
2683         * check-copyright: New file.
2684         * Makefile (sc_check_copyright): New rule.
2685
2686 2011-11-13  Simon Josefsson  <simon@josefsson.org>
2687
2688         * build-aux/git-version-gen: Add --prefix to configure the tag
2689         match string.
2690
2691 2011-11-13  Simon Josefsson  <simon@josefsson.org>
2692
2693         * build-aux/git-version-gen: Add --help and --version.
2694
2695 2011-11-12  Jim Meyering  <meyering@redhat.com>
2696
2697         revamp the other test-exclude?.sh scripts to use init.sh, too
2698         * tests/test-exclude1.sh: Use init.sh.
2699         * tests/test-exclude2.sh: Likewise.
2700         * tests/test-exclude3.sh: Likewise.
2701         * tests/test-exclude4.sh: Likewise.
2702         * tests/test-exclude5.sh: Likewise.
2703         * tests/test-exclude6.sh: Likewise.
2704         * tests/test-exclude7.sh: Likewise.
2705         * tests/test-exclude8.sh: Likewise.
2706         * modules/exclude-tests (Files): List init.sh.
2707
2708         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
2709         These shell scripts ignored failure of the binary test-exclude,
2710         so making the latter return 77 didn't cause them to be skipped.
2711         * tests/test-exclude5.sh: Exit with test-exclude's error status
2712         when that program fails.  Revamp to use init.sh.
2713         * tests/test-exclude2.sh: Likewise.
2714
2715         test-exclude: fix a typo
2716         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
2717
2718 2011-11-11  Bruno Haible  <bruno@clisp.org>
2719
2720         obstack: Fix compilation error on MSVC 9.
2721         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
2722
2723 2011-11-11  Jim Meyering  <meyering@redhat.com>
2724
2725         test-exclude: skip tests rather than failing on deficient systems
2726         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
2727         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
2728         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
2729         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
2730
2731 2011-11-10  Bruno Haible  <bruno@clisp.org>
2732
2733         ptsname_r test: Avoid gcc warning on glibc systems.
2734         * tests/test-ptsname_r.c (null_ptr): New function.
2735         (test_errors): Use it.
2736
2737 2011-11-10  Bruno Haible  <bruno@clisp.org>
2738
2739         ptsname_r: Avoid compilation error on OSF/1 5.1.
2740         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
2741         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
2742         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
2743         function is not declared or incompatibly declared.
2744         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
2745         * modules/ptsname_r (Depends-on, configure.ac): Update.
2746         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
2747
2748 2011-11-10  Bruno Haible  <bruno@clisp.org>
2749
2750         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
2751         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
2752         When cross-compiling, guess yes on all platforms except AIX.
2753         Reported by Ludovic Courtès <ludo@gnu.org>.
2754
2755 2011-11-09  Bruno Haible  <bruno@clisp.org>
2756
2757         ptsname_r tests: Fix bugs.
2758         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
2759         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
2760
2761 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2762
2763         fstatat: work with cross-compilation
2764         Problem reported by Ludovic Courtès in
2765         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
2766         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
2767         "cross-compiling" and assume the bug is present.  Replace
2768         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
2769         an inverted sense, to be more conservative about our assumptions.
2770         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
2771
2772 2011-11-09  Bruno Haible  <bruno@clisp.org>
2773
2774         Improve MODULES.html output.
2775         * modules/mkfifoat (Description): Use the word "function".
2776         * modules/readlinkat (Description): Likewise.
2777         * modules/symlinkat (Description): Likewise.
2778
2779 2011-11-09  Eric Blake  <eblake@redhat.com>
2780
2781         ptsname_r-tests: new test module
2782         * modules/ptsname_r-tests: New module.
2783         * tests/test-ptsname_r.c: New file.
2784
2785         ptsname_r: new module
2786         * modules/ptsname_r: New module.
2787         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
2788         * lib/ptsname.c (__ptsname_r): Split...
2789         * lib/ptsname_r.c: ...into new file.
2790         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2791         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
2792         * modules/stdlib (Makefile.am): Substitute witnesses.
2793         * lib/stdlib.in.h (ptsname_r): Declare it.
2794         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
2795         * MODULES.html.sh (Misc): Likewise.
2796         * modules/ptsname (Depends-on): Alter dependency.
2797         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
2798
2799 2011-11-09  Jim Meyering  <meyering@redhat.com>
2800
2801         announce-gen: be more concise when there's only one URL+tarball
2802         * build-aux/announce-gen (get_tool_versions): When you distribute
2803         only one type of tarball, combine the first two "Here are..."
2804         sections and make the key-checking grammar independent of
2805         how many tarballs there are.
2806
2807 2011-11-09  Eric Blake  <eblake@redhat.com>
2808
2809         openpty: provide a stub on mingw
2810         * lib/pty.in.h (includes): Provide forward declarations.
2811         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
2812
2813         raise: fix mingw handling of SIGPIPE
2814         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
2815
2816 2011-11-08  Bruno Haible  <bruno@clisp.org>
2817
2818         More conditional dependencies.
2819         * modules/faccessat (Depends-on): Add conditions.
2820         * modules/fchmodat (Depends-on): Likewise.
2821         * modules/fchownat (Depends-on): Likewise.
2822         * modules/fstatat (Depends-on): Likewise.
2823         * modules/mkfifoat (Depends-on): Likewise.
2824         * modules/readlinkat (Depends-on): Likewise.
2825         * modules/symlinkat (Depends-on): Likewise.
2826         * modules/unlinkat (Depends-on): Likewise.
2827         * modules/utimensat (Depends-on): Likewise.
2828         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
2829         * modules/linkat (Depends-on): Refine the conditions.
2830         * modules/renameat (Depends-on): Likewise.
2831
2832 2011-11-08  Bruno Haible  <bruno@clisp.org>
2833
2834         faccessat: Move AC_LIBOBJ invocation to module description.
2835         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
2836         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
2837         invocation from here...
2838         * modules/faccessat (configure.ac): ... to here. Invoke
2839         gl_PREREQ_FACCESSAT.
2840
2841 2011-11-08  Bruno Haible  <bruno@clisp.org>
2842
2843         faccessat: Simplify autoconf macro.
2844         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
2845         gl_FUNC_EUIDACCESS.
2846
2847 2011-11-08  Bruno Haible  <bruno@clisp.org>
2848
2849         renameat: Fix dependencies.
2850         * modules/renameat (Depends-on): Add stdbool.
2851
2852 2011-11-08  Bruno Haible  <bruno@clisp.org>
2853
2854         mkfifoat: Fix module description.
2855         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
2856         not gl_UNISTD_MODULE_INDICATOR.
2857
2858 2011-11-08  Bruno Haible  <bruno@clisp.org>
2859
2860         fstatat: Remove unused dependency.
2861         * modules/fstatat (Depends-on): Remove fstat.
2862
2863 2011-11-08  Simon Josefsson  <simon@josefsson.org>
2864
2865         GNUmakefile: behave when Makefile is missing.
2866         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
2867
2868 2011-11-08  Bruno Haible  <bruno@clisp.org>
2869
2870         openat: Conditionalize dependencies.
2871         * lib/openat.c: Reduce the scope of some #includes.
2872         * modules/openat (Depends-on): Add conditions.
2873
2874 2011-11-07  Jim Meyering  <meyering@redhat.com>
2875
2876         maint.mk: extract GPG key ID without using a temporary file
2877         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
2878         without using a temporary file.  Based on a suggestion from Werner Koch
2879         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
2880
2881 2011-11-07  Eric Blake  <eblake@redhat.com>
2882
2883         grantpt: fix typo
2884         * lib/stdlib.in.h (grantpt): Check correct function.
2885
2886         maint.mk: silence new syntax check
2887         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
2888
2889 2011-11-06  Bruno Haible  <bruno@clisp.org>
2890
2891         Doc about floating-point and math API.
2892         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
2893         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
2894
2895 2011-11-06  Bruno Haible  <bruno@clisp.org>
2896
2897         stdalign tests: Skip the test when compiled by Sun C.
2898         * tests/test-stdalign.c (main): Skip the test on Sun C.
2899
2900 2011-11-06  Bruno Haible  <bruno@clisp.org>
2901
2902         ansi-c++-opt: Complete the 2011-06-05 change.
2903         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
2904         does not support namespaces, set the variable to "no", not to ":".
2905
2906 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2907
2908         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
2909
2910 2011-11-06  Bruno Haible  <bruno@clisp.org>
2911
2912         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
2913         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
2914         (minus_zerol) [HP-UX]: New macro.
2915         (unary_minus) [HP-UX]: New function.
2916         (copysignl) [HP-UX]: Use unary_minus function.
2917
2918 2011-11-06  Bruno Haible  <bruno@clisp.org>
2919
2920         ldexp, ldexpf, ldexpl: Enhance tests.
2921         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
2922         and tests/test-ldexpl.c.
2923         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
2924         LDEXP, MIN_EXP, MAX_EXP): New macros.
2925         Include test-ldexp.h.
2926         (main): Just call test_function.
2927         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
2928         infinity.h, nan.h.
2929         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
2930         MAX_EXP): New macros.
2931         Include test-ldexp.h.
2932         (x, y): Remove variables.
2933         (main): Just call test_function.
2934         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
2935         infinity.h, nan.h.
2936         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
2937         MAX_EXP): New macros.
2938         Include test-ldexp.h.
2939         (x, y): Remove variables.
2940         (main): Just call test_function.
2941         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
2942         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
2943         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
2944         (Depends-on): Add isnand-nolibm, signbit, float.
2945         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
2946         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
2947         (Depends-on): Add isnanf-nolibm, signbit, float.
2948
2949 2011-11-06  Bruno Haible  <bruno@clisp.org>
2950
2951         math tests: Cosmetics.
2952         * tests/test-math-c++.cc: Reorder declarations.
2953
2954 2011-11-05  Bruno Haible  <bruno@clisp.org>
2955
2956         fma*: Simplify test.
2957         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
2958         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
2959
2960         Tests for module 'fmal'.
2961         * modules/fmal-tests: New file.
2962         * tests/test-fmal1.c: New file.
2963         * tests/test-fmal2.c: New file.
2964
2965         New module 'fmal'.
2966         * lib/math.in.h (fmal): New declaration.
2967         * lib/fmal.c: New file.
2968         * m4/fmal.m4: New file.
2969         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
2970         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
2971         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
2972         REPLACE_FMAL.
2973         * modules/fmal: New file.
2974         * doc/posix-functions/fmal.texi: Mention the new module and the various
2975         bugs.
2976
2977         Tests for module 'fmaf'.
2978         * modules/fmaf-tests: New file.
2979         * tests/test-fmaf1.c: New file.
2980         * tests/test-fmaf2.c: New file.
2981
2982         New module 'fmaf'.
2983         * lib/math.in.h (fmaf): New declaration.
2984         * lib/fmaf.c: New file.
2985         * m4/fmaf.m4: New file.
2986         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
2987         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
2988         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
2989         REPLACE_FMAF.
2990         * modules/fmaf: New file.
2991         * doc/posix-functions/fmaf.texi: Mention the new module and the various
2992         bugs.
2993
2994         Tests for module 'fma'.
2995         * modules/fma-tests: New file.
2996         * tests/test-fma1.c: New file.
2997         * tests/test-fma1.h: New file.
2998         * tests/test-fma2.c: New file.
2999         * tests/test-fma2.h: New file.
3000
3001         New module 'fma'.
3002         * lib/math.in.h (fma): New declaration.
3003         * lib/fma.c: New file.
3004         * m4/fma.m4: New file.
3005         * m4/fegetround.m4: New file.
3006         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
3007         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
3008         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
3009         REPLACE_FMA.
3010         * modules/fma: New file.
3011         * doc/posix-functions/fma.texi: Mention the new module and the various
3012         bugs.
3013
3014         Extend gl_MATHFUNC.
3015         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
3016         Support 'void' as argument type.
3017         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
3018
3019 2011-11-05  Jim Meyering  <meyering@redhat.com>
3020
3021         maint.mk: also prohibit inclusion of dirent.h without use
3022         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
3023
3024 2011-11-05  Bruno Haible  <bruno@clisp.org>
3025
3026         ldexpl tests: Avoid test failure on MSVC 9.
3027         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
3028         value. Needed in order to enforce the conversion from a value greater
3029         than LDBL_MAX to Infinity.
3030
3031 2011-11-05  Bruno Haible  <bruno@clisp.org>
3032
3033         New modules 'at-internal', 'openat-h', split off from module 'openat'.
3034         * modules/at-internal: New file, extracted from modules/openat.
3035         * modules/openat-h: New file.
3036         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
3037         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
3038         * modules/openat (Description): Add reference to POSIX function.
3039         (Files): Remove lib/openat.h, lib/openat-proc.c.
3040         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
3041         intprops, unistd.
3042         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
3043         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
3044         gl_FCNTL_MODULE_INDICATOR.
3045         (Include): Remove unistd.h, openat.h.
3046         * modules/areadlinkat (Files): Add lib/at-func.c.
3047         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3048         openat-die, openat-h, save-cwd.
3049         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
3050         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3051         openat-die, openat-h, save-cwd, unistd.
3052         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
3053         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3054         openat-h, save-cwd. Remove fcntl-h, openat.
3055         * modules/fchmodat (Files): Remove lib/openat.h.
3056         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3057         openat, stdbool, unistd.
3058         * modules/fchownat (Files): Remove lib/openat.h.
3059         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3060         openat, stdbool, sys_stat.
3061         * modules/fdopendir (Files): Remove lib/openat-priv.h,
3062         lib/openat-proc.c.
3063         (Depends-on): Add at-internal.
3064         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
3065         * modules/fstatat (Files): Remove lib/openat.h.
3066         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
3067         stdbool, unistd.
3068         * modules/fts (Depends-on): Add openat-h.
3069         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
3070         openat.
3071         * modules/mkdirat (Files): Remove lib/openat.h.
3072         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
3073         openat, stdbool, sys_stat.
3074         * modules/mkfifoat (Files): Add lib/at-func.c.
3075         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3076         openat-h, save-cwd. Remove fcntl-h, openat.
3077         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
3078         * modules/readlinkat (Files): Add lib/at-func.c.
3079         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3080         openat-h, save-cwd. Remove fcntl-h, openat.
3081         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
3082         openat.
3083         * modules/selinux-at (Files): Add lib/at-func.c.
3084         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
3085         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
3086         * modules/symlinkat (Files): Add lib/at-func.c.
3087         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
3088         openat-h, save-cwd. Remove fcntl-h, openat.
3089         * modules/unlinkat (Files): Remove lib/openat.h.
3090         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
3091         stdbool.
3092         * modules/utimensat (Files): Add lib/at-func.c.
3093         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
3094         openat-die, openat-h, save-cwd.
3095         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
3096         * modules/fdutimensat-tests (Depends-on): Add openat.
3097         * modules/fstatat-tests (Depends-on): Add openat-h.
3098         * modules/readlinkat-tests (Depends-on): Add openat.
3099         * modules/symlinkat-tests (Depends-on): Add openat.
3100
3101 2011-11-05  Bruno Haible  <bruno@clisp.org>
3102
3103         openat: Include <stdbool.h>.
3104         * lib/openat.c: Include <stdbool.h>.
3105
3106 2011-11-04  Bruno Haible  <bruno@clisp.org>
3107
3108         fchownat, renameat, unlinkat: Fix dependencies.
3109         * modules/fchownat (Depends-on): Add fstatat.
3110         * modules/renameat (Depends-on): Likewise.
3111         * modules/unlinkat (Depends-on): Likewise.
3112
3113 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
3114
3115         openat: remove direct dependency on dirent
3116         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
3117         and hasn't been needed ever since fdopendir was split into its own
3118         module on 2009-08-31.
3119         * modules/openat (Depends-on): Remove dirent.
3120
3121 2011-11-04  Bruno Haible  <bruno@clisp.org>
3122
3123         renameat: Optimize code size.
3124         * modules/renameat (configure.ac): Don't compile at-func2.c if
3125         REPLACE_RENAMEAT is 1.
3126
3127 2011-11-04  Bruno Haible  <bruno@clisp.org>
3128
3129         openat tests: Fix file list.
3130         * modules/openat-tests (Files): Add tests/test-open.h.
3131
3132 2011-11-04  Bruno Haible  <bruno@clisp.org>
3133
3134         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
3135         * modules/fchmodat (Depends-on): Add openat-die.
3136         * modules/fchownat (Depends-on): Likewise.
3137         * modules/linkat (Depends-on): Likewise.
3138         * modules/renameat (Depends-on): Likewise.
3139         * modules/openat (Depends-on): Add dirent.
3140
3141 2011-11-04  Jim Meyering  <meyering@redhat.com>
3142
3143         at-func*.c: fix comments
3144         * lib/at-func2.c: Correct/improve first-line comment.
3145         * lib/at-func.c: Correct grammar in first-line comment.
3146
3147 2011-11-04  Bruno Haible  <bruno@clisp.org>
3148
3149         New module 'mkdirat', split off from module 'openat'.
3150         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
3151         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
3152         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
3153         * modules/mkdirat: New file, extracted from modules/openat.
3154         * modules/openat (Files): Remove lib/mkdirat.c.
3155         (Depends-on): Remove mkdir.
3156         (configure.ac): Remove AC_LIBOBJ of mkdirat.
3157         (Include): Remove <sys/stat.h>.
3158         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
3159         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
3160         tests/test-mkdir.h.
3161         (Depends-on): Remove ignore-value.
3162         (Makefile.am): Remove rules for test-mkdirat.
3163         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
3164         of module 'openat'.
3165         * NEWS: Mention the change.
3166
3167 2011-11-04  Bruno Haible  <bruno@clisp.org>
3168
3169         closedir: Avoid warning on mingw.
3170         * lib/closedir.c: Include <unistd.h>.
3171
3172 2011-11-04  Bruno Haible  <bruno@clisp.org>
3173
3174         New module 'fstatat', split off from module 'openat'.
3175         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
3176         defined.
3177         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
3178         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
3179         gl_FUNC_FSTATAT.
3180         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
3181         * modules/fstatat: New file, extracted from modules/openat.
3182         * modules/openat (Files): Remove lib/fstatat.c.
3183         (Depends-on): Remove lstat.
3184         (configure.ac): Remove AC_LIBOBJ of fstatat.
3185         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
3186         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
3187         tests/test-lstat.h, tests/test-stat.h.
3188         (Depends-on): Remove getcwd-lgpl.
3189         (Makefile.am): Remove rules for test-fstatat.
3190         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
3191         of module 'openat'.
3192         * NEWS: Mention the change.
3193         * modules/getcwd (Depends-on): Add fstatat.
3194         * modules/linkat (Depends-on): Likewise.
3195         * modules/mkfifoat-tests (Depends-on): Likewise.
3196         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
3197
3198 2011-11-03  Bruno Haible  <bruno@clisp.org>
3199
3200         New module 'unlinkat', split off from module 'openat'.
3201         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
3202         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
3203         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
3204         * modules/unlinkat: New file, extracted from modules/openat. Correct
3205         the dependency conditions.
3206         * modules/openat (Files): Remove lib/unlinkat.c.
3207         (Depends-on): Remove rmdir, unlink.
3208         (configure.ac): Remove AC_LIBOBJ of unlinkat.
3209         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
3210         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
3211         tests/test-rmdir.h, tests/test-unlink.h.
3212         (Depends-on): Remove unlinkdir.
3213         (Makefile.am): Remove rules for test-unlinkat.
3214         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
3215         of module 'openat'.
3216         * NEWS: Mention the change.
3217         * modules/linkat-tests (Depends-on): Add unlinkat.
3218         * modules/mkfifoat-tests (Depends-on): Likewise.
3219         * modules/readlinkat-tests (Depends-on): Likewise.
3220
3221 2011-11-02  Bruno Haible  <bruno@clisp.org>
3222
3223         New module 'fchmodat', split off from module 'openat'.
3224         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
3225         defined.
3226         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
3227         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
3228         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
3229         * modules/fchmodat: New file, extracted from modules/openat.
3230         * modules/openat (Files): Remove lib/fchmodat.c.
3231         (configure.ac): Remove AC_LIBOBJ of fchmodat.
3232         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
3233         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
3234         (Makefile.am): Remove rules for test-fchmodat.
3235         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
3236         of module 'openat'.
3237         * NEWS: Mention the change.
3238
3239 2011-11-02  Jim Meyering  <meyering@redhat.com>
3240
3241         putenv: indent #definition of "environ" to placate cppi
3242         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
3243
3244         gitlog-to-changelog: provide a ChangeLog-repair mechanism
3245         Git logs are often treated as immutable, because editing them
3246         changes the SHA1 checksums of all descendants.  Thus, errors in
3247         git logs tend to stay there forever.  However, when we generate
3248         a ChangeLog file -- typically for distribution -- from that git log,
3249         we can actually make corrections in the generated file.  The key
3250         lies in recording in machine-readable/applicable form the desired
3251         corrections.  See --help for description and an example.
3252         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
3253         (usage): Describe it; alphabetize option descriptions.
3254         (main): Honor the new option, carefully.
3255
3256 2011-11-01  Jim Meyering  <meyering@redhat.com>
3257
3258         gitlog-to-changelog: avoid an infloop
3259         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
3260         that ends up being empty.
3261
3262 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3263
3264         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
3265         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
3266         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
3267         contains (possibly-quoted) backslashes.  This should avoid
3268         all-too-common shell bugs if COMPLICATED contains backslashes in
3269         the "wrong" places.  Reported by David Evans in
3270         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
3271         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
3272         because we want ASCII ranges.  Is there some reason we don't use
3273         the C locale everywhere in this script?
3274         (func_module, top level): Avoid unwanted pathname expansion when
3275         $repo_url_prefix or $repo_url_suffix_repl contain shell
3276         metacharacters like '?' and '*'.
3277
3278 2011-11-01  Bruno Haible  <bruno@clisp.org>
3279
3280         fchownat: Improve description.
3281         * modules/fchownat (Description): Add link to function.
3282
3283 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3284
3285         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
3286         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
3287         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
3288         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
3289
3290 2011-11-01  Bruno Haible  <bruno@clisp.org>
3291
3292         alignof: Avoid collision with stdalign module.
3293         * lib/alignof.h (alignof): Remove macro.
3294         * NEWS: Mention the change.
3295         Reported by Paul Eggert.
3296
3297 2011-11-01  Bruno Haible  <bruno@clisp.org>
3298
3299         New module 'fchownat', split off from module 'openat'.
3300         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
3301         defined.
3302         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
3303         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
3304         invoke gl_FUNC_FCHOWNAT.
3305         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
3306         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
3307         * modules/fchownat: New file, extracted from modules/openat.
3308         * modules/openat (Files): Remove lib/fchownat.c.
3309         (Depends-on): Remove lchown.
3310         (configure.ac): Remove AC_LIBOBJ of fchownat.
3311         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
3312         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
3313         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
3314         (Depends-on): Remove mgetgroups, usleep, stat-time.
3315         (configure.ac): Remove test for getegid.
3316         (Makefile.am): Remove rules for test-fchownat.
3317         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
3318         of module 'openat'.
3319         * NEWS: Mention the change.
3320
3321 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
3322
3323         stdalign: port better to MSVC and to Sun C 5.11
3324         This fixes some of the problems reported by Bruno Haible in
3325         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
3326         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
3327         shortcomings of MSVC and of Sun C 5.11.
3328         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
3329         around __declspec arg.
3330         * modules/stdalign-tests (Files): Add tests/macros.h.
3331         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
3332         Include macros.h, for ASSERT.
3333         (DECLARE_ALIGNED): Remove.
3334         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
3335         to catch bug), and to 1 if not (simplifies the rest of the code).
3336         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
3337         (CHECK_AUTO): Remove.
3338         (CHECK_ALIGNED): Check only the alignment of the static vars,
3339         since auto var alignment isn't supported by Sun C 5.11.
3340         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
3341         ASSERT failures are easier to diagnose.
3342
3343 2011-10-31  Bruno Haible  <bruno@clisp.org>
3344
3345         doc about some IRIX 5.3 problems.
3346         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
3347         on IRIX 5.3.
3348         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
3349         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
3350         5.3.
3351         * doc/posix-functions/grantpt.texi: Likewise.
3352         * doc/posix-functions/unlockpt.texi: Likewise.
3353         * doc/posix-functions/lgamma.texi: Likewise.
3354         * doc/posix-functions/nextafter.texi: Likewise.
3355         * doc/posix-functions/remainder.texi: Likewise.
3356         * doc/posix-functions/select.texi: Mention misplaced declaration on
3357         IRIX 5.3.
3358         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3359
3360 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
3361
3362         gitlog-to-changelog: fix git-log invocation.
3363         git-log mishandles date strings before 1970-01-01 UTC, and there is
3364         no use to specify --since=1970-01-01 by default anyway.
3365         * build-aux/gitlog-to-changelog: By default, when no --since option
3366         was given, do not specify explicit --since option to git-log.
3367
3368 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
3369
3370         gitlog-to-changelog: new option --append-dot.
3371         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
3372         first non-blank line of each commit message terminated with a dot.
3373
3374 2011-10-30  Bruno Haible  <bruno@clisp.org>
3375
3376         ffsl, ffsll: Avoid compilation error due to 'restrict'.
3377         * lib/ffsl.h: Include <config.h>.
3378         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
3379
3380 2011-10-30  Jim Meyering  <meyering@redhat.com>
3381
3382         GNUmakefile: reenable "make syntax-check" for most projects
3383         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
3384         build-aux variable", "syntax-check" would do nothing but succeed with
3385         the "No version control files detected..." diagnostic (unless you
3386         happened to override _build-aux via cfg.mk).
3387         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
3388         to precede inclusion of maint.mk.  Otherwise, these variables would
3389         be used undefined in any project that does not override the default.
3390
3391 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
3392
3393         gitlog-to-changelog: treat a message with only blank lines as empty.
3394         * build-aux/gitlog-to-changelog: Move the code that removes leading and
3395         trailing blank lines before the code that issues a warning about an
3396         empty commit message.
3397
3398 2011-10-30  Jim Meyering  <meyering@redhat.com>
3399
3400         test-parse-datetime.c: avoid new DST-related false positive test failure
3401         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
3402         based on the time/date we'll convert, not the current time.
3403         Otherwise, the moment we cross a DST boundary like today's in
3404         Europe, (CEST to CET), that offset ends up being one hour off.
3405
3406 2011-10-27  Bruno Haible  <bruno@clisp.org>
3407
3408         fstat: Tweak documentation.
3409         * modules/fstat (Description): More precise description.
3410
3411 2011-10-27  Bruno Haible  <bruno@clisp.org>
3412
3413         Update documentation regarding 'largefile' module.
3414         * doc/posix-functions/fstat.texi: Tweak wording.
3415         * doc/posix-functions/opendir.texi: Mention that the module fixes the
3416         problems with huge directories and/or small ino_t types.
3417         * doc/posix-functions/readdir.texi: Likewise.
3418         * doc/posix-functions/rewinddir.texi: Likewise.
3419
3420 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
3421
3422         maint.mk: don't maintain a second build-aux variable.
3423         * maint.mk (build_aux): Removed.  The maintainer-makefile module
3424         depends on GNUmakefile, which already maintains a cfg.mk
3425         overridable $(_build-aux) for projects with a non-standard
3426         build-aux directory location, although without the $(srcdir)
3427         prefix.  Use that variable consistently instead of introducing a
3428         second one.  Adjust all call sites.
3429
3430 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
3431
3432         Add stdalign module and use it in other modules.
3433         This is based on a previous proposal by Bruno Haible
3434         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
3435
3436         stdalign: new module
3437         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
3438         * modules/stdalign: New files.
3439         * MODULES.html.sh (c1x_core_properties): Add stdalign.
3440         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
3441
3442         stdalign-tests: new module
3443         * modules/stdalign-tests, tests/test-stdalign.c: New files.
3444
3445         argp: use stdalign
3446         * lib/argp-parse.c: Include <stdalign.h>.
3447         (alignof): Remove.
3448         * modules/argp (Depends-on): Add stdalign.
3449
3450         crypto libraries: use stdalign
3451         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
3452         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
3453         Do not include <stdlib.h> twice, in md4.c.
3454         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
3455         because we are accessing a pointer's bit-pattern, not a size.
3456         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
3457         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
3458         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
3459         * modules/crypto/sha512: Likewise.
3460
3461         sys_socket: use stdalign, not alignof
3462         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
3463         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
3464
3465 2011-10-27  Bruno Haible  <bruno@clisp.org>
3466
3467         raise test: Avoid a test failure on Linux/MIPS.
3468         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
3469         because 99 is a valid signal on Linux/MIPS.
3470
3471 2011-10-27  Bruno Haible  <bruno@clisp.org>
3472
3473         nonblocking tests: Fix test failure on Linux/MIPS.
3474         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
3475         Set to 270000.
3476
3477 2011-10-27  Bruno Haible  <bruno@clisp.org>
3478
3479         utimensat: Work around problem on Linux/hppa.
3480         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
3481         values.
3482         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
3483
3484 2011-10-25  Jim Meyering  <meyering@redhat.com>
3485
3486         maint.mk: fix a bug in sc_prohibit_stddef_without_use
3487         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
3488         after symbols like NULL, size_t, etc.
3489         Reported by Alfred M. Szmidt.
3490
3491         maint.mk: exempt ENODATA from a syntax-check rule
3492         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
3493         from the sc_prohibit_always-defined_macros syntax-check rule.
3494         Add a comment.  See this for more details:
3495         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
3496
3497 2011-10-23  Jim Meyering  <meyering@redhat.com>
3498
3499         fts: close parent dir FD before returning from post-traversal fts_read
3500         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
3501         unlink A, even though an FD open on A remained.  This is suboptimal
3502         (holding a file descriptor open longer than needed), but otherwise not
3503         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
3504         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
3505         that represents a real problem: it causes the removal of A to fail
3506         with e.g., "rm: cannot remove `A': Device or resource busy"
3507
3508         fts visits each directory twice and keeps a cache (fts_fd_ring) of
3509         directory file descriptors.  After completing the final, FTS_DP,
3510         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
3511         cache, but then proceeded to add a new FD to it via the subsequent
3512         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
3513         final file descriptor would be closed only via fts_close's call to
3514         fd_ring_clear.  Now, it is usually closed earlier, via the final
3515         FTS_DP-returning fts_read call.
3516         * lib/fts.c (restore_initial_cwd): New function, converted from
3517         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
3518         Update callers.
3519         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
3520         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
3521
3522 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
3523             Bruno Haible  <bruno@clisp.org>
3524             Jim Meyering  <jim@meyering.net>
3525
3526         readme-release: improve safety of release prep instructions.
3527         * README-release: Don't git pull all branches when only master
3528         is needed for the release process.
3529         Run make maintainer-clean before changing trees and merging.
3530         Don't try to run ./configure right after git pull in case files
3531         that influence the bootstrap process have changed, move the
3532         ./configure step to after running ./bootstrap.
3533         Don't bootstrap "one last time"... it's the first time!
3534
3535 2011-10-22  Bruno Haible  <bruno@clisp.org>
3536
3537         errno, strerror-override: Support for MSVC 10.
3538         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
3539         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
3540         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
3541         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
3542         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
3543         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
3544         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
3545         Assign values compatible with MSVC 10.
3546         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
3547         New macros.
3548         (GNULIB_defined_EWINSOCK): New macro.
3549         * lib/strerror-override.c (strerror_override): Update accordingly.
3550         * lib/strerror-override.h: Likewise.
3551         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
3552         longer equal to the corresponding errno value.
3553         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3554
3555 2011-10-22  Bruno Haible  <bruno@clisp.org>
3556
3557         perror: Recognize when test program crashes.
3558         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
3559         strerror, set gl_cv_func_perror_works to no.
3560         Reported by Daniel Richard G. <skunk@iskunk.org>.
3561
3562         perror: Fix indentation.
3563         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
3564
3565 2011-10-22  Bruno Haible  <bruno@clisp.org>
3566
3567         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
3568         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
3569         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
3570         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
3571         functions, not as a macro.
3572         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
3573         macros.
3574         (isfinite, isinf, isnan, signbit): Check overloaded functions and
3575         absence of macro.
3576         Suggested by Eric Blake.
3577         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3578
3579 2011-10-21  Bruno Haible  <bruno@clisp.org>
3580
3581         relocatable-prog-wrapper: Don't leave object files behind.
3582         * build-aux/install-reloc: Re-synchronize list of .o files to be
3583         removed with list of compilation units.
3584
3585 2011-10-20  Bruno Haible  <bruno@clisp.org>
3586
3587         openpty, posix_openpt: Remove code duplication.
3588         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
3589         * lib/openpty.c: Include <stdlib.h>.
3590         (openpty): Use posix_openpt on all platforms except IRIX.
3591         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
3592
3593 2011-10-20  Bruno Haible  <bruno@clisp.org>
3594
3595         unlockpt: Detect invalid argument.
3596         * lib/unlockpt.c: Include <fcntl.h>.
3597         (unlockpt): Check whether fd is valid, using fcntl().
3598         * modules/unlockpt (Depends-on): Add fcntl-h.
3599
3600 2011-10-20  Bruno Haible  <bruno@clisp.org>
3601
3602         openpty: Avoid compilation error on AIX 6.1.
3603         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
3604
3605 2011-10-20  Bruno Haible  <bruno@clisp.org>
3606
3607         posix_openpt: Support for OpenBSD.
3608         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
3609         (posix_openpt) [OpenBSD]: New code.
3610         * lib/grantpt.c: Include <fcntl.h>.
3611         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
3612         * modules/grantpt (Depends-on): Add fcntl-h.
3613
3614 2011-10-20  Bruno Haible  <bruno@clisp.org>
3615
3616         posix_openpt test: Coding style.
3617         * tests/test-posix_openpt.c: Use GNU coding style.
3618
3619 2011-10-20  Bruno Haible  <bruno@clisp.org>
3620
3621         grantpt: Support --avoid=pt_chown.
3622         * modules/grantpt (Files): Add lib/pty-private.h.
3623
3624 2011-10-20  Bruno Haible  <bruno@clisp.org>
3625
3626         posix_openpt: Fix autoconf macro.
3627         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
3628         unneeded check for _getpty.
3629
3630 2011-10-20  Bruno Haible  <bruno@clisp.org>
3631
3632         openpty: Update comments.
3633         * lib/openpty.c: Add comments about Minix.
3634
3635 2011-10-19  Eric Blake  <eblake@redhat.com>
3636
3637         openpty: relax license
3638         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
3639
3640         pt_chown: use configmake to simplify build
3641         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
3642
3643         ptsname and others: relax license
3644         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
3645         * modules/unlockpt (License): Likewise.
3646         * modules/pt_chown (License): Likewise.
3647         * modules/ptsname (License): Likewise.
3648         * modules/ttyname_r (License): Likewise.
3649
3650 2011-10-19  Jim Meyering  <meyering@redhat.com>
3651
3652         posix_openpt: remove spurious #endif
3653         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
3654
3655 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
3656
3657         maint.mk: Respect $(build_aux) in web-manual rule.
3658         * top/maint.mk (web-manual): Find gen-announce script in user's
3659         $(build_aux) directory instead of hard-coding 'build-aux'.
3660
3661 2011-10-19  Bruno Haible  <bruno@clisp.org>
3662
3663         posix_openpt: Fix compilation error.
3664         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
3665         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
3666         Mention the openpty module as an alternative.
3667
3668 2011-10-19  Bruno Haible  <bruno@clisp.org>
3669
3670         Support for old NeXTstep 3.3 frexp().
3671         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
3672         execution time of the test to 5 seconds.
3673         Reported by Daniel Richard G. <skunk@iskunk.org>.
3674
3675 2011-10-19  Bruno Haible  <bruno@clisp.org>
3676
3677         Support for old NeXTstep 3.3 sed.
3678         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
3679         part, use /.../, not \|...|. Escape periods in the header file name.
3680         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3681         Reported by Daniel Richard G. <skunk@iskunk.org>.
3682
3683 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3684
3685         Support for old NeXTstep 3.3 gcc.
3686         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
3687         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
3688         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
3689         * lib/spawn.in.h (_Restrict_arr_): Likewise.
3690         * lib/regex.h (_Restrict_arr_): Likewise.
3691         * lib/regex_internal.h (re_token_t): Likewise.
3692         * lib/regexec.c (check_node_accept_bytes): Likewise.
3693         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
3694
3695 2011-10-18  Eric Blake  <eblake@redhat.com>
3696
3697         posix_openpt: new module
3698         * modules/posix_openpt: New module.
3699         * m4/posix_openpt.m4: New file.
3700         * lib/posix_openpt.c: Likewise.
3701         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
3702         (gl_STDLIB_H_DEFAULTS): Set defaults.
3703         * modules/stdlib (Makefile.am): Substitute macros.
3704         * lib/stdlib.in.h (posix_openpt): Declare.
3705         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
3706         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
3707         * modules/posix_openpt-tests: New test module.
3708         * tests/test-posix_openpt.c: New test.
3709
3710 2011-10-15  Bruno Haible  <bruno@clisp.org>
3711
3712         xstrtoll: Fix compilation failure.
3713         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
3714         from lib/strtol.c.
3715         * doc/posix-headers/limits.texi: Mention missing numerical limits on
3716         some platforms.
3717         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3718
3719 2011-10-15  Bruno Haible  <bruno@clisp.org>
3720
3721         vasnprintf: Optimize bit search operation.
3722         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
3723         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
3724         gl_DOUBLE_EXPONENT_LOCATION.
3725         * modules/vasnprintf (Files): Add m4/exponentd.m4.
3726         * modules/unistdio/u8-vasnprintf (Files): Likewise.
3727         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
3728         * modules/unistdio/u16-vasnprintf (Files): Likewise.
3729         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
3730         * modules/unistdio/u32-vasnprintf (Files): Likewise.
3731         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
3732         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
3733         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
3734
3735 2011-10-15  Bruno Haible  <bruno@clisp.org>
3736
3737         vasnprintf: Fix comments.
3738         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
3739
3740 2011-10-14  Bruno Haible  <bruno@clisp.org>
3741
3742         Tests for module 'integer_length_ll'.
3743         * modules/integer_length_ll-tests: New file.
3744         * tests/test-integer_length_ll.c: New file.
3745
3746         New module 'integer_length_ll'.
3747         * lib/integer_length_ll.c: New file.
3748         * modules/integer_length_ll: New file.
3749
3750 2011-10-14  Bruno Haible  <bruno@clisp.org>
3751
3752         Tests for module 'integer_length_l'.
3753         * modules/integer_length_l-tests: New file.
3754         * tests/test-integer_length_l.c: New file.
3755
3756         New module 'integer_length_l'.
3757         * lib/integer_length_l.c: New file.
3758         * modules/integer_length_l: New file.
3759
3760 2011-10-14  Bruno Haible  <bruno@clisp.org>
3761
3762         Tests for module 'integer_length'.
3763         * modules/integer_length-tests: New file.
3764         * tests/test-integer_length.c: New file.
3765
3766         New module 'integer_length'.
3767         * lib/integer_length.h: New file.
3768         * lib/integer_length.c: New file.
3769         * modules/integer_length: New file.
3770
3771 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3772
3773         popen: Fix dependency conditions.
3774         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
3775
3776 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3777
3778         perror: Fix autoconf test.
3779         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
3780         <stdlib.h> and <string.h>.
3781
3782 2011-10-14  Bruno Haible  <bruno@clisp.org>
3783
3784         ffsl: Optimize on 64-bit platforms.
3785         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
3786         unrolling.
3787
3788 2011-10-13  Bruno Haible  <bruno@clisp.org>
3789
3790         ffsl: Optimize on 32-bit platforms.
3791         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
3792         use ffs() without a loop.
3793
3794         ffsl, ffsll: Optimize for GCC.
3795         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
3796         * lib/ffsl.c (GCC_BUILTIN): New macro.
3797         * lib/ffsll.c (GCC_BUILTIN): Likewise.
3798
3799 2011-10-13  Bruno Haible  <bruno@clisp.org>
3800
3801         ffs, bcopy, memset: Support symbol renaming via config.h.
3802         * lib/ffs.c: Include <config.h>.
3803         * lib/bcopy.c: Likewise.
3804         * lib/memset.c: Likewise.
3805
3806 2011-10-10  Bruno Haible  <bruno@clisp.org>
3807
3808         atanl: Simplify for platforms where 'long double' == 'double'.
3809         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3810         alternative implementation.
3811         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3812         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3813         * modules/atanl (Depends-on): Add atan. Update conditions.
3814
3815 2011-10-10  Bruno Haible  <bruno@clisp.org>
3816
3817         acosl: Simplify for platforms where 'long double' == 'double'.
3818         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3819         alternative implementation.
3820         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3821         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3822         * modules/acosl (Depends-on): Add acos. Update conditions.
3823
3824 2011-10-10  Bruno Haible  <bruno@clisp.org>
3825
3826         asinl: Simplify for platforms where 'long double' == 'double'.
3827         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3828         alternative implementation.
3829         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3830         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3831         * modules/asinl (Depends-on): Add asin. Update conditions.
3832
3833 2011-10-10  Bruno Haible  <bruno@clisp.org>
3834
3835         tanl: Simplify for platforms where 'long double' == 'double'.
3836         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3837         implementation.
3838         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3839         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3840         * modules/tanl (Depends-on): Add tan. Update conditions.
3841         (configure.ac): Don't compile trigl.c if
3842         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3843
3844 2011-10-10  Bruno Haible  <bruno@clisp.org>
3845
3846         cosl: Simplify for platforms where 'long double' == 'double'.
3847         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3848         implementation.
3849         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3850         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3851         * modules/cosl (Depends-on): Add cos. Update conditions.
3852         (configure.ac): Don't compile sincosl.c and trigl.c if
3853         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3854
3855 2011-10-10  Bruno Haible  <bruno@clisp.org>
3856
3857         sinl: Simplify for platforms where 'long double' == 'double'.
3858         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3859         implementation.
3860         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3861         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3862         * modules/sinl (Depends-on): Add sin. Update conditions.
3863         (configure.ac): Don't compile sincosl.c and trigl.c if
3864         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3865
3866 2011-10-10  Bruno Haible  <bruno@clisp.org>
3867
3868         logl: Simplify for platforms where 'long double' == 'double'.
3869         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3870         implementation.
3871         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3872         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3873         * modules/logl (Depends-on): Add log. Update conditions.
3874
3875 2011-10-10  Bruno Haible  <bruno@clisp.org>
3876
3877         expl: Simplify for platforms where 'long double' == 'double'.
3878         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3879         implementation.
3880         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3881         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3882         * modules/expl (Depends-on): Add exp. Update conditions.
3883
3884 2011-10-10  Bruno Haible  <bruno@clisp.org>
3885
3886         sqrtl: Simplify for platforms where 'long double' == 'double'.
3887         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3888         alternative implementation.
3889         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3890         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3891         * modules/sqrtl (Depends-on): Update conditions.
3892
3893 2011-10-10  Bruno Haible  <bruno@clisp.org>
3894
3895         ldexpl: Simplify for platforms where 'long double' == 'double'.
3896         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3897         alternative implementation.
3898         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3899         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3900         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
3901
3902 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
3903
3904         ffsll: set correct witness
3905         * modules/ffsll (configure.ac): Fix typo.
3906
3907 2011-10-10  Bruno Haible  <bruno@clisp.org>
3908
3909         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
3910         * lib/printf-frexpl.c: Include <config.h>.
3911         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3912         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
3913         second time.
3914         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
3915         gl_LONG_DOUBLE_VS_DOUBLE.
3916         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
3917         conditions.
3918
3919 2011-10-10  Bruno Haible  <bruno@clisp.org>
3920
3921         frexpl: Simplify for platforms where 'long double' == 'double'.
3922         * lib/frexpl.c: Include <config.h>.
3923         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3924         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3925         time.
3926         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3927         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3928         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
3929         * modules/frexpl (Depends-on): Add frexp. Update conditions.
3930         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
3931         conditions.
3932
3933 2011-10-10  Jim Meyering  <meyering@redhat.com>
3934
3935         test-renameat: don't leave behind a temporary file
3936         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
3937           ERROR: files left in build directory after distclean:
3938           ./gltests/test-renameat.too
3939           make[1]: *** [distcleancheck] Error 1
3940         Reported by Tom G. Christensen.
3941
3942 2011-10-09  Bruno Haible  <bruno@clisp.org>
3943
3944         rint: Determine RINT_LIBM correctly on AIX 7.
3945         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
3946         directly, not only through a function pointer. Also accept an optional
3947         4th argument with extra code.
3948         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
3949         rintf() call by gcc when optimizing.
3950
3951         mathfunc.m4: Refactor.
3952         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
3953         m4 variable.
3954
3955 2011-10-09  Bruno Haible  <bruno@clisp.org>
3956
3957         rintl: Simplify for platforms where 'long double' == 'double'.
3958         * lib/rintl.c: Include <config.h>.
3959         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3960         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3961         time.
3962         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3963         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3964         * modules/rintl (Depends-on): Add rint. Update conditions.
3965
3966 2011-10-09  Bruno Haible  <bruno@clisp.org>
3967
3968         roundl: Simplify for platforms where 'long double' == 'double'.
3969         * lib/roundl.c: Include <config.h>.
3970         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3971         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3972         time.
3973         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3974         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3975         * modules/roundl (Depends-on): Add round. Update conditions.
3976
3977 2011-10-09  Bruno Haible  <bruno@clisp.org>
3978
3979         truncl: Simplify for platforms where 'long double' == 'double'.
3980         * lib/truncl.c: Include <config.h>.
3981         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3982         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3983         time.
3984         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3985         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3986         * modules/truncl (Depends-on): Add trunc. Update conditions.
3987
3988 2011-10-09  Bruno Haible  <bruno@clisp.org>
3989
3990         ceill: Simplify for platforms where 'long double' == 'double'.
3991         * lib/ceill.c: Include <config.h>.
3992         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3993         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3994         time.
3995         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3996         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3997         * modules/ceill (Depends-on): Add ceil. Update conditions.
3998
3999 2011-10-09  Bruno Haible  <bruno@clisp.org>
4000
4001         floorl: Simplify for platforms where 'long double' == 'double'.
4002         * lib/floorl.c: Include <config.h>.
4003         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
4004         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
4005         time.
4006         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4007         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4008         * modules/floorl (Depends-on): Add floor. Update conditions.
4009
4010 2011-10-09  Bruno Haible  <bruno@clisp.org>
4011
4012         rint: Fix ordering constraints.
4013         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
4014         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
4015         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
4016
4017 2011-10-09  Bruno Haible  <bruno@clisp.org>
4018
4019         copysignl: Simplify for platforms where 'long double' == 'double'.
4020         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
4021         alternative.
4022         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4023         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
4024         * modules/copysignl (Depends-on): Add copysign. Update conditions.
4025
4026 2011-10-09  Bruno Haible  <bruno@clisp.org>
4027
4028         Tests for module 'rintl'.
4029         * modules/rintl-tests: New file.
4030         * tests/test-rintl.c: New file.
4031
4032         New module 'rintl'.
4033         * lib/math.in.h (rintl): New declaration.
4034         * lib/rintl.c: New file.
4035         * m4/rintl.m4: New file.
4036         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
4037         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
4038         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
4039         * modules/rintl: New file.
4040         * tests/test-math-c++.cc: Check the declaration of rintl.
4041         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4042         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
4043         * doc/posix-functions/rintl.texi: Mention the new module.
4044
4045 2011-10-09  Bruno Haible  <bruno@clisp.org>
4046
4047         Tests for module 'rintf'.
4048         * modules/rintf-tests: New file.
4049         * tests/test-rintf.c: New file.
4050
4051         New module 'rintf'.
4052         * lib/math.in.h (rintf): New declaration.
4053         * lib/rintf.c: New file.
4054         * m4/rintf.m4: New file.
4055         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
4056         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
4057         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
4058         * modules/rintf: New file.
4059         * tests/test-math-c++.cc: Check the declaration of rintf.
4060         * doc/posix-functions/rintf.texi: Mention the new module.
4061
4062 2011-10-09  Bruno Haible  <bruno@clisp.org>
4063
4064         rint: Support for MSVC.
4065         * lib/math.in.h (rint): New declaration.
4066         * lib/rint.c: New file.
4067         * m4/rint.m4: New file.
4068         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
4069         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
4070         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
4071         * modules/rint (Description): Fix.
4072         (Files): Add lib/rint.c, m4/rint.m4.
4073         (Depends-on): Add math.
4074         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
4075         gl_MATH_MODULE_INDICATOR.
4076         * tests/test-math-c++.cc: Check the declaration of rint.
4077         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4078         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
4079         * doc/posix-functions/rint.texi: Mention the replacement provided by
4080         the module.
4081
4082         rint tests: More tests.
4083         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
4084         minus-zero.h, infinity.h, nan.h.
4085         (main): Skip the test if the current rounding mode is not standard. Add
4086         tests for negative numbers, minus zero, infinity, NaN.
4087         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
4088         tests/nan.h.
4089         (Depends-on): Add isnand-nolibm.
4090
4091 2011-10-09  Bruno Haible  <bruno@clisp.org>
4092
4093         Tests for module 'copysignl'.
4094         * modules/copysignl-tests: New file.
4095         * tests/test-copysignl.c: New file.
4096
4097         New module 'copysignl'.
4098         * lib/math.in.h (copysignl): New declaration.
4099         * lib/copysignl.c: New file.
4100         * m4/copysignl.m4: New file.
4101         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
4102         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
4103         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
4104         HAVE_COPYSIGNL.
4105         * modules/copysignl: New file.
4106         * tests/test-math-c++.cc: Check the declaration of copysignl.
4107         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
4108         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
4109         * doc/posix-functions/copysignl.texi: Mention the new module.
4110
4111 2011-10-09  Bruno Haible  <bruno@clisp.org>
4112
4113         Tests for module 'copysignf'.
4114         * modules/copysignf-tests: New file.
4115         * tests/test-copysignf.c: New file.
4116
4117         New module 'copysignf'.
4118         * lib/math.in.h (copysignf): New declaration.
4119         * lib/copysignf.c: New file.
4120         * m4/copysignf.m4: New file.
4121         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
4122         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
4123         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
4124         HAVE_COPYSIGNF.
4125         * modules/copysignf: New file.
4126         * tests/test-math-c++.cc: Check the declaration of copysignf.
4127         * doc/posix-functions/copysignf.texi: Mention the new module.
4128
4129 2011-10-09  Bruno Haible  <bruno@clisp.org>
4130
4131         Ensure that HAVE_* variables are set to 1 before they are set to 0.
4132         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
4133         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
4134         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4135         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
4136         gl_SIGNAL_H_DEFAULTS.
4137
4138 2011-10-09  Bruno Haible  <bruno@clisp.org>
4139
4140         poll: Make macro safer.
4141         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
4142         ac_cv_header_poll_h is not set.
4143
4144 2011-10-09  Bruno Haible  <bruno@clisp.org>
4145
4146         copysign: Provide replacement.
4147         * lib/math.in.h (copysign): New declaration.
4148         * lib/copysign.c: New file.
4149         * m4/copysign.m4: New file.
4150         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
4151         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
4152         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
4153         HAVE_COPYSIGN.
4154         * modules/copysign (Description): Clarify.
4155         (Files): Add lib/copysign.c, m4/copysign.m4.
4156         (Depends-on): Add math, signbit.
4157         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
4158         gl_MATH_MODULE_INDICATOR.
4159         * tests/test-math-c++.cc: Check the declaration of copysign.
4160         * doc/posix-functions/copysign.texi: Mention the effects of the module
4161         on Minix and MSVC.
4162
4163 2011-10-09  Bruno Haible  <bruno@clisp.org>
4164
4165         isinf: Ensure macro on AIX 5.1.
4166         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
4167         macro.
4168         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
4169
4170 2011-10-09  Bruno Haible  <bruno@clisp.org>
4171
4172         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
4173         * modules/snprintf-posix-tests (configure.ac): Require
4174         gl_LONG_DOUBLE_VS_DOUBLE.
4175         * modules/sprintf-posix-tests (configure.ac): Likewise.
4176         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
4177         * modules/vasprintf-posix-tests (configure.ac): Likewise.
4178         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
4179         * modules/vsprintf-posix-tests (configure.ac): Likewise.
4180         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
4181         tests on platforms where 'long double' is the same as 'double'.
4182         * tests/test-sprintf-posix.h (test_function): Likewise.
4183         * tests/test-vasnprintf-posix.c (test_function): Likewise.
4184         * tests/test-vasprintf-posix.c (test_function): Likewise.
4185
4186         *printf: Fix for platforms where 'long double' == 'double'.
4187         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
4188         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
4189         * modules/dprintf-posix (Files): Add m4/math_h.m4.
4190         * modules/fprintf-posix (Files): Likewise.
4191         * modules/obstack-printf-posix (Files): Likewise.
4192         * modules/snprintf-posix (Files): Likewise.
4193         * modules/sprintf-posix (Files): Likewise.
4194         * modules/vasnprintf (Files): Likewise.
4195         * modules/vasnprintf-posix (Files): Likewise.
4196         * modules/vasprintf-posix (Files): Likewise.
4197         * modules/vdprintf-posix (Files): Likewise.
4198         * modules/vfprintf-posix (Files): Likewise.
4199         * modules/vsnprintf-posix (Files): Likewise.
4200         * modules/vsprintf-posix (Files): Likewise.
4201         * modules/unistdio/u8-vasnprintf (Files): Likewise.
4202         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
4203         * modules/unistdio/u16-vasnprintf (Files): Likewise.
4204         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
4205         * modules/unistdio/u32-vasnprintf (Files): Likewise.
4206         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
4207         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
4208
4209         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
4210         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
4211         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
4212         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
4213         'long double'.
4214         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
4215
4216         isinf: Fix for platforms where 'long double' == 'double'.
4217         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
4218         Don't blindly assume 80-bit 'long double'.
4219
4220         isfinite: Fix for platforms where 'long double' == 'double'.
4221         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
4222         Don't blindly assume 80-bit 'long double'.
4223
4224         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
4225         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
4226         * modules/isfinite-tests (configure.ac): Require
4227         gl_LONG_DOUBLE_VS_DOUBLE.
4228         * modules/isinf-tests (configure.ac): Likewise.
4229         * modules/isnan-tests (configure.ac): Likewise.
4230         * modules/isnanl-tests (configure.ac): Likewise.
4231         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
4232         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
4233         tests on platforms where 'long double' is the same as 'double'.
4234         * tests/test-isinf.c (test_isinfl): Likewise.
4235         * tests/test-isnan.c (test_long_double): Likewise.
4236         * tests/test-isnanl.h (main): Likewise.
4237
4238 2011-10-08  Bruno Haible  <bruno@clisp.org>
4239
4240         Tests for module 'tanhf'.
4241         * modules/tanhf-tests: New file.
4242         * tests/test-tanhf.c: New file.
4243
4244         New module 'tanhf'.
4245         * lib/math.in.h (tanhf): New declaration.
4246         * lib/tanhf.c: New file.
4247         * m4/tanhf.m4: New file.
4248         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
4249         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
4250         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
4251         * modules/tanhf: New file.
4252         * tests/test-math-c++.cc: Check the declaration of tanhf.
4253         * doc/posix-functions/tanhf.texi: Mention the new module.
4254
4255         tanh: Use a .m4 file.
4256         * m4/tanh.m4: New file.
4257         * modules/tanh (Files): Add it.
4258         (configure.ac): Just invoke gl_FUNC_TANH.
4259
4260 2011-10-08  Bruno Haible  <bruno@clisp.org>
4261
4262         Tests for module 'coshf'.
4263         * modules/coshf-tests: New file.
4264         * tests/test-coshf.c: New file.
4265
4266         New module 'coshf'.
4267         * lib/math.in.h (coshf): New declaration.
4268         * lib/coshf.c: New file.
4269         * m4/coshf.m4: New file.
4270         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
4271         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
4272         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
4273         * modules/coshf: New file.
4274         * tests/test-math-c++.cc: Check the declaration of coshf.
4275         * doc/posix-functions/coshf.texi: Mention the new module.
4276
4277         cosh: Use a .m4 file.
4278         * m4/cosh.m4: New file.
4279         * modules/cosh (Files): Add it.
4280         (configure.ac): Just invoke gl_FUNC_COSH.
4281
4282 2011-10-08  Bruno Haible  <bruno@clisp.org>
4283
4284         Tests for module 'sinhf'.
4285         * modules/sinhf-tests: New file.
4286         * tests/test-sinhf.c: New file.
4287
4288         New module 'sinhf'.
4289         * lib/math.in.h (sinhf): New declaration.
4290         * lib/sinhf.c: New file.
4291         * m4/sinhf.m4: New file.
4292         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
4293         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
4294         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
4295         * modules/sinhf: New file.
4296         * tests/test-math-c++.cc: Check the declaration of sinhf.
4297         * doc/posix-functions/sinhf.texi: Mention the new module.
4298
4299         sinh: Use a .m4 file.
4300         * m4/sinh.m4: New file.
4301         * modules/sinh (Files): Add it.
4302         (configure.ac): Just invoke gl_FUNC_SINH.
4303
4304 2011-10-08  Bruno Haible  <bruno@clisp.org>
4305
4306         Tests for module 'atan2f'.
4307         * modules/atan2f-tests: New file.
4308         * tests/test-atan2f.c: New file.
4309
4310         New module 'atan2f'.
4311         * lib/math.in.h (atan2f): New declaration.
4312         * lib/atan2f.c: New file.
4313         * m4/atan2f.m4: New file.
4314         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
4315         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
4316         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
4317         * modules/atan2f: New file.
4318         * tests/test-math-c++.cc: Check the declaration of atan2f.
4319         * doc/posix-functions/atan2f.texi: Mention the new module.
4320
4321         atan2: Use a .m4 file.
4322         * m4/atan2.m4: New file.
4323         * modules/atan2 (Files): Add it.
4324         (configure.ac): Just invoke gl_FUNC_ATAN2.
4325
4326 2011-10-08  Bruno Haible  <bruno@clisp.org>
4327
4328         Tests for module 'atanf'.
4329         * modules/atanf-tests: New file.
4330         * tests/test-atanf.c: New file.
4331
4332         New module 'atanf'.
4333         * lib/math.in.h (atanf): New declaration.
4334         * lib/atanf.c: New file.
4335         * m4/atanf.m4: New file.
4336         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
4337         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
4338         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
4339         * modules/atanf: New file.
4340         * tests/test-math-c++.cc: Check the declaration of atanf.
4341         * doc/posix-functions/atanf.texi: Mention the new module.
4342
4343         atan: Use a .m4 file.
4344         * m4/atan.m4: New file.
4345         * modules/atan (Files): Add it.
4346         (configure.ac): Just invoke gl_FUNC_ATAN.
4347
4348 2011-10-08  Bruno Haible  <bruno@clisp.org>
4349
4350         Tests for module 'acosf'.
4351         * modules/acosf-tests: New file.
4352         * tests/test-acosf.c: New file.
4353
4354         New module 'acosf'.
4355         * lib/math.in.h (acosf): New declaration.
4356         * lib/acosf.c: New file.
4357         * m4/acosf.m4: New file.
4358         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
4359         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
4360         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
4361         * modules/acosf: New file.
4362         * tests/test-math-c++.cc: Check the declaration of acosf.
4363         * doc/posix-functions/acosf.texi: Mention the new module.
4364
4365         acos: Use a .m4 file.
4366         * m4/acos.m4: New file.
4367         * modules/acos (Files): Add it.
4368         (configure.ac): Just invoke gl_FUNC_ACOS.
4369
4370 2011-10-08  Bruno Haible  <bruno@clisp.org>
4371
4372         Tests for module 'asinf'.
4373         * modules/asinf-tests: New file.
4374         * tests/test-asinf.c: New file.
4375
4376         New module 'asinf'.
4377         * lib/math.in.h (asinf): New declaration.
4378         * lib/asinf.c: New file.
4379         * m4/asinf.m4: New file.
4380         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
4381         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
4382         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
4383         * modules/asinf: New file.
4384         * tests/test-math-c++.cc: Check the declaration of asinf.
4385         * doc/posix-functions/asinf.texi: Mention the new module.
4386
4387         asin: Use a .m4 file.
4388         * m4/asin.m4: New file.
4389         * modules/asin (Files): Add it.
4390         (configure.ac): Just invoke gl_FUNC_ASIN.
4391
4392 2011-10-08  Bruno Haible  <bruno@clisp.org>
4393
4394         Tests for module 'tanf'.
4395         * modules/tanf-tests: New file.
4396         * tests/test-tanf.c: New file.
4397
4398         New module 'tanf'.
4399         * lib/math.in.h (tanf): New declaration.
4400         * lib/tanf.c: New file.
4401         * m4/tanf.m4: New file.
4402         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
4403         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
4404         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
4405         * modules/tanf: New file.
4406         * tests/test-math-c++.cc: Check the declaration of tanf.
4407         * doc/posix-functions/tanf.texi: Mention the new module.
4408
4409         tan: Use a .m4 file.
4410         * m4/tan.m4: New file.
4411         * modules/tan (Files): Add it.
4412         (configure.ac): Just invoke gl_FUNC_TAN.
4413
4414 2011-10-08  Bruno Haible  <bruno@clisp.org>
4415
4416         Tests for module 'cosf'.
4417         * modules/cosf-tests: New file.
4418         * tests/test-cosf.c: New file.
4419
4420         New module 'cosf'.
4421         * lib/math.in.h (cosf): New declaration.
4422         * lib/cosf.c: New file.
4423         * m4/cosf.m4: New file.
4424         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
4425         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
4426         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
4427         * modules/cosf: New file.
4428         * tests/test-math-c++.cc: Check the declaration of cosf.
4429         * doc/posix-functions/cosf.texi: Mention the new module.
4430
4431         cos: Use a .m4 file.
4432         * m4/cos.m4: New file.
4433         * modules/cos (Files): Add it.
4434         (configure.ac): Just invoke gl_FUNC_COS.
4435
4436 2011-10-08  Bruno Haible  <bruno@clisp.org>
4437
4438         Tests for module 'sinf'.
4439         * modules/sinf-tests: New file.
4440         * tests/test-sinf.c: New file.
4441
4442         New module 'sinf'.
4443         * lib/math.in.h (sinf): New declaration.
4444         * lib/sinf.c: New file.
4445         * m4/sinf.m4: New file.
4446         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
4447         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
4448         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
4449         * modules/sinf: New file.
4450         * tests/test-math-c++.cc: Check the declaration of sinf.
4451         * doc/posix-functions/sinf.texi: Mention the new module.
4452
4453         sin: Use a .m4 file.
4454         * m4/sin.m4: New file.
4455         * modules/sin (Files): Add it.
4456         (configure.ac): Just invoke gl_FUNC_SIN.
4457
4458 2011-10-08  Bruno Haible  <bruno@clisp.org>
4459
4460         Tests for module 'powf'.
4461         * modules/powf-tests: New file.
4462         * tests/test-powf.c: New file.
4463
4464         New module 'powf'.
4465         * lib/math.in.h (powf): New declaration.
4466         * lib/powf.c: New file.
4467         * m4/powf.m4: New file.
4468         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
4469         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
4470         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
4471         * modules/powf: New file.
4472         * tests/test-math-c++.cc: Check the declaration of powf.
4473         * doc/posix-functions/powf.texi: Mention the new module.
4474
4475         pow: Use a .m4 file.
4476         * m4/pow.m4: New file.
4477         * modules/pow (Files): Add it.
4478         (configure.ac): Just invoke gl_FUNC_POW.
4479
4480 2011-10-08  Bruno Haible  <bruno@clisp.org>
4481
4482         Tests for module 'log10f'.
4483         * modules/log10f-tests: New file.
4484         * tests/test-log10f.c: New file.
4485
4486         New module 'log10f'.
4487         * lib/math.in.h (log10f): New declaration.
4488         * lib/log10f.c: New file.
4489         * m4/log10f.m4: New file.
4490         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
4491         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
4492         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
4493         * modules/log10f: New file.
4494         * tests/test-math-c++.cc: Check the declaration of log10f.
4495         * doc/posix-functions/log10f.texi: Mention the new module.
4496
4497         log10: Use a .m4 file.
4498         * m4/log10.m4: New file.
4499         * modules/log10 (Files): Add it.
4500         (configure.ac): Just invoke gl_FUNC_LOG10.
4501
4502 2011-10-08  Bruno Haible  <bruno@clisp.org>
4503
4504         Tests for module 'logf'.
4505         * modules/logf-tests: New file.
4506         * tests/test-logf.c: New file.
4507
4508         New module 'logf'.
4509         * lib/math.in.h (logf): New declaration.
4510         * lib/logf.c: New file.
4511         * m4/logf.m4: New file.
4512         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
4513         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
4514         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
4515         * modules/logf: New file.
4516         * tests/test-math-c++.cc: Check the declaration of logf.
4517         * doc/posix-functions/logf.texi: Mention the new module.
4518
4519         log: Use a .m4 file.
4520         * m4/log.m4: New file.
4521         * modules/log (Files): Add it.
4522         (configure.ac): Just invoke gl_FUNC_LOG.
4523
4524 2011-10-08  Bruno Haible  <bruno@clisp.org>
4525
4526         Tests for module 'expf'.
4527         * modules/expf-tests: New file.
4528         * tests/test-expf.c: New file.
4529
4530         New module 'expf'.
4531         * lib/math.in.h (expf): New declaration.
4532         * lib/expf.c: New file.
4533         * m4/expf.m4: New file.
4534         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
4535         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
4536         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
4537         * modules/expf: New file.
4538         * tests/test-math-c++.cc: Check the declaration of expf.
4539         * doc/posix-functions/expf.texi: Mention the new module.
4540
4541         exp: Use a .m4 file.
4542         * m4/exp.m4: New file.
4543         * modules/exp (Files): Add it.
4544         (configure.ac): Just invoke gl_FUNC_EXP.
4545
4546 2011-10-08  Bruno Haible  <bruno@clisp.org>
4547
4548         Tests for module 'sqrtf'.
4549         * modules/sqrtf-tests: New file.
4550         * tests/test-sqrtf.c: New file.
4551
4552         New module 'sqrtf'.
4553         * lib/math.in.h (sqrtf): New declaration.
4554         * lib/sqrtf.c: New file.
4555         * m4/sqrtf.m4: New file.
4556         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
4557         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
4558         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
4559         * modules/sqrtf: New file.
4560         * tests/test-math-c++.cc: Check the declaration of sqrtf.
4561         * doc/posix-functions/sqrtf.texi: Mention the new module.
4562
4563 2011-10-08  Bruno Haible  <bruno@clisp.org>
4564
4565         Tests: Avoid link failures w.r.t. libintl.
4566         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
4567         $(LIBINTL).
4568         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
4569         $(LIBINTL).
4570         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
4571         against $(LIBINTL).
4572         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
4573         $(LIBINTL).
4574         * modules/openat-tests (Makefile.am): Link test-fchmodat against
4575         $(LIBINTL).
4576         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
4577
4578 2011-10-08  Bruno Haible  <bruno@clisp.org>
4579
4580         pow tests: Defeat compiler optimizations.
4581         * tests/test-pow.c (main): Assign arguments to x and y before use.
4582
4583 2011-10-08  Bruno Haible  <bruno@clisp.org>
4584
4585         gnulib-tool: Improve last commit.
4586         * gnulib-tool (func_modules_transitive_closure): Simplify code.
4587         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
4588         ignore dependencies that are not among the modules list.
4589
4590 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
4591
4592         gnulib-tool: don't follow dependencies to avoided modules
4593         This fixes a bug that is related to the previous one.
4594         * gnulib-tool (func_modules_transitive_closure)
4595         (func_emit_autoconf_snippets):
4596         Check whether a dependency is acceptable before using it.
4597         (--extract-dependencies): Report an error if --avoid is also used,
4598         since this combination of options is not yet supported.
4599
4600         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
4601         Problem reported by Peter Dyballa in
4602         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
4603         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
4604         when echoing "$condition".
4605
4606 2011-10-07  Bruno Haible  <bruno@clisp.org>
4607
4608         Fix documentation about math functions on MacOS X.
4609         * doc/posix-functions/exp2.texi: Don't say the function is missing on
4610         MacOS X 10.5.
4611         * doc/posix-functions/fdim.texi: Likewise.
4612         * doc/posix-functions/feclearexcept.texi: Likewise.
4613         * doc/posix-functions/fegetenv.texi: Likewise.
4614         * doc/posix-functions/fegetround.texi: Likewise.
4615         * doc/posix-functions/feholdexcept.texi: Likewise.
4616         * doc/posix-functions/feraiseexcept.texi: Likewise.
4617         * doc/posix-functions/fesetenv.texi: Likewise.
4618         * doc/posix-functions/fesetround.texi: Likewise.
4619         * doc/posix-functions/fetestexcept.texi: Likewise.
4620         * doc/posix-functions/feupdateenv.texi: Likewise.
4621         * doc/posix-functions/fmax.texi: Likewise.
4622         * doc/posix-functions/fmin.texi: Likewise.
4623         * doc/posix-functions/log2.texi: Likewise.
4624         * doc/posix-functions/modff.texi: Likewise.
4625         * doc/posix-functions/nan.texi: Likewise.
4626         * doc/posix-functions/nanf.texi: Likewise.
4627         * doc/posix-functions/nextafterf.texi: Likewise.
4628         * doc/posix-functions/remquo.texi: Likewise.
4629
4630 2011-10-07  Bruno Haible  <bruno@clisp.org>
4631
4632         modff: Drop assumption about library that defines modff.
4633         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
4634         AC_CHECK_FUNCS.
4635         * modules/modff (Files): Add m4/mathfunc.m4.
4636
4637 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
4638
4639         raise tests: Avoid a GCC warning.
4640         * tests/test-raise.c (handler): Use _Noreturn.
4641
4642 2011-10-07  Bruno Haible  <bruno@clisp.org>
4643
4644         Tests for module 'ldexpf'.
4645         * modules/ldexpf-tests: New file.
4646         * tests/test-ldexpf.c: New file.
4647
4648         New module 'ldexpf'.
4649         * lib/math.in.h (ldexpf): New declaration.
4650         * lib/ldexpf.c: New file.
4651         * m4/ldexpf.m4: New file.
4652         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
4653         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
4654         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
4655         * modules/ldexpf: New file.
4656         * tests/test-math-c++.cc: Check the declaration of ldexpf.
4657         * doc/posix-functions/ldexpf.texi: Mention the new module.
4658
4659 2011-10-06  Bruno Haible  <bruno@clisp.org>
4660
4661         frexpf: Work around problems on IRIX and mingw.
4662         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
4663         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
4664         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
4665         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
4666         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
4667         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
4668         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
4669
4670 2011-10-06  Bruno Haible  <bruno@clisp.org>
4671
4672         fabsf: Drop assumption about library that defines fabsf.
4673         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
4674         AC_CHECK_FUNCS.
4675         * modules/fabsf (Files): Add m4/mathfunc.m4.
4676
4677 2011-10-06  Bruno Haible  <bruno@clisp.org>
4678
4679         frexpf: Drop assumption about library that defines frexpf.
4680         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
4681         'int *', 'float *', 'long double *', 'float', 'long double'.
4682         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
4683         AC_CHECK_FUNCS.
4684         * modules/frexpf (Files): Add m4/mathfunc.m4.
4685
4686         Tests for module 'frexpf'.
4687         * modules/frexpf-tests: New file.
4688         * tests/test-frexpf.c: New file.
4689
4690         New module 'frexpf'.
4691         * lib/math.in.h (frexpf): New declaration.
4692         * lib/frexpf.c: New file.
4693         * m4/frexpf.m4: New file.
4694         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
4695         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
4696         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
4697         * modules/frexpf: New file.
4698         * tests/test-math-c++.cc: Check the declaration of frexpf.
4699         * doc/posix-functions/frexpf.texi: Mention the new module.
4700
4701 2011-10-06  Bruno Haible  <bruno@clisp.org>
4702
4703         math: Sort function declarations of math.in.h.
4704         * lib/math.in.h (frexp, logb): Move declarations.
4705
4706 2011-10-05  Bruno Haible  <bruno@clisp.org>
4707
4708         Tests for module 'modff'.
4709         * modules/modff-tests: New file.
4710         * tests/test-modff.c: New file.
4711
4712         New module 'modff'.
4713         * lib/math.in.h (modff): New declaration.
4714         * lib/modff.c: New file.
4715         * m4/modff.m4: New file.
4716         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
4717         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
4718         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
4719         * modules/modff: New file.
4720         * tests/test-math-c++.cc: Check the declaration of modff.
4721         * doc/posix-functions/modff.texi: Mention the new module.
4722
4723         modf tests: Make test sharper.
4724         * tests/test-modf.c (main): Strengthen upper bound.
4725
4726         modf: Use a .m4 file.
4727         * m4/modf.m4: New file.
4728         * modules/modf (Files): Add it.
4729         (configure.ac): Just invoke gl_FUNC_MODF.
4730
4731 2011-10-05  Bruno Haible  <bruno@clisp.org>
4732
4733         Tests for module 'fmodf'.
4734         * modules/fmodf-tests: New file.
4735         * tests/test-fmodf.c: New file.
4736
4737         New module 'fmodf'.
4738         * lib/math.in.h (fmodf): New declaration.
4739         * lib/fmodf.c: New file.
4740         * m4/fmodf.m4: New file.
4741         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
4742         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
4743         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
4744         * modules/fmodf: New file.
4745         * tests/test-math-c++.cc: Check the declaration of fmodf.
4746         * doc/posix-functions/fmodf.texi: Mention the new module.
4747
4748         fmod: Use a .m4 file.
4749         * m4/fmod.m4: New file.
4750         * modules/fmod (Files): Add it.
4751         (configure.ac): Just invoke gl_FUNC_FMOD.
4752
4753 2011-10-05  Bruno Haible  <bruno@clisp.org>
4754
4755         Tests for module 'fabsf'.
4756         * modules/fabsf-tests: New file.
4757         * tests/test-fabsf.c: New file.
4758
4759         New module 'fabsf'.
4760         * lib/math.in.h (fabsf): New declaration.
4761         * lib/fabsf.c: New file.
4762         * m4/fabsf.m4: New file.
4763         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
4764         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
4765         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
4766         * modules/fabsf: New file.
4767         * tests/test-math-c++.cc: Check the declaration of fabsf.
4768         * doc/posix-functions/fabsf.texi: Mention the new module.
4769
4770         fabs: Use a .m4 file.
4771         * m4/fabs.m4: New file.
4772         * modules/fabs (Files): Add it.
4773         (configure.ac): Just invoke gl_FUNC_FABS.
4774
4775 2011-10-05  Jim Meyering  <meyering@redhat.com>
4776
4777         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
4778         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
4779         ls -lL regression introduced in coreutils-8.12, it does so at the
4780         cost of an additional stat call in the common case.  Besides, now
4781         that the kernel change that prompted commit 95f7c57f has been reverted
4782         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
4783         we have no use for commit 95f7c57f, "file-has-acl: use
4784         acl_extended_file_nofollow if available".
4785
4786 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
4787
4788         file-has-acl: revert unintended change in behavior of ls -L
4789         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
4790         derived from...
4791         (file_has_acl): ...code here.  Call it.
4792         This problem was introduced with 2011-07-22 commit 95f7c57f,
4793         "file-has-acl: use acl_extended_file_nofollow if available".
4794         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
4795
4796 2011-10-03  Bruno Haible  <bruno@clisp.org>
4797
4798         poll: Avoid link errors on MSVC.
4799         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
4800         * modules/poll (Depends-on): Add sockets.
4801         (Link): New section.
4802         * NEWS: Mention the change.
4803         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
4804         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
4805         $(LIB_POLL) instead of $(LIBSOCKET).
4806
4807 2011-10-03  Bruno Haible  <bruno@clisp.org>
4808
4809         sys_select tests: Fix link error on MSVC 9.
4810         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
4811         with $(LIB_SELECT) instead of $(LIBSOCKET).
4812
4813 2011-10-03  Bruno Haible  <bruno@clisp.org>
4814
4815         sys_select: Fix compilation error on mingw.
4816         * lib/sys_select.in.h: On native Windows, include <io.h>.
4817
4818 2011-10-03  Bruno Haible  <bruno@clisp.org>
4819
4820         wmemset: Support for MSVC.
4821         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
4822         whether wmemset() exists.
4823
4824 2011-10-03  Bruno Haible  <bruno@clisp.org>
4825
4826         wmemmove: Support for MSVC.
4827         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
4828         whether wmemmove() exists.
4829
4830 2011-10-03  Bruno Haible  <bruno@clisp.org>
4831
4832         wmemcpy: Support for MSVC.
4833         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
4834         whether wmemcpy() exists.
4835
4836 2011-10-03  Bruno Haible  <bruno@clisp.org>
4837
4838         wmemcmp: Support for MSVC.
4839         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
4840         whether wmemcmp() exists.
4841
4842 2011-10-03  Bruno Haible  <bruno@clisp.org>
4843
4844         wmemchr: Support for MSVC.
4845         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
4846         whether wmemchr() exists.
4847
4848 2011-10-03  Bruno Haible  <bruno@clisp.org>
4849
4850         glthread/*, strsignal: Support for MSVC.
4851         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
4852         including <winsock.h> on MSVC 9.
4853         * lib/glthread/lock.h: Likewise.
4854         * lib/glthread/thread.h: Likewise.
4855         * lib/glthread/tls.h: Likewise.
4856         * lib/glthread/yield.h: Likewise.
4857         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
4858         if HAVE_UNISTD_H is false.
4859         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
4860
4861 2011-10-03  Bruno Haible  <bruno@clisp.org>
4862
4863         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
4864         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
4865         Set to 100000.
4866
4867 2011-10-03  Bruno Haible  <bruno@clisp.org>
4868
4869         acl: Fix specification.
4870         * lib/file-has-acl.c (file_has_acl): Fix specification.
4871
4872 2011-10-03  Bruno Haible  <bruno@clisp.org>
4873
4874         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
4875         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
4876         (compute_curr_prefix, shared_library_fullname,
4877         find_shared_library_fullname, get_shared_library_fullname, relocate):
4878         Use it together with PIC && INSTALLDIR.
4879         Reported by <jojelino@gmail.com>
4880         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
4881
4882 2011-10-01  Jim Meyering  <meyering@redhat.com>
4883
4884         maint.mk: adjust a release-related rule not to require use of gzip
4885         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
4886         Instead, check each file in $(DIST_ARCHIVES).  This is better for
4887         projects that build only .tar.xz files.  Also fix an erroneous test.
4888
4889         test-linkat: don't leave behind a temporary file
4890         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
4891         Otherwise, coreutils' "make distcheck" would fail with this:
4892           Only in /c/cu/tests/torture/coreutils/test/\
4893             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
4894           make[2]: *** [my-distcheck] Error 1
4895
4896         float, math: add omitted file
4897         * lib/itold.c: Add file, required for yesterday's float change.
4898
4899 2011-10-01  Bruno Haible  <bruno@clisp.org>
4900
4901         isinf: Fix for OpenBSD/x86.
4902         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
4903         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
4904         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
4905
4906 2011-10-01  Bruno Haible  <bruno@clisp.org>
4907
4908         isfinite: Fix syntax error in configure test.
4909         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
4910
4911         isfinite: Fix typo.
4912         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
4913         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
4914
4915 2011-10-01  Bruno Haible  <bruno@clisp.org>
4916
4917         nonblocking tests: Fix test failure on Linux/IA-64.
4918         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
4919         Set to 270000.
4920
4921 2011-10-01  Bruno Haible  <bruno@clisp.org>
4922
4923         mkfifoat tests: Fix a test failure on mingw.
4924         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
4925         with error ENOSYS.
4926
4927 2011-09-30  Bruno Haible  <bruno@clisp.org>
4928
4929         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
4930         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
4931         'long double'. Set REPLACE_ITOLD.
4932         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
4933         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
4934         * lib/itold.c: New file.
4935         * modules/float (Files): Add lib/itold.c.
4936         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
4937         (Makefile.am): Substitute REPLACE_ITOLD.
4938         * modules/math (Depends-on): Add float.
4939         (Makefile.am): Substitute REPLACE_ITOLD.
4940         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
4941         * doc/posix-headers/math.texi: Likewise.
4942         * doc/posix-functions/logl.texi: Likewise.
4943
4944 2011-09-30  Bruno Haible  <bruno@clisp.org>
4945
4946         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
4947         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
4948         Set to 140000.
4949
4950 2011-09-30  Bruno Haible  <bruno@clisp.org>
4951
4952         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
4953         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
4954         invocation, say "right after AC_PROG_CC_STDC", not "right after
4955         AC_PROG_CC".
4956         Reported by Gary V. Vaughan <gary@gnu.org>.
4957
4958 2011-09-30  Bruno Haible  <bruno@clisp.org>
4959
4960         Centralize C99 requirement.
4961         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
4962         * modules/stdarg (configure.ac-early): Invoke it instead of
4963         AC_PROG_CC_STDC.
4964         Reported by Gary V. Vaughan and Paul Eggert.
4965
4966 2011-09-29  Bruno Haible  <bruno@clisp.org>
4967
4968         float: Fix LDBL_MAX value on Linux/PowerPC.
4969         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
4970         on Linux/PowerPC.
4971         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
4972         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
4973         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
4974         platform.
4975         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
4976
4977 2011-09-29  Bruno Haible  <bruno@clisp.org>
4978
4979         doc: Improve doc about gl_EARLY.
4980         * doc/gnulib-tool.texi (Initial import): Mention where to place an
4981         AC_PROG_CC_STDC invocation.
4982         Reported by Gary V. Vaughan <gary@gnu.org>.
4983
4984 2011-09-28  Bruno Haible  <bruno@clisp.org>
4985
4986         fgetc, fputc, fread, fwrite tests: Fix link error.
4987         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
4988         on non-MSVC platforms.
4989         * tests/test-fputc.c (main): Likewise.
4990         * tests/test-fread.c (main): Likewise.
4991         * tests/test-fwrite.c (main): Likewise.
4992         Reported by Jim Meyering.
4993
4994 2011-09-27  Bruno Haible  <bruno@clisp.org>
4995
4996         fputc, fwrite tests: Avoid test failure on MSVC.
4997         * tests/test-fgetc.c: Include msvc-inval.h.
4998         (main): Invoke gl_msvc_inval_ensure_handler.
4999         * tests/test-fputc.c: Include msvc-inval.h.
5000         (main): Invoke gl_msvc_inval_ensure_handler.
5001         * tests/test-fread.c: Include msvc-inval.h.
5002         (main): Invoke gl_msvc_inval_ensure_handler.
5003         * tests/test-fwrite.c: Include msvc-inval.h.
5004         (main): Invoke gl_msvc_inval_ensure_handler.
5005         * modules/fgetc-tests (Depends-on): Add msvc-inval.
5006         * modules/fputc-tests (Depends-on): Likewise.
5007         * modules/fread-tests (Depends-on): Likewise.
5008         * modules/fwrite-tests (Depends-on): Likewise.
5009
5010 2011-09-27  Bruno Haible  <bruno@clisp.org>
5011
5012         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
5013         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
5014         (raise): Remove older, duplicated declaration.
5015         (_gl_raise_SIGPIPE): New declaration.
5016         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
5017         (rpl_raise): Remove function.
5018         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
5019         a gnulib-defined SIGPIPE here.
5020         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
5021         'sigprocmask' has detected missing signal-blocking and the module
5022         'sigpipe' is enabled.
5023         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
5024
5025 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
5026
5027         base64-tests: avoid memory leak
5028         * tests/test-base64.c (main): Plug memory leak.
5029
5030         base32: new module
5031         * modules/base32: New module.
5032         * lib/base32.c: New file.
5033         * lib/base32.h: Likewise.
5034         * m4/base32.m4: Likewise.
5035         * modules/base32-tests: New test.
5036         * tests/test-base32.c: Likewise.
5037         * MODULES.html.sh (Misc): Mention it.
5038
5039 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
5040
5041         gnulib: use more-standard license notice wording
5042         * gnulib-tool (func_emit_copyright_notice): When emitting a
5043         license notice into a file, use the standard wording as suggested
5044         by the current information for GNU maintainers, except say "file"
5045         rather than "program".  The new wording gives a license version
5046         number, which addresses an issue raised by Glenn Morris in
5047         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
5048         * m4/onceonly.m4: Use that same wording here, too.
5049
5050         dup2: minor simplification
5051         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
5052         as lib/dup2.c no longer uses 'inline'.
5053
5054 2011-09-25  Bruno Haible  <bruno@clisp.org>
5055
5056         strings: Fix compilation error on MSVC.
5057         * lib/strings.in.h: Include <stddef.h> for size_t.
5058
5059 2011-09-25  Bruno Haible  <bruno@clisp.org>
5060
5061         fflush et al.: Document limitation on MSVC.
5062         * doc/posix-functions/fflush.texi: Document possible crash in handling
5063         mode other than DEFAULT_HANDLING.
5064         * doc/posix-functions/fgetc.texi: Likewise.
5065         * doc/posix-functions/fputc.texi: Likewise.
5066         * doc/posix-functions/fread.texi: Likewise.
5067         * doc/posix-functions/fwrite.texi: Likewise.
5068
5069 2011-09-25  Bruno Haible  <bruno@clisp.org>
5070
5071         msvc-inval: Allow three invalid parameter handling modes.
5072         * lib/msvc-inval.h: Don't include <stdlib.h> here.
5073         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
5074         macros.
5075         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
5076         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
5077         SANE_LIBRARY_HANDLING as a no-op.
5078         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
5079         <stdlib.h>.
5080         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
5081
5082 2011-09-25  Bruno Haible  <bruno@clisp.org>
5083
5084         msvc-inval: Make handler multithread-safe.
5085         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
5086         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
5087         declarations.
5088         (gl_msvc_inval_current): New declaration.
5089         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
5090         Operate on the structure returned by gl_msvc_inval_current().
5091         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
5092         Remove varaiables.
5093         (tls_index, tls_initialized): New variables.
5094         (not_per_thread): New variable.
5095         (gl_msvc_inval_current): New function.
5096         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
5097         returned by gl_msvc_inval_current().
5098
5099 2011-09-25  Bruno Haible  <bruno@clisp.org>
5100
5101         msvc-inval: Install handler globally.
5102         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
5103         !_MSC_VER.
5104         (gl_msvc_invalid_parameter_handler): Remove declaration.
5105         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
5106         declarations.
5107         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
5108         Install the handler globally, don't uninstall it.
5109         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
5110         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
5111         currently valid, call RaiseException instead.
5112         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
5113         for !_MSC_VER.
5114
5115 2011-09-25  Bruno Haible  <bruno@clisp.org>
5116
5117         strerror_r-posix: Fix for MSVC 9.
5118         * lib/strerror_r.c (local_snprintf): New function.
5119         (snprintf): Define to local_snprintf, not to _snprintf.
5120
5121 2011-09-25  Bruno Haible  <bruno@clisp.org>
5122
5123         ftruncate: Support for MSVC 9.
5124         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
5125         (chsize_nothrow): New function.
5126         (chsize): Redefine as a macro.
5127         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
5128         * modules/ftruncate (Depends-on): Add msvc-inval.
5129
5130 2011-09-25  Bruno Haible  <bruno@clisp.org>
5131
5132         New module 'fstat'.
5133         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
5134         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
5135         * lib/fchdir.c (rpl_fstat): Remove function.
5136         * m4/fstat.m4: New file.
5137         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
5138         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
5139         declared.
5140         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
5141         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
5142         * modules/fstat: New file.
5143         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
5144         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
5145         is set.
5146         * doc/posix-functions/fstat.texi: Mention the new module and the
5147         problem on MSVC.
5148         * NEWS: Mention the change.
5149         * modules/acl (Depends-on): Add fstat.
5150         * modules/chdir-safer (Depends-on): Likewise.
5151         * modules/chown (Depends-on): Likewise.
5152         * modules/copy-file (Depends-on): Likewise.
5153         * modules/fchdir (Depends-on): Likewise.
5154         * modules/fdopendir (Depends-on): Likewise.
5155         * modules/fopen (Depends-on): Likewise.
5156         * modules/fts (Depends-on): Likewise.
5157         * modules/getcwd (Depends-on): Likewise.
5158         * modules/isapipe (Depends-on): Likewise.
5159         * modules/linkat (Depends-on): Likewise.
5160         * modules/lseek (Depends-on): Likewise.
5161         * modules/mkdir-p (Depends-on): Likewise.
5162         * modules/open (Depends-on): Likewise.
5163         * modules/openat (Depends-on): Likewise.
5164         * modules/read-file (Depends-on): Likewise.
5165         * modules/renameat (Depends-on): Likewise.
5166         * modules/utimens (Depends-on): Likewise.
5167
5168 2011-09-25  Bruno Haible  <bruno@clisp.org>
5169
5170         linkat: Fix compilation on MSVC 9.
5171         * lib/linkat.c: Don't include <stdint.h>.
5172
5173 2011-09-25  Bruno Haible  <bruno@clisp.org>
5174
5175         fclose: Support for MSVC 9.
5176         * lib/fclose.c: Include msvc-inval.h.
5177         (fclose_nothrow): New function.
5178         (rpl_fclose): Use it.
5179         * modules/fclose (Depends-on): Add msvc-inval.
5180         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
5181
5182 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
5183
5184         dup2: minor simplifications
5185         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
5186         that it's a performance win.
5187         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
5188         ! defined __CYGWIN__)" to "ifdef F_GETFL".
5189
5190 2011-09-24  Jim Meyering  <meyering@redhat.com>
5191
5192         test-futimens: avoid a warning from gcc -Wshadow
5193         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
5194         to avoid a shadowing warning.
5195
5196 2011-09-24  Bruno Haible  <bruno@clisp.org>
5197
5198         fdopen: Support for MSVC 9.
5199         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
5200         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
5201         * lib/fdopen.c: Include msvc-inval.h.
5202         (fdopen_nothrow): New function.
5203         (rpl_fdopen): Use it.
5204         * modules/fdopen (Depends-on): Add msvc-inval.
5205         * modules/fclose-tests (Depends-on): Add fdopen.
5206         * modules/fflush-tests (Depends-on): Likewise.
5207         * modules/fgetc-tests (Depends-on): Likewise.
5208         * modules/fputc-tests (Depends-on): Likewise.
5209         * modules/fread-tests (Depends-on): Likewise.
5210         * modules/freopen-tests (Depends-on): Likewise.
5211         * modules/fseeko-tests (Depends-on): Likewise.
5212         * modules/ftello-tests (Depends-on): Likewise.
5213         * modules/fwrite-tests  (Depends-on): Likewise.
5214         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
5215
5216 2011-09-24  Bruno Haible  <bruno@clisp.org>
5217
5218         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
5219         * modules/fgetc-tests (Depends-on): Add unistd.
5220         * modules/fputc-tests (Depends-on): Likewise.
5221         * modules/fread-tests (Depends-on): Likewise.
5222         * modules/fwrite-tests (Depends-on): Likewise.
5223
5224 2011-09-24  Bruno Haible  <bruno@clisp.org>
5225
5226         dup: Simplify autoconf test.
5227         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
5228         on gl_MSVC_INVAL's result.
5229
5230 2011-09-24  Bruno Haible  <bruno@clisp.org>
5231
5232         Tests for function fwrite().
5233         * modules/fwrite-tests: New file.
5234         * tests/test-fwrite.c: New file.
5235         * modules/stdio-tests (Depends-on): Add fwrite-tests.
5236
5237         Tests for function fread().
5238         * modules/fread-tests: New file.
5239         * tests/test-fread.c: New file.
5240         * modules/stdio-tests (Depends-on): Add fread-tests.
5241
5242         Activate fputc tests.
5243         * modules/stdio-tests (Depends-on): Add fputc-tests.
5244
5245         Enhance fgetc, fputc tests.
5246         * tests/test-fgetc.c (main): Also test the stream's error indicator.
5247         * tests/test-fputc.c (main): Likewise.
5248
5249 2011-09-24  Bruno Haible  <bruno@clisp.org>
5250
5251         write: Support for MSVC 9.
5252         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
5253         is not 1.
5254         * lib/write.c (write_nothrow): New function.
5255         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
5256         not 1. Use write_nothrow.
5257         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
5258         invalid parameter handler.
5259         (gl_PREREQ_WRITE): New macro.
5260         * modules/write (Depends-on): Add msvc-inval.
5261         (configure.ac): Invoke gl_PREREQ_WRITE.
5262         * doc/posix-functions/write.texi: Mention the problem on MSVC.
5263
5264 2011-09-24  Bruno Haible  <bruno@clisp.org>
5265
5266         read: Fix last commit.
5267         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
5268
5269 2011-09-24  Bruno Haible  <bruno@clisp.org>
5270
5271         dup2: Fix last commit.
5272         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
5273         (rpl_dup2): Disable fcntl workaround on native Windows.
5274
5275         sigprocmask: Make code safer.
5276         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
5277         section that changes macro definitions for this compilation unit.
5278
5279 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
5280
5281         dup2: clarify by coalescing Windows-specific material
5282         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
5283         "msvc-nothrow.h"' to the Windows-specific section, so that the
5284         Emacs source need not contain these include files.
5285         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
5286         Windows-specific fixes into this function rather than just the
5287         nothrow fix, as this shortens and clarifies the code.  Always
5288         define as a function, as that's a bit cleaner than having it be
5289         sometimes a function and sometimes a macro.
5290         (rpl_dup2): Move the Windows-specific stuff out of here and into
5291         ms_windows_dup2.  Don't protect the Haiku-related fix with
5292         "#if !defined __linux__", as the same code also works around
5293         a Linux kernel bug, and it doesn't add any system calls on any
5294         platform.  Add comment about FreeBSD 6.1.
5295
5296         sigprocmask: move #include directive
5297         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
5298         Windows-specific section, so that the Emacs source need not
5299         contain msvc-inval.h.
5300
5301 2011-09-23  Bruno Haible  <bruno@clisp.org>
5302
5303         read: Support for MSVC 9.
5304         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
5305         is not 1.
5306         * lib/read.c (read_nothrow): New function.
5307         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
5308         read_nothrow.
5309         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
5310         invalid parameter handler.
5311         (gl_PREREQ_READ): New macro.
5312         * modules/read (Depends-on): Add msvc-inval.
5313         (configure.ac): Invoke gl_PREREQ_READ.
5314         * doc/posix-functions/read.texi: Mention the problem on MSVC.
5315
5316 2011-09-23  Bruno Haible  <bruno@clisp.org>
5317
5318         close: Support for MSVC 9.
5319         * lib/close.c: Include <errno.h>, msvc-inval.h.
5320         (close_nothrow): New function.
5321         (rpl_close): Use it.
5322         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
5323         invalid parameter handler.
5324         * modules/close (Depends-on): Add msvc-inval.
5325         * modules/dup2-tests (Depends-on): Add close.
5326         * modules/dup3-tests (Depends-on): Likewise.
5327         * modules/fcntl-tests (Depends-on): Likewise.
5328         * modules/spawn-pipe-tests (Depends-on): Likewise.
5329         * modules/unistd-safer-tests (Depends-on): Likewise.
5330         * doc/posix-functions/close.texi: Mention the problem on MSVC.
5331
5332 2011-09-23  Bruno Haible  <bruno@clisp.org>
5333
5334         New module 'dup'.
5335         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
5336         Allow replacement.
5337         * lib/dup.c: New file.
5338         * lib/fchdir.c (rpl_dup): Remove function.
5339         * m4/dup.m4: New file.
5340         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
5341         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
5342         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
5343         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
5344         * modules/dup: New file.
5345         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
5346         'dup' module is in use.
5347         * modules/fdopendir (Depends-on): Add dup.
5348         * modules/fdutimensat-tests (Depends-on): Likewise.
5349         * modules/fts (Depends-on): Likewise.
5350         * modules/futimens-tests (Depends-on): Likewise.
5351         * modules/posix_spawnp-tests (Depends-on): Likewise.
5352         * modules/unistd-safer-tests (Depends-on): Likewise.
5353         * modules/utimens-tests (Depends-on): Likewise.
5354         * doc/posix-functions/dup.texi: Mention the new module and the problem
5355         on MSVC.
5356
5357 2011-09-23  Bruno Haible  <bruno@clisp.org>
5358
5359         getdtablesize: Support for MSVC 9.
5360         * lib/getdtablesize.c: Include msvc-inval.h.
5361         (_setmaxstdio_nothrow): New function.
5362         (_setmaxstdio): Redefine it.
5363         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
5364         * modules/getdtablesize (Depends-on): Add msvc-inval.
5365         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
5366
5367 2011-09-23  Bruno Haible  <bruno@clisp.org>
5368
5369         signal-h: Rename from signal.
5370         * modules/signal-h: Renamed from modules/signal.
5371         * modules/pthread_sigmask (Depends-on): Update.
5372         * modules/raise (Depends-on): Likewise.
5373         * modules/sigaction (Depends-on): Likewise.
5374         * modules/sigpipe (Depends-on): Likewise.
5375         * modules/sigprocmask (Depends-on): Likewise.
5376         * modules/sys_select (Depends-on): Likewise.
5377         * modules/signal-h-tests: Renamed from modules/signal-tests.
5378         (Files, Depends-on, Makefile.am): Update.
5379         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
5380         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
5381         (Files, Makefile.am): Update.
5382         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
5383         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
5384         * modules/signal: New placeholder file.
5385         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
5386         * doc/posix-headers/signal.texi: Update.
5387         * NEWS: Mention the change.
5388
5389 2011-09-23  Bruno Haible  <bruno@clisp.org>
5390
5391         sigprocmask: Avoid crashes through signal() on MSVC 9.
5392         * lib/sigprocmask.c: Include msvc-inval.h.
5393         (signal_nothrow): New function.
5394         (signal): Redefine it.
5395         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
5396         * modules/sigprocmask (Depends-on): Add msvc-inval.
5397         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
5398
5399 2011-09-23  Bruno Haible  <bruno@clisp.org>
5400
5401         Tests for module 'raise'.
5402         * modules/raise-tests: New file.
5403         * tests/test-raise.c: New file.
5404
5405         raise: Support for MSVC.
5406         * lib/signal.in.h (raise): New declaration.
5407         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
5408         for native Windows platforms.
5409         * m4/raise.m4: New file.
5410         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
5411         HAVE_RAISE, REPLACE_RAISE.
5412         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
5413         REPLACE_RAISE.
5414         * modules/raise (Status, Notice): Remove fields.
5415         (Files): Add m4/raise.m4.
5416         (Depends-on): Add signal, msvc-inval.
5417         (configure.ac): Use the common idioms.
5418         (Maintainer): Add me.
5419         * tests/test-signal-c++.cc: Check the signature of raise.
5420         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
5421
5422 2011-09-23  Bruno Haible  <bruno@clisp.org>
5423
5424         pipe2: Fix compilation on pre-C99 compilers.
5425         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
5426
5427 2011-09-23  Bruno Haible  <bruno@clisp.org>
5428
5429         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
5430         * lib/msvc-nothrow.h: New file.
5431         * lib/msvc-nothrow.c: New file.
5432         * m4/msvc-nothrow.m4: New file.
5433         * modules/msvc-nothrow: New file.
5434         * lib/dup2.c: Include msvc-nothrow.h.
5435         (rpl_dup2): No need to protect _get_osfhandle call here.
5436         * lib/accept4.c: Include msvc-nothrow.h.
5437         * lib/error.c: Likewise.
5438         * lib/fcntl.c: Likewise.
5439         * lib/lseek.c: Likewise.
5440         * lib/nonblocking.c: Likewise.
5441         * lib/poll.c: Likewise.
5442         * lib/read.c: Likewise.
5443         * lib/select.c: Likewise.
5444         * lib/sockets.h: Likewise.
5445         * lib/sockets.c: Likewise.
5446         * lib/stdio-read.c: Likewise.
5447         * lib/stdio-write.c: Likewise.
5448         * lib/write.c: Likewise.
5449         * lib/w32sock.h: Likewise.
5450         * lib/w32spawn.h: Likewise.
5451         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
5452         * lib/fsync.c: Likewise.
5453         * lib/isapipe.c: Likewise.
5454         * modules/dup2 (Depends-on): Add msvc-nothrow.
5455         * modules/accept4 (Depends-on): Likewise.
5456         * modules/error (Depends-on): Likewise.
5457         * modules/fcntl (Depends-on): Likewise.
5458         * modules/lseek (Depends-on): Likewise.
5459         * modules/nonblocking (Depends-on): Likewise.
5460         * modules/poll (Depends-on): Likewise.
5461         * modules/read (Depends-on): Likewise.
5462         * modules/select (Depends-on): Likewise.
5463         * modules/sockets (Depends-on): Likewise.
5464         * modules/sigpipe (Depends-on): Likewise.
5465         * modules/write (Depends-on): Likewise.
5466         * modules/accept (Depends-on): Likewise.
5467         * modules/bind (Depends-on): Likewise.
5468         * modules/connect (Depends-on): Likewise.
5469         * modules/gethostname (Depends-on): Likewise.
5470         * modules/getpeername (Depends-on): Likewise.
5471         * modules/getsockname (Depends-on): Likewise.
5472         * modules/getsockopt (Depends-on): Likewise.
5473         * modules/ioctl (Depends-on): Likewise.
5474         * modules/listen (Depends-on): Likewise.
5475         * modules/recv (Depends-on): Likewise.
5476         * modules/recvfrom (Depends-on): Likewise.
5477         * modules/send (Depends-on): Likewise.
5478         * modules/sendto (Depends-on): Likewise.
5479         * modules/setsockopt (Depends-on): Likewise.
5480         * modules/shutdown (Depends-on): Likewise.
5481         * modules/socket (Depends-on): Likewise.
5482         * modules/execute (Depends-on): Likewise.
5483         * modules/spawn-pipe (Depends-on): Likewise.
5484         * modules/flock (Depends-on): Likewise.
5485         * modules/fsync (Depends-on): Likewise.
5486         * modules/isapipe (Depends-on): Likewise.
5487         * tests/test-cloexec.c: Include msvc-nothrow.h.
5488         * tests/test-dup-safer.c: Likewise.
5489         * tests/test-dup2.c: Likewise.
5490         * tests/test-dup3.c: Likewise.
5491         * tests/test-fcntl.c: Likewise.
5492         * tests/test-pipe.c: Likewise.
5493         * tests/test-pipe2.c: Likewise.
5494         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
5495         * modules/unistd-safer-tests (Depends-on): Likewise.
5496         * modules/dup2-tests (Depends-on): Likewise.
5497         * modules/dup3-tests (Depends-on): Likewise.
5498         * modules/fcntl-tests (Depends-on): Likewise.
5499         * modules/pipe-posix-tests (Depends-on): Likewise.
5500         * modules/pipe2-tests (Depends-on): Likewise.
5501
5502 2011-09-23  Bruno Haible  <bruno@clisp.org>
5503
5504         dup2: Make code more maintainable.
5505         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
5506         (rpl_dup2): Use it.
5507         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
5508         * modules/dup2 (configure.ac): Invoke it.
5509         Reported by Paul Eggert.
5510
5511 2011-09-23  Bruno Haible  <bruno@clisp.org>
5512
5513         msvc-inval: Fix compilation error.
5514         * lib/msvc-inval.h: Include <excpt.h>.
5515
5516 2011-09-23  Bruno Haible  <bruno@clisp.org>
5517
5518         mkdir: Tweak for MSVC 9.
5519         * lib/sys_stat.in.h: Update comments.
5520         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
5521
5522         Tests for module 'chdir'.
5523         * modules/chdir-tests: New file.
5524         * tests/test-chdir.c: New file.
5525
5526         New module 'chdir'.
5527         * modules/chdir: New file.
5528         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
5529         (chdir): New declaration.
5530         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
5531         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
5532         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
5533         * tests/test-unistd-c++.cc: Check signature of chdir.
5534         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
5535         * modules/chdir-long (Depends-on): Add chdir.
5536         * modules/fchdir (Depends-on): Likewise.
5537         * modules/rename (Depends-on): Likewise.
5538         * modules/savewd (Depends-on): Likewise.
5539
5540         rmdir: Support for mingw, MSVC 9.
5541         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
5542         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
5543
5544         getcwd: Tweak for MSVC 9.
5545         * lib/unistd.in.h: Update comments.
5546         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
5547
5548 2011-09-22  Bruno Haible  <bruno@clisp.org>
5549
5550         strerror_r-posix: Avoid a link error on MSVC.
5551         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
5552         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
5553
5554 2011-09-22  Bruno Haible  <bruno@clisp.org>
5555
5556         select: Avoid link errors on MSVC.
5557         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
5558         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
5559         * modules/pselect (Link): Likewise.
5560         * NEWS: Mention the change.
5561         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
5562         test-select-stdin against $(LIB_SELECT).
5563         * modules/pselect-tests (Makefile.am): Link test-pselect against
5564         $(LIB_SELECT).
5565
5566 2011-09-22  Bruno Haible  <bruno@clisp.org>
5567
5568         select: Avoid compilation error on MSVC.
5569         * lib/select.c: Don't include <stdbool.h>.
5570
5571 2011-09-21  Bruno Haible  <bruno@clisp.org>
5572
5573         Consolidate all uses of PATH_MAX in *.m4 files.
5574         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
5575         macros.
5576         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
5577         and gl_PATHMAX_SNIPPET.
5578         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5579         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5580         * modules/chdir-long (Files): Add m4/pathmax.m4.
5581         * modules/getcwd (Files): Likewise.
5582
5583 2011-09-21  Bruno Haible  <bruno@clisp.org>
5584
5585         ftruncate: Un-deprecate, concentrate on Win32 support.
5586         * modules/ftruncate (Status, Notice): Remove sections.
5587         (Depends-on): Add largefile.
5588         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
5589         non-mingw platforms.
5590         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
5591         include <io.h>.
5592         * modules/perror-tests (Depends-on): Add ftruncate.
5593         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
5594         'ftruncate' module.
5595
5596 2011-09-21  Bruno Haible  <bruno@clisp.org>
5597
5598         Add dependencies to new dirent related modules.
5599         * modules/opendir (Depends-on): Add closedir.
5600         * modules/getcwd (Depends-on): Add opendir, closedir.
5601         * modules/dirent-safer-tests (Depends-on): Likewise.
5602         * modules/fdopendir-tests (Depends-on): Likewise.
5603         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
5604         * modules/renameat-tests (Depends-on): Likewise.
5605
5606 2011-09-21  Bruno Haible  <bruno@clisp.org>
5607
5608         opendir: Avoid compilation error on mingw.
5609         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
5610         * modules/opendir (Depends-on): Add unistd.
5611
5612 2011-09-21  Bruno Haible  <bruno@clisp.org>
5613
5614         ftruncate tests: Avoid a test failure on mingw.
5615         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
5616
5617 2011-09-21  Bruno Haible  <bruno@clisp.org>
5618
5619         select tests: Avoid test failures on OSF/1 5.1 and mingw.
5620         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
5621         native Windows.
5622
5623 2011-09-21  Bruno Haible  <bruno@clisp.org>
5624
5625         New module 'fdopen'.
5626         * lib/stdio.in.h (fdopen): New declaration.
5627         * lib/fdopen.c: New file.
5628         * m4/fdopen.m4: New file.
5629         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
5630         REPLACE_FDOPEN.
5631         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
5632         REPLACE_FDOPEN.
5633         * modules/fdopen: New file.
5634         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
5635         * tests/test-stdio-c++.cc: Check signature of fdopen.
5636         * doc/posix-functions/fdopen.texi: Mention the new module.
5637
5638 2011-09-21  Bruno Haible  <bruno@clisp.org>
5639
5640         unlockpt tests: Avoid test failure on NetBSD 5.1.
5641         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
5642         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
5643
5644 2011-09-21  Bruno Haible  <bruno@clisp.org>
5645
5646         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
5647         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
5648         * tests/test-getlogin_r.c (main): Likewise.
5649
5650 2011-09-20  Bruno Haible  <bruno@clisp.org>
5651
5652         time tests: Don't require pid_t.
5653         * doc/posix-headers/time.texi: Revert last change.
5654         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
5655         * tests/test-time.c: Comment out the check for pid_t.
5656
5657 2011-09-20  Bruno Haible  <bruno@clisp.org>
5658
5659         fsync tests: Avoid a test failure on mingw.
5660         * tests/test-fsync.c (main): Allow a failure with EIO.
5661
5662 2011-09-20  Bruno Haible  <bruno@clisp.org>
5663
5664         euidaccess: Update comments.
5665         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
5666
5667 2011-09-20  Bruno Haible  <bruno@clisp.org>
5668
5669         Ensure EBADF returns for socket functions on mingw.
5670         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
5671         descriptor is invalid.
5672         * lib/bind.c (rpl_bind): Likewise.
5673         * lib/connect.c (rpl_connect): Likewise.
5674         * lib/getpeername.c (rpl_getpeername): Likewise.
5675         * lib/getsockname.c (rpl_getsockname): Likewise.
5676         * lib/getsockopt.c (rpl_getsockopt): Likewise.
5677         * lib/listen.c (rpl_listen): Likewise.
5678         * lib/recv.c (rpl_recv): Likewise.
5679         * lib/recvfrom.c (rpl_recvfrom): Likewise.
5680         * lib/send.c (rpl_send): Likewise.
5681         * lib/sendto.c (rpl_sendto): Likewise.
5682         * lib/setsockopt.c (rpl_setsockopt): Likewise.
5683         * lib/shutdown.c (rpl_shutdown): Likewise.
5684
5685 2011-09-20  Bruno Haible  <bruno@clisp.org>
5686
5687         select tests: EBADF tests.
5688         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
5689         test_bad_fd): New functions.
5690         (test_function): Invoke also test_bad_fd.
5691
5692 2011-09-20  Bruno Haible  <bruno@clisp.org>
5693
5694         Tests for module 'posix_spawn_file_actions_addopen.
5695         * modules/posix_spawn_file_actions_addopen-tests: New file.
5696         * tests/test-posix_spawn_file_actions_addopen.c: New file.
5697
5698         Tests for module 'posix_spawn_file_actions_adddup2'.
5699         * modules/posix_spawn_file_actions_adddup2-tests: New file.
5700         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
5701
5702         Tests for module 'posix_spawn_file_actions_addclose'.
5703         * modules/posix_spawn_file_actions_addclose-tests: New file.
5704         * tests/test-posix_spawn_file_actions_addclose.c: New file.
5705
5706 2011-09-20  Bruno Haible  <bruno@clisp.org>
5707
5708         Tests for module 'unlockpt'.
5709         * modules/unlockpt-tests: New file.
5710         * tests/test-unlockpt.c: New file.
5711         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
5712
5713         Tests for module 'grantpt'.
5714         * modules/grantpt-tests: New file.
5715         * tests/test-grantpt.c: New file.
5716         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
5717
5718 2011-09-20  Bruno Haible  <bruno@clisp.org>
5719
5720         freopen tests: EBADF tests.
5721         * tests/test-freopen.c: Include errno.h, unistd.h.
5722         (main): Add tests for EBADF, commented out for the moment.
5723
5724         fclose tests: EBADF tests.
5725         * tests/test-fclose.c (main): Add tests for EBADF.
5726
5727         fflush tests: EBADF tests.
5728         * tests/test-fflush.c: Include errno.h, macros.h.
5729         (main): Add tests for EBADF.
5730
5731         ftello tests: EBADF tests.
5732         * tests/test-ftello4.sh: New file.
5733         * tests/test-ftello4.c: New file.
5734         * modules/ftello-tests (Files): Add them.
5735         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
5736
5737         fseeko tests: EBADF tests.
5738         * tests/test-fseeko4.sh: New file.
5739         * tests/test-fseeko4.c: New file.
5740         * modules/fseeko-tests (Files): Add them.
5741         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
5742
5743         Tests for function fputc().
5744         * modules/fputc-tests: New file.
5745         * tests/test-fputc.c: New file.
5746         * modules/stdio-tests (Depends-on): Add fputc-tests.
5747
5748         Tests for function fgetc().
5749         * modules/fgetc-tests: New file.
5750         * tests/test-fgetc.c: New file.
5751         * modules/stdio-tests (Depends-on): Add fgetc-tests.
5752
5753         Tests for function fdopen().
5754         * modules/fdopen-tests: New file.
5755         * tests/test-fdopen.c: New file.
5756         * modules/stdio-tests (Depends-on): Add fdopen-tests.
5757
5758         Tests for module 'vdprintf'.
5759         * modules/vdprintf-tests: New file.
5760         * tests/test-vdprintf.c: New file.
5761
5762         Tests for module 'dprintf'.
5763         * modules/dprintf-tests: New file.
5764         * tests/test-dprintf.c: New file.
5765
5766 2011-09-20  Bruno Haible  <bruno@clisp.org>
5767
5768         Tests for module 'ioctl'.
5769         * modules/ioctl-tests: New file.
5770         * tests/test-ioctl.c: New file.
5771
5772 2011-09-20  Bruno Haible  <bruno@clisp.org>
5773
5774         fcntl tests: EBADF tests.
5775         * tests/test-fcntl.c (main): Add more tests for EBADF.
5776
5777 2011-09-20  Bruno Haible  <bruno@clisp.org>
5778
5779         utimensat tests: EBADF tests.
5780         * tests/test-utimensat.c (main): Add tests for EBADF.
5781
5782         renameat tests: EBADF tests.
5783         * tests/test-renameat.c (main): Add tests for EBADF.
5784
5785         mkfifoat tests: EBADF tests.
5786         * tests/test-mkfifoat.c (main): Add tests for EBADF.
5787
5788         readlinkat tests: EBADF tests.
5789         * tests/test-readlinkat.c (main): Add tests for EBADF.
5790
5791         symlinkat tests: EBADF tests.
5792         * tests/test-symlinkat.c (main): Add tests for EBADF.
5793
5794         linkat tests: EBADF tests.
5795         * tests/test-linkat.c (main): Add tests for EBADF.
5796
5797         Tests for module 'faccessat'.
5798         * modules/faccessat-tests: New file.
5799         * tests/test-faccessat.c: New file.
5800
5801         fdopendir tests: EBADF tests.
5802         * tests/test-fdopendir.c (main): Add more tests for EBADF.
5803
5804         openat tests: EBADF tests.
5805         * tests/test-fchownat.c (main): Add tests for EBADF.
5806         * tests/test-fstatat.c (main): Likewise.
5807         * tests/test-mkdirat.c (main): Likewise.
5808         * tests/test-openat.c (main): Likewise.
5809         * tests/test-unlinkat.c (main): Likewise.
5810         * tests/test-fchmodat.c: New file.
5811         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
5812         (Makefile.am): Also run 'test-fchmodat'.
5813
5814 2011-09-20  Bruno Haible  <bruno@clisp.org>
5815
5816         utimens, futimens, fdutimensat tests: EBADF tests.
5817         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
5818
5819         Tests for function fstat().
5820         * modules/fstat-tests: New file.
5821         * tests/test-fstat.c: New file.
5822         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
5823
5824 2011-09-20  Bruno Haible  <bruno@clisp.org>
5825
5826         test-ttyname_r tests: EBADF tests.
5827         * tests/test-ttyname_r.c (main): Add tests for EBADF.
5828
5829         Tests for module 'isatty'.
5830         * modules/isatty-tests: New file.
5831         * tests/test-isatty.c: New file.
5832
5833         Tests for module 'write'.
5834         * modules/write-tests: New file.
5835         * tests/test-write.c: New file.
5836
5837         Tests for module 'read'.
5838         * modules/read-tests: New file.
5839         * tests/test-read.c: New file.
5840
5841         pwrite tests: EBADF tests.
5842         * tests/test-pwrite.c (main): Add tests for EBADF.
5843
5844         pread tests: EBADF tests.
5845         * tests/test-pread.c (main): Add tests for EBADF.
5846
5847         lseek tests: EBADF tests.
5848         * tests/test-lseek.c (main): Add more tests for EBADF.
5849
5850         Tests for module 'ftruncate'.
5851         * modules/ftruncate-tests: New file.
5852         * tests/test-ftruncate.sh: New file.
5853         * tests/test-ftruncate.c: New file.
5854
5855         fsync tests: EBADF tests.
5856         * tests/test-fsync.c (main): Add more tests for EBADF.
5857
5858         fdatasync tests: EBADF tests.
5859         * tests/test-fdatasync.c (main): Add more tests for EBADF.
5860
5861         Tests for module 'fchown'.
5862         * modules/fchown-tests: New file.
5863         * tests/test-fchown.c: New file.
5864
5865         Tests for module 'fchmod'.
5866         * modules/fchmod-tests: New file.
5867         * tests/test-fchmod.c: New file.
5868
5869         fchdir tests: EBADF tests.
5870         * tests/test-fchdir.c (main): Add more tests for EBADF.
5871
5872         dup2 tests: EBADF tests.
5873         * tests/test-dup2.c (main): Add more tests for EBADF.
5874
5875         Tests for module 'dup'.
5876         * modules/dup-tests: New file.
5877         * tests/test-dup.c: New file.
5878
5879         Tests for module 'close'.
5880         * modules/close-tests: New file.
5881         * tests/test-close.c: New file.
5882
5883 2011-09-20  Bruno Haible  <bruno@clisp.org>
5884
5885         Tests for module 'shutdown'.
5886         * modules/shutdown-tests: New file.
5887         * tests/test-shutdown.c: New file.
5888
5889         Tests for module 'setsockopt'.
5890         * modules/setsockopt-tests: New file.
5891         * tests/test-setsockopt.c: New file.
5892
5893         Tests for module 'sendto'.
5894         * modules/sendto-tests: New file.
5895         * tests/test-sendto.c: New file.
5896
5897         Tests for module 'send'.
5898         * modules/send-tests: New file.
5899         * tests/test-send.c: New file.
5900
5901         Tests for module 'recvfrom'.
5902         * modules/recvfrom-tests: New file.
5903         * tests/test-recvfrom.c: New file.
5904
5905         Tests for module 'recv'.
5906         * modules/recv-tests: New file.
5907         * tests/test-recv.c: New file.
5908
5909         Tests for module 'listen'.
5910         * modules/listen-tests: New file.
5911         * tests/test-listen.c: New file.
5912
5913         Tests for module 'getsockopt'.
5914         * modules/getsockopt-tests: New file.
5915         * tests/test-getsockopt.c: New file.
5916
5917         Tests for module 'getsockname'.
5918         * modules/getsockname-tests: New file.
5919         * tests/test-getsockname.c: New file.
5920
5921         Tests for module 'getpeername'.
5922         * modules/getpeername-tests: New file.
5923         * tests/test-getpeername.c: New file.
5924
5925         Tests for module 'connect'.
5926         * modules/connect-tests: New file.
5927         * tests/test-connect.c: New file.
5928
5929         Tests for module 'bind'.
5930         * modules/bind-tests: New file.
5931         * tests/test-bind.c: New file.
5932
5933         accept4 tests: Fix for native Windows.
5934         * tests/test-accept4.c: Include sockets.h.
5935         (main): Invoke gl_sockets_startup.
5936         * modules/accept4-tests (Depends-on): Add sockets.
5937
5938         accept tests: Fix for native Windows.
5939         * tests/test-accept.c: Include sockets.h.
5940         (main): Invoke gl_sockets_startup.
5941         * modules/accept-tests (Depends-on): Add sockets.
5942
5943 2011-09-19  Bruno Haible  <bruno@clisp.org>
5944
5945         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
5946         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
5947         do...while(0).
5948         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
5949         Suggested by Paul Eggert.
5950
5951 2011-09-19  Bruno Haible  <bruno@clisp.org>
5952
5953         sched: Ensure pid_t is defined.
5954         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
5955         not define pid_t.
5956         * lib/sched.in.h: Include <sys/types.h>.
5957         * doc/posix-headers/sched.texi: Mention the pid_t problem.
5958         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5959
5960 2011-09-19  Bruno Haible  <bruno@clisp.org>
5961
5962         msvc-inval: Ensure the entire expansion is a single statement.
5963         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
5964         of braces.
5965
5966 2011-09-19  Jim Meyering  <meyering@redhat.com>
5967
5968         tests: use printf, not echo in init.sh's warn_ function
5969         * tests/init.sh (warn_): Use printf, not echo.  The latter would
5970         misbehave when given strings containing a backslash or starting
5971         with e.g., -n.  James Youngman suggested setting IFS.
5972
5973 2011-09-19  Eric Blake  <eblake@redhat.com>
5974
5975         futimens: enhance test
5976         * tests/test-futimens.h (test_futimens): Also check for EBADF on
5977         closed non-negative fd.
5978
5979         date: accept 'hence' as opposite of 'ago'
5980         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
5981         * tests/test-parse-datetime.c (main): Enhance test.
5982         Suggested by Jesse Wilson.
5983
5984 2011-09-19  Jim Meyering  <meyering@redhat.com>
5985
5986         getcwd: don't fail in a deep directory on a system without openat
5987         Before this change, getcwd would fail when called from a directory
5988         of depth PATH_MAX / 3 or greater.  That was due to the fact that
5989         the non-openat implementation used "..", "../..", "../../..", etc.
5990         to access ancestor directories.  With too many, that string would
5991         be longer than PATH_MAX.
5992         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
5993         using gnulib's openat replacement.
5994         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
5995         we're using the replacement function.
5996
5997 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
5998
5999         maint.mk: avoid warnings from perl about missing files
6000         * top/maint.mk (def_sym_regex): Ignore files listed in
6001         $(gl_other_headers_) that do not exist, say because a project
6002         does not use a corresponding module.
6003
6004 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
6005
6006         stat: use pathmax.h only if needed
6007         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
6008         This is better for Emacs, which does not have a mingw port and
6009         therefore can avoid the pathmax module.
6010
6011         utimens: remove dependency on dup2
6012         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
6013         to work around the Linux kernel bug.
6014         * modules/utimens (Depends-on): Remove dup2.
6015
6016 2011-09-18  Bruno Haible  <bruno@clisp.org>
6017
6018         inet_ntop, inet_pton: Look for it also in libresolv.
6019         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
6020         libnsl, search for it in libresolv.
6021         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6022         Needed on Solaris 7.
6023
6024 2011-09-18  Bruno Haible  <bruno@clisp.org>
6025
6026         accept, accept4 tests: Avoid link error on Solaris.
6027         * modules/accept-tests (Makefile.am): Link test-accept against
6028         $(LIBSOCKET).
6029         * modules/accept4-tests (Makefile.am): Link test-accept4 against
6030         $(LIBSOCKET).
6031
6032         accept4: Avoid link error on Solaris.
6033         * modules/accept4 (Link): New section.
6034
6035         socket functions: Avoid link errors on Solaris.
6036         * modules/accept (Depends-on): Add socketlib.
6037         (Link): New section.
6038         * modules/bind (Depends-on): Add socketlib.
6039         (Link): New section.
6040         * modules/connect (Depends-on): Add socketlib.
6041         (Link): New section.
6042         * modules/getpeername (Depends-on): Add socketlib.
6043         (Link): New section.
6044         * modules/getsockname (Depends-on): Add socketlib.
6045         (Link): New section.
6046         * modules/getsockopt (Depends-on): Add socketlib.
6047         (Link): New section.
6048         * modules/listen (Depends-on): Add socketlib.
6049         (Link): New section.
6050         * modules/recv (Depends-on): Add socketlib.
6051         (Link): New section.
6052         * modules/recvfrom (Depends-on): Add socketlib.
6053         (Link): New section.
6054         * modules/send (Depends-on): Add socketlib.
6055         (Link): New section.
6056         * modules/sendto (Depends-on): Add socketlib.
6057         (Link): New section.
6058         * modules/setsockopt (Depends-on): Add socketlib.
6059         (Link): New section.
6060         * modules/shutdown (Depends-on): Add socketlib.
6061         (Link): New section.
6062         * modules/socket (Depends-on): Add socketlib.
6063         (Link): New section.
6064
6065 2011-09-18  Bruno Haible  <bruno@clisp.org>
6066
6067         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
6068         * tests/test-ptsname.c (main): Terminate the test if it takes longer
6069         than 5 seconds.
6070         * modules/ptsname-tests (configure.ac): Test for alarm.
6071
6072 2011-09-18  Bruno Haible  <bruno@clisp.org>
6073
6074         posix_spawn_file_actions_add*: Fix module dependencies.
6075         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
6076         posix_spawn_file_actions_init.
6077         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
6078         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
6079
6080 2011-09-18  Bruno Haible  <bruno@clisp.org>
6081
6082         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
6083         * tests/test-rename.h (test_rename): Allow error code EEXIST.
6084         * tests/test-renameat.c (main): Likewise.
6085
6086 2011-09-18  Bruno Haible  <bruno@clisp.org>
6087
6088         Tests for module 'accept4'.
6089         * modules/accept4-tests: New file.
6090         * tests/test-accept4.c: New file.
6091
6092 2011-09-18  Bruno Haible  <bruno@clisp.org>
6093
6094         Tests for module 'accept'.
6095         * modules/accept-tests: New file.
6096         * tests/test-accept.c: New file.
6097
6098 2011-09-18  Bruno Haible  <bruno@clisp.org>
6099
6100         dup2: Support for MSVC.
6101         * lib/dup2.c: Include msvc-inval.h.
6102         (rpl_dup2): Handle invalid parameter notifications during dup2 and
6103         _get_osfhandle calls.
6104         * modules/dup2 (Depends-on): Add msvc-inval.
6105         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
6106
6107         New module 'msvc-inval'.
6108         * lib/msvc-inval.h: New file.
6109         * lib/msvc-inval.c: New file.
6110         * m4/msvc-inval.m4: New file.
6111         * modules/msvc-inval: New file.
6112
6113 2011-09-17  Bruno Haible  <bruno@clisp.org>
6114
6115         Tests for module 'pclose'.
6116         * modules/pclose-tests: New file.
6117
6118         New module 'pclose'.
6119         * lib/stdio.in.h (pclose): New declaration.
6120         * lib/pclose.c: New file.
6121         * m4/pclose.m4: New file.
6122         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
6123         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
6124         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
6125         * modules/pclose: New file.
6126         * modules/popen-tests (Depends-on): Add pclose.
6127         * modules/popen-safer-tests (Depends-on): Likewise.
6128         * doc/posix-functions/pclose.texi: Mention the new module.
6129
6130 2011-09-17  Bruno Haible  <bruno@clisp.org>
6131
6132         popen: Support for MSVC.
6133         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
6134         * lib/popen.c (popen): Provide alternate definition for native Windows.
6135         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
6136         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
6137         * modules/popen (Depends-on, configure.ac): Update condition.
6138         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
6139         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
6140         fixed.
6141
6142 2011-09-17  Bruno Haible  <bruno@clisp.org>
6143
6144         isnanl, isnand, isnanf: Work around MSVC bug.
6145         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
6146
6147 2011-09-17  Bruno Haible  <bruno@clisp.org>
6148
6149         sys_socket tests: Fix recent mistake.
6150         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
6151
6152 2011-09-17  Bruno Haible  <bruno@clisp.org>
6153
6154         putenv: Support for MSVC.
6155         * modules/putenv (Depends-on): Add environ.
6156         * lib/putenv.c (environ): Disable declaration.
6157         * lib/unistd.in.h: Update comment.
6158
6159 2011-09-17  Bruno Haible  <bruno@clisp.org>
6160
6161         math: Avoid macro redefinition warnings on MSVC.
6162         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
6163         Undefine before redefining.
6164
6165 2011-09-17  Bruno Haible  <bruno@clisp.org>
6166
6167         doc: Mention functions which are declared as macros.
6168         * doc/posix-functions/*[fl].texi: Mention that some functions are
6169         defined as macros with arguments only.
6170
6171 2011-09-17  Bruno Haible  <bruno@clisp.org>
6172
6173         Add dependencies to new dirent related modules.
6174         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
6175         * modules/fts (Depends-on): Likewise.
6176         * modules/glob (Depends-on): Likewise.
6177         * modules/savedir (Depends-on): Likewise.
6178         * modules/scandir (Depends-on): Likewise.
6179         * modules/dirent-safer (Depends-on): Add opendir, closedir.
6180         * modules/fdopendir (Depends-on): Add opendir.
6181
6182 2011-09-17  Bruno Haible  <bruno@clisp.org>
6183
6184         inet_pton: Support for MSVC on Windows Vista or newer.
6185         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
6186         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
6187         HAVE_DECL_INET_PTON is defined.
6188         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
6189         On platforms with <winsock2.h>, test whether inet_pton is declared in
6190         <ws2tcpip.h>. If so, arrange to replace it.
6191         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
6192         REPLACE_INET_PTON.
6193         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
6194         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
6195         (Depends-on, configure.ac): Update condition.
6196         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
6197
6198 2011-09-17  Bruno Haible  <bruno@clisp.org>
6199
6200         inet_ntop: Support for MSVC on Windows Vista or newer.
6201         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
6202         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
6203         HAVE_DECL_INET_NTOP is defined.
6204         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
6205         On platforms with <winsock2.h>, test whether inet_ntop is declared in
6206         <ws2tcpip.h>. If so, arrange to replace it.
6207         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
6208         REPLACE_INET_NTOP.
6209         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
6210         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
6211         (Depends-on, configure.ac): Update condition.
6212         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
6213
6214 2011-09-16  Eric Blake  <eblake@redhat.com>
6215
6216         test-fsync: yet another enhancement
6217         * tests/test-fsync.c (main): Also test behavior on read-only text
6218         file.
6219
6220 2011-09-16  Bruno Haible  <bruno@clisp.org>
6221
6222         Enhance fsync, fdatasync tests.
6223         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
6224         * tests/test-fdatasync.c (main): Likewise.
6225
6226 2011-09-16  Bruno Haible  <bruno@clisp.org>
6227
6228         Support for MSVC compiler: Ensure mode_t gets defined.
6229         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
6230         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6231         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
6232         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
6233         * tests/test-fcntl-h.c: Check that mode_t is defined.
6234         * tests/test-sys_stat.c: Likewise.
6235         * tests/test-sys_types.c: Likewise.
6236         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
6237         * doc/posix-headers/sys_stat.texi: Likewise.
6238         * doc/posix-headers/sys_types.texi: Likewise.
6239
6240 2011-09-16  Bruno Haible  <bruno@clisp.org>
6241
6242         sys_stat: Support for MSVC.
6243         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
6244         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
6245         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
6246         MSVC.
6247
6248 2011-09-16  Bruno Haible  <bruno@clisp.org>
6249
6250         Support for MSVC compiler: Ensure off_t gets defined.
6251         * lib/unistd.in.h: Include <sys/types.h>.
6252         * tests/test-fcntl-h.c: Check that off_t is defined.
6253         * tests/test-sys_stat.c: Likewise.
6254         * tests/test-sys_types.c: Likewise.
6255
6256 2011-09-16  Eric Blake  <eblake@redhat.com>
6257
6258         fdatasync: port to Solaris
6259         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
6260         * modules/fdatasync (Link): Document it.
6261         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
6262
6263         fdatasync: port to MacOS X 10.7
6264         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
6265         declared.
6266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
6267         * modules/unistd (Makefile.am): Substitute it.
6268         * lib/unistd.in.h (fdatasync): Declare on MacOS.
6269         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
6270
6271         fdatasync: minor improvements
6272         * modules/fdatasync (Depends-on): Add condition for fsync.
6273         * lib/fdatasync.c (fdatasync): Add comment.
6274         * tests/test-unistd-c++.cc: Test fdatasync.
6275
6276         unistd: update refs to newer POSIX
6277         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
6278         Suggested by Bruno Haible.
6279
6280         fdatasync: new module
6281         * modules/fsync (Description): Document difference to fdatasync.
6282         * modules/fdatasync: New module.
6283         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
6284         * lib/fdatasync.c (fdatasync): Likewise.
6285         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
6286         defaults.
6287         * modules/unistd (Makefile.am): Set witnesses.
6288         * lib/unistd.in.h (fdatasync): Declare.
6289         * MODULES.html.sh: Document it.
6290         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
6291         * modules/fdatasync-tests: New test.
6292         * tests/test-fdatasync.c: Likewise.
6293
6294 2011-09-16  Eric Blake  <eblake@redhat.com>
6295
6296         test-fsync: enhance tests
6297         * modules/fsync-tests (Depends-on): Add errno, for mingw.
6298         * tests/test-fsync.c (main): Enhance test.
6299
6300 2011-09-15  Bruno Haible  <bruno@clisp.org>
6301
6302         Support for MSVC compiler: Ensure ssize_t gets defined.
6303         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
6304         * doc/posix-headers/stdio.texi: Likewise.
6305         * modules/stdio (Depends-on): Add ssize_t.
6306         * modules/sys_socket (Depends-on): Likewise.
6307         * modules/sys_types (Depends-on): Likewise.
6308         * modules/sys_uio (Depends-on): Likewise.
6309         * modules/unistd (Depends-on): Likewise.
6310         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
6311         * tests/test-sys_types.c: Check that ssize_t is defined.
6312
6313 2011-09-14  Bruno Haible  <bruno@clisp.org>
6314
6315         Avoid using #, the m4 comment starter character, near brackets.
6316         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
6317         delimiter character in sed expressions.
6318         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6319         Suggested by Eric Blake.
6320
6321         Properly quote AC_CHECK_DECLS' 4th argument.
6322         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
6323         argument.
6324         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6325         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6326         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6327         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6328         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
6329         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
6330         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
6331         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
6332         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
6333         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
6334         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
6335         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6336         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6337         * m4/isinf.m4 (gl_ISINF): Likewise.
6338         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6339         * m4/readutmp.m4 (gl_READUTMP): Likewise.
6340         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
6341         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6342         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6343         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6344         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6345         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6346         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
6347         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6348         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6349         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6350         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
6351         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6352         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6353         Reported by Eric Blake.
6354
6355         Properly quote AC_CHECK_DECL's 4th argument.
6356         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
6357         argument.
6358         * m4/argp.m4 (gl_ARGP): Likewise.
6359         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
6360         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6361         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
6362         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6363         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
6364         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
6365         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
6366         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
6367         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6368         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
6369         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
6370         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
6371         Reported by Eric Blake.
6372
6373 2011-09-14  Eric Blake  <eblake@redhat.com>
6374
6375         opendir: avoid compile warning
6376         * lib/opendir.c (includes): Always include errno.h.
6377         Reported by Tatsuro MATSUOKA.
6378
6379 2011-09-14  Jim Meyering  <meyering@redhat.com>
6380
6381         maint.mk: sc_tight_scope: propagate failure from sub-make
6382         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
6383         Reported by Martin von Gagern.
6384
6385 2011-09-13  Bruno Haible  <bruno@clisp.org>
6386
6387         tempname: Support for MSVC.
6388         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
6389         MSVC.
6390         * modules/tempname (Depends-on): Add fcntl-h.
6391
6392 2011-09-13  Bruno Haible  <bruno@clisp.org>
6393
6394         sys_time: Support for MSVC.
6395         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
6396         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
6397         include <winsock2.h>.
6398         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
6399         function declarations that collide with POSIX.
6400         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
6401         (Makefile.am): Substitute HAVE_WINSOCK2_H.
6402
6403 2011-09-13  Bruno Haible  <bruno@clisp.org>
6404
6405         stat: Support for MSVC.
6406         * lib/stat.c: Include pathmax.h.
6407         * modules/stat (Depends-on): Add pathmax.
6408
6409         pathmax: Support for native Windows.
6410         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
6411
6412 2011-09-12  Bruno Haible  <bruno@clisp.org>
6413
6414         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
6415         * lib/dirent.in.h (struct dirent): New type.
6416         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
6417         DT_WHT): New macros.
6418         (DIR): New type.
6419         (opendir, closedir): Declare only if the module 'opendir' is enabled.
6420         (readdir, rewinddir): New declarations.
6421         * lib/dirent-private.h: New file.
6422         * lib/opendir.c: New file.
6423         * lib/readdir.c: New file.
6424         * lib/rewinddir.c: New file.
6425         * lib/closedir.c: New file.
6426         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
6427         * m4/opendir.m4: New file.
6428         * m4/readdir.m4: New file.
6429         * m4/rewinddir.m4: New file.
6430         * m4/closedir.m4: New file.
6431         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
6432         REPLACE_CLOSEDIR here.
6433         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
6434         readdir, rewinddir are declared.
6435         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
6436         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
6437         HAVE_REWINDDIR, HAVE_CLOSEDIR.
6438         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
6439         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
6440         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
6441         * modules/opendir: New file.
6442         * modules/readdir: New file.
6443         * modules/rewinddir: New file.
6444         * modules/closedir: New file.
6445         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
6446         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
6447         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
6448         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
6449         * NEWS: Mention the 'fchdir' change.
6450
6451 2011-09-11  Bruno Haible  <bruno@clisp.org>
6452
6453         asm-underscore.m4: Support for MSVC.
6454         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
6455         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
6456
6457 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
6458
6459         Doc about crypt functions.
6460         * doc/posix-functions/crypt.texi: Expand range of glibc versions
6461         needing for _GNU_SOURCE to get crypt.
6462         * doc/posix-functions/encrypt.texi: Likewise.
6463         * doc/posix-functions/setkey.texi: Likewise.
6464
6465 2011-09-11  Bruno Haible  <bruno@clisp.org>
6466
6467         doc: Update regarding MSVC 9.
6468         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
6469         tested".
6470         * doc/posix-functions/*.texi: Update with info about MSVC 9.
6471         * doc/posix-headers/*.texi: Likewise.
6472         * doc/pastposix-functions/*.texi: Likewise.
6473         * doc/glibc-functions/*.texi: Likewise.
6474         * doc/glibc-headers/*.texi: Likewise.
6475
6476 2011-09-11  Bruno Haible  <bruno@clisp.org>
6477
6478         unistd et al.: Don't assume <unistd.h> exists.
6479         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
6480         does not exist.
6481         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
6482         exist. But include <stdlib.h>.
6483         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
6484         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
6485         symlink() does not exist.
6486         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
6487         include <io.h> instead.
6488         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
6489         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
6490         include <direct.h> instead.
6491         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6492         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6493         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
6494         <io.h> instead.
6495         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
6496         correctly if the system does not have hard links.
6497         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
6498         <direct.h> instead.
6499         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
6500         it when looking for function declarations.
6501         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
6502         <direct.h> and <io.h> instead.
6503         * doc/posix-headers/unistd.texi: More details about MSVC problem.
6504
6505 2011-09-11  Bruno Haible  <bruno@clisp.org>
6506
6507         strcase: Support for MSVC.
6508         * modules/strcase (Status, Notice): Remove obsoletion mark.
6509         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
6510         * doc/posix-functions/strncasecmp.texi: Likewise.
6511
6512         strings: Don't assume <strings.h> exists.
6513         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
6514         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
6515         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
6516         * doc/posix-headers/strings.texi: Mention the MSVC problem.
6517
6518 2011-09-11  Bruno Haible  <bruno@clisp.org>
6519
6520         dirent: Don't assume <dirent.h> exists.
6521         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
6522         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
6523         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
6524         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
6525
6526 2011-09-11  Bruno Haible  <bruno@clisp.org>
6527
6528         Fix wint_t on MSVC.
6529         * lib/wchar.in.h (wint_t): On MSVC, override it.
6530         * lib/wctype.in.h (wint_t): Likewise.
6531         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
6532         MSVC.
6533         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
6534         * doc/posix-headers/wctype.texi: Likewise.
6535
6536 2011-09-11  Bruno Haible  <bruno@clisp.org>
6537
6538         sys_types: Fix typo.
6539         * lib/sys_types.in.h: Fix typo in comment.
6540         Reported by Paul Eggert.
6541
6542         Support for MSVC compiler: Ensure size_t gets defined.
6543         * modules/strings (Depends-on): Add 'sys_types'.
6544         * modules/sys_uio (Depends-on): Likewise.
6545         * lib/sys_uio.in.h: Update comment.
6546
6547         C++ tests for module 'sys_types'.
6548         * modules/sys_types-c++-tests: New file.
6549         * tests/test-sys_types-c++.cc: New file.
6550
6551         Tests for module 'sys_types'.
6552         * modules/sys_types-tests: New file.
6553         * tests/test-sys_types.c: New file.
6554
6555         New module 'sys_types'.
6556         * lib/sys_types.in.h: New file.
6557         * m4/sys_types_h.m4: New file.
6558         * modules/sys_types: New file.
6559         * doc/posix-headers/sys_types.texi: Mention the new module and the
6560         size_t problem on MSVC 9.
6561
6562 2011-09-11  Bruno Haible  <bruno@clisp.org>
6563
6564         Support for MSVC compiler: Avoid division by a literal 0.
6565         * lib/math.in.h (NAN): Define through a function call also on MSVC.
6566         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
6567         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
6568         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
6569         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
6570         * tests/infinity.h: New file.
6571         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
6572         on MSVC.
6573         * tests/test-ceilf1.c: Include infinity.h.
6574         (main): Use Infinityf.
6575         * tests/test-ceil1.c: Include infinity.h.
6576         (main): Use Infinityd.
6577         * tests/test-ceill.c: Include infinity.h.
6578         (main): Use Infinityl.
6579         * tests/test-dprintf-posix.c: Include infinity.h.
6580         (test_function): Use Infinityd.
6581         * tests/test-floorf1.c: Include infinity.h.
6582         (main): Use Infinityf.
6583         * tests/test-floor1.c: Include infinity.h.
6584         (main): Use Infinityd.
6585         * tests/test-floorl.c: Include infinity.h.
6586         (main): Use Infinityl.
6587         * tests/test-fprintf-posix.c: Include infinity.h.
6588         (test_function): Use Infinityd.
6589         * tests/test-frexp.c: Include infinity.h.
6590         (main): Use Infinityd.
6591         * tests/test-frexpl.c: Include infinity.h.
6592         (main): Use Infinityl.
6593         * tests/test-isfinite.c: Include infinity.h.
6594         (test_isfinitef): Use Infinityf.
6595         (test_isfinited): Use Infinityd.
6596         (test_isfinitel): Use Infinityl.
6597         * tests/test-isinf.c: Include infinity.h.
6598         (test_isinff): Use Infinityf.
6599         (test_isinfd): Use Infinityd.
6600         (test_isinfl): Use Infinityl.
6601         * tests/test-isnan.c: Include infinity.h.
6602         (test_float): Use Infinityf.
6603         (test_double): Use Infinityd.
6604         (test_long_double): Use Infinityl.
6605         * tests/test-isnanf.h: Include infinity.h.
6606         (main): Use Infinityf.
6607         * tests/test-isnand.h: Include infinity.h.
6608         (main): Use Infinityd.
6609         * tests/test-isnanl.h: Include infinity.h.
6610         (main): Use Infinityl.
6611         * tests/test-ldexpl.c: Include infinity.h.
6612         (main): Use Infinityl.
6613         * tests/test-printf-posix.h: Include infinity.h.
6614         (test_function): Use Infinityd.
6615         * tests/test-roundf1.c: Include infinity.h.
6616         (main): Use Infinityf.
6617         * tests/test-round1.c: Include infinity.h.
6618         (main): Use Infinityd.
6619         * tests/test-roundl.c: Include infinity.h.
6620         (main): Use Infinityl.
6621         * tests/test-signbit.c: Include infinity.h.
6622         (test_signbitf): Use Infinityf.
6623         (test_signbitd): Use Infinityd.
6624         (test_signbitl): Use Infinityl.
6625         * tests/test-snprintf-posix.h: Include infinity.h.
6626         (test_function): Use Infinityd, Infinityl.
6627         * tests/test-sprintf-posix.h: Include infinity.h.
6628         (test_function): Use Infinityd, Infinityl.
6629         * tests/test-truncf1.c: Include infinity.h.
6630         (main): Use Infinityf.
6631         * tests/test-trunc1.c: Include infinity.h.
6632         (main): Use Infinityd.
6633         * tests/test-truncl.c: Include infinity.h.
6634         (main): Use Infinityl.
6635         * tests/test-vasnprintf-posix.c: Include infinity.h.
6636         (test_function): Use Infinityd, Infinityl.
6637         * tests/test-vasprintf-posix.c: Include infinity.h.
6638         (test_function): Use Infinityd, Infinityl.
6639         * modules/ceilf-tests (Files): Add tests/infinity.h.
6640         * modules/ceil-tests (Files): Likewise.
6641         * modules/ceill-tests (Files): Likewise.
6642         * modules/dprintf-posix-tests (Files): Likewise.
6643         * modules/floorf-tests (Files): Likewise.
6644         * modules/floor-tests (Files): Likewise.
6645         * modules/floorl-tests (Files): Likewise.
6646         * modules/fprintf-posix-tests (Files): Likewise.
6647         * modules/frexp-tests (Files): Likewise.
6648         * modules/frexp-nolibm-tests (Files): Likewise.
6649         * modules/frexpl-tests (Files): Likewise.
6650         * modules/frexpl-nolibm-tests (Files): Likewise.
6651         * modules/isfinite-tests (Files): Likewise.
6652         * modules/isinf-tests (Files): Likewise.
6653         * modules/isnan-tests (Files): Likewise.
6654         * modules/isnanf-tests (Files): Likewise.
6655         * modules/isnanf-nolibm-tests (Files): Likewise.
6656         * modules/isnand-tests (Files): Likewise.
6657         * modules/isnand-nolibm-tests (Files): Likewise.
6658         * modules/isnanl-tests (Files): Likewise.
6659         * modules/isnanl-nolibm-tests (Files): Likewise.
6660         * modules/ldexpl-tests (Files): Likewise.
6661         * modules/printf-posix-tests (Files): Likewise.
6662         * modules/roundf-tests (Files): Likewise.
6663         * modules/round-tests (Files): Likewise.
6664         * modules/roundl-tests (Files): Likewise.
6665         * modules/signbit-tests (Files): Likewise.
6666         * modules/snprintf-posix-tests (Files): Likewise.
6667         * modules/sprintf-posix-tests (Files): Likewise.
6668         * modules/truncf-tests (Files): Likewise.
6669         * modules/trunc-tests (Files): Likewise.
6670         * modules/truncl-tests (Files): Likewise.
6671         * modules/vasnprintf-posix-tests (Files): Likewise.
6672         * modules/vasprintf-posix-tests (Files): Likewise.
6673         * modules/vdprintf-posix-tests (Files): Likewise.
6674         * modules/vfprintf-posix-tests (Files): Likewise.
6675         * modules/vprintf-posix-tests (Files): Likewise.
6676         * modules/vsnprintf-posix-tests (Files): Likewise.
6677         * modules/vsprintf-posix-tests (Files): Likewise.
6678         * modules/xprintf-posix-tests (Files): Likewise.
6679
6680 2011-09-11  Bruno Haible  <bruno@clisp.org>
6681
6682         Ensure pid_t gets defined.
6683         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
6684         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6685         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
6686         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6687         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
6688         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6689         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
6690         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6691         * tests/test-fcntl-h.c: Check that pid_t is defined.
6692         * tests/test-sched.c: Likewise.
6693         * tests/test-termios.c: Likewise.
6694         * tests/test-time.c: Likewise.
6695         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
6696         * doc/posix-headers/signal.texi: Likewise.
6697         * doc/posix-headers/sys_types.texi: Likewise.
6698         * doc/posix-headers/time.texi: Likewise.
6699
6700 2011-09-11  Bruno Haible  <bruno@clisp.org>
6701
6702         acl: Fix compilation on Solaris 10 (older version).
6703         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
6704         of ACE_EVERYONE.
6705         * lib/set-mode-acl.c (qset_acl): Likewise.
6706         Reported by Christian Jullien <eligis@orange.fr>.
6707
6708 2011-09-10  Bruno Haible  <bruno@clisp.org>
6709
6710         iconv, unsetenv: Add support for MSVC compiler.
6711         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
6712         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
6713
6714 2011-09-10  Bruno Haible  <bruno@clisp.org>
6715
6716         *printf: Add support for MSVC compiler.
6717         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
6718         handles the exception caused by the %n directive. When cross-compiling,
6719         guess no on native Windows.
6720         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6721         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
6722         emulate it through vsnprintf.
6723         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
6724         * doc/posix-functions/dprintf.texi: Update documentation regarding
6725         MSVC 9.
6726         * doc/posix-functions/fprintf.texi: Likewise.
6727         * doc/posix-functions/printf.texi: Likewise.
6728         * doc/posix-functions/snprintf.texi: Likewise.
6729         * doc/posix-functions/sprintf.texi: Likewise.
6730         * doc/posix-functions/swprintf.texi: Likewise.
6731         * doc/posix-functions/vdprintf.texi: Likewise.
6732         * doc/posix-functions/vfprintf.texi: Likewise.
6733         * doc/posix-functions/vprintf.texi: Likewise.
6734         * doc/posix-functions/vsnprintf.texi: Likewise.
6735         * doc/posix-functions/vsprintf.texi: Likewise.
6736         * doc/glibc-functions/asprintf.texi: Likewise.
6737         * doc/glibc-functions/obstack_printf.texi: Likewise.
6738         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
6739         * doc/glibc-functions/vasprintf.texi: Likewise.
6740
6741 2011-09-10  Bruno Haible  <bruno@clisp.org>
6742
6743         nocrash: Add support for native Windows.
6744         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
6745
6746 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
6747             Bruno Haible  <bruno@clisp.org>
6748
6749         absolute-header, include-next: Add support for MSVC compiler.
6750         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
6751         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
6752         directory separator in #line directives.
6753         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
6754         recognize also backslash as directory separator in #line directives.
6755
6756 2011-09-08  Jim Meyering  <meyering@redhat.com>
6757
6758         maint.mk: mark the post-release commit log with "maint: " prefix
6759         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
6760         one-line commit-log summary.
6761
6762 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
6763             Bruno Haible  <bruno@clisp.org>
6764
6765         Doc about crypt functions.
6766         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
6767         systems.
6768         * doc/posix-functions/encrypt.texi: Likewise.
6769         * doc/posix-functions/setkey.texi: Likewise.
6770
6771 2011-09-08  Simon Josefsson  <simon@josefsson.org>
6772
6773         * lib/gc.h: Fix copyright header.
6774
6775 2011-09-07  Bruno Haible  <bruno@clisp.org>
6776
6777         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
6778         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
6779         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
6780
6781 2011-09-07  Bruno Haible  <bruno@clisp.org>
6782
6783         openat: Work around compilation error with OSF/1 5.1 DTK cc.
6784         * lib/fopen.c: Use different syntax for include of <stdio.h>.
6785         * lib/freopen.c: Likewise.
6786         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
6787         * lib/lstat.c: Likewise.
6788         * lib/stat.c: Likewise.
6789         * lib/open.c: Use different syntax for include of <fcntl.h>.
6790         * lib/openat.c: Include fcntl.h again, explicitly.
6791
6792 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
6793
6794         parse-datetime: document the newly accepted format
6795         * doc/parse-datetime.texi (Combined date and time of day items):
6796         New section.
6797
6798 2011-09-06  Bruno Haible  <bruno@clisp.org>
6799
6800         acl: Fix a test failure on newer Solaris 10 with ZFS.
6801         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
6802         ENOSYS as no ACL.
6803         Reported by Jim Meyering.
6804
6805 2011-09-06  Bruno Haible  <bruno@clisp.org>
6806
6807         acl: Update for AIX >= 5.3 with NFS.
6808         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
6809         ENOSYS as no ACL.
6810
6811         acl: Fix a test failure on AIX >= 5.3 with NFS.
6812         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
6813         as no ACL.
6814
6815 2011-09-06  Bruno Haible  <bruno@clisp.org>
6816
6817         acl: Fix a test failure on IRIX 6.5 with NFS.
6818         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
6819         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
6820         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
6821         * lib/copy-acl.c (qcopy_acl): Likewise.
6822
6823 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
6824
6825         openat: port to AIX 7.1 with large files
6826         AIX 7.1 does a "#define openat open64at" if large files are in use,
6827         so we can't simply #undef openat.  Use the orig_openat trick (similar
6828         to orig_open in lib/open.c) to work around the problem.  Problem
6829         reported by Kevin Brott for GNU tar, in the thread containing
6830         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
6831         * lib/openat.c (__need_system_fcntl_h): Define first.
6832         Include <fcntl.h> and <sys/types.h> before undefining.
6833         (orig_openat) [HAVE_OPENAT]: New inline function.
6834         (openat) [HAVE_OPENAT]: Do not undef.
6835         (rpl_openat): Use orig_openat, not openat.
6836
6837 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
6838             Bruno Haible  <bruno@clisp.org>
6839
6840         acl: Avoid errors on NonStop Kernel.
6841         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
6842         ENOTSUP errors.
6843
6844 2011-09-05  Bruno Haible  <bruno@clisp.org>
6845
6846         acl: Clean up Solaris code.
6847         * lib/acl-internal.h: Remove no-op #if.
6848         * lib/file-has-acl.c: Likewise.
6849         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
6850         * lib/copy-acl.c (qcopy_acl): Likewise.
6851
6852 2011-09-05  Bruno Haible  <bruno@clisp.org>
6853
6854         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
6855         binaries built on the original Solaris 10.
6856         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
6857         trivial.
6858
6859 2011-09-05  Bruno Haible  <bruno@clisp.org>
6860
6861         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
6862         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
6863         10.
6864         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
6865         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
6866         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
6867         instead of acl_get, facl_get, acl_set, facl_set.
6868
6869 2011-09-05  Bruno Haible  <bruno@clisp.org>
6870
6871         copy-file: Try unit tests on more file systems.
6872         * tests/test-copy-file-1.sh: New file.
6873         * tests/test-copy-file-2.sh: New file.
6874         * modules/copy-file-tests (Files): Add them.
6875         (Makefile.am): Add them to TESTS.
6876
6877         acl: Try unit tests on more file systems.
6878         * tests/test-file-has-acl-1.sh: New file.
6879         * tests/test-file-has-acl-2.sh: New file.
6880         * tests/test-set-mode-acl-1.sh: New file.
6881         * tests/test-set-mode-acl-2.sh: New file.
6882         * tests/test-copy-acl-1.sh: New file.
6883         * tests/test-copy-acl-2.sh: New file.
6884         * modules/acl-tests (Files): Add them.
6885         (Makefile.am): Add them to TESTS.
6886
6887 2011-09-04  Bruno Haible  <bruno@clisp.org>
6888
6889         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
6890         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
6891         10.
6892         (OLD_ALLOW, OLD_DENY): New macros.
6893         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
6894         ACE_ACCESS_ALLOWED_ACE_TYPE.
6895         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
6896         ACE_ACCESS_DENIED_ACE_TYPE.
6897         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
6898         (NEW_ACE_EXECUTE): Fix value.
6899         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
6900         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
6901         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
6902         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
6903         NEW_ACE_SYNCHRONIZE): New macros.
6904         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
6905         instead of acl_fromtext, acl_set, facl_set.
6906         Fixes a coreutils/tests/cp/perm failure.
6907
6908 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
6909
6910         openat: test for fstatat (..., 0) bug
6911         Further testing with tar suggests that fstatat (..., 0)
6912         does not work in general, on AIX 7.1; see
6913         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
6914         So, give up entirely on AIX 7.1's fstatat, and fall back on our
6915         replacement fstatat (which is what older AIX releases were using
6916         anyway).
6917         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
6918         use is now changed to orig_fstatat.  This was probably the right
6919         thing to do anyway.
6920         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
6921         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
6922         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
6923         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
6924         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
6925         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
6926         if the bug is found.
6927
6928         openat: test for fstatat (AT_FDCWD, ..., 0) bug
6929         This tests for another fstatat bug on AIX 7.1:
6930         fstatat (AT_FDCWD, ..., 0) does not work.  See
6931         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
6932         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
6933         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
6934         (rpl_fstatat): Adjust so that it works around either (or both)
6935         bugs if present.
6936         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
6937
6938 2011-09-03  Karl Berry  <karl@gnu.org>
6939
6940         * doc/regex.texi (Character Class Operators): Avoid literal ":"
6941         in index entries.
6942
6943 2011-09-02  Bruno Haible  <bruno@clisp.org>
6944
6945         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
6946         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
6947         values of AR, ARFLAGS, RANLIB.
6948         Reported by John W. Eaton <jwe@gnu.org> for Octave.
6949
6950 2011-09-02  Bruno Haible  <bruno@clisp.org>
6951
6952         Find 'ar' program that fits with --host argument.
6953         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
6954
6955 2011-09-02  Bruno Haible  <bruno@clisp.org>
6956
6957         tests: init.sh: Support any non-GNU diff.
6958         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
6959         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
6960         Solaris 8.
6961
6962 2011-09-02  Bruno Haible  <bruno@clisp.org>
6963
6964         tests: init.sh: work also with any non-GNU diff that supports -u
6965         * tests/init.sh: Relax check for diff -u support.
6966         Rather than checking for GNU diff via --version, simply check
6967         for support for -u itself.  Useful at least on OpenBSD 4.9,
6968         AIX 7.1, IRIX 6.5, and Solaris 10.
6969
6970 2011-09-01  Bruno Haible  <bruno@clisp.org>
6971
6972         strtoimax, strtoumax: Document problem on HP-UX 11.
6973         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
6974         * doc/posix-functions/strtoumax.texi: Likewise.
6975
6976 2011-09-01  Bruno Haible  <bruno@clisp.org>
6977
6978         strtoumax: Avoid link error on OSF/1 with DTK cc.
6979         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
6980         defined as a function.
6981         * modules/strtoumax (Depends-on, configure.ac): Test only whether
6982         strtoumax is defined, not whether it is declared.
6983
6984 2011-09-01  Bruno Haible  <bruno@clisp.org>
6985
6986         strtoimax: Avoid link error on OSF/1 with DTK cc.
6987         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
6988         defined as a function.
6989         * modules/strtoimax (Depends-on, configure.ac): Test only whether
6990         strtoimax is defined, not whether it is declared.
6991
6992 2011-09-01  Bruno Haible  <bruno@clisp.org>
6993
6994         imaxdiv: Avoid link error on OSF/1 with DTK cc.
6995         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
6996         as a function.
6997         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
6998         whether it is declared.
6999
7000 2011-09-01  Bruno Haible  <bruno@clisp.org>
7001
7002         imaxabs: Avoid link error on OSF/1 with DTK cc.
7003         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
7004         as a function.
7005         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
7006         whether it is declared.
7007
7008 2011-09-01  Bruno Haible  <bruno@clisp.org>
7009
7010         Tests for module 'strtoumax'.
7011         * modules/strtoumax-tests: New file.
7012         * tests/test-strtoumax.c: New file.
7013
7014         Tests for module 'strtoimax'.
7015         * modules/strtoimax-tests: New file.
7016         * tests/test-strtoimax.c: New file.
7017
7018         Tests for module 'imaxdiv'.
7019         * modules/imaxdiv-tests: New file.
7020         * tests/test-imaxdiv.c: New file.
7021
7022         Tests for module 'imaxabs'.
7023         * modules/imaxabs-tests: New file.
7024         * tests/test-imaxabs.c: New file.
7025
7026 2011-09-01  Bruno Haible  <bruno@clisp.org>
7027
7028         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
7029         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
7030         pthread_create.
7031
7032 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
7033
7034         openat: work around AIX 7.1 fstatat issue
7035         This should fix the problem that was not properly fixed
7036         in the previous change, dated 2011-08-30.
7037         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
7038         __need_system_stat_h defined.
7039         (orig_fstatat) [HAVE_FSTATAT]: New function.
7040         (rpl_fstatat): Go back to the old way of doing things,
7041         except call orig_fstatat instead of fstatat.
7042         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
7043         Remove unnecessary check whether fstatat fills in st_size etc.
7044
7045 2011-09-01  Bruno Haible  <bruno@clisp.org>
7046
7047         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
7048         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
7049         just include the system's header.
7050
7051 2011-08-31  Jim Meyering  <meyering@redhat.com>
7052
7053         tests: avoid spurious assertion failure in test-float.c on ppc64
7054         * tests/test-float.c (test_long_double): Comment out an assertion,
7055         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
7056         with gcc-4.4.4.
7057
7058         maint: indent with spaces, not TABs
7059         I need to get in the habit of running gnulib's "make check".
7060         Both of these would have been caught.
7061         * m4/largefile.m4: Indent with spaces, not TABs.
7062         * lib/parse-datetime.y (iso_8601_time): Likewise.
7063         Spotted by Pádraig Brady.
7064
7065         test-parse-datetime.c: accommodate a relatively strict gcc warning
7066         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
7067         to avoid a warning from gcc's -Werror=missing-declarations.
7068         Insert a few spaces-before-funcall-parenthesis.
7069
7070 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
7071
7072         parse-datetime: accept ISO 8601 date and time rep with "T" separator
7073         The parser now accepts ISO 8601 date-time strings with "T" as the
7074         separator.  It has long parsed dates like "2004-02-29 16:21:42"
7075         with a space between the date and time strings.  Now it also parses
7076         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
7077         variants like "2004-02-29T16:21:42.333-07:00"
7078         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
7079         of day representation using the 'T' separator character.
7080         * doc/parse-datetime.texi (General date syntax): replace use of
7081         deprecated --iso-8601 option with --rfc-3339 in example of date
7082         command output formats that can be parsed.
7083         * tests/test-parse-datetime.c (tm_diff): New function, taken from
7084         lib/parse-datetime.y.
7085         (gmt_offset): New function.
7086         (main): Add additional test cases to validate ISO8601 extended
7087         date and time of day parsing.
7088
7089 2011-08-31  Bruno Haible  <bruno@clisp.org>
7090
7091         freopen: Documentation.
7092         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
7093         name.
7094         Reported by Claudio Bley <claudio.bley@gmail.com>.
7095
7096 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
7097
7098         freopen: Don't crash if the filename argument is NULL.
7099         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
7100         NULL.
7101
7102 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
7103
7104         openat: work around AIX 7.1 fstatat bug
7105         Problem reported by Kevin Brott for GNU tar, in the thread containing
7106         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
7107         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
7108         FSTATAT_ST_SIZE_ETC_BROKEN.
7109         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
7110         rpl_fstatat.
7111         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
7112         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
7113         AC_CHECK_FUNCS_ONCE for fstatat.
7114         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
7115         fchmodat, mkdirat, openat and unlinkat.
7116
7117 2011-08-30  Bruno Haible  <bruno@clisp.org>
7118
7119         Avoid endless recursions if config.h includes some header files.
7120         * lib/fopen.c (__need_FILE): Define already before including config.h.
7121         * lib/freopen.c (__need_FILE): Likewise.
7122         * lib/open.c (__need_system_fcntl_h): Likewise.
7123         * lib/stat.c (__need_system_sys_stat_h): Likewise.
7124         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
7125         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
7126
7127 2011-08-25  Karl Berry  <karl@gnu.org>
7128
7129         * config/srclist.txt (ylwrap): new try.
7130         * build-aux/ylwrap: new file.
7131
7132 2011-08-23  Bruno Haible  <bruno@clisp.org>
7133
7134         tmpdir: Use a good default directory on native Windows.
7135         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
7136         (P_tmpdir): Default to _P_tmpdir on native Windows.
7137         (path_search): On native Windows, try the value returned by GetTempPath
7138         before trying P_tmpdir.
7139         * modules/tmpdir (Depends-on): Add pathmax.
7140         Suggested by John Darrington <john@darrington.wattle.id.au>.
7141
7142 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
7143
7144         doc: fix typo in README-release
7145         * top/README-release: Capitalize first word of a sentence.
7146
7147 2011-08-19  Jim Meyering  <meyering@redhat.com>
7148
7149         fts: do not exhaust memory when processing million-entry directories
7150         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
7151         directory would require about 256*N bytes of memory.  Thus, it was
7152         easy to construct a directory too large to be processed by any of
7153         those tools.  With this change, fts' maximum memory utilization is
7154         now limited to around 30MB.
7155         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
7156         (fts_read): When we've processed the final entry (i.e., when
7157         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
7158         using the parent entry to read any remaining entries.  Dispatch
7159         depending on what fts_build returns:
7160         - NULL+stop, aka failure: stop
7161         - NULL otherwise: move up in the dir hierarchy
7162         - non-NULL: handle this new entry
7163         (fts_build): Declare and use new local, continue_readdir.
7164         Prepare to be called from fts_read, when the entries
7165         from a partially-read directory have just been exhausted.
7166         In that case, we'll skip the opendir and instead use the parent's
7167         fts_dirp and derive dir_fd from that.
7168         Finally, in the readdir loop, if we read max_entries entries,
7169         exit the loop ensuring *not* to call closedir.  This is required
7170         so that fts_dirp can be reused on a subsequent call.
7171         Prompted by Ben England's report of memory exhaustion in find
7172         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
7173
7174         maint: fts: move decl of `dp' down into while loop; split a long line
7175         * lib/fts.c (fts_build): No semantic change.
7176
7177         fts: add/use new struct member, fts_dirp
7178         We are about to use this to manage any directory with
7179         too many entries to read all of them into memory at once.
7180         To do that, we'll need to save the DIR* pointer in each
7181         affected FTSENT struct.
7182         * lib/fts_.h: Include <dirent.h>.
7183         (struct FTSENT) [fts_dirp]: New member.
7184         * lib/fts.c (closedir_and_clear): Define.
7185         Use it in place of closedir so that we are sure to
7186         clear the new fts_dirp member when done with it.
7187         (fts_alloc): Initialize the new member.
7188         (fts_lfree): Free, if needed.
7189
7190         maint: fts: give __opendir2 a new parameter and rename
7191         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
7192         than surreptitiously using sole caller's "dir_fd".
7193         (fts_opendir): Rename from __opendir2.
7194
7195         maint: fts.c: remove __opendir2's now-unused parameter, oflag
7196         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
7197
7198         maint: fts.c: correct off-by-one indentation
7199         * lib/fts.c (fts_build): Correct indentation, change style
7200         of a couple of block comments, and bracing style.
7201
7202         maint: fts.c: move __opendir2 #define "up" out of function body
7203         * lib/fts.c (__opendir2): Move "up".  No semantic change.
7204
7205         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
7206         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
7207         out for a long time and besides was useful only on BSD systems.
7208
7209 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
7210
7211         regex: port to Stratus OpenVOS
7212         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
7213         define to empty, rather than attempting nonportable optimizations.
7214         Problem reported by Paul Green in:
7215         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
7216         and fix suggested by Eric Blake in:
7217         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
7218
7219 2011-08-17  Eric Blake  <eblake@redhat.com>
7220
7221         getcwd: fix test failures on mingw
7222         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
7223         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
7224         test if long directory cannot be created, and allow mingw errno.
7225
7226         getcwd-lgpl: fix m4 to match relaxed test for BSD
7227         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
7228         (gl_FUNC_GETCWD_SIGNATURE): New macro.
7229         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
7230         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
7231         signature problem.
7232
7233         getcwd: fix compilation on mingw64
7234         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
7235         getcwd.
7236         Reported by Marc-André Lureau.
7237
7238         pipe2: silence compiler warning
7239         * lib/pipe2.c (pipe2): Hide label if it is not used.
7240
7241 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
7242
7243         relocatable-prog: fix link error
7244         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
7245         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
7246         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
7247         into modules/relocatable-lib without noticing that
7248         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
7249         also needs to build relocatable.c.
7250
7251 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
7252
7253         getaddrinfo: fix sh typo in gai_strerrorA decl checking
7254         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
7255         shell code: it contained a 'break' that was not in a loop.
7256         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
7257         via a shell-language loop; this may have been true in old Autoconf
7258         versions, but it's not true in Autoconf 2.68.  I found this bug
7259         when testing coreutils git on Solaris 8, whose shell complains
7260         about the syntax error.
7261
7262 2011-08-12  Simon Josefsson  <simon@josefsson.org>
7263
7264         * lib/base64.c: Fix comment to reference RFC 4648.
7265         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
7266         <gvtulder@gmail.com>.
7267
7268 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
7269
7270         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
7271
7272         po/Makefile.in.in: fix make -q problem
7273         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
7274         rule, since there's no file named 'check-macro-version' and its
7275         use as a file breaks make -q.
7276         (all): Don't depend on check-macro-version.
7277         (CHECK_MACRO_VERSION): New macro.
7278         (stamp-po): Use it.
7279
7280         configmake: fix make -q problem
7281         * modules/configmake (configmake.h): Update configmake.h's time stamp
7282         even if the file does not change.  Otherwise, 'make -q' fails.
7283         Problem reported by Simon Josefsson in
7284         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
7285
7286 2011-08-11  Jim Meyering  <meyering@redhat.com>
7287
7288         git-version-gen: correct the advice in a comment
7289         * build-aux/git-version-gen: Correct comment.
7290         Don't recommend to list .tarball-version in .gitignore.
7291
7292 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
7293
7294         base64: fix off-by-one buffer size bug
7295         Problem and (trivial) fix reported by Gijs van Tulder in
7296         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
7297         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
7298         * tests/test-base64.c (main): Catch the bug.
7299
7300 2011-08-10  Eric Blake  <eblake@redhat.com>
7301
7302         closein: correct comments
7303         * lib/closein.c (close_stdin): Improve comments.
7304
7305 2011-08-09  Bruno Haible  <bruno@clisp.org>
7306
7307         More tests for 'fseeko'.
7308         * tests/test-fseeko3.c: New file, from Eric Blake.
7309         * tests/test-fseeko3.sh: New file.
7310         * modules/fseeko-tests (Files): Add them.
7311         (TESTS): Add test-fseeko3.sh.
7312         (check_PROGRAMS): Add test-fseeko3.
7313
7314 2011-08-09  Eric Blake  <eblake@redhat.com>
7315
7316         fseeko: remove unneeded hack
7317         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
7318
7319         fseeko: fix bug on glibc
7320         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
7321         Reported by John W. Eaton.
7322
7323 2011-08-08  Bruno Haible  <bruno@clisp.org>
7324
7325         unictype/base: Fix interoperability with preinstalled libunistring.
7326         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
7327         Reported by Simon Josefsson.
7328
7329 2011-08-08  Bruno Haible  <bruno@clisp.org>
7330
7331         iswblank: Detect declaration correctly.
7332         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
7333         AC_CHECK_DECLS invocation.
7334
7335 2011-08-08  Bruno Haible  <bruno@clisp.org>
7336
7337         tcgetsid: Detect declaration correctly.
7338         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
7339         AC_CHECK_DECLS invocation.
7340         Reported by Simon Josefsson.
7341
7342 2011-08-08  Eric Blake  <eblake@redhat.com>
7343
7344         largefile: fix typo that regressed large file support
7345         * modules/largefile (configure.ac-early): Fix section name.
7346
7347 2011-08-06  Karl Berry  <karl@gnu.org>
7348
7349         * MODULES.html.sh (func_all_files): _Noreturn is no longer
7350         a separate module.
7351
7352 2011-08-05  Simon Josefsson  <simon@josefsson.org>
7353
7354         openat: Fix warnings and commens when building unlinkat.c on Hurd.
7355         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
7356         get prototype for free.
7357
7358 2011-08-04  Bruno Haible  <bruno@clisp.org>
7359
7360         Tests for module 'pathmax'.
7361         * modules/pathmax-tests: New file.
7362         * tests/test-pathmax.c: New file.
7363
7364         canonicalize-lgpl: Support larger filenames on the Hurd.
7365         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
7366         Reported by Paul Eggert.
7367
7368         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
7369         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
7370         * lib/chdir-long.h: Include pathmax.h.
7371         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
7372         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
7373         (PATH_MAX): Remove code that is done by pathmax.h.
7374         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
7375         * lib/tmpfile.c: Add a comment.
7376         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
7377         * modules/chdir-long (Depends-on): Add pathmax.
7378         * modules/getcwd (Depends-on): Add pathmax.
7379         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
7380         is not defined.
7381         * doc/posix-headers/limits.texi: Mention the pathmax module.
7382         * NEWS: Mention the change.
7383
7384 2011-08-02  Bruno Haible  <bruno@clisp.org>
7385
7386         pthread_sigmask: Actually use results of gl_THREADLIB.
7387         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
7388         gl_THREADLIB, not gl_[]THREADLIB.
7389         Reported by Eric Blake.
7390
7391 2011-08-02  Jim Meyering  <meyering@redhat.com>
7392
7393         maint.mk: relax the default _gl_TS_function_match regexp
7394         * top/maint.mk (_gl_TS_function_match): Don't require at least one
7395         space between function name and "(" in an "extern" declaration.
7396         That would fail to match a decl with no space there: extern void foo();
7397
7398 2011-07-31  Iain Nicol  <iain@thenicols.net>
7399
7400         git-version-gen: document that EXTRA_DIST must include .version
7401         * build-aux/git-version-gen: In the how-to-use comment, document
7402         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
7403         will fail when run from an unpacked distribution tarball.
7404
7405 2011-08-01  Bruno Haible  <bruno@clisp.org>
7406
7407         wctype-h: Fix last change.
7408         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
7409         REPLACE_TOWLOWER to 0.
7410         Reported by Sam Steingold <sds@gnu.org>.
7411
7412 2011-07-31  Bruno Haible  <bruno@clisp.org>
7413
7414         frexpl: Update autoconf test.
7415         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
7416         according to changes of 2011-06-20.
7417
7418 2011-07-31  Bruno Haible  <bruno@clisp.org>
7419
7420         sys_utsname: Add support for Minix.
7421         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
7422         <sys/utsname.h>.
7423         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7424         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
7425
7426 2011-07-31  Bruno Haible  <bruno@clisp.org>
7427
7428         strings: Add support for Minix.
7429         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
7430         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
7431         * doc/posix-headers/strings.texi: Document the Minix problem.
7432
7433 2011-07-31  Bruno Haible  <bruno@clisp.org>
7434
7435         wctype-h: Add support for Minix.
7436         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
7437         REPLACE_TOWLOWER.
7438         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
7439         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
7440         REPLACE_ISWCNTRL.
7441
7442 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
7443
7444         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
7445         This is a performance improvement for 64-bit hosts: it causes the
7446         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
7447
7448 2011-07-31  Bruno Haible  <bruno@clisp.org>
7449
7450         stdioext: Add support for Minix.
7451         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
7452         * lib/fpurge.c (fpurge): Likewise.
7453         * lib/freadahead.c (freadahead): Likewise.
7454         * lib/freadable.c (freadable): Likewise.
7455         * lib/freading.c (freading): Likewise.
7456         * lib/freadptr.c (freadptr): Likewise.
7457         * lib/freadseek.c (freadptrinc): Likewise.
7458         * lib/fseeko.c (rpl_fseeko): Likewise.
7459         * lib/fseterr.c (fseterr): Likewise.
7460         * lib/fwritable.c (fwritable): Likewise.
7461         * lib/fwriting.c (fwriting): Likewise.
7462         * lib/fflush.c (clear_ungetc_buffer): Update comment.
7463         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
7464
7465 2011-07-31  Bruno Haible  <bruno@clisp.org>
7466
7467         errno: Port to Minix.
7468         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
7469         ECONNABORTED are defined.
7470         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
7471         GNULIB_defined_ECONNABORTED): New macros.
7472         * lib/strerror-override.h (strerror_override): Test also
7473         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
7474         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
7475         ECONNABORTED.
7476         * doc/posix-headers/errno.texi: Mention the Minix problem.
7477
7478 2011-07-31  Bruno Haible  <bruno@clisp.org>
7479
7480         Work around declaration collisions on Minix.
7481         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
7482         defined, set REPLACE_MBSINIT.
7483         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
7484         defined, set REPLACE_MBRTOWC.
7485         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
7486         set REPLACE_MBRLEN.
7487         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
7488         defined, set REPLACE_MBSRTOWCS.
7489         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
7490         defined, set REPLACE_WCRTOMB.
7491         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
7492         defined, set REPLACE_WCSRTOMBS.
7493
7494 2011-07-31  Bruno Haible  <bruno@clisp.org>
7495
7496         Add support for Minix with ACK compiler.
7497         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
7498         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
7499         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
7500
7501 2011-07-31  Bruno Haible  <bruno@clisp.org>
7502
7503         Documentation about Minix.
7504         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
7505         * doc/glibc-headers/*.texi: Likewise.
7506         * doc/posix-functions/*.texi: Likewise.
7507         * doc/glibc-functions/*.texi: Likewise.
7508
7509 2011-07-31  Bruno Haible  <bruno@clisp.org>
7510
7511         snippet/warn-on-use: Fix indentation.
7512         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
7513
7514 2011-07-25  Jim Meyering  <meyering@redhat.com>
7515
7516         tests: test-update-copyright.sh: remove unnecessary "rm" commands
7517         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
7518         commands.
7519
7520 2011-07-27  Jim Meyering  <meyering@redhat.com>
7521
7522         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
7523         * top/maint.mk (gl_extract_significant_defines_): Now that
7524         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
7525         gnulib/lib/signal.in.h, and now that we recommend to
7526         define-if-undefined those two symbols in application code,
7527         we must filter them out of the "significant" list.
7528         This avoids a "make syntax-check" failure in coreutils.
7529
7530 2011-07-26  Eric Blake  <eblake@redhat.com>
7531
7532         warnings: add comments about previous patch
7533         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
7534         * m4/include_next.m4: Likewise.
7535         * m4/warn-on-use.m4: Likewise.
7536         * m4/warnings.m4: Likewise, and simplify use.
7537         Suggested by Stefano Lattarini.
7538
7539         include-next, warnings: support older autoconf
7540         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
7541         AS_VAR_PUSHDEF in a way that works with older autoconf.
7542         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
7543         Reported by Daniel P. Berrange.
7544
7545 2011-07-25  Bruno Haible  <bruno@clisp.org>
7546
7547         fseek, ftell: Fix doc.
7548         * doc/posix-functions/fseek.texi: Reword statement about
7549         AC_SYS_LARGEFILE.
7550         * doc/posix-functions/ftell.texi: Likewise.
7551
7552 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
7553             Bruno Haible  <bruno@clisp.org>
7554
7555         Add dependencies to the 'largefile' module.
7556         * modules/fopen (Depends-on): Add 'largefile'.
7557         * modules/freopen (Depends-on): Likewise.
7558         * modules/fseeko (Depends-on): Likewise.
7559         * modules/ftello (Depends-on): Likewise.
7560         * modules/glob (Depends-on): Likewise.
7561         * modules/lseek (Depends-on): Likewise.
7562         * modules/lstat (Depends-on): Likewise.
7563         * modules/mkostemp (Depends-on): Likewise.
7564         * modules/mkostemps (Depends-on): Likewise.
7565         * modules/mkstemp (Depends-on): Likewise.
7566         * modules/mkstemps (Depends-on): Likewise.
7567         * modules/open (Depends-on): Likewise.
7568         * modules/openat (Depends-on): Likewise.
7569         * modules/pread (Depends-on): Likewise.
7570         * modules/pwrite (Depends-on): Likewise.
7571         * modules/scandir (Depends-on): Likewise.
7572         * modules/stat (Depends-on): Likewise.
7573         * modules/tmpfile (Depends-on): Likewise.
7574         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
7575         since the containing module now depends on the largefile module.
7576         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
7577         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
7578         off_t is fixed by gnulib.
7579         * doc/posix-functions/freopen.texi: Likewise.
7580         * doc/posix-functions/fseeko.texi: Likewise.
7581         * doc/posix-functions/fstatat.texi: Likewise.
7582         * doc/posix-functions/ftello.texi: Likewise.
7583         * doc/posix-functions/glob.texi: Likewise.
7584         * doc/posix-functions/lseek.texi: Likewise.
7585         * doc/posix-functions/lstat.texi: Likewise.
7586         * doc/posix-functions/mkstemp.texi: Likewise.
7587         * doc/posix-functions/open.texi: Likewise.
7588         * doc/posix-functions/openat.texi: Likewise.
7589         * doc/posix-functions/pread.texi: Likewise.
7590         * doc/posix-functions/pwrite.texi: Likewise.
7591         * doc/posix-functions/scandir.texi: Likewise.
7592         * doc/posix-functions/stat.texi: Likewise.
7593         * doc/posix-functions/tmpfile.texi: Likewise.
7594         * doc/glibc-functions/mkostemp.texi: Likewise.
7595         * doc/glibc-functions/mkostemps.texi: Likewise.
7596         * doc/glibc-functions/mkstemps.texi: Likewise.
7597
7598 2011-07-25  Bruno Haible  <bruno@clisp.org>
7599
7600         fcntl: Move AC_LIBOBJ invocation to module description.
7601         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
7602         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
7603
7604         fcntl: Remove call-in from fchdir.m4.
7605         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
7606         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
7607
7608         dup3: Remove potential call-in from fchdir.m4.
7609         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
7610         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
7611
7612         dup2: Move AC_LIBOBJ invocation to module description.
7613         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
7614         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
7615         Don't invoke AC_LIBOBJ.
7616         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
7617
7618         dup2: Remove call-in from fchdir.m4.
7619         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
7620         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
7621
7622         fclose: Move AC_LIBOBJ invocation to module description.
7623         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
7624         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
7625         to 1.
7626         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
7627
7628         fclose: Remove call-in from close.m4.
7629         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
7630         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
7631
7632         close: Move AC_LIBOBJ invocation to module description.
7633         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
7634         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
7635         1.
7636         * modules/close (configure.ac): Invoke AC_LIBOBJ.
7637
7638         close: Remove call-in from fchdir.m4.
7639         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
7640         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
7641
7642         open: Move AC_LIBOBJ invocation to module description.
7643         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
7644         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
7645         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
7646
7647         open: Remove call-in from fchdir.m4.
7648         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
7649         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
7650
7651         fchdir: Start to remove gl_REPLACE_* idiom.
7652         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
7653         (gl_FUNC_FCHDIR): Invoke it.
7654
7655 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
7656
7657         * lib/ftell.c (ftell): Comment out cast.
7658
7659         close: use gl_REPLACE_FCLOSE only if defined
7660         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
7661         is defined.  The close module doesn't depend on the fclose module
7662         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
7663         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
7664         I reproduced the problem with "./gnulib-tool --test close sys_socket".
7665
7666 2011-07-24  Jim Meyering  <meyering@redhat.com>
7667
7668         test-select.h: avoid warning when using gcc's -Wmissing-declarations
7669         * tests/test-select.h (test_function): Declare as "static".
7670
7671 2011-07-24  Bruno Haible  <bruno@clisp.org>
7672
7673         doc: Mention the effects of AC_SYS_LARGEFILE.
7674         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
7675         on this function.
7676         * doc/posix-functions/aio_error.texi: Likewise.
7677         * doc/posix-functions/aio_fsync.texi: Likewise.
7678         * doc/posix-functions/aio_read.texi: Likewise.
7679         * doc/posix-functions/aio_return.texi: Likewise.
7680         * doc/posix-functions/aio_suspend.texi: Likewise.
7681         * doc/posix-functions/aio_write.texi: Likewise.
7682         * doc/posix-functions/fgetpos.texi: Likewise.
7683         * doc/posix-functions/fopen.texi: Likewise.
7684         * doc/posix-functions/freopen.texi: Likewise.
7685         * doc/posix-functions/fsetpos.texi: Likewise.
7686         * doc/posix-functions/fstatvfs.texi: Likewise.
7687         * doc/posix-functions/ftruncate.texi: Likewise.
7688         * doc/posix-functions/ftw.texi: Likewise.
7689         * doc/posix-functions/getrlimit.texi: Likewise.
7690         * doc/posix-functions/glob.texi: Likewise.
7691         * doc/posix-functions/lio_listio.texi: Likewise.
7692         * doc/posix-functions/lockf.texi: Likewise.
7693         * doc/posix-functions/mkstemp.texi: Likewise.
7694         * doc/posix-functions/mmap.texi: Likewise.
7695         * doc/posix-functions/nftw.texi: Likewise.
7696         * doc/posix-functions/openat.texi: Likewise.
7697         * doc/posix-functions/opendir.texi: Likewise.
7698         * doc/posix-functions/posix_fadvise.texi: Likewise.
7699         * doc/posix-functions/posix_fallocate.texi: Likewise.
7700         * doc/posix-functions/pread.texi: Likewise.
7701         * doc/posix-functions/pwrite.texi: Likewise.
7702         * doc/posix-functions/readdir.texi: Likewise.
7703         * doc/posix-functions/readdir_r.texi: Likewise.
7704         * doc/posix-functions/rewinddir.texi: Likewise.
7705         * doc/posix-functions/scandir.texi: Likewise.
7706         * doc/posix-functions/seekdir.texi: Likewise.
7707         * doc/posix-functions/setrlimit.texi: Likewise.
7708         * doc/posix-functions/statvfs.texi: Likewise.
7709         * doc/posix-functions/telldir.texi: Likewise.
7710         * doc/posix-functions/tmpfile.texi: Likewise.
7711         * doc/posix-functions/truncate.texi: Likewise.
7712         * doc/glibc-functions/fallocate.texi: Likewise.
7713         * doc/glibc-functions/fstatfs.texi: Likewise.
7714         * doc/glibc-functions/fts_children.texi: Likewise.
7715         * doc/glibc-functions/fts_read.texi: Likewise.
7716         * doc/glibc-functions/getdirentries.texi: Likewise.
7717         * doc/glibc-functions/mkostemp.texi: Likewise.
7718         * doc/glibc-functions/mkostemps.texi: Likewise.
7719         * doc/glibc-functions/mkstemps.texi: Likewise.
7720         * doc/glibc-functions/preadv.texi: Likewise.
7721         * doc/glibc-functions/pwritev.texi: Likewise.
7722         * doc/glibc-functions/sendfile.texi: Likewise.
7723         * doc/glibc-functions/statfs.texi: Likewise.
7724
7725 2011-07-24  Bruno Haible  <bruno@clisp.org>
7726
7727         doc: Fix typo.
7728         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
7729
7730 2011-07-24  Bruno Haible  <bruno@clisp.org>
7731
7732         doc: Mention fsusage.
7733         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
7734
7735 2011-07-24  Bruno Haible  <bruno@clisp.org>
7736
7737         doc: Mention new glibc headers and functions.
7738         * doc/glibc-headers/gshadow.texi: New file.
7739         * doc/glibc-functions/endsgent.texi: New file.
7740         * doc/glibc-functions/fgetsgent.texi: New file.
7741         * doc/glibc-functions/fgetsgent_r.texi: New file.
7742         * doc/glibc-functions/getsgent.texi: New file.
7743         * doc/glibc-functions/getsgent_r.texi: New file.
7744         * doc/glibc-functions/getsgnam.texi: New file.
7745         * doc/glibc-functions/getsgnam_r.texi: New file.
7746         * doc/glibc-functions/putsgent.texi: New file.
7747         * doc/glibc-functions/setsgent.texi: New file.
7748         * doc/glibc-functions/sgetsgent.texi: New file.
7749         * doc/glibc-functions/sgetsgent_r.texi: New file.
7750         * doc/glibc-functions/malloc_info.texi: New file.
7751         * doc/glibc-functions/preadv.texi: New file.
7752         * doc/glibc-functions/pwritev.texi: New file.
7753         * doc/glibc-functions/register_printf_modifier.texi: New file.
7754         * doc/glibc-functions/register_printf_specifier.texi: New file.
7755         * doc/glibc-functions/register_printf_type.texi: New file.
7756         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
7757         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
7758         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
7759         * doc/glibc-functions/pthread_getname_np.texi: New file.
7760         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
7761         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
7762         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
7763         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
7764         * doc/glibc-functions/pthread_setname_np.texi: New file.
7765         * doc/glibc-functions/pthread_sigqueue.texi: New file.
7766         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
7767         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
7768         * doc/glibc-functions/qsort_r.texi: New file.
7769         * doc/glibc-functions/quick_exit.texi: New file.
7770         * doc/glibc-functions/syncfs.texi: New file.
7771         * doc/gnulib.texi: Include them.
7772         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
7773         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
7774         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
7775         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
7776         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
7777         * doc/glibc-functions/execvpe.texi: Likewise.
7778
7779 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7780
7781         ftell: don't include <unistd.h>
7782         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
7783         guaranteed to define off_t, and the ftell module depends on the
7784         stdio module.
7785
7786         ftell: do not assume wraparound signed arithmetic
7787         * lib/ftell.c: Include <limits.h>.
7788         (ftell): Don't assume wraparound signed arithmetic.
7789
7790 2011-07-24  Bruno Haible  <bruno@clisp.org>
7791
7792         close: No longer depend on module 'fclose'.
7793         * modules/close (Depends-on): Remove fclose.
7794         * NEWS: Mention the change.
7795         Suggested by Sam Steingold <sds@gnu.org>.
7796
7797 2011-07-24  Bruno Haible  <bruno@clisp.org>
7798
7799         fsusage: Enable large volume support on AIX >= 5.2.
7800         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
7801         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
7802         instead of STAT_STATVFS.
7803         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
7804
7805         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
7806         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
7807         f_blocks field only on MacOS X.
7808
7809         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
7810         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
7811         * modules/fsusage (Depends-on): Add largefile.
7812
7813 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7814
7815         * README: Modernize discussion of signed integers.
7816         Assuming overflow wraparound is no longer safe.
7817         Mention ones' complement and signed magnitude.
7818
7819 2011-07-22  Bruno Haible  <bruno@clisp.org>
7820
7821         select tests, pselect tests: Refactor.
7822         * tests/test-select.h: New file, extracted from tests/test-select.c.
7823         (select_fn): New type.
7824         (test, do_select, do_select_nowait, do_select_wait, test_tty,
7825         test_connect_first, test_accept_first, test_pair, test_socket_pair,
7826         test_pipe): Add my_select argument.
7827         (test_function): Renamed from main. Add my_select argument.
7828         * tests/test-select.c: Move most code to tests/test-select.h. Include
7829         test-select.h.
7830         * modules/select-tests (Files): Add tests/test-select.h.
7831         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
7832         (my_select, main): New functions.
7833         * modules/pselect-tests (Files): Add tests/test-select.h,
7834         tests/macros.h, tests/signature.h.
7835         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
7836         (configure.ac): Check for <sys/wait.h>.
7837
7838 2011-07-22  Bruno Haible  <bruno@clisp.org>
7839
7840         sys_select tests: Check the signature of FD_*.
7841         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
7842         signature tests from here...
7843         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
7844         here.
7845         * modules/sys_select-tests (Files): Add tests/signature.h.
7846
7847 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
7848
7849         largefile: new module, replacing large-inode
7850         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
7851         * MODULES.html.sh: Add largefile, remove large-inode.
7852         * modules/largefile, m4/largefile.m4: New files.
7853         * modules/large-inode, m4/large-inode.m4: Remove.
7854
7855         fsusage: port to MacOS X 10.7 with 4 TiB file systems
7856         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
7857         implementations that use only 32 bits to count blocks.
7858         On typical hosts with 1024-byte blocks, this fails with file
7859         systems as small as 4 TiB.  Problem reported by Herb Wartens
7860         <http://debbugs.gnu.org/9140> and this should also fix a similar
7861         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
7862
7863         large-inode: New module
7864         * MODULES.html.sh: Add it.
7865         * modules/large-inode, m4/large-inode.m4: New files.
7866
7867         extensions: Enable extensions on MacOS X 10.5 and later.
7868         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
7869
7870 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
7871
7872         file-has-acl: use acl_extended_file_nofollow if available
7873         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
7874         (acl_extended_file): New macro.
7875         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
7876         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
7877
7878 2011-07-21  Bruno Haible  <bruno@clisp.org>
7879
7880         Declare system functions in a way that works with C++.
7881         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
7882         declare fdopendir as extern "C".
7883         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
7884         declare frexpl as extern "C".
7885         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
7886         declare gai_strerror as extern "C".
7887         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
7888         programs, declare gai_strerror as extern "C".
7889         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
7890         declare getlogin_r as extern "C".
7891         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
7892         as extern "C".
7893         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
7894         declare ldexpl as extern "C".
7895         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
7896         as extern "C".
7897         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
7898         program, declare getmntinfo as extern "C".
7899         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
7900         stpncpy as extern "C".
7901         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
7902         program, declare __xpg_strerror_r as extern "C".
7903         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
7904         strndup as extern "C".
7905         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
7906         declare memset and bzero as extern "C".
7907         Reported by Sam Steingold <sds@gnu.org>.
7908
7909 2011-07-12  Jim Meyering  <meyering@redhat.com>
7910
7911         maint.mk: prohibit inclusion of "verify.h" without use
7912         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
7913
7914 2011-07-19  Pádraig Brady  <P@draigBrady.com>
7915
7916         timer-time: A new module to check for timer_settime()
7917         * m4/timer_time.m4: Check for the posix function.
7918         * modules/timer-time: Add the new module.
7919         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
7920         Mention it.
7921
7922 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
7923             Bruno Haible  <bruno@clisp.org>
7924
7925         pthread_sigmask: assume POSIX threads if --avoid=threadlib
7926         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
7927         not defined, assume POSIX threads and look for pthread_sigmask in
7928         $LIBS, without changing $CPPFLAGS.
7929
7930 2011-07-19  Bruno Haible  <bruno@clisp.org>
7931
7932         strstr: Update cross-compilation guess.
7933         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
7934         CPUs, guess no, in view of glibc
7935         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
7936         Suggested by Eric Blake. Reported by Reuben Thomas.
7937
7938 2011-07-19  Pádraig Brady  <P@draigBrady.com>
7939
7940         getopt-gnu: suppress core dumps from detection code
7941         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
7942         to suppress core dumps that may well occur on glibc systems.
7943         * modules/getopt-gnu: Depend on nocrash.
7944
7945 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
7946
7947         pthread_sigmask: ensure usleep is declared
7948         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
7949         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
7950
7951 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
7952
7953         doc: Document NonStop portability issues.
7954         * doc/posix-functions/sigaction.texi (sigaction):
7955         * doc/posix-headers/signal.texi (signal.h):
7956         Document NonStop.  See Joachim Schmitz in
7957         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
7958
7959 2011-07-15  Bruno Haible  <bruno@clisp.org>
7960
7961         ffsl, ffsll: Avoid unportable behaviour.
7962         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
7963
7964 2011-07-15  Bruno Haible  <bruno@clisp.org>
7965
7966         ffs: More tests.
7967         * tests/test-ffs.c (NBITS): New macro.
7968         (main): Add more tests.
7969         * tests/test-ffsl.c (NBITS): New macro.
7970         (main): Add more tests.
7971         * tests/test-ffsll.c (NBITS): New macro.
7972         (main): Add more tests.
7973
7974 2011-07-15  Eric Blake  <eblake@redhat.com>
7975
7976         ffsl, ffsll: new modules
7977         * modules/ffsl: New file.
7978         * modules/ffsll: Likewise.
7979         * m4/ffsl.m4: Likewise.
7980         * m4/ffsll.m4: Likewise.
7981         * lib/ffsl.c: Likewise.
7982         * lib/ffsl.h: Likewise.
7983         * lib/ffsll.c: Likewise.
7984         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
7985         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
7986         * modules/string (Makefile.am): Substitute witnesses.
7987         * lib/strings.in.h (ffsl, ffsll): Declare.
7988         * modules/ffsl-tests: New test file.
7989         * modules/ffsll-tests: Likewise.
7990         * tests/test-ffsl.c: Likewise.
7991         * tests/test-ffsll.c: Likewise.
7992         * MODULES.html.sh (Integer arithmetic functions): Mention it.
7993         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
7994         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
7995
7996         ffs: fix m4 prerequisite
7997         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
7998
7999         ffs: avoid undefined behavior
8000         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
8001         * tests/test-ffs.c (naive, main): Avoid signed shifts.
8002         Reported by Bruno Haible.
8003
8004 2011-07-12  Bruno Haible  <bruno@clisp.org>
8005
8006         pthread_sigmask: Rely on module 'threadlib'.
8007         * modules/pthread_sigmask (Depends-on): Add threadlib.
8008         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
8009         is defined.
8010
8011 2011-07-12  Bruno Haible  <bruno@clisp.org>
8012
8013         regex: Depend on module 'strcase'.
8014         * modules/regex (Depends-on): Add strcase, for strcasecmp().
8015
8016 2011-07-12  Jim Meyering  <meyering@redhat.com>
8017
8018         warn-on-use: fix typo in file name
8019         * modules/snippet/warn-on-use (Files): Correct file name:
8020         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
8021
8022 2011-07-12  Bruno Haible  <bruno@clisp.org>
8023
8024         strings: Document module.
8025         * doc/posix-headers/strings.texi: Mention module 'strings'.
8026
8027 2011-07-12  Bruno Haible  <bruno@clisp.org>
8028
8029         Rename module '_Noreturn' to 'snippet/_Noreturn'.
8030         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
8031         (Files, Makefile.am): Update.
8032         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
8033         * modules/stdlib (Depends-on): Update.
8034
8035 2011-07-12  Bruno Haible  <bruno@clisp.org>
8036
8037         * NEWS: Mention the changes.
8038
8039         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
8040         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
8041         (Files, Makefile.am): Update.
8042         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
8043         * modules/arpa_inet (Depends-on): Update.
8044         * modules/ctype (Depends-on): Update.
8045         * modules/dirent (Depends-on): Update.
8046         * modules/fcntl-h (Depends-on): Update.
8047         * modules/glob (Depends-on): Update.
8048         * modules/iconv-h (Depends-on): Update.
8049         * modules/inttypes-incomplete (Depends-on): Update.
8050         * modules/langinfo (Depends-on): Update.
8051         * modules/locale (Depends-on): Update.
8052         * modules/math (Depends-on): Update.
8053         * modules/netdb (Depends-on): Update.
8054         * modules/poll-h (Depends-on): Update.
8055         * modules/pty (Depends-on): Update.
8056         * modules/search (Depends-on): Update.
8057         * modules/signal (Depends-on): Update.
8058         * modules/spawn (Depends-on): Update.
8059         * modules/stdio (Depends-on): Update.
8060         * modules/stdlib (Depends-on): Update.
8061         * modules/string (Depends-on): Update.
8062         * modules/strings (Depends-on): Update.
8063         * modules/sys_file (Depends-on): Update.
8064         * modules/sys_ioctl (Depends-on): Update.
8065         * modules/sys_select (Depends-on): Update.
8066         * modules/sys_socket (Depends-on): Update.
8067         * modules/sys_stat (Depends-on): Update.
8068         * modules/sys_time (Depends-on): Update.
8069         * modules/sys_times (Depends-on): Update.
8070         * modules/sys_utsname (Depends-on): Update.
8071         * modules/sys_wait (Depends-on): Update.
8072         * modules/termios (Depends-on): Update.
8073         * modules/time (Depends-on): Update.
8074         * modules/unistd (Depends-on): Update.
8075         * modules/wchar (Depends-on): Update.
8076         * modules/wctype-h (Depends-on): Update.
8077         * MODULES.html.sh (Support for building libraries and executables):
8078         Update.
8079
8080         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
8081         * modules/snippet/unused-parameter: Renamed from
8082         modules/unused-parameter.
8083         (Files, Makefile.am): Update.
8084         * build-aux/snippet/unused-parameter.h: Renamed from
8085         build-aux/unused-parameter.h.
8086         * modules/selinux-h (Depends-on): Update.
8087         * modules/unistr/base (Depends-on): Update.
8088         * MODULES.html.sh (Core language properties): Update.
8089
8090         Rename module 'link-warning' to 'snippet/link-warning'.
8091         * modules/snippet/link-warning: Renamed from modules/link-warning.
8092         (Files, Makefile.am): Update.
8093         * build-aux/snippet/link-warning.h: Renamed from
8094         build-aux/link-warning.h.
8095         * MODULES.html.sh (Support for building libraries and executables):
8096         Update.
8097
8098         Rename module 'c++defs' to 'snippet/c++defs'.
8099         * modules/snippet/c++defs: Renamed from modules/c++defs.
8100         (Files, Makefile.am): Update.
8101         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
8102         * modules/arpa_inet (Depends-on): Update.
8103         * modules/ctype (Depends-on): Update.
8104         * modules/dirent (Depends-on): Update.
8105         * modules/fcntl-h (Depends-on): Update.
8106         * modules/glob (Depends-on): Update.
8107         * modules/iconv-h (Depends-on): Update.
8108         * modules/langinfo (Depends-on): Update.
8109         * modules/locale (Depends-on): Update.
8110         * modules/math (Depends-on): Update.
8111         * modules/netdb (Depends-on): Update.
8112         * modules/poll-h (Depends-on): Update.
8113         * modules/pty (Depends-on): Update.
8114         * modules/search (Depends-on): Update.
8115         * modules/signal (Depends-on): Update.
8116         * modules/spawn (Depends-on): Update.
8117         * modules/stdio (Depends-on): Update.
8118         * modules/stdlib (Depends-on): Update.
8119         * modules/string (Depends-on): Update.
8120         * modules/strings (Depends-on): Update.
8121         * modules/sys_ioctl (Depends-on): Update.
8122         * modules/sys_select (Depends-on): Update.
8123         * modules/sys_socket (Depends-on): Update.
8124         * modules/sys_stat (Depends-on): Update.
8125         * modules/sys_time (Depends-on): Update.
8126         * modules/sys_wait (Depends-on): Update.
8127         * modules/termios (Depends-on): Update.
8128         * modules/time (Depends-on): Update.
8129         * modules/unistd (Depends-on): Update.
8130         * modules/wchar (Depends-on): Update.
8131         * modules/wctype-h (Depends-on): Update.
8132
8133         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
8134         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
8135         (Files, Makefile.am): Update.
8136         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
8137         * modules/argv-iter (Depends-on): Update.
8138         * modules/arpa_inet (Depends-on): Update.
8139         * modules/dirent (Depends-on): Update.
8140         * modules/fcntl-h (Depends-on): Update.
8141         * modules/fnmatch (Depends-on): Update.
8142         * modules/getopt-posix (Depends-on): Update.
8143         * modules/glob (Depends-on): Update.
8144         * modules/iconv-h (Depends-on): Update.
8145         * modules/inttypes-incomplete (Depends-on): Update.
8146         * modules/locale (Depends-on): Update.
8147         * modules/math (Depends-on): Update.
8148         * modules/netdb (Depends-on): Update.
8149         * modules/search (Depends-on): Update.
8150         * modules/signal (Depends-on): Update.
8151         * modules/spawn (Depends-on): Update.
8152         * modules/stdio (Depends-on): Update.
8153         * modules/stdlib (Depends-on): Update.
8154         * modules/string (Depends-on): Update.
8155         * modules/strings (Depends-on): Update.
8156         * modules/sys_socket (Depends-on): Update.
8157         * modules/sys_stat (Depends-on): Update.
8158         * modules/sys_time (Depends-on): Update.
8159         * modules/sys_times (Depends-on): Update.
8160         * modules/sys_utsname (Depends-on): Update.
8161         * modules/time (Depends-on): Update.
8162         * modules/unistd (Depends-on): Update.
8163         * modules/wchar (Depends-on): Update.
8164         * MODULES.html.sh (Support for building libraries and executables):
8165         Update.
8166
8167 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
8168
8169         Improvements on _Noreturn and related modules.
8170
8171         modules/_Exit-tests: test _Noreturn too
8172         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
8173         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
8174         (main): Use them.
8175
8176         stdnoreturn, stdnoreturn-tests: remove modules
8177         They're not needed here and a bit premature for use elsewhere.  See
8178         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
8179         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
8180         * tests/test-stdnoreturn.c: Remove files.
8181         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
8182         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
8183         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
8184         and using noreturn.
8185         * modules/openat, modules/sigpipe-die, modules/xalloc:
8186         * modules/xmemdup0, modules/xstrtol:
8187         Remove dependency on stdnoreturn.
8188
8189         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
8190         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
8191         Reparenthesize to avoid GCC warning.
8192         Support Microsoft's syntax.
8193         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
8194
8195         _Noreturn-tests: remove module
8196         * modules/_Noreturn-tests: Remove.
8197         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
8198         * tests/test-_Noreturn.c: Remove.
8199         * tests/test-stdnoreturn.c: Merge from the old
8200         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
8201
8202 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
8203
8204         _Noreturn, stdnoreturn, and related modules.
8205
8206         * top/maint.mk: Adjust to new noreturn support.
8207         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
8208         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
8209
8210         xalloc: use stdnoreturn.h
8211         * lib/xalloc.h: Include <stdnoreturn.h>.
8212         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8213         * modules/xalloc (Depends-on): Add stdnoreturn.
8214
8215         xstrtol: use stdnoreturn.h
8216         * lib/xstrtol.h: Include <stdnoreturn.h>.
8217         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8218         * modules/xstrtol (Depends-on): Add stdnoreturn.
8219
8220         xmemdup0: use stdnoreturn.h
8221         * lib/xmemdup0.h: Include <stdnoreturn.h>.
8222         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8223         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
8224
8225         sigpipe-die: use stdnoreturn.h
8226         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
8227         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8228         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
8229
8230         openat: use stdnoreturn.h
8231         * lib/openat.h: Include <stdnoreturn.h>.
8232         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
8233         * modules/openat (Depends-on): Add stdnoreturn.
8234
8235         * lib/openat-die.c (openat_save_fail): Modernize comment.
8236
8237         * lib/xalloc-die.c (xalloc_die): Modernize comment.
8238
8239         * lib/glthread/thread.h: Modernize comment.
8240
8241         obstack: use _Noreturn
8242         * lib/obstack.c (__attribute__): Remove macro.
8243         (print_and_abort): Use _Noreturn.
8244
8245         c-stack: use _Noreturn
8246         * lib/c-stack.c (die, overflow_handler, segv_handler):
8247         Use _Noreturn rather than __attribute__((noreturn)).
8248
8249         argmatch-tests, exclude_tests: use _Noreturn
8250         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
8251         Remove.
8252         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
8253
8254         stdlib: use _Noreturn
8255         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
8256         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
8257         * modules/stdlib (Depends-on): Add _Noreturn.
8258         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
8259
8260         stdnoreturn-tests: new module
8261         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
8262
8263         stdnoreturn: new module
8264         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
8265         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
8266
8267         _Noreturn-tests: new module
8268         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
8269
8270         _Noreturn: new module
8271         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
8272         New section, mentioning it.
8273         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
8274
8275         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
8276
8277 2011-07-11  Eric Blake  <eblake@redhat.com>
8278
8279         ffs: new module
8280         * modules/ffs: New file.
8281         * m4/ffs.m4: Likewise.
8282         * lib/ffs.c: Likewise.
8283         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
8284         * modules/strings (Makefile.am): Substitute witness.
8285         (Depends-on): Add c++defs.
8286         * lib/strings.in.h (ffs): Declare.
8287         * modules/ffs-tests: New test file.
8288         * tests/test-ffs.c: Test new module.
8289         * MODULES.html.sh (Integer arithmetic functions): Mention it.
8290         * doc/posix-functions/ffs.texi (ffs): Likewise.
8291
8292         regex: avoid compiler warning
8293         * lib/regex.c (includes): Include <strings.h>, for use of
8294         strcasecmp in regcomp.c.
8295         Reported by Joachim Schmitz.
8296
8297 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
8298
8299         stdint: respect system's intmax_t if INTMAX_MAX
8300         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
8301         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
8302         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
8303         long but int64_t is long long, and where we will clash with the
8304         system intmax_t if we override it.  See
8305         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
8306         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
8307         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
8308         similarly for UINTMAX_C.
8309
8310 2011-07-08  Bruno Haible  <bruno@clisp.org>
8311
8312         pthread_sigmask tests: Avoid a compiler warning.
8313         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
8314         non-zero.
8315
8316         sigprocmask tests: A better way to avoid a compiler warning.
8317         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
8318         (main): Complain if system() returns non-zero.
8319         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
8320
8321 2011-07-08  Bruno Haible  <bruno@clisp.org>
8322
8323         pthread_sigmask: Work around IRIX bug.
8324         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
8325         bug.
8326         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
8327         there may be unblocked pending signals.
8328         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
8329
8330 2011-07-08  Bruno Haible  <bruno@clisp.org>
8331
8332         pthread_sigmask: Work around Cygwin bug.
8333         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
8334         bug.
8335         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
8336         the system's pthread_sigmask function.
8337         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
8338
8339 2011-07-08  Bruno Haible  <bruno@clisp.org>
8340
8341         pthread_sigmask: Work around bug in single-threaded implementation.
8342         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
8343         FreeBSD, HP-UX, Solaris bug.
8344         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
8345         * lib/pthread_sigmask.c: Include <stddef.h>.
8346         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
8347         the system's pthread_sigmask function.
8348         * modules/pthread_sigmask (configure.ac): Invoke
8349         gl_PREREQ_PTHREAD_SIGMASK.
8350         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
8351         HP-UX, Solaris.
8352
8353 2011-07-08  Eric Blake  <eblake@redhat.com>
8354
8355         test-sigprocmask: avoid compiler warning
8356         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
8357         * tests/test-sigprocmask.c (main): Use it to silence warning.
8358         Reported by Jim Meyering.
8359
8360         test-snprintf: avoid compiler warning
8361         * tests/test-snprintf.c (main): Avoid shadowed declaration.
8362         * tests/test-vsnprintf.c (main): Likewise.
8363         Reported by Jim Meyering.
8364
8365 2011-07-08  Bruno Haible  <bruno@clisp.org>
8366
8367         Tests for module 'pthread_sigmask'.
8368         * modules/pthread_sigmask-tests: New file.
8369         * tests/test-pthread_sigmask1.c: New file, based on
8370         tests/test-sigprocmask.c.
8371         * tests/test-pthread_sigmask2.c: New file.
8372
8373 2011-07-08  Jim Meyering  <meyering@redhat.com>
8374
8375         test-getopt.h: avoid warning about an unused variable
8376         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
8377
8378 2011-07-07  Jim Meyering  <meyering@redhat.com>
8379
8380         maint: reduce list of files exempt from sc_prohibit_leading_TABs
8381         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
8382         now that it no longer contains leading TABs.
8383         Remove unused "url=FIXME" statement.
8384
8385 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
8386
8387         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
8388         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
8389         When gl_THREADLIB is not in use, assume that the POSIX sematics
8390         are desired.  This is better for Emacs, which uses POSIX semantics
8391         on GNUish and/or POSIXish platforms, and does not use threads at
8392         all otherwise.
8393
8394         pthread_sigmask: fix typo when testing for libraries
8395         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
8396         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
8397
8398 2011-07-08  Eric Blake  <eblake@redhat.com>
8399
8400         fts: introduce FTS_NOATIME
8401         * lib/fts_.h (FTS_NOATIME): New bit flag.
8402         (FTS_OPTIONMASK): Adjust.
8403         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
8404         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
8405
8406 2011-07-08  Bruno Haible  <bruno@clisp.org>
8407
8408         Tests for module 'thread'.
8409         * modules/thread-tests: New file.
8410         * tests/test-thread_self.c: New file.
8411         * tests/test-thread_create.cc: New file.
8412
8413 2011-07-08  Bruno Haible  <bruno@clisp.org>
8414
8415         thread: Avoid gcc warnings when using gl_thread_self().
8416         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
8417         'void *'.
8418         (gl_thread_self_pointer): Update.
8419
8420 2011-07-07  Bruno Haible  <bruno@clisp.org>
8421
8422         signal-c++-tests: Check declaration of pthread_sigmask.
8423         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
8424         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
8425         $(LIB_PTHREAD_SIGMASK).
8426
8427 2011-07-07  Bruno Haible  <bruno@clisp.org>
8428
8429         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
8430         * lib/signal.in.h (pthread_sigmask): Override if
8431         REPLACE_PTHREAD_SIGMASK is 1.
8432         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
8433         REPLACE_PTHREAD_SIGMASK.
8434         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
8435         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
8436         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
8437         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
8438         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
8439
8440 2011-07-07  Bruno Haible  <bruno@clisp.org>
8441
8442         pthread_sigmask: Ensure declaration in <signal.h>.
8443         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
8444         include <pthread.h>.
8445         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
8446         problem.
8447
8448 2011-07-07  Bruno Haible  <bruno@clisp.org>
8449
8450         pthread_sigmask: Document the module.
8451         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
8452
8453 2011-07-07  Bruno Haible  <bruno@clisp.org>
8454
8455         pthread_sigmask: Follow gnulib conventions.
8456         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
8457         gl_PTHREAD_SIGMASK.
8458         * modules/pthread_sigmask (configure.ac): Update.
8459
8460 2011-07-07  Bruno Haible  <bruno@clisp.org>
8461
8462         pthread_sigmask: Make declaration C++ safe.
8463         * lib/signal.in.h: In two special conditions, just do an #include_next.
8464         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
8465         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
8466         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
8467         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
8468         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
8469         not REPLACE_PTHREAD_MASK.
8470         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
8471         not REPLACE_PTHREAD_MASK.
8472         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
8473
8474 2011-07-07  Bruno Haible  <bruno@clisp.org>
8475
8476         pthread_sigmask: Fix return value.
8477         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
8478         * lib/pthread_sigmask.c: New file.
8479         * modules/pthread_sigmask (Files): Add it.
8480         (configure.ac): Invoke AC_LIBOBJ.
8481
8482 2011-07-07  Eric Blake  <eblake@redhat.com>
8483
8484         getopt: more portable argv creation
8485         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
8486         const, use char arrays rather than strings.
8487         Suggested by Paul Eggert.
8488
8489 2011-07-07  Bruno Haible  <bruno@clisp.org>
8490
8491         Tests for module 'sigprocmask'.
8492         * modules/sigprocmask-tests: New file.
8493         * tests/test-sigprocmask.c: New file.
8494
8495 2011-07-07  Bruno Haible  <bruno@clisp.org>
8496
8497         float tests: Tweak.
8498         * tests/test-float.c (main): Tweak skip message.
8499
8500 2011-07-07  Eric Blake  <eblake@redhat.com>
8501
8502         getopt: avoid compiler warning during configure
8503         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
8504         assigning string literals to non-const pointer.
8505
8506         getopt-gnu: avoid crash in glibc getopt
8507         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
8508         * tests/test-getopt.h (test_getopt): Enhance test.
8509         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8510         * doc/posix-functions/getopt.texi (getopt): Document it.
8511         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8512         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8513         Likewise.
8514
8515 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
8516
8517         getopt: handle W; without long options in getopt [BZ #12922]
8518         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
8519         but no long options are defined, just return 'W'.
8520
8521 2011-07-07  Bruno Haible  <bruno@clisp.org>
8522
8523         Avoid literal tabs.
8524         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
8525         variable containing a tab instead of a literal tab.
8526         Reported by Jim Meyering.
8527
8528 2011-07-07  Bruno Haible  <bruno@clisp.org>
8529
8530         Comments.
8531         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
8532
8533 2011-07-06  Bruno Haible  <bruno@clisp.org>
8534
8535         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
8536         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
8537         <winsock2.h>.
8538         (rpl_fd_isset, FD_ISSET): New definitions, copied from
8539         lib/sys_socket.in.h.
8540         (close, gethostname): Hide declarations from <winsock2.h>.
8541         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
8542         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
8543         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
8544         (select): Don't override if gnulib's <sys/select.h> was already
8545         included.
8546         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
8547         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
8548         setsockopt, shutdown, select): Tweak indentation.
8549
8550 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8551
8552         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
8553         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
8554         in an application that does not use the sys_select module.
8555
8556 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
8557
8558         poll: do not return 0 on timeout=-1
8559         * lib/poll.c: Loop with yield if no events occured
8560
8561 2011-07-06  Eric Blake  <eblake@redhat.com>
8562
8563         pthread_sigmask: always replace when not using pthread
8564         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
8565         replacement when using some threading other than pthread.  Fix
8566         logic bug.
8567
8568 2011-07-06  Bruno Haible  <bruno@clisp.org>
8569
8570         Comments.
8571         * m4/printf.m4: Update comments about mingw.
8572
8573 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8574
8575         sys_select: define sigset_t more portably
8576         * lib/sys_select.in.h: Always include <sys/types.h>, since
8577         we now need sigset_t and mingw defines it there.
8578         Include <signal.h> before split inclusion guard, to avoid
8579         mishaps on Solaris, whose <signal.h> eventually includes us.
8580         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
8581         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
8582         which come from ...
8583         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
8584         gl_CHECK_TYPE_SIGSET_T.
8585         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
8586         does the real work.
8587         * modules/sys_select (Depends-on): Add 'signal'.
8588
8589         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
8590         Suggested by Bruno Haible.
8591
8592         pselect: Use pthread_sigmask, not sigprocmask.
8593         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
8594         multithreaded apps better than sigprocmask does.
8595         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
8596         sigprocmask directly.
8597
8598 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
8599
8600         * lib/pselect.c (pselect): Use plain name, without "rpl_".
8601         Don't #undef,  since we don't need any underlying pselect.
8602         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
8603         (Depends-on): Add select.
8604         (Link): Add $(LIBSOCKET).
8605         These changes suggested by Bruno Haible.
8606
8607         pselect: document better
8608         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
8609         * doc/posix-functions/pselect.texi (pselect): Document new module.
8610
8611         pthread_sigmask: new module
8612         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
8613         * doc/posix-functions/pthread_sigmask.texi: Document new module.
8614         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
8615         This is done only as a macro; I don't know how well that'll
8616         work for C++.  Move <sys/types.h> include before the include_next,
8617         to avoid mishap on Solaris.
8618         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
8619         * modules/signal (Makefile.am): Substitute the check's results.
8620         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
8621
8622         test-pselect: new module
8623         * modules/pselect-tests, tests/test-pselect.c: New files.
8624         * tests/test-select.c, tests/test-sys_select-c++.cc:
8625         If TEST_PSELECT is defined, test pselect instead of testing select.
8626
8627         * tests/test-sys_select.c (sigset_t): Test for it, too.
8628         Suggested by Bruno Haible.
8629
8630 2011-07-05  Eric Blake  <eblake@redhat.com>
8631
8632         snprintf: guarantee %1$d, for libintl
8633         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
8634         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
8635         * doc/posix-functions/snprintf.texi (snprintf): Update.
8636         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8637         * tests/test-snprintf.c (main): Enhance test.
8638         * tests/test-vsnprintf.c (main): Likewise.
8639
8640 2011-07-05  Jim Meyering  <meyering@redhat.com>
8641
8642         maint: exempt stdio-read.c and stdio-write.c from the cppi check
8643         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
8644         per Bruno's request, to accommodate this idiom (no space after "#")
8645         even when the function is inside an #if block:
8646         char *
8647         gets (char *s)
8648         #undef gets
8649         {
8650           ...
8651         }
8652
8653 2011-07-04  Jim Meyering  <meyering@redhat.com>
8654
8655         maint: indent with spaces, not TABs, and add a rule to check this
8656         * tests/test-userspec.c: Indent with spaces, not TABs.
8657         * tests/test-argp.c: Likewise.
8658         * tests/test-c-stack2.sh: Likewise.
8659         * tests/test-parse-duration.sh: Likewise
8660         * m4/strtod.m4: Likewise.
8661         * m4/alloca.m4: Likewise.
8662         * m4/pselect.m4: Likewise.
8663         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
8664
8665 2011-07-03  Jim Meyering  <meyering@redhat.com>
8666
8667         maint.mk: correct omissions in prohibit_argmatch_without_use check
8668         This rule would mistakenly report that argmatch.h is included without
8669         use even when both the argmatch and invalid_arg macro were used.
8670         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
8671         of argmatch and invalid_arg.
8672
8673 2011-07-03  Bruno Haible  <bruno@clisp.org>
8674
8675         Comments about EINTR.
8676         * lib/safe-read.h: Explain the purpose of this module.
8677         * lib/safe-write.h: Likewise.
8678         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
8679         module.
8680         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
8681         module.
8682         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8683
8684 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
8685
8686         xnanosleep: Rewrite to use new dtotimespec module.
8687         It has the conversion code that used to be in xnanosleep.
8688         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
8689         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
8690         (TIME_T_MAX): Remove.
8691         (xnanosleep): Rewrite in terms of dtotimespec.
8692         * modules/xnanosleep (Depends-on): Add dtotimespec.
8693         Remove intprops, stdbool.
8694
8695         timespec-add, timespec-sub: new modules
8696         * lib/timespec.h (timespec_add, timespec_sub): New decls.
8697         * lib/timespec-add.c, lib/timespec-sub.c:
8698         * modules/timespec-add, modules/timespec-sub: New files.
8699
8700         dtotimespec: new module
8701         * lib/timespec.h (dtotimespec): New decl.
8702         * lib/dtotimespec.c, modules/dtotimespec: New files.
8703
8704         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
8705
8706         pselect: new module
8707         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
8708         (pselect): New decls.
8709         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
8710         since the standard pselect decl uses 'restrict'.
8711         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
8712         HAVE_PSELECT, REPLACE_PSELECT.
8713         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
8714         HAVE_PSELECT, REPLACE_PSELECT.
8715         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
8716
8717         sys_select: don't depend on sys_socket
8718         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
8719         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
8720         This fix works on GNU and GNU-like platforms, but has not been tested
8721         on native Windows.
8722         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
8723         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
8724         gl_HEADER_SYS_SOCKET.
8725         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
8726         gl_PREREQ_SYS_H_WINSOCK2.
8727
8728 2011-06-29  Eric Blake  <eblake@redhat.com>
8729
8730         pipe2: fix C89 compile problem
8731         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
8732         Reported by Bruno Haible.
8733
8734         pipe, pipe2: don't corrupt fd on error
8735         * lib/pipe.c (pipe): Leave fd unchanged on error.
8736         * lib/pipe2.c (pipe2): Likewise.
8737         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
8738         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
8739
8740 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
8741
8742         mmap-anon: do not use regular expressions inadvertently
8743         * m4/mmap-anon.m4: Remove trailing period from strings sought
8744         in the output.
8745
8746 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
8747
8748         nanosleep: fix integer overflow problem
8749         * lib/nanosleep.c (my_usleep): Don't assume signed integer
8750         arithmetic wraps around on overflow.
8751
8752         nanosleep: simplify carrying
8753         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
8754         first call to the underyling nanosleep, not for the last one.
8755         This doesn't fix any bugs, but it simplifies the computation of
8756         the remaining delay.  Found while auditing integer overflow issues.
8757
8758         dup2: remove test for existence of fcntl
8759         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
8760         "#if HAVE_FCNTL", in the configure-time test program.
8761         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
8762         and therefore speeds up "configure" a bit.  Found while
8763         adding the dup2 module to Emacs.
8764
8765 2011-06-24  Eric Blake  <eblake@redhat.com>
8766
8767         maint.mk: enhance useless header checks
8768         * top/maint.mk (_sc_header_without_use): Check both include
8769         styles.
8770         (sc_prohibit_assert_without_use)
8771         (sc_prohibit_close_stream_without_use)
8772         (sc_prohibit_getopt_without_use)
8773         (sc_prohibit_quotearg_without_use)
8774         (sc_prohibit_quote_without_use)
8775         (sc_prohibit_long_options_without_use)
8776         (sc_prohibit_inttostr_without_use)
8777         (sc_prohibit_ignore_value_without_use)
8778         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
8779         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
8780         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
8781         (sc_prohibit_hash_pjw_without_use)
8782         (sc_prohibit_safe_read_without_use)
8783         (sc_prohibit_argmatch_without_use)
8784         (sc_prohibit_canonicalize_without_use)
8785         (sc_prohibit_root_dev_ino_without_use)
8786         (sc_prohibit_openat_without_use)
8787         (sc_prohibit_c_ctype_without_use)
8788         (sc_prohibit_signal_without_use)
8789         (sc_prohibit_stdio--_without_use)
8790         (sc_prohibit_stdio-safer_without_use)
8791         (sc_prohibit_strings_without_use)
8792         (sc_prohibit_intprops_without_use)
8793         (sc_prohibit_stddef_without_use)
8794         (sc_prohibit_xfreopen_without_use): Update clients.
8795
8796 2011-06-24  Jim Meyering  <meyering@redhat.com>
8797
8798         syntax-check: keep one maint.mk rule in sync with its header
8799         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
8800         of the bug Eric has just fixed, with today's commit 25e4c2ec.
8801         I prefer to avoid temporary files here, so use <(...), but that
8802         is not supported by /bin/sh, so...
8803         (SHELL): Define to /bin/bash.
8804
8805 2011-06-24  Eric Blake  <eblake@redhat.com>
8806
8807         maint.mk: update sc_prohibit_intprops_without_use
8808         * top/maint.mk (_intprops_names): Match recent changes.
8809
8810 2011-06-24  Bruno Haible  <bruno@clisp.org>
8811
8812         strerror-override: No-op tweak.
8813         * lib/strerror-override.h (strerror_override): Reorder conditions,
8814         for consistency with lib/strerror-override.c.
8815
8816 2011-06-23  Eric Blake  <eblake@redhat.com>
8817
8818         maint.mk: test further PATH_MAX issues
8819         * top/maint.mk (sc_prohibit_path_max_array): Rename...
8820         (sc_prohibit_path_max_allocation): ...and also test alloca.
8821         Suggested by Jim Meyering.
8822
8823 2011-06-22  Eric Blake  <eblake@redhat.com>
8824
8825         maint.mk: add syntax-check to avoid char[PATH_MAX]
8826         * top/maint.mk (sc_prohibit_path_max_array): New rule.
8827
8828         stat: be robust to PATH_MAX definition
8829         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
8830         * modules/stat (Depends-on): Add verify.
8831
8832         link: work around IRIX bug
8833         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
8834         * lib/link.c (rpl_link): Work around it.
8835         * tests/test-link.h (test_link): Enhance test.
8836         * doc/posix-functions/link.texi (link): Document the bug.
8837
8838         getopt: silence clang warning
8839         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
8840         dereference.
8841         Reported by Gustavo Martin Domato.
8842
8843 2011-06-22  Jim Meyering  <meyering@redhat.com>
8844
8845         bootstrap: do not insert a blank line into each .gitignore file
8846         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
8847
8848 2011-06-21  Eric Blake  <eblake@redhat.com>
8849
8850         perror: test for output mismatch
8851         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
8852         perror on IRIX.
8853
8854         strerror_r: fix OpenBSD behavior on out-of-range
8855         * lib/strerror_r.c (strerror_r): Always use maximal string.
8856         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
8857
8858         strerror_r: fix OpenBSD behavior on 0
8859         * lib/strerror-override.c (strerror_override): Also override 0
8860         when needed.
8861         * lib/strerror-override.h (strerror_override): Likewise.
8862         * lib/strerror.c (strerror): Simplify, now that 0 override is done
8863         earlier.
8864         * lib/strerror_r.c (strerror_r): Likewise.
8865         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
8866         behavior...
8867         (gl_FUNC_STRERROR_0): ...into new macro.
8868         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
8869         is overridden.
8870         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
8871         * modules/strerror-override (Files): Add strerror.m4.
8872         (configure.ac): Also provide override for 0 when needed.
8873         * doc/posix-functions/strerror.texi (strerror): Document this.
8874         * doc/posix-functions/perror.texi (perror): Likewise.
8875
8876         perror: adjust array size
8877         * modules/perror (Depends-on): Add strerror-override.
8878         * lib/perror.c (perror): Use it to avoid magic number.
8879
8880         strerror-override: reduce size
8881         * lib/strerror-override.c (strerror_override): Use fewer lines.
8882
8883 2011-06-20  Bruno Haible  <bruno@clisp.org>
8884
8885         pathmax: Ensure correct value for PATH_MAX on HP-UX.
8886         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
8887
8888 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
8889
8890         alloca: port to compilers that can optimize like GCC 4.6.0
8891         * lib/alloca.c (find_stack_direction): New signature, taken from
8892         Autoconf git.  This works with GCC 4.6.0.  This code should never
8893         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
8894         be used with other compilers that optimize as well as GCC 4.6.0 does.
8895         (alloca): Adjust to new signature.
8896         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
8897         New macro, which patches Autoconf in a similar way.
8898
8899         c-stack: stop worrying about stack direction
8900         * lib/c-stack.c (find_stack_direction): Remove.
8901         (segv_handler): Don't worry about stack direction growth, as it's
8902         too much of a pain to configure this correctly, given how compilers
8903         are optimizing-away our stack-growth detection code.  Instead, assume
8904         that any access to just before or just after the stack is OK.
8905         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
8906         Don't require AC_FUNC_ALLOCA; no longer needed.
8907
8908 2011-06-20  Eric Blake  <eblake@redhat.com>
8909
8910         test-stat: don't allocate PATH_MAX bytes
8911         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
8912         PATH_MAX-sized buffer.
8913         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
8914         * modules/stat-tests (Depends-on): Likewise.
8915         * tests/test-fstatat.c (includes): Drop pathmax.h.
8916         * tests/test-stat.c (includes): Likewise.
8917         Reported by Bruno Haible.
8918
8919 2011-06-20  Bruno Haible  <bruno@clisp.org>
8920
8921         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
8922         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
8923         * lib/float.c: New file.
8924         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
8925         REPLACE_FLOAT_LDBL.
8926         * modules/float (Files): Add lib/float.c.
8927         (configure.ac): Invoke AC_LIBOBJ.
8928         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
8929
8930 2011-06-20  Bruno Haible  <bruno@clisp.org>
8931
8932         Tests for module 'float'.
8933         * modules/float-tests: New file.
8934         * tests/test-float.c: New file.
8935
8936 2011-06-19  Bruno Haible  <bruno@clisp.org>
8937
8938         isinf: Coding style.
8939         * lib/isinf.c: Use GNU coding style.
8940
8941 2011-06-19  Bruno Haible  <bruno@clisp.org>
8942
8943         linkat test: Avoid test failure on AIX 7.1.
8944         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
8945         * tests/test-link.h (test_link): Likewise.
8946
8947 2011-06-19  Bruno Haible  <bruno@clisp.org>
8948
8949         pread test: Avoid test failure on OpenBSD 4.9.
8950         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
8951
8952 2011-06-19  Bruno Haible  <bruno@clisp.org>
8953
8954         sprintf-posix: Fix test failure on AIX 7.1.
8955         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
8956         * doc/posix-functions/dprintf.texi: Mention limited precision problem
8957         on AIX.
8958         * doc/posix-functions/fprintf.texi: Likewise.
8959         * doc/posix-functions/printf.texi: Likewise.
8960         * doc/posix-functions/snprintf.texi: Likewise.
8961         * doc/posix-functions/sprintf.texi: Likewise.
8962         * doc/posix-functions/vdprintf.texi: Likewise.
8963         * doc/posix-functions/vfprintf.texi: Likewise.
8964         * doc/posix-functions/vprintf.texi: Likewise.
8965         * doc/posix-functions/vsnprintf.texi: Likewise.
8966         * doc/posix-functions/vsprintf.texi: Likewise.
8967
8968 2011-06-19  Bruno Haible  <bruno@clisp.org>
8969
8970         roundl-ieee: Fix test failure on AIX 7.1.
8971         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
8972         * doc/posix-functions/roundl.texi: Mention problem with negative
8973         arguments.
8974
8975 2011-06-19  Bruno Haible  <bruno@clisp.org>
8976
8977         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
8978         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
8979         * doc/posix-functions/round.texi: Mention problem with negative
8980         arguments.
8981         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
8982
8983 2011-06-19  Bruno Haible  <bruno@clisp.org>
8984
8985         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
8986         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
8987         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
8988         * doc/posix-functions/roundf.texi: Mention problem with negative
8989         arguments.
8990         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
8991
8992 2011-06-19  Bruno Haible  <bruno@clisp.org>
8993
8994         ceilf-ieee: Work around bug on MacOS X 10.5.
8995         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
8996
8997         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
8998         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
8999         IEEE compliant, avoid compiler optimizations.
9000         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
9001         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9002         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
9003         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9004         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9005         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9006         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9007         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9008         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9009         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9010
9011 2011-06-19  Bruno Haible  <bruno@clisp.org>
9012
9013         ceilf-ieee: Work around bug on AIX 7.1.
9014         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
9015         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
9016
9017 2011-06-19  Bruno Haible  <bruno@clisp.org>
9018
9019         ceil-ieee: Work around bug on AIX 7.1.
9020         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
9021         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
9022
9023 2011-06-18  Bruno Haible  <bruno@clisp.org>
9024
9025         fsync test: Avoid test failure on MacOS X and AIX.
9026         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
9027         EINVAL.
9028
9029 2011-06-18  Bruno Haible  <bruno@clisp.org>
9030
9031         openat, fdopendir tests: Fix link errors.
9032         * modules/openat-tests (Depends-on): Add progname.
9033         * modules/fdopendir-tests (Depends-on): Likewise.
9034         * tests/test-fchownat.c: Include progname.h.
9035         (main): Call set_program_name.
9036         * tests/test-fstatat.c: Include progname.h.
9037         (main): Call set_program_name.
9038         * tests/test-mkdirat.c: Include progname.h.
9039         (main): Call set_program_name.
9040         * tests/test-openat.c: Include progname.h.
9041         (main): Call set_program_name.
9042         * tests/test-unlinkat.c: Include progname.h.
9043         (main): Call set_program_name.
9044         * tests/test-fdopendir.c: Include progname.h.
9045         (main): Call set_program_name.
9046
9047 2011-06-18  Bruno Haible  <bruno@clisp.org>
9048
9049         Doc update.
9050         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
9051         HP-UX.
9052         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
9053
9054 2011-06-18  Bruno Haible  <bruno@clisp.org>
9055
9056         getcwd tests: Avoid compilation error on HP-UX 11.31.
9057         * modules/getcwd-tests (Depends-on): Add pathmax.
9058         * tests/test-getcwd.c: Include pathmax.h.
9059
9060 2011-06-18  Bruno Haible  <bruno@clisp.org>
9061
9062         isfinite, isinf: Fix link error on AIX 6 and 7.
9063         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
9064         needed, also test the macro with a 'float' argument.
9065         * m4/isinf.m4 (gl_ISINF): Likewise.
9066
9067 2011-06-18  Bruno Haible  <bruno@clisp.org>
9068
9069         getloadavg: Don't clobber LIBS. Regression from previous commit.
9070         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
9071         AC_CHECK_LIB from here...
9072         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
9073         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
9074         gl_func_getloadavg_done.
9075         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9076
9077 2011-06-18  Bruno Haible  <bruno@clisp.org>
9078
9079         clean-temp: Improve documentation.
9080         * lib/clean-temp.h: Explain better how to use this module.
9081         Reported by John Darrington <john@darrington.wattle.id.au>.
9082
9083 2011-06-17  Bruno Haible  <bruno@clisp.org>
9084
9085         pread, pwrite: Avoid cc warning on AIX.
9086         * lib/unistd.in.h (pread): Undefine before defining as a macro.
9087         (pwrite): Likewise.
9088
9089 2011-06-17  Bruno Haible  <bruno@clisp.org>
9090
9091         spawn-pipe tests: Fix link error.
9092         * tests/test-spawn-pipe-child.c: Undefine fprintf.
9093         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9094
9095 2011-06-17  Bruno Haible  <bruno@clisp.org>
9096
9097         Tests: Remove unnecessary dependency.
9098         * modules/canonicalize-tests (Depends-on): Remove progname.
9099         * modules/chown-tests (Depends-on): Likewise.
9100         * modules/dirname-tests (Depends-on): Likewise.
9101         * modules/fdopendir-tests (Depends-on): Likewise.
9102         * modules/fdutimensat-tests (Depends-on): Likewise.
9103         * modules/hash-tests (Depends-on): Likewise.
9104         * modules/lchown-tests (Depends-on): Likewise.
9105         * modules/linkat-tests (Depends-on): Likewise.
9106         * modules/renameat-tests (Depends-on): Likewise.
9107         * modules/spawn-pipe-tests (Depends-on): Likewise.
9108         * modules/utimensat-tests (Depends-on): Likewise.
9109
9110 2011-06-17  Bruno Haible  <bruno@clisp.org>
9111
9112         spawn-pipe tests: Fix link error.
9113         * tests/test-spawn-pipe-child.c: Undefine fflush.
9114
9115 2011-06-17  Bruno Haible  <bruno@clisp.org>
9116
9117         Fix tests link errors.
9118         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
9119         * modules/chown-tests (Makefile.am): Don't link test-chown with
9120         LIBINTL.
9121         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
9122         LIBINTL.
9123         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
9124         LIBINTL.
9125         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
9126         LIBINTL.
9127
9128 2011-06-16  Bruno Haible  <bruno@clisp.org>
9129
9130         crypto/gc-sha1: Fix recent regression.
9131         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
9132         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
9133
9134         crypto/gc-md5: Fix recent regression.
9135         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
9136
9137         crypto/gc-md4: Fix recent regression.
9138         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
9139         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
9140
9141         crypto/gc-arctwo: Fix recent regression.
9142         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
9143         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
9144
9145         crypto/gc-rijndael: Fix recent regression.
9146         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
9147         (configure.ac): Invoke AC_LIBOBJ here.
9148         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
9149         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9150
9151         crypto/gc-hmac-sha1: Fix recent regression.
9152         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
9153         (configure.ac): Invoke AC_LIBOBJ here.
9154         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
9155         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9156
9157         crypto/gc-hmac-md5: Fix recent regression.
9158         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
9159         (configure.ac): Invoke AC_LIBOBJ here.
9160         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
9161         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9162
9163         crypto/gc-des: Fix recent regression.
9164         * modules/crypto/gc-des (Files): Remove m4/des.m4.
9165         (configure.ac): Invoke AC_LIBOBJ here.
9166         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
9167         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9168
9169         crypto/gc-arcfour: Fix recent regression.
9170         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
9171         (configure.ac): Invoke AC_LIBOBJ here.
9172         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
9173         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9174
9175 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
9176
9177         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
9178         After the 2011-05-21 change, this macro requires
9179         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
9180         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
9181
9182 2011-06-16  Bruno Haible  <bruno@clisp.org>
9183
9184         fprintftime: Move AC_LIBOBJ invocations to module description.
9185         * m4/fprintftime.m4: Remove file.
9186         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
9187         (configure.ac): Remove gl_FPRINTFTIME call.
9188         (Makefile.am): Augment lib_SOURCES.
9189         Reported by Jim Meyering.
9190
9191 2011-06-16  Bruno Haible  <bruno@clisp.org>
9192
9193         tmpfile-safer: Finish 2011-05-23 commit.
9194         * m4/stdio-safer.m4: Really remove file.
9195         Reported by Jim Meyering.
9196
9197 2011-06-16  Bruno Haible  <bruno@clisp.org>
9198
9199         syntax-check: Fix typo.
9200         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
9201         printf-posix.m4.
9202         Reported by Jim Meyering.
9203
9204 2011-06-13  Jim Meyering  <meyering@redhat.com>
9205
9206         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
9207         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
9208
9209 2011-05-23  Bruno Haible  <bruno@clisp.org>
9210
9211         yesno: Move AC_LIBOBJ invocations to module description.
9212         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
9213         * modules/yesno (Makefile.am): Augment lib_SOURCES.
9214
9215 2011-05-23  Bruno Haible  <bruno@clisp.org>
9216
9217         xstrtol: Move AC_LIBOBJ invocations to module description.
9218         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
9219         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
9220
9221 2011-05-23  Bruno Haible  <bruno@clisp.org>
9222
9223         xstrtold: Move AC_LIBOBJ invocations to module description.
9224         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
9225         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
9226
9227 2011-05-23  Bruno Haible  <bruno@clisp.org>
9228
9229         xstrtod: Move AC_LIBOBJ invocations to module description.
9230         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
9231         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
9232
9233 2011-05-23  Bruno Haible  <bruno@clisp.org>
9234
9235         xnanosleep: Move AC_LIBOBJ invocations to module description.
9236         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
9237         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
9238
9239 2011-05-23  Bruno Haible  <bruno@clisp.org>
9240
9241         xgetcwd: Move AC_LIBOBJ invocations to module description.
9242         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
9243         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
9244
9245 2011-05-23  Bruno Haible  <bruno@clisp.org>
9246
9247         xalloc: Move AC_LIBOBJ invocations to module description.
9248         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
9249         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
9250
9251 2011-05-23  Bruno Haible  <bruno@clisp.org>
9252
9253         write-any-file: Move AC_LIBOBJ invocations to module description.
9254         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
9255         invocation.
9256         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
9257
9258 2011-05-23  Bruno Haible  <bruno@clisp.org>
9259
9260         utimens: Move AC_LIBOBJ invocations to module description.
9261         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
9262         * modules/utimens (Makefile.am): Augment lib_SOURCES.
9263
9264 2011-05-23  Bruno Haible  <bruno@clisp.org>
9265
9266         utimecmp: Move AC_LIBOBJ invocations to module description.
9267         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
9268         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
9269
9270 2011-05-23  Bruno Haible  <bruno@clisp.org>
9271
9272         userspec: Move AC_LIBOBJ invocations to module description.
9273         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
9274         * modules/userspec (Makefile.am): Augment lib_SOURCES.
9275
9276 2011-05-23  Bruno Haible  <bruno@clisp.org>
9277
9278         unlinkdir: Move AC_LIBOBJ invocations to module description.
9279         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
9280         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
9281
9282 2011-05-23  Bruno Haible  <bruno@clisp.org>
9283
9284         unistd-safer: Move AC_LIBOBJ invocations to module description.
9285         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
9286         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
9287
9288 2011-05-23  Bruno Haible  <bruno@clisp.org>
9289
9290         tempname: Move AC_LIBOBJ invocations to module description.
9291         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
9292         * modules/tempname (Makefile.am): Augment lib_SOURCES.
9293
9294 2011-05-23  Bruno Haible  <bruno@clisp.org>
9295
9296         strftime: Move AC_LIBOBJ invocations to module description.
9297         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
9298         * modules/strftime (Makefile.am): Augment lib_SOURCES.
9299
9300 2011-05-23  Bruno Haible  <bruno@clisp.org>
9301
9302         stdlib-safer: Move AC_LIBOBJ invocations to module description.
9303         * m4/stdlib-safer.m4: Remove file.
9304         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
9305         (configure.ac): Remove gl_STDLIB_SAFER call.
9306         (Makefile.am): Augment lib_SOURCES.
9307
9308 2011-05-23  Bruno Haible  <bruno@clisp.org>
9309
9310         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
9311         * m4/stdio-safer.m4: Remove file.
9312         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
9313         (configure.ac): Remove gl_TMPFILE_SAFER call.
9314         (Makefile.am): Augment lib_SOURCES.
9315
9316 2011-05-23  Bruno Haible  <bruno@clisp.org>
9317
9318         popen-safer: Move AC_LIBOBJ invocations to module description.
9319         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
9320         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
9321         (configure.ac): Remove gl_POPEN_SAFER call.
9322         (Makefile.am): Augment lib_SOURCES.
9323
9324 2011-05-23  Bruno Haible  <bruno@clisp.org>
9325
9326         freopen-safer: Move AC_LIBOBJ invocations to module description.
9327         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
9328         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
9329         (configure.ac): Remove gl_FREOPEN_SAFER call.
9330         (Makefile.am): Augment lib_SOURCES.
9331
9332 2011-05-23  Bruno Haible  <bruno@clisp.org>
9333
9334         fopen-safer: Move AC_LIBOBJ invocations to module description.
9335         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
9336         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
9337         (configure.ac): Remove gl_FOPEN_SAFER call.
9338         (Makefile.am): Augment lib_SOURCES.
9339
9340 2011-05-23  Bruno Haible  <bruno@clisp.org>
9341
9342         crypto/sha512: Move AC_LIBOBJ invocations to module description.
9343         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
9344         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
9345
9346 2011-05-23  Bruno Haible  <bruno@clisp.org>
9347
9348         crypto/sha256: Move AC_LIBOBJ invocations to module description.
9349         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
9350         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
9351
9352 2011-05-23  Bruno Haible  <bruno@clisp.org>
9353
9354         crypto/sha1: Move AC_LIBOBJ invocations to module description.
9355         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
9356         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
9357
9358 2011-05-23  Bruno Haible  <bruno@clisp.org>
9359
9360         settime: Move AC_LIBOBJ invocations to module description.
9361         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
9362         * modules/settime (Makefile.am): Augment lib_SOURCES.
9363
9364 2011-05-23  Bruno Haible  <bruno@clisp.org>
9365
9366         savedir: Move AC_LIBOBJ invocations to module description.
9367         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
9368         * modules/savedir (Makefile.am): Augment lib_SOURCES.
9369
9370 2011-05-23  Bruno Haible  <bruno@clisp.org>
9371
9372         save-cwd: Move AC_LIBOBJ invocations to module description.
9373         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
9374         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
9375
9376 2011-05-23  Bruno Haible  <bruno@clisp.org>
9377
9378         same: Move AC_LIBOBJ invocations to module description.
9379         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
9380         * modules/same (Makefile.am): Augment lib_SOURCES.
9381
9382 2011-05-23  Bruno Haible  <bruno@clisp.org>
9383
9384         safe-write: Move AC_LIBOBJ invocations to module description.
9385         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
9386         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
9387         instead of gl_SAFE_WRITE.
9388         (Makefile.am): Augment lib_SOURCES.
9389
9390 2011-05-23  Bruno Haible  <bruno@clisp.org>
9391
9392         safe-read: Move AC_LIBOBJ invocations to module description.
9393         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
9394         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
9395         of gl_SAFE_READ.
9396         (Makefile.am): Augment lib_SOURCES.
9397
9398 2011-05-23  Bruno Haible  <bruno@clisp.org>
9399
9400         safe-alloc: Move AC_LIBOBJ invocations to module description.
9401         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
9402         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
9403
9404 2011-05-23  Bruno Haible  <bruno@clisp.org>
9405
9406         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
9407         * m4/rijndael.m4: Remove file.
9408         * modules/crypto/rijndael (Files): Remove it.
9409         (configure.ac): Remove gl_RIJNDAEL call.
9410         (Makefile.am): Augment lib_SOURCES.
9411
9412 2011-05-23  Bruno Haible  <bruno@clisp.org>
9413
9414         readtokens: Move AC_LIBOBJ invocations to module description.
9415         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
9416         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
9417
9418 2011-05-23  Bruno Haible  <bruno@clisp.org>
9419
9420         read-file: Move AC_LIBOBJ invocations to module description.
9421         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
9422         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
9423         of gl_FUNC_READ_FILE.
9424         (Makefile.am): Augment lib_SOURCES.
9425
9426 2011-05-23  Bruno Haible  <bruno@clisp.org>
9427
9428         quotearg: Move AC_LIBOBJ invocations to module description.
9429         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
9430         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
9431
9432 2011-05-23  Bruno Haible  <bruno@clisp.org>
9433
9434         quote: Move AC_LIBOBJ invocations to module description.
9435         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
9436         * modules/quote (Makefile.am): Augment lib_SOURCES.
9437
9438 2011-05-23  Bruno Haible  <bruno@clisp.org>
9439
9440         posixver: Move AC_LIBOBJ invocations to module description.
9441         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
9442         * modules/posixver (Makefile.am): Augment lib_SOURCES.
9443
9444 2011-05-23  Bruno Haible  <bruno@clisp.org>
9445
9446         posixtm: Move AC_LIBOBJ invocations to module description.
9447         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
9448         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
9449
9450 2011-05-23  Bruno Haible  <bruno@clisp.org>
9451
9452         physmem: Move AC_LIBOBJ invocations to module description.
9453         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
9454         * modules/physmem (Makefile.am): Augment lib_SOURCES.
9455
9456 2011-05-23  Bruno Haible  <bruno@clisp.org>
9457
9458         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
9459         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
9460         invocation.
9461         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
9462
9463 2011-05-23  Bruno Haible  <bruno@clisp.org>
9464
9465         mpsort: Move AC_LIBOBJ invocations to module description.
9466         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
9467         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
9468
9469 2011-05-23  Bruno Haible  <bruno@clisp.org>
9470
9471         modechange: Move AC_LIBOBJ invocations to module description.
9472         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
9473         * modules/modechange (Makefile.am): Augment lib_SOURCES.
9474
9475 2011-05-23  Bruno Haible  <bruno@clisp.org>
9476
9477         mkdir-p: Move AC_LIBOBJ invocations to module description.
9478         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
9479         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
9480
9481 2011-05-23  Bruno Haible  <bruno@clisp.org>
9482
9483         mkancesdirs: Move AC_LIBOBJ invocations to module description.
9484         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
9485         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
9486
9487 2011-05-23  Bruno Haible  <bruno@clisp.org>
9488
9489         mgetgroups: Move AC_LIBOBJ invocations to module description.
9490         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
9491         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
9492
9493 2011-05-23  Bruno Haible  <bruno@clisp.org>
9494
9495         memxor: Move AC_LIBOBJ invocations to module description.
9496         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
9497         * modules/memxor (Makefile.am): Augment lib_SOURCES.
9498
9499 2011-05-23  Bruno Haible  <bruno@clisp.org>
9500
9501         memcoll: Move AC_LIBOBJ invocations to module description.
9502         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
9503         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
9504
9505 2011-05-23  Bruno Haible  <bruno@clisp.org>
9506
9507         memcasecmp: Move AC_LIBOBJ invocations to module description.
9508         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
9509         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
9510
9511 2011-05-23  Bruno Haible  <bruno@clisp.org>
9512
9513         crypto/md5: Move AC_LIBOBJ invocations to module description.
9514         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
9515         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
9516
9517 2011-05-23  Bruno Haible  <bruno@clisp.org>
9518
9519         crypto/md4: Move AC_LIBOBJ invocations to module description.
9520         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
9521         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
9522
9523 2011-05-23  Bruno Haible  <bruno@clisp.org>
9524
9525         crypto/md2: Move AC_LIBOBJ invocations to module description.
9526         * m4/md2.m4: Remove file.
9527         * modules/crypto/md2 (Files): Remove it.
9528         (configure.ac): Remove gl_MD2 call.
9529         (Makefile.am): Augment lib_SOURCES.
9530
9531 2011-05-23  Bruno Haible  <bruno@clisp.org>
9532
9533         long-options: Move AC_LIBOBJ invocations to module description.
9534         * m4/long-options.m4: Remove file.
9535         * modules/long-options (Files): Remove it.
9536         (configure.ac): Remove gl_LONG_OPTIONS call.
9537         (Makefile.am): Augment lib_SOURCES.
9538
9539 2011-05-23  Bruno Haible  <bruno@clisp.org>
9540
9541         i-ring: Move AC_LIBOBJ invocations to module description.
9542         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
9543         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
9544
9545 2011-05-23  Bruno Haible  <bruno@clisp.org>
9546
9547         idcache: Move AC_LIBOBJ invocations to module description.
9548         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
9549         * modules/idcache (Makefile.am): Augment lib_SOURCES.
9550
9551 2011-05-23  Bruno Haible  <bruno@clisp.org>
9552
9553         human: Move AC_LIBOBJ invocations to module description.
9554         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
9555         * modules/human (Makefile.am): Augment lib_SOURCES.
9556
9557 2011-05-23  Bruno Haible  <bruno@clisp.org>
9558
9559         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
9560         * m4/hmac-sha1.m4: Remove file.
9561         * modules/crypto/hmac-sha1 (Files): Remove it.
9562         (configure.ac): Remove gl_HMAC_SHA1 call.
9563         (Makefile.am): Augment lib_SOURCES.
9564
9565 2011-05-23  Bruno Haible  <bruno@clisp.org>
9566
9567         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
9568         * m4/hmac-md5.m4: Remove file.
9569         * modules/crypto/hmac-md5 (Files): Remove it.
9570         (configure.ac): Remove gl_HMAC_MD5 call.
9571         (Makefile.am): Augment lib_SOURCES.
9572
9573 2011-05-23  Bruno Haible  <bruno@clisp.org>
9574
9575         hash: Move AC_LIBOBJ invocations to module description.
9576         * m4/hash.m4: Remove file.
9577         * modules/hash (Files): Remove it.
9578         (configure.ac): Remove gl_HASH call.
9579         (Makefile.am): Augment lib_SOURCES.
9580
9581 2011-05-23  Bruno Haible  <bruno@clisp.org>
9582
9583         hard-locale: Move AC_LIBOBJ invocations to module description.
9584         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
9585         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
9586
9587 2011-05-23  Bruno Haible  <bruno@clisp.org>
9588
9589         getugroups: Move AC_LIBOBJ invocations to module description.
9590         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
9591         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
9592
9593 2011-05-23  Bruno Haible  <bruno@clisp.org>
9594
9595         gettime: Move AC_LIBOBJ invocations to module description.
9596         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
9597         * modules/gettime (Makefile.am): Augment lib_SOURCES.
9598
9599 2011-05-23  Bruno Haible  <bruno@clisp.org>
9600
9601         getndelim2: Move AC_LIBOBJ invocations to module description.
9602         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
9603         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
9604
9605 2011-05-23  Bruno Haible  <bruno@clisp.org>
9606
9607         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
9608         * m4/gc-pbkdf2-sha1.m4: Remove file.
9609         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
9610         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
9611         (Makefile.am): Augment lib_SOURCES.
9612
9613 2011-05-23  Bruno Haible  <bruno@clisp.org>
9614
9615         fts: Move AC_LIBOBJ invocations to module description.
9616         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
9617         * modules/fts (configure.ac): ... to here.
9618
9619 2011-05-23  Bruno Haible  <bruno@clisp.org>
9620
9621         file-type: Move AC_LIBOBJ invocations to module description.
9622         * m4/file-type.m4: Remove file.
9623         * modules/file-type (Files): Remove it.
9624         (configure.ac): Remove gl_FILE_TYPE call.
9625         (Makefile.am): Augment lib_SOURCES.
9626
9627 2011-05-23  Bruno Haible  <bruno@clisp.org>
9628
9629         filenamecat*: Respect rules for use of AC_LIBOBJ.
9630         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
9631         Remove AC_LIBOBJ invocation.
9632         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
9633         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
9634
9635 2011-05-23  Bruno Haible  <bruno@clisp.org>
9636
9637         filemode: Move AC_LIBOBJ invocations to module description.
9638         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
9639         * modules/filemode (Makefile.am): Augment lib_SOURCES.
9640
9641 2011-05-23  Bruno Haible  <bruno@clisp.org>
9642
9643         openat-safer: Move AC_LIBOBJ invocations to module description.
9644         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
9645         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
9646
9647 2011-05-23  Bruno Haible  <bruno@clisp.org>
9648
9649         fcntl-safer: Move AC_LIBOBJ invocations to module description.
9650         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
9651         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
9652
9653 2011-05-23  Bruno Haible  <bruno@clisp.org>
9654
9655         exclude: Move AC_LIBOBJ invocations to module description.
9656         * m4/exclude.m4: Remove file.
9657         * modules/exclude (Files): Remove it.
9658         (configure.ac): Remove gl_EXCLUDE call.
9659         (Makefile.am): Augment lib_SOURCES.
9660
9661 2011-05-23  Bruno Haible  <bruno@clisp.org>
9662
9663         dirname*: Respect rules for use of AC_LIBOBJ.
9664         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
9665         invocations.
9666         * modules/dirname (Makefile.am): Augment lib_SOURCES.
9667         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
9668
9669 2011-05-23  Bruno Haible  <bruno@clisp.org>
9670
9671         dirent-safer: Move AC_LIBOBJ invocations to module description.
9672         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
9673         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
9674
9675 2011-05-23  Bruno Haible  <bruno@clisp.org>
9676
9677         crypto/des: Move AC_LIBOBJ invocations to module description.
9678         * m4/des.m4: Remove file.
9679         * modules/crypto/des (Files): Remove it.
9680         (configure.ac): Remove gl_DES call.
9681         (Makefile.am): Augment lib_SOURCES.
9682
9683 2011-05-23  Bruno Haible  <bruno@clisp.org>
9684
9685         cycle-check: Move AC_LIBOBJ invocations to module description.
9686         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
9687         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
9688
9689 2011-05-23  Bruno Haible  <bruno@clisp.org>
9690
9691         c-strtold: Move AC_LIBOBJ invocations to module description.
9692         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
9693         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
9694
9695 2011-05-23  Bruno Haible  <bruno@clisp.org>
9696
9697         c-strtod: Move AC_LIBOBJ invocations to module description.
9698         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
9699         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
9700
9701 2011-05-23  Bruno Haible  <bruno@clisp.org>
9702
9703         crc: Move AC_LIBOBJ invocations to module description.
9704         * m4/crc.m4: Remove file.
9705         * modules/crc (Files): Remove it.
9706         (configure.ac): Remove gl_CRC call.
9707         (Makefile.am): Augment lib_SOURCES.
9708
9709 2011-05-23  Bruno Haible  <bruno@clisp.org>
9710
9711         close-stream: Move AC_LIBOBJ invocations to module description.
9712         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
9713         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
9714
9715 2011-05-23  Bruno Haible  <bruno@clisp.org>
9716
9717         closeout: Move AC_LIBOBJ invocations to module description.
9718         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
9719         * modules/closeout (Makefile.am): Augment lib_SOURCES.
9720
9721 2011-05-23  Bruno Haible  <bruno@clisp.org>
9722
9723         closein: Move AC_LIBOBJ invocations to module description.
9724         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
9725         * modules/closein (Makefile.am): Augment lib_SOURCES.
9726
9727 2011-05-23  Bruno Haible  <bruno@clisp.org>
9728
9729         cloexec: Move AC_LIBOBJ invocations to module description.
9730         * m4/cloexec.m4: Remove file.
9731         * modules/cloexec (Files): Remove it.
9732         (configure.ac): Remove gl_CLOEXEC call.
9733         (Makefile.am): Augment lib_SOURCES.
9734
9735 2011-05-23  Bruno Haible  <bruno@clisp.org>
9736
9737         check-version: Move AC_LIBOBJ invocations to module description.
9738         * m4/check-version.m4: Remove file.
9739         * modules/check-version (Files): Remove it.
9740         (configure.ac): Remove gl_CHECK_VERSION call.
9741         (Makefile.am): Augment lib_SOURCES.
9742
9743 2011-05-23  Bruno Haible  <bruno@clisp.org>
9744
9745         chdir-safer: Move AC_LIBOBJ invocations to module description.
9746         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
9747         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
9748
9749 2011-05-23  Bruno Haible  <bruno@clisp.org>
9750
9751         canonicalize: Move AC_LIBOBJ invocations to module description.
9752         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
9753         AC_LIBOBJ invocation.
9754         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
9755
9756 2011-05-23  Bruno Haible  <bruno@clisp.org>
9757
9758         canon-host: Move AC_LIBOBJ invocations to module description.
9759         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
9760         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
9761         instead of gl_CANON_HOST.
9762         (Makefile.am): Augment lib_SOURCES.
9763
9764 2011-05-23  Bruno Haible  <bruno@clisp.org>
9765
9766         backupfile: Move AC_LIBOBJ invocations to module description.
9767         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
9768         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
9769
9770 2011-05-23  Bruno Haible  <bruno@clisp.org>
9771
9772         argmatch: Move AC_LIBOBJ invocations to module description.
9773         * m4/argmatch.m4: Remove file.
9774         * modules/argmatch (Files): Remove it.
9775         (configure.ac): Remove gl_ARGMATCH call.
9776         (Makefile.am): Augment lib_SOURCES.
9777
9778 2011-05-23  Bruno Haible  <bruno@clisp.org>
9779
9780         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
9781         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
9782         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
9783
9784 2011-05-23  Bruno Haible  <bruno@clisp.org>
9785
9786         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
9787         * m4/arcfour.m4: Remove file.
9788         * modules/crypto/arcfour (Files): Remove it.
9789         (configure.ac): Remove gl_ARCFOUR call.
9790         (Makefile.am): Augment lib_SOURCES.
9791
9792 2011-05-22  Bruno Haible  <bruno@clisp.org>
9793
9794         write: Move AC_LIBOBJ invocations to module description.
9795         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
9796         * modules/write (configure.ac): ... to here.
9797
9798 2011-05-22  Bruno Haible  <bruno@clisp.org>
9799
9800         wmemset: Move AC_LIBOBJ invocations to module description.
9801         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
9802         here...
9803         * modules/wmemset (configure.ac): ... to here.
9804
9805 2011-05-22  Bruno Haible  <bruno@clisp.org>
9806
9807         wmemmove: Move AC_LIBOBJ invocations to module description.
9808         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
9809         here...
9810         * modules/wmemmove (configure.ac): ... to here.
9811
9812 2011-05-22  Bruno Haible  <bruno@clisp.org>
9813
9814         wmemcpy: Move AC_LIBOBJ invocations to module description.
9815         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
9816         here...
9817         * modules/wmemcpy (configure.ac): ... to here.
9818
9819 2011-05-22  Bruno Haible  <bruno@clisp.org>
9820
9821         wmemcmp: Move AC_LIBOBJ invocations to module description.
9822         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
9823         here...
9824         * modules/wmemcmp (configure.ac): ... to here.
9825
9826 2011-05-22  Bruno Haible  <bruno@clisp.org>
9827
9828         wmemchr: Move AC_LIBOBJ invocations to module description.
9829         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
9830         here...
9831         * modules/wmemchr (configure.ac): ... to here.
9832
9833 2011-05-22  Bruno Haible  <bruno@clisp.org>
9834
9835         wcswidth: Move AC_LIBOBJ invocations to module description.
9836         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
9837         here...
9838         * modules/wcswidth (configure.ac): ... to here.
9839
9840 2011-05-22  Bruno Haible  <bruno@clisp.org>
9841
9842         wcwidth: Respect rules for use of AC_LIBOBJ.
9843         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
9844         invocation from here...
9845         * modules/wcwidth (configure.ac): ... to here.
9846         (Depends-on): Update conditions.
9847
9848 2011-05-22  Bruno Haible  <bruno@clisp.org>
9849
9850         wctype: Move AC_LIBOBJ invocations to module description.
9851         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
9852         invocation from here...
9853         * modules/wctype (configure.ac): ... to here.
9854         (Depends-on): Update conditions.
9855
9856 2011-05-22  Bruno Haible  <bruno@clisp.org>
9857
9858         wctrans: Move AC_LIBOBJ invocations to module description.
9859         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
9860         invocation from here...
9861         * modules/wctrans (configure.ac): ... to here.
9862
9863 2011-05-22  Bruno Haible  <bruno@clisp.org>
9864
9865         wctomb: Move AC_LIBOBJ invocations to module description.
9866         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
9867         invocations from here...
9868         * modules/wctomb (configure.ac): ... to here.
9869
9870 2011-05-22  Bruno Haible  <bruno@clisp.org>
9871
9872         wctob: Move AC_LIBOBJ invocations to module description.
9873         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
9874         gl_PREREQ_WCTOB invocations from here...
9875         * modules/wctob (configure.ac): ... to here.
9876         (Depends-on): Update conditions.
9877
9878 2011-05-22  Bruno Haible  <bruno@clisp.org>
9879
9880         wcsxfrm: Move AC_LIBOBJ invocations to module description.
9881         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
9882         here...
9883         * modules/wcsxfrm (configure.ac): ... to here.
9884
9885 2011-05-22  Bruno Haible  <bruno@clisp.org>
9886
9887         wcstok: Move AC_LIBOBJ invocations to module description.
9888         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
9889         * modules/wcstok (configure.ac): ... to here.
9890
9891 2011-05-22  Bruno Haible  <bruno@clisp.org>
9892
9893         wcsstr: Move AC_LIBOBJ invocations to module description.
9894         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
9895         * modules/wcsstr (configure.ac): ... to here.
9896
9897 2011-05-22  Bruno Haible  <bruno@clisp.org>
9898
9899         wcsspn: Move AC_LIBOBJ invocations to module description.
9900         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
9901         * modules/wcsspn (configure.ac): ... to here.
9902
9903 2011-05-22  Bruno Haible  <bruno@clisp.org>
9904
9905         wcsrtombs: Move AC_LIBOBJ invocations to module description.
9906         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
9907         gl_PREREQ_WCSRTOMBS invocations from here...
9908         * modules/wcsrtombs (configure.ac): ... to here.
9909
9910 2011-05-22  Bruno Haible  <bruno@clisp.org>
9911
9912         wcsrchr: Move AC_LIBOBJ invocations to module description.
9913         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
9914         here...
9915         * modules/wcsrchr (configure.ac): ... to here.
9916
9917 2011-05-22  Bruno Haible  <bruno@clisp.org>
9918
9919         wcspbrk: Move AC_LIBOBJ invocations to module description.
9920         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
9921         here...
9922         * modules/wcspbrk (configure.ac): ... to here.
9923
9924 2011-05-22  Bruno Haible  <bruno@clisp.org>
9925
9926         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
9927         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
9928         gl_PREREQ_WCSNRTOMBS invocations from here...
9929         * modules/wcsnrtombs (configure.ac): ... to here.
9930
9931 2011-05-22  Bruno Haible  <bruno@clisp.org>
9932
9933         wcsnlen: Move AC_LIBOBJ invocations to module description.
9934         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
9935         here...
9936         * modules/wcsnlen (configure.ac): ... to here.
9937
9938 2011-05-22  Bruno Haible  <bruno@clisp.org>
9939
9940         wcsncpy: Move AC_LIBOBJ invocations to module description.
9941         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
9942         here...
9943         * modules/wcsncpy (configure.ac): ... to here.
9944
9945 2011-05-22  Bruno Haible  <bruno@clisp.org>
9946
9947         wcsncmp: Move AC_LIBOBJ invocations to module description.
9948         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
9949         here...
9950         * modules/wcsncmp (configure.ac): ... to here.
9951
9952 2011-05-22  Bruno Haible  <bruno@clisp.org>
9953
9954         wcsncat: Move AC_LIBOBJ invocations to module description.
9955         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
9956         here...
9957         * modules/wcsncat (configure.ac): ... to here.
9958
9959 2011-05-22  Bruno Haible  <bruno@clisp.org>
9960
9961         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
9962         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
9963         from here...
9964         * modules/wcsncasecmp (configure.ac): ... to here.
9965
9966 2011-05-22  Bruno Haible  <bruno@clisp.org>
9967
9968         wcslen: Move AC_LIBOBJ invocations to module description.
9969         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
9970         * modules/wcslen (configure.ac): ... to here.
9971
9972 2011-05-22  Bruno Haible  <bruno@clisp.org>
9973
9974         wcsdup: Move AC_LIBOBJ invocations to module description.
9975         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
9976         * modules/wcsdup (configure.ac): ... to here.
9977
9978 2011-05-22  Bruno Haible  <bruno@clisp.org>
9979
9980         wcscspn: Move AC_LIBOBJ invocations to module description.
9981         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
9982         here...
9983         * modules/wcscspn (configure.ac): ... to here.
9984
9985 2011-05-22  Bruno Haible  <bruno@clisp.org>
9986
9987         wcscpy: Move AC_LIBOBJ invocations to module description.
9988         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
9989         * modules/wcscpy (configure.ac): ... to here.
9990
9991 2011-05-22  Bruno Haible  <bruno@clisp.org>
9992
9993         wcscoll: Move AC_LIBOBJ invocations to module description.
9994         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
9995         here...
9996         * modules/wcscoll (configure.ac): ... to here.
9997
9998 2011-05-22  Bruno Haible  <bruno@clisp.org>
9999
10000         wcscmp: Move AC_LIBOBJ invocations to module description.
10001         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
10002         * modules/wcscmp (configure.ac): ... to here.
10003
10004 2011-05-22  Bruno Haible  <bruno@clisp.org>
10005
10006         wcschr: Move AC_LIBOBJ invocations to module description.
10007         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
10008         * modules/wcschr (configure.ac): ... to here.
10009
10010 2011-05-22  Bruno Haible  <bruno@clisp.org>
10011
10012         wcscat: Move AC_LIBOBJ invocations to module description.
10013         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
10014         * modules/wcscat (configure.ac): ... to here.
10015
10016 2011-05-22  Bruno Haible  <bruno@clisp.org>
10017
10018         wcscasecmp: Move AC_LIBOBJ invocations to module description.
10019         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
10020         here...
10021         * modules/wcscasecmp (configure.ac): ... to here.
10022
10023 2011-05-22  Bruno Haible  <bruno@clisp.org>
10024
10025         wcrtomb: Move AC_LIBOBJ invocations to module description.
10026         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
10027         invocations from here...
10028         * modules/wcrtomb (configure.ac): ... to here.
10029
10030 2011-05-22  Bruno Haible  <bruno@clisp.org>
10031
10032         wcpncpy: Move AC_LIBOBJ invocations to module description.
10033         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
10034         here...
10035         * modules/wcpncpy (configure.ac): ... to here.
10036
10037 2011-05-22  Bruno Haible  <bruno@clisp.org>
10038
10039         wcpcpy: Move AC_LIBOBJ invocations to module description.
10040         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
10041         * modules/wcpcpy (configure.ac): ... to here.
10042
10043 2011-05-22  Bruno Haible  <bruno@clisp.org>
10044
10045         waitpid: Move AC_LIBOBJ invocations to module description.
10046         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
10047         invocation from here...
10048         * modules/waitpid (configure.ac): ... to here.
10049
10050 2011-05-22  Bruno Haible  <bruno@clisp.org>
10051
10052         utimensat: Move AC_LIBOBJ invocations to module description.
10053         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
10054         here...
10055         * modules/utimensat (configure.ac): ... to here.
10056
10057 2011-05-22  Bruno Haible  <bruno@clisp.org>
10058
10059         usleep: Move AC_LIBOBJ invocations to module description.
10060         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
10061         here...
10062         * modules/usleep (configure.ac): ... to here.
10063
10064 2011-05-22  Bruno Haible  <bruno@clisp.org>
10065
10066         unlockpt: Move AC_LIBOBJ invocations to module description.
10067         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
10068         gl_PREREQ_UNLOCKPT invocations from here...
10069         * modules/unlockpt (configure.ac): ... to here.
10070
10071 2011-05-22  Bruno Haible  <bruno@clisp.org>
10072
10073         unlink: Respect rules for use of AC_LIBOBJ.
10074         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
10075         * modules/unlink (configure.ac): ... to here.
10076
10077 2011-05-22  Bruno Haible  <bruno@clisp.org>
10078
10079         uname: Move AC_LIBOBJ invocations to module description.
10080         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
10081         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
10082         here...
10083         * modules/uname (configure.ac): ... to here.
10084
10085 2011-05-22  Bruno Haible  <bruno@clisp.org>
10086
10087         ttyname_r: Move AC_LIBOBJ invocations to module description.
10088         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
10089         gl_PREREQ_TTYNAME_R invocations from here...
10090         * modules/ttyname_r (configure.ac): ... to here.
10091
10092 2011-05-22  Bruno Haible  <bruno@clisp.org>
10093
10094         tsearch: Move AC_LIBOBJ invocations to module description.
10095         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
10096         invocations from here...
10097         * modules/tsearch (configure.ac): ... to here.
10098
10099 2011-05-22  Bruno Haible  <bruno@clisp.org>
10100
10101         towctrans: Move AC_LIBOBJ invocations to module description.
10102         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
10103         AC_LIBOBJ invocation from here...
10104         * modules/towctrans (configure.ac): ... to here.
10105
10106 2011-05-22  Bruno Haible  <bruno@clisp.org>
10107
10108         tmpfile: Move AC_LIBOBJ invocations to module description.
10109         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
10110         invocations from here...
10111         * modules/tmpfile (configure.ac): ... to here.
10112
10113 2011-05-22  Bruno Haible  <bruno@clisp.org>
10114
10115         times: Move AC_LIBOBJ invocations to module description.
10116         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
10117         * modules/times (configure.ac): ... to here.
10118
10119 2011-05-22  Bruno Haible  <bruno@clisp.org>
10120
10121         time_r: Move AC_LIBOBJ invocations to module description.
10122         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
10123         invocations from here...
10124         * modules/time_r (configure.ac): ... to here.
10125
10126 2011-05-22  Bruno Haible  <bruno@clisp.org>
10127
10128         timegm: Move AC_LIBOBJ invocations to module description.
10129         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
10130         invocations from here...
10131         * modules/timegm (configure.ac): ... to here.
10132
10133 2011-05-22  Bruno Haible  <bruno@clisp.org>
10134
10135         tcgetsid: Move AC_LIBOBJ invocations to module description.
10136         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
10137         and gl_PREREQ_TCGETSID invocations from here...
10138         * modules/tcgetsid (configure.ac): ... to here.
10139         (Depends-on): Update conditions.
10140
10141 2011-05-22  Bruno Haible  <bruno@clisp.org>
10142
10143         symlinkat: Move AC_LIBOBJ invocations to module description.
10144         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
10145         here...
10146         * modules/symlinkat (configure.ac): ... to here.
10147
10148 2011-05-22  Bruno Haible  <bruno@clisp.org>
10149
10150         symlink: Move AC_LIBOBJ invocations to module description.
10151         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
10152         here...
10153         * modules/symlink (configure.ac): ... to here.
10154
10155 2011-05-22  Bruno Haible  <bruno@clisp.org>
10156
10157         strverscmp: Move AC_LIBOBJ invocations to module description.
10158         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
10159         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
10160         from here...
10161         * modules/strverscmp (configure.ac): ... to here.
10162
10163 2011-05-22  Bruno Haible  <bruno@clisp.org>
10164
10165         strtok_r: Move AC_LIBOBJ invocations to module description.
10166         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
10167         and gl_PREREQ_STRTOK_R invocations from here...
10168         * modules/strtok_r (configure.ac): ... to here.
10169         (Depends-on): Update conditions.
10170
10171 2011-05-22  Bruno Haible  <bruno@clisp.org>
10172
10173         strtoumax: Move AC_LIBOBJ invocations to module description.
10174         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
10175         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
10176         from here...
10177         * modules/strtoumax (configure.ac): ... to here.
10178
10179 2011-05-22  Bruno Haible  <bruno@clisp.org>
10180
10181         strtoimax: Move AC_LIBOBJ invocations to module description.
10182         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
10183         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
10184         from here...
10185         * modules/strtoimax (configure.ac): ... to here.
10186
10187 2011-05-22  Bruno Haible  <bruno@clisp.org>
10188
10189         strtoull: Move AC_LIBOBJ invocations to module description.
10190         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
10191         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
10192         from here...
10193         * modules/strtoull (configure.ac): ... to here.
10194
10195 2011-05-22  Bruno Haible  <bruno@clisp.org>
10196
10197         strtoll: Move AC_LIBOBJ invocations to module description.
10198         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
10199         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
10200         here...
10201         * modules/strtoll (configure.ac): ... to here.
10202
10203 2011-05-22  Bruno Haible  <bruno@clisp.org>
10204
10205         strtoul: Move AC_LIBOBJ invocations to module description.
10206         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
10207         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
10208         * modules/strtoul (configure.ac): ... to here.
10209
10210 2011-05-22  Bruno Haible  <bruno@clisp.org>
10211
10212         strtol: Move AC_LIBOBJ invocations to module description.
10213         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
10214         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
10215         * modules/strtol (configure.ac): ... to here.
10216
10217 2011-05-22  Bruno Haible  <bruno@clisp.org>
10218
10219         strtod: Move AC_LIBOBJ invocations to module description.
10220         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
10221         invocations from here...
10222         * modules/strtod (configure.ac): ... to here.
10223
10224 2011-05-22  Bruno Haible  <bruno@clisp.org>
10225
10226         strstr*: Move AC_LIBOBJ invocations to module description.
10227         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
10228         invocations from here...
10229         * modules/strstr-simple (configure.ac): ... to here.
10230         * modules/strstr (configure.ac): ... and here.
10231
10232 2011-05-22  Bruno Haible  <bruno@clisp.org>
10233
10234         strsignal: Move AC_LIBOBJ invocations to module description.
10235         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
10236         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
10237         * modules/strsignal (configure.ac): ... to here.
10238         (Depends-on): Update conditions.
10239
10240 2011-05-22  Bruno Haible  <bruno@clisp.org>
10241
10242         strsep: Move AC_LIBOBJ invocations to module description.
10243         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
10244         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
10245         here...
10246         * modules/strsep (configure.ac): ... to here.
10247
10248 2011-05-22  Bruno Haible  <bruno@clisp.org>
10249
10250         strptime: Move AC_LIBOBJ invocations to module description.
10251         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
10252         gl_PREREQ_STRPTIME invocations from here...
10253         * modules/strptime (configure.ac): ... to here.
10254
10255 2011-05-22  Bruno Haible  <bruno@clisp.org>
10256
10257         strpbrk: Move AC_LIBOBJ invocations to module description.
10258         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
10259         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
10260         here...
10261         * modules/strpbrk (configure.ac): ... to here.
10262
10263 2011-05-22  Bruno Haible  <bruno@clisp.org>
10264
10265         strnlen: Move AC_LIBOBJ invocations to module description.
10266         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
10267         invocations from here...
10268         * modules/strnlen (configure.ac): ... to here.
10269
10270 2011-05-22  Bruno Haible  <bruno@clisp.org>
10271
10272         strndup: Move AC_LIBOBJ invocations to module description.
10273         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
10274         invocations from here...
10275         * modules/strndup (configure.ac): ... to here.
10276         (Depends-on): Update conditions.
10277
10278 2011-05-22  Bruno Haible  <bruno@clisp.org>
10279
10280         strncat: Move AC_LIBOBJ invocations to module description.
10281         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
10282         invocations from here...
10283         * modules/strncat (configure.ac): ... to here.
10284
10285 2011-05-22  Bruno Haible  <bruno@clisp.org>
10286
10287         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
10288         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
10289         invocations from here...
10290         * modules/strdup (configure.ac): ... to here.
10291         * modules/strdup-posix (configure.ac): ... and here.
10292
10293 2011-05-22  Bruno Haible  <bruno@clisp.org>
10294
10295         strcspn: Move AC_LIBOBJ invocations to module description.
10296         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
10297         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
10298         here...
10299         * modules/strcspn (configure.ac): ... to here.
10300
10301 2011-05-22  Bruno Haible  <bruno@clisp.org>
10302
10303         strchrnul: Move AC_LIBOBJ invocations to module description.
10304         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
10305         gl_PREREQ_STRCHRNUL invocations from here...
10306         * modules/strchrnul (configure.ac): ... to here.
10307
10308 2011-05-22  Bruno Haible  <bruno@clisp.org>
10309
10310         strcasestr*: Move AC_LIBOBJ invocations to module description.
10311         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
10312         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
10313         * modules/strcasestr-simple (configure.ac): ... to here.
10314         * modules/strcasestr (configure.ac): ... and here.
10315
10316 2011-05-22  Bruno Haible  <bruno@clisp.org>
10317
10318         strcase: Move AC_LIBOBJ invocations to module description.
10319         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
10320         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
10321         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
10322         gl_PREREQ_STRNCASECMP invocations from here...
10323         * modules/strcase (configure.ac): ... to here.
10324
10325 2011-05-22  Bruno Haible  <bruno@clisp.org>
10326
10327         stpncpy: Move AC_LIBOBJ invocations to module description.
10328         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
10329         here...
10330         * modules/stpncpy (configure.ac): ... to here.
10331
10332 2011-05-22  Bruno Haible  <bruno@clisp.org>
10333
10334         stpcpy: Move AC_LIBOBJ invocations to module description.
10335         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
10336         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
10337         here...
10338         * modules/stpcpy (configure.ac): ... to here.
10339
10340 2011-05-21  Bruno Haible  <bruno@clisp.org>
10341
10342         stat: Move AC_LIBOBJ invocations to module description.
10343         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
10344         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
10345         here...
10346         * modules/stat (configure.ac): ... to here.
10347
10348 2011-05-21  Bruno Haible  <bruno@clisp.org>
10349
10350         sleep: Move AC_LIBOBJ invocations to module description.
10351         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
10352         * modules/sleep (configure.ac): ... to here.
10353
10354 2011-05-21  Bruno Haible  <bruno@clisp.org>
10355
10356         signbit: Move AC_LIBOBJ invocations to module description.
10357         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
10358         * modules/signbit (configure.ac): ... to here.
10359
10360 2011-05-21  Bruno Haible  <bruno@clisp.org>
10361
10362         sigprocmask: Move AC_LIBOBJ invocations to module description.
10363         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
10364         gl_PREREQ_SIGPROMASK invocations from here...
10365         * modules/sigprocmask (configure.ac): ... to here.
10366
10367 2011-05-21  Bruno Haible  <bruno@clisp.org>
10368
10369         sigaction: Move AC_LIBOBJ invocations to module description.
10370         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
10371         gl_PREREQ_SIGACTION invocations from here...
10372         * modules/sigaction (configure.ac): ... to here.
10373
10374 2011-05-21  Bruno Haible  <bruno@clisp.org>
10375
10376         sig2str: Move AC_LIBOBJ invocations to module description.
10377         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
10378         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
10379         here...
10380         * modules/sig2str (configure.ac): ... to here.
10381
10382 2011-05-21  Bruno Haible  <bruno@clisp.org>
10383
10384         setlocale: Move AC_LIBOBJ invocations to module description.
10385         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
10386         gl_PREREQ_SETLOCALE invocations from here...
10387         * modules/setlocale (configure.ac): ... to here.
10388
10389 2011-05-21  Bruno Haible  <bruno@clisp.org>
10390
10391         unsetenv: Move AC_LIBOBJ invocations to module description.
10392         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
10393         and gl_PREREQ_UNSETENV invocations from here...
10394         * modules/unsetenv (configure.ac): ... to here.
10395         (Depends-on): Update.
10396
10397 2011-05-21  Bruno Haible  <bruno@clisp.org>
10398
10399         setenv: Move AC_LIBOBJ invocations to module description.
10400         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
10401         here...
10402         * modules/setenv (configure.ac): ... to here.
10403
10404 2011-05-21  Bruno Haible  <bruno@clisp.org>
10405
10406         selinux-h: Move AC_LIBOBJ invocations to module description.
10407         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
10408         AC_LIBOBJ invocation from here...
10409         * modules/selinux-h (configure.ac): ... to here.
10410
10411 2011-05-21  Bruno Haible  <bruno@clisp.org>
10412
10413         select: Respect rules for use of AC_LIBOBJ.
10414         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
10415         here...
10416         * modules/select (configure.ac): ... to here.
10417
10418 2011-05-21  Bruno Haible  <bruno@clisp.org>
10419
10420         scandir: Move AC_LIBOBJ invocations to module description.
10421         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
10422         invocations from here...
10423         * modules/scandir (configure.ac): ... to here.
10424
10425 2011-05-21  Bruno Haible  <bruno@clisp.org>
10426
10427         rpmatch: Move AC_LIBOBJ invocations to module description.
10428         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
10429         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
10430         here...
10431         * modules/rpmatch (configure.ac): ... to here.
10432
10433 2011-05-21  Bruno Haible  <bruno@clisp.org>
10434
10435         rmdir: Respect rules for use of AC_LIBOBJ.
10436         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
10437         * modules/rmdir (configure.ac): ... to here.
10438
10439 2011-05-21  Bruno Haible  <bruno@clisp.org>
10440
10441         renameat: Move AC_LIBOBJ invocations to module description.
10442         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
10443         here...
10444         * modules/renameat (configure.ac): ... to here.
10445
10446 2011-05-21  Bruno Haible  <bruno@clisp.org>
10447
10448         rename: Respect rules for use of AC_LIBOBJ.
10449         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
10450         here...
10451         * modules/rename (configure.ac): ... to here.
10452
10453 2011-05-21  Bruno Haible  <bruno@clisp.org>
10454
10455         remove: Move AC_LIBOBJ invocations to module description.
10456         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
10457         here...
10458         * modules/remove (configure.ac): ... to here.
10459
10460 2011-05-21  Bruno Haible  <bruno@clisp.org>
10461
10462         relocatable-lib: Move AC_LIBOBJ invocations to module description.
10463         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
10464         macro.
10465         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
10466         * modules/relocatable-lib (configure.ac): ... to here.
10467         * modules/relocatable-prog-wrapper (configure.ac): Invoke
10468         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
10469
10470 2011-05-21  Bruno Haible  <bruno@clisp.org>
10471
10472         relocatable-prog: Move AC_LIBOBJ invocations to module description.
10473         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
10474         here...
10475         * modules/relocatable-prog (configure.ac): ... to here.
10476
10477 2011-05-21  Bruno Haible  <bruno@clisp.org>
10478
10479         regex: Move AC_LIBOBJ invocations to module description.
10480         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
10481         invocations from here...
10482         * modules/regex (configure.ac): ... to here.
10483
10484 2011-05-21  Bruno Haible  <bruno@clisp.org>
10485
10486         realloc-*: Move AC_LIBOBJ invocations to module description.
10487         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
10488         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
10489         AC_LIBOBJ invocations from here...
10490         * modules/realloc-gnu (configure.ac): ... to here.
10491         * modules/realloc-posix (configure.ac): ... and here.
10492
10493 2011-05-21  Bruno Haible  <bruno@clisp.org>
10494
10495         readutmp: Move AC_LIBOBJ invocations to module description.
10496         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
10497         * modules/readutmp (configure.ac): ... to here.
10498
10499 2011-05-21  Bruno Haible  <bruno@clisp.org>
10500
10501         readlinkat: Move AC_LIBOBJ invocations to module description.
10502         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
10503         here...
10504         * modules/readlinkat (configure.ac): ... to here.
10505
10506 2011-05-21  Bruno Haible  <bruno@clisp.org>
10507
10508         readlink: Move AC_LIBOBJ invocations to module description.
10509         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
10510         gl_PREREQ_READLINK invocations from here...
10511         * modules/readlink (configure.ac): ... to here.
10512
10513 2011-05-21  Bruno Haible  <bruno@clisp.org>
10514
10515         readline: Move AC_LIBOBJ invocations to module description.
10516         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
10517         gl_PREREQ_READLINE invocations from here...
10518         * modules/readline (configure.ac): ... to here.
10519
10520 2011-05-21  Bruno Haible  <bruno@clisp.org>
10521
10522         read: Move AC_LIBOBJ invocations to module description.
10523         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
10524         * modules/read (configure.ac): ... to here.
10525
10526 2011-05-21  Bruno Haible  <bruno@clisp.org>
10527
10528         rawmemchr: Move AC_LIBOBJ invocations to module description.
10529         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
10530         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
10531         from here...
10532         * modules/rawmemchr (configure.ac): ... to here.
10533
10534 2011-05-21  Bruno Haible  <bruno@clisp.org>
10535
10536         random_r: Move AC_LIBOBJ invocations to module description.
10537         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
10538         gl_PREREQ_RANDOM_R invocations from here...
10539         * modules/random_r (configure.ac): ... to here.
10540
10541 2011-05-21  Bruno Haible  <bruno@clisp.org>
10542
10543         pwrite: Move AC_LIBOBJ invocations to module description.
10544         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
10545         * modules/pwrite (configure.ac): ... to here.
10546
10547 2011-05-21  Bruno Haible  <bruno@clisp.org>
10548
10549         putenv: Move AC_LIBOBJ invocations to module description.
10550         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
10551         * modules/putenv (configure.ac): ... to here.
10552
10553 2011-05-21  Bruno Haible  <bruno@clisp.org>
10554
10555         login_tty: Move AC_LIBOBJ invocations to module description.
10556         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
10557         * modules/login_tty (configure.ac): ... to here.
10558
10559 2011-05-21  Bruno Haible  <bruno@clisp.org>
10560
10561         openpty: Move AC_LIBOBJ invocations to module description.
10562         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
10563         * modules/openpty (configure.ac): ... to here.
10564
10565 2011-05-21  Bruno Haible  <bruno@clisp.org>
10566
10567         forkpty: Move AC_LIBOBJ invocations to module description.
10568         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
10569         * modules/forkpty (configure.ac): ... to here.
10570
10571 2011-05-21  Bruno Haible  <bruno@clisp.org>
10572
10573         ptsname: Move AC_LIBOBJ invocations to module description.
10574         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
10575         invocations from here...
10576         * modules/ptsname (configure.ac): ... to here.
10577
10578 2011-05-21  Bruno Haible  <bruno@clisp.org>
10579
10580         pread: Move AC_LIBOBJ invocations to module description.
10581         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
10582         * modules/pread (configure.ac): ... to here.
10583
10584 2011-05-21  Bruno Haible  <bruno@clisp.org>
10585
10586         posix_spawn*: Move AC_LIBOBJ invocations to module description.
10587         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
10588         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
10589         * modules/posix_spawn (configure.ac): ... to here.
10590         * modules/posix_spawnp (configure.ac): ... and here.
10591
10592 2011-05-21  Bruno Haible  <bruno@clisp.org>
10593
10594         popen: Move AC_LIBOBJ invocations to module description.
10595         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
10596         invocations from here...
10597         * modules/popen (configure.ac): ... to here.
10598
10599 2011-05-21  Bruno Haible  <bruno@clisp.org>
10600
10601         poll: Move AC_LIBOBJ invocations to module description.
10602         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
10603         invocations from here...
10604         * modules/poll (configure.ac): ... to here.
10605
10606 2011-05-21  Bruno Haible  <bruno@clisp.org>
10607
10608         pipe-posix: Move AC_LIBOBJ invocations to module description.
10609         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
10610         * modules/pipe-posix (configure.ac): ... to here.
10611
10612 2011-05-21  Bruno Haible  <bruno@clisp.org>
10613
10614         openat: Respect rules for use of AC_LIBOBJ.
10615         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
10616         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
10617         * modules/openat (configure.ac): ... to here.
10618
10619 2011-05-21  Bruno Haible  <bruno@clisp.org>
10620
10621         obstack-printf*: Move AC_LIBOBJ invocations to module description.
10622         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
10623         invocation from here...
10624         * modules/obstack-printf (configure.ac): ... to here.
10625         * modules/obstack-printf-posix (configure.ac): ... and here.
10626
10627 2011-05-21  Bruno Haible  <bruno@clisp.org>
10628
10629         nl_langinfo: Move AC_LIBOBJ invocations to module description.
10630         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
10631         from here...
10632         * modules/nl_langinfo (configure.ac): ... to here.
10633
10634 2011-05-21  Bruno Haible  <bruno@clisp.org>
10635
10636         nanosleep: Move AC_LIBOBJ invocations to module description.
10637         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
10638         gl_PREREQ_NANOSLEEP invocations from here...
10639         * modules/nanosleep (configure.ac): ... to here.
10640
10641 2011-05-21  Bruno Haible  <bruno@clisp.org>
10642
10643         mountlist: Move AC_LIBOBJ invocations to module description.
10644         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
10645         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
10646         * modules/mountlist (configure.ac): ... to here.
10647
10648 2011-05-21  Bruno Haible  <bruno@clisp.org>
10649
10650         mktime: Respect rules for use of AC_LIBOBJ.
10651         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
10652         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
10653         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
10654         (gl_FUNC_MKTIME_INTERNAL): ... and here...
10655         * modules/mktime (configure.ac): ... to here.
10656         * modules/mktime-internal (configure.ac): ... and here.
10657         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
10658
10659 2011-05-21  Bruno Haible  <bruno@clisp.org>
10660
10661         mkstemps: Move AC_LIBOBJ invocations to module description.
10662         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
10663         here...
10664         * modules/mkstemps (configure.ac): ... to here.
10665
10666 2011-05-21  Bruno Haible  <bruno@clisp.org>
10667
10668         mkstemp: Move AC_LIBOBJ invocations to module description.
10669         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
10670         gl_PREREQ_MKSTEMP invocations from here...
10671         * modules/mkstemp (configure.ac): ... to here.
10672
10673 2011-05-21  Bruno Haible  <bruno@clisp.org>
10674
10675         mkostemps: Move AC_LIBOBJ invocations to module description.
10676         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
10677         here...
10678         * modules/mkostemps (configure.ac): ... to here.
10679
10680 2011-05-21  Bruno Haible  <bruno@clisp.org>
10681
10682         mkostemp: Move AC_LIBOBJ invocations to module description.
10683         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
10684         gl_PREREQ_MKOSTEMP invocations from here...
10685         * modules/mkostemp (configure.ac): ... to here.
10686
10687 2011-05-21  Bruno Haible  <bruno@clisp.org>
10688
10689         mknod: Move AC_LIBOBJ invocations to module description.
10690         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
10691         * modules/mknod (configure.ac): ... to here.
10692
10693 2011-05-21  Bruno Haible  <bruno@clisp.org>
10694
10695         mkfifoat: Move AC_LIBOBJ invocations to module description.
10696         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
10697         here...
10698         * modules/mkfifoat (configure.ac): ... to here.
10699
10700 2011-05-21  Bruno Haible  <bruno@clisp.org>
10701
10702         mkfifo: Respect rules for use of AC_LIBOBJ.
10703         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
10704         here...
10705         * modules/mkfifo (configure.ac): ... to here.
10706
10707 2011-05-21  Bruno Haible  <bruno@clisp.org>
10708
10709         mkdtemp: Move AC_LIBOBJ invocations to module description.
10710         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
10711         invocations from here...
10712         * modules/mkdtemp (configure.ac): ... to here.
10713
10714 2011-05-21  Bruno Haible  <bruno@clisp.org>
10715
10716         mkdir: Move AC_LIBOBJ invocations to module description.
10717         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
10718         * modules/mkdir (configure.ac): ... to here.
10719
10720 2011-05-21  Bruno Haible  <bruno@clisp.org>
10721
10722         memset: Move AC_LIBOBJ invocations to module description.
10723         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
10724         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
10725         here...
10726         * modules/memset (configure.ac): ... to here.
10727
10728 2011-05-21  Bruno Haible  <bruno@clisp.org>
10729
10730         memrchr: Move AC_LIBOBJ invocations to module description.
10731         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
10732         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
10733         here...
10734         * modules/memrchr (configure.ac): ... to here.
10735
10736 2011-05-21  Bruno Haible  <bruno@clisp.org>
10737
10738         mempcpy: Move AC_LIBOBJ invocations to module description.
10739         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
10740         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
10741         here...
10742         * modules/mempcpy (configure.ac): ... to here.
10743
10744 2011-05-21  Bruno Haible  <bruno@clisp.org>
10745
10746         memmove: Move AC_LIBOBJ invocations to module description.
10747         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
10748         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
10749         here...
10750         * modules/memmove (configure.ac): ... to here.
10751
10752 2011-05-21  Bruno Haible  <bruno@clisp.org>
10753
10754         memmem*: Move AC_LIBOBJ invocations to module description.
10755         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
10756         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
10757         here...
10758         (gl_FUNC_MEMMEM): ... and here...
10759         * modules/memmem-simple (configure.ac): ... to here.
10760         * modules/memmem (configure.ac): ... and here.
10761
10762 2011-05-21  Bruno Haible  <bruno@clisp.org>
10763
10764         memcpy: Move AC_LIBOBJ invocations to module description.
10765         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
10766         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
10767         here...
10768         * modules/memcpy (configure.ac): ... to here.
10769
10770 2011-05-21  Bruno Haible  <bruno@clisp.org>
10771
10772         memcmp: Simplify autoconf macro.
10773         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
10774         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
10775         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
10776
10777 2011-05-21  Bruno Haible  <bruno@clisp.org>
10778
10779         memcmp: Move AC_LIBOBJ invocations to module description.
10780         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
10781         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
10782         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
10783         * modules/memcmp (configure.ac): ... to here.
10784         (Depends-on): Update conditions.
10785
10786 2011-05-21  Bruno Haible  <bruno@clisp.org>
10787
10788         memchr: Respect rules for use of AC_LIBOBJ.
10789         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
10790         invocations from here...
10791         * modules/memchr (configure.ac): ... to here.
10792
10793 2011-05-21  Bruno Haible  <bruno@clisp.org>
10794
10795         mbtowc: Move AC_LIBOBJ invocations to module description.
10796         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
10797         invocations from here...
10798         * modules/mbtowc (configure.ac): ... to here.
10799
10800 2011-05-21  Bruno Haible  <bruno@clisp.org>
10801
10802         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
10803         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
10804         gl_PREREQ_MBSRTOWCS invocations from here...
10805         * modules/mbsrtowcs (configure.ac): ... to here.
10806
10807 2011-05-21  Bruno Haible  <bruno@clisp.org>
10808
10809         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
10810         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
10811         gl_PREREQ_MBSNRTOWCS invocations from here...
10812         * modules/mbsnrtowcs (configure.ac): ... to here.
10813
10814 2011-05-21  Bruno Haible  <bruno@clisp.org>
10815
10816         mbsinit: Move AC_LIBOBJ invocations to module description.
10817         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
10818         invocations from here...
10819         * modules/mbsinit (configure.ac): ... to here.
10820
10821 2011-05-21  Bruno Haible  <bruno@clisp.org>
10822
10823         mbrlen: Move AC_LIBOBJ invocations to module description.
10824         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
10825         invocations from here...
10826         * modules/mbrlen (configure.ac): ... to here.
10827
10828 2011-05-21  Bruno Haible  <bruno@clisp.org>
10829
10830         mbrtowc: Respect rules for use of AC_LIBOBJ.
10831         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
10832         invocations from here...
10833         * modules/mbrtowc (configure.ac): ... to here.
10834
10835 2011-05-21  Bruno Haible  <bruno@clisp.org>
10836
10837         malloc-*: Move AC_LIBOBJ invocations to module description.
10838         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
10839         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
10840         AC_LIBOBJ invocations from here...
10841         * modules/malloc-gnu (configure.ac): ... to here.
10842         * modules/malloc-posix (configure.ac): ... and here.
10843
10844 2011-05-21  Bruno Haible  <bruno@clisp.org>
10845
10846         lstat, openat: Respect rules for use of AC_LIBOBJ.
10847         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
10848         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
10849         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
10850         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
10851         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
10852         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
10853         here.
10854         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
10855
10856 2011-05-21  Bruno Haible  <bruno@clisp.org>
10857
10858         lseek: Move AC_LIBOBJ invocations to module description.
10859         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
10860         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10861         * modules/lseek (configure.ac): ... to here.
10862
10863 2011-05-21  Bruno Haible  <bruno@clisp.org>
10864
10865         linkat: Move AC_LIBOBJ invocations to module description.
10866         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
10867         here...
10868         * modules/linkat (configure.ac): ... to here.
10869
10870 2011-05-21  Bruno Haible  <bruno@clisp.org>
10871
10872         link: Respect rules for use of AC_LIBOBJ.
10873         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
10874         * modules/link (configure.ac): ... to here.
10875
10876 2011-05-21  Bruno Haible  <bruno@clisp.org>
10877
10878         lchown: Move AC_LIBOBJ invocations to module description.
10879         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10880         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
10881         * modules/lchown (configure.ac): ... to here.
10882
10883 2011-05-21  Bruno Haible  <bruno@clisp.org>
10884
10885         iswctype: Move AC_LIBOBJ invocations to module description.
10886         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
10887         here...
10888         * modules/iswctype (configure.ac): ... to here.
10889
10890 2011-05-21  Bruno Haible  <bruno@clisp.org>
10891
10892         iswblank: Move AC_LIBOBJ invocations to module description.
10893         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
10894         here...
10895         * modules/iswblank (configure.ac): ... to here.
10896
10897 2011-05-21  Bruno Haible  <bruno@clisp.org>
10898
10899         atanl: Move AC_LIBOBJ invocations to module description.
10900         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
10901         * modules/atanl (configure.ac): ... to here.
10902
10903 2011-05-21  Bruno Haible  <bruno@clisp.org>
10904
10905         acosl: Move AC_LIBOBJ invocations to module description.
10906         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
10907         * modules/acosl (configure.ac): ... to here.
10908
10909 2011-05-21  Bruno Haible  <bruno@clisp.org>
10910
10911         asinl: Respect rules for use of AC_LIBOBJ.
10912         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
10913         * modules/asinl (configure.ac): ... to here.
10914
10915 2011-05-21  Bruno Haible  <bruno@clisp.org>
10916
10917         tanl: Move AC_LIBOBJ invocations to module description.
10918         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
10919         * modules/tanl (configure.ac): ... to here.
10920
10921 2011-05-21  Bruno Haible  <bruno@clisp.org>
10922
10923         cosl: Move AC_LIBOBJ invocations to module description.
10924         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
10925         * modules/cosl (configure.ac): ... to here.
10926
10927 2011-05-21  Bruno Haible  <bruno@clisp.org>
10928
10929         sinl: Move AC_LIBOBJ invocations to module description.
10930         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
10931         * modules/sinl (configure.ac): ... to here.
10932
10933 2011-05-21  Bruno Haible  <bruno@clisp.org>
10934
10935         logl: Move AC_LIBOBJ invocations to module description.
10936         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
10937         * modules/logl (configure.ac): ... to here.
10938
10939 2011-05-21  Bruno Haible  <bruno@clisp.org>
10940
10941         expl: Move AC_LIBOBJ invocations to module description.
10942         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
10943         * modules/expl (configure.ac): ... to here.
10944
10945 2011-05-21  Bruno Haible  <bruno@clisp.org>
10946
10947         roundl: Move AC_LIBOBJ invocations to module description.
10948         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
10949         * modules/roundl (configure.ac): ... to here.
10950
10951 2011-05-21  Bruno Haible  <bruno@clisp.org>
10952
10953         round: Move AC_LIBOBJ invocations to module description.
10954         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
10955         * modules/round (configure.ac): ... to here.
10956
10957 2011-05-21  Bruno Haible  <bruno@clisp.org>
10958
10959         roundf: Move AC_LIBOBJ invocations to module description.
10960         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
10961         * modules/roundf (configure.ac): ... to here.
10962
10963 2011-05-21  Bruno Haible  <bruno@clisp.org>
10964
10965         truncl: Move AC_LIBOBJ invocations to module description.
10966         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
10967         * modules/truncl (configure.ac): ... to here.
10968
10969 2011-05-21  Bruno Haible  <bruno@clisp.org>
10970
10971         trunc: Move AC_LIBOBJ invocations to module description.
10972         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
10973         * modules/trunc (configure.ac): ... to here.
10974
10975 2011-05-21  Bruno Haible  <bruno@clisp.org>
10976
10977         truncf: Move AC_LIBOBJ invocations to module description.
10978         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
10979         * modules/truncf (configure.ac): ... to here.
10980
10981 2011-05-21  Bruno Haible  <bruno@clisp.org>
10982
10983         ceill: Move AC_LIBOBJ invocations to module description.
10984         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
10985         * modules/ceill (configure.ac): ... to here.
10986
10987 2011-05-21  Bruno Haible  <bruno@clisp.org>
10988
10989         ceil: Move AC_LIBOBJ invocations to module description.
10990         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
10991         * modules/ceil (configure.ac): ... to here.
10992
10993 2011-05-21  Bruno Haible  <bruno@clisp.org>
10994
10995         ceilf: Move AC_LIBOBJ invocations to module description.
10996         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
10997         * modules/ceilf (configure.ac): ... to here.
10998
10999 2011-05-21  Bruno Haible  <bruno@clisp.org>
11000
11001         floorl: Respect rules for use of AC_LIBOBJ.
11002         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
11003         * modules/floorl (configure.ac): ... to here.
11004
11005 2011-05-21  Bruno Haible  <bruno@clisp.org>
11006
11007         floor: Respect rules for use of AC_LIBOBJ.
11008         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
11009         * modules/floor (configure.ac): ... to here.
11010
11011 2011-05-21  Bruno Haible  <bruno@clisp.org>
11012
11013         floorf: Move AC_LIBOBJ invocations to module description.
11014         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
11015         * modules/floorf (configure.ac): ... to here.
11016
11017 2011-05-20  Bruno Haible  <bruno@clisp.org>
11018
11019         sqrtl: Respect rules for use of AC_LIBOBJ.
11020         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
11021         * modules/sqrtl (configure.ac): ... to here.
11022
11023 2011-05-20  Bruno Haible  <bruno@clisp.org>
11024
11025         ldexpl: Respect rules for use of AC_LIBOBJ.
11026         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
11027         * modules/ldexpl (configure.ac): ... to here.
11028
11029 2011-05-20  Bruno Haible  <bruno@clisp.org>
11030
11031         frexpl*: Respect rules for use of AC_LIBOBJ.
11032         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
11033         invocation from here...
11034         * modules/frexpl (configure.ac): ... to here.
11035         * modules/frexpl-nolibm (configure.ac): ... and here.
11036
11037 2011-05-20  Bruno Haible  <bruno@clisp.org>
11038
11039         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
11040         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
11041         invocation from here...
11042         * modules/frexp (configure.ac): ... to here.
11043         * modules/frexp-nolibm (configure.ac): ... and here.
11044
11045 2011-05-20  Bruno Haible  <bruno@clisp.org>
11046
11047         isnan: Respect rules for use of AC_LIBOBJ.
11048         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
11049         invocations here.
11050         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
11051         REPLACE_ISNAN.
11052         * modules/isnand (configure.ac): Likewise.
11053         * modules/isnanl (configure.ac): Likewise.
11054
11055 2011-05-20  Bruno Haible  <bruno@clisp.org>
11056
11057         isnanl*: Respect rules for use of AC_LIBOBJ.
11058         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
11059         invocation from here...
11060         * modules/isnanl (configure.ac): ... to here.
11061         * modules/isnanl-nolibm (configure.ac): ... and here.
11062
11063 2011-05-20  Bruno Haible  <bruno@clisp.org>
11064
11065         isnand*: Move AC_LIBOBJ invocations to module description.
11066         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
11067         invocation from here...
11068         * modules/isnand (configure.ac): ... to here.
11069         * modules/isnand-nolibm (configure.ac): ... and here.
11070
11071 2011-05-20  Bruno Haible  <bruno@clisp.org>
11072
11073         isnanf*: Move AC_LIBOBJ invocations to module description.
11074         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
11075         invocation from here...
11076         * modules/isnanf (configure.ac): ... to here.
11077         * modules/isnanf-nolibm (configure.ac): ... and here.
11078
11079 2011-05-20  Bruno Haible  <bruno@clisp.org>
11080
11081         isnan*: Separate the AC_LIBOBJ invocations.
11082         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
11083         AC_LIBOBJ invocation.
11084         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
11085         here.
11086         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
11087         AC_LIBOBJ invocation.
11088         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
11089         here.
11090         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
11091         AC_LIBOBJ invocation.
11092         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
11093         here.
11094         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
11095
11096 2011-05-08  Bruno Haible  <bruno@clisp.org>
11097
11098         isinf: Move AC_LIBOBJ invocations to module description.
11099         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
11100         * modules/isinf (configure.ac): ... to here.
11101
11102 2011-05-08  Bruno Haible  <bruno@clisp.org>
11103
11104         isfinite: Move AC_LIBOBJ invocations to module description.
11105         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
11106         * modules/isfinite (configure.ac): ... to here.
11107
11108 2011-05-08  Bruno Haible  <bruno@clisp.org>
11109
11110         isblank: Move AC_LIBOBJ invocations to module description.
11111         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
11112         here...
11113         * modules/isblank (configure.ac): ... to here.
11114
11115 2011-05-08  Bruno Haible  <bruno@clisp.org>
11116
11117         isapipe: Move AC_LIBOBJ invocations to module description.
11118         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
11119         gl_PREREQ_ISAPIPE invocations from here...
11120         * modules/isapipe (configure.ac): ... to here.
11121         (Depends-on): Update condition.
11122
11123 2011-05-08  Bruno Haible  <bruno@clisp.org>
11124
11125         ioctl: Move AC_LIBOBJ invocations to module description.
11126         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
11127         invocations from here...
11128         * modules/ioctl (configure.ac): ... to here.
11129         (Depends-on): Update condition.
11130
11131 2011-05-08  Bruno Haible  <bruno@clisp.org>
11132
11133         imaxdiv: Move AC_LIBOBJ invocations to module description.
11134         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
11135         invocations from here...
11136         * modules/imaxdiv (configure.ac): ... to here.
11137
11138 2011-05-08  Bruno Haible  <bruno@clisp.org>
11139
11140         imaxabs: Move AC_LIBOBJ invocations to module description.
11141         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
11142         invocations from here...
11143         * modules/imaxabs (configure.ac): ... to here.
11144
11145 2011-05-08  Bruno Haible  <bruno@clisp.org>
11146
11147         getaddrinfo: Move AC_LIBOBJ invocations to module description.
11148         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
11149         AC_LIBOBJ invocations from here...
11150         * modules/getaddrinfo (configure.ac): ... to here.
11151         (Depends-on): Add conditions.
11152
11153 2011-05-08  Bruno Haible  <bruno@clisp.org>
11154
11155         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
11156         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
11157         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
11158         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
11159         (gl_PREREQ_INET_PTON): ... from here.
11160         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
11161         gl_PREREQ_INET_PTON here.
11162         (Depends-on): Update condition.
11163
11164 2011-05-08  Bruno Haible  <bruno@clisp.org>
11165
11166         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
11167         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
11168         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
11169         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
11170         (gl_PREREQ_INET_NTOP): ... from here.
11171         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
11172         gl_PREREQ_INET_NTOP here.
11173         (Depends-on): Update condition.
11174
11175 2011-05-08  Bruno Haible  <bruno@clisp.org>
11176
11177         iconv_open: Move AC_LIBOBJ invocations to module description.
11178         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
11179         AC_LIBOBJ invocations from here...
11180         * modules/iconv_open (configure.ac): ... to here.
11181
11182 2011-05-08  Bruno Haible  <bruno@clisp.org>
11183
11184         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
11185         If module 'iconv_open' is among the main modules and module
11186         'iconv_open-utf' is among the tests dependencies, then
11187         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
11188         return the special iconv_t values. Therefore iconv() and iconv_close()
11189         must support these special iconv_t values, already in lib, not only in
11190         tests.
11191         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
11192         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
11193         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
11194         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
11195         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
11196         (Depends-on): Add the dependencies of iconv_open-utf.
11197         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
11198         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
11199         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
11200
11201 2011-05-08  Bruno Haible  <bruno@clisp.org>
11202
11203         group-member: Move AC_LIBOBJ invocations to module description.
11204         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
11205         gl_PREREQ_GROUP_MEMBER invocations from here...
11206         * modules/group-member (configure.ac): ... to here.
11207
11208 2011-05-08  Bruno Haible  <bruno@clisp.org>
11209
11210         grantpt: Move AC_LIBOBJ invocations to module description.
11211         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
11212         invocations from here...
11213         * modules/grantpt (configure.ac): ... to here.
11214
11215 2011-05-08  Bruno Haible  <bruno@clisp.org>
11216
11217         glob: Move AC_LIBOBJ invocations to module description.
11218         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
11219         from here...
11220         * modules/glob (configure.ac): ... to here.
11221
11222 2011-05-08  Bruno Haible  <bruno@clisp.org>
11223
11224         getusershell: Move AC_LIBOBJ invocations to module description.
11225         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
11226         Move AC_LIBOBJ invocation from here...
11227         * modules/getusershell (configure.ac): ... to here.
11228         (Depends-on): Update condition.
11229
11230 2011-05-08  Bruno Haible  <bruno@clisp.org>
11231
11232         gettimeofday: Move AC_LIBOBJ invocations to module description.
11233         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
11234         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
11235         gl_PREREQ_GETTIMEOFDAY invocations from here...
11236         * modules/gettimeofday (configure.ac): ... to here.
11237
11238 2011-05-08  Bruno Haible  <bruno@clisp.org>
11239
11240         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
11241         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
11242         just gl_FUNC_TZSET.
11243         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
11244         (gl_FUNC_TZSET_CLOBBER): Remove actions.
11245         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
11246         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
11247
11248 2011-05-08  Bruno Haible  <bruno@clisp.org>
11249
11250         getsubopt: Move AC_LIBOBJ invocations to module description.
11251         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
11252         gl_PREREQ_GETSUBOPT invocations from here...
11253         * modules/getsubopt (configure.ac): ... to here.
11254
11255 2011-05-08  Bruno Haible  <bruno@clisp.org>
11256
11257         getpass-gnu: Move AC_LIBOBJ invocations to module description.
11258         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
11259         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
11260         * modules/getpass-gnu (configure.ac): ... to here.
11261
11262 2011-05-08  Bruno Haible  <bruno@clisp.org>
11263
11264         getpass: Move AC_LIBOBJ invocations to module description.
11265         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
11266         gl_PREREQ_GETPASS invocations from here...
11267         * modules/getpass (configure.ac): ... to here.
11268
11269 2011-05-08  Bruno Haible  <bruno@clisp.org>
11270
11271         getpagesize: Move AC_LIBOBJ invocations to module description.
11272         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
11273         from here...
11274         * modules/getpagesize (configure.ac): ... to here.
11275
11276 2011-05-08  Bruno Haible  <bruno@clisp.org>
11277
11278         getopt: Move AC_LIBOBJ invocations to module description.
11279         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
11280         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
11281         invocations from here...
11282         * modules/getopt-gnu (configure.ac): ... to here.
11283         * modules/getopt-posix (configure.ac): ... and here.
11284         (Depends-on): Update condition.
11285
11286 2011-05-08  Bruno Haible  <bruno@clisp.org>
11287
11288         getopt, argp: Respect rules for use of AC_LIBOBJ.
11289         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
11290         (gl_REPLACE_GETOPT_ALWAYS): New macro.
11291         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
11292         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
11293
11294 2011-05-08  Bruno Haible  <bruno@clisp.org>
11295
11296         getlogin_r: Move AC_LIBOBJ invocations to module description.
11297         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
11298         gl_PREREQ_GETLOGIN_R invocations from here...
11299         * modules/getlogin_r (configure.ac): ... to here.
11300
11301 2011-05-08  Bruno Haible  <bruno@clisp.org>
11302
11303         getlogin: Move AC_LIBOBJ invocations to module description.
11304         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
11305         here...
11306         * modules/getlogin (configure.ac): ... to here.
11307
11308 2011-05-08  Bruno Haible  <bruno@clisp.org>
11309
11310         getloadavg: Move AC_LIBOBJ invocations to module description.
11311         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
11312         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
11313         * modules/getloadavg (configure.ac): ... to here.
11314
11315 2011-05-08  Bruno Haible  <bruno@clisp.org>
11316
11317         gethrxtime: Move AC_LIBOBJ invocations to module description.
11318         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
11319         LIB_GETHRXTIME from here...
11320         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
11321         invocations from here...
11322         * modules/gethrxtime (configure.ac): ... to here.
11323
11324 2011-05-08  Bruno Haible  <bruno@clisp.org>
11325
11326         gethostname: Move AC_LIBOBJ invocations to module description.
11327         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
11328         gl_PREREQ_GETHOSTNAME invocations from here...
11329         * modules/gethostname (configure.ac): ... to here.
11330
11331 2011-05-08  Bruno Haible  <bruno@clisp.org>
11332
11333         getgroups: Move AC_LIBOBJ invocations to module description.
11334         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
11335         here...
11336         * modules/getgroups (configure.ac): ... to here.
11337
11338 2011-05-08  Bruno Haible  <bruno@clisp.org>
11339
11340         getdtablesize: Move AC_LIBOBJ invocations to module description.
11341         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
11342         invocation from here...
11343         * modules/getdtablesize (configure.ac): ... to here.
11344
11345 2011-05-08  Bruno Haible  <bruno@clisp.org>
11346
11347         getdomainname: Move AC_LIBOBJ invocations to module description.
11348         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
11349         gl_PREREQ_GETDOMAINNAME invocations from here...
11350         * modules/getdomainname (configure.ac): ... to here.
11351
11352 2011-05-08  Bruno Haible  <bruno@clisp.org>
11353
11354         getline: Move AC_LIBOBJ invocations to module description.
11355         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
11356         invocations from here...
11357         * modules/getline (configure.ac): ... to here.
11358
11359 2011-05-08  Bruno Haible  <bruno@clisp.org>
11360
11361         getline: Simplify.
11362         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
11363         It's already handled through the module dependency.
11364
11365 2011-05-08  Bruno Haible  <bruno@clisp.org>
11366
11367         getdelim: Move AC_LIBOBJ invocations to module description.
11368         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
11369         and gl_PREREQ_GETDELIM invocations from here...
11370         * modules/getdelim (configure.ac): ... to here.
11371         (Depends-on): Fix condition.
11372
11373 2011-05-08  Bruno Haible  <bruno@clisp.org>
11374
11375         getcwd: Move AC_LIBOBJ invocations to module description.
11376         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
11377         invocations from here...
11378         * modules/getcwd (configure.ac): ... to here.
11379
11380 2011-05-08  Bruno Haible  <bruno@clisp.org>
11381
11382         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
11383         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
11384         here...
11385         * modules/getcwd-lgpl (configure.ac): ... to here.
11386
11387 2011-05-07  Bruno Haible  <bruno@clisp.org>
11388
11389         crypto/gc: Move AC_LIBOBJ invocations to module description.
11390         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
11391         * modules/crypto/gc (configure.ac): ... to here.
11392
11393 2011-05-07  Bruno Haible  <bruno@clisp.org>
11394
11395         fwriting: Move AC_LIBOBJ invocations to module description.
11396         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
11397         here...
11398         * modules/fwriting (configure.ac): ... to here.
11399
11400 2011-05-07  Bruno Haible  <bruno@clisp.org>
11401
11402         fwritable: Move AC_LIBOBJ invocations to module description.
11403         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
11404         here...
11405         * modules/fwritable (configure.ac): ... to here.
11406
11407 2011-05-07  Bruno Haible  <bruno@clisp.org>
11408
11409         futimens: Move AC_LIBOBJ invocations to module description.
11410         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
11411         here...
11412         * modules/futimens (configure.ac): ... to here.
11413
11414 2011-05-07  Bruno Haible  <bruno@clisp.org>
11415
11416         ftruncate: Move AC_LIBOBJ invocations to module description.
11417         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
11418         gl_PREREQ_FTRUNCATE invocations from here...
11419         * modules/ftruncate (configure.ac): ... to here.
11420
11421 2011-05-07  Bruno Haible  <bruno@clisp.org>
11422
11423         fsync: Move AC_LIBOBJ invocations to module description.
11424         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
11425         invocations from here...
11426         * modules/fsync (configure.ac): ... to here.
11427
11428 2011-05-07  Bruno Haible  <bruno@clisp.org>
11429
11430         fsusage: Move AC_LIBOBJ invocations to module description.
11431         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
11432         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
11433         * modules/fsusage (configure.ac): ... to here.
11434
11435 2011-05-07  Bruno Haible  <bruno@clisp.org>
11436
11437         freopen: Move AC_LIBOBJ invocations to module description.
11438         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
11439         invocations from here...
11440         * modules/freopen (configure.ac): ... to here.
11441
11442 2011-05-07  Bruno Haible  <bruno@clisp.org>
11443
11444         free: Move AC_LIBOBJ invocations to module description.
11445         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
11446         invocations from here...
11447         * modules/free (configure.ac): ... to here.
11448
11449 2011-05-07  Bruno Haible  <bruno@clisp.org>
11450
11451         freadable: Move AC_LIBOBJ invocations to module description.
11452         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
11453         here...
11454         * modules/freadable (configure.ac): ... to here.
11455
11456 2011-05-07  Bruno Haible  <bruno@clisp.org>
11457
11458         fpurge: Move AC_LIBOBJ invocations to module description.
11459         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
11460         invocations from here...
11461         * modules/fpurge (configure.ac): ... to here.
11462
11463 2011-05-07  Bruno Haible  <bruno@clisp.org>
11464
11465         fpending: Move AC_LIBOBJ invocations to module description.
11466         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
11467         gl_FUNC_FPENDING.
11468         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
11469         invocations from here...
11470         * modules/fpending (configure.ac): ... to here.
11471
11472 2011-05-07  Bruno Haible  <bruno@clisp.org>
11473
11474         fopen: Move AC_LIBOBJ invocations to module description.
11475         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
11476         invocations from here...
11477         * modules/fopen (configure.ac): ... to here.
11478
11479 2011-05-07  Bruno Haible  <bruno@clisp.org>
11480
11481         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
11482         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
11483         gl_FUNC_FNMATCH_POSIX.
11484         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
11485         invocations from here...
11486         * modules/fnmatch (configure.ac): ... to here.
11487         * modules/fnmatch-gnu (configure.ac): ... and here.
11488
11489 2011-05-07  Bruno Haible  <bruno@clisp.org>
11490
11491         flock: Move AC_LIBOBJ invocations to module description.
11492         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
11493         invocations from here...
11494         * modules/flock (configure.ac): ... to here.
11495
11496 2011-05-07  Bruno Haible  <bruno@clisp.org>
11497
11498         fileblocks: Move AC_LIBOBJ invocations to module description.
11499         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
11500         gl_PREREQ_FILEBLOCKS invocations from here...
11501         * modules/fileblocks (configure.ac): ... to here.
11502
11503 2011-05-06  Bruno Haible  <bruno@clisp.org>
11504
11505         fflush: Move AC_LIBOBJ invocations to module description.
11506         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
11507         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
11508         invocations from here...
11509         * modules/fflush (configure.ac): ... to here.
11510
11511 2011-05-06  Bruno Haible  <bruno@clisp.org>
11512
11513         fdopendir: Move AC_LIBOBJ invocations to module description.
11514         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
11515         here...
11516         * modules/fdopendir (configure.ac): ... to here.
11517         (Depends-on): Improve conditions.
11518
11519 2011-05-06  Bruno Haible  <bruno@clisp.org>
11520
11521         _Exit: Move AC_LIBOBJ invocations to module description.
11522         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
11523         invocations from here...
11524         * modules/_Exit (configure.ac): ... to here.
11525
11526 2011-05-21  Bruno Haible  <bruno@clisp.org>
11527
11528         euidaccess: Respect rules for use of AC_LIBOBJ.
11529         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
11530         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
11531         from here...
11532         * modules/euidaccess (configure.ac): ... to here.
11533
11534 2011-05-06  Bruno Haible  <bruno@clisp.org>
11535
11536         error: Move AC_LIBOBJ invocations to module description.
11537         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
11538         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
11539         invocations from here...
11540         * modules/error (configure.ac): ... to here.
11541
11542 2011-05-06  Bruno Haible  <bruno@clisp.org>
11543
11544         duplocale: Move AC_LIBOBJ invocations to module description.
11545         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
11546         gl_PREREQ_DUPLOCALE invocations from here...
11547         * modules/duplocale (configure.ac): ... to here.
11548
11549 2011-05-05  Bruno Haible  <bruno@clisp.org>
11550
11551         dirfd: Move AC_LIBOBJ invocations to module description.
11552         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
11553         gl_FUNC_DIRFD.
11554         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
11555         here...
11556         * modules/dirfd (configure.ac): ... to here.
11557         (Depends-on): Fix condition.
11558
11559 2011-05-05  Bruno Haible  <bruno@clisp.org>
11560
11561         chown: Respect rules for use of AC_LIBOBJ.
11562         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
11563         * modules/chown (configure.ac): ... to here.
11564
11565 2011-05-05  Bruno Haible  <bruno@clisp.org>
11566
11567         chdir-long: Move AC_LIBOBJ invocations to module description.
11568         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
11569         gl_PREREQ_CHDIR_LONG invocations from here...
11570         * modules/chdir-long (configure.ac): ... to here.
11571
11572 2011-05-05  Bruno Haible  <bruno@clisp.org>
11573
11574         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
11575         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
11576         from here...
11577         * modules/canonicalize-lgpl (configure.ac): ... to here.
11578
11579 2011-05-05  Bruno Haible  <bruno@clisp.org>
11580
11581         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
11582         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
11583         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
11584         REPLACE_CALLOC.
11585         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
11586         * modules/calloc-gnu (configure.ac): Likewise.
11587
11588 2011-05-05  Bruno Haible  <bruno@clisp.org>
11589
11590         btowc: Move AC_LIBOBJ invocations to module description.
11591         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
11592         invocations from here...
11593         * modules/btowc (configure.ac): ... to here.
11594
11595 2011-05-21  Bruno Haible  <bruno@clisp.org>
11596
11597         atexit: Move AC_LIBOBJ invocations to module description.
11598         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
11599         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
11600         here...
11601         * modules/atexit (configure.ac): ... to here.
11602
11603 2011-05-05  Bruno Haible  <bruno@clisp.org>
11604
11605         atoll: Move AC_LIBOBJ invocations to module description.
11606         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
11607         invocations from here...
11608         * modules/atoll (configure.ac): ... to here.
11609
11610 2011-05-05  Bruno Haible  <bruno@clisp.org>
11611
11612         argz: Move AC_LIBOBJ invocations to module description.
11613         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
11614         * modules/argz (configure.ac): ... to here.
11615
11616 2011-05-05  Bruno Haible  <bruno@clisp.org>
11617
11618         alphasort: Move AC_LIBOBJ invocations to module description.
11619         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
11620         gl_PREREQ_ALPHASORT invocations from here...
11621         * modules/alphasort (configure.ac): ... to here.
11622
11623 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
11624
11625         verify: new macro verify_expr; verify_true deprecated
11626         * NEWS: Mention this.
11627         * doc/verify.texi (Compile-time Assertions): Document this.
11628         * lib/verify.h (verify_true): Deprecate.
11629         (verify_expr): New macro.
11630         * tests/test-verify.c (function): Test verify_expr.
11631
11632 2011-06-14  Jim Meyering  <meyering@redhat.com>
11633
11634         init.sh: give more portable redirection-related advice in a comment
11635         * tests/init.sh (stderr_fileno_): Update the advice in comments.
11636         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
11637         for lots of discussion.  Stefano Lattarini suggested the solution
11638         of putting "9>&2" after the command.  Reported by Bruno Haible.
11639
11640 2011-06-13  Bruno Haible  <bruno@clisp.org>
11641
11642         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
11643         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
11644         'none'.
11645
11646 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
11647
11648         ftoastr: use strtof only if HAVE_STRTOF
11649         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
11650         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
11651         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
11652         * modules/ftoastr (configure.ac): Check for strtof.
11653
11654 2011-06-13  Bruno Haible  <bruno@clisp.org>
11655
11656         gnulib-tool: Addendum to 2011-06-08 commit.
11657         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
11658         and --witness-c-macro have been given, augment AM_CPPFLAGS.
11659
11660 2011-06-13  Bruno Haible  <bruno@clisp.org>
11661
11662         fseeko: Provide a non-inline replacement of fseek().
11663         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
11664         * modules/fseeko (Depends-on): Add fseek.
11665         * modules/fseek (License): Change to LGPLv2+.
11666
11667 2011-06-13  Bruno Haible  <bruno@clisp.org>
11668
11669         ftello: Provide a non-inline replacement of ftell().
11670         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
11671         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
11672         not have ftello() (such as on mingw).
11673         * modules/ftello (Depends-on): Add ftell.
11674         * modules/ftell (License): Change to LGPLv2+.
11675
11676 2011-05-07  Bruno Haible  <bruno@clisp.org>
11677
11678         ftell: Move AC_LIBOBJ invocations to module description.
11679         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
11680         * modules/ftell (configure.ac): ... to here.
11681
11682 2011-05-07  Bruno Haible  <bruno@clisp.org>
11683
11684         ftello: Respect rules for use of AC_LIBOBJ.
11685         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
11686         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
11687         here...
11688         * modules/ftello (configure.ac): ... to here.
11689
11690 2011-05-07  Bruno Haible  <bruno@clisp.org>
11691
11692         fseeko: Simplify.
11693         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
11694         (gl_FUNC_FSEEKO): Inline it here.
11695
11696 2011-05-07  Bruno Haible  <bruno@clisp.org>
11697
11698         fseek: Move AC_LIBOBJ invocations to module description.
11699         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
11700         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
11701         * modules/fseek (configure.ac): ... to here.
11702
11703 2011-05-07  Bruno Haible  <bruno@clisp.org>
11704
11705         fseek: Respect rules for use of AC_LIBOBJ.
11706         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
11707         here...
11708         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
11709
11710 2011-05-07  Bruno Haible  <bruno@clisp.org>
11711
11712         fseeko: Respect rules for use of AC_LIBOBJ.
11713         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
11714         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
11715         here...
11716         * modules/fseeko (configure.ac): ... to here.
11717
11718 2011-06-13  Bruno Haible  <bruno@clisp.org>
11719
11720         gnulib-tool: Allow comments in the 'Depends-on' section.
11721         * doc/gnulib.texi (Module description): Mention comment syntax in the
11722         Depends-on section.
11723         * gnulib-tool (func_get_dependencies): Filter out comment lines.
11724
11725 2011-06-13  Bruno Haible  <bruno@clisp.org>
11726
11727         file-set.h: guard __attibute__ use, now that it's not always defined
11728         * lib/file-set.h (record_file): Use __attribute__ only with compiler
11729         versions that support it.  This fixes a coreutils build failure with
11730         the vendor cc on HP-UX 11.31.
11731
11732 2011-06-12  Bruno Haible  <bruno@clisp.org>
11733
11734         acl: Add support for HP-UX >= 11.11 JFS ACLs.
11735         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
11736         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
11737         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
11738         (acl, aclsort): New declarations.
11739         (aclv_nontrivial): New declaration.
11740         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
11741         (file_has_acl): Read also the second kind of HP-UX ACLs.
11742         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
11743         kind of HP-UX ACLs if the first kind fails.
11744         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
11745         second kind of HP-UX ACLs.
11746         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
11747         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
11748         agree.
11749         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
11750         hpuxjfs.
11751         Handle hpuxjfs.
11752         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
11753         hpuxjfs.
11754         Handle hpuxjfs.
11755         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
11756         (func_test_same_acls): Use both lsacl and getacl.
11757         Handle hpuxjfs.
11758         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
11759         (func_test_same_acls): Use both lsacl and getacl.
11760         Handle hpuxjfs.
11761
11762 2011-06-12  Bruno Haible  <bruno@clisp.org>
11763
11764         acl: Complete the 2010-08-10 fix.
11765         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
11766         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
11767         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
11768         explicitly.
11769         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
11770         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
11771
11772 2011-06-12  Bruno Haible  <bruno@clisp.org>
11773
11774         spawn-pipe tests: Comments.
11775         * tests/test-spawn-pipe-child.c (main): Update comment.
11776         Reported by James Youngman <jay@gnu.org>.
11777
11778 2011-06-11  James Youngman  <jay@gnu.org>
11779
11780         New module 'stat-size'.
11781         * modules/stat-size: New module.  Provides macros for accessing
11782         file size information in instances of struct stat.  Depends on the
11783         fileblocks module because it calls st_blocks.
11784         * lib/stat-size.h: New file, adapted from coreutils' system.h.
11785         * doc/gnulib.texi: Include stat-size.texi.
11786         * doc/stat-size.texi: Documentation for this module.
11787         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
11788         * m4/fileblocks.m4: Mention that stat-size depends on the call to
11789         AC_STRUCT_ST_BLOCKS.
11790
11791 2011-06-09  Bruno Haible  <bruno@clisp.org>
11792
11793         thread: Support pthreads-win32.
11794         * lib/glthread/thread.h (gl_thread_self): Define differently on
11795         pthreads-win32.
11796         (gl_null_thread): New declaration.
11797         (gl_thread_self_pointer): New macro.
11798         * lib/glthread/thread.c (gl_null_thread): New constant.
11799         * tests/test-lock.c: Use gl_thread_self_pointer instead of
11800         gl_thread_self.
11801         * tests/test-tls.c: Likewise.
11802         Suggested by Paul Eggert. Reported by Eric Blake.
11803
11804 2011-06-09  Bruno Haible  <bruno@clisp.org>
11805
11806         thread: Fix confusion between NULL and 0.
11807         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
11808         Reported by Paul Eggert.
11809
11810 2011-06-09  Bruno Haible  <bruno@clisp.org>
11811
11812         spawn-pipe tests: Avoid test failure on HP-UX 11.
11813         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
11814         is closed.
11815
11816 2011-06-09  Bruno Haible  <bruno@clisp.org>
11817
11818         acl tests: Fix compilation error on HP-UX 11.
11819         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
11820
11821 2011-06-09  Bruno Haible  <bruno@clisp.org>
11822
11823         rmdir: Avoid test failure on HP-UX 10.20.
11824         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
11825         EEXIST.
11826
11827 2011-06-08  Eric Blake  <eblake@redhat.com>
11828
11829         perror: fix test on mingw
11830         * modules/perror-tests (Depends-on): Add dup2.
11831
11832         strerror_r-posix: fix on MacOS
11833         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
11834         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
11835         logic bug.
11836         * lib/strerror_r.c (strerror_r): Fix the bug.
11837         * lib/strerror.c (strerror): Likewise.
11838         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11839         problem.
11840         * doc/posix-functions/strerror.texi (strerror): Likewise.
11841         * doc/posix-functions/perror.texi (perror): Likewise.
11842         * tests/test-strerror.c (main): Enhance test.
11843         * tests/test-strerror_r.c (main): Likewise.
11844
11845 2011-06-08  Bruno Haible  <bruno@clisp.org>
11846
11847         gnulib-tool: Better isolation between different gnulib-tool invocations.
11848         * gnulib-tool: New option --witness-c-macro.
11849         (witness_c_macro): New variable.
11850         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
11851         AM_CPPFLAGS define it as a C macro.
11852         (func_emit_tests_Makefile_am): Likewise.
11853         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
11854         read it from there.
11855         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
11856         m4_define, not AC_DEFUN.
11857         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
11858         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
11859         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
11860         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
11861         s|...|...|, to substitute the values of the GNULIB_* module indicator
11862         variables.
11863         * modules/dirent (Makefile.am): Likewise.
11864         * modules/fcntl-h (Makefile.am): Likewise.
11865         * modules/iconv-h (Makefile.am): Likewise.
11866         * modules/langinfo (Makefile.am): Likewise.
11867         * modules/locale (Makefile.am): Likewise.
11868         * modules/math (Makefile.am): Likewise.
11869         * modules/netdb (Makefile.am): Likewise.
11870         * modules/poll-h (Makefile.am): Likewise.
11871         * modules/pty (Makefile.am): Likewise.
11872         * modules/search (Makefile.am): Likewise.
11873         * modules/signal (Makefile.am): Likewise.
11874         * modules/spawn (Makefile.am): Likewise.
11875         * modules/stdio (Makefile.am): Likewise.
11876         * modules/stdlib (Makefile.am): Likewise.
11877         * modules/string (Makefile.am): Likewise.
11878         * modules/sys_ioctl (Makefile.am): Likewise.
11879         * modules/sys_select (Makefile.am): Likewise.
11880         * modules/sys_socket (Makefile.am): Likewise.
11881         * modules/sys_stat (Makefile.am): Likewise.
11882         * modules/sys_times (Makefile.am): Likewise.
11883         * modules/sys_utsname (Makefile.am): Likewise.
11884         * modules/sys_wait (Makefile.am): Likewise.
11885         * modules/termios (Makefile.am): Likewise.
11886         * modules/time (Makefile.am): Likewise.
11887         * modules/unistd (Makefile.am): Likewise.
11888         * modules/wchar (Makefile.am): Likewise.
11889
11890 2011-06-08  Eric Blake  <eblake@redhat.com>
11891
11892         strerror: simplify replacement
11893         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
11894         * modules/strerror (configure.ac): No prereqs needed here...
11895         * modules/strerror-override (configure.ac): ...but this needs it.
11896         (Files): Add file for needed prereq macro.
11897
11898 2011-06-08  Bruno Haible  <bruno@clisp.org>
11899
11900         strerror_r-posix: Tweaks.
11901         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
11902         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
11903         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
11904         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
11905         (gl_FUNC_STRERROR_R): ... to here.
11906         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
11907
11908 2011-06-07  Eric Blake  <eblake@redhat.com>
11909
11910         perror: document fixed bugs
11911         * doc/posix-functions/perror.texi (perror): Document recent
11912         patches.
11913
11914 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
11915
11916         stat-time: get_stat_birthtime failure is better-defined
11917         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
11918         return a timestamp whose tv_sec and tv_nsec values are both -1.
11919         Previously, the spec said only that the tv_nsec value was negative.
11920         This upward-compatible change simplifies GNU tar a bit.
11921
11922 2011-06-07  Eric Blake  <eblake@redhat.com>
11923
11924         strerror_r-posix: work around cygwin 1.7.9
11925         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
11926         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
11927         bug without replacing strerror_r.
11928         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
11929         strerror_r is buggy, but without requiring strerror_r compilation.
11930         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
11931
11932         test-perror: relax test to ignore cygwin bug
11933         * tests/test-perror2.c (main): Relax test on requiring detection
11934         of stream errors, and use unbuffered stream.
11935         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
11936         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
11937         * doc/posix-functions/fputc.texi (fputc): Likewise.
11938         * doc/posix-functions/fputs.texi (fputs): Likewise.
11939         * doc/posix-functions/fputws.texi (fputws): Likewise.
11940         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
11941         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
11942         * doc/posix-functions/getopt.texi (getopt): Likewise.
11943         * doc/posix-functions/perror.texi (perror): Likewise.
11944         * doc/posix-functions/printf.texi (printf): Likewise.
11945         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
11946         * doc/posix-functions/psignal.texi (psignal): Likewise.
11947         * doc/posix-functions/putc.texi (putc): Likewise.
11948         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
11949         Likewise.
11950         * doc/posix-functions/putchar.texi (putchar): Likewise.
11951         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
11952         Likewise.
11953         * doc/posix-functions/puts.texi (puts): Likewise.
11954         * doc/posix-functions/putwc.texi (putwc): Likewise.
11955         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
11956         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
11957         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11958         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
11959         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11960         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
11961         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11962         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
11963
11964 2011-05-22  Bruno Haible  <bruno@clisp.org>
11965
11966         strerror: Move AC_LIBOBJ invocations to module description.
11967         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
11968         gl_PREREQ_STRERROR invocations from here...
11969         * modules/strerror (configure.ac): ... to here.
11970
11971 2011-05-21  Bruno Haible  <bruno@clisp.org>
11972
11973         perror: Use common idiom.
11974         * modules/perror (configure.ac): Reorder statements.
11975
11976 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
11977
11978         tests: fix usage message in 'mktempd_'
11979         * tests/init.sh (mktempd_): In the usage message, use literal
11980         'mktempd_', not '$ME' (which is even undefined), as the name of
11981         the subroutine.
11982
11983 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
11984
11985         tests init: new function 'fatal_', for hard errors
11986         Before this patch, the only way offered by tests/init.sh to
11987         properly signal a hard error was the `framework_failure_'
11988         function.  But the error message issued by that function,
11989         as its name would suggest, refers to a set-up failure in the
11990         testsuite, while hard errors can obviously also be due to
11991         other reasons.  The best way to fix this inconsistency is to
11992         introduce a new function with a more general error message.
11993         * tests/init.sh (fatal_): New function.
11994
11995 2011-06-06  Eric Blake  <eblake@redhat.com>
11996
11997         canonicalize-lgpl: use common idiom
11998         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
11999         over newer POSIX -Rf.
12000         Reported by Bruno Haible.
12001
12002         canonicalize-lgpl: work around AIX realpath bug
12003         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
12004         * doc/posix-functions/realpath.texi (realpath): Document it.
12005         Reported by Bruno Haible.
12006
12007         strerror: work around FreeBSD bug
12008         * lib/strerror.c (strerror): Special case 0.
12009         Reported by Bruno Haible.
12010
12011         strerror-override: avoid bloating errno module
12012         * modules/errno (Files, configure.ac): Move replacement strings...
12013         * modules/strerror-override: ...to new module.
12014         * modules/strerror (Depends-on): Add strerror-override.
12015         * modules/strerror_r-posix (Depends-on): Likewise.
12016         * MODULES.html.sh: Document new module.
12017         Reported by Bruno Haible.
12018
12019 2011-06-06  Bruno Haible  <bruno@clisp.org>
12020
12021         spawn-pipe tests: Rename program.
12022         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
12023         * tests/test-spawn-pipe-child.c: Update comment.
12024         * tests/test-spawn-pipe.sh: Update.
12025         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
12026
12027         spawn-pipe tests: Link the child program only against libc.
12028         * tests/test-spawn-pipe-child.c: New file, extracted from
12029         tests/test-spawn-pipe.c.
12030         (main): Expect only one argument.
12031         (is_open): New function, copied from tests/test-pipe.c.
12032         * tests/test-spawn-pipe.c: Don't include <errno.h>.
12033         (child_main): Remove function.
12034         (test_pipe): Pass only one argument to the child program.
12035         (main): Remove child process code. Expect the child program's name as
12036         first argument.
12037         * tests/test-spawn-pipe.sh: Pass the child program's name as first
12038         argument.
12039         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
12040         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
12041         test-spawn-pipe-child against no libraries.
12042
12043 2011-06-06  Bruno Haible  <bruno@clisp.org>
12044
12045         careadlinkat: Avoid mismatch between ssize_t and int.
12046         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
12047         * lib/careadlinkat.c (careadlinkatcwd): Define always.
12048
12049 2011-06-06  Jim Meyering  <meyering@redhat.com>
12050
12051         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
12052         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
12053         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
12054
12055 2011-06-05  Bruno Haible  <bruno@clisp.org>
12056
12057         ansi-c++-opt: Interoperability with libtool.
12058         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
12059         set the variable to "no", not to ":".
12060         * NEWS: Mention the change.
12061
12062 2011-06-05  Bruno Haible  <bruno@clisp.org>
12063
12064         acl: Fix test failure on AIX 7.
12065         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
12066         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
12067
12068 2011-06-05  Bruno Haible  <bruno@clisp.org>
12069
12070         pipe-filter-ii: Fix test failure on AIX and IRIX.
12071         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
12072         with EAGAIN, retry with a smaller buffer size.
12073
12074 2011-06-05  Bruno Haible  <bruno@clisp.org>
12075
12076         localename: Fix link dependencies.
12077         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
12078         * modules/localename-tests (Makefile.am): Link test-localename with
12079         $(LIBTHREAD).
12080
12081 2011-06-05  Bruno Haible  <bruno@clisp.org>
12082
12083         error: Avoid gcc warning.
12084         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
12085
12086 2011-06-05  Bruno Haible  <bruno@clisp.org>
12087
12088         unsetenv: Avoid gcc warning.
12089         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
12090
12091 2011-06-05  Bruno Haible  <bruno@clisp.org>
12092
12093         setenv: Avoid gcc warning.
12094         * lib/setenv.c (setenv): Provide declaration if system lacks it.
12095
12096 2011-06-05  Bruno Haible  <bruno@clisp.org>
12097
12098         sys_select: Ensure memset is declared also on AIX 7.
12099         * lib/sys_select.in.h: Include <string.h> also on AIX.
12100         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
12101         self-contained also on AIX 7.1.
12102
12103 2011-06-04  Jim Meyering  <meyering@redhat.com>
12104
12105         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
12106         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
12107         function name, "error".
12108         (_gl_translatable_diag_func_re): New configurable variable.
12109
12110 2011-06-04  Bruno Haible  <bruno@clisp.org>
12111
12112         getopt: Avoid gcc warning.
12113         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
12114
12115 2011-06-04  Bruno Haible  <bruno@clisp.org>
12116
12117         strerror_r: Fix comments.
12118         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
12119         commit.
12120
12121 2011-06-04  Bruno Haible  <bruno@clisp.org>
12122
12123         perror: Fix compilation error.
12124         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
12125         Undefine fprintf, not sprintf.
12126         * modules/perror (Depends-on): Remove intprops, verify.
12127
12128 2011-06-04  Bruno Haible  <bruno@clisp.org>
12129
12130         setlocale: Enable replacement on Cygwin 1.5.
12131         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
12132         Cygwin 1.5.x.
12133         * doc/posix-functions/setlocale.texi: Mention that the problem with the
12134         LC_CTYPE category also exists on Cygwin 1.5.x.
12135
12136 2011-06-04  Bruno Haible  <bruno@clisp.org>
12137
12138         strerror-override: Don't disable symbol renamings.
12139         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
12140         * lib/strerror-override.c: Include config.h.
12141         (strerror_override): Don't undefine.
12142
12143 2011-06-03  Bruno Haible  <bruno@clisp.org>
12144
12145         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
12146         * lib/localename.h: Update copyright header.
12147         * lib/localename.c: Likewise.
12148         * lib/relocatable.h: Likewise.
12149         * lib/relocatable.c: Likewise.
12150
12151 2011-06-02  Bruno Haible  <bruno@clisp.org>
12152
12153         doc: Fix a module name.
12154         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
12155
12156 2011-06-02  Bruno Haible  <bruno@clisp.org>
12157
12158         pipe2: Remove dependency on 'nonblocking' module.
12159         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
12160         O_NONBLOCK is defined by gnulib.
12161         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
12162         is zero.
12163         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
12164         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
12165         defined by gnulib.
12166         (get_nonblocking_flag): New function.
12167         (main): Test O_NONBLOCK flag only if it is nonzero.
12168         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
12169
12170 2011-06-03  Jim Meyering  <meyering@redhat.com>
12171
12172         maint: three new prohibit-header-without-use rules
12173         Prohibit use of cloexec.h, posixver.h, same.h without use.
12174         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
12175         (sc_prohibit_posixver_without_use): Likewise.
12176         (sc_prohibit_same_without_use): Likewise.
12177
12178 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
12179
12180         allocator: 'die' routine is now given requested size
12181         * lib/allocator.h (struct allocator.die): New size arg.
12182         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
12183         If the actual problem is an ssize_t limitation, not a size_t or
12184         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
12185
12186 2011-06-01  Eric Blake  <eblake@redhat.com>
12187
12188         strerror: drop strerror_r dependency
12189         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
12190         * lib/strerror-override.c (strerror_override): ...to new file.
12191         * lib/strerror-override.h: Add prototype.
12192         * lib/strerror-impl.h: Delete.
12193         * lib/strerror.c (strerror): New implementation.
12194         * modules/errno (Files): Add new files.
12195         (configure.ac): Compile new file as appropriate.
12196         * modules/strerror (Files): Drop unused file.
12197         (Depends-on): Drop strerror_r-posix.
12198         * MODULES.html.sh: Document strerror_r-posix.
12199         Requested by Sam Steingold.
12200
12201         perror: call strerror_r directly
12202         * modules/perror (Files): Drop strerror-impl.h.
12203         * lib/perror.c (perror): Use our own stack buffer, rather than
12204         calling a wrapper that uses static storage.
12205         * doc/posix-functions/perror.texi (perror): Document a limitation
12206         of our replacement.
12207
12208         strerror_r: fix includes for FreeBSD
12209         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
12210         since we use abort on some platforms.
12211         Reported by Matthias Bolte.
12212
12213 2011-05-31  Bruno Haible  <bruno@clisp.org>
12214
12215         Fix link errors in tests: openat-die uses gettext-h.
12216         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
12217         against $(LIBINTL).
12218         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
12219         against $(LIBINTL).
12220         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
12221         $(LIBINTL).
12222         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
12223         against $(LIBINTL).
12224         * modules/linkat-tests (Makefile.am): Link test-linkat against
12225         $(LIBINTL).
12226         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
12227         $(LIBINTL).
12228         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
12229         against $(LIBINTL).
12230         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
12231         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
12232         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
12233         $(LIBINTL).
12234         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
12235         $(LIBINTL).
12236         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
12237         $(LIBINTL).
12238         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12239
12240 2011-05-31  Bruno Haible  <bruno@clisp.org>
12241
12242         Fix link errors in tests: wait-process uses gettext-h.
12243         * modules/nonblocking-pipe-tests (Makefile.am): Set
12244         test_nonblocking_pipe_main_LDADD.
12245         * modules/nonblocking-socket-tests (Makefile.am): Link
12246         test-nonblocking-socket-main against $(LIBINTL).
12247         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12248
12249 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
12250
12251         assert-h: work around 'verify' incompatibility
12252         * lib/verify.h: Use @...@ directives, not ifdef.
12253         * modules/assert-h (assert.h): Implement the directives.
12254         (assert.h): Substitute the symbol-prefix more consistently.
12255
12256 2011-05-29  Jim Meyering  <meyering@redhat.com>
12257
12258         trim: remove three superfluous assignments
12259         * lib/trim.c (trim2): Remove three superfluous assignments
12260         and correct brace positioning.
12261
12262 2011-05-29  Bruno Haible  <bruno@clisp.org>
12263
12264         wctype-h: Avoid namespace pollution on Solaris 2.6.
12265         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
12266         identifiers.
12267         * doc/posix-headers/wctype.texi: Mention the problem.
12268         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12269
12270 2011-05-28  Jim Meyering  <meyering@redhat.com>
12271
12272         parse-datetime.y: accommodate -Wstrict-overflow
12273         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
12274         placate -Wstrict-overflow.
12275
12276         trim: avoid a warning from -O2 -Wstrict-overflow
12277         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
12278
12279 2011-05-29  Bruno Haible  <bruno@clisp.org>
12280
12281         gnulib-tool: Fix bug in yesterday's commit.
12282         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
12283         twice.
12284
12285 2011-05-29  Bruno Haible  <bruno@clisp.org>
12286
12287         Allow multiple gnulib generated include files to be combined.
12288         * gnulib-tool (func_compute_include_guard_prefix): New function.
12289         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
12290         ${gl_include_guard_prefix} references.
12291         (func_import, func_create_testdir): Invoke
12292         func_compute_include_guard_prefix.
12293         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
12294         * lib/ctype.in.h: Likewise.
12295         * lib/dirent.in.h: Likewise.
12296         * lib/errno.in.h: Likewise.
12297         * lib/fcntl.in.h: Likewise.
12298         * lib/float.in.h: Likewise.
12299         * lib/getopt.in.h: Likewise.
12300         * lib/iconv.in.h: Likewise.
12301         * lib/langinfo.in.h: Likewise.
12302         * lib/locale.in.h: Likewise.
12303         * lib/math.in.h: Likewise.
12304         * lib/netdb.in.h: Likewise.
12305         * lib/netinet_in.in.h: Likewise.
12306         * lib/poll.in.h: Likewise.
12307         * lib/pthread.in.h: Likewise.
12308         * lib/pty.in.h: Likewise.
12309         * lib/sched.in.h: Likewise.
12310         * lib/se-selinux.in.h: Likewise.
12311         * lib/search.in.h: Likewise.
12312         * lib/signal.in.h: Likewise.
12313         * lib/spawn.in.h: Likewise.
12314         * lib/stdarg.in.h: Likewise.
12315         * lib/stddef.in.h: Likewise.
12316         * lib/stdint.in.h: Likewise.
12317         * lib/stdio.in.h: Likewise.
12318         * lib/stdlib.in.h: Likewise.
12319         * lib/string.in.h: Likewise.
12320         * lib/strings.in.h: Likewise.
12321         * lib/sys_file.in.h: Likewise.
12322         * lib/sys_ioctl.in.h: Likewise.
12323         * lib/sys_select.in.h: Likewise.
12324         * lib/sys_socket.in.h: Likewise.
12325         * lib/sys_stat.in.h: Likewise.
12326         * lib/sys_time.in.h: Likewise.
12327         * lib/sys_times.in.h: Likewise.
12328         * lib/sys_uio.in.h: Likewise.
12329         * lib/sys_utsname.in.h: Likewise.
12330         * lib/sys_wait.in.h: Likewise.
12331         * lib/sysexits.in.h: Likewise.
12332         * lib/termios.in.h: Likewise.
12333         * lib/time.in.h: Likewise.
12334         * lib/unistd.in.h: Likewise.
12335         * lib/wchar.in.h: Likewise.
12336         * lib/wctype.in.h: Likewise.
12337         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
12338         * modules/ctype (Makefile.am): Likewise.
12339         * modules/dirent (Makefile.am): Likewise.
12340         * modules/errno (Makefile.am): Likewise.
12341         * modules/fcntl-h (Makefile.am): Likewise.
12342         * modules/float (Makefile.am): Likewise.
12343         * modules/getopt-posix (Makefile.am): Likewise.
12344         * modules/iconv-h (Makefile.am): Likewise.
12345         * modules/langinfo (Makefile.am): Likewise.
12346         * modules/locale (Makefile.am): Likewise.
12347         * modules/math (Makefile.am): Likewise.
12348         * modules/netdb (Makefile.am): Likewise.
12349         * modules/netinet_in (Makefile.am): Likewise.
12350         * modules/poll-h (Makefile.am): Likewise.
12351         * modules/pthread (Makefile.am): Likewise.
12352         * modules/pty (Makefile.am): Likewise.
12353         * modules/sched (Makefile.am): Likewise.
12354         * modules/search (Makefile.am): Likewise.
12355         * modules/selinux-h (Makefile.am): Likewise.
12356         * modules/signal (Makefile.am): Likewise.
12357         * modules/spawn (Makefile.am): Likewise.
12358         * modules/stdarg (Makefile.am): Likewise.
12359         * modules/stddef (Makefile.am): Likewise.
12360         * modules/stdint (Makefile.am): Likewise.
12361         * modules/stdio (Makefile.am): Likewise.
12362         * modules/stdlib (Makefile.am): Likewise.
12363         * modules/string (Makefile.am): Likewise.
12364         * modules/strings (Makefile.am): Likewise.
12365         * modules/sys_file (Makefile.am): Likewise.
12366         * modules/sys_ioctl (Makefile.am): Likewise.
12367         * modules/sys_select (Makefile.am): Likewise.
12368         * modules/sys_socket (Makefile.am): Likewise.
12369         * modules/sys_stat (Makefile.am): Likewise.
12370         * modules/sys_time (Makefile.am): Likewise.
12371         * modules/sys_times (Makefile.am): Likewise.
12372         * modules/sys_uio (Makefile.am): Likewise.
12373         * modules/sys_utsname (Makefile.am): Likewise.
12374         * modules/sys_wait (Makefile.am): Likewise.
12375         * modules/sysexits (Makefile.am): Likewise.
12376         * modules/termios (Makefile.am): Likewise.
12377         * modules/time (Makefile.am): Likewise.
12378         * modules/unistd (Makefile.am): Likewise.
12379         * modules/wchar (Makefile.am): Likewise.
12380         * modules/wctype-h (Makefile.am): Likewise.
12381         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
12382
12383 2011-05-29  Bruno Haible  <bruno@clisp.org>
12384
12385         assert-h: Allow multiple gnulib generated replacements to coexist.
12386         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
12387
12388 2011-05-29  Bruno Haible  <bruno@clisp.org>
12389
12390         argp: Allow coexistence with strerror_r-posix module.
12391         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
12392         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
12393         by gnulib's <string.h> replacement), assume it has the POSIX signature,
12394         not the glibc signature.
12395
12396 2011-05-28  Bruno Haible  <bruno@clisp.org>
12397
12398         gnulib-tool: Alternative structure of testdirs, similar to --import.
12399         * gnulib-tool: New option --single-configure.
12400         (func_usage): Document it.
12401         (single_configure): New variable.
12402         (func_modules_transitive_closure_separately,
12403         func_modules_transitive_closure_separately,
12404         func_determine_use_libtests, func_modules_add_dummy_separately,
12405         func_modules_to_filelist_separately): New functions, extracted from
12406         func_import.
12407         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
12408         (func_import): Use the new functions.
12409         (func_create_testdir): Set final_modules. Handle $single_configure =
12410         true case.
12411
12412 2011-05-28  Bruno Haible  <bruno@clisp.org>
12413
12414         getloadavg: Remove an unreliable safety check.
12415         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
12416         getloadavg.c is in place.
12417         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
12418         Reported by Sam Steingold <sds@gnu.org>.
12419
12420 2011-05-28  Bruno Haible  <bruno@clisp.org>
12421
12422         doc: Cleanup yet another file produced by texinfo.tex.
12423         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
12424
12425 2011-05-28  Bruno Haible  <bruno@clisp.org>
12426
12427         Finish the conditional dependencies mechanism.
12428         * gnulib-tool: New option --no-conditional-dependencies.
12429         (func_usage): Document it. Don't mark --conditional-dependencies as
12430         experimental.
12431         (cond_dependencies): The possible values can now be true, false, empty.
12432         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
12433         (func_import): Store setting in gnulib-cache.m4 and read it from there.
12434         * doc/gnulib-tool.texi (Conditional dependencies): New section.
12435
12436 2011-05-28  Bruno Haible  <bruno@clisp.org>
12437
12438         doc: Use a recent texinfo.tex.
12439         * doc/Makefile (tex_opts): New variable.
12440         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
12441
12442 2011-05-28  Jim Meyering  <meyering@redhat.com>
12443
12444         intprops.h: adjust comment to match code change
12445         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
12446         only once, it *may* have side effects.  Also fix an unrelated typo.
12447         (_GL_INT_SIGNED): Likewise.
12448
12449 2011-05-26  Simon Josefsson  <simon@josefsson.org>
12450
12451         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
12452
12453 2011-05-26  Bruno Haible  <bruno@clisp.org>
12454
12455         mbsrchr: Avoid collision with system function on Interix.
12456         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
12457         Reported by Markus Duft <mduft@gentoo.org>.
12458
12459 2011-05-15  James Youngman  <jay@gnu.org>
12460
12461         getopt: for ambiguous options, enumerate the possibilities.
12462         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
12463         the ambiguous options when an ambiguous prefix is given. This was
12464         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
12465         glibc change was
12466         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
12467
12468 2011-05-25  Eric Blake  <eblake@redhat.com>
12469
12470         getcwd: work around mingw bug
12471         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
12472         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12473         Reported by Matthias Bolte.
12474
12475 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
12476
12477         test-intprops: disable -Wtype-limits diagnostics
12478         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
12479         diagnostics.  Otherwise, the integer overflow macros generate many
12480         diagnostics.  Reported by Jim Meyering in
12481         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
12482
12483         intprops: shorten, to pacify gcc -Woverlength-strings
12484         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
12485         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
12486         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
12487         likely to run afoul of C compiler limits for string constant lengths.
12488         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
12489
12490 2011-05-24  Eric Blake  <eblake@redhat.com>
12491
12492         docs: document recently fixed glibc printf bug
12493         * doc/posix-functions/fprintf.texi (fprintf): Document it.
12494         * doc/posix-functions/printf.texi (printf): Likewise.
12495         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12496         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12497
12498         closein-tests: convert to init.sh
12499         * modules/closein-tests (Files): Add init.sh
12500         * tests/test-closein.sh Use it.
12501
12502         yesno-tests: convert to init.sh
12503         * modules/yesno-tests (Files): Add init.sh.
12504         * tests/test-yesno.sh: Use it.
12505
12506         atexit-tests: ensure reliable exit status
12507         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
12508         Reported by Bruno Haible.
12509
12510 2011-05-24  Bruno Haible  <bruno@clisp.org>
12511
12512         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
12513         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
12514         gl_PREREQ_STRERROR_R invocations from here...
12515         * modules/strerror_r-posix (configure.ac): ... to here.
12516
12517 2011-05-24  Eric Blake  <eblake@redhat.com>
12518
12519         strerror_r: fix missing header
12520         * lib/strerror_r.c: Avoid compiler warning about snprintf.
12521
12522         strerror_r: fix AIX test failures
12523         * lib/strerror_r.c (strerror_r): Convert silent truncation to
12524         ERANGE failure.
12525
12526         strerror_r: fix Solaris test failures
12527         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
12528         failures.
12529         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
12530
12531         strerror_r: enforce POSIX recommendations
12532         * lib/strerror_r.c (safe_copy): New helper method.
12533         (strerror_r): Guarantee a non-empty string.
12534         * tests/test-strerror_r.c (main): Enhance tests to incorporate
12535         recent POSIX rulings and to match our strerror guarantees.
12536         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
12537
12538 2011-05-24  Jim Meyering  <meyering@redhat.com>
12539
12540         test-perror2.c: avoid warning about unused variable
12541         * tests/test-perror2.c (main): Remove declaration of unused "fp".
12542
12543 2011-05-24  Eric Blake  <eblake@redhat.com>
12544
12545         perror: avoid spurious test failure on HP-UX
12546         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
12547
12548         tests: fix logic bug in init.sh
12549         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
12550         shell.
12551
12552 2011-05-24  Jim Meyering  <meyering@redhat.com>
12553
12554         utimensat: do not reference an out-of-scope buffer
12555         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
12556         declared in an inner scope, yet "times" would be dereferenced outside
12557         the scope in which "ts" was valid.
12558         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
12559         of ts[2] "out/up", so that the use of aliased "times" (via
12560         "times = ts;") does not end up referencing an out-of-scope "ts"
12561
12562         opendir-safer.c: don't clobber errno; don't close negative FD
12563         * lib/opendir-safer.c (opendir_safer):
12564         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
12565         file descriptor, and more importantly, don't clobber the
12566         offending errno value with EINVAL.  Before, upon failure
12567         of dup_safer, we would pass the negative file descriptor to
12568         fdopendir, which would clobber errno.
12569
12570 2011-05-23  Bruno Haible  <bruno@clisp.org>
12571
12572         idcache: Fix module description.
12573         * modules/idcache (Include): Set to "idcache.h".
12574
12575 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
12576
12577         gnulib-tool: fix portability problem with MacOS sed
12578         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
12579         before the "}".  Problem reported by Leo in
12580         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
12581         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
12582         sed_extract_condition1, sed_extract_condition2.
12583
12584 2011-05-23  Bruno Haible  <bruno@clisp.org>
12585
12586         hash: Simplify autoconf macro.
12587         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
12588
12589 2011-05-23  Bruno Haible  <bruno@clisp.org>
12590
12591         getugroups: Fix module description.
12592         * modules/getugroups (Include): Set to "getugroups.h".
12593
12594 2011-05-23  Bruno Haible  <bruno@clisp.org>
12595
12596         linkat: Simplify autoconf macro.
12597         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
12598
12599 2011-05-23  Bruno Haible  <bruno@clisp.org>
12600             Eric Blake  <eblake@redhat.com>
12601
12602         linkat, renameat: Update dependencies.
12603         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
12604         * modules/linkat (Depends-on): Likewise. Remove also readlink,
12605         symlinkat.
12606
12607 2011-05-23  Jim Meyering  <meyering@redhat.com>
12608
12609         maint.mk: more tight_scope improvements
12610         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
12611         (_gl_TS_headers): Define only in if-0'd block.
12612         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
12613         sometimes we must *not* use it.  Adjust uses accordingly.
12614         (sc_tight_scope): Use much simpler grep-based test to determine
12615         whether we skip this rule.
12616
12617         maint.mk: generalize/improve the tight-scope rule
12618         * top/maint.mk: Emit a warning when the test is skipped.
12619         (_gl_TS_dir): Add $(srcdir)/ prefix.
12620         (_gl_TS_function_match): Simplify, rather than trying
12621         to enumerate common types.  Otherwise, it would fail to match an
12622         "extern unsigned char const *" declaration in idutils.
12623         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
12624         a way to support use of that type of macro.
12625         (_gl_TS_var_match): Simplify regexp.
12626         (_gl_TS_obj_files): New configurable variable.
12627         (_gl_TS_headers): Likewise.
12628
12629 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
12630
12631         verify: fix bug when gnulib <assert.h> is also included
12632         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
12633         is defined, not if _GL_STATIC_ASSERT_H is not defined.
12634         Perhaps there's a better way, but this fixes the immediate problem.
12635         Problem reported by Bruno Haible in
12636         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
12637
12638 2011-05-22  Bruno Haible  <bruno@clisp.org>
12639
12640         xgetcwd: Simplify autoconf macro.
12641         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
12642
12643 2011-05-22  Bruno Haible  <bruno@clisp.org>
12644
12645         New module 'mktime-internal'.
12646         * modules/mktime-internal: New file.
12647         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
12648         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
12649         mktime_internal as a C macro if libc has __mktime_internal.
12650         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
12651         conditions.
12652         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
12653
12654 2011-05-22  Bruno Haible  <bruno@clisp.org>
12655
12656         timegm: Correct mktime replacement statements.
12657         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
12658         defining mktime as a C macro. This completes a 2009-07-28 commit.
12659
12660 2011-05-22  Bruno Haible  <bruno@clisp.org>
12661
12662         timegm: Simplify autoconf macro.
12663         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
12664
12665 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
12666
12667         clock-time: change to LGPLv2+.
12668         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
12669         BSD-like but we have no mark for that; this is good enough for now.
12670
12671 2011-05-21  Bruno Haible  <bruno@clisp.org>
12672
12673         strerror_r: Fix comments.
12674         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
12675
12676 2011-05-21  Bruno Haible  <bruno@clisp.org>
12677
12678         relocatable-prog-wrapper: Fix possible link error.
12679         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
12680         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
12681         (gl_FUNC_SETENV): ... to here.
12682         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
12683         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
12684
12685 2011-05-21  Bruno Haible  <bruno@clisp.org>
12686
12687         relocatable-prog-wrapper: Assume strerror() exists.
12688         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
12689         m4/strerror.m4.
12690         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
12691         * lib/relocwrapper.c: Remove mention of strerror module.
12692         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
12693         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
12694         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
12695         C macro.
12696
12697 2011-05-21  Bruno Haible  <bruno@clisp.org>
12698
12699         select: Simplify replacement idiom.
12700         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
12701         Win32 platforms.
12702         * lib/sys_select.in.h (select): Simplify accordingly.
12703         * modules/select (Depends-on): Likewise.
12704
12705 2011-05-21  Bruno Haible  <bruno@clisp.org>
12706
12707         mkdir-p: Simplify autoconf macro.
12708         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
12709         gl_FUNC_LCHOWN.
12710
12711 2011-05-21  Eric Blake  <eblake@redhat.com>
12712
12713         strerror_r: avoid clobbering strerror on cygwin
12714         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
12715         fall back instead to sys_errlist.
12716         * modules/strerror (configure.ac): Add witness.
12717         * tests/test-strerror_r.c (main): Enhance test.
12718         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12719         * tests/test-perror2.c (main): Free memory before exit.
12720
12721 2011-05-21  Bruno Haible  <bruno@clisp.org>
12722
12723         mkdtemp: Use gnulib naming conventions.
12724         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
12725         * modules/mkdtemp (configure.ac): Update.
12726
12727 2011-05-20  Eric Blake  <eblake@redhat.com>
12728
12729         strerror_r: avoid corrupting errno on Solaris
12730         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
12731         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12732
12733         strerror_r: avoid compiler warning
12734         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
12735
12736         strerror_r: simplify AIX code
12737         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
12738
12739         test-perror: avoid spurious failure on FreeBSD
12740         * modules/perror-tests (Depends-on): Add strerror, now that
12741         strerror_r no longer pulls it in.
12742
12743 2011-05-20  Bruno Haible  <bruno@clisp.org>
12744
12745         strerror_r-posix: Remove unused dependencies.
12746         * modules/strerror_r-posix (Depends-on): Remove strerror.
12747         Reported by Eric Blake.
12748
12749 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
12750
12751         intprops: remove assumption about A|B representation
12752         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
12753         is a valid integer if both A and B are.  Although this is true for
12754         all known practical hosts, the C standard doesn't guarantee it,
12755         and the code need not assume it.  Also, this change may work around
12756         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
12757         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
12758
12759 2011-05-20  Eric Blake  <eblake@redhat.com>
12760
12761         perror: work around FreeBSD bug
12762         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
12763         is broken.  Move AC_LIBOBJ...
12764         * modules/perror (configure.ac): Here.
12765         * doc/posix-functions/perror.texi (perror): Document this.
12766         * tests/test-perror2.c (main): Enhance test.
12767
12768         test-perror: check for strerror interactions
12769         * tests/macros.h (STREQ): Add macro.
12770         * modules/perror-tests (Files): Add second test.
12771         * tests/test-perror2.c (main): New file.
12772         * doc/posix-functions/perror.texi (perror): Document glibc bug.
12773
12774         test-perror: rewrite to use init script
12775         * modules/perror-tests (Files): Add init.sh.
12776         * tests/test-perror.sh: Use temporary directory.
12777
12778 2011-05-20  Jim Meyering  <meyering@redhat.com>
12779
12780         maint: replace misused "a" with "an"
12781         * doc/intprops.texi: "a integer"
12782         * doc/regex.texi: "a explanation"
12783         * lib/alignof.h: "a object"
12784         * lib/argmatch.h: "a explanation"
12785         * lib/argp-help.c: "a option" and "a OPTION_DOC"
12786         * lib/stdint.in.h: "a integer"
12787         * lib/userspec.c: "a owner"
12788         * doc/gnulib.texi: Fix "a idea", and reword.
12789
12790 2011-05-19  Jim Meyering  <meyering@redhat.com>
12791
12792         maint: correct misuse of "a" and "an"
12793         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
12794         * lib/argp-help.c: "an docum...": s/an/a/
12795         * lib/argp-parse.c: "An vector": s/An/A/
12796         * lib/execute.c: "an native": s/an/a/
12797         * lib/spawn-pipe.c: Likewise.
12798         * lib/gc.h: "an Gc_rc": s/an/a/
12799         * lib/unigbrk.in.h: "an grapheme": s/an/a/
12800         * lib/fts.c: "an stat.st_dev": s/an/a/
12801
12802 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12803
12804         intprops-tests: work around HP-UX 11.23 cc bug with constants
12805         * tests/test-intprops.c (VERIFY): New macro.
12806         (main): Use it, instead of verify, to work around the compiler bug; see
12807         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12808
12809         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
12810         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
12811         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
12812         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
12813         (_GL_REMAINDER_OVERFLOW): Use it.
12814
12815         intprops-tests: revert unsigned part of previous change
12816         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
12817         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
12818         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
12819         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
12820
12821 2011-05-19  Bruno Haible  <bruno@clisp.org>
12822
12823         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
12824         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
12825         strerror_r() returned without filling the buffer.
12826         Reported by Eric Blake.
12827
12828 2011-05-19  Eric Blake  <eblake@redhat.com>
12829
12830         strerror_r: guarantee unchanged errno
12831         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
12832         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
12833         failure.
12834         * tests/test-strerror_r.c (main): Enhance test.
12835
12836 2011-05-19  Bruno Haible  <bruno@clisp.org>
12837
12838         strerror_r: Reorder #if blocks.
12839         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
12840         for consistency with the previous commit.
12841
12842 2011-05-19  Bruno Haible  <bruno@clisp.org>
12843
12844         perror: Avoid clobbering the strerror buffer when possible.
12845         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
12846         * lib/strerror.c: Include it.
12847         * modules/strerror (Files): Add lib/strerror-impl.h.
12848         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
12849         (my_strerror): New function, defined through lib/strerror-impl.h.
12850         (perror): Use it instead of strerror.
12851         * modules/perror (Files): Add lib/strerror-impl.h.
12852         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
12853
12854 2011-05-19  Eric Blake  <eblake@redhat.com>
12855
12856         strerror_r: fix on newer cygwin
12857         * lib/strerror_r.c (strerror_r): Cygwin now has
12858         __xpg_strerror_r, use it.
12859
12860 2011-05-19  Bruno Haible  <bruno@clisp.org>
12861
12862         strerror_r: Avoid clobbering the strerror buffer when possible.
12863         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
12864         (sys_nerr, sys_errlist): New declarations.
12865         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
12866         HP-UX, native Win32, IRIX, and 32-bit Solaris.
12867         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
12868
12869 2011-05-19  Bruno Haible  <bruno@clisp.org>
12870
12871         strerror_r: Fix test failure on mingw.
12872         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
12873         EXTEND_STRERROR_R.
12874         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
12875         macros from errno.in.h instead.
12876
12877 2011-05-19  Eric Blake  <eblake@redhat.com>
12878
12879         strerror: relax test for Solaris
12880         * tests/test-strerror.c (main): Permit Solaris behavior.
12881         * tests/test-strerror_r.c (main): Likewise.
12882
12883         strerror: enforce POSIX ruling on strerror(0)
12884         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
12885         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
12886         * lib/strerror_r.c (rpl_strerror_r): Work around it.
12887         * doc/posix-functions/strerror.texi (strerror): Document it.
12888         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
12889         * tests/test-strerror.c (main): Strengthen test.
12890         * tests/test-strerror_r.c (main): Likewise.
12891
12892 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12893
12894         intprop-tests: port to older and more-pedantic compilers
12895         * modules/intprops-tests (Files): Add tests/macros.h.
12896         * tests/test-intprops.c: Include macros.h.
12897         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
12898         it's no longer documented to expand to an integer constant expression.
12899         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
12900         argument is floating point, as it's no longer documented to expand
12901         to an integer constant expression in that case.
12902         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
12903         compiler bugs reported by Bruno Haible.  See
12904         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12905         (U0, U1): New constants, to work around the same bugs.  Also,
12906         in tests, use e.g., "(unsigned int) 39" rather than "39u".
12907
12908         intprops: work around C compiler bugs
12909         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
12910         bug in Sun C 5.11 2010/08/13 and other compilers; see
12911         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12912
12913         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
12914         * doc/intprops.texi (Integer Type Determination): Fix
12915         documentation for TYPE_IS_INTEGER: it returns an constant
12916         expression, not an integer constant expression.  Fix doc for
12917         TYPE_SIGNED: it returns an integer constant expression only if its
12918         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
12919         hardly worth documented that way....)
12920
12921 2011-05-18  Bruno Haible  <bruno@clisp.org>
12922
12923         strerror_r: Avoid clobbering the strerror buffer when possible.
12924         * lib/strerror_r.c (strerror_r): Merge the three implementations.
12925         Handle gnulib defined errno values here. When strerror() returns NULL
12926         or an empty string, return EINVAL.
12927         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
12928         gnulib defined errno values here.
12929         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
12930
12931 2011-05-18  Eric Blake  <eblake@redhat.com>
12932
12933         fnmatch: avoid compiler warning
12934         * lib/fnmatch_loop.c (FCT): Use correct type.
12935         Reported by Matthias Bolte.
12936
12937 2011-05-13  Jim Meyering  <meyering@redhat.com>
12938
12939         maint.mk: three new prohibit_<HDR>_without_use rules
12940         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
12941         (sc_prohibit_stdio-safer_without_use): Likewise.
12942         (sc_prohibit_xfreopen_without_use): Likewise.
12943
12944 2011-05-17  Jim Meyering  <meyering@redhat.com>
12945
12946         announce-gen: fail if the NEWS delta is empty
12947         If there's nothing noteworthy in NEWS, then either you forgot
12948         or you shouldn't be releasing.
12949         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
12950
12951 2011-05-17  Pádraig Brady <P@draigBrady.com>
12952
12953         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
12954         reserved symbols starting with double underscore from the check.
12955
12956 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
12957
12958         intprops: add doc
12959         * doc/intprops.texi: New file, documenting intprops.
12960         * doc/gnulib.texi (Particular Modules): Include it.
12961
12962         verify: add doc to gnulib manual and fix example
12963         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
12964         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
12965         (Compile-time Assertions): Fix example so it can't overflow.
12966
12967 2011-05-17  Jim Meyering  <meyering@redhat.com>
12968
12969         warnings.m4: don't usurp save_CPPFLAGS variable name
12970         * m4/warnings.m4: Prefix local temporary variable name with gl_.
12971
12972         doc: fix typo
12973         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
12974
12975 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12976             Bruno Haible  <bruno@clisp.org>
12977
12978         doc: Tweak recent change.
12979         * README (Portability guidelines): Tweak new text.
12980         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
12981         Interix 6.1.
12982
12983 2011-05-16  Eric Blake  <eblake@redhat.com>
12984
12985         inttypes: avoid autoconf warning
12986         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
12987         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12988
12989 2011-05-16  Sam Steingold <sds@gnu.org>
12990         and Eric Blake  <eblake@redhat.com>
12991
12992         vc-list-files: accept multiple directory operands
12993         * build-aux/vc-list-files: Iterate over all remaining operands.
12994
12995 2011-05-16  Bruno Haible  <bruno@clisp.org>
12996
12997         Fix confusion regarding deprecated modules.
12998         * modules/calloc (Status, Notice): Mark module as deprecated, not
12999         obsolete.
13000         * modules/fnmatch-posix (Status, Notice): Likewise.
13001         * modules/getdate (Status, Notice): Likewise.
13002         * modules/getopt (Status, Notice): Likewise.
13003         * modules/malloc (Status, Notice): Likewise.
13004         * modules/pipe (Status, Notice): Likewise.
13005         * modules/realloc (Status, Notice): Likewise.
13006         * modules/rename-dest-slash (Status, Notice): Likewise.
13007         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
13008         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
13009         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
13010         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
13011         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
13012
13013 2011-05-16  Bruno Haible  <bruno@clisp.org>
13014
13015         doc: List the target platforms.
13016         * doc/gnulib-intro.texi (Target Platforms): New section.
13017         * doc/gnulib.texi (Introduction): Update menu.
13018         * README (Portability guidelines): Refer to the new section. Update
13019         statement about oldest supported environment. Remove rationale why
13020         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
13021         unportable C89 function.
13022         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
13023         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
13024
13025 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13026
13027         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
13028
13029 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
13030
13031         intprops-tests: new module
13032         * modules/intprops-tests, tests/test-intprops.c: New files.
13033
13034         intprops: add safe, portable integer overflow checking
13035         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
13036         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
13037         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
13038         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
13039         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
13040         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
13041         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
13042         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
13043         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
13044         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
13045         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
13046
13047 2011-05-12  James Youngman  <jay@gnu.org>
13048
13049         Add a test for glibc's Bugzilla bug #12378.
13050         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
13051         doesn't allow the literal matching of a lone "[" (which is
13052         required by POSIX).
13053         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
13054
13055 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
13056
13057         Sync glibc change fixing Bugzilla bug #12378.
13058         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
13059         beginning and fall back to matching as normal character if the
13060         string ends before the matching ']' is found.  This is what POSIX
13061         requires.
13062
13063 2011-05-13  Eric Blake  <eblake@redhat.com>
13064
13065         getcwd-lgpl: relax test for FreeBSD
13066         * doc/posix-functions/getcwd.texi (getcwd): Document portability
13067         issue.
13068         * tests/test-getcwd-lgpl.c (main): Relax test.
13069         Reported by Matthias Bolte.
13070
13071 2011-05-11  Eric Blake  <eblake@redhat.com>
13072
13073         test-fflush: silence compiler warning
13074         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
13075
13076 2011-05-11  Bruno Haible  <bruno@clisp.org>
13077
13078         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
13079         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
13080         * modules/canonicalize (Depends-on): Add 'nocrash'.
13081         * modules/canonicalize-lgpl (Depends-on): Likewise.
13082         * doc/posix-functions/realpath.texi: Update platforms list.
13083         Reported by Ryan Schmidt <ryandesign@macports.org>.
13084
13085 2011-05-11  Bruno Haible  <bruno@clisp.org>
13086
13087         group-member: Declare function in <unistd.h>.
13088         * lib/unistd.in.h (group_member): New declaration.
13089         * lib/group-member.h: Remove file.
13090         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
13091         * tests/test-unistd-c++.cc: Check signature of group_member.
13092         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
13093         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
13094         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
13095         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
13096         HAVE_GROUP_MEMBER.
13097         * modules/group-member (Files): Remove lib/group-member.h.
13098         (Depends-on): Add unistd. Specify conditions.
13099         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13100         (Include): Change to <unistd.h>.
13101         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
13102         HAVE_GROUP_MEMBER.
13103         * NEWS: Mention the change.
13104         * lib/euidaccess.c: Don't include group-member.h.
13105
13106 2011-05-11  Bruno Haible  <bruno@clisp.org>
13107
13108         group-member: Document module.
13109         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
13110         module.
13111
13112 2011-05-11  Bruno Haible  <bruno@clisp.org>
13113
13114         fclose: Fix mistake earlier today.
13115         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
13116
13117 2011-05-11  Eric Blake  <eblake@redhat.com>
13118
13119         fclose: preserve fflush errors
13120         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
13121         Reported by Jim Meyering.
13122
13123         bootstrap: support a prereq of 'rpcgen -' on RHEL5
13124         * build-aux/bootstrap (check_versions): When no specific version
13125         is required, merely check that the app produces an exit status
13126         that indicates its existence.
13127
13128         maint.mk: drop redundant check
13129         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
13130         the same but better.
13131
13132 2011-05-11  Bruno Haible  <bruno@clisp.org>
13133
13134         fclose: Fix possible link error.
13135         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
13136         unregister_shadow_fd. Improve comments.
13137         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
13138         Eric Blake.
13139
13140 2011-05-11  Jim Meyering  <meyering@redhat.com>
13141
13142         maint.mk: improve "can not" detection and generalize rule name
13143         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
13144         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
13145         Use the same technique as in sc_prohibit_doubled_word, so that
13146         we recognize "can not" also when the words are separated by a newline.
13147         Suggested by Eric Blake.
13148         (perl_filename_lineno_text_): Define.  Factored out of...
13149         (prohibit_doubled_word_): ...here.  Use the new definition.
13150         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
13151         (prohibit_undesirable_word_seq_RE_): New overridable variable.
13152         (ignore_undesirable_word_sequence_RE_): New overridable variable.
13153
13154 2011-05-10  Eric Blake  <eblake@redhat.com>
13155
13156         fclose: avoid double close race when possible
13157         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
13158         all but WINDOWS_SOCKETS.
13159
13160 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
13161
13162         openat: correct new comment
13163         * lib/openat-proc.c (openat_proc_name): Correct the comment.
13164
13165 2011-05-10  Jim Meyering  <meyering@redhat.com>
13166
13167         openat: add comments
13168         * lib/openat-proc.c (openat_proc_name): Add comments,
13169         mostly from Eric Blake.
13170
13171 2011-05-09  Eric Blake  <eblake@redhat.com>
13172
13173         openat: reduce syscalls in first probe of /proc
13174         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
13175         be a directory.  Simplify the probe for .. bugs.
13176         * modules/openat (Depends-on): Drop same-inode.
13177         Reported by Bastien ROUCARIES.
13178
13179 2011-05-09  Jim Meyering  <meyering@redhat.com>
13180
13181         maint.mk: change semantics/name of tight_scope variables
13182         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
13183         Rename variables to align with semantics that make them more useful.
13184
13185         maint.mk: tweak new rule's name not to impinge
13186         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
13187         (sc_tight_scope): Use new rule name rather than $@-0.
13188
13189         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
13190         * top/maint.mk (sc_tight_scope): New rule.
13191         (sc_tight_scope-0): New rule, ifdef'd out.
13192         (_gl_TS_dir): Default.
13193         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
13194         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
13195
13196 2011-05-09  Simon Josefsson  <simon@josefsson.org>
13197
13198         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
13199         Haible <bruno@clisp.org>.
13200
13201 2011-05-08  Bruno Haible  <bruno@clisp.org>
13202
13203         Comments.
13204         * m4/isnanf.m4: Add comment.
13205         * m4/isnanl.m4: Likewise.
13206
13207 2011-05-08  Bruno Haible  <bruno@clisp.org>
13208
13209         glob: Remove obsolete macro.
13210         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
13211
13212 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
13213
13214         intprops: Sun C 5.11 supports __typeof__
13215         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
13216         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
13217         which is new.
13218         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
13219
13220         intprops: switch to usual gnulib indenting and naming
13221         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
13222         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
13223
13224         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
13225
13226 2011-05-08  Jim Meyering  <meyering@redhat.com>
13227
13228         maint.mk: suppress "Entering/Leaving directory" diag in announcement
13229         * top/maint.mk (release-prep): Use make's --no-print-directory
13230         option when generating the announcement.  This eliminates the
13231         pesky "make[2]: Entering/Leaving directory" diagnostics in the
13232         generated announcement template.
13233
13234 2011-05-08  Bruno Haible  <bruno@clisp.org>
13235
13236         tzset: Fix gettimeofday wrapper on Solaris 2.6.
13237         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
13238         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
13239
13240 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
13241
13242         ignore-value, verify: Omit include files from lib_SOURCES.
13243         * modules/ignore-value, modules/verify (Makefile.am):
13244         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
13245         that leads Automake to duplicate use of am__objects_... variables
13246         in Makefile.in.  See
13247         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
13248
13249 2011-05-07  Bruno Haible  <bruno@clisp.org>
13250
13251         fclose: Simplify autoconf macro.
13252         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
13253         defined.
13254
13255 2011-05-07  Bruno Haible  <bruno@clisp.org>
13256
13257         canonicalize-lgpl: Fix autoconf macro ordering bug.
13258         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
13259         gl_STDLIB_H_DEFAULTS.
13260
13261 2011-05-06  Eric Blake  <eblake@redhat.com>
13262
13263         maintainer-makefile: make sc_po_check easier to tune
13264         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
13265         to probe for strings, such as an alternate location for gnulib.
13266
13267         fclose: guarantee behavior on seekable stdin
13268         * modules/fclose (Depends-on): Add fflush.
13269         * doc/posix-functions/fclose.texi (fclose): Document this.
13270         * tests/test-fclose.c (main): Make test for this unconditional.
13271
13272 2011-05-06  Bruno Haible  <bruno@clisp.org>
13273
13274         fflush, fpurge: Relicense under LGPLv2+.
13275         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
13276         * modules/fpurge (License): Likewise.
13277         With permission from Eric Blake and Jim Meyering.
13278         Suggested by Eric Blake.
13279
13280 2011-05-06  Karl Berry  <karl@gnu.org>
13281
13282         * MODULES.html.sh (func_all_modules): remove exit.
13283
13284 2011-05-06  Jim Meyering  <meyering@redhat.com>
13285
13286         maint.mk: use info-gnu@ as the default only for a stable release
13287         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
13288         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
13289         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
13290         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
13291
13292 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13293
13294         assert-h: new module, which supports C1X-style static_assert
13295         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
13296         * lib/verify.h: Revamp so that this can be copied into assert.h,
13297         while retaining the ability to use it standalone as before.
13298         Rename private identifiers so as not to encroach on the
13299         standard C namespace, since this is now used by assert.h.
13300         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
13301         the old verify_true.
13302         (_GL_VERIFY_TRUE): New macro, with much of the contents of
13303         the old verify_true.  Use _GL_VERIFY_TYPE.
13304         (_GL_VERIFY): New macro, with much of the contents of the old verify.
13305         (static_assert): New macro, if _GL_STATIC_ASSERT_H
13306         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
13307         defined when this file is copied into the replacement assert.h.
13308         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
13309         and _Static_assert is not built in.
13310         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
13311         defined, and use the new macros mentioned above.
13312         * doc/posix-headers/assert.texi: Document this.
13313
13314 2011-05-05  Bruno Haible  <bruno@clisp.org>
13315
13316         fclose, fflush: Respect rules for use of AC_LIBOBJ.
13317         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
13318         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
13319         gl_REPLACE_FCLOSE here.
13320         * modules/fflush (Depends-on): Remove fclose.
13321         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
13322         combination with module 'fclose'.
13323
13324 2011-05-05  Bruno Haible  <bruno@clisp.org>
13325
13326         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
13327         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
13328         gl_FUNC_FFLUSH.
13329         (gl_FUNC_FFLUSH): Use it.
13330         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
13331         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
13332         gl_REPLACE_FSEEKO here.
13333
13334 2011-05-05  Bruno Haible  <bruno@clisp.org>
13335
13336         tzset: Relicense under LGPL.
13337         * modules/tzset (License): Change to LGPL.
13338         No agreement needed; it's a no-op.
13339
13340         strtoimax, strtoumax: Relicense under LGPL.
13341         * modules/strtoimax (License): Change to LGPL.
13342         * modules/strtoumax (License): Likewise.
13343         With permission from Jim Meyering, Paul Eggert:
13344         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
13345         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
13346
13347         getgroups: Relicense under LGPL.
13348         * modules/getgroups (License): Change to LGPL.
13349         With permission from Jim Meyering, Paul Eggert, Eric Blake:
13350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
13351         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
13352         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13353
13354         nanosleep: Relicense under LGPL.
13355         * modules/nanosleep (License): Change to LGPL.
13356         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
13357         Haible:
13358         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
13359         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
13360         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13361         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
13362
13363         futimens: Relicense under LGPL.
13364         * modules/futimens (License): Change to LGPL.
13365         With permission from Eric Blake:
13366         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13367
13368         fflush: Relicense under LGPL.
13369         * modules/fflush (License): Change to LGPL.
13370         With permission from Eric Blake, Bruno Haible, Jim Meyering:
13371         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13372         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
13373         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
13374
13375         tmpfile: Relicense under LGPL.
13376         * modules/tmpfile (License): Change to LGPL.
13377         With permission from Ben Pfaff:
13378         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
13379
13380         isfinite: Relicense under LGPL.
13381         * modules/isfinite (License): Change to LGPL.
13382         With permission from Ben Pfaff, Bruno Haible:
13383         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
13384         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
13385
13386         acosl..tanl: Relicense under LGPL.
13387         * modules/acosl (License): Change to LGPL.
13388         * modules/asinl (License): Likewise.
13389         * modules/atanl (License): Likewise.
13390         * modules/cosl (License): Likewise.
13391         * modules/expl (License): Likewise.
13392         * modules/logl (License): Likewise.
13393         * modules/sinl (License): Likewise.
13394         * modules/sqrtl (License): Likewise.
13395         * modules/tanl (License): Likewise.
13396         Source code originally from glibc and Paolo Bonzini. Agreements:
13397         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
13398         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
13399
13400 2011-05-05  Bruno Haible  <bruno@clisp.org>
13401
13402         signal: Define sighandler_t.
13403         * lib/signal.in.h (sighandler_t): New type.
13404         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
13405         whether sighandler_t is defined.
13406         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
13407         * modules/signal (Depends-on): Add extensions.
13408         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
13409         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
13410         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
13411
13412 2011-05-05  Eric Blake  <eblake@redhat.com>
13413
13414         maint: remove useless REPLACE_*_H macros
13415         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
13416         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
13417         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
13418         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
13419         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
13420         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
13421         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
13422         * m4/btowc.m4: Update callers.
13423         * m4/dirfd.m4: Likewise.
13424         * m4/duplocale.m4: Likewise.
13425         * m4/fchdir.m4: Likewise.
13426         * m4/fdopendir.m4: Likewise.
13427         * m4/inet_ntop.m4: Likewise.
13428         * m4/inet_pton.m4: Likewise.
13429         * m4/ioctl.m4: Likewise.
13430         * m4/mbrlen.m4: Likewise.
13431         * m4/mbrtowc.m4: Likewise.
13432         * m4/mbsinit.m4: Likewise.
13433         * m4/mbsnrtowcs.m4: Likewise.
13434         * m4/mbsrtowcs.m4: Likewise.
13435         * m4/poll.m4: Likewise.
13436         * m4/setlocale.m4: Likewise.
13437         * m4/wcrtomb.m4: Likewise.
13438         * m4/wcsnrtombs.m4: Likewise.
13439         * m4/wcsrtombs.m4: Likewise.
13440         * m4/wctob.m4: Likewise.
13441         * m4/wcwidth.m4: Likewise.
13442         * modules/posix_spawn: Likewise.
13443         * modules/posix_spawn_file_actions_addclose: Likewise.
13444         * modules/posix_spawn_file_actions_adddup2: Likewise.
13445         * modules/posix_spawn_file_actions_addopen: Likewise.
13446         * modules/posix_spawn_file_actions_destroy: Likewise.
13447         * modules/posix_spawn_file_actions_init: Likewise.
13448         * modules/posix_spawnattr_destroy: Likewise.
13449         * modules/posix_spawnattr_getflags: Likewise.
13450         * modules/posix_spawnattr_getpgroup: Likewise.
13451         * modules/posix_spawnattr_getschedparam: Likewise.
13452         * modules/posix_spawnattr_getschedpolicy: Likewise.
13453         * modules/posix_spawnattr_getsigdefault: Likewise.
13454         * modules/posix_spawnattr_getsigmask: Likewise.
13455         * modules/posix_spawnattr_init: Likewise.
13456         * modules/posix_spawnattr_setflags: Likewise.
13457         * modules/posix_spawnattr_setpgroup: Likewise.
13458         * modules/posix_spawnattr_setschedparam: Likewise.
13459         * modules/posix_spawnattr_setschedpolicy: Likewise.
13460         * modules/posix_spawnattr_setsigdefault: Likewise.
13461         * modules/posix_spawnattr_setsigmask: Likewise.
13462         * modules/posix_spawnp: Likewise.
13463
13464 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
13465
13466         Add option to do-release-commit-and-tag to specify branch.
13467         * build-aux/do-release-commit-and-tag: Add --branch.
13468
13469 2011-05-03  Bruno Haible  <bruno@clisp.org>
13470
13471         Avoid unnecessary compilation units, through conditional dependencies.
13472         * modules/accept (Depends-on): Add conditions to the dependencies.
13473         * modules/acosl (Depends-on): Likewise.
13474         * modules/argz (Depends-on): Likewise.
13475         * modules/asinl (Depends-on): Likewise.
13476         * modules/atanl (Depends-on): Likewise.
13477         * modules/atoll (Depends-on): Likewise.
13478         * modules/bind (Depends-on): Likewise.
13479         * modules/btowc (Depends-on): Likewise.
13480         * modules/canonicalize-lgpl (Depends-on): Likewise.
13481         * modules/ceil (Depends-on): Likewise.
13482         * modules/ceilf (Depends-on): Likewise.
13483         * modules/ceill (Depends-on): Likewise.
13484         * modules/chdir-long (Depends-on): Likewise.
13485         * modules/chown (Depends-on): Likewise.
13486         * modules/close (Depends-on): Likewise.
13487         * modules/connect (Depends-on): Likewise.
13488         * modules/cosl (Depends-on): Likewise.
13489         * modules/dirfd (Depends-on): Likewise.
13490         * modules/dprintf (Depends-on): Likewise.
13491         * modules/dprintf-posix (Depends-on): Likewise.
13492         * modules/error (Depends-on): Likewise.
13493         * modules/euidaccess (Depends-on): Likewise.
13494         * modules/expl (Depends-on): Likewise.
13495         * modules/faccessat (Depends-on): Likewise.
13496         * modules/fchdir (Depends-on): Likewise.
13497         * modules/fclose (Depends-on): Likewise.
13498         * modules/fcntl (Depends-on): Likewise.
13499         * modules/fdopendir (Depends-on): Likewise.
13500         * modules/fflush (Depends-on): Likewise.
13501         * modules/floor (Depends-on): Likewise.
13502         * modules/floorf (Depends-on): Likewise.
13503         * modules/floorl (Depends-on): Likewise.
13504         * modules/fnmatch (Depends-on): Likewise.
13505         * modules/fopen (Depends-on): Likewise.
13506         * modules/fprintf-posix (Depends-on): Likewise.
13507         * modules/frexp (Depends-on): Likewise.
13508         * modules/frexp-nolibm (Depends-on): Likewise.
13509         * modules/frexpl (Depends-on): Likewise.
13510         * modules/frexpl-nolibm (Depends-on): Likewise.
13511         * modules/fseek (Depends-on): Likewise.
13512         * modules/fsusage (Depends-on): Likewise.
13513         * modules/ftell (Depends-on): Likewise.
13514         * modules/ftello (Depends-on): Likewise.
13515         * modules/futimens (Depends-on): Likewise.
13516         * modules/getcwd (Depends-on): Likewise.
13517         * modules/getcwd-lgpl (Depends-on): Likewise.
13518         * modules/getdelim (Depends-on): Likewise.
13519         * modules/getdomainname (Depends-on): Likewise.
13520         * modules/getgroups (Depends-on): Likewise.
13521         * modules/gethostname (Depends-on): Likewise.
13522         * modules/getline (Depends-on): Likewise.
13523         * modules/getlogin_r (Depends-on): Likewise.
13524         * modules/getopt-posix (Depends-on): Likewise.
13525         * modules/getpeername (Depends-on): Likewise.
13526         * modules/getsockname (Depends-on): Likewise.
13527         * modules/getsockopt (Depends-on): Likewise.
13528         * modules/getsubopt (Depends-on): Likewise.
13529         * modules/getusershell (Depends-on): Likewise.
13530         * modules/glob (Depends-on): Likewise.
13531         * modules/grantpt (Depends-on): Likewise.
13532         * modules/iconv_open (Depends-on): Likewise.
13533         * modules/iconv_open-utf (Depends-on): Likewise.
13534         * modules/inet_ntop (Depends-on): Likewise.
13535         * modules/inet_pton (Depends-on): Likewise.
13536         * modules/ioctl (Depends-on): Likewise.
13537         * modules/isapipe (Depends-on): Likewise.
13538         * modules/isfinite (Depends-on): Likewise.
13539         * modules/isinf (Depends-on): Likewise.
13540         * modules/lchown (Depends-on): Likewise.
13541         * modules/ldexpl (Depends-on): Likewise.
13542         * modules/link (Depends-on): Likewise.
13543         * modules/linkat (Depends-on): Likewise.
13544         * modules/listen (Depends-on): Likewise.
13545         * modules/logl (Depends-on): Likewise.
13546         * modules/lstat (Depends-on): Likewise.
13547         * modules/mbrlen (Depends-on): Likewise.
13548         * modules/mbrtowc (Depends-on): Likewise.
13549         * modules/mbsinit (Depends-on): Likewise.
13550         * modules/mbsnrtowcs (Depends-on): Likewise.
13551         * modules/mbsrtowcs (Depends-on): Likewise.
13552         * modules/mbtowc (Depends-on): Likewise.
13553         * modules/memcmp (Depends-on): Likewise.
13554         * modules/mkdir (Depends-on): Likewise.
13555         * modules/mkdtemp (Depends-on): Likewise.
13556         * modules/mkfifo (Depends-on): Likewise.
13557         * modules/mkfifoat (Depends-on): Likewise.
13558         * modules/mknod (Depends-on): Likewise.
13559         * modules/mkostemp (Depends-on): Likewise.
13560         * modules/mkostemps (Depends-on): Likewise.
13561         * modules/mkstemp (Depends-on): Likewise.
13562         * modules/mkstemps (Depends-on): Likewise.
13563         * modules/mktime (Depends-on): Likewise.
13564         * modules/nanosleep (Depends-on): Likewise.
13565         * modules/open (Depends-on): Likewise.
13566         * modules/openat (Depends-on): Likewise.
13567         * modules/perror (Depends-on): Likewise.
13568         * modules/poll (Depends-on): Likewise.
13569         * modules/popen (Depends-on): Likewise.
13570         * modules/posix_spawn (Depends-on): Likewise.
13571         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
13572         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
13573         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
13574         * modules/posix_spawnp (Depends-on): Likewise.
13575         * modules/pread (Depends-on): Likewise.
13576         * modules/printf-posix (Depends-on): Likewise.
13577         * modules/ptsname (Depends-on): Likewise.
13578         * modules/putenv (Depends-on): Likewise.
13579         * modules/pwrite (Depends-on): Likewise.
13580         * modules/readline (Depends-on): Likewise.
13581         * modules/readlink (Depends-on): Likewise.
13582         * modules/readlinkat (Depends-on): Likewise.
13583         * modules/recv (Depends-on): Likewise.
13584         * modules/recvfrom (Depends-on): Likewise.
13585         * modules/regex (Depends-on): Likewise.
13586         * modules/remove (Depends-on): Likewise.
13587         * modules/rename (Depends-on): Likewise.
13588         * modules/renameat (Depends-on): Likewise.
13589         * modules/rmdir (Depends-on): Likewise.
13590         * modules/round (Depends-on): Likewise.
13591         * modules/roundf (Depends-on): Likewise.
13592         * modules/roundl (Depends-on): Likewise.
13593         * modules/rpmatch (Depends-on): Likewise.
13594         * modules/select (Depends-on): Likewise.
13595         * modules/send (Depends-on): Likewise.
13596         * modules/sendto (Depends-on): Likewise.
13597         * modules/setenv (Depends-on): Likewise.
13598         * modules/setlocale (Depends-on): Likewise.
13599         * modules/setsockopt (Depends-on): Likewise.
13600         * modules/shutdown (Depends-on): Likewise.
13601         * modules/sigaction (Depends-on): Likewise.
13602         * modules/signbit (Depends-on): Likewise.
13603         * modules/sigprocmask (Depends-on): Likewise.
13604         * modules/sinl (Depends-on): Likewise.
13605         * modules/sleep (Depends-on): Likewise.
13606         * modules/snprintf (Depends-on): Likewise.
13607         * modules/snprintf-posix (Depends-on): Likewise.
13608         * modules/socket (Depends-on): Likewise.
13609         * modules/sprintf-posix (Depends-on): Likewise.
13610         * modules/sqrtl (Depends-on): Likewise.
13611         * modules/stat (Depends-on): Likewise.
13612         * modules/strchrnul (Depends-on): Likewise.
13613         * modules/strdup-posix (Depends-on): Likewise.
13614         * modules/strerror (Depends-on): Likewise.
13615         * modules/strerror_r-posix (Depends-on): Likewise.
13616         * modules/strndup (Depends-on): Likewise.
13617         * modules/strnlen (Depends-on): Likewise.
13618         * modules/strptime (Depends-on): Likewise.
13619         * modules/strsep (Depends-on): Likewise.
13620         * modules/strsignal (Depends-on): Likewise.
13621         * modules/strstr-simple (Depends-on): Likewise.
13622         * modules/strtod (Depends-on): Likewise.
13623         * modules/strtoimax (Depends-on): Likewise.
13624         * modules/strtok_r (Depends-on): Likewise.
13625         * modules/strtoumax (Depends-on): Likewise.
13626         * modules/symlink (Depends-on): Likewise.
13627         * modules/symlinkat (Depends-on): Likewise.
13628         * modules/tanl (Depends-on): Likewise.
13629         * modules/tcgetsid (Depends-on): Likewise.
13630         * modules/tmpfile (Depends-on): Likewise.
13631         * modules/trunc (Depends-on): Likewise.
13632         * modules/truncf (Depends-on): Likewise.
13633         * modules/truncl (Depends-on): Likewise.
13634         * modules/uname (Depends-on): Likewise.
13635         * modules/unlink (Depends-on): Likewise.
13636         * modules/unlockpt (Depends-on): Likewise.
13637         * modules/unsetenv (Depends-on): Likewise.
13638         * modules/usleep (Depends-on): Likewise.
13639         * modules/utimensat (Depends-on): Likewise.
13640         * modules/vasprintf (Depends-on): Likewise.
13641         * modules/vdprintf (Depends-on): Likewise.
13642         * modules/vdprintf-posix (Depends-on): Likewise.
13643         * modules/vfprintf-posix (Depends-on): Likewise.
13644         * modules/vprintf-posix (Depends-on): Likewise.
13645         * modules/vsnprintf (Depends-on): Likewise.
13646         * modules/vsnprintf-posix (Depends-on): Likewise.
13647         * modules/vsprintf-posix (Depends-on): Likewise.
13648         * modules/wcrtomb (Depends-on): Likewise.
13649         * modules/wcscasecmp (Depends-on): Likewise.
13650         * modules/wcscspn (Depends-on): Likewise.
13651         * modules/wcsdup (Depends-on): Likewise.
13652         * modules/wcsncasecmp (Depends-on): Likewise.
13653         * modules/wcsnrtombs (Depends-on): Likewise.
13654         * modules/wcspbrk (Depends-on): Likewise.
13655         * modules/wcsrtombs (Depends-on): Likewise.
13656         * modules/wcsspn (Depends-on): Likewise.
13657         * modules/wcsstr (Depends-on): Likewise.
13658         * modules/wcstok (Depends-on): Likewise.
13659         * modules/wcswidth (Depends-on): Likewise.
13660         * modules/wctob (Depends-on): Likewise.
13661         * modules/wctomb (Depends-on): Likewise.
13662         * modules/wctype (Depends-on): Likewise.
13663         * modules/wcwidth (Depends-on): Likewise.
13664         * modules/write (Depends-on): Likewise.
13665
13666 2011-05-03  Bruno Haible  <bruno@clisp.org>
13667
13668         Support for conditional dependencies.
13669         * doc/gnulib.texi (Module description): Document the syntax of
13670         conditional dependencies.
13671         * gnulib-tool: New option --conditional-dependencies.
13672         (func_usage): Document it.
13673         (cond_dependencies): New variable.
13674         (func_get_automake_snippet_conditional,
13675         func_get_automake_snippet_unconditional): New functions, extracted from
13676         func_get_automake_snippet.
13677         (func_get_automake_snippet): Use them.
13678         (sed_first_32_chars): New variable.
13679         (func_module_shellfunc_name): New function.
13680         (func_module_shellvar_name): New function.
13681         (func_module_conditional_name): New function.
13682         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
13683         func_cond_module_condition): New functions.
13684         (func_modules_transitive_closure): Add support for conditional
13685         dependencies.
13686         (func_emit_lib_Makefile_am): For a conditional module, enclose the
13687         conditional automake snippet in an automake conditional.
13688         (func_emit_autoconf_snippets): Emit shell functions that contain the
13689         code for conditional modules.
13690         (func_import, func_create_testdir): Update specification.
13691
13692 2011-05-03  Eric Blake  <eblake@redhat.com>
13693
13694         test-getaddrinfo: report error information
13695         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
13696
13697 2011-05-03  Jim Meyering  <meyering@redhat.com>
13698
13699         bootstrap: avoid build failure when $GZIP is set
13700         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
13701         program name.  If defined at all, it is supposed to list gzip options.
13702         Reported by Alan Curry in http://debbugs.gnu.org/8609
13703
13704 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
13705
13706         readme-release: new module with release instructions
13707         * modules/readme-release: New module.
13708         * top/README-release: New file, from coreutils, grep, diffutils.
13709         * MODULES.html.sh (Support for maintaining and releasing): Add it.
13710
13711 2011-05-02  Eric Blake  <eblake@redhat.com>
13712
13713         fflush: also replace fclose when fixing fflush
13714         * modules/fflush (Depends-on): Add fclose.
13715         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
13716         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
13717         memstreams with no backing fd.
13718         * doc/posix-functions/fclose.texi (fclose): Document the use of
13719         fflush module to fix the bug.
13720         * tests/test-fclose.c (main): Relax test when fclose is used in
13721         isolation.
13722
13723         fclose: add some tests
13724         * modules/fclose-tests: New test module.
13725         * tests/test-fclose.c: New file.
13726         * doc/posix-functions/fclose.texi (fclose): Document the bug.
13727
13728         fclose: reduced dependencies
13729         * modules/fclose (Depends-on): Switch from fflush/fseeko to
13730         simpler lseek.
13731         * lib/fclose.c (rpl_fclose): Likewise.
13732         Reported by Simon Josefsson.
13733
13734         exit: drop remaining clients
13735         * modules/argmatch (Depends-on): Replace exit with stdlib.
13736         * modules/copy-file (Depends-on): Likewise.
13737         * modules/execute (Depends-on): Likewise.
13738         * modules/exitfail (Depends-on): Likewise.
13739         * modules/obstack (Depends-on): Likewise.
13740         * modules/pagealign_alloc (Depends-on): Likewise.
13741         * modules/pipe-filter-gi (Depends-on): Likewise.
13742         * modules/pipe-filter-ii (Depends-on): Likewise.
13743         * modules/savewd (Depends-on): Likewise.
13744         * modules/spawn-pipe (Depends-on): Likewise.
13745         * modules/wait-process (Depends-on): Likewise.
13746         * modules/xsetenv (Depends-on): Likewise.
13747         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
13748         * modules/git-merge-changelog (Depends-on): Likewise.
13749         * modules/long-options (Depends-on): Likewise.
13750         * modules/pt_chown (Depends-on): Likewise.
13751         * modules/sysexits (Depends-on): Likewise.
13752
13753         freading: relax license from LGPLv3+ to LGPLv2+
13754         * modules/freading (License): Relax LGPL version.
13755
13756 2011-05-02  Bruno Haible  <bruno@clisp.org>
13757
13758         fchdir: Remove unused dependencies.
13759         * modules/fchdir (Depends-on): Remove include_next.
13760
13761 2011-05-02  Bruno Haible  <bruno@clisp.org>
13762
13763         gnulib-tool: Refactor.
13764         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
13765         from func_emit_autoconf_snippets.
13766         (func_emit_autoconf_snippets): Use it.
13767
13768 2011-05-02  Simon Josefsson  <simon@josefsson.org>
13769
13770         * NEWS: Document removal of 'exit'.
13771         * modules/exit: Remove file.
13772
13773 2011-05-01  Bruno Haible  <bruno@clisp.org>
13774
13775         Update DEPENDENCIES.
13776         * DEPENDENCIES (gettext): Recommend the newest release.
13777         Reported by Simon Josefsson.
13778
13779 2011-05-01  Bruno Haible  <bruno@clisp.org>
13780
13781         gnulib-tool: Reduce code duplication.
13782         * gnulib-tool (func_emit_autoconf_snippets): New function.
13783         (func_import, func_create_testdir): Use it.
13784
13785 2011-04-30  Eric Blake  <eblake@redhat.com>
13786
13787         fclose: don't fail on non-seekable input stream
13788         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
13789         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
13790         since fflush is allowed to fail in that case.
13791
13792 2011-04-30  Bruno Haible  <bruno@clisp.org>
13793
13794         dup3: cleanup
13795         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
13796
13797 2011-04-30  Bruno Haible  <bruno@clisp.org>
13798
13799         netdb: Make it work in C++ mode.
13800         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
13801         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
13802         module.
13803         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
13804         gl_MODULE_INDICATOR_FOR_TESTS.
13805         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
13806         * modules/netdb-c++-tests: New file.
13807         * tests/test-netdb-c++.cc: New file.
13808
13809 2011-04-30  Bruno Haible  <bruno@clisp.org>
13810
13811         New modules 'vfscanf', 'vscanf'.
13812         * modules/vfscanf: New file.
13813         * modules/vscanf: New file.
13814         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
13815         here.
13816         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
13817         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
13818
13819 2011-04-30  Bruno Haible  <bruno@clisp.org>
13820
13821         passfd: Add comments.
13822         * lib/passfd.c: Add comments about platforms.
13823
13824 2011-04-30  Bruno Haible  <bruno@clisp.org>
13825
13826         sys_uio: Make <sys/uio.h> self-contained.
13827         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
13828         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
13829
13830 2011-04-30  Bruno Haible  <bruno@clisp.org>
13831
13832         sys_socket: Ensure 'struct iovec' definition.
13833         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
13834         <sys/socket.h>.
13835         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
13836
13837 2011-04-30  Bruno Haible  <bruno@clisp.org>
13838
13839         sys_uio: Protect definition of 'struct iovec'.
13840         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
13841         it as a C struct.
13842
13843 2011-04-30  Bruno Haible  <bruno@clisp.org>
13844
13845         manywarnings: fix indentation
13846         * m4/manywarnings.m4: Indent by 2 spaces consistently.
13847
13848 2011-04-30  Pádraig Brady <P@draigBrady.com>
13849
13850         manywarnings: add -Wno-missing-field-initializers if needed.
13851         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
13852         option if it's needed to allow initialization with { 0, }
13853
13854 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
13855
13856         announce-gen: cosmetic improvement
13857         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
13858
13859 2011-04-29  Jim Meyering  <meyering@redhat.com>
13860
13861         vc-list-files: indent with spaces, not TABs
13862         * build-aux/vc-list-files: Convert leading TABs to spaces,
13863         to match the style of most other files in gnulib.
13864
13865         announce-gen: indent with spaces, not TABs
13866         * build-aux/announce-gen: Convert all TABs to spaces, to match
13867         the style of most other files in gnulib.
13868
13869 2011-04-29  Eric Blake  <eblake@redhat.com>
13870
13871         quotearg: avoid uninitialized variable use
13872         * lib/quotearg.c (quoting_options_from_style): Initialize
13873         remaining fields, and ensure that custom styles are only used via
13874         quoting_options rather than quoting_style.
13875
13876 2011-04-29  Jim Meyering  <meyering@redhat.com>
13877
13878         maint.mk: remove unused VC-tag variable
13879         * top/maint.mk (VC-tag): Remove unused variable.
13880
13881 2011-04-29  Bruno Haible  <bruno@clisp.org>
13882
13883         netdb: fix gai_strerror replacements
13884         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
13885         * modules/netdb: Substitute it.
13886
13887 2011-04-29  Jim Meyering  <meyering@redhat.com>
13888
13889         test-getcwd.c: avoid new set-but-not-used warning
13890         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
13891         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
13892         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
13893         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
13894
13895         test-hash.c: avoid a new shadowing warning
13896         * tests/test-hash.c (main): Don't shadow "dup".
13897
13898 2011-04-28  Eric Blake  <eblake@redhat.com>
13899
13900         getaddrinfo: fix gai_strerror signature
13901         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
13902         and work around mingw with UNICODE defined.
13903         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
13904         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
13905         * modules/netdb (Makefile.am): Substitute it.
13906         * lib/netdb.in.h (gai_strerror): Declare replacement.
13907         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
13908         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
13909         the fix.
13910
13911         getsockopt: avoid compiler warning
13912         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
13913         Reported by Matthias Bolte.
13914
13915         tests: drop unused link dependency
13916         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
13917         * modules/dirent-safer-tests (Makefile.am): Likewise.
13918         * modules/fdopendir-tests (Makefile.am): Likewise.
13919         * modules/mkfifoat-tests (Makefile.am): Likewise.
13920         * modules/openat-safer-tests (Makefile.am): Likewise.
13921         * modules/openat-tests (Makefile.am): Likewise.
13922         * modules/readlinkat-tests (Makefile.am): Likewise.
13923         * modules/symlinkat-tests (Makefile.am): Likewise.
13924         * modules/linkat-tests (Makefile.am): Likewise.
13925         (Depends-on): Switch to filenamecat-lgpl.
13926         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
13927         LIBINTL.
13928         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
13929         * tests/test-linkat.c (main): Don't require xalloc.
13930
13931         hash, mgetgroups: drop xalloc dependency
13932         * lib/hash.c (includes): Adjust includes.
13933         * lib/mgetgroups.c (includes): Likewise.
13934         (xgetgroups): Move...
13935         * lib/xgetgroups.c: ...to new file.
13936         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
13937         * modules/xgetgroups: New file, split from...
13938         * modules/mgetgroups: ...here.
13939         (Depends-on): Add xalloc-oversized.
13940         * modules/hash (Depends-on): Likewise.
13941         * modules/hash-tests (Depends-on): Drop xalloc.
13942         (test_hash_LDADD): Drop unused library.
13943         * tests/test-hash.c (main): Break xalloc dependency.
13944         (includes): Drop unused include.
13945
13946         xalloc-oversized: new module
13947         * modules/xalloc-oversized: New module.
13948         * modules/xalloc (Depends-on): Add it.
13949         * lib/xalloc.h (xalloc_oversized): Move...
13950         * lib/xalloc-oversized.h: ...into new file.
13951
13952         utimecmp: drop dependency on xmalloc
13953         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
13954         due to memory pressure.
13955         * modules/utimecmp (Depends-on): Drop xalloc.
13956
13957 2011-04-27  Eric Blake  <eblake@redhat.com>
13958
13959         getcwd: fix mingw bugs
13960         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
13961         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
13962         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
13963
13964 2011-04-27  Bruno Haible  <bruno@clisp.org>
13965
13966         mkstemps: Ensure declaration on MacOS X 10.5.
13967         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
13968         * doc/glibc-functions/mkstemps.texi: Document header file problem on
13969         MacOS X.
13970
13971 2011-04-27  Bruno Haible  <bruno@clisp.org>
13972
13973         mkstemp: More documentation.
13974         * doc/posix-functions/mkstemp.texi: Document header file problem on
13975         MacOS X.
13976
13977 2011-04-27  Bruno Haible  <bruno@clisp.org>
13978
13979         mkstemp: Tweak configure message when cross-compiling.
13980         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
13981         result as a guess.
13982
13983 2011-04-27  Bruno Haible  <bruno@clisp.org>
13984
13985         clean-temp: Clarify what it does.
13986         * lib/clean-temp.h: Add more comments.
13987         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
13988         module.
13989         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
13990         * doc/glibc-functions/mkstemps.texi: Likewise.
13991         * doc/glibc-functions/mkostemps.texi: Likewise.
13992
13993 2011-04-27  Eric Blake  <eblake@redhat.com>
13994
13995         fchdir: avoid extra chdir and fix test
13996         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
13997         getcwd-lgpl.
13998         * lib/fchdir.c (get_name): Any absolute name will do; it does not
13999         have to be canonical.
14000         (canonicalize_file_name): Drop unused macro.
14001         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
14002
14003         filenamecat-lgpl: fix licence
14004         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
14005         when it was first created.
14006
14007         linkat, renameat: add missing dependency
14008         * modules/linkat (Depends-on): Require getcwd-lgpl.
14009         * modules/renameat (Depends-on): Likewise.
14010
14011         tests: reduce dependencies
14012         * tests/test-linkat.c (main): Use lighter-weight getcwd.
14013         * tests/test-renameat.c (main): Likewise.
14014         * modules/linkat-tests (Depends-on): Relax dependency.
14015         * modules/renameat-tests (Depends-on): Likewise.
14016         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
14017         dependency explicit.
14018
14019         save-cwd: reduce default dependency
14020         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
14021         * lib/save-cwd.c: Update comments.
14022         * NEWS: Document the semantic change.
14023
14024         getcwd: enhance tests
14025         * tests/test-getcwd-lgpl.c: New file, taken from...
14026         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
14027         repeat long path stress tests from m4 probe.
14028         * modules/getcwd-lgpl-tests: New module.
14029         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
14030         * m4/getcwd-abort-bug.m4: Update comment.
14031         * m4/getcwd-path-max.m4: Likewise.
14032
14033         getcwd-lgpl: new module
14034         * modules/getcwd-lgpl: New module.
14035         * lib/getcwd-lgpl.c: New file.
14036         * doc/posix-functions/getcwd.texi (getcwd): Document it.
14037         * MODULES.html.sh (lacking POSIX:2008): Likewise.
14038         * modules/getcwd (configure.ac): Set C witness.
14039         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
14040
14041         getcwd: tweak comments
14042         * m4/getcwd-abort-bug.m4: Fix comments.
14043         * m4/getcwd-path-max.m4: Likewise.
14044         * m4/getcwd.m4: Likewise.
14045
14046 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
14047         and Eric Blake  <eblake@redhat.com>
14048
14049         mkstemp: replace if system version uses wrong permissions
14050         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
14051         read/write mode bits set in file created by mkstemp.
14052         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
14053
14054 2011-04-27  Eric Blake  <eblake@redhat.com>
14055
14056         passfd: avoid compiler warning
14057         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
14058         Reported by Laine Stump.
14059
14060 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
14061
14062         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
14063         required by the NetBSD (and perhaps other 4.4BSD derived) join.
14064
14065 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
14066         and Eric Blake  <eblake@redhat.com>
14067
14068         mkstemp: mention clean-temp module
14069         * lib/mkstemp.c: Add comment.
14070         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
14071
14072 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
14073
14074         inttypes: also provide default values for 32-bit tests
14075         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
14076         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
14077
14078 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
14079
14080         strtoumax: remove dependency on strtoimax
14081         This is like the strtoull change of yesterday.
14082         * modules/strtoumax (Files): Add lib/strtoimax.c.
14083         (Depends-on): Remove strtoimax and add verify.
14084
14085         inttypes-incomplete: new module
14086         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
14087         all but the PRI* and SCN* parts of gl_INTTYPES_H.
14088         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
14089         of gl_INTTYPES_H.
14090         (gl_INTTYPES_H): Rewrite in terms of these new macros.
14091         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
14092         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
14093         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
14094         * modules/strtoumax, modules/xstrtol (Depends-on):
14095         Depend on inttypes-incomplete, not inttypes.
14096         * modules/inttypes-incomplete: New module, containing the contents
14097         of the old modules/inttypes module, except that the Files: section
14098         omits m4/inttypes-pri.m4, and the configure.ac section invokes
14099         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
14100         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
14101         (Depends-on): Depend only on inttypes-incomplete.
14102         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
14103
14104         inttypes: omit now-redundant strtoimax and strtoumax work
14105         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
14106         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
14107
14108         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
14109         This supports apps that need pointers to strtoimax and strtoumax,
14110         and ports to HP-UX 11.00 64.bit, which has macros that expand to
14111         nonexistent functions.  See
14112         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
14113         et seq.
14114         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
14115         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
14116         a macro.
14117         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14118
14119 2011-04-25  Simon Josefsson  <simon@josefsson.org>
14120
14121         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
14122
14123 2011-04-25  Bruno Haible  <bruno@clisp.org>
14124
14125         strtol, strtoul: Mark modules as obsolete.
14126         * modules/strtol (Status, Notice): New sections.
14127         * modules/strtoul (Status, Notice): New sections.
14128
14129 2011-04-25  Bruno Haible  <bruno@clisp.org>
14130
14131         strtod: Remove check for strtod, unless supporting old platforms.
14132         * modules/strtod-obsolete: New file.
14133         * m4/strtod-obsolete.m4: New file.
14134         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
14135         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
14136         * modules/strtod (Depends-on): Add strtod-obsolete.
14137         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
14138
14139 2011-04-25  Bruno Haible  <bruno@clisp.org>
14140
14141         strcase: Make module obsolete.
14142         * modules/strcase (Status, Notice): New sections.
14143
14144 2011-04-25  Bruno Haible  <bruno@clisp.org>
14145
14146         dup2: Remove check for dup2, unless supporting old obsolete platforms.
14147         * modules/dup2-obsolete: New file.
14148         * m4/dup2-obsolete.m4: New file.
14149         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
14150         gl_FUNC_DUP2_OBSOLETE is not also defined.
14151         * modules/dup2 (Depends-on): Add dup2-obsolete.
14152         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
14153
14154 2011-04-25  Bruno Haible  <bruno@clisp.org>
14155
14156         strnlen: Avoid memchr related link error on old obsolete platforms.
14157         * modules/memchr-obsolete: New file.
14158         * m4/memchr-obsolete.m4: New file.
14159         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
14160         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
14161         * modules/memchr (Depends-on): Add memchr-obsolete.
14162         * modules/strnlen (Depends-on): Likewise.
14163         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
14164
14165 2011-04-25  Jim Meyering  <meyering@redhat.com>
14166
14167         maint.mk: makefile_at_at_check extend and clean up
14168         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
14169         in addition to */Makefile.am.
14170         Exempt legitimate uses of @VAR@ notation, e.g.,
14171         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
14172         Remove obsolete coreutils-specific comment.
14173         Prompted by discussion here:
14174         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
14175
14176 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
14177
14178         strtoul: remove dependency on strtol
14179         This is so that 'configure' need not check for strtol merely because
14180         the application needs strtoul.
14181         * modules/strtoul (Files): Add lib/strtol.c.
14182         (Depends-on): Remove strtol.
14183
14184         strtoull: remove dependency on strtoul
14185         This is like the strtoll change.
14186         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
14187         (Depends-on): Remove strtoul.
14188
14189         strtoll: remove dependency on strtol
14190         This is so that 'configure' need not check for strtol merely because
14191         the application needs strtoll.
14192         * modules/strtoll (Files): Add lib/strtol.c.
14193         (Depends-on): Remove strtol.
14194
14195 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14196
14197         inttypes: Move some configure check to module 'imaxdiv'.
14198         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
14199         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
14200         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
14201
14202 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14203
14204         inttypes: Move some configure check to module 'imaxabs'.
14205         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
14206         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
14207         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
14208
14209 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14210
14211         inttypes: Remove configure tests that are not needed since 2009-12-31.
14212         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
14213         gl_cv_header_working_inttypes_h.
14214
14215 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14216
14217         * modules/strnlen (Depends-on): Remove memchr.
14218         The strnlen implementation doesn't need the memchr module's fixes; see
14219         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
14220
14221         strtol: remove dependency on wchar
14222         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
14223         * modules/strtol (Depends-on): Remove wchar.
14224
14225 2011-04-21  Eric Blake  <eblake@redhat.com>
14226
14227         passfd: fix test regression on Linux
14228         * modules/passfd-tests (configure.ac): Correct socketpair check.
14229
14230         passfd: speed up configure and drop unused code
14231         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
14232         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
14233         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
14234         Instead of probing at configure for unix_scm_rights_bsd44_way,
14235         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
14236         check to a struct member probe.
14237         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
14238         (sendfd, recvfd): Update preprocessor checks.
14239         * modules/passfd (Files): Reflect rename, and drop unused file.
14240         (Depends-on): Drop unused dependency.
14241
14242         passfd: allow compilation on mingw
14243         * modules/sys_socket (Depends-on): Add sys_uio.
14244         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
14245         iovec and a minimal struct msghdr.
14246         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
14247         * tests/test-sys_socket.c (main): Enhance test.
14248         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
14249         guaranteed to provide what we need.
14250         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
14251         * modules/passfd-tests (Depends-on): Add sys_wait.
14252         * tests/test-passfd.c (main): Skip test on mingw, for now.
14253         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
14254         partial 'struct msghdr' implementation.
14255
14256         sys_uio: new module
14257         * modules/sys_uio: New module.
14258         * modules/sys_uio-tests: Likewise.
14259         * lib/sys_uio.in.h: New file.
14260         * m4/sys_uio_h.m4: Likewise.
14261         * tests/test-sys_uio.c: Likewise.
14262         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
14263         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
14264
14265 2011-04-20  Jim Meyering  <meyering@redhat.com>
14266
14267         useless-if-before-free: avoid false-positive
14268         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
14269         disjunct so that it too requires a terminating ";".  Without that,
14270         this script would identify as useless one statement from gcc that
14271         was not:
14272           if (aligned_ptr)
14273             free (((void **) aligned_ptr) [-1]);
14274
14275 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
14276
14277         doc: update users.txt.
14278         * users.txt: Add barcode.
14279
14280 2011-04-19  Bruno Haible  <bruno@clisp.org>
14281
14282         ioctl: Remove link dependency on native Windows.
14283         * lib/fd-hook.h: Renamed from lib/close-hook.h.
14284         (gl_close_fn, gl_ioctl_fn): New types.
14285         (struct fd_hook): Renamed from struct close_hook. Change type of
14286         private_close_fn field. Add private_ioctl_fn field.
14287         (close_hook_fn): Add parameter for primary close method.
14288         (execute_close_hooks, execute_all_close_hooks): Likewise.
14289         (ioctl_hook_fn): New type.
14290         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
14291         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
14292         argument.
14293         (unregister_fd_hook): Renamed from unregister_close_hook.
14294         * lib/fd-hook.c: Renamed from lib/close-hook.c.
14295         Don't include <unistd.h>.
14296         (close): Remove undef.
14297         (anchor): Update.
14298         (execute_close_hooks): Add argument for primary close method.
14299         (execute_all_close_hooks): Likewise.
14300         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
14301         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
14302         argument. Allow each argument to be NULL.
14303         (unregister_fd_hook): Renamed from unregister_close_hook.
14304         * lib/close.c (rpl_close): Pass 'close' function pointer to
14305         execute_all_close_hooks.
14306         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
14307         (primary_ioctl): New function.
14308         (ioctl): Don't call ioctlsocket here. Instead, call
14309         execute_all_ioctl_hooks.
14310         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
14311         close method.
14312         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
14313         (fd_sockets_hook): Renamed from close_sockets_hook.
14314         (gl_sockets_startup, gl_sockets_cleanup): Update.
14315         * modules/fd-hook: Renamed from modules/close-hook. Update.
14316         * modules/close (Depends-on): Add fd-hook, remove close-hook.
14317         * modules/sockets (Depends-on): Likewise.
14318         * modules/ioctl (Depends-on): Add fd-hook.
14319         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
14320         GNULIB_SOCKET.
14321
14322 2011-04-19  Bruno Haible  <bruno@clisp.org>
14323
14324         Move the support of O_NONBLOCK in open() to the 'open' module.
14325         * modules/nonblocking (Depends-on): Remove 'open'.
14326         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
14327         gl_cv_have_open_O_NONBLOCK.
14328         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
14329         O_NONBLOCK support.
14330         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
14331
14332 2011-04-17  Bruno Haible  <bruno@clisp.org>
14333
14334         pipe2: Simplify code.
14335         * lib/pipe2.c (pipe2): Reduce code duplication.
14336
14337 2011-04-17  Bruno Haible  <bruno@clisp.org>
14338
14339         nonblocking: Add comment.
14340         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
14341
14342 2011-04-17  Bruno Haible  <bruno@clisp.org>
14343
14344         nonblocking: Add tests for sockets.
14345         * tests/test-nonblocking-socket.sh: New file.
14346         * tests/test-nonblocking-socket-main.c: New file.
14347         * tests/test-nonblocking-socket-child.c: New file.
14348         * tests/test-nonblocking-socket.h: New file.
14349         * tests/socket-server.h: New file.
14350         * tests/socket-client.h: New file.
14351         * modules/nonblocking-socket-tests: New file.
14352         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
14353
14354 2011-04-17  Bruno Haible  <bruno@clisp.org>
14355
14356         nonblocking: Add tests for pipes.
14357         * tests/test-nonblocking-pipe.sh: New file.
14358         * tests/test-nonblocking-pipe-main.c: New file.
14359         * tests/test-nonblocking-pipe-child.c: New file.
14360         * tests/test-nonblocking-pipe.h: New file.
14361         * tests/test-nonblocking-writer.h: New file.
14362         * tests/test-nonblocking-reader.h: New file.
14363         * tests/test-nonblocking-misc.h: New file.
14364         * modules/nonblocking-pipe-tests: New file.
14365         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
14366
14367 2011-04-16  Bruno Haible  <bruno@clisp.org>
14368
14369         gettext: Clarify the needed programmer actions.
14370         * modules/gettext (Notice): New field.
14371         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
14372
14373 2011-04-16  Bruno Haible  <bruno@clisp.org>
14374
14375         strchrnul: Tweak last commit.
14376         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
14377         bug.
14378         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
14379         as in _GL_FUNCDECL_SYS.
14380         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
14381         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
14382
14383 2011-04-15  Eric Blake  <eblake@redhat.com>
14384
14385         strchrnul: work around cygwin bug
14386         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
14387         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
14388         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
14389         * modules/string (Makefile.am): Substitute it.
14390         * lib/string.in.h (strchrnul): Use it.
14391
14392 2011-04-15  Bruno Haible  <bruno@clisp.org>
14393
14394         Don't require lib/stdio-write.c when only module 'stdio' is used.
14395         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
14396         invocation.
14397         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
14398
14399 2011-04-14  Bruno Haible  <bruno@clisp.org>
14400
14401         Support non-blocking pipe I/O in read() on native Windows.
14402         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
14403         (read): New declaration.
14404         * lib/read.c: New file.
14405         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
14406         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
14407         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
14408         vscanf): New declarations.
14409         * lib/stdio-read.c: New file.
14410         * m4/read.m4: New file.
14411         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
14412         REPLACE_READ.
14413         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
14414         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14415         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
14416         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
14417         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
14418         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14419         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
14420         * modules/read: New file.
14421         * modules/nonblocking (Files): Add lib/stdio-read.c.
14422         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
14423         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
14424         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14425         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
14426         * modules/pread (Depends-on): Add read.
14427         * modules/safe-read (Depends-on): Likewise.
14428         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
14429         gets, scanf, vfscanf, vscanf): Verify signatures.
14430         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
14431         problem with non-blocking pipes.
14432         * doc/posix-functions/fgetc.texi: Likewise.
14433         * doc/posix-functions/fgets.texi: Likewise.
14434         * doc/posix-functions/fread.texi: Likewise.
14435         * doc/posix-functions/fscanf.texi: Likewise.
14436         * doc/posix-functions/getc.texi: Likewise.
14437         * doc/posix-functions/getchar.texi: Likewise.
14438         * doc/posix-functions/gets.texi: Likewise.
14439         * doc/posix-functions/scanf.texi: Likewise.
14440         * doc/posix-functions/vfscanf.texi: Likewise.
14441         * doc/posix-functions/vscanf.texi: Likewise.
14442
14443 2011-04-14  Bruno Haible  <bruno@clisp.org>
14444
14445         Support non-blocking pipe I/O in write() on native Windows.
14446         * lib/write.c (rpl_write): Split a write request that failed merely
14447         because the byte count was larger than the pipe buffer's size.
14448         * doc/posix-functions/write.texi: Mention the problem with large byte
14449         counts.
14450
14451 2011-04-14  Bruno Haible  <bruno@clisp.org>
14452
14453         wchar: Ensure that wchar_t gets defined on uClibc.
14454         * lib/wchar.in.h: On uClibc, include <stddef.h>.
14455         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
14456
14457 2011-04-13  Bruno Haible  <bruno@clisp.org>
14458
14459         safe-write, full-read: Avoid unnecessary compilation units.
14460         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
14461         (Depends-on): Remove safe-read. Add ssize_t.
14462         * modules/full-read (Files): Add lib/full-write.c.
14463         (Depends-on): Add full-write.
14464
14465 2011-04-13  Bruno Haible  <bruno@clisp.org>
14466
14467         Support non-blocking pipe I/O and SIGPIPE in pwrite().
14468         * modules/pwrite (Depends-on): Add 'write'.
14469
14470 2011-04-13  Bruno Haible  <bruno@clisp.org>
14471
14472         Support non-blocking pipe I/O in write() on native Windows.
14473         * lib/unistd.in.h (write): Enable replacement also if
14474         GNULIB_UNISTD_H_NONBLOCKING is 1.
14475         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
14476         (rpl_write): When failing to write on a non-blocking pipe, change
14477         errno from ENOSPC to EAGAIN.
14478         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
14479         putchar, puts, vfprintf, vprintf): Enable replacement also if
14480         GNULIB_STDIO_H_NONBLOCKING is 1.
14481         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
14482         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
14483         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
14484         CALL_WITH_SIGPIPE_EMULATION.
14485         (CALL_WITH_SIGPIPE_EMULATION): Use them.
14486         * m4/nonblocking.m4: New file.
14487         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
14488         for non-blocking I/O support.
14489         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14490         GNULIB_UNISTD_H_NONBLOCKING.
14491         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
14492         required for non-blocking I/O support.
14493         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
14494         * modules/nonblocking (Files): Add m4/nonblocking.m4,
14495         lib/stdio-write.c, m4/asm-underscore.m4.
14496         (Depends-on): Add stdio, unistd.
14497         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
14498         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
14499         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
14500         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
14501         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
14502         problem with non-blocking pipes.
14503         * doc/posix-functions/fputc.texi: Likewise.
14504         * doc/posix-functions/fputs.texi: Likewise.
14505         * doc/posix-functions/fwrite.texi: Likewise.
14506         * doc/posix-functions/printf.texi: Likewise.
14507         * doc/posix-functions/putc.texi: Likewise.
14508         * doc/posix-functions/putchar.texi: Likewise.
14509         * doc/posix-functions/puts.texi: Likewise.
14510         * doc/posix-functions/vfprintf.texi: Likewise.
14511         * doc/posix-functions/vprintf.texi: Likewise.
14512         * doc/posix-functions/write.texi: Likewise.
14513
14514 2011-04-10  Jim Meyering  <meyering@redhat.com>
14515
14516         maint.mk: prohibit doubled words
14517         Detect them also when they're separated by a newline.
14518         There are 3 ways to customize it:
14519           - disable the test on a per file basis, as usual with rules using
14520             $(VC_LIST_EXCEPT)
14521           - replace the default doubled-word-selecting regexp (affects all files)
14522           - ignore a particular file-vs-doubled-word match
14523         I nearly used that last one to ignore the "is is" match in
14524         coreutils' NEWS file, since the text was "ls -is is ..."
14525         To do that, I would have added this line to cfg.mk:
14526           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
14527         but it would have ignored any "is is" match in NEWS.
14528         Low probability, but still...
14529         Instead, I changed the text, slightly:
14530           -  ls -is is now consistent with ls -lis in ignoring values returned
14531           +  "ls -is" is now consistent with ls -lis in ignoring values returned
14532         * top/maint.mk (prohibit_double_word_RE_): Provide default.
14533         (prohibit_doubled_word_): Define.
14534         (sc_prohibit_doubled_word): New rule.
14535         (sc_prohibit_the_the): Remove.  Subsumed by the above.
14536
14537 2011-04-10  Jim Meyering  <meyering@redhat.com>
14538
14539         maint: fix doubled-word typo in comment
14540         * m4/gethostname.m4: s/is is/it is/
14541         * m4/getdomainname.m4: Likewise.
14542
14543 2011-04-10  Jim Meyering  <meyering@redhat.com>
14544
14545         maint: remove doubled word: s/it it/it/
14546         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
14547
14548 2011-04-10  Jim Meyering  <meyering@redhat.com>
14549
14550         maint.mk: remove useless semicolon and backslash
14551         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
14552         semicolon and backslash.
14553
14554 2011-04-10  Bruno Haible  <bruno@clisp.org>
14555
14556         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
14557         * modules/stdint-tests (Depends-on): Add wchar.
14558
14559 2011-04-10  Jim Meyering  <meyering@redhat.com>
14560
14561         maint: remove doubled words in comments, e.g., s/a a/a/
14562         * lib/strptime.c (day_of_the_week): s/the the/the/
14563         * tests/test-chown.h (test_chown): s/a a/a/
14564
14565         test-chown.h: correct a cast
14566         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
14567         when the destination is a stat.st_gid.
14568
14569 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
14570
14571         getaddrinfo: Fix test for sa_len member.
14572         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
14573         include <sys/types.h> before <sys/socket.h>.
14574
14575 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14576
14577         maint: change "can not" to "cannot"
14578         * doc/posix-functions/iconv.texi (iconv): This one crossed line
14579         boundaries.
14580
14581 2011-04-09  Jim Meyering  <meyering@redhat.com>
14582
14583         maint: change "a a" to "a"
14584         * tests/test-lchown.h (test_lchown): s/a a/a/
14585
14586         maint.mk: prohibit \<the the\>
14587         * top/maint.mk (sc_prohibit_the_the): New rule.
14588
14589         maint: fix "the the" in comment
14590         * lib/count-one-bits.h: s/the the/the/
14591
14592         maint: change "can not" to "cannot"
14593         But do not change the occurrences in maintain.texi or in
14594         build-aux/po/Makefile.in.in, which I presume comes from gettext.
14595         * doc/gnulib-tool.texi: s/can not/cannot/
14596         * doc/posix-functions/accept.texi (accept): Likewise.
14597         * doc/posix-functions/socket.texi (socket): Likewise.
14598         * lib/mbrtowc.c: Likewise.
14599
14600         maint.mk: prohibit use of "can not"
14601         * top/maint.mk (sc_prohibit_can_not): New rule.
14602         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
14603
14604 2011-04-09  Bruno Haible  <bruno@clisp.org>
14605
14606         careadlinkat: Guard against misuse of careadlinkatcwd.
14607         * lib/careadlinkat.c: Include <stdlib.h>.
14608         (careadlinkatcwd): Check that the fd argument is as expected.
14609
14610 2011-04-09  Bruno Haible  <bruno@clisp.org>
14611
14612         careadlinkat: Use common coding style.
14613         * lib/careadlinkat.c: Move gnulib includes after system includes.
14614
14615 2011-04-09  Bruno Haible  <bruno@clisp.org>
14616
14617         careadlinkat: Clarify specification.
14618         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
14619         (careadlinkatcwd): Add comment.
14620         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
14621
14622 2011-04-09  Bruno Haible  <bruno@clisp.org>
14623
14624         areadlinkat: Avoid link error on many platforms.
14625         * modules/areadlinkat (Depends-on): Add areadlink.
14626
14627 2011-04-09  Bruno Haible  <bruno@clisp.org>
14628
14629         allocator, careadlinkat: Fix double-inclusion guard.
14630         * lib/allocator.h: Fix double-inclusion guard.
14631         * lib/careadlinkat.h: Likewise.
14632
14633 2011-04-09  Bruno Haible  <bruno@clisp.org>
14634
14635         relocatable-prog-wrapper: Update after module 'areadlink' changed.
14636         * lib/relocwrapper.c: Update dependencies hierarchy.
14637         * build-aux/install-reloc: Update list of files to be compiled.
14638         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
14639         lib/allocator.[hc].
14640
14641 2011-04-08  Eric Blake  <eblake@redhat.com>
14642
14643         strftime: silence gnulib-tool warning
14644         * modules/strftime-tests (Depends-on): Drop automatic dependency.
14645
14646 2011-04-08  Bruno Haible  <bruno@clisp.org>
14647
14648         verify: Fix syntax error with GCC 4.6 in C++ mode.
14649         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
14650         (HAVE_STATIC_ASSERT): New macro.
14651         (verify_true, verify): Use 'static_assert' if it is supported and
14652         '_Static_assert' is not supported.
14653
14654 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
14655
14656         allocator: New module.
14657         * modules/allocator, lib/allocator.c: New files.
14658         * lib/allocator.h (stdlib_allocator): New decl.
14659         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
14660         Remove.  Do not include <stdlib.h>.
14661         (careadlinkat): Use stdlib_allocator instead of rolling our own.
14662         * modules/careadlinkat (Files): Remove lib/allocator.h.
14663         (Depends-on): Add allocator.
14664
14665         stdlib: let modules use system malloc, realloc
14666         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
14667         if !_GL_USE_STDLIB_ALLOC.
14668         (malloc, realloc): Limit this change to a smaller scope.
14669
14670         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
14671         (malloc, realloc): Don't #undef; no longer needed.
14672         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14673         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14674         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
14675         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14676         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14677         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14678         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14679         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
14680
14681         careadlinkat: rename members to avoid problem
14682         * lib/allocator.h (struct allocator): Rename members from
14683         malloc/realloc to allocate/reallocate, to avoid problems if malloc
14684         and realloc are #define'd.  Reported by Eric Blake in
14685         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
14686         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
14687
14688 2011-04-08  Eric Blake  <eblake@redhat.com>
14689
14690         nonblocking: reduce dependency
14691         * tests/test-nonblocking.c: Only test sockets when in use.
14692         * modules/nonblocking-tests (Depends-on): Drop socket.
14693         (Makefile.am): Link even if sockets are not present.
14694         * modules/pipe2-tests (Makefile.am): Likewise.
14695         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
14696
14697         pipe2: fix O_NONBLOCK support on mingw
14698         * modules/pipe2 (Depends-on): Add nonblocking.
14699         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
14700         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
14701         * tests/test-nonblocking.c (main): Likewise.
14702         * modules/pipe2-tests (Makefile.am): Avoid link failure.
14703
14704         fcntl-h: fix O_ACCMODE on cygwin
14705         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
14706         * lib/fcntl.in.h (O_ACCMODE): Fix it.
14707
14708         pipe-filter: drop O_NONBLOCK workarounds
14709         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
14710         * modules/pipe-filter-ii (Depends-on): Likewise.
14711         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
14712
14713         nonblocking: provide O_NONBLOCK for mingw
14714         * modules/nonblocking (Depends-on): Add open.
14715         (configure.ac): Set new witness macro.
14716         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
14717         * modules/fcntl-h (Makefile.am): Substitute it.
14718         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
14719         nonblocking module is in use.
14720         * lib/nonblocking.c: Adjust portability test.
14721         * lib/open.c (open): Don't let native open see gnulib flag.
14722         * tests/test-fcntl-h.c (main): Enhance test.
14723         * tests/test-open.h (test_open): Likewise.
14724         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
14725
14726         careadlinkat: fix compilation error on mingw
14727         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
14728         within struct allocator.
14729
14730 2011-04-06  Eric Blake  <eblake@redhat.com>
14731
14732         binary-io: relicense under LGPLv2+
14733         * modules/binary-io (License): Relax to LGPLv2+.
14734         Requested for libvirt, and required by pipe2.
14735
14736 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
14737
14738         verify: use _Static_assert if available
14739         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
14740         (verify_true, verify): Use it if available.  This generates better
14741         diagnostics with GCC 4.6.0 and later.
14742
14743 2011-04-05  Bruno Haible  <bruno@clisp.org>
14744
14745         Remove leftover generated .h files after config.status changed.
14746
14747         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
14748         GL_GENERATE_ALLOCA_H.
14749         * modules/alloca-opt (Makefile.am): Remove alloca.h if
14750         GL_GENERATE_ALLOCA_H evaluates to false.
14751
14752         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
14753         GL_GENERATE_ARGZ_H.
14754         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
14755         evaluates to false.
14756
14757         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
14758         GL_GENERATE_BYTESWAP_H.
14759         * modules/byteswap (Makefile.am): Remove byteswap.h if
14760         GL_GENERATE_BYTESWAP_H evaluates to false.
14761
14762         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
14763         GL_GENERATE_ERRNO_H.
14764         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
14765         evaluates to false.
14766
14767         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
14768         GL_GENERATE_FLOAT_H.
14769         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
14770         evaluates to false.
14771
14772         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
14773         GL_GENERATE_FNMATCH_H.
14774         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
14775         GL_GENERATE_FNMATCH_H evaluates to false.
14776
14777         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
14778         GL_GENERATE_GLOB_H.
14779         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
14780         evaluates to false.
14781
14782         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
14783         automake conditional GL_GENERATE_ICONV_H.
14784         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
14785         evaluates to false.
14786
14787         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
14788         GL_GENERATE_NETINET_IN_H.
14789         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
14790         GL_GENERATE_NETINET_IN_H evaluates to false.
14791
14792         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
14793         conditional GL_GENERATE_PTHREAD_H.
14794         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
14795         * modules/pthread (Makefile.am): Remove pthread.h if
14796         GL_GENERATE_PTHREAD_H evaluates to false.
14797
14798         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
14799         GL_GENERATE_SCHED_H.
14800         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
14801         evaluates to false.
14802
14803         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
14804         conditional GL_GENERATE_SELINUX_CONTEXT_H.
14805         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
14806         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
14807
14808         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
14809         GL_GENERATE_STDARG_H.
14810         * modules/stdarg (Makefile.am): Remove stdarg.h if
14811         GL_GENERATE_STDARG_H evaluates to false.
14812
14813         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
14814         GL_GENERATE_STDBOOL_H.
14815         * modules/stdbool (Makefile.am): Remove stdbool.h if
14816         GL_GENERATE_STDBOOL_H evaluates to false.
14817
14818         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
14819         conditional GL_GENERATE_STDDEF_H.
14820         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
14821         * modules/stddef (Makefile.am): Remove stddef.h if
14822         GL_GENERATE_STDDEF_H evaluates to false.
14823
14824         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
14825         GL_GENERATE_STDINT_H.
14826         * modules/stdint (Makefile.am): Remove stdint.h if
14827         GL_GENERATE_STDINT_H evaluates to false.
14828
14829         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
14830         GL_GENERATE_SYSEXITS_H.
14831         * modules/sysexits (Makefile.am): Remove sysexits.h if
14832         GL_GENERATE_SYSEXITS_H evaluates to false.
14833
14834         Reported by Karl Berry and Ralf Wildenhues.
14835
14836 2011-04-05  Bruno Haible  <bruno@clisp.org>
14837
14838         Ensure to rebuild generated .h files when config.status has changed.
14839         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
14840         config.status.
14841         * modules/ctype (Makefile.am): Likewise.
14842         * modules/dirent (Makefile.am): Likewise.
14843         * modules/errno (Makefile.am): Likewise.
14844         * modules/fcntl-h (Makefile.am): Likewise.
14845         * modules/float (Makefile.am): Likewise.
14846         * modules/getopt-posix (Makefile.am): Likewise.
14847         * modules/glob (Makefile.am): Likewise.
14848         * modules/iconv-h (Makefile.am): Likewise.
14849         * modules/inttypes (Makefile.am): Likewise.
14850         * modules/langinfo (Makefile.am): Likewise.
14851         * modules/locale (Makefile.am): Likewise.
14852         * modules/math (Makefile.am): Likewise.
14853         * modules/netdb (Makefile.am): Likewise.
14854         * modules/netinet_in (Makefile.am): Likewise.
14855         * modules/poll-h (Makefile.am): Likewise.
14856         * modules/pthread (Makefile.am): Likewise.
14857         * modules/pty (Makefile.am): Likewise.
14858         * modules/sched (Makefile.am): Likewise.
14859         * modules/search (Makefile.am): Likewise.
14860         * modules/selinux-h (Makefile.am): Likewise.
14861         * modules/signal (Makefile.am): Likewise.
14862         * modules/spawn (Makefile.am): Likewise.
14863         * modules/stdarg (Makefile.am): Likewise.
14864         * modules/stdbool (Makefile.am): Likewise.
14865         * modules/stddef (Makefile.am): Likewise.
14866         * modules/stdint (Makefile.am): Likewise.
14867         * modules/stdio (Makefile.am): Likewise.
14868         * modules/stdlib (Makefile.am): Likewise.
14869         * modules/string (Makefile.am): Likewise.
14870         * modules/strings (Makefile.am): Likewise.
14871         * modules/sys_file (Makefile.am): Likewise.
14872         * modules/sys_ioctl (Makefile.am): Likewise.
14873         * modules/sys_select (Makefile.am): Likewise.
14874         * modules/sys_socket (Makefile.am): Likewise.
14875         * modules/sys_stat (Makefile.am): Likewise.
14876         * modules/sys_time (Makefile.am): Likewise.
14877         * modules/sys_times (Makefile.am): Likewise.
14878         * modules/sys_utsname (Makefile.am): Likewise.
14879         * modules/sys_wait (Makefile.am): Likewise.
14880         * modules/sysexits (Makefile.am): Likewise.
14881         * modules/termios (Makefile.am): Likewise.
14882         * modules/time (Makefile.am): Likewise.
14883         * modules/unistd (Makefile.am): Likewise.
14884         * modules/wchar (Makefile.am): Likewise.
14885         * modules/wctype-h (Makefile.am): Likewise.
14886         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
14887
14888 2011-04-05  Bruno Haible  <bruno@clisp.org>
14889
14890         pipe2: Relicense under LGPLv2+.
14891         * modules/pipe2 (License): Change to LGPLv2+.
14892         Requested by Eric Blake, for libvirt.
14893
14894 2011-04-05  Bruce Korb  <bkorb@gnu.org>
14895
14896         bootstrap: compute gnulib_extra_files after updating build_aux
14897         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
14898         change build_aux or also supply gnulib_extra_files.  Handle correctly.
14899
14900 2011-04-05  Eric Blake  <eblake@redhat.com>
14901
14902         bootstrap: preserve git whitelist item sorting
14903         * build-aux/bootstrap (sort_patterns): New function.
14904         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
14905
14906 2011-04-05  Simon Josefsson  <simon@josefsson.org>
14907
14908         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
14909         sc_space_tab check.
14910
14911 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
14912
14913         areadlink, areadlinkat: rewrite in terms of careadlinkat
14914         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
14915         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
14916         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
14917         (malloc, realloc): Remove #undefs.
14918         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
14919         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
14920         readlink, ssize_t, stdint, unistd.
14921         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
14922         areadlink, stdint.
14923
14924         careadlinkat: new module
14925         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
14926         * modules/careadlinkat: New files, written by me with
14927         a review and feedback from Ben Pfaff in
14928         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
14929
14930 2011-04-01  Bruno Haible  <bruno@clisp.org>
14931
14932         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
14933         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
14934         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
14935         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
14936         Reported by Bruce Korb <bruce.korb@gmail.com>.
14937
14938 2011-04-01  Bruno Haible  <bruno@clisp.org>
14939
14940         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
14941         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
14942         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
14943         * modules/wcpcpy (Depends-on): Add extensions.
14944         * modules/wcpncpy (Depends-on): Likewise.
14945         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
14946         systems.
14947         * doc/posix-functions/wcpncpy.texi: Likewise.
14948         * doc/posix-functions/wcwidth.texi: Likewise.
14949
14950 2011-03-31  Eric Blake  <eblake@redhat.com>
14951
14952         nonblocking: fix mingw test failures
14953         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
14954         non-blocking flag on regular file.
14955         (get_nonblocking_flag): Set errno on invalid fd.
14956         * tests/test-nonblocking.c (main): Avoid test failure on
14957         directories if fchdir is not active.
14958         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
14959
14960 2011-03-31  Bruno Haible  <bruno@clisp.org>
14961
14962         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
14963         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
14964         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
14965         Reported by Simon Josefsson <simon@josefsson.org>.
14966
14967 2011-03-31  Bruno Haible  <bruno@clisp.org>
14968         and Eric Blake  <eblake@redhat.com>
14969
14970         nonblocking: new module
14971         * modules/nonblocking: New module.
14972         * modules/nonblocking-tests: Likewise.
14973         * lib/nonblocking.h: New file.
14974         * lib/nonblocking.c: Likewise.
14975         * tests/test-nonblocking.c: New test.
14976         * lib/ioctl.c (ioctl) [mingw]: Update comment.
14977
14978 2011-03-30  Bruno Haible  <bruno@clisp.org>
14979
14980         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
14981         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
14982         instead of 'printf' format for GCC >= 4.4.
14983         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
14984         (fprintf, printf, vfprintf, vprintf): Declare with
14985         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
14986         the system's vfprintf() function.
14987         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
14988
14989 2011-03-30  Eric Blake  <eblake@redhat.com>
14990
14991         passfd: fix scoping bug
14992         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
14993         before sendmsg/recvmsg.
14994
14995         passfd: standardize coding conventions
14996         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
14997         can be learned at compile time.
14998         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
14999         ifdefs.
15000         (sendfd, recvfd): Follow gnulib code conventions.
15001
15002         passfd: fix incorrect sendmsg arguments
15003         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
15004         incorrect msg_controllen value.
15005         * modules/passfd-tests (Depends-on): Check for alarm.
15006         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
15007         Reported by Bastien ROUCARIES.
15008
15009 2011-03-30  Bruno Haible  <bruno@clisp.org>
15010
15011         c-strcasestr: Relicense under LGPLv2+.
15012         * modules/c-strcasestr (License): Change to LGPLv2+.
15013         Requested by Eric Blake, for libvirt.
15014
15015 2011-03-30  Simon Josefsson  <simon@josefsson.org>
15016
15017         * users.txt: Add libidn2.  Fix libtasn1 link.
15018
15019 2011-03-30  Jim Meyering  <meyering@redhat.com>
15020
15021         tests: readlink* ("",... fails with EINVAL on newer kernels
15022         readlink and readlinkat have typically failed with ENOENT for
15023         the invalid, empty file name,  "".  However, with the advent
15024         of linux-2.6.39, they fail with EINVAL.
15025         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
15026         when operating on the empty file name.
15027         * tests/test-readlink.h (test_readlink): Likewise.
15028
15029 2011-03-29  Bruno Haible  <bruno@clisp.org>
15030
15031         Relicense some modules under LGPLv2+, for libidn2.
15032         * modules/array-mergesort (License): Change to LGPLv2+.
15033         * modules/c-strcaseeq (License): Likewise.
15034         * modules/striconveh (License): Likewise.
15035         * modules/striconveha (License): Likewise.
15036         * modules/uniconv/base (License): Likewise.
15037         * modules/uniconv/u8-conv-from-enc (License): Likewise.
15038         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
15039         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
15040         * modules/unictype/base (License): Likewise.
15041         * modules/unictype/bidiclass-of (License): Likewise.
15042         * modules/unictype/category-M (License): Likewise.
15043         * modules/unictype/category-none (License): Likewise.
15044         * modules/unictype/category-of (License): Likewise.
15045         * modules/unictype/category-test (License): Likewise.
15046         * modules/unictype/category-test-withtable (License): Likewise.
15047         * modules/unictype/combining-class (License): Likewise.
15048         * modules/unictype/joiningtype-of (License): Likewise.
15049         * modules/unictype/scripts (License): Likewise.
15050         * modules/uninorm/base (License): Likewise.
15051         * modules/uninorm/canonical-decomposition (License): Likewise.
15052         * modules/uninorm/composition (License): Likewise.
15053         * modules/uninorm/decompose-internal (License): Likewise.
15054         * modules/uninorm/decomposition-table (License): Likewise.
15055         * modules/uninorm/nfc (License): Likewise.
15056         * modules/uninorm/nfd (License): Likewise.
15057         * modules/uninorm/u32-normalize (License): Likewise.
15058         * modules/unistr/base (License): Likewise.
15059         * modules/unistr/u32-cpy (License): Likewise.
15060         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
15061         * modules/unistr/u32-to-u8 (License): Likewise.
15062         * modules/unistr/u32-uctomb (License): Likewise.
15063         * modules/unistr/u8-check (License): Likewise.
15064         * modules/unistr/u8-mblen (License): Likewise.
15065         * modules/unistr/u8-mbtouc (License): Likewise.
15066         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
15067         * modules/unistr/u8-mbtoucr (License): Likewise.
15068         * modules/unistr/u8-prev (License): Likewise.
15069         * modules/unistr/u8-strlen (License): Likewise.
15070         * modules/unistr/u8-to-u32 (License): Likewise.
15071         * modules/unistr/u8-uctomb (License): Likewise.
15072         * modules/unitypes (License): Likewise.
15073         Requested by Simon Josefsson.
15074
15075 2011-03-29  Simon Josefsson  <simon@josefsson.org>
15076
15077         lib-symbol-visibility: Add a notice.
15078         * modules/lib-symbol-visibility (Notice): New field.
15079
15080 2011-03-29  Bruno Haible  <bruno@clisp.org>
15081
15082         getaddrinfo: Doc fix.
15083         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
15084         section "fixed in Gnulib".
15085
15086 2011-03-28  Simon Josefsson  <simon@josefsson.org>
15087
15088         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
15089         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
15090
15091 2011-03-26  Bruno Haible  <bruno@clisp.org>
15092
15093         unictype/property-byname: Reduce the number of load-time relocations.
15094         * lib/unictype/pr_byname.c: Include <stdlib.h>.
15095         (UC_PROPERTY_INDEX_*): New enumeration values.
15096         (uc_property_byname): Convert an index from the lookup table to an
15097         uc_property_t.
15098         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
15099         values.
15100
15101 2011-03-26  Bruno Haible  <bruno@clisp.org>
15102
15103         unictype/property-byname: Allow omitted word separators and aliases.
15104         * lib/unictype/pr_byname.gperf: Add property names without word
15105         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
15106         for 'space'.
15107
15108 2011-03-26  Bruno Haible  <bruno@clisp.org>
15109
15110         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
15111         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
15112         also hyphens to space.
15113         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
15114         without spaces.
15115         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
15116
15117 2011-03-26  Bruno Haible  <bruno@clisp.org>
15118
15119         unictype/joiningtype-byname: Recognize long names as well.
15120         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
15121         a long name.
15122         * lib/unictype/joiningtype_byname.c: Include <string.h>,
15123         unictype/joiningtype_byname.h.
15124         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
15125         * lib/unictype/joiningtype_byname.gperf: New file.
15126         * modules/unictype/joiningtype-byname (Files): Add
15127         lib/unictype/joiningtype_byname.gperf.
15128         (Depends-on): Add gperf.
15129         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
15130         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
15131         long names.
15132
15133         Tests for module 'unictype/joiningtype-longname'.
15134         * modules/unictype/joiningtype-longname-tests: New file.
15135         * tests/unictype/test-joiningtype_longname.c: New file.
15136
15137         New module 'unictype/joiningtype-longname'.
15138         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
15139         * lib/unictype/joiningtype_longname.c: New file.
15140         * modules/unictype/joiningtype-longname: New file.
15141         * modules/unictype/joiningtype-all (Depends-on): Add
15142         unictype/joiningtype-longname.
15143
15144 2011-03-26  Bruno Haible  <bruno@clisp.org>
15145
15146         unictype/bidiclass-byname: Recognize long names as well.
15147         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
15148         name.
15149         * lib/unictype/bidi_byname.c: Include <string.h>,
15150         unictype/bidi_byname.h.
15151         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
15152         * lib/unictype/bidi_byname.gperf: New file.
15153         * modules/unictype/bidiclass-byname (Files): Add
15154         lib/unictype/bidi_byname.gperf.
15155         (Depends-on): Add gperf.
15156         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
15157         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
15158         long names.
15159
15160         Tests for module 'unictype/bidiclass-longname'.
15161         * modules/unictype/bidiclass-longname-tests: New file.
15162         * tests/unictype/test-bidi_longname.c: New file.
15163
15164         New module 'unictype/bidiclass-longname'.
15165         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
15166         * lib/unictype/bidi_longname.c: New file.
15167         * modules/unictype/bidiclass-longname: New file.
15168         * modules/unictype/bidiclass-all (Depends-on): Add
15169         unictype/bidiclass-longname.
15170
15171 2011-03-26  Bruno Haible  <bruno@clisp.org>
15172
15173         unictype/bidi*: Rename modules.
15174         * modules/unictype/bidiclass-all: Renamed from
15175         modules/unictype/bidicategory-all.
15176         * modules/unictype/bidiclass-name: Renamed from
15177         modules/unictype/bidiclass-name.
15178         (Description): Update.
15179         * modules/unictype/bidiclass-name-tests: Renamed from
15180         modules/unictype/bidicategory-name-tests.
15181         * modules/unictype/bidiclass-byname: Renamed from
15182         modules/unictype/bidicategory-byname.
15183         (Description): Update.
15184         * modules/unictype/bidiclass-byname-tests: Renamed from
15185         modules/unictype/bidicategory-byname-tests.
15186         * modules/unictype/bidiclass-of: Renamed from
15187         modules/unictype/bidicategory-of.
15188         (Description): Update.
15189         * modules/unictype/bidiclass-of-tests: Renamed from
15190         modules/unictype/bidicategory-of-tests.
15191         * modules/unictype/bidiclass-test: Renamed from
15192         modules/unictype/bidicategory-test.
15193         (Description): Update.
15194         * modules/unictype/bidiclass-test-tests: Renamed from
15195         modules/unictype/bidicategory-test-tests.
15196         * modules/unictype/bidicategory-all: New file, a simple redirection.
15197         * modules/unictype/bidicategory-name: Likewise.
15198         * modules/unictype/bidicategory-byname: Likewise.
15199         * modules/unictype/bidicategory-of: Likewise.
15200         * modules/unictype/bidicategory-test: Likewise.
15201         * modules/unictype/property-bidi-* (Dependencies): Update.
15202         * lib/unictype/bidi_*.c: Update comment.
15203
15204 2011-03-26  Bruno Haible  <bruno@clisp.org>
15205
15206         unictype/bidi*: Rename functions, part 2.
15207         * modules/unictype/bidicategory-name (configure.ac): Update required
15208         libunistring version.
15209         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
15210
15211 2011-03-25  Bruno Haible  <bruno@clisp.org>
15212
15213         New module 'unictype/combining-class-all'.
15214         * modules/unictype/combining-class-all: New file.
15215
15216         Tests for module 'unictype/combining-class-byname'.
15217         * modules/unictype/combining-class-byname-tests: New file.
15218         * tests/unictype/test-combiningclass_byname.c: New file.
15219
15220         New module 'unictype/combining-class-byname'.
15221         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
15222         * lib/unictype/combiningclass_byname.c: New file.
15223         * lib/unictype/combiningclass_byname.gperf: New file.
15224         * modules/unictype/combining-class-byname: New file.
15225
15226         Tests for module 'unictype/combining-class-longname'.
15227         * modules/unictype/combining-class-longname-tests: New file.
15228         * tests/unictype/test-combiningclass_longname.c: New file.
15229
15230         New module 'unictype/combining-class-longname'.
15231         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
15232         * lib/unictype/combiningclass_longname.c: New file.
15233         * modules/unictype/combining-class-longname: New file.
15234
15235         Tests for module 'unictype/combining-class-name'.
15236         * modules/unictype/combining-class-name-tests: New file.
15237         * tests/unictype/test-combiningclass_name.c: New file.
15238
15239         New module 'unictype/combining-class-name'.
15240         * lib/unictype.in.h (uc_combining_class_name): New declaration.
15241         * lib/unictype/combiningclass_name.c: New file.
15242         * modules/unictype/combining-class-name: New file.
15243
15244 2011-03-25  Bruno Haible  <bruno@clisp.org>
15245
15246         unictype/combining-class: Rename source files.
15247         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
15248         of unictype/combining.h.
15249         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
15250         Update.
15251         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
15252         * modules/unictype/combining-class (Description): Fix.
15253         (Files, Makefile.am): Update.
15254         * tests/unictype/test-combiningclass.c: Renamed from
15255         tests/unictype/test-combining.c.
15256         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
15257
15258 2011-03-25  Bruno Haible  <bruno@clisp.org>
15259
15260         unictype: Update list of canonical combining classes.
15261         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
15262
15263 2011-03-25  Bruno Haible  <bruno@clisp.org>
15264
15265         unictype/category-byname: Recognize long names as well.
15266         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
15267         a long name.
15268         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
15269         unictype/categ_byname.h.
15270         (UC_CATEGORY_INDEX_*): New enumeration values.
15271         (uc_general_category_byname): Use uc_general_category_lookup and
15272         convert from index to value.
15273         * lib/unictype/categ_byname.gperf: New file.
15274         * modules/unictype/category-byname (Files): Add
15275         lib/unictype/categ_byname.gperf.
15276         (Depends-on): Add gperf.
15277         (Makefile.am): Add rule for generating unictype/categ_byname.h.
15278         * tests/unictype/test-categ_byname.c (main): Test the recognition of
15279         long names.
15280
15281         Tests for module 'unictype/category-longname'.
15282         * modules/unictype/category-longname-tests: New file.
15283         * tests/unictype/test-categ_longname.c: New file.
15284
15285         New module 'unictype/category-longname'.
15286         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
15287         * lib/unictype/categ_longname.c: New file.
15288         * modules/unictype/category-longname: New file.
15289         * modules/unictype/category-all (Depends-on): Add it.
15290
15291 2011-03-25  Bruno Haible  <bruno@clisp.org>
15292
15293         Tests for module 'unictype/category-LC'.
15294         * modules/unictype/category-LC-tests: New file.
15295         * tests/unictype/test-categ_LC.c: New file, automatically generated.
15296
15297         New module 'unictype/category-LC'.
15298         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
15299         (UC_CATEGORY_LC): New declaration.
15300         (UC_CASED_LETTER): New macro.
15301         * lib/gen-uni-tables.c (is_category_LC): New function.
15302         (output_categories): Also handle category LC.
15303         (UC_CATEGORY_MASK_LC): New enumeration value.
15304         (general_category_byname): Also handle category LC.
15305         * lib/unictype/categ_LC.c: New file.
15306         * lib/unictype/categ_LC.h: New file, automatically generated.
15307         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
15308         category LC.
15309         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
15310         * modules/unictype/category-LC: New file.
15311         * modules/unictype/category-byname (Depends-on): Add
15312         unictype/category-LC.
15313         * modules/unictype/category-all (Depends-on): Likewise.
15314
15315 2011-03-25  Eric Blake  <eblake@redhat.com>
15316
15317         xmalloc: revert yesterday's regression
15318         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
15319         realloc's underlying behavior (allowing allocation of zero-size
15320         objects, especially if malloc-gnu is also in use).
15321
15322 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
15323
15324         maint.mk: add missing version to VC-tag
15325         * top/maint.mk: git tag was missing actual tag name; add it.
15326
15327         valgrind: do leak checking, and exit with code 1 on error (not 0)
15328         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
15329         to VALGRIND.
15330
15331 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
15332
15333         posix-modules: say what it does.
15334         * posix-modules: Add a line to the --help output saying what it does.
15335
15336 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
15337
15338         xmalloc: Do not leak if underlying realloc is C99 compatible.
15339         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
15340         This avoids a leak on C99-based systems.  See
15341         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
15342
15343 2011-03-24  Eric Blake  <eblake@redhat.com>
15344
15345         realloc: document portability problem
15346         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
15347         passing 0 size to realloc.
15348
15349 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
15350
15351         doc: update users.txt
15352         * users.txt: Add cvsps, tmpwatch
15353
15354 2011-03-23  Matt Rice  <ratmice@gmail.com>
15355
15356         doc: update users.txt
15357         * users.txt: Add gdb.
15358
15359 2011-03-23  Jim Meyering  <meyering@redhat.com>
15360
15361         doc: update users.txt
15362         Looking through matches up to the following URL (there are still
15363         several more pages), I found several projects that use gnulib:
15364         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
15365         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
15366         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
15367
15368 2011-03-22  Bruno Haible  <bruno@clisp.org>
15369
15370         unictype/bidi*: Rename functions.
15371         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
15372         uc_bidi_class, uc_is_bidi_class): New declarations.
15373         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
15374         uc_bidi_category_byname.
15375         (uc_bidi_category_byname): New function.
15376         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
15377         u_bidi_category_name.
15378         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
15379         (uc_bidi_category_name): New function.
15380         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
15381         uc_bidi_category.
15382         (uc_bidi_category): New function.
15383         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
15384         uc_is_bidi_category. Invoke uc_bidi_class.
15385         (uc_is_bidi_category): New function.
15386         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
15387         instead of uc_bidi_category_byname.
15388         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
15389         instead of uc_bidi_category_name.
15390         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
15391         uc_bidi_category.
15392         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
15393         instead of uc_is_bidi_category.
15394
15395 2011-03-21  Bruno Haible  <bruno@clisp.org>
15396
15397         New module 'unictype/joininggroup-all'.
15398         * modules/unictype/joininggroup-all: New file.
15399
15400         Tests for module 'unictype/joininggroup-of'.
15401         * modules/unictype/joininggroup-of-tests: New file.
15402         * tests/unictype/test-joininggroup_of.c: New file.
15403         * tests/unictype/test-joininggroup_of.h: New file, automatically
15404         generated by gen-uni-tables.
15405
15406         New module 'unictype/joininggroup-of'.
15407         * modules/unictype/joininggroup-of: New file.
15408         * lib/unictype/joininggroup_of.c: New file.
15409         * lib/unictype/joininggroup_of.h: New file, automatically generated by
15410         gen-uni-tables.
15411
15412         Tests for module 'unictype/joininggroup-byname'.
15413         * modules/unictype/joininggroup-byname-tests: New file.
15414         * tests/unictype/test-joininggroup_byname.c: New file.
15415
15416         New module 'unictype/joininggroup-byname'.
15417         * modules/unictype/joininggroup-byname: New file.
15418         * lib/unictype/joininggroup_byname.c: New file.
15419         * lib/unictype/joininggroup_byname.gperf: New file.
15420
15421         Tests for module 'unictype/joininggroup-name'.
15422         * modules/unictype/joininggroup-name-tests: New file.
15423         * tests/unictype/test-joininggroup_name.c: New file.
15424
15425         New module 'unictype/joininggroup-name'.
15426         * modules/unictype/joininggroup-name: New file.
15427         * lib/unictype/joininggroup_name.c: New file.
15428         * lib/unictype/joininggroup_name.h: New file.
15429
15430         New module 'unictype/joiningtype-all'.
15431         * modules/unictype/joiningtype-all: New file.
15432
15433         Tests for module 'unictype/joiningtype-of'.
15434         * modules/unictype/joiningtype-of-tests: New file.
15435         * tests/unictype/test-joiningtype_of.c: New file.
15436         * tests/unictype/test-joiningtype_of.h: New file, automatically
15437         generated by gen-uni-tables.
15438
15439         New module 'unictype/joiningtype-of'.
15440         * modules/unictype/joiningtype-of: New file.
15441         * lib/unictype/joiningtype_of.c: New file.
15442         * lib/unictype/joiningtype_of.h: New file, automatically generated by
15443         gen-uni-tables.
15444
15445         Tests for module 'unictype/joiningtype-byname'.
15446         * modules/unictype/joiningtype-byname-tests: New file.
15447         * tests/unictype/test-joiningtype_byname.c: New file.
15448
15449         New module 'unictype/joiningtype-byname'.
15450         * modules/unictype/joiningtype-byname: New file.
15451         * lib/unictype/joiningtype_byname.c: New file.
15452
15453         Tests for module 'unictype/joiningtype-name'.
15454         * modules/unictype/joiningtype-name-tests: New file.
15455         * tests/unictype/test-joiningtype_name.c: New file.
15456
15457         New module 'unictype/joiningtype-name'.
15458         * modules/unictype/joiningtype-name: New file.
15459         * lib/unictype/joiningtype_name.c: New file.
15460
15461         unictype: Add support for Arabic shaping properties.
15462         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
15463         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
15464         declarations.
15465         (UC_JOINING_GROUP_*): New enumeration values.
15466         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
15467         declarations.
15468         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
15469         (unicode_joining_type): New variable.
15470         (UC_JOINING_GROUP_*): New enumeration values.
15471         (unicode_joining_group): New variable.
15472         (fill_arabicshaping, joining_type_as_c_identifier,
15473         output_joining_type_test, output_joining_type,
15474         joining_group_as_c_identifier, output_joining_group_test,
15475         output_joining_group): New functions.
15476         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
15477         fill_arabicshaping and output_joining_type_test, output_joining_type,
15478         output_joining_group_test, output_joining_group.
15479         Reported by Simon Josefsson.
15480
15481 2011-03-21  Jim Meyering  <meyering@redhat.com>
15482
15483         strftime: fix a bug in yesterday's change
15484         * lib/strftime.c (add): Accommodate width's initial value of -1.
15485         Otherwise, nstrftime would copy uninitialized data into
15486         the result buffer.
15487
15488 2011-03-21  Jim Meyering  <meyering@redhat.com>
15489
15490         tests: add strftime-tests module
15491         * tests/test-strftime.c: New file.
15492         * modules/strftime-tests: New module.
15493
15494 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15495
15496         strftime: don't assume a byte count fits in 'int'
15497         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
15498         found this problem by static analysis, using gcc -Wstrict-overflow
15499         (GCC 4.5.2, x86-64).  This reported an optimization that depended
15500         on an integer overflow having undefined behavior, but it turns out
15501         that the argument is a size, which might not fit in 'int' anyway,
15502
15503 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15504
15505         stdio: don't require ignore_value around fwrite
15506
15507         This patch works around libc bug 11959
15508         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
15509         Without this patch, applications must often write
15510         ignore_value (fwrite (...)) even though the ignore_value is
15511         not helpful here.  It's common to write many objects, using
15512         fwrite/printf/etc., and then use ferror to detect output error.
15513
15514         I considered making this patch optional, but decided against it,
15515         because libc is obviously being inconsistent here: there is no
15516         reason libc should insist that user code must inspect fwrite
15517         return's value without also insisting that it inspect printf's,
15518         putchar's, etc.  If user code wants to have a strict style where
15519         all these functions' values are checked (so that ferror need not
15520         be checked), we could add support for that style in a new gnulib
15521         module, but in the meantime it's better to be consistent and to
15522         support common usage.
15523
15524         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
15525         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
15526         that we are compiling in checking mode, and if not C++, and
15527         if not already wrapping fwrite for some other reason.
15528         (fwrite): #define to rpl_fwrite if the latter is defined.
15529
15530 2011-03-20  Bruno Haible  <bruno@clisp.org>
15531
15532         verror: Fix compilation error introduced on 2011-02-13.
15533         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
15534         instead of __attribute__.
15535         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15536
15537 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15538             Bruno Haible  <bruno@clisp.org>
15539
15540         socklen: do not depend on sys_socket
15541         While trying to modify Emacs to use gnulib's socklen module,
15542         I discovered a circular dependency: socklen depends on sys_socket
15543         and vice versa.  Emacs can use socklen, but it does not need
15544         sys_socket because it has its own substitute for sys/socket.h.
15545         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
15546         gl_TYPE_SOCKLEN_T.
15547         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
15548         gl_PREREQ_SYS_H_SOCKET.
15549         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
15550         gl_PREREQ_SYS_H_SOCKET.
15551         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
15552         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
15553         * modules/socklen (Depends-on): Do not depend on sys_socket.
15554         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
15555
15556 2011-03-20  Jim Meyering  <meyering@redhat.com>
15557
15558         maint.mk: sort file names *after* new transformation
15559         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
15560         prefix would have led to an unwarranted failure in GNU parted.
15561         Sort after that transformation.
15562
15563 2011-03-19  Jim Meyering  <meyering@redhat.com>
15564
15565         maint.mk: fix po-file syntax-check rule
15566         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
15567         Patch by Bruno Haible.
15568
15569 2011-03-19  Bruno Haible  <bruno@clisp.org>
15570
15571         socklen: Update comment.
15572         * m4/socklen.m4: Update comment about platforms.
15573
15574 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15575             Bruno Haible  <bruno@clisp.org>
15576
15577         inet_ntop, inet_pton: Simplify.
15578         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
15579         documented to provide socklen_t and we already depend on sys_socket.
15580         * modules/inet_pton (Depends-on): Likewise.
15581         * lib/arpa_inet.in.h: Adjust comment.
15582
15583 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15584             Bruno Haible  <bruno@clisp.org>
15585
15586         netdb: Simplify.
15587         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
15588         documented to provide socklen_t and we already depend on sys_socket.
15589         * lib/netdb.in.h: Adjust comment.
15590
15591 2011-03-19  Bruno Haible  <bruno@clisp.org>
15592
15593         sys_socket, netdb: Document problem with socklen_t.
15594         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
15595         platforms.
15596         * doc/posix-headers/netdb.texi: Likewise.
15597
15598 2011-03-18  Eric Blake  <eblake@redhat.com>
15599
15600         maint.mk: let po check work in VPATH build
15601         * top/maint.mk (po_file): Allow cfg.mk override.
15602         (sc_po_check): Allow VPATH use.
15603         Reported by Jiri Denemark.
15604
15605 2011-03-16  Jim Meyering  <meyering@redhat.com>
15606
15607         maint.mk: allow fine-grained syntax-check exclusion via Make variables
15608         Before, you would have had to create one .x-sc_ file per rule in order
15609         to exempt offending files.  Now, you may instead use a Make variable --
15610         usually defined in cfg.mk -- whose name identifies the affected rule.
15611         * top/maint.mk (_sc_excl): Define.
15612         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
15613         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
15614
15615 2011-03-13  Bruno Haible  <bruno@clisp.org>
15616
15617         ignore-value tests: Avoid warnings.
15618         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
15619         empty for gcc < 3.4.
15620
15621 2011-03-13  Bruno Haible  <bruno@clisp.org>
15622
15623         passfd: Fix link error on Solaris.
15624         * modules/passfd (Description): Correct.
15625         (Depends-on): Add socketlib.
15626         (Link): New section.
15627         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
15628
15629 2011-03-13  Bruno Haible  <bruno@clisp.org>
15630
15631         passfd: Fix link error on AIX 5.2.
15632         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
15633
15634 2011-03-13  Bruno Haible  <bruno@clisp.org>
15635
15636         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
15637         * lib/sys_socket.in.h: Include <stddef.h>.
15638         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
15639         CMSG_FIRSTHDR. Remove unused variable.
15640
15641 2011-03-13  Bruno Haible  <bruno@clisp.org>
15642
15643         passfd: Fix compilation error on OpenBSD.
15644         * lib/passfd.c: Include <sys/uio.h>.
15645
15646 2011-03-13  Bruno Haible  <bruno@clisp.org>
15647
15648         passfd test: Fix warnings.
15649         * tests/test-passfd.c: Include <sys/wait.h>.
15650         (main): Fix typo.
15651
15652 2011-03-13  Bruno Haible  <bruno@clisp.org>
15653
15654         passfd module, part 4, tweaks.
15655         * tests/test-passfd.c: Reorder includes.
15656         (main): Fix perror and printf calls.
15657
15658 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15659
15660         passfd module, part 4.
15661         * modules/passfd-tests: New file.
15662         * tests/test-passfd.c: New file.
15663
15664 2011-03-13  Jim Meyering  <meyering@redhat.com>
15665
15666         Makefile: rely on GNU make; derive syntax-check rule names
15667         Rather than requiring that each sc_ rule be listed as a dependent
15668         of "check", use features of GNU make to derive the list.
15669         * Makefile (syntax-check-rules): Define.
15670         (check): Depend on the new variable, not the hard-coded list.
15671
15672 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
15673             Bruno Haible  <bruno@clisp.org>
15674
15675         passfd module, part 3.
15676         * lib/passfd.h (recvfd): Add a flags argument.
15677         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
15678         (recvfd): Add a flags argument.
15679         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
15680         exists.
15681         * modules/passfd (Depends-on): Add cloexec.
15682         Suggested by Eric Blake.
15683
15684 2011-03-13  Bruno Haible  <bruno@clisp.org>
15685
15686         passfd module, part 2, tweaks.
15687         * modules/passfd (Files): Reorder.
15688         (Depends-on): Remove errno.
15689         (Include): Remove <sys/socket.h>, <sys/un.h>.
15690         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
15691         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
15692         specification header. Include <sys/socket.h> always. Don't include
15693         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
15694         (sendfd): Clarify that it sets errno when it fails.
15695         (recvfd): Fix specification.
15696
15697 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15698
15699         passfd module, part 2.
15700         * modules/passfd: New file.
15701         * lib/passfd.h: New file.
15702         * lib/passfd.c: New file.
15703
15704 2011-03-12  Bruno Haible  <bruno@clisp.org>
15705
15706         wcswidth, mbswidth: Avoid integer overflow.
15707         * lib/wcswidth.c: Include <limits.h>.
15708         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
15709         * lib/mbswidth.c: Include <limits.h>.
15710         (mbsnwidth): Avoid 'int' overflow.
15711         Reported by Jim Meyering.
15712
15713 2011-03-12  Bruno Haible  <bruno@clisp.org>
15714
15715         futimens, utimensat: Avoid endless recursion on Solaris 10.
15716         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
15717         Solaris.
15718         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
15719         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
15720
15721 2011-03-11  Jim Meyering  <meyering@redhat.com>
15722
15723         maint.mk: relax a regexp to accommodate other formatting styles
15724         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
15725         between "ngettext" and the following "(".
15726
15727 2011-03-11  Pádraig Brady <P@draigBrady.com>
15728
15729         maint.mk: suppress a false positive warning
15730         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
15731         diagnostics are marked with ngettext.
15732
15733 2011-03-10  Eric Blake  <eblake@redhat.com>
15734
15735         wchar: add explicit dependencies, for Tru64
15736         * modules/mbmemcasecoll (Depends-on): Add wchar.
15737         * modules/mbtowc (Depends-on): Likewise.
15738         * modules/vasnprintf (Depends-on): Likewise.
15739         * modules/unistdio/u-printf-args (Depends-on): Likewise.
15740         * modules/wctomb (Depends-on): Likewise.
15741         Reported by Peter O'Gorman.
15742
15743 2011-03-08  Bruno Haible  <bruno@clisp.org>
15744
15745         passfd module, part 1, tweaks.
15746         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
15747         Improve indentation. Improve AC_MSG_CHECKING messages.
15748         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
15749         gl_SOCKET_FAMILIES.
15750
15751 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15752
15753         passfd module, part 1.
15754         * m4/afunix.m4: New file.
15755         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
15756         sockets.
15757
15758 2011-03-08  Bruno Haible  <bruno@clisp.org>
15759
15760         regex-quote: New API.
15761         * lib/regex-quote.h: Include <stdbool.h>.
15762         (struct regex_quote_spec): New type.
15763         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
15764         New declarations.
15765         (regex_quote_length, regex_quote_copy, regex_quote): Take a
15766         'const struct regex_quote_spec *' argument.
15767         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
15768         (pcre_special): New constant.
15769         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
15770         New functions.
15771         (regex_quote_length, regex_quote_copy, regex_quote): Take a
15772         'const struct regex_quote_spec *' argument.
15773         * modules/regex-quote (Depends-on): Add stdbool.
15774         * tests/test-regex-quote.c (check): Update for new API. Add test for
15775         anchored results.
15776         * NEWS: Mention the API change.
15777         Reported by Reuben Thomas and Eric Blake.
15778
15779 2011-03-06  Bruno Haible  <bruno@clisp.org>
15780
15781         regex-quote: Fix creation of POSIX extended regular expressions.
15782         * lib/regex-quote.c (ere_special): Add grouping and alternation
15783         operators.
15784
15785 2011-03-05  Bruno Haible  <bruno@clisp.org>
15786
15787         doc: Improve doc regarding autopoint vs. gnulib.
15788         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
15789         disable autopoint while running autoreconf.
15790         Suggested by Ralf Wildenhues.
15791
15792 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15793
15794         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
15795         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
15796
15797 2011-03-03  Bruce Korb  <bkorb@gnu.org>
15798
15799         parse-duration: remove xalloc.h dependency
15800         * lib/parse-duration.c (parse_period): handle NULL return from
15801         strdup instead of calling xstrdup().
15802         * modules/parse-duration: remove "xalloc" dependency
15803
15804 2011-03-03  Matthew Booth  <mbooth@redhat.com>
15805
15806         bootstrap: honor m4_base when running aclocal
15807         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
15808
15809 2011-03-02  Jim Meyering  <meyering@redhat.com>
15810
15811         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
15812         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
15813         on request from Matt Booth.
15814
15815 2011-03-01  Eric Blake  <eblake@redhat.com>
15816
15817         test-link: work on Hurd
15818         * tests/test-link.h (test_link): Hurd rejects linking directories
15819         with EISDIR instead of the POSIX-mandated EPERM.
15820
15821 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
15822
15823         stdio: simplify by moving files to printf-posix, sigpipe
15824         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
15825         since this symbol is needed only if printf is replaced.
15826         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
15827         Require gl_ASM_SYMBOL_PREFIX.
15828         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
15829         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
15830         (Depends-on): Add 'raise'.
15831         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
15832         * modules/stdio (Files): Remove lib/stdio-write.c,
15833         m4/asm-underscore.m4.
15834         (Depends-on): Remove 'raise'.
15835
15836         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
15837         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
15838         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
15839         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
15840
15841 2011-02-28  Bruno Haible  <bruno@clisp.org>
15842
15843         localcharset: Assume ANSI C behaviour of free().
15844         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
15845         calling free().
15846         Suggested by Simon Josefsson <simon@josefsson.org>.
15847
15848 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
15849             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
15850             Bruno Haible  <bruno@clisp.org>  (tiny change)
15851
15852         On Cygwin, use /proc file system instead of win32 API.
15853         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
15854         Win32 file names.
15855         (DllMain): Simplify by removing Cygwin specific code.
15856         (find_shared_library_fullname): Use Linux specific implementation also
15857         for Cygwin.
15858         (get_shared_library_fullname): Update accordingly.
15859         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
15860         Win32 file names.
15861         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
15862         Cygwin specific code.
15863
15864 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
15865             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
15866
15867         Fix OpenMP flag detection for various Fortran compilers.
15868         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
15869         OpenMP-conditional compilation construct, to force compile
15870         failure with missing OpenMP flag.
15871         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
15872
15873 2011-02-25  Eric Blake  <eblake@redhat.com>
15874
15875         strstr: expand test coverage
15876         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
15877         compilation.
15878         * tests/test-memmem.c (main): Duplicate tests.
15879         * tests/test-strcasestr.c (main): Likewise.
15880         * tests/test-c-strcasestr.c (main): Likewise.
15881
15882 2011-02-25  Jim Meyering  <meyering@redhat.com>
15883
15884         maint.mk: detect missing-NL-at-EOF, too
15885         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
15886         it also detects when a file lacks a newline at EOF.
15887         (require_exactly_one_NL_at_EOF_): Renamed from
15888         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
15889         since people may well have .x-sc_... file names tied to the
15890         existing name.  Suggested by Eric Blake.
15891
15892 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
15893
15894         dirname: move m4/dos.m4 functionality into lib/dosname.h
15895
15896         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
15897         extracts symbols from it, puts them into config.h; but it's much
15898         easier to use the symbols directly.  filename.h already does this,
15899         but it disagrees with dos.m4 in some respects.  This patch
15900         introduces a different include file dosname.h that packages up
15901         dos.m4, and then later we can work on merging filename.h and
15902         dosname.h.  Applications that need only the easy-to-configure
15903         symbols should consider including dosname.h rather than dirname.h.
15904         * NEWS: Mention incompatible changes.
15905         * m4/dos.m4: Remove.
15906         * lib/dosname.h, modules/dosname: New files.
15907         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
15908         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
15909         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
15910         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
15911         Include dosname.h, not dirname.h.
15912         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
15913         Include dosname.h, for definitions of symbols like ISSLASH
15914         that used to be in config.h.
15915         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
15916         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
15917         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15918         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15919         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
15920         * modules/rmdir (Files): Likewise.
15921         * modules/stat (Files): Likewise.
15922         * modules/unlink (Files): Likewise.
15923         * modules/dirname-lgpl (Depends-on): Add dosname.
15924         * modules/lstat (Depends-on): Likewise.
15925         * modules/openat (Depends-on): Likewise.
15926         * modules/rmdir (Depends-on): Likewise.
15927         * modules/savewd (Depends-on): Likewise.
15928         * modules/stat (Depends-on): Likewise.
15929         * modules/unlink (Depends-on): Likewise.
15930         * modules/openat (Depends-on): Remove dirname-lgpl.
15931         * modules/savewd (Depends-on): Likewise.
15932         * tests/test-dirname.c: Do not use removed symbols like
15933         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
15934         the remaining symbols, e.g., ISSLASH ('\\').
15935
15936 2011-02-25  Eric Blake  <eblake@redhat.com>
15937
15938         strstr: revert patches that introduced bug and pessimization
15939         * lib/str-two-way.h: Add another reference.
15940         (two_way_short_needle, two_way_long_needle): Revert changes from
15941         2011-02-24; they pessimize search speed.
15942         (critical_factorization): Partially revert changes from
15943         2010-06-22; they violate the requirement that the left half of the
15944         needle be smaller than the period of the needle.
15945
15946 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15947
15948         filenamecat: remove unnecessary dependency on dirname-lgpl
15949         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
15950         is no direct dependency, just an indirect one via filenamecat-lgpl.
15951
15952         remove: remove unnecessary use of m4/dos.m4
15953         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
15954         * modules/remove (FILES): Remove m4/dos.m4.
15955
15956         * lib/openat-proc.c: Don't include dirname.h; not needed.
15957
15958         backupfile: remove unnecessary use of m4/dos.m4
15959         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
15960         of its symbols are used by the backupfile code.  backupfile.c does
15961         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
15962         for the rare case of programs that want all their backup file
15963         names to live within 8+3 limits, and dos.m4 doesn't address that.
15964         * modules/backupfile (Files): Remove m4/dos.m4.
15965
15966 2011-02-24  Jim Meyering  <meyering@redhat.com>
15967
15968         strstr: fix a bug whereby strstr would mistakenly return NULL
15969         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
15970         in period calculation.
15971         (two_way_long_needle): Likewise.
15972         The original problem was reported by Mike Stump in
15973         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
15974         Ralf Wildenhues provided the short needle and haystack.
15975         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
15976         Add a more involved test to trigger the bug in two_way_long_needle.
15977
15978 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
15979
15980         gnulib-tool: remove use of bold display in help screen
15981         * gnulib-tool (func_usage): Do not use bold display anymore in the
15982         help screen.  That was just meant to be a temporary emphasis for a
15983         backward-incompatible change.
15984
15985 2011-02-23  Bruno Haible  <bruno@clisp.org>
15986
15987         Fix misindentation of preprocessor directives.
15988         * lib/argp-namefrob.h: Reindent preprocessor directives.
15989         * lib/getopt_int.h (struct _getopt_data): Likewise.
15990         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
15991         * lib/vasnprintf.c (decode_long_double): Likewise.
15992         * tests/test-argmatch.c: Insert blank lines, for clarity.
15993         * tests/test-exclude.c: Likewise.
15994
15995 2011-02-22  Bruno Haible  <bruno@clisp.org>
15996
15997         ioctl: Fix for MacOS X in 64-bit mode.
15998         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
15999         value.
16000         Suggested by Eric Blake.
16001         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
16002
16003 2011-02-22  Jim Meyering  <meyering@redhat.com>
16004
16005         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
16006         * Makefile (sc_cpp_indent_check): Don't limit the check to files
16007         in lib/.
16008
16009 2011-02-22  Eric Blake  <eblake@redhat.com>
16010
16011         maint: avoid any CDPATH issue
16012         * Makefile (sc_cpp_indent_check): Anchor cd argument.
16013
16014         maint: adjust cpp indentation for my modules, as well
16015         * Makefile (sc_cpp_indent_check): Add my name.
16016         * lib/fbufmode.c: Filter through cppi.
16017         * lib/fpurge.c: Likewise.
16018         * lib/freadable.c: Likewise.
16019         * lib/freading.c: Likewise.
16020         * lib/fwritable.c: Likewise.
16021         * lib/fwriting.c: Likewise.
16022         * lib/sigaction.c: Likewise.
16023
16024 2011-02-22  Jim Meyering  <meyering@redhat.com>
16025
16026         maint: adjust cpp indentation to reflect nesting depth
16027         I.e., in a block of code that begins with an unnested "#if",
16028         put one space between the "#" in column 1 and following token.
16029         For example,
16030         -#include <sys/vfs.h>
16031         +# include <sys/vfs.h>
16032         Do this only in .c files that are part of a module I maintain.
16033         * lib/linkat.c: Filter through cppi.
16034         * lib/nanosleep.c: Likewise.
16035         * lib/openat.c: Likewise.
16036         * lib/openat-die.c: Likewise.
16037         * lib/dup3.c: Likewise.
16038         * lib/fchownat.c: Likewise.
16039         * lib/flock.c: Likewise.
16040         * lib/fsync.c: Likewise.
16041         * lib/fts.c: Likewise.
16042         * lib/getpass.c: Likewise.
16043         * lib/gettimeofday.c: Likewise.
16044         * lib/userspec.c: Likewise.
16045         * Makefile (sc_cpp_indent_check): New rule, to check this.
16046
16047 2011-02-22  Bruno Haible  <bruno@clisp.org>
16048
16049         New module 'wctomb'.
16050         * lib/stdlib.in.h (wctomb): New declaration.
16051         * lib/wctomb.c: New file.
16052         * lib/wctomb-impl.h: New file.
16053         * m4/wctomb.m4: New file.
16054         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
16055         REPLACE_WCTOMB.
16056         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
16057         REPLACE_WCTOMB.
16058         * modules/wctomb: New file.
16059         * tests/test-stdlib-c++.cc: Test signature of wctomb.
16060         * doc/posix-functions/wctomb.texi: Mention the new module.
16061         * modules/wctob (Depends-on): Add wctomb.
16062
16063 2011-02-22  Bruno Haible  <bruno@clisp.org>
16064
16065         New module 'mbtowc'.
16066         * lib/stdlib.in.h (mbtowc): New declaration.
16067         * lib/mbtowc.c: New file.
16068         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
16069         * m4/mbtowc.m4: New file.
16070         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
16071         REPLACE_MBTOWC.
16072         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
16073         REPLACE_MBTOWC.
16074         * modules/mbtowc: New file.
16075         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
16076         * doc/posix-functions/mbtowc.texi: Mention the new module.
16077         * modules/btowc (Depends-on): Add mbtowc.
16078
16079 2011-02-22  Bruno Haible  <bruno@clisp.org>
16080
16081         wcrtomb: Add more tests for native Windows platforms.
16082         * tests/test-wcrtomb-w32-1.sh: New file.
16083         * tests/test-wcrtomb-w32-2.sh: New file.
16084         * tests/test-wcrtomb-w32-3.sh: New file.
16085         * tests/test-wcrtomb-w32-4.sh: New file.
16086         * tests/test-wcrtomb-w32-5.sh: New file.
16087         * tests/test-wcrtomb-w32.c: New file.
16088         * modules/wcrtomb-tests (Files): Add them.
16089         (Makefile.am): Arrange to run these tests.
16090         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
16091         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
16092
16093 2011-02-20  Bruno Haible  <bruno@clisp.org>
16094
16095         wcrtomb: Enhance test.
16096         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
16097
16098 2011-02-20  Bruno Haible  <bruno@clisp.org>
16099
16100         mbrtowc: Tiny optimization.
16101         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
16102
16103 2011-02-20  Jim Meyering  <meyering@redhat.com>
16104
16105         test-exclude.c: remove unmatched #endif
16106         * tests/test-exclude.c: Remove stray #endif, left over from
16107         the change of a week ago.
16108
16109 2011-02-19  Jim Meyering  <meyering@redhat.com>
16110
16111         git-version-gen: skip "-dirty" check when appropriate
16112         * build-aux/git-version-gen: Don't run any git commands when the
16113         version string comes from .tarball-version.  Prior to this, we
16114         would run git update-index --refresh even from a just-unpacked
16115         tarball directory, and that could affect a .git/ directory in a
16116         parent of the build directory.  Reported by Mike Frysinger.
16117
16118 2011-02-19  Bruno Haible  <bruno@clisp.org>
16119
16120         unictype/property-byname: Reduce the size of the 'data' segment.
16121         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
16122
16123 2011-02-19  Bruno Haible  <bruno@clisp.org>
16124
16125         unictype/scripts: Reduce the size of the 'data' segment.
16126         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
16127         '%pic'.
16128         * lib/unictype/scripts_byname.gperf: Regenerated.
16129
16130 2011-02-19  Bruno Haible  <bruno@clisp.org>
16131
16132         stdint: Update documentation.
16133         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
16134
16135 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
16136
16137         stdint: omit redundant check for wchar.h
16138         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
16139         always tests whether wchar.h exists, so remove the now-redundant test.
16140
16141 2011-02-18  Bruno Haible  <bruno@clisp.org>
16142
16143         stdint: Cut dependency to module 'wchar'.
16144         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
16145         include the necessary prerequisites.
16146         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
16147         * modules/stdint (Depends-on): Remove wchar.
16148         (Makefile.am): Substitute HAVE_WCHAR_H.
16149         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
16150
16151 2011-02-18  Eric Blake  <eblake@redhat.com>
16152
16153         longlong: skip, rather than fail, on cross-compilation
16154         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
16155         when cross-compiling; regression from 2011-02-16.
16156
16157 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
16158
16159         * NEWS: Mention 2011-02-08 change to stdlib.
16160
16161 2011-02-17  Bruno Haible  <bruno@clisp.org>
16162
16163         getloadavg: Add comments about platforms.
16164         * m4/getloadavg.m4: Add comment.
16165         * lib/getloadavg.c: Likewise.
16166
16167 2011-02-17  Bruno Haible  <bruno@clisp.org>
16168
16169         getloadavg: Fix link error on Solaris 2.6.
16170         * modules/getloadavg (Link): New section.
16171         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
16172         linking test-getloadavg.
16173         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
16174         getloadavg.
16175
16176 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
16177
16178         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
16179         It was 'int', but this doesn't match the IRIX 6.5 manual.
16180         Suggested by Bruno Haible in
16181         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
16182
16183 2011-02-17  Bruno Haible  <bruno@clisp.org>
16184
16185         havelib: Fix comments.
16186         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
16187         change.
16188
16189 2011-02-17  Bruno Haible  <bruno@clisp.org>
16190
16191         havelib: Update config.rpath.
16192         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
16193
16194 2011-02-17  Bruno Haible  <bruno@clisp.org>
16195
16196         getloadavg test: Add some plausibility checks.
16197         * tests/test-getloadavg.c (check_avg): Print a warning when the value
16198         is improbable.
16199
16200 2011-02-16  Eric Blake  <eblake@redhat.com>
16201
16202         maintainer-makefile: make syntax-check a no-op from tarballs
16203         * top/maint.mk (no-vc-detected): New rule.
16204         (local-checks-available): Use it to avoid hanging if someone tries
16205         'make syntax-check' from a tarball.  Also append to any non-syntax
16206         checks already defined in cfg.mk.
16207
16208 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
16209
16210         longlong: tune, particularly for common case of c99
16211
16212         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
16213         or running anything if c99, or if unsigned long long int does not
16214         work.  In either case, we know the answer without further tests.
16215         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
16216         it at most once, and use its results for both long long int and
16217         unsigned long long int.  This is more likely to be efficient in
16218         the common case where the program wants to check for both long
16219         long int and unsigned long long int.
16220         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
16221         since the answer is already known.
16222
16223 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
16224
16225         getloadavg: set errno
16226         * lib/getloadavg.c: Set errno when returning -1.  If no other
16227         error number looks appropriate, set it to ENOSYS if the getloadavg
16228         looks like it can't possibly ever work, ENOTSUP otherwise.
16229         Suggested by Bruno Haible in
16230         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
16231
16232         getloadavg: trim unused parts and speed up 'configure'
16233         * NEWS: Document this.
16234         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
16235         always compiled if getloadavg is absent.
16236         Move test code to ...
16237         * tests/test-getloadavg.c: New file, containing previous
16238         contents of test from lib/getloadavg.c.  It also contains
16239         suggestions by Bruno Haible in
16240         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
16241         * modules/getloadavg-tests: New file.
16242         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
16243         Do tests in the same order as they're needed for getloadavg.c.
16244         Omit setgid-related tests that generate symbols KMEM_GROUP,
16245         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
16246         Do only the tests that are needed to see whether the system has
16247         getloadavg, moving the other tests into ...
16248         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
16249         NLIST_NAME_UNION; nobody should be using it.  Do not define
16250         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
16251         relevant, as the user of this module shouldn't care how getloadavg
16252         is implemented.
16253
16254         getloadavg: omit unused var
16255         * lib/getloadavg.c (getloadavg): Omit unused local variable.
16256
16257 2011-02-15  Jim Meyering  <meyering@redhat.com>
16258
16259         doc: update users.txt
16260         * users.txt: Update iwhd's URL.
16261
16262 2011-02-13  Bruno Haible  <bruno@clisp.org>
16263
16264         Consistent macro naming for macros that use GCC __attribute__.
16265         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
16266         _ATTRIBUTE_NONNULL_.
16267         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
16268         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
16269         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
16270         ATTRIBUTE_DEPRECATED.
16271         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
16272         ATTRIBUTE_NORETURN.
16273         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16274         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16275         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16276         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16277         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
16278         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
16279         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
16280         ATTRIBUTE_SENTINEL.
16281         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
16282         ATTRIBUTE_RETURN_CHECK.
16283         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
16284         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
16285         ATTRIBUTE_NORETURN.
16286         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
16287         Reported by Paul Eggert.
16288
16289 2011-02-13  Bruno Haible  <bruno@clisp.org>
16290
16291         Don't interfere with a program's definition of __attribute__.
16292         * lib/argp.h (__attribute__): Remove definition.
16293         (_GL_ATTRIBUTE_FORMAT): New macro.
16294         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
16295         * lib/argp-fmtstream.h (__attribute__): Remove definition.
16296         (_GL_ATTRIBUTE_FORMAT): New macro.
16297         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
16298         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
16299         GCC 3 or newer.
16300         * lib/error.h (__attribute__): Remove definition.
16301         (_GL_ATTRIBUTE_FORMAT): New macro.
16302         (error, error_at_line): Use it.
16303         * lib/hash.h (__attribute__): Remove definition.
16304         (ATTRIBUTE_WUR): Update definition. Define always.
16305         * lib/openat.h (__attribute__): Remove definition.
16306         (ATTRIBUTE_NORETURN): Update definition. Define always.
16307         * lib/sigpipe-die.h (__attribute__): Remove definition.
16308         (ATTRIBUTE_NORETURN): Update definition. Define always.
16309         * lib/vasnprintf.h (__attribute__): Remove definition.
16310         (_GL_ATTRIBUTE_FORMAT): New macro.
16311         (asnprintf, vasnprintf): Use it.
16312         * lib/xalloc.h (__attribute__): Remove definition.
16313         (ATTRIBUTE_NORETURN): Update definition. Define always.
16314         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
16315         * lib/xmemdup0.h (__attribute__): Remove definition.
16316         (ATTRIBUTE_NORETURN): Update definition. Define always.
16317         * lib/xprintf.h (__attribute__): Remove definition.
16318         (_GL_ATTRIBUTE_FORMAT): New macro.
16319         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
16320         * lib/xstrtol.h (__attribute__): Remove definition.
16321         (ATTRIBUTE_NORETURN): Update definition. Define always.
16322         * lib/xvasprintf.h (__attribute__): Remove definition.
16323         (_GL_ATTRIBUTE_FORMAT): New macro.
16324         (xasprintf, xvasprintf): Use it.
16325         * tests/test-argmatch.c (__attribute__): Remove definition.
16326         (ATTRIBUTE_NORETURN): Update definition. Define always.
16327         * tests/test-exclude.c (__attribute__): Remove definition.
16328         (ATTRIBUTE_NORETURN): Update definition. Define always.
16329         Reported by Paul Eggert.
16330
16331 2011-02-13  Bruno Haible  <bruno@clisp.org>
16332
16333         mbrtowc: Add more tests for native Windows platforms.
16334         * tests/test-mbrtowc-w32-1.sh: New file.
16335         * tests/test-mbrtowc-w32-2.sh: New file.
16336         * tests/test-mbrtowc-w32-3.sh: New file.
16337         * tests/test-mbrtowc-w32-4.sh: New file.
16338         * tests/test-mbrtowc-w32-5.sh: New file.
16339         * tests/test-mbrtowc-w32.c: New file.
16340         * modules/mbrtowc-tests (Files): Add them.
16341         (Makefile.am): Arrange to run these tests.
16342         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
16343         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
16344
16345 2011-02-13  Bruno Haible  <bruno@clisp.org>
16346
16347         mbrtowc: Work around native Windows bug.
16348         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
16349         guess when no suitable locale for testing was found.
16350         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
16351
16352 2011-02-13  Bruno Haible  <bruno@clisp.org>
16353
16354         mbsinit: Work around mingw bug.
16355         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
16356         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
16357         Windows.
16358         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
16359
16360 2011-02-13  Bruno Haible  <bruno@clisp.org>
16361
16362         mbsinit: Don't crash for a NULL argument.
16363         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
16364         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
16365
16366 2011-02-13  Bruno Haible  <bruno@clisp.org>
16367
16368         Don't interfere with a program's definition of __attribute__.
16369         * lib/stdio.in.h (__attribute__): Remove definition.
16370         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
16371         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
16372         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
16373         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
16374         * lib/string.in.h (__attribute__): Remove definition.
16375         Reported by Paul Eggert.
16376
16377 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16378
16379         stdlib: don't get in the way of non-GCC __attribute__
16380         See thread starting at
16381         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
16382         Revert previous stdlib change, installing the following instead:
16383         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
16384         to get in the way of a non-GCC compiler that supports __attribute__.
16385         (_GL_ATTRIBUTE_RETURN): New macro.
16386         (_Exit): Use it instead of __attribute__.
16387
16388 2011-02-12  Bruno Haible  <bruno@clisp.org>
16389
16390         quotearg test: Avoid test failure on mingw.
16391         * tests/test-quotearg.sh: Convert the locale identifier from native
16392         Windows syntax to Unix syntax.
16393
16394 2011-02-12  Bruno Haible  <bruno@clisp.org>
16395
16396         setlocale: Prefer gnulib's override over libintl's override.
16397         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
16398         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
16399         GNULIB_defined_setlocale is set.
16400
16401 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16402
16403         stdlib: support non-GCC __attribute__
16404
16405         Fix a serious and tricky problem encountered when attempting to
16406         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
16407         5.5, but it crashed due to memory corruption on Solaris 10 with
16408         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
16409         bits that are otherwise zero.  This tagging is optional inside
16410         Emacs but is preferred and is used when __attribute__ ((__aligned
16411         (8))) works, as it does with both recent-enough GCC and with Sun C
16412         5.11.  However, Sun C 5.11 is not GCC and does not #define
16413         __GNUC__ and __GNUC_MINOR__.
16414
16415         When I added the getloadavg module to Emacs, it brought in
16416         stdlib.in.h, which contained this fragment:
16417
16418            #ifndef __attribute__
16419            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
16420            #  define __attribute__(Spec)   /* empty */
16421            # endif
16422            #endif
16423
16424         When files that include <stdlib.h> were compiled with Sun C 5.11,
16425         the above code disabled __attribute__ ((__aligned (8))), which
16426         caused variables to not be properly aligned, which eventually led
16427         to the pointer corruption mentioned above.  (This was a bit hard
16428         to diagnose, unfortunately.)
16429
16430         Several "#define __attribute__(X) /* empty */" code snippets need
16431         to be eradicated from Gnulib to work with non-GCC compilers that
16432         support __attribute__.  The Autoconf way to do this is to test for
16433         each kind of attribute that we want support for, and selectively
16434         enable that in source code.
16435
16436         Fix this problem just for stdlib.h, by adding a test for the
16437         __noreturn__ attribute, and change stdlib.in.h to use that test
16438         when needed.  This technique can be easily generalized to the
16439         other *.in.h files and attributes, and a similar technique can be
16440         used for *.h and *.c files.  This patch is enough to solve the
16441         problem for Emacs + getloadavg, and I thought I'd publish it for
16442         feedback before undertaking further, similar fixes in other
16443         modules.
16444
16445         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
16446         because it's not needed for stdlib.h.  It merely substitutes the
16447         value directly into stdlib.h.  We may well need to #define it, or
16448         similar symbols, for other modules, but it's nice to also have an
16449         option to not #define it for applications like Emacs that do not
16450         need it.
16451
16452         * lib/stdlib.in.h (__attribute__): Do not #define.
16453         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
16454         be defined only if the _Exit module is also used.
16455         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
16456         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
16457         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
16458         platforms.
16459         * modules/_Exit (Files): Add m4/attribute.m4.
16460         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
16461         * m4/attribute.m4: New file.
16462
16463 2011-02-12  Bruno Haible  <bruno@clisp.org>
16464
16465         wcsrtombs: Work around bug on native Windows.
16466         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
16467         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
16468         instead of len.
16469         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
16470
16471 2011-02-12  Bruno Haible  <bruno@clisp.org>
16472
16473         mbsrtowcs: Work around bug on native Windows.
16474         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
16475         against mingw bug.
16476         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
16477
16478 2011-02-12  Bruno Haible  <bruno@clisp.org>
16479
16480         Avoid setlocale bugs in tests.
16481         * modules/btowc (Dependencies): Add setlocale.
16482         * modules/c-strcase (Dependencies): Likewise.
16483         * modules/mbmemcasecmp (Dependencies): Likewise.
16484         * modules/mbmemcasecoll (Dependencies): Likewise.
16485         * modules/mbrtowc (Dependencies): Likewise.
16486         * modules/mbscasecmp (Dependencies): Likewise.
16487         * modules/mbscasestr (Dependencies): Likewise.
16488         * modules/mbschr (Dependencies): Likewise.
16489         * modules/mbscspn (Dependencies): Likewise.
16490         * modules/mbsinit (Dependencies): Likewise.
16491         * modules/mbsncasecmp (Dependencies): Likewise.
16492         * modules/mbsnrtowcs (Dependencies): Likewise.
16493         * modules/mbspbrk (Dependencies): Likewise.
16494         * modules/mbspcasecmp (Dependencies): Likewise.
16495         * modules/mbsrchr (Dependencies): Likewise.
16496         * modules/mbsrtowcs (Dependencies): Likewise.
16497         * modules/mbsspn (Dependencies): Likewise.
16498         * modules/mbsstr (Dependencies): Likewise.
16499         * modules/nl_langinfo (Dependencies): Likewise.
16500         * modules/quotearg (Dependencies): Likewise.
16501         * modules/unicase/locale-language (Dependencies): Likewise.
16502         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
16503         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
16504         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
16505         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
16506         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
16507         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
16508         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
16509         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
16510         * modules/vasnprintf-posix (Dependencies): Likewise.
16511         * modules/wcrtomb (Dependencies): Likewise.
16512         * modules/wcsnrtombs (Dependencies): Likewise.
16513         * modules/wcsrtombs (Dependencies): Likewise.
16514
16515 2011-02-12  Bruno Haible  <bruno@clisp.org>
16516
16517         setlocale: Workaround native Windows bug.
16518         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
16519         succeeds but sets LC_CTYPE to "C", report a failure.
16520         * tests/test-setlocale2.sh: New file.
16521         * tests/test-setlocale2.c: New file.
16522         * modules/setlocale-tests (Files): Add the new files.
16523         (Makefile.am): Enable test-setlocale2.sh test.
16524         * doc/posix-functions/setlocale.texi: Mention workaround.
16525
16526 2011-02-11  Bruno Haible  <bruno@clisp.org>
16527
16528         Tests for module 'setlocale'.
16529         * modules/setlocale-tests: New file.
16530         * tests/test-setlocale1.sh: New file.
16531         * tests/test-setlocale1.c: New file.
16532
16533         New module 'setlocale'.
16534         * lib/locale.in.h (setlocale): New declaration.
16535         * lib/setlocale.c: New file, based on
16536         gettext/gettext-runtime/intl/setlocale.c.
16537         * m4/setlocale.m4: New file.
16538         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
16539         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
16540         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
16541         REPLACE_SETLOCALE.
16542         * modules/setlocale: New file.
16543         * tests/test-locale-c++.cc: Test the declaration of setlocale.
16544         * doc/posix-functions/setlocale.texi: Mention the new module.
16545
16546 2011-02-11  Bruno Haible  <bruno@clisp.org>
16547
16548         Prepare for locale dependent tests on mingw.
16549         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
16550         because it has the wrong locale encoding.
16551         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
16552         French_France.1252 instead of "fr".
16553         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
16554         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
16555         because it has the wrong locale encoding.
16556         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
16557         native Windows, try Turkish_Turkey.65001.
16558         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
16559         Chinese_China.54936.
16560
16561         Prepare for locale dependent tests on mingw.
16562         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
16563         differently.
16564         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
16565         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
16566         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
16567         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16568
16569 2011-02-11  Eric Blake  <eblake@redhat.com>
16570
16571         strptime: avoid compiler warnings
16572         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
16573         compiler warnings about dead code.
16574         Reported by Daniel P. Berrange.
16575
16576 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
16577
16578         doc: update users.txt
16579         * users.txt: Add rcs.
16580
16581 2011-02-10  John W. Eaton  <jwe@gnu.org>
16582
16583         doc: update users.txt
16584         * users.txt: Add octave.
16585
16586 2011-02-10  Jim Meyering  <meyering@redhat.com>
16587
16588         doc: update users.txt
16589         * users.txt: Add iwhd.
16590
16591 2011-02-09  Bruno Haible  <bruno@clisp.org>
16592
16593         gnulib-tool: Make copyright notice adjustment more robust.
16594         * gnulib-tool (func_import): In sed_transform_main_lib_file,
16595         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
16596         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
16597         License".
16598         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
16599
16600 2011-02-06  Bruno Haible  <bruno@clisp.org>
16601
16602         New module 'towctrans'.
16603         * modules/towctrans: New file.
16604         * lib/wctype.in.h (towctrans): New declaration.
16605         * lib/towctrans.c: New file.
16606         * lib/towctrans-impl.h: New file.
16607         * m4/towctrans.m4: New file.
16608         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
16609         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
16610         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
16611         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
16612         * doc/posix-functions/towctrans.texi: Mention the new module.
16613
16614 2011-02-06  Bruno Haible  <bruno@clisp.org>
16615
16616         New module 'wctrans'.
16617         * modules/wctrans: New file.
16618         * lib/wctype.in.h (wctrans): New declaration.
16619         * lib/wctrans.c: New file.
16620         * lib/wctrans-impl.h: New file.
16621         * m4/wctrans.m4: New file.
16622         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
16623         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
16624         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
16625         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
16626         * doc/posix-functions/wctrans.texi: Mention the new module.
16627
16628 2011-02-06  Bruno Haible  <bruno@clisp.org>
16629
16630         New module 'iswctype'.
16631         * modules/iswctype: New file.
16632         * lib/wctype.in.h (iswctype): New declaration.
16633         * lib/iswctype.c: New file.
16634         * lib/iswctype-impl.h: New file.
16635         * m4/iswctype.m4: New file.
16636         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
16637         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
16638         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
16639         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
16640         * doc/posix-functions/iswctype.texi: Mention the new module and the
16641         HP-UX 11.00 problem.
16642
16643 2011-02-06  Bruno Haible  <bruno@clisp.org>
16644
16645         New module 'wctype'.
16646         * modules/wctype: Change to represent the wctype() substitute.
16647         * lib/wctype.in.h (wctype): New declaration.
16648         * lib/wctype.c: New file.
16649         * lib/wctype-impl.h: New file.
16650         * m4/wctype.m4: New file.
16651         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
16652         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
16653         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
16654         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
16655         * doc/posix-functions/wctype.texi: Mention the new module and the
16656         HP-UX 11.00 problem.
16657
16658 2011-02-06  Bruno Haible  <bruno@clisp.org>
16659
16660         wctype-h: Ensure wctype_t and wctrans_t are defined.
16661         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
16662         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
16663         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
16664         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
16665         HAVE_WCTRANS_T.
16666         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
16667
16668 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
16669
16670         flock: fix license typo
16671
16672         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
16673         omitted.
16674
16675 2011-02-08  Bruno Haible  <bruno@clisp.org>
16676
16677         Split large sed scripts, for HP-UX sed.
16678         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
16679         to avoid HP-UX limit of 99 commands, in the near future.
16680         * modules/stdlib (Makefile.am): Likewise.
16681         * modules/unistd (Makefile.am): Likewise.
16682         * modules/wchar (Makefile.am): Likewise.
16683         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16684         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
16685         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
16686
16687 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16688             Bruno Haible  <bruno@clisp.org>
16689
16690         stdlib: improve random_r modularization
16691         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
16692         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
16693         you also need the random_r module to get this material right.
16694         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
16695         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
16696         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
16697
16698 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16699
16700         stdlib: don't depend on stdint
16701         * lib/stdlib.in.h: Don't include <stdint.h> merely because
16702         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
16703         be independent of whether stdint.h is needed.
16704         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
16705         here, instead of ...
16706         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
16707         struct random_data should be using the random_r module, not just
16708         the stdlib module (which wouldn't make sense: what package needs
16709         just struct random_data without also needing random_r?).
16710         * modules/stdlib (Depends-on): Remove stdint.
16711
16712         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
16713         See the thread rooted at
16714         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
16715         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
16716         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
16717         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
16718         __VMS)); previously it was always included (via fcntl--.h).
16719         (getloadavg): Do not use c_strtod.  Instead, approximate it by
16720         hand; this is good enough for load averages.  Also, do not use
16721         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
16722         flags directly if available and don't bother otherwise.  (Packages
16723         that need the extra reliability should use the modules that define
16724         these flags on older platforms that lack them.)
16725         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
16726         fcntl-safer.
16727
16728 2011-02-08  Jim Meyering  <meyering@redhat.com>
16729
16730         di-set.h, ino-map.h: add multiple-inclusion guard
16731         Technically, the guard is required only for ino-map.h, due to its
16732         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
16733         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
16734         * lib/ino-map.h: Likewise.
16735
16736 2011-02-06  Bruno Haible  <bruno@clisp.org>
16737
16738         iswblank: Ensure declaration on glibc systems.
16739         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
16740         * modules/iswblank (Dependencies): Add 'extensions'.
16741         * doc/posix-functions/iswblank.texi: Document the glibc problem.
16742
16743 2011-02-06  Bruno Haible  <bruno@clisp.org>
16744
16745         New module 'iswblank'.
16746         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
16747         * modules/iswblank: New file.
16748         * modules/wctype-h (Files): Remove lib/iswblank.c.
16749         (Makefile.am): Substitute GNULIB_ISWBLANK.
16750         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
16751         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
16752         (gl_WCTYPE_H_DEFAULTS): New macro.
16753         (gl_WCTYPE_H): Require it. Remove iswblank related code.
16754         * modules/iswblank-tests: New file.
16755         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
16756         * tests/test-wctype-h.c (main): Remove iswblank tests.
16757         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
16758         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
16759         of 'wctype-h'.
16760         * NEWS: Mention the change.
16761         * modules/mbchar (Depends-on): Add iswblank.
16762
16763 2011-02-08  Bruno Haible  <bruno@clisp.org>
16764
16765         di-set tests: Refactor.
16766         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
16767         unnecessary includes.
16768         (ASSERT): Remove macro.
16769         (main): Make C90 compliant by avoiding variable declaration after
16770         statement.
16771         * modules/di-set-tests (Files): Add tests/macros.h.
16772
16773 2011-02-08  Bruno Haible  <bruno@clisp.org>
16774
16775         ino-map tests: Refactor.
16776         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
16777         unnecessary includes.
16778         (ASSERT): Remove macro.
16779         (main): Make C90 compliant by avoiding variable declaration after
16780         statement.
16781         * modules/ino-map-tests (Files): Add tests/macros.h.
16782
16783 2011-02-08  Jim Meyering  <meyering@redhat.com>
16784
16785         di-set: add "const" to a cast
16786         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
16787         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
16788
16789 2011-02-06  Bruno Haible  <bruno@clisp.org>
16790
16791         Rename module 'wctype' to 'wctype-h'.
16792         * modules/wctype-h: Renamed from modules/wctype.
16793         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
16794         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
16795         (Files, Depends-on, Makefile.am): Update.
16796         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
16797         (Files, Makefile.am): Update.
16798         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
16799         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
16800         * doc/posix-headers/wctype.texi: Update.
16801         * doc/posix-functions/iswalnum.texi: Update.
16802         * doc/posix-functions/iswalpha.texi: Update.
16803         * doc/posix-functions/iswblank.texi: Update.
16804         * doc/posix-functions/iswcntrl.texi: Update.
16805         * doc/posix-functions/iswdigit.texi: Update.
16806         * doc/posix-functions/iswgraph.texi: Update.
16807         * doc/posix-functions/iswlower.texi: Update.
16808         * doc/posix-functions/iswprint.texi: Update.
16809         * doc/posix-functions/iswpunct.texi: Update.
16810         * doc/posix-functions/iswspace.texi: Update.
16811         * doc/posix-functions/iswupper.texi: Update.
16812         * doc/posix-functions/iswxdigit.texi: Update.
16813         * doc/posix-functions/towlower.texi: Update.
16814         * doc/posix-functions/towupper.texi: Update.
16815         * NEWS: Mention the change.
16816         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
16817         * modules/mbchar (Dependencies): Likewise.
16818         * modules/mbswidth (Dependencies): Likewise.
16819         * modules/quotearg (Dependencies): Likewise.
16820         * modules/regex (Dependencies): Likewise.
16821         * modules/wcscasecmp (Dependencies): Likewise.
16822         * modules/wcsncasecmp (Dependencies): Likewise.
16823         * modules/wcwidth (Dependencies): Likewise.
16824
16825 2011-02-06  Bruno Haible  <bruno@clisp.org>
16826
16827         New module 'wcswidth'.
16828         * modules/wcswidth: New file.
16829         * lib/wchar.in.h (wcswidth): New declaration.
16830         * lib/wcswidth.c: New file.
16831         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
16832         * m4/wcswidth.m4: New file.
16833         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
16834         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
16835         REPLACE_WCSWIDTH.
16836         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
16837         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
16838         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
16839         * doc/posix-functions/wcswidth.texi: Mention the new module.
16840
16841 2011-02-06  Bruno Haible  <bruno@clisp.org>
16842
16843         New module 'wcstok'.
16844         * modules/wcstok: New file.
16845         * lib/wchar.in.h (wcstok): New declaration.
16846         * lib/wcstok.c: New file.
16847         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
16848         * m4/wcstok.m4: New file.
16849         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
16850         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
16851         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
16852         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
16853         * doc/posix-functions/wcstok.texi: Mention the new module.
16854
16855 2011-02-06  Bruno Haible  <bruno@clisp.org>
16856
16857         New module 'wcsstr'.
16858         * modules/wcsstr: New file.
16859         * lib/wchar.in.h (wcsstr): New declaration.
16860         * lib/wcsstr.c: New file.
16861         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
16862         * m4/wcsstr.m4: New file.
16863         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
16864         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
16865         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
16866         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
16867         * doc/posix-functions/wcsstr.texi: Mention the new module.
16868
16869 2011-02-06  Bruno Haible  <bruno@clisp.org>
16870
16871         New module 'wcspbrk'.
16872         * modules/wcspbrk: New file.
16873         * lib/wchar.in.h (wcspbrk): New declaration.
16874         * lib/wcspbrk.c: New file.
16875         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
16876         * m4/wcspbrk.m4: New file.
16877         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
16878         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
16879         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
16880         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
16881         * doc/posix-functions/wcspbrk.texi: Mention the new module.
16882
16883 2011-02-06  Bruno Haible  <bruno@clisp.org>
16884
16885         New module 'wcsspn'.
16886         * modules/wcsspn: New file.
16887         * lib/wchar.in.h (wcsspn): New declaration.
16888         * lib/wcsspn.c: New file.
16889         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
16890         * m4/wcsspn.m4: New file.
16891         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
16892         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
16893         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
16894         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
16895         * doc/posix-functions/wcsspn.texi: Mention the new module.
16896
16897 2011-02-06  Bruno Haible  <bruno@clisp.org>
16898
16899         New module 'wcscspn'.
16900         * modules/wcscspn: New file.
16901         * lib/wchar.in.h (wcscspn): New declaration.
16902         * lib/wcscspn.c: New file.
16903         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
16904         * m4/wcscspn.m4: New file.
16905         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
16906         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
16907         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
16908         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
16909         * doc/posix-functions/wcscspn.texi: Mention the new module.
16910
16911 2011-02-06  Bruno Haible  <bruno@clisp.org>
16912
16913         New module 'wcsrchr'.
16914         * modules/wcsrchr: New file.
16915         * lib/wchar.in.h (wcsrchr): New declaration.
16916         * lib/wcsrchr.c: New file.
16917         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
16918         * m4/wcsrchr.m4: New file.
16919         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
16920         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
16921         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
16922         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
16923         * doc/posix-functions/wcsrchr.texi: Mention the new module.
16924
16925 2011-02-06  Bruno Haible  <bruno@clisp.org>
16926
16927         New module 'wcschr'.
16928         * modules/wcschr: New file.
16929         * lib/wchar.in.h (wcschr): New declaration.
16930         * lib/wcschr.c: New file.
16931         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
16932         * m4/wcschr.m4: New file.
16933         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
16934         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
16935         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
16936         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
16937         * doc/posix-functions/wcschr.texi: Mention the new module.
16938
16939 2011-02-06  Bruno Haible  <bruno@clisp.org>
16940
16941         New module 'wcsdup'.
16942         * modules/wcsdup: New file.
16943         * lib/wchar.in.h (wcsdup): New declaration.
16944         * lib/wcsdup.c: New file.
16945         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
16946         * m4/wcsdup.m4: New file.
16947         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
16948         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
16949         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
16950         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
16951         * doc/posix-functions/wcsdup.texi: Mention the new module.
16952
16953 2011-02-06  Bruno Haible  <bruno@clisp.org>
16954
16955         New module 'wcsxfrm'.
16956         * modules/wcsxfrm: New file.
16957         * lib/wchar.in.h (wcsxfrm): New declaration.
16958         * lib/wcsxfrm.c: New file.
16959         * lib/wcsxfrm-impl.h: New file.
16960         * m4/wcsxfrm.m4: New file.
16961         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
16962         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
16963         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
16964         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
16965         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
16966
16967 2011-02-06  Bruno Haible  <bruno@clisp.org>
16968
16969         New module 'wcscoll'.
16970         * modules/wcscoll: New file.
16971         * lib/wchar.in.h (wcscoll): New declaration.
16972         * lib/wcscoll.c: New file.
16973         * lib/wcscoll-impl.h: New file.
16974         * m4/wcscoll.m4: New file.
16975         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
16976         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
16977         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
16978         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
16979         * doc/posix-functions/wcscoll.texi: Mention the new module.
16980
16981 2011-02-06  Bruno Haible  <bruno@clisp.org>
16982
16983         New module 'wcsncasecmp'.
16984         * modules/wcsncasecmp: New file.
16985         * lib/wchar.in.h (wcsncasecmp): New declaration.
16986         * lib/wcsncasecmp.c: New file.
16987         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
16988         * m4/wcsncasecmp.m4: New file.
16989         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
16990         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
16991         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
16992         HAVE_WCSNCASECMP.
16993         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
16994         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
16995
16996 2011-02-06  Bruno Haible  <bruno@clisp.org>
16997
16998         New module 'wcscasecmp'.
16999         * modules/wcscasecmp: New file.
17000         * lib/wchar.in.h (wcscasecmp): New declaration.
17001         * lib/wcscasecmp.c: New file.
17002         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
17003         * m4/wcscasecmp.m4: New file.
17004         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
17005         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
17006         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
17007         HAVE_WCSCASECMP.
17008         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
17009         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
17010
17011 2011-02-05  Bruno Haible  <bruno@clisp.org>
17012
17013         New module 'wcsncmp'.
17014         * modules/wcsncmp: New file.
17015         * lib/wchar.in.h (wcsncmp): New declaration.
17016         * lib/wcsncmp.c: New file.
17017         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
17018         * m4/wcsncmp.m4: New file.
17019         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
17020         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
17021         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
17022         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
17023         * doc/posix-functions/wcsncmp.texi: Mention the new module.
17024
17025 2011-02-05  Bruno Haible  <bruno@clisp.org>
17026
17027         New module 'wcscmp'.
17028         * modules/wcscmp: New file.
17029         * lib/wchar.in.h (wcscmp): New declaration.
17030         * lib/wcscmp.c: New file.
17031         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
17032         * m4/wcscmp.m4: New file.
17033         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
17034         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
17035         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
17036         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
17037         * doc/posix-functions/wcscmp.texi: Mention the new module.
17038
17039 2011-02-05  Bruno Haible  <bruno@clisp.org>
17040
17041         New module 'wcsncat'.
17042         * modules/wcsncat: New file.
17043         * lib/wchar.in.h (wcsncat): New declaration.
17044         * lib/wcsncat.c: New file.
17045         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
17046         * m4/wcsncat.m4: New file.
17047         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
17048         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
17049         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
17050         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
17051         * doc/posix-functions/wcsncat.texi: Mention the new module.
17052
17053 2011-02-05  Bruno Haible  <bruno@clisp.org>
17054
17055         New module 'wcscat'.
17056         * modules/wcscat: New file.
17057         * lib/wchar.in.h (wcscat): New declaration.
17058         * lib/wcscat.c: New file.
17059         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
17060         * m4/wcscat.m4: New file.
17061         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
17062         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
17063         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
17064         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
17065         * doc/posix-functions/wcscat.texi: Mention the new module.
17066
17067 2011-02-05  Bruno Haible  <bruno@clisp.org>
17068
17069         New module 'wcpncpy'.
17070         * modules/wcpncpy: New file.
17071         * lib/wchar.in.h (wcpncpy): New declaration.
17072         * lib/wcpncpy.c: New file.
17073         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
17074         * m4/wcpncpy.m4: New file.
17075         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
17076         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
17077         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
17078         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
17079         * doc/posix-functions/wcpncpy.texi: Mention the new module.
17080
17081 2011-02-05  Bruno Haible  <bruno@clisp.org>
17082
17083         New module 'wcsncpy'.
17084         * modules/wcsncpy: New file.
17085         * lib/wchar.in.h (wcsncpy): New declaration.
17086         * lib/wcsncpy.c: New file.
17087         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
17088         * m4/wcsncpy.m4: New file.
17089         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
17090         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
17091         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
17092         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
17093         * doc/posix-functions/wcsncpy.texi: Mention the new module.
17094
17095 2011-02-05  Bruno Haible  <bruno@clisp.org>
17096
17097         New module 'wcpcpy'.
17098         * modules/wcpcpy: New file.
17099         * lib/wchar.in.h (wcpcpy): New declaration.
17100         * lib/wcpcpy.c: New file.
17101         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
17102         * m4/wcpcpy.m4: New file.
17103         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
17104         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
17105         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
17106         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
17107         * doc/posix-functions/wcpcpy.texi: Mention the new module.
17108
17109 2011-02-05  Bruno Haible  <bruno@clisp.org>
17110
17111         New module 'wcscpy'.
17112         * modules/wcscpy: New file.
17113         * lib/wchar.in.h (wcscpy): New declaration.
17114         * lib/wcscpy.c: New file.
17115         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
17116         * m4/wcscpy.m4: New file.
17117         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
17118         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
17119         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
17120         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
17121         * doc/posix-functions/wcscpy.texi: Mention the new module.
17122
17123 2011-02-05  Bruno Haible  <bruno@clisp.org>
17124
17125         New module 'wcsnlen'.
17126         * modules/wcsnlen: New file.
17127         * lib/wchar.in.h (wcsnlen): New declaration.
17128         * lib/wcsnlen.c: New file.
17129         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
17130         * m4/wcsnlen.m4: New file.
17131         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
17132         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
17133         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
17134         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
17135         * doc/posix-functions/wcsnlen.texi: Mention the new module.
17136
17137 2011-02-05  Bruno Haible  <bruno@clisp.org>
17138
17139         New module 'wcslen'.
17140         * modules/wcslen: New file.
17141         * lib/wchar.in.h (wcslen): New declaration.
17142         * lib/wcslen.c: New file.
17143         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
17144         * m4/wcslen.m4: New file.
17145         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
17146         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
17147         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
17148         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
17149         * doc/posix-functions/wcslen.texi: Mention the new module.
17150
17151 2011-02-05  Bruno Haible  <bruno@clisp.org>
17152
17153         New module 'wmemset'.
17154         * modules/wmemset: New file.
17155         * lib/wchar.in.h (wmemset): New declaration.
17156         * lib/wmemset.c: New file.
17157         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
17158         * m4/wmemset.m4: New file.
17159         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
17160         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
17161         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
17162         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
17163         * doc/posix-functions/wmemset.texi: Mention the new module.
17164
17165 2011-02-05  Bruno Haible  <bruno@clisp.org>
17166
17167         New module 'wmemmove'.
17168         * modules/wmemmove: New file.
17169         * lib/wchar.in.h (wmemmove): New declaration.
17170         * lib/wmemmove.c: New file.
17171         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
17172         * m4/wmemmove.m4: New file.
17173         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
17174         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
17175         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
17176         HAVE_WMEMMOVE.
17177         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
17178         * doc/posix-functions/wmemmove.texi: Mention the new module.
17179
17180 2011-02-05  Bruno Haible  <bruno@clisp.org>
17181
17182         New module 'wmemcpy'.
17183         * modules/wmemcpy: New file.
17184         * lib/wchar.in.h (wmemcpy): New declaration.
17185         * lib/wmemcpy.c: New file.
17186         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
17187         * m4/wmemcpy.m4: New file.
17188         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
17189         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
17190         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
17191         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
17192         * doc/posix-functions/wmemcpy.texi: Mention the new module.
17193
17194 2011-02-05  Bruno Haible  <bruno@clisp.org>
17195
17196         New module 'wmemcmp'.
17197         * modules/wmemcmp: New file.
17198         * lib/wchar.in.h (wmemcmp): New declaration.
17199         * lib/wmemcmp.c: New file.
17200         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
17201         * m4/wmemcmp.m4: New file.
17202         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
17203         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
17204         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
17205         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
17206         * doc/posix-functions/wmemcmp.texi: Mention the new module.
17207
17208 2011-02-07  Jim Meyering  <meyering@redhat.com>
17209
17210         di-set, ino-map: new modules, from coreutils
17211         * lib/di-set.c: New file.
17212         * lib/di-set.h: Likewise.
17213         * lib/ino-map.c: Likewise.
17214         * lib/ino-map.h: Likewise.
17215         * modules/di-set: Likewise.
17216         * modules/di-set-tests: Likewise.
17217         * modules/ino-map: Likewise.
17218         * modules/ino-map-tests: Likewise.
17219         * tests/test-di-set.c: Likewise.
17220         * tests/test-ino-map.c: Likewise.
17221
17222 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
17223
17224         getloadavg: merge minor changes from Emacs
17225
17226         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
17227         (getloadavg): Use memset, not bzero.
17228
17229         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
17230         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
17231         clash (bug#86).
17232
17233 2010-11-14  Bruno Haible  <bruno@clisp.org>
17234
17235         Allow multiple gnulib generated replacements to coexist.
17236         * lib/getopt.in.h (struct option): Avoid identical redefinition.
17237         * lib/inttypes.in.h (imaxdiv_t): Likewise.
17238         * lib/langinfo.in.h (nl_item): Likewise.
17239         * lib/math.in.h (_NaN, NAN): Likewise.
17240         * lib/netdb.in.h (struct addrinfo): Likewise.
17241         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
17242         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
17243         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
17244         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
17245         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
17246         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
17247         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
17248         pthread_mutexattr_init, pthread_mutexattr_settype,
17249         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
17250         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
17251         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
17252         pthread_spin_trylock, pthread_spin_unlock): Likewise.
17253         * lib/sched.in.h (struct sched_param): Likewise.
17254         * lib/se-selinux.in.h (security_class_t, security_context_t,
17255         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
17256         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
17257         lsetfilecon, fsetfilecon, security_check_context,
17258         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
17259         Likewise.
17260         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
17261         Likewise.
17262         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
17263         _gl_function_taking_int_returning_void_t, union sigval,
17264         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
17265         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
17266         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
17267         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
17268         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
17269         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
17270         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
17271         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
17272         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
17273         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
17274         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
17275         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
17276         socklen_t, rpl_fd_isset): Likewise.
17277         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
17278         * lib/sys_time.in.h (struct timeval): Likewise.
17279         * lib/sys_times.in.h (struct tms): Likewise.
17280         * lib/sys_utsname.in.h (struct utsname):
17281         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
17282         * lib/unistd.in.h (getpagesize): Likewise.
17283         * lib/wchar.in.h (mbstate_t): Likewise.
17284         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
17285         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
17286         towlower, towupper): Likewise.
17287         Reported by Sam Steingold <sds@gnu.org>.
17288
17289 2011-02-05  Eric Blake  <eblake@redhat.com>
17290
17291         unsetenv: work around Haiku issues
17292         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
17293         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
17294
17295 2010-12-30  Bruce Korb  <bkorb@gnu.org>
17296
17297         libposix: avoid calling error() within libposix
17298         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
17299         is defined.
17300
17301 2011-02-05  Eric Blake  <eblake@redhat.com>
17302
17303         strerror_r-posix: port to cygwin
17304         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
17305         implementation.
17306         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
17307         * tests/test-strerror_r.c (main): Fix test.
17308         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
17309         issue.
17310
17311 2011-02-05  Bruno Haible  <bruno@clisp.org>
17312
17313         New module 'wmemchr'.
17314         * modules/wmemchr: New file.
17315         * lib/wchar.in.h (wmemchr): New declaration.
17316         * lib/wmemchr.c: New file.
17317         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
17318         * m4/wmemchr.m4: New file.
17319         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
17320         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
17321         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
17322         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
17323         * doc/posix-functions/wmemchr.texi: Mention the new module.
17324
17325 2011-02-04  Eric Blake  <eblake@redhat.com>
17326
17327         fdopendir: detect FreeBSD bug
17328         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
17329         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
17330
17331 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17332
17333         stdbool: do not define HAVE_STDBOOL_H
17334         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
17335         AC_HEADER_STDBOOL.  All uses changed.  Do not define
17336         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
17337         imported from the latest Autoconf git.  It was motivated by Emacs,
17338         which uses gnulib but does not need HAVE_STDBOOL_H.
17339
17340 2011-02-04  Bruno Haible  <bruno@clisp.org>
17341
17342         wcsnrtombs: Prepare for new module wwcsnrtombs.
17343         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
17344         * lib/wcsnrtombs.c: Include it.
17345         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
17346
17347         wcsrtombs: Prepare for new module wwcsrtombs.
17348         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
17349         * lib/wcsrtombs.c: Include it.
17350         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
17351
17352         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
17353         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
17354         * lib/mbsnrtowcs.c: Include it.
17355         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
17356
17357         mbsrtowcs: Prepare for new module mbsrtowwcs.
17358         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
17359         * lib/mbsrtowcs.c: Include it.
17360         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
17361
17362 2011-02-04  Bruno Haible  <bruno@clisp.org>
17363
17364         vasnprintf: Reduce use of malloc for small format strings.
17365         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
17366         (arguments): Add room for the first 7 arguments.
17367         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
17368         (char_directives, u8_directives, u16_directives, u32_directives): Add
17369         room for the first 7 directives.
17370         * lib/printf-parse.c: Include <string.h>.
17371         (PRINTF_PARSE): Change memory handling code so that it uses the first
17372         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
17373         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
17374         Reported by Pádraig Brady <P@draigbrady.com>.
17375
17376 2011-01-31  Eric Blake  <eblake@redhat.com>
17377
17378         dup2: work around Haiku bug
17379         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
17380         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
17381         * doc/posix-functions/dup2.texi (dup2): Document the bug.
17382         * tests/test-dup2.c (main): Enhance test.
17383
17384 2011-01-31  Simon Josefsson  <simon@josefsson.org>
17385
17386         doc: off_t is not available in eglibc 2.11.2 stdio.h.
17387         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
17388         declared by eglibc 2.11.2.
17389         * lib/stdio.in.h: Likewise.
17390
17391 2011-01-31  Eric Blake  <eblake@redhat.com>
17392
17393         ignore-value: add missing test dependency
17394         * tests/test-ignore-value.c: Revert previous change; stdio.h
17395         provides off_t.
17396         * modules/ignore-value-tests (Depends-on): Add missing dependency.
17397
17398 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
17399
17400         mktime: clarify long_int width checking
17401         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
17402         the top level, to make it clearer that the assumption about
17403         long_int width is being checked.  See
17404         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
17405
17406 2011-01-30  Simon Josefsson  <simon@josefsson.org>
17407
17408         ignore-value: Fix self-test.
17409         * tests/test-ignore-value.c: Include sys/types.h for off_t.
17410
17411 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
17412
17413         TYPE_MAXIMUM: avoid theoretically undefined behavior
17414         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
17415         negative number, which the C Standard says has undefined behavior.
17416         In practice this is not a problem, but might as well do it by the book.
17417         Reported by Rich Felker and Eric Blake; see
17418         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
17419         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
17420         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17421         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17422         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
17423         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17424         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
17425
17426         mktime: #undef mktime before #defining it
17427         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
17428
17429         mktime: systematically normalize tm_isdst comparisons
17430         * lib/mktime.c (isdst_differ): New function.
17431         (__mktime_internal): Use it systematically for all isdst comparisons.
17432         This completes the fix for libc BZ #6723, and removes the need for
17433         normalizing tm_isdst.  See
17434         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
17435         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
17436
17437         mktime: fix some integer overflow issues and sidestep the rest
17438
17439         This was prompted by a bug report by Benjamin Lindner for MinGW
17440         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
17441         His bug is due to signed integer overflow (0 - INT_MIN), and I
17442         I scanned through mktime.c looking for other integer overflow
17443         problems, fixing all the bugs I found.
17444
17445         Although the C Standard says the resulting code is still not safe
17446         in the presence of integer overflow, in practice it should be good
17447         enough for all real-world two's-complement implementations, except
17448         for debugging environments that deliberately trap on integer
17449         overflow (e.g., gcc -ftrapv).
17450
17451         * lib/mktime.c (WRAPV): New macro.
17452         (SHR): Also check that long_int and time_t shift right in the
17453         usual way, before using the fast-but-unportable method.
17454         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
17455         used.  The code already assumed two's complement, so there's
17456         no need to test for alternatives.  All uses removed.
17457         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
17458         the C standard.  Problem reported by Rich Felker in
17459         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
17460         (twos_complement_arithmetic): Also check long_int and time_t.
17461         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
17462         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
17463         (__mktime_internal): Avoid integer overflow with unary subtraction
17464         in two instances where -1 - X is an adequate replacement for -X,
17465         since the calculations are approximate.
17466
17467 2011-01-29  Eric Blake  <eblake@redhat.com>
17468
17469         mktime: avoid infinite loop
17470         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
17471         type; behavior is still undefined but portable to all known targets.
17472         Reported by Rich Felker.
17473
17474 2011-01-29  Simon Josefsson  <simon@josefsson.org>
17475
17476         rename, unlink, same-inode: Relicense.
17477         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
17478         * modules/unlink (License): Likewise.
17479         * modules/same-inode (License): Likewise.
17480
17481 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
17482
17483         mktime: avoid problems on NetBSD 5 / i386
17484         * lib/mktime.c (long_int): New type.  This works around a problem
17485         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
17486         but time_t is 64 bits, and where I expect the existing code is
17487         wrong in some cases.
17488         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
17489         (ydhms_diff): Bring back the compile-time check for wide-enough
17490         year and yday.
17491
17492         mktime: fix misspelling in comment
17493         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
17494         This merges all recent glibc changes of importance.
17495
17496 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17497
17498         move-if-change: cope with concurrent mv of identical file.
17499         * build-aux/move-if-change (CMPPROG): Accept environment
17500         variable as an override for `cmp'.
17501         (usage): Document CMPPROG.
17502         Adjust comparison to drop stdout.  Cope with failure of mv if
17503         the target file exists and is identical to the source, for
17504         parallel builds.
17505         Report from H.J. Lu against binutils in PR binutils/12283.
17506
17507 2011-01-28  Bruce Korb  <bkorb@gnu.org>
17508
17509         * users.txt: Mention sharutils.
17510
17511 2011-01-28  Simon Josefsson  <simon@josefsson.org>
17512
17513         * users.txt: Mention OATH Toolkit.
17514
17515 2011-01-27  Bruno Haible  <bruno@clisp.org>
17516
17517         Prepare for supporting FreeBSD 10.
17518         * build-aux/config.libpath: Remove handling of freebsd1*.
17519
17520 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
17521
17522         Prepare for supporting FreeBSD 10.
17523         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
17524         match FreeBSD 10.0.
17525
17526 2011-01-27  Bruno Haible  <bruno@clisp.org>
17527
17528         vma-iter, get-rusage-as: Add OpenBSD support.
17529         * modules/vma-iter (configure.ac): Test for mquery.
17530         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
17531         * lib/vma-iter.c: Include <sys/mman.h>.
17532         (vma_iterate): Add an implementation based on mquery().
17533         * lib/resource-ext.h (get_rusage_as): Update comments.
17534         * lib/get-rusage-as.c: Likewise.
17535         * lib/get-rusage-data.c: Likewise.
17536
17537 2011-01-26  Karl Berry  <karl@gnu.org>
17538
17539         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
17540         variables to make it easier to override the makeinfo program used.
17541
17542 2011-01-26  Eric Blake  <eblake@redhat.com>
17543
17544         fcntl: work around Haiku F_DUPFD bugs
17545         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
17546         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
17547         cloexec bit on duplication.
17548         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
17549
17550 2011-01-26  Bruno Haible  <bruno@clisp.org>
17551
17552         Enable memory leak tests on AIX.
17553         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
17554         * tests/test-fprintf-posix3.c (main): Likewise.
17555
17556 2011-01-26  Bruno Haible  <bruno@clisp.org>
17557
17558         Tests for module 'get-rusage-data'.
17559         * modules/get-rusage-data-tests: New file.
17560         * tests/test-get-rusage-data.c: New file.
17561
17562         New module 'get-rusage-data'.
17563         * lib/resource-ext.h (get_rusage_data): New declaration.
17564         * lib/get-rusage-data.c: New file.
17565         * modules/get-rusage-data: New file.
17566
17567 2011-01-25  Bruno Haible  <bruno@clisp.org>
17568
17569         get-rusage-as: Allow for easier testing.
17570         * lib/resource-ext.h (get_rusage_as): Add comment.
17571         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
17572         (main): New function for interactive testing.
17573
17574 2011-01-25  Bruno Haible  <bruno@clisp.org>
17575
17576         vma-iter: Treat Haiku like BeOS.
17577         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
17578         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
17579
17580 2011-01-25  Eric Blake  <eblake@redhat.com>
17581
17582         c-stack: fix regression on cygwin when libsigsegv is present
17583         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
17584
17585 2011-01-24  Bruno Haible  <bruno@clisp.org>
17586
17587         vma-iter: Avoid empty intervals.
17588         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
17589         on an empty interval.
17590
17591 2011-01-24  Jim Meyering  <meyering@redhat.com>
17592
17593         u64: remove unnecessary #include
17594         * lib/u64.h: Don't include <stddef.h>.  It was not used.
17595
17596 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17597
17598         Allow the user to avoid the HAVE_RAW_DECL_* macros.
17599         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
17600
17601 2011-01-23  Bruno Haible  <bruno@clisp.org>
17602
17603         New module 'vma-iter'.
17604         * lib/vma-iter.h: New file.
17605         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
17606         * modules/vma-iter: New file.
17607         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
17608         for get_rusage_as_via_iterator.
17609         (vma_iterate_callback): New function.
17610         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
17611         * modules/get-rusage-as (Depends-on): Add vma-iter.
17612
17613 2011-01-23  Bruno Haible  <bruno@clisp.org>
17614
17615         uninorm: Tweak includes.
17616         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
17617         Reported by Jim Meyering.
17618
17619 2011-01-23  Bruno Haible  <bruno@clisp.org>
17620
17621         get-rusage-as: Improve on NetBSD.
17622         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
17623         /proc, like on FreeBSD.
17624
17625 2011-01-23  Jim Meyering  <meyering@redhat.com>
17626
17627         xreadlink.h: remove unnecessary #include
17628         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
17629
17630         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
17631         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
17632
17633 2011-01-23  Bruno Haible  <bruno@clisp.org>
17634
17635         get-rusage-as: Fix bug.
17636         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
17637         original limit when aborting the first loop.
17638
17639 2011-01-23  Bruno Haible  <bruno@clisp.org>
17640
17641         wctype: Ensure valid C syntax.
17642         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
17643         unconditionally, instead of gl_NEXT_HEADERS conditionally.
17644
17645 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
17646
17647         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
17648         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
17649         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
17650         as they are needed only for configure's test case.
17651         This removes two unnecessary symbols from config.h.
17652
17653         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
17654         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
17655         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
17656         AC_CHECK_HEADERS_ONCE on a header that we also invoke
17657         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
17658         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
17659         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
17660         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
17661         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17662         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17663         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
17664         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17665         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17666         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17667         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
17668         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17669         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
17670         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17671
17672 2011-01-21  Eric Blake  <eblake@redhat.com>
17673
17674         maintainer-makefile: work with older git for submodule check
17675         * top/maint.mk (public-submodule-commit): Rewrite to avoid
17676         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
17677         Reported by Matthias Bolte.
17678
17679         bootstrap: minor portability fixes
17680         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
17681         (usage): Omit leading capital and trailing . on help phrases, per
17682         GNU Coding Standards.
17683         (check_versions, top level): Prefix messages with script name.
17684
17685 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
17686
17687         bootstrap: support --no-git option
17688         * build-aux/bootstrap: Add --no-git option, to be used when
17689         --gnulib-srcdir points to the exact desired checkout.
17690
17691 2011-01-21  Eric Blake  <eblake@redhat.com>
17692
17693         strerror_r-posix: work with glibc 2.13
17694         * lib/strerror_r.c (strerror_r): Fix return type.
17695
17696 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17697             Bruno Haible  <bruno@clisp.org>
17698
17699         uN_strstr: New unit tests.
17700         * modules/unistr/u8-strstr-tests: New file.
17701         * modules/unistr/u16-strstr-tests: New file.
17702         * modules/unistr/u32-strstr-tests: New file.
17703         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
17704         * tests/unistr/test-u8-strstr.c: New file.
17705         * tests/unistr/test-u16-strstr.c: New file.
17706         * tests/unistr/test-u32-strstr.c: New file.
17707
17708 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17709             Bruno Haible  <bruno@clisp.org>
17710
17711         Make uN_strstr functions O(n) worst-case.
17712         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
17713         16-bit and 32-bit unit cases, use the unibyte algorithm from
17714         lib/mbsstr.c.
17715         * lib/unistr/u8-strstr.c: Include <string.h>.
17716         (UNIT_IS_UINT8_T): New macro.
17717         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
17718         (U_STRLEN, U_STRNLEN): New macros.
17719         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
17720         (U_STRLEN, U_STRNLEN): New macros.
17721         * modules/unistr/u8-strstr (Depends-on): Add strstr.
17722         (configure.ac): Update required libunistring version.
17723         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
17724         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
17725         malloca.
17726         (configure.ac): Update required libunistring version.
17727         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
17728         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
17729         malloca.
17730         (configure.ac): Update required libunistring version.
17731
17732 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17733             Bruno Haible  <bruno@clisp.org>
17734
17735         Prepare for faster uN_strstr functions.
17736         * lib/str-kmp.h: Support definable UNITs.
17737         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
17738         needle_len argument.
17739         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
17740         * lib/mbscasestr.c (mbscasestr): Likewise.
17741
17742 2011-01-21  Pádraig Brady <P@draigBrady.com>
17743
17744         malloca-tests: make faster by unsetting MALLOC_PERTURB_
17745         * tests/test-malloca.c (main): Unset the environment variable
17746         to greatly speed up the test.
17747         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
17748         * modules/malloca-tests: Depend on unsetenv.
17749
17750 2011-01-21  Pádraig Brady <P@draigBrady.com>
17751
17752         ignore-value: remove stdint dependency
17753         * lib/ignore-value.h: Remove <stdint.h>
17754         * modules/ignore-value: Remove stdint dependency.
17755
17756 2011-01-21  Jim Meyering  <meyering@redhat.com>
17757
17758         maint.mk: adjust variable name to be consistent with other gl_ vars
17759         * top/maint.mk (gl_public_submodule_commit): Rename the variable
17760         to be lower case.
17761
17762 2011-01-20  Jim Meyering  <meyering@redhat.com>
17763
17764         maint.mk: make "check" depend on public-submodule-commit by default
17765         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
17766
17767 2011-01-20  Bruno Haible  <bruno@clisp.org>
17768
17769         mbfile, mbiter: Complete change from 2008-12-21.
17770         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
17771         * m4/mbiter.m4 (gl_MBITER): Likewise.
17772
17773 2011-01-20  Jim Meyering  <meyering@redhat.com>
17774
17775         init.sh: insert space between each function name and "()"
17776         * tests/init.sh: Make it a little easier to see that a function's
17777         name is "warn_", and not "warn" when looking at the first part of
17778         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
17779
17780 2011-01-20  Jim Meyering  <meyering@redhat.com>
17781
17782         mountlist: clean up code formatting
17783         * lib/mountlist.c (read_file_system_list): Split a long line,
17784         correct bracing style, use NULL in place of "(struct statfs *)0",
17785         don't parenthesize return value, add spaces around "=" and after
17786         ";-in-for-stmt".
17787
17788 2011-01-14  Markus Duft <mduft@gentoo.org>
17789
17790         mountlist: add support for Interix
17791         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
17792         Apply statvfs to all entries of /dev/fs.
17793         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
17794         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
17795
17796 2011-01-20  Jim Meyering  <meyering@redhat.com>
17797
17798         maint.mk: improve the public-submodule-commit rule
17799         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
17800         to suppress printing of its commands... unless V=1.
17801         Add git submodule's --quiet option to suppress printing of e.g.,
17802         "Entering gnulib" output.
17803         "cd" into $(srcdir) before running git submodule.
17804
17805 2011-01-20  Bruno Haible  <bruno@clisp.org>
17806
17807         include_next: Fix bug introduced on 2011-01-18.
17808         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
17809         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
17810         ac_cv_header_... variable if the second argument is not 'check'.
17811         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
17812         gl_NEXT_HEADERS_INTERNAL.
17813
17814 2011-01-20  Bruno Haible  <bruno@clisp.org>
17815
17816         Allow the user to avoid the GNULIB_TEST_* macros.
17817         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
17818         Suggested by Paul Eggert.
17819
17820 2011-01-14  Jim Meyering  <meyering@redhat.com>
17821
17822         bootstrap: avoid failure when there is no .gitmodules file
17823         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
17824         has been assigned to, even when its value is the empty string.
17825         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
17826         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
17827         Reported by John W. Eaton <jwe@gnu.org>.
17828
17829 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
17830
17831         assume <ctype.h>, ..., <time.h> exist
17832         For years gnulib has been assuming the existence of the headers
17833         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
17834         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
17835         them, since they don't appear to be needed.
17836         * README (Portability guidelines): Document this.
17837         * lib/flock.c: Assume <fcntl.h> exists.
17838         * lib/regex_internal.h: Assume <locale.h> exists.
17839         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
17840         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
17841         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
17842         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
17843         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
17844         * m4/regex.m4 (gl_REGEX): Likewise.
17845         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
17846         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
17847         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
17848         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
17849         * tests/test-argp.c: Likewise.
17850         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
17851
17852         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
17853         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
17854         AA_APPLE_UNIVERSAL_BUILD.  See
17855         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
17856         * NEWS: Document this.
17857
17858 2011-01-19  Eric Blake  <eblake@redhat.com>
17859
17860         c-stack: assume stack overflow if SA_SIGINFO unsupported
17861         * lib/c-stack.c (SIGACTION_WORKS): Rename...
17862         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
17863         sigaction will work.
17864         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
17865         behavior match Linux.
17866         * tests/test-c-stack.c (main): Prefer NULL for pointers.
17867
17868         stdbool-tests: accomodate Haiku
17869         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
17870
17871         binary-io: fix O_TEXT on Haiku
17872         * modules/binary-io (Depends-on): Add fcntl-h.
17873         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
17874         than blindly undefining O_TEXT.
17875         Reported by Scott McCreary.
17876
17877 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
17878
17879         include_next: do not check for standard headers like stddef.h
17880
17881         I found this problem when modifying Emacs to use gnulib.
17882         I noticed that it added HAVE_STDDEF_H to config.h, even though
17883         gnulib always assumes <stddef.h> exists as per README and this
17884         symbol is unnecessary.
17885         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
17886         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
17887         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
17888         faster for headers like stddef.h that are known to exist.
17889         (gl_CHECK_NEXT_HEADERS): Use it.
17890         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
17891         rather than gl_CHECK_NEXT_HEADERS.
17892         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
17893         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
17894
17895 2011-01-18  Eric Blake  <eblake@redhat.com>
17896
17897         ansi-c++-opt: skip C++ dependency style if C++ is unused
17898         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
17899         tests when we know C++ compilation is not desired.
17900         Reported by Scott McCreary.
17901
17902 2011-01-18  Bruno Haible  <bruno@clisp.org>
17903
17904         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
17905         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
17906         (main): Perform test also when getrlimit and setrlimit don't exist or
17907         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
17908         limiting the address space size using setrlimit, compare the address
17909         space size before and after the the test.
17910         * tests/test-dprintf-posix2.c: Likewise.
17911         * tests/test-fprintf-posix3.sh: Update skip messages.
17912         * tests/test-dprintf-posix2.sh: Likewise.
17913         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
17914         * modules/dprintf-posix-tests (Depends-on): Likewise.
17915         Reported by Bruce Korb <bkorb@gnu.org> and
17916         Gary V. Vaughan <gary@gnu.org>.
17917
17918 2011-01-18  Bruno Haible  <bruno@clisp.org>
17919
17920         get-rusage-as: Improvement for Cygwin.
17921         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
17922         areas that are merely reserved.
17923
17924 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
17925
17926         strftime: remove dependencies on multibyte modules
17927
17928         strftime depended on mbrlen, mbsinit, and wchar, but these modules
17929         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
17930         only if __osf__ is defined, and I suspect OSF doesn't need these
17931         other modules.  If my guess is wrong, we'll need to come up with a
17932         variant of strftime that doesn't need the multibyte modules.
17933
17934         I discovered this problem when attempting modify Emacs to use the
17935         strftime module.  With the previous gnulib, this caused Emacs to
17936         need 31 new files, ranging from lib/config.charset to
17937         m4/wint_t.m4.  This was overkill and I expect would be offputting
17938         to the Emacs maintainers.  After this change, only 6 new files are
17939         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
17940         stdbool.m4, and tm_gmtoff.m4.
17941
17942         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
17943         Suggested by Bruno Haible in
17944         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
17945         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
17946         and do not check for wchar.h.
17947         * modules/strftime (Files): Remove m4/mbstate_t.m4.
17948         (Depends-on): Remove mbrlen, mbsinit, wchar.
17949
17950 2011-01-18  Bruno Haible  <bruno@clisp.org>
17951
17952         Tests for module 'get-rusage-as'.
17953         * modules/get-rusage-as-tests: New file.
17954         * tests/test-get-rusage-as.c: New file.
17955
17956         New module 'get-rusage-as'.
17957         * modules/get-rusage-as: New file.
17958         * lib/resource-ext.h: New file.
17959         * lib/get-rusage-as.c: New file.
17960
17961 2011-01-17  Eric Blake  <eblake@redhat.com>
17962
17963         sigaction: relax license from LGPLv3+ to LGPLv2+
17964         * modules/sigaction (License): Relax to LGPLv2+.
17965
17966 2011-01-14  Bruno Haible  <bruno@clisp.org>
17967
17968         filemode: Make function declarations usable in C++ mode.
17969         * lib/filemode.h: Enclose function declarations in extern "C" block.
17970         Reported by John W. Eaton <jwe@gnu.org>.
17971
17972 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
17973
17974         save-cwd: no longer include "xgetcwd.h"
17975         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
17976         This avoids a compilation failure in projects that use save-cwd
17977         without also using the xgetcwd module.
17978
17979 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
17980
17981         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
17982         This is so that a program like Emacs, which needs only dtoastr,
17983         does not have to bother with distributing and compiling ftoastr
17984         and ldtoastr.
17985         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
17986         * modules/dtoastr, modules/ldtoastr: New files.
17987         * modules/ftoastr: Now works just for 'float'.
17988         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
17989         (Makefile.am): Remove ftoastr.h (not needed and no effect),
17990         dtoastr.c, ldtoastr.c.
17991
17992 2011-01-11  Jim Meyering  <meyering@redhat.com>
17993
17994         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
17995         There is no need to work around the lack of the fchdir function,
17996         since gnulib can now provide a replacement when required.
17997         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
17998         * modules/save-cwd (Depends-on): Add fchdir.
17999
18000 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
18001
18002         openat, save-cwd: avoid xmalloc
18003
18004         This removes a direct (but undocumented) dependency of openat on
18005         xalloc, along with an indirect dependency via save-cwd.  It also
18006         removes a dependency of save-cwd on xgetcwd, and thereby
18007         indirectly on xalloc.  This change causes the openat substitute
18008         to fall back on save_cwd when memory is tight, and for save_cwd to
18009         fail instead of dying when memory is tight, but that's good enough.
18010         Problem and initial idea for fix reported by Bastien Roucaries in
18011         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
18012
18013         * lib/openat-proc.c: Include stdlib.h (for malloc), not
18014         xalloc.h (for xmalloc).
18015         (openat_proc_name): Use malloc, not xmalloc.
18016         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
18017         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
18018
18019         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
18020         This avoids heap allocation for file names whose lengths are in
18021         the range 512..1023, with the upper bound increasing to at most
18022         4031 depending on the platform's PATH_MAX.  (We do not want
18023         pathmax.h here as it might supply a non-constant PATH_MAX.)
18024         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
18025         Perhaps they should be moved to malloca.h?
18026         (OPENAT_BUFFER_SIZE): Use them.
18027
18028 2011-01-10  Bruno Haible  <bruno@clisp.org>
18029
18030         doc: Update users.txt.
18031         * users.txt: Add recutils.
18032
18033 2011-01-09  Karl Berry  <karl@gnu.org>
18034
18035         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
18036
18037         * doc/configmake.texi: New file.
18038         * doc/gnulib.texi: Include it.
18039         * modules/configmake: Move documentation from here.
18040
18041 2011-01-09  Bruno Haible  <bruno@clisp.org>
18042
18043         Update to Unicode 6.0.0.
18044         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
18045         (get_lbp): Update for Unicode 6.0.0.
18046         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
18047         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
18048         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
18049         U+11001, U+11038..U+11046. Remove U+06DE.
18050         (uc_width): Fix bounds of planes.
18051         * tests/uniwidth/test-uc_width2.sh: Same updates as in
18052         lib/uniwidth/width.c.
18053         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
18054         trailing whitespace removed.
18055         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
18056         without comments, but with the original copyright notice.
18057         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
18058         * lib/unicase/ignorable.h: Likewise.
18059         * lib/unicase/tocasefold.h: Likewise.
18060         * lib/unicase/tolower.h: Likewise.
18061         * lib/unicase/totitle.h: Likewise.
18062         * lib/unicase/toupper.h: Likewise.
18063         * lib/unictype/bidi_of.h: Likewise.
18064         * lib/unictype/blocks.h: Likewise.
18065         * lib/unictype/categ_C.h: Likewise.
18066         * lib/unictype/categ_Cn.h: Likewise.
18067         * lib/unictype/categ_L.h: Likewise.
18068         * lib/unictype/categ_Ll.h: Likewise.
18069         * lib/unictype/categ_Lm.h: Likewise.
18070         * lib/unictype/categ_Lo.h: Likewise.
18071         * lib/unictype/categ_Lu.h: Likewise.
18072         * lib/unictype/categ_M.h: Likewise.
18073         * lib/unictype/categ_Mc.h: Likewise.
18074         * lib/unictype/categ_Me.h: Likewise.
18075         * lib/unictype/categ_Mn.h: Likewise.
18076         * lib/unictype/categ_N.h: Likewise.
18077         * lib/unictype/categ_Nd.h: Likewise.
18078         * lib/unictype/categ_No.h: Likewise.
18079         * lib/unictype/categ_P.h: Likewise.
18080         * lib/unictype/categ_Po.h: Likewise.
18081         * lib/unictype/categ_S.h: Likewise.
18082         * lib/unictype/categ_Sc.h: Likewise.
18083         * lib/unictype/categ_Sk.h: Likewise.
18084         * lib/unictype/categ_Sm.h: Likewise.
18085         * lib/unictype/categ_So.h: Likewise.
18086         * lib/unictype/categ_of.h: Likewise.
18087         * lib/unictype/combining.h: Likewise.
18088         * lib/unictype/ctype_alnum.h: Likewise.
18089         * lib/unictype/ctype_alpha.h: Likewise.
18090         * lib/unictype/ctype_graph.h: Likewise.
18091         * lib/unictype/ctype_lower.h: Likewise.
18092         * lib/unictype/ctype_print.h: Likewise.
18093         * lib/unictype/ctype_punct.h: Likewise.
18094         * lib/unictype/ctype_upper.h: Likewise.
18095         * lib/unictype/decdigit.h: Likewise.
18096         * lib/unictype/digit.h: Likewise.
18097         * lib/unictype/numeric.h: Likewise.
18098         * lib/unictype/pr_alphabetic.h: Likewise.
18099         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18100         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18101         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
18102         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18103         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18104         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18105         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18106         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18107         * lib/unictype/pr_case_ignorable.h: Likewise.
18108         * lib/unictype/pr_cased.h: Likewise.
18109         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
18110         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
18111         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
18112         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
18113         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
18114         * lib/unictype/pr_combining.h: Likewise.
18115         * lib/unictype/pr_composite.h: Likewise.
18116         * lib/unictype/pr_currency_symbol.h: Likewise.
18117         * lib/unictype/pr_decimal_digit.h: Likewise.
18118         * lib/unictype/pr_deprecated.h: Likewise.
18119         * lib/unictype/pr_format_control.h: Likewise.
18120         * lib/unictype/pr_grapheme_base.h: Likewise.
18121         * lib/unictype/pr_grapheme_extend.h: Likewise.
18122         * lib/unictype/pr_grapheme_link.h: Likewise.
18123         * lib/unictype/pr_id_continue.h: Likewise.
18124         * lib/unictype/pr_id_start.h: Likewise.
18125         * lib/unictype/pr_ideographic.h: Likewise.
18126         * lib/unictype/pr_lowercase.h: Likewise.
18127         * lib/unictype/pr_math.h: Likewise.
18128         * lib/unictype/pr_numeric.h: Likewise.
18129         * lib/unictype/pr_other_alphabetic.h: Likewise.
18130         * lib/unictype/pr_other_id_continue.h: Likewise.
18131         * lib/unictype/pr_other_math.h: Likewise.
18132         * lib/unictype/pr_punctuation.h: Likewise.
18133         * lib/unictype/pr_sentence_terminal.h: Likewise.
18134         * lib/unictype/pr_terminal_punctuation.h: Likewise.
18135         * lib/unictype/pr_unassigned_code_value.h: Likewise.
18136         * lib/unictype/pr_unified_ideograph.h: Likewise.
18137         * lib/unictype/pr_uppercase.h: Likewise.
18138         * lib/unictype/pr_xid_continue.h: Likewise.
18139         * lib/unictype/pr_xid_start.h: Likewise.
18140         * lib/unictype/scripts.h: Likewise.
18141         * lib/unictype/scripts_byname.gperf: Likewise.
18142         * lib/unictype/sy_java_ident.h: Likewise.
18143         * lib/unigbrk/gbrkprop.h: Likewise.
18144         * lib/unilbrk/lbrkprop1.h: Likewise.
18145         * lib/unilbrk/lbrkprop2.h: Likewise.
18146         * lib/uninorm/decomposition-table2.h: Likewise.
18147         * lib/uniwbrk/wbrkprop.h: Likewise.
18148         * tests/unicase/test-cased.c: Likewise.
18149         * tests/unicase/test-ignorable.c: Likewise.
18150         * tests/unicase/test-uc_tolower.c: Likewise.
18151         * tests/unicase/test-uc_totitle.c: Likewise.
18152         * tests/unicase/test-uc_toupper.c: Likewise.
18153         * tests/unictype/test-categ_C.c: Likewise.
18154         * tests/unictype/test-categ_Cn.c: Likewise.
18155         * tests/unictype/test-categ_L.c: Likewise.
18156         * tests/unictype/test-categ_Ll.c: Likewise.
18157         * tests/unictype/test-categ_Lm.c: Likewise.
18158         * tests/unictype/test-categ_Lo.c: Likewise.
18159         * tests/unictype/test-categ_Lu.c: Likewise.
18160         * tests/unictype/test-categ_M.c: Likewise.
18161         * tests/unictype/test-categ_Mc.c: Likewise.
18162         * tests/unictype/test-categ_Me.c: Likewise.
18163         * tests/unictype/test-categ_Mn.c: Likewise.
18164         * tests/unictype/test-categ_N.c: Likewise.
18165         * tests/unictype/test-categ_Nd.c: Likewise.
18166         * tests/unictype/test-categ_No.c: Likewise.
18167         * tests/unictype/test-categ_P.c: Likewise.
18168         * tests/unictype/test-categ_Po.c: Likewise.
18169         * tests/unictype/test-categ_S.c: Likewise.
18170         * tests/unictype/test-categ_Sc.c: Likewise.
18171         * tests/unictype/test-categ_Sk.c: Likewise.
18172         * tests/unictype/test-categ_Sm.c: Likewise.
18173         * tests/unictype/test-categ_So.c: Likewise.
18174         * tests/unictype/test-ctype_alnum.c: Likewise.
18175         * tests/unictype/test-ctype_alpha.c: Likewise.
18176         * tests/unictype/test-ctype_graph.c: Likewise.
18177         * tests/unictype/test-ctype_lower.c: Likewise.
18178         * tests/unictype/test-ctype_print.c: Likewise.
18179         * tests/unictype/test-ctype_punct.c: Likewise.
18180         * tests/unictype/test-ctype_upper.c: Likewise.
18181         * tests/unictype/test-decdigit.h: Likewise.
18182         * tests/unictype/test-digit.h: Likewise.
18183         * tests/unictype/test-numeric.h: Likewise.
18184         * tests/unictype/test-pr_alphabetic.c: Likewise.
18185         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
18186         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
18187         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
18188         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
18189         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
18190         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
18191         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
18192         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
18193         * tests/unictype/test-pr_case_ignorable.c: Likewise.
18194         * tests/unictype/test-pr_cased.c: Likewise.
18195         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
18196         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
18197         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
18198         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
18199         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
18200         * tests/unictype/test-pr_combining.c: Likewise.
18201         * tests/unictype/test-pr_composite.c: Likewise.
18202         * tests/unictype/test-pr_currency_symbol.c: Likewise.
18203         * tests/unictype/test-pr_decimal_digit.c: Likewise.
18204         * tests/unictype/test-pr_deprecated.c: Likewise.
18205         * tests/unictype/test-pr_format_control.c: Likewise.
18206         * tests/unictype/test-pr_grapheme_base.c: Likewise.
18207         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
18208         * tests/unictype/test-pr_grapheme_link.c: Likewise.
18209         * tests/unictype/test-pr_id_continue.c: Likewise.
18210         * tests/unictype/test-pr_id_start.c: Likewise.
18211         * tests/unictype/test-pr_ideographic.c: Likewise.
18212         * tests/unictype/test-pr_lowercase.c: Likewise.
18213         * tests/unictype/test-pr_math.c: Likewise.
18214         * tests/unictype/test-pr_numeric.c: Likewise.
18215         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
18216         * tests/unictype/test-pr_other_id_continue.c: Likewise.
18217         * tests/unictype/test-pr_other_math.c: Likewise.
18218         * tests/unictype/test-pr_punctuation.c: Likewise.
18219         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
18220         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
18221         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
18222         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
18223         * tests/unictype/test-pr_uppercase.c: Likewise.
18224         * tests/unictype/test-pr_xid_continue.c: Likewise.
18225         * tests/unictype/test-pr_xid_start.c: Likewise.
18226         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
18227         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
18228         changes.
18229         * lib/unictype/categ_Cc.h: Likewise.
18230         * lib/unictype/categ_Cf.h: Likewise.
18231         * lib/unictype/categ_Co.h: Likewise.
18232         * lib/unictype/categ_Cs.h: Likewise.
18233         * lib/unictype/categ_Lt.h: Likewise.
18234         * lib/unictype/categ_Nl.h: Likewise.
18235         * lib/unictype/categ_Pc.h: Likewise.
18236         * lib/unictype/categ_Pd.h: Likewise.
18237         * lib/unictype/categ_Pe.h: Likewise.
18238         * lib/unictype/categ_Pf.h: Likewise.
18239         * lib/unictype/categ_Pi.h: Likewise.
18240         * lib/unictype/categ_Ps.h: Likewise.
18241         * lib/unictype/categ_Z.h: Likewise.
18242         * lib/unictype/categ_Zl.h: Likewise.
18243         * lib/unictype/categ_Zp.h: Likewise.
18244         * lib/unictype/categ_Zs.h: Likewise.
18245         * lib/unictype/ctype_blank.h: Likewise.
18246         * lib/unictype/ctype_cntrl.h: Likewise.
18247         * lib/unictype/ctype_digit.h: Likewise.
18248         * lib/unictype/ctype_space.h: Likewise.
18249         * lib/unictype/ctype_xdigit.h: Likewise.
18250         * lib/unictype/mirror.h: Likewise.
18251         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18252         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18253         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18254         * lib/unictype/pr_bidi_control.h: Likewise.
18255         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18256         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18257         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18258         * lib/unictype/pr_bidi_pdf.h: Likewise.
18259         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18260         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18261         * lib/unictype/pr_dash.h: Likewise.
18262         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18263         * lib/unictype/pr_diacritic.h: Likewise.
18264         * lib/unictype/pr_extender.h: Likewise.
18265         * lib/unictype/pr_hex_digit.h: Likewise.
18266         * lib/unictype/pr_hyphen.h: Likewise.
18267         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18268         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18269         * lib/unictype/pr_ignorable_control.h: Likewise.
18270         * lib/unictype/pr_iso_control.h: Likewise.
18271         * lib/unictype/pr_join_control.h: Likewise.
18272         * lib/unictype/pr_left_of_pair.h: Likewise.
18273         * lib/unictype/pr_line_separator.h: Likewise.
18274         * lib/unictype/pr_logical_order_exception.h: Likewise.
18275         * lib/unictype/pr_non_break.h: Likewise.
18276         * lib/unictype/pr_not_a_character.h: Likewise.
18277         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18278         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18279         * lib/unictype/pr_other_id_start.h: Likewise.
18280         * lib/unictype/pr_other_lowercase.h: Likewise.
18281         * lib/unictype/pr_other_uppercase.h: Likewise.
18282         * lib/unictype/pr_paired_punctuation.h: Likewise.
18283         * lib/unictype/pr_paragraph_separator.h: Likewise.
18284         * lib/unictype/pr_pattern_syntax.h: Likewise.
18285         * lib/unictype/pr_pattern_white_space.h: Likewise.
18286         * lib/unictype/pr_private_use.h: Likewise.
18287         * lib/unictype/pr_quotation_mark.h: Likewise.
18288         * lib/unictype/pr_radical.h: Likewise.
18289         * lib/unictype/pr_soft_dotted.h: Likewise.
18290         * lib/unictype/pr_space.h: Likewise.
18291         * lib/unictype/pr_titlecase.h: Likewise.
18292         * lib/unictype/pr_variation_selector.h: Likewise.
18293         * lib/unictype/pr_white_space.h: Likewise.
18294         * lib/unictype/pr_zero_width.h: Likewise.
18295         * lib/unictype/sy_c_ident.h: Likewise.
18296         * lib/unictype/sy_c_whitespace.h: Likewise.
18297         * lib/unictype/sy_java_whitespace.h: Likewise.
18298         * lib/uninorm/composition-table.gperf: Likewise.
18299         * lib/uninorm/decomposition-table1.h: Likewise.
18300         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
18301         LB8.
18302         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18303         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18304         * modules/unictype/*: Bump version number of expected libunistring
18305         version.
18306
18307 2011-01-09  Bruno Haible  <bruno@clisp.org>
18308
18309         Update to Unicode 5.2.0.
18310         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
18311         trailing whitespace removed.
18312
18313 2011-01-09  Bruno Haible  <bruno@clisp.org>
18314
18315         New Unicode character properties, from Unicode 5.2.0.
18316         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
18317         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
18318         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
18319         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
18320         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
18321         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
18322         uc_is_property_cased, uc_is_property_case_ignorable,
18323         uc_is_property_changes_when_lowercased,
18324         uc_is_property_changes_when_uppercased,
18325         uc_is_property_changes_when_titlecased,
18326         uc_is_property_changes_when_casefolded,
18327         uc_is_property_changes_when_casemapped): New declarations.
18328         * lib/unictype/pr_byname.gperf: Add the new properties.
18329         * modules/unictype/property-byname (Depends-on): Depend on the new
18330         properties modules.
18331         * modules/unictype/property-all (Depends-on): Likewise.
18332         * MODULES.html.sh (Unicode string functions): Add
18333         unictype/property-case-ignorable, unictype/property-cased,
18334         unictype/property-changes-when-casefolded,
18335         unictype/property-changes-when-casemapped,
18336         unictype/property-changes-when-lowercased,
18337         unictype/property-changes-when-titlecased,
18338         unictype/property-changes-when-uppercased.
18339
18340         New module 'unictype/property-changes-when-casemapped'.
18341         * modules/unictype/property-changes-when-casemapped: New file.
18342         * lib/unictype/pr_changes_when_casemapped.c: New file.
18343         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
18344         generated by gen-uni-tables.
18345         * modules/unictype/property-changes-when-casemapped-tests: New file.
18346         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
18347         automatically generated by gen-uni-tables.
18348
18349         New module 'unictype/property-changes-when-casefolded'.
18350         * modules/unictype/property-changes-when-casefolded: New file.
18351         * lib/unictype/pr_changes_when_casefolded.c: New file.
18352         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
18353         generated by gen-uni-tables.
18354         * modules/unictype/property-changes-when-casefolded-tests: New file.
18355         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
18356         automatically generated by gen-uni-tables.
18357
18358         New module 'unictype/property-changes-when-titlecased'.
18359         * modules/unictype/property-changes-when-titlecased: New file.
18360         * lib/unictype/pr_changes_when_titlecased.c: New file.
18361         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
18362         generated by gen-uni-tables.
18363         * modules/unictype/property-changes-when-titlecased-tests: New file.
18364         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
18365         automatically generated by gen-uni-tables.
18366
18367         New module 'unictype/property-changes-when-uppercased'.
18368         * modules/unictype/property-changes-when-uppercased: New file.
18369         * lib/unictype/pr_changes_when_uppercased.c: New file.
18370         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
18371         generated by gen-uni-tables.
18372         * modules/unictype/property-changes-when-uppercased-tests: New file.
18373         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
18374         automatically generated by gen-uni-tables.
18375
18376         New module 'unictype/property-changes-when-lowercased'.
18377         * modules/unictype/property-changes-when-lowercased: New file.
18378         * lib/unictype/pr_changes_when_lowercased.c: New file.
18379         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
18380         generated by gen-uni-tables.
18381         * modules/unictype/property-changes-when-lowercased-tests: New file.
18382         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
18383         automatically generated by gen-uni-tables.
18384
18385         New module 'unictype/property-case-ignorable'.
18386         * modules/unictype/property-case-ignorable: New file.
18387         * lib/unictype/pr_case_ignorable.c: New file.
18388         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
18389         by gen-uni-tables.
18390         * modules/unictype/property-case-ignorable-tests: New file.
18391         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
18392         generated by gen-uni-tables.
18393
18394         New module 'unictype/property-cased'.
18395         * modules/unictype/property-cased: New file.
18396         * lib/unictype/pr_cased.c: New file.
18397         * lib/unictype/pr_cased.h: New file, automatically generated by
18398         gen-uni-tables.
18399         * modules/unictype/property-cased-tests: New file.
18400         * tests/unictype/test-pr_cased.c: New file, automatically generated by
18401         gen-uni-tables.
18402
18403 2011-01-09  Bruno Haible  <bruno@clisp.org>
18404
18405         Update to Unicode 5.2.0.
18406         * lib/gen-uni-tables.c (output_predicate, output_category,
18407         output_combclass, output_bidi_category, output_decimal_digit_test,
18408         output_decimal_digit, output_digit_test, output_digit,
18409         output_numeric_test, output_numeric, output_mirror, output_scripts,
18410         output_scripts_byname, output_blocks, output_ident_category): Fix
18411         comment header.
18412         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
18413         get_wbp.
18414         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
18415         items.
18416         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
18417         Changes_When_Lowercased, Changes_When_Uppercased,
18418         Changes_When_Titlecased, Changes_When_Casefolded,
18419         Changes_When_Casemapped.
18420         (is_property_alphabetic, is_property_default_ignorable_code_point):
18421         Update for Unicode 5.2.0.
18422         (is_property_cased, is_property_case_ignorable,
18423         is_property_changes_when_lowercased,
18424         is_property_changes_when_uppercased,
18425         is_property_changes_when_titlecased,
18426         is_property_changes_when_casefolded,
18427         is_property_changes_when_casemapped): New functions.
18428         (output_properties): Output also the properties cased, case_ignorable,
18429         changes_when_lowercased, changes_when_uppercased,
18430         changes_when_titlecased, changes_when_casefolded,
18431         changes_when_casemapped.
18432         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
18433         Unicode TR#11 revision 17 -> 19.
18434         (LBP_CP): New enumeration value.
18435         (LBP_*): Adjust values accordingly.
18436         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
18437         TR#14 revision 22 -> 24.
18438         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
18439         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
18440         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
18441         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
18442         is_WBP_MIDLETTER.
18443         (output_composition_tables): Allow for 24 bits instead of 16 bits in
18444         the code1 and code2 of each composition rule.
18445         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
18446         * lib/unicase/ignorable.h: Likewise.
18447         * lib/unicase/tocasefold.h: Likewise.
18448         * lib/unicase/tolower.h: Likewise.
18449         * lib/unicase/totitle.h: Likewise.
18450         * lib/unicase/toupper.h: Likewise.
18451         * lib/unictype/bidi_of.h: Likewise.
18452         * lib/unictype/blocks.h: Likewise.
18453         * lib/unictype/categ_C.h: Likewise.
18454         * lib/unictype/categ_Cf.h: Likewise.
18455         * lib/unictype/categ_Cn.h: Likewise.
18456         * lib/unictype/categ_L.h: Likewise.
18457         * lib/unictype/categ_Ll.h: Likewise.
18458         * lib/unictype/categ_Lm.h: Likewise.
18459         * lib/unictype/categ_Lo.h: Likewise.
18460         * lib/unictype/categ_Lu.h: Likewise.
18461         * lib/unictype/categ_M.h: Likewise.
18462         * lib/unictype/categ_Mc.h: Likewise.
18463         * lib/unictype/categ_Mn.h: Likewise.
18464         * lib/unictype/categ_N.h: Likewise.
18465         * lib/unictype/categ_Nd.h: Likewise.
18466         * lib/unictype/categ_Nl.h: Likewise.
18467         * lib/unictype/categ_No.h: Likewise.
18468         * lib/unictype/categ_P.h: Likewise.
18469         * lib/unictype/categ_Pd.h: Likewise.
18470         * lib/unictype/categ_Po.h: Likewise.
18471         * lib/unictype/categ_S.h: Likewise.
18472         * lib/unictype/categ_Sc.h: Likewise.
18473         * lib/unictype/categ_So.h: Likewise.
18474         * lib/unictype/categ_of.h: Likewise.
18475         * lib/unictype/combining.h: Likewise.
18476         * lib/unictype/ctype_alnum.h: Likewise.
18477         * lib/unictype/ctype_alpha.h: Likewise.
18478         * lib/unictype/ctype_graph.h: Likewise.
18479         * lib/unictype/ctype_lower.h: Likewise.
18480         * lib/unictype/ctype_print.h: Likewise.
18481         * lib/unictype/ctype_punct.h: Likewise.
18482         * lib/unictype/ctype_upper.h: Likewise.
18483         * lib/unictype/decdigit.h: Likewise.
18484         * lib/unictype/digit.h: Likewise.
18485         * lib/unictype/numeric.h: Likewise.
18486         * lib/unictype/pr_alphabetic.h: Likewise.
18487         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18488         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18489         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18490         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18491         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18492         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18493         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18494         * lib/unictype/pr_combining.h: Likewise.
18495         * lib/unictype/pr_composite.h: Likewise.
18496         * lib/unictype/pr_currency_symbol.h: Likewise.
18497         * lib/unictype/pr_dash.h: Likewise.
18498         * lib/unictype/pr_decimal_digit.h: Likewise.
18499         * lib/unictype/pr_deprecated.h: Likewise.
18500         * lib/unictype/pr_diacritic.h: Likewise.
18501         * lib/unictype/pr_extender.h: Likewise.
18502         * lib/unictype/pr_grapheme_base.h: Likewise.
18503         * lib/unictype/pr_grapheme_extend.h: Likewise.
18504         * lib/unictype/pr_grapheme_link.h: Likewise.
18505         * lib/unictype/pr_id_continue.h: Likewise.
18506         * lib/unictype/pr_id_start.h: Likewise.
18507         * lib/unictype/pr_ideographic.h: Likewise.
18508         * lib/unictype/pr_ignorable_control.h: Likewise.
18509         * lib/unictype/pr_logical_order_exception.h: Likewise.
18510         * lib/unictype/pr_lowercase.h: Likewise.
18511         * lib/unictype/pr_numeric.h: Likewise.
18512         * lib/unictype/pr_other_alphabetic.h: Likewise.
18513         * lib/unictype/pr_punctuation.h: Likewise.
18514         * lib/unictype/pr_sentence_terminal.h: Likewise.
18515         * lib/unictype/pr_terminal_punctuation.h: Likewise.
18516         * lib/unictype/pr_unassigned_code_value.h: Likewise.
18517         * lib/unictype/pr_unified_ideograph.h: Likewise.
18518         * lib/unictype/pr_uppercase.h: Likewise.
18519         * lib/unictype/pr_xid_continue.h: Likewise.
18520         * lib/unictype/pr_xid_start.h: Likewise.
18521         * lib/unictype/pr_zero_width.h: Likewise.
18522         * lib/unictype/scripts.h: Likewise.
18523         * lib/unictype/scripts_byname.gperf: Likewise.
18524         * lib/unictype/sy_java_ident.h: Likewise.
18525         * lib/unigbrk/gbrkprop.h: Likewise.
18526         * lib/unilbrk/lbrkprop1.h: Likewise.
18527         * lib/unilbrk/lbrkprop2.h: Likewise.
18528         * lib/unilbrk/lbrktables.h: Likewise.
18529         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
18530         LBP_CP. Implement rule LB30.
18531         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
18532         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
18533         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
18534         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
18535         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
18536         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
18537         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
18538         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
18539         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
18540         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
18541         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
18542         bits instead of 16 bits in the code1 and code2 of each composition
18543         rule.
18544         (uc_composition): Update for Unicode 5.2.0.
18545         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
18546         * lib/uninorm/decomposition-table2.h: Likewise.
18547         * lib/uniwbrk/wbrkprop.h: Likewise.
18548         * tests/unicase/test-cased.c: Likewise.
18549         * tests/unicase/test-ignorable.c: Likewise.
18550         * tests/unicase/test-uc_tolower.c: Likewise.
18551         * tests/unicase/test-uc_totitle.c: Likewise.
18552         * tests/unicase/test-uc_toupper.c: Likewise.
18553         * tests/unictype/test-categ_C.c: Likewise.
18554         * tests/unictype/test-categ_Cf.c: Likewise.
18555         * tests/unictype/test-categ_Cn.c: Likewise.
18556         * tests/unictype/test-categ_L.c: Likewise.
18557         * tests/unictype/test-categ_Ll.c: Likewise.
18558         * tests/unictype/test-categ_Lm.c: Likewise.
18559         * tests/unictype/test-categ_Lo.c: Likewise.
18560         * tests/unictype/test-categ_Lu.c: Likewise.
18561         * tests/unictype/test-categ_M.c: Likewise.
18562         * tests/unictype/test-categ_Mc.c: Likewise.
18563         * tests/unictype/test-categ_Mn.c: Likewise.
18564         * tests/unictype/test-categ_N.c: Likewise.
18565         * tests/unictype/test-categ_Nd.c: Likewise.
18566         * tests/unictype/test-categ_Nl.c: Likewise.
18567         * tests/unictype/test-categ_No.c: Likewise.
18568         * tests/unictype/test-categ_P.c: Likewise.
18569         * tests/unictype/test-categ_Pd.c: Likewise.
18570         * tests/unictype/test-categ_Po.c: Likewise.
18571         * tests/unictype/test-categ_S.c: Likewise.
18572         * tests/unictype/test-categ_Sc.c: Likewise.
18573         * tests/unictype/test-categ_So.c: Likewise.
18574         * tests/unictype/test-ctype_alnum.c: Likewise.
18575         * tests/unictype/test-ctype_alpha.c: Likewise.
18576         * tests/unictype/test-ctype_graph.c: Likewise.
18577         * tests/unictype/test-ctype_lower.c: Likewise.
18578         * tests/unictype/test-ctype_print.c: Likewise.
18579         * tests/unictype/test-ctype_punct.c: Likewise.
18580         * tests/unictype/test-ctype_upper.c: Likewise.
18581         * tests/unictype/test-decdigit.h: Likewise.
18582         * tests/unictype/test-digit.h: Likewise.
18583         * tests/unictype/test-numeric.h: Likewise.
18584         * tests/unictype/test-pr_alphabetic.c: Likewise.
18585         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
18586         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
18587         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
18588         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
18589         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
18590         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
18591         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
18592         * tests/unictype/test-pr_combining.c: Likewise.
18593         * tests/unictype/test-pr_composite.c: Likewise.
18594         * tests/unictype/test-pr_currency_symbol.c: Likewise.
18595         * tests/unictype/test-pr_dash.c: Likewise.
18596         * tests/unictype/test-pr_decimal_digit.c: Likewise.
18597         * tests/unictype/test-pr_deprecated.c: Likewise.
18598         * tests/unictype/test-pr_diacritic.c: Likewise.
18599         * tests/unictype/test-pr_extender.c: Likewise.
18600         * tests/unictype/test-pr_grapheme_base.c: Likewise.
18601         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
18602         * tests/unictype/test-pr_grapheme_link.c: Likewise.
18603         * tests/unictype/test-pr_id_continue.c: Likewise.
18604         * tests/unictype/test-pr_id_start.c: Likewise.
18605         * tests/unictype/test-pr_ideographic.c: Likewise.
18606         * tests/unictype/test-pr_ignorable_control.c: Likewise.
18607         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
18608         * tests/unictype/test-pr_lowercase.c: Likewise.
18609         * tests/unictype/test-pr_numeric.c: Likewise.
18610         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
18611         * tests/unictype/test-pr_punctuation.c: Likewise.
18612         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
18613         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
18614         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
18615         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
18616         * tests/unictype/test-pr_uppercase.c: Likewise.
18617         * tests/unictype/test-pr_xid_continue.c: Likewise.
18618         * tests/unictype/test-pr_xid_start.c: Likewise.
18619         * tests/unictype/test-pr_zero_width.c: Likewise.
18620         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
18621         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
18622         changed behaviour: line breaking is now disallowed between a letter
18623         or '=' and '('.
18624         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18625         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18626         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
18627         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
18628         * tests/uniwidth/test-uc_width2.sh: Same updates as in
18629         lib/uniwidth/width.c.
18630         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
18631         without comments, but with the original copyright notice.
18632         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
18633         changes.
18634         * lib/unictype/categ_Cc.h: Likewise.
18635         * lib/unictype/categ_Co.h: Likewise.
18636         * lib/unictype/categ_Cs.h: Likewise.
18637         * lib/unictype/categ_Lt.h: Likewise.
18638         * lib/unictype/categ_Me.h: Likewise.
18639         * lib/unictype/categ_Pc.h: Likewise.
18640         * lib/unictype/categ_Pe.h: Likewise.
18641         * lib/unictype/categ_Pf.h: Likewise.
18642         * lib/unictype/categ_Pi.h: Likewise.
18643         * lib/unictype/categ_Ps.h: Likewise.
18644         * lib/unictype/categ_Sk.h: Likewise.
18645         * lib/unictype/categ_Sm.h: Likewise.
18646         * lib/unictype/categ_Z.h: Likewise.
18647         * lib/unictype/categ_Zl.h: Likewise.
18648         * lib/unictype/categ_Zp.h: Likewise.
18649         * lib/unictype/categ_Zs.h: Likewise.
18650         * lib/unictype/ctype_blank.h: Likewise.
18651         * lib/unictype/ctype_cntrl.h: Likewise.
18652         * lib/unictype/ctype_digit.h: Likewise.
18653         * lib/unictype/ctype_space.h: Likewise.
18654         * lib/unictype/ctype_xdigit.h: Likewise.
18655         * lib/unictype/mirror.h: Likewise.
18656         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18657         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18658         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18659         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
18660         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18661         * lib/unictype/pr_bidi_control.h: Likewise.
18662         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18663         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18664         * lib/unictype/pr_bidi_pdf.h: Likewise.
18665         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18666         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18667         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18668         * lib/unictype/pr_format_control.h: Likewise.
18669         * lib/unictype/pr_hex_digit.h: Likewise.
18670         * lib/unictype/pr_hyphen.h: Likewise.
18671         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18672         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18673         * lib/unictype/pr_iso_control.h: Likewise.
18674         * lib/unictype/pr_join_control.h: Likewise.
18675         * lib/unictype/pr_left_of_pair.h: Likewise.
18676         * lib/unictype/pr_line_separator.h: Likewise.
18677         * lib/unictype/pr_math.h: Likewise.
18678         * lib/unictype/pr_non_break.h: Likewise.
18679         * lib/unictype/pr_not_a_character.h: Likewise.
18680         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18681         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18682         * lib/unictype/pr_other_id_continue.h: Likewise.
18683         * lib/unictype/pr_other_id_start.h: Likewise.
18684         * lib/unictype/pr_other_lowercase.h: Likewise.
18685         * lib/unictype/pr_other_math.h: Likewise.
18686         * lib/unictype/pr_other_uppercase.h: Likewise.
18687         * lib/unictype/pr_paired_punctuation.h: Likewise.
18688         * lib/unictype/pr_paragraph_separator.h: Likewise.
18689         * lib/unictype/pr_pattern_syntax.h: Likewise.
18690         * lib/unictype/pr_pattern_white_space.h: Likewise.
18691         * lib/unictype/pr_private_use.h: Likewise.
18692         * lib/unictype/pr_quotation_mark.h: Likewise.
18693         * lib/unictype/pr_radical.h: Likewise.
18694         * lib/unictype/pr_soft_dotted.h: Likewise.
18695         * lib/unictype/pr_space.h: Likewise.
18696         * lib/unictype/pr_titlecase.h: Likewise.
18697         * lib/unictype/pr_variation_selector.h: Likewise.
18698         * lib/unictype/pr_white_space.h: Likewise.
18699         * lib/unictype/sy_c_ident.h: Likewise.
18700         * lib/unictype/sy_c_whitespace.h: Likewise.
18701         * lib/unictype/sy_java_whitespace.h: Likewise.
18702         * modules/uni*/*: Bump version number of expected libunistring version.
18703         Reported by Simon Josefsson.
18704
18705 2011-01-09  Karl Heuer  <kwzh@gnu.org>
18706
18707         useless-if-before-free: fix typo in --help and make the internal,
18708         automatic version date update process work once again.
18709         --help output contained a NUL character instead of the
18710         backslash-zero that was intended.  Also, the "must lie within
18711         the first 8 lines" line is on line 9, and hence not getting
18712         automatically updated.
18713         * build-aux/useless-if-before-free: Fix the former by adding a
18714         backslash, and the latter by condensing the three lines of what-it-does
18715         to a single line, leaving one line of slack for the future.
18716
18717 2011-01-09  Bruno Haible  <bruno@clisp.org>
18718
18719         uniwidth/width: Fix width of U+1D173..U+1D17A.
18720         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
18721         symbolic_width, output_width_property_test): New functions.
18722         (main): Invoke output_nonspacing_property, output_width_property_test.
18723         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
18724         U+1D173..U+1D17A.
18725         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
18726         1.
18727         * modules/uniwidth/*: Bump version number of expected libunistring
18728         version.
18729         * modules/unilbrk/*: Likewise.
18730
18731 2011-01-08  Bruno Haible  <bruno@clisp.org>
18732
18733         uninorm tests: Preserve copyright of Unicode data file.
18734         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
18735         Mention modifications.
18736
18737 2011-01-08  Bruno Haible  <bruno@clisp.org>
18738
18739         gen-uni-tables: Prepare for Unicode 5.2.0.
18740         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
18741         (debug_output_lbp, output_lbp): Update.
18742
18743 2011-01-08  Bruno Haible  <bruno@clisp.org>
18744
18745         unilbrk: Clarify gen-uni-tables.c code.
18746         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
18747         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
18748         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
18749
18750 2011-01-07  Bruno Haible  <bruno@clisp.org>
18751
18752         strtod: Restore errno when successfully parsing Infinity or NaN.
18753         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
18754         restore the original errno.
18755
18756 2011-01-07  Bruno Haible  <bruno@clisp.org>
18757
18758         remove test: Avoid failure on HP-UX 11.
18759         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
18760
18761 2011-01-07  Bruno Haible  <bruno@clisp.org>
18762
18763         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
18764         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
18765         error code.
18766
18767 2011-01-07  Pádraig Brady <P@draigBrady.com>
18768
18769         ignore-value: fixup comments, and add Eric Blake
18770         as an author since he rewrote the macros.
18771         * lib/ignore-value.h (ignore_value):  State that
18772         we now support aggregates.  Also specify exactly
18773         when the GCC warn_unused_result feature was added.
18774
18775 2011-01-06  Eric Blake  <eblake@redhat.com>
18776
18777         ignore-value: support aggregate types
18778         * lib/ignore-value.h (ignore_value): Provide separate gcc
18779         definition.
18780         * modules/ignore-value-tests: New test module.
18781         * tests/test-ignore-value.c: New test.
18782
18783         maint.mk: improve sc_prohibit_strcmp regex
18784         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
18785         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
18786         definition of STRNEQ.
18787
18788         signal: work around Haiku issue with SIGBUS
18789         * lib/siglist.h: Add comment.
18790         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
18791         strsignal's favoring of SIGSEGV.
18792         * tests/test-signal.c (main): Avoid test failure.
18793         * doc/posix-headers/signal.texi (signal.h): Document the issue.
18794         Reported by Scott McCreary.
18795
18796         maint.mk: add pre-release check to ensure submodule commits are public
18797         * top/maint.mk (public-submodule-commit): New rule.
18798         (submodule-checks): New variable.
18799         (alpha beta stable): Depend on the variable.
18800
18801 2011-01-05  Pádraig Brady <P@draigBrady.com>
18802         and Jim Meyering  <meyering@redhat.com>
18803
18804         ignore-value: make ignore_value more generic; deprecate ignore_ptr
18805         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
18806         (ATTRIBUTE_DEPRECATED): Define.
18807         (_ignore_case): New function.
18808         (ignore_value): New macro, to replace the old function.
18809         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
18810         * modules/ignore-value (Depends-on): Add stdint.
18811
18812 2011-01-04  Eric Blake  <eblake@redhat.com>
18813
18814         doc: regenerate INSTALL
18815         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
18816         @firstparagraphindent support, now that autoconf dropped it.
18817         (INSTALL_PRELUDE): Reinstate old macro.
18818         * doc/install.texi: Resync from autoconf.
18819         * doc/INSTALL: Reflect recent autoconf update.
18820         * doc/INSTALL.ISO: Likewise.
18821         * doc/INSTALL.UTF-8: Likewise.
18822         Reported by Karl Berry.
18823
18824 2011-01-04  Bruce Korb  <address@hidden>
18825
18826         git-version-gen: avoid a sub-shell
18827         * build-aux/git-version-gen: Redirect stderr in `...` via
18828         "exec 2>...", rather than via an added sub-shell.
18829
18830 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
18831
18832         git-version-gen: use (...) rather than sh -c '...'
18833         * build-aux/git-version-gen: Rather than hard-coding a shell's name
18834         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
18835
18836 2011-01-03  Jim Meyering  <meyering@redhat.com>
18837
18838         git-version-gen: convert leading TABs to spaces
18839         * build-aux/git-version-gen: Expand leading TABs.
18840
18841         git-version-gen: handle failed "git rev-list"
18842         * build-aux/git-version-gen: Rather than leaking a "fatal" error
18843         from git and proceeding as if it had succeeded but printed no SHA1
18844         checksums, suppress the diagnostic and handle the failure.
18845         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
18846
18847         git-version-gen: include command name in one more diagnostic
18848         * build-aux/git-version-gen: When the required .tarball-version file
18849         was missing or unreadable, you might see the diagnostic from "cat",
18850         but no trace of the name of the invoking script.  Now, you still see
18851         the diagnostic from cat, but also get one from "git-version-gen: ".
18852         Inspired by a patch from Bruce Korb.
18853
18854         update-copyright: adjust test to match changed code
18855         * tests/test-update-copyright.sh: Change test's expected output
18856         to match new actual output.
18857
18858 2011-01-02  Bruno Haible  <bruno@clisp.org>
18859
18860         getlogin_r: Avoid test failure on HP-UX 11.
18861         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
18862         ERANGE when the second argument is zero.
18863         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
18864         portability problem.
18865
18866 2011-01-02  Bruce Korb  <bkorb@gnu.org>
18867
18868         * build-aux/update-copyright: doc Simon's changes
18869
18870 2011-01-02  Simon Josefsson  <simon@josefsson.org>
18871
18872         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
18873         environment variable.
18874
18875 2011-01-02  Bruno Haible  <bruno@clisp.org>
18876
18877         unigbrk: Avoid gcc warnings.
18878         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
18879         unused variable.
18880         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
18881         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
18882         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
18883         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
18884         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
18885         Change type of first argument to 'const char *'.
18886         (main): Remove unused variable.
18887         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
18888         type of first argument to 'const char *'.
18889         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
18890         Likewise.
18891         (main): Change type of variable 's'.
18892         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
18893         to 'int'.
18894
18895 2011-01-02  Bruno Haible  <bruno@clisp.org>
18896
18897         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
18898         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
18899         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
18900         bug.
18901         * lib/pwrite.c: Undo 2010-12-31 patch.
18902         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
18903
18904 2011-01-02  Bruno Haible  <bruno@clisp.org>
18905
18906         pread: Fix test whether it works.
18907         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
18908
18909 2011-01-02  Bruno Haible  <bruno@clisp.org>
18910
18911         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
18912         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
18913         ends in "6". Don't require a specific month name. Try also the locale
18914         names found on HP-UX 11 and Solaris 7.
18915
18916 2011-01-02  Bruno Haible  <bruno@clisp.org>
18917
18918         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
18919         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
18920         C linkage.
18921         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
18922
18923 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18924
18925         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
18926         for consistency, since the "cluster" term is not used elsewhere.
18927         * lib/unigbrk.in.h: Update name.
18928         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
18929         * lib/unigbrk/u16-grapheme-next.c: Update name.
18930         * lib/unigbrk/u16-grapheme-prev.c: Update name.
18931         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
18932         * lib/unigbrk/u32-grapheme-next.c: Update name.
18933         * lib/unigbrk/u32-grapheme-prev.c: Update name.
18934         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
18935         * lib/unigbrk/u8-grapheme-next.c: Update name.
18936         * lib/unigbrk/u8-grapheme-prev.c: Update name.
18937         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
18938         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
18939         Suggested by Bruno Haible.
18940
18941 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18942
18943         Remove module 'u8-grapheme-len' as too redundant with
18944         'u8-grapheme-next'.
18945         * modules/unigbrk/u8-grapheme-len: Delete file.
18946         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
18947         * lib/unigbrk.in.h: Remove prototype for deleted function.
18948         * lib/unigbrk/u8-grapheme-len.c: Delete file.
18949         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
18950
18951         Remove module 'u16-grapheme-len' as too redundant with
18952         'u16-grapheme-next'.
18953         * modules/unigbrk/u16-grapheme-len: Delete file.
18954         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
18955         * lib/unigbrk.in.h: Remove prototype for deleted function.
18956         * lib/unigbrk/u16-grapheme-len.c: Delete file.
18957         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
18958
18959         Remove module 'u32-grapheme-len' as too redundant with
18960         'u32-grapheme-next'.
18961         * modules/unigbrk/u32-grapheme-len: Delete file.
18962         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
18963         * lib/unigbrk.in.h: Remove prototype for deleted function.
18964         * lib/unigbrk/u32-grapheme-len.c: Delete file.
18965         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
18966
18967         Suggested by Bruno Haible.
18968
18969 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18970
18971         * unigbrk.in.h: Fix typo: "ben" => "been".
18972         Reported by Bruno Haible.
18973
18974 2011-01-01  Jim Meyering  <meyering@redhat.com>
18975
18976         maint: update almost all copyright ranges to include 2011
18977         Run the new "make update-copyright" rule.
18978
18979 2011-01-01  Jim Meyering  <meyering@redhat.com>
18980
18981         maint: update-copyright: exempt doc/INSTALL*
18982         * Makefile (update-copyright): Also exclude doc/INSTALL*,
18983         since they are generated.  Suggested by Bruno Haible.
18984
18985 2011-01-01  Jim Meyering  <meyering@redhat.com>
18986
18987         maint: refine the update-copyright rule
18988         * Makefile (update-copyright): Also exclude any file that includes
18989         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
18990         code that merely generates the comment.
18991
18992 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
18993
18994         New module 'u8-grapheme-len'.
18995         * modules/unigbrk/u8-grapheme-len: New file.
18996         * modules/unigbrk/u8-grapheme-len-tests: New file.
18997         * lib/unigbrk.in.h: Add prototype for new function.
18998         * lib/unigbrk/u8-grapheme-len.c: New file.
18999         * tests/unigbrk/test-u8-grapheme-len.c: New file.
19000
19001         New module 'u16-grapheme-len'.
19002         * modules/unigbrk/u16-grapheme-len: New file.
19003         * modules/unigbrk/u16-grapheme-len-tests: New file.
19004         * lib/unigbrk.in.h: Add prototype for new function.
19005         * lib/unigbrk/u16-grapheme-len.c: New file.
19006         * tests/unigbrk/test-u16-grapheme-len.c: New file.
19007
19008         New module 'u32-grapheme-len'.
19009         * modules/unigbrk/u32-grapheme-len: New file.
19010         * modules/unigbrk/u32-grapheme-len-tests: New file.
19011         * lib/unigbrk.in.h: Add prototype for new function.
19012         * lib/unigbrk/u32-grapheme-len.c: New file.
19013         * tests/unigbrk/test-u32-grapheme-len.c: New file.
19014
19015         New module 'u8-grapheme-next'.
19016         * modules/unigbrk/u8-grapheme-next: New file.
19017         * modules/unigbrk/u8-grapheme-next-tests: New file.
19018         * lib/unigbrk.in.h: Add prototype for new function.
19019         * lib/unigbrk/u8-grapheme-next.c: New file.
19020         * tests/unigbrk/test-u8-grapheme-next.c: New file.
19021
19022         New module 'u16-grapheme-next'.
19023         * modules/unigbrk/u16-grapheme-next: New file.
19024         * modules/unigbrk/u16-grapheme-next-tests: New file.
19025         * lib/unigbrk.in.h: Add prototype for new function.
19026         * lib/unigbrk/u16-grapheme-next.c: New file.
19027         * tests/unigbrk/test-u16-grapheme-next.c: New file.
19028
19029         New module 'u32-grapheme-next'.
19030         * modules/unigbrk/u32-grapheme-next: New file.
19031         * modules/unigbrk/u32-grapheme-next-tests: New file.
19032         * lib/unigbrk.in.h: Add prototype for new function.
19033         * lib/unigbrk/u32-grapheme-next.c: New file.
19034         * tests/unigbrk/test-u32-grapheme-next.c: New file.
19035
19036         New module 'u8-grapheme-prev'.
19037         * modules/unigbrk/u8-grapheme-prev: New file.
19038         * modules/unigbrk/u8-grapheme-prev-tests: New file.
19039         * lib/unigbrk.in.h: Add prototype for new function.
19040         * lib/unigbrk/u8-grapheme-prev.c: New file.
19041         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
19042
19043         New module 'u16-grapheme-prev'.
19044         * modules/unigbrk/u16-grapheme-prev: New file.
19045         * modules/unigbrk/u16-grapheme-prev-tests: New file.
19046         * lib/unigbrk.in.h: Add prototype for new function.
19047         * lib/unigbrk/u16-grapheme-prev.c: New file.
19048         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
19049
19050         New module 'u32-grapheme-prev'.
19051         * modules/unigbrk/u32-grapheme-prev: New file.
19052         * modules/unigbrk/u32-grapheme-prev-tests: New file.
19053         * lib/unigbrk.in.h: Add prototype for new function.
19054         * lib/unigbrk/u32-grapheme-prev.c: New file.
19055         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
19056
19057         New module 'u8-grapheme-breaks'.
19058         * modules/unigbrk/u8-grapheme-breaks: New file.
19059         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
19060         * lib/unigbrk.in.h: Add prototype for new function.
19061         * lib/unigbrk/u8-grapheme-breaks.c: New file.
19062         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
19063
19064         New module 'u16-grapheme-breaks'.
19065         * modules/unigbrk/u16-grapheme-breaks: New file.
19066         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
19067         * lib/unigbrk.in.h: Add prototype for new function.
19068         * lib/unigbrk/u16-grapheme-breaks.c: New file.
19069         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
19070
19071         New module 'u32-grapheme-breaks'.
19072         * modules/unigbrk/u32-grapheme-breaks: New file.
19073         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
19074         * lib/unigbrk.in.h: Add prototype for new function.
19075         * lib/unigbrk/u32-grapheme-breaks.c: New file.
19076         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
19077
19078         New module 'ulc-grapheme-breaks'.
19079         * modules/unigbrk/ulc-grapheme-breaks: New file.
19080         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
19081         * m4/locale-ar.m4: New file.
19082         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
19083         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
19084         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
19085
19086 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
19087
19088         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
19089         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
19090         modified how this file was generated before I initially submitted
19091         the module, but failed to regenerate it.  This meant that several
19092         of the level2 entries were wrong.
19093         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
19094         Remove the division-by-2 that is folded into the table now that
19095         gbrkprop.h has been regenerated properly.  Now -1 entries are
19096         handled correctly.
19097
19098         New module 'unigbrk/uc-gbrk-prop-tests'.
19099         * modules/unigbrk/uc-gbrk-prop-tests: New file.
19100         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
19101         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
19102         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
19103
19104 2011-01-01  Bruno Haible  <bruno@clisp.org>
19105
19106         Avoid use of hexadecimal escapes.
19107         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
19108         instead of hexadecimal escapes.
19109
19110 2011-01-01  Jim Meyering  <meyering@redhat.com>
19111
19112         maint: new rule to update copyright year ranges
19113         * Makefile (update-copyright): New rule.
19114
19115         maint: indent with TABs in Makefile
19116         * Makefile: Expand leading sequences of spaces to TABs
19117
19118         version-etc: update the copyright year it reports
19119         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
19120
19121 2010-12-31  Bruno Haible  <bruno@clisp.org>
19122
19123         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
19124         * lib/isfinite.c (zerof, zerod, zerol): New variables.
19125         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
19126         zero.
19127
19128 2010-12-31  Bruno Haible  <bruno@clisp.org>
19129
19130         pwrite: Work around HP-UX 11.11 bug.
19131         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
19132         works and set REPLACE_PWRITE if not.
19133         * lib/pwrite.c (pwrite): Add an implementation that uses the system
19134         function.
19135         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
19136
19137 2010-12-31  Bruno Haible  <bruno@clisp.org>
19138
19139         pread: Work around HP-UX 11 bugs.
19140         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
19141         and set REPLACE_PREAD if not.
19142         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
19143
19144 2010-12-31  Eric Blake  <eblake@redhat.com>
19145
19146         nl_langinfo: fix YESEXPR on Irix 6.5
19147         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
19148         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
19149         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
19150         it.
19151
19152 2010-12-31  Bruno Haible  <bruno@clisp.org>
19153
19154         iconv: Document HP-UX 11 bug.
19155         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
19156
19157 2010-12-31  Bruno Haible  <bruno@clisp.org>
19158
19159         ldexpl: Fix link error on HP-UX 11.
19160         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
19161         LDEXPL_LIBM, using $ISNANL_LIBM.
19162
19163 2010-12-31  Eric Blake  <eblake@redhat.com>
19164
19165         ftello: avoid compilation failure with SunStudio c89
19166         * lib/ftello.c (ftello): Use lseek, not llseek.
19167
19168         tests: avoid failing coreutils tests on cygwin
19169         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
19170         (create_exe_shims_): Return 0 when skipping.
19171
19172 2010-12-31  Bruno Haible  <bruno@clisp.org>
19173
19174         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
19175         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
19176
19177 2010-12-31  Bruno Haible  <bruno@clisp.org>
19178
19179         waitpid: Fix link error in C++ mode.
19180         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
19181
19182 2010-12-31  Bruno Haible  <bruno@clisp.org>
19183
19184         isnan: Use GCC built-ins when possible.
19185         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
19186         __builtin_isnan.
19187         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
19188         (isnan): Define using GCC built-ins for GCC >= 4.0.
19189
19190 2010-12-31  Bruno Haible  <bruno@clisp.org>
19191
19192         isnand: Fix mistake.
19193         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
19194         __builtin_isnand.
19195
19196 2010-12-31  Bruno Haible  <bruno@clisp.org>
19197
19198         open: Avoid C++ error on HP-UX 11.
19199         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
19200
19201 2010-12-31  Bruno Haible  <bruno@clisp.org>
19202
19203         time_r: Add missing declarations on HP-UX 11.
19204         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
19205         instead of HAVE_LOCALTIME_R.
19206         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
19207         HAVE_LOCALTIME_R always.
19208         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
19209         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
19210         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
19211         HAVE_LOCALTIME_R.
19212         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
19213         * doc/posix-functions/localtime_r.texi: Likewise.
19214
19215 2010-12-29  Eric Blake  <eblake@redhat.com>
19216
19217         mountlist: tweak previous commit
19218         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
19219         Reported by Paul Eggert.
19220
19221         mountlist: fix local drive detection on cygwin
19222         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
19223         that works for cygwin.
19224
19225 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
19226
19227         ftoastr, snprintf: ftoastr + snprintf module
19228         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
19229         since the snprintf module now should be good enough here.
19230         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
19231         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
19232         and gl_MODULE_INDICATOR([snprintf]), but the former enables
19233         GNULIB_SNPRINTF only for the test directory, and the latter
19234         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
19235         seems to suffice by itself.
19236
19237 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
19238
19239         alloca: one step towards thread-safety
19240         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
19241         need for a static variable.  All callers changed.  This does not
19242         make the alloca replacement thread-safe, but it's one step.
19243
19244         tests: minor indenting change
19245         * tests/init.sh: Sync from coreutils housekeeping patch
19246         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
19247         to keep lines within 80 columns.
19248
19249 2010-12-28  Jim Meyering  <meyering@redhat.com>
19250
19251         regex: don't infloop on persistent failing calloc
19252         * lib/regexec.c (build_trtable): Return failure indication upon
19253         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
19254         In glibc, this was fixed for version 2.13:
19255         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
19256
19257 2010-12-28  Bruno Haible  <bruno@clisp.org>
19258             Paul Eggert <eggert@cs.ucla.edu>
19259
19260         linkat: Make implementation robust against system behaviour variations.
19261         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
19262         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
19263         way, and to -2 if it needs a generic runtime test.
19264         * lib/linkat.c (solaris_optimized_link_immediate,
19265         solaris_optimized_link_follow): New functions.
19266         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
19267         (check_same_link): Use it.
19268
19269 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
19270
19271         New module 'unigbrk/base'.
19272         * modules/unigbrk/base: New file.
19273         * lib/unigbrk.in.h: New file.
19274
19275         New module 'unigbrk/uc-gbrk-prop'.
19276         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
19277         * modules/unigbrk/uc-gbrk-prop: New file.
19278         * lib/unigbrk/gbrkprop.h: New file.
19279         * lib/unigbrk/uc-gbrk-prop.c: New file.
19280
19281         New module 'unigbrk/uc-is-grapheme-break'.
19282         * modules/unigbrk/uc-is-grapheme-break: New file.
19283         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
19284         * lib/unigbrk/uc-is-grapheme-break.c: New file.
19285         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
19286         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
19287         * tests/unigbrk/GraphemeBreakTest.txt: New file.
19288
19289         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
19290
19291 2010-12-27  Bruno Haible  <bruno@clisp.org>
19292
19293         linkat test: Avoid failure on Solaris 11 2010-11.
19294         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
19295
19296 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19297
19298         utimens: work around glibc rounding bug on more platforms
19299         * lib/utimens.c (fdutimens): Work around rounding bug even if
19300         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
19301         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
19302
19303 2010-12-27  Bruno Haible  <bruno@clisp.org>
19304
19305         select tests: Improve comments.
19306         * tests/test-select.c (do_select): Add comments.
19307
19308 2010-12-27  Bruno Haible  <bruno@clisp.org>
19309
19310         select tests: Safer way of handling timeout.
19311         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
19312         at every invocation.
19313
19314 2010-12-27  Bruno Haible  <bruno@clisp.org>
19315
19316         select tests: Use 'bool' where appropriate.
19317         * tests/test-select.c (connect_to_socket): Change argument type to
19318         'bool'.
19319
19320 2010-12-27  Bruno Haible  <bruno@clisp.org>
19321
19322         select tests: Use existing modules.
19323         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
19324         (configure.ac): Don't test for unistd.h.
19325         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
19326         declared in <unistd.h>.
19327
19328 2010-12-27  Bruno Haible  <bruno@clisp.org>
19329
19330         mbrtowc: Work around a Solaris 7 bug.
19331         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
19332         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
19333         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
19334         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
19335         MBRTOWC_NULL_ARG1_BUG.
19336         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
19337         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
19338         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
19339         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
19340
19341 2010-12-27  Jim Meyering  <meyering@redhat.com>
19342
19343         read-file.c: tweak syntax
19344         * lib/read-file.c (fread_file): Remove space after "*" in function
19345         definitions.
19346
19347 2010-12-27  Bruno Haible  <bruno@clisp.org>
19348
19349         times test: Avoid gcc warnings on OSF/1.
19350         * tests/test-times.c (main): Cast printf arguments from clock_t to
19351         'long int'.
19352
19353 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19354
19355         utimens: work around glibc rounding bug on older Linux kernels
19356         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
19357         on Linux with a glibc whose utimes might not work, then work
19358         around a longstanding glibc bug involving rounding rather than
19359         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
19360         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
19361
19362 2010-12-26  Bruno Haible  <bruno@clisp.org>
19363
19364         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
19365         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
19366         _GL_CXXALIAS_SYS.
19367         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19368
19369 2010-12-26  Bruno Haible  <bruno@clisp.org>
19370
19371         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
19372         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
19373         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19374         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
19375         looking for the declaration.
19376         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
19377         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
19378         problem.
19379         * doc/posix-functions/inet_pton.texi: Likewise.
19380
19381 2010-12-26  Bruno Haible  <bruno@clisp.org>
19382
19383         arpa_inet: Use the common idioms with C++ support.
19384         * lib/arpa_inet.in.h: Include c++defs.h.
19385         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
19386         support.
19387         * modules/arpa_inet (Depends-on): Add c++defs.
19388         (Makefile.am): Substitute the contents of c++defs.h.
19389         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
19390         * modules/arpa_inet-c++-tests: New file.
19391         * tests/test-arpa_inet-c++.cc: New file.
19392
19393 2010-12-25  Bruno Haible  <bruno@clisp.org>
19394
19395         Fix more C++ link errors on Solaris 8.
19396         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
19397         $(LIB_EACCESS).
19398         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
19399         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
19400         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
19401         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
19402         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
19403
19404 2010-12-25  Bruno Haible  <bruno@clisp.org>
19405
19406         printf-posix: Fix link error when a non-GCC compiler is used.
19407         * lib/stdio.in.h (printf): When not using GCC, override printf
19408         correctly.
19409         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19410
19411 2010-12-25  Bruno Haible  <bruno@clisp.org>
19412
19413         strerror_r-posix: Update doc.
19414         * doc/posix-functions/strerror_r.texi: Update doc about the return
19415         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
19416
19417 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
19418
19419         utimens: simplify the logic of the previous change
19420         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
19421         This should not affect whether the test succeeds or fails.
19422
19423         utimens: configure better on hosts with NFS clock skew
19424         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
19425         uses the clock of the local host.  It might use the clock of the
19426         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
19427         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
19428
19429 2010-12-25  Bruno Haible  <bruno@clisp.org>
19430
19431         ptsname test: Avoid failure on Solaris.
19432         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
19433         open a pseudo-terminal; don't use BSD-style ptys.
19434         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
19435
19436 2010-12-25  Bruno Haible  <bruno@clisp.org>
19437
19438         ptsname: Avoid ERANGE failure on some systems.
19439         * lib/ptsname.c (buffer): Increase size.
19440
19441 2010-12-25  Bruno Haible  <bruno@clisp.org>
19442
19443         rename, renameat: Avoid test failures at NFS mounted locations.
19444         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
19445         so that subsequent mkdir calls succeed.
19446
19447 2010-12-25  Bruno Haible  <bruno@clisp.org>
19448
19449         iswblank: Fix C++ link error on Solaris 8.
19450         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
19451         _GL_FUNCDECL_SYS.
19452
19453 2010-12-25  Bruno Haible  <bruno@clisp.org>
19454
19455         unistd: Fix C++ link error on Solaris 8.
19456         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
19457
19458 2010-12-25  Bruno Haible  <bruno@clisp.org>
19459
19460         readlink doc: Mention an old glibc bug.
19461         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
19462
19463 2010-12-25  Bruno Haible  <bruno@clisp.org>
19464
19465         fcntl-h: Fix for use of C++ on glibc systems.
19466         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19467         also on glibc systems in C++ mode.
19468         Reported by Gary V. Vaughan <gary@gnu.org>.
19469
19470 2010-12-25  Bruno Haible  <bruno@clisp.org>
19471
19472         roundl-ieee: Make it work on OSF/1 5.1 with cc.
19473         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
19474
19475 2010-12-25  Bruno Haible  <bruno@clisp.org>
19476
19477         truncl-ieee: Make it work on OSF/1 5.1 with cc.
19478         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
19479         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
19480         test whether truncl works according to ISO C 99 with IEC 60559.
19481         * m4/truncl-ieee.m4: New file.
19482         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
19483         m4/signbit.m4.
19484         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
19485
19486 2010-12-25  Bruno Haible  <bruno@clisp.org>
19487
19488         ceill-ieee: Make it work on OSF/1 5.1 with cc.
19489         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
19490         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
19491         test whether ceill works according to ISO C 99 with IEC 60559.
19492         * m4/ceill-ieee.m4: New file.
19493         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
19494         m4/signbit.m4.
19495         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
19496
19497 2010-12-25  Bruno Haible  <bruno@clisp.org>
19498
19499         Ensure all prerequisites of <wchar.h> are included.
19500         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
19501         before <wchar.h>.
19502         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
19503         gl_MBRLEN_NUL_RETVAL): Likewise.
19504         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19505         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
19506         AC_FUNC_MBRTOWC): Likewise.
19507         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19508         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
19509         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19510         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19511         Likewise.
19512         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19513         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
19514         (gl_WCHAR_H): Improve comments.
19515         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
19516
19517 2010-12-25  Bruno Haible  <bruno@clisp.org>
19518
19519         strtok_r: Fix C syntax error in autoconf macro.
19520         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
19521         characters in test program.
19522
19523 2010-12-24  Bruno Haible  <bruno@clisp.org>
19524
19525         ceil, trunc, round: Fix gcc warnings.
19526         * lib/ceil.c (MIN): Undefine before redefining.
19527         * lib/trunc.c (MIN): Likewise.
19528         * lib/round.c (MIN): Likewise.
19529         Include <math.h> first.
19530
19531 2010-12-24  Bruno Haible  <bruno@clisp.org>
19532
19533         select tests: Avoid failures on OSF/1 5.1.
19534         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
19535         failure of closing the last socket; it may fail with ECONNRESET.
19536
19537 2010-12-24  Eric Blake  <eblake@redhat.com>
19538
19539         stdint: avoid HP-UX 10.20 preprocessor bug
19540         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
19541         than #if.
19542         * tests/test-floor2.c (main): Likewise.
19543         Reported by Peter O'Gorman.
19544
19545         pipe: make obsoletion transition easier
19546         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
19547         * modules/pipe (Files): Include revived file.
19548         (Include): Drop reference, to mirror getdate's behavior.
19549
19550 2010-12-24  Bruno Haible  <bruno@clisp.org>
19551
19552         sys_socket: Hide mismatch of declarations on NonStop Kernel.
19553         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
19554         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
19555         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19556
19557 2010-12-24  Bruno Haible  <bruno@clisp.org>
19558
19559         gethostname: Ensure declaration on NonStop Kernel.
19560         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
19561         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19562
19563 2010-12-24  Bruno Haible  <bruno@clisp.org>
19564
19565         sys_select: Ensure all necessary types on NonStop Kernel.
19566         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
19567         include <sys/time.h>.
19568         * doc/posix-headers/sys_select.texi: Mention that it's missing on
19569         NonStop Kernel.
19570         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19571
19572 2010-12-24  Bruno Haible  <bruno@clisp.org>
19573
19574         sys_select: Remove unneeded include.
19575         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
19576         have <sys/select.h>.
19577
19578 2010-12-24  Bruno Haible  <bruno@clisp.org>
19579
19580         gethostname: Provide a fallback for HOST_NAME_MAX.
19581         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
19582         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
19583         instead.
19584         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19585
19586 2010-12-24  Bruno Haible  <bruno@clisp.org>
19587
19588         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
19589         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
19590         (SA_RESTART): Likewise.
19591         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19592
19593 2010-12-24  Bruno Haible  <bruno@clisp.org>
19594
19595         signal: Define NSIG.
19596         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
19597         * tests/test-signal.c (nsig): New variable.
19598         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19599
19600 2010-12-24  Bruno Haible  <bruno@clisp.org>
19601
19602         rename, renameat: Avoid test failures on OSF/1 5.1.
19603         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
19604         alternative error codes.
19605         * tests/test-renameat.c (main): Likewise.
19606
19607 2010-12-24  Bruno Haible  <bruno@clisp.org>
19608
19609         *printf: Detect large precisions bug on Solaris 10/SPARC.
19610         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
19611         by Paul Eggert.
19612         * tests/test-snprintf-posix.h (test_function): Add this test code here
19613         too.
19614         * tests/test-sprintf-posix.h (test_function): Likewise.
19615         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19616         * tests/test-vasprintf-posix.c (test_function): Likewise.
19617         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
19618         around by gnulib.
19619         * doc/posix-functions/printf.texi: Likewise.
19620         * doc/posix-functions/snprintf.texi: Likewise.
19621         * doc/posix-functions/sprintf.texi: Likewise.
19622         * doc/posix-functions/vfprintf.texi: Likewise.
19623         * doc/posix-functions/vprintf.texi: Likewise.
19624         * doc/posix-functions/vsnprintf.texi: Likewise.
19625         * doc/posix-functions/vsprintf.texi: Likewise.
19626         * doc/posix-functions/dprintf.texi: Undo last commit.
19627         * doc/posix-functions/vdprintf.texi: Likewise.
19628
19629 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
19630
19631         tests: port test-fdutimensat.c to Solaris 8
19632         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
19633         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
19634         On Solaris 8, it fails with errno == ENOSYS, because there is no
19635         futimens (so it can't use the fd), and there is no lutimens (so it
19636         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
19637
19638         vsnprintf: make more consistent with snprintf; doc fixes
19639
19640         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
19641         the byte count return problem was promoted from the snprintf-posix
19642         to the snprintf module.
19643         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
19644         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
19645         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
19646         * tests/test-snprintf.c (main): Check the byte count returned.
19647         * tests/test-vsnprintf.c (main): Likewise.
19648
19649 2010-12-23  Eric Blake  <eblake@redhat.com>
19650
19651         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
19652         * modules/sigpipe (License): Relax license.
19653
19654 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19655
19656         doc: document Solaris printf bug with large float precisions
19657         * doc/posix-functions/dprintf.texi (dprintf):
19658         * doc/posix-functions/fprintf.texi (fprintf):
19659         * doc/posix-functions/printf.texi (printf):
19660         * doc/posix-functions/snprintf.texi (snprintf):
19661         * doc/posix-functions/sprintf.texi (sprintf):
19662         * doc/posix-functions/vdprintf.texi (vdprintf):
19663         * doc/posix-functions/vfprintf.texi (vfprintf):
19664         * doc/posix-functions/vprintf.texi (vprintf):
19665         * doc/posix-functions/vsnprintf.texi (vsnprintf):
19666         * doc/posix-functions/vsprintf.texi (vsprintf):
19667         Mention that these functions mishandle large floating point
19668         precisions on Solaris 10.  The same bug is also present in Solaris
19669         8, and I assume earlier.  This causes "cd gnulib-tests; make
19670         check" to fail on Solaris 8 (and I assume, later) when building
19671         the latest coreutils, in test-vasprintf-posix's call to
19672         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
19673         the wide flavors (e.g., wprintf) so this patch just updates the
19674         documentation for the narrow ones.
19675
19676         test-posixtm.c: add two tests
19677         * tests/test-posixtm.c: Add two tests, to highlight the
19678         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
19679         around this bug; this is merely to document it.
19680
19681 2010-12-22  Bruno Haible  <bruno@clisp.org>
19682
19683         getlogin_r: Work around portability problem on OSF/1.
19684         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
19685         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
19686         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
19687         test for a truncated result.
19688         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
19689         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
19690         * modules/getlogin_r (Depends-on): Add memchr.
19691         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
19692
19693 2010-12-22  Bruno Haible  <bruno@clisp.org>
19694
19695         ptsname: Avoid test failure on OSF/1 5.1.
19696         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
19697         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
19698         (same_slave): New function.
19699         (main): Use it to compare ptsname's result with the expected file name.
19700
19701 2010-12-22  Bruno Haible  <bruno@clisp.org>
19702
19703         Port extended stdio modules to HP NonStop Kernel.
19704         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
19705         macros.
19706         * lib/fbufmode.c: Update comments.
19707         * lib/fflush.c: Likewise.
19708         * lib/fpurge.c: Likewise.
19709         * lib/freadable.c: Likewise.
19710         * lib/freadahead.c: Likewise.
19711         * lib/freading.c: Likewise.
19712         * lib/freadptr.c: Likewise.
19713         * lib/freadseek.c: Likewise.
19714         * lib/fseeko.c: Likewise.
19715         * lib/fseterr.c: Likewise.
19716         * lib/fwritable.c: Likewise.
19717         * lib/fwriting.c: Likewise.
19718         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19719
19720 2010-12-22  Bruno Haible  <bruno@clisp.org>
19721
19722         ttyname_r: Work around bug on OSF/1 5.1.
19723         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
19724         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
19725         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
19726         present.
19727         * lib/ttyname_r.c (ttyname_r): Update comments.
19728
19729 2010-12-22  Bruno Haible  <bruno@clisp.org>
19730
19731         round: Implement result sign according to IEEE 754.
19732         * lib/round.c (MIN, MINUS_ZERO): New macros.
19733         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
19734         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
19735         * tests/test-round-ieee.c (main): Likewise.
19736         * tests/test-roundl-ieee.c (main): Likewise.
19737
19738         trunc: Implement result sign according to IEEE 754.
19739         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
19740         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
19741         * tests/test-trunc2.c: Include minus-zero.h.
19742         (MINUS_ZERO): New macro.
19743         (trunc_reference): Keep in sync with lib/trunc.c.
19744         * tests/test-truncf2.c: Include minus-zero.h.
19745         (MINUS_ZERO): New macro.
19746         (truncf_reference): Keep in sync with lib/trunc.c.
19747         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
19748         * tests/test-trunc-ieee.c (main): Likewise.
19749         * tests/test-truncl-ieee.c (main): Likewise.
19750
19751         ceil: Implement result sign according to IEEE 754.
19752         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
19753         (FUNC): Return -0.0 for -1 < x < 0.
19754         * tests/test-ceil2.c: Include minus-zero.h.
19755         (MINUS_ZERO): New macro.
19756         (ceil_reference): Keep in sync with lib/ceil.c.
19757         * tests/test-ceilf2.c: Include minus-zero.h.
19758         (MINUS_ZERO): New macro.
19759         (ceilf_reference): Keep in sync with lib/ceil.c.
19760         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
19761         * tests/test-ceil-ieee.c (main): Likewise.
19762         * tests/test-ceill-ieee.c (main): Likewise.
19763
19764         floor: Implement result sign according to IEEE 754.
19765         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
19766         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
19767         * tests/test-floorf2.c (floorf_reference): Likewise.
19768         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
19769         * tests/test-floor-ieee.c (main): Likewise.
19770         * tests/test-floorl-ieee.c (main): Likewise.
19771
19772 2010-12-22  Bruno Haible  <bruno@clisp.org>
19773
19774         getaddrinfo: Update doc.
19775         * doc/posix-functions/gai_strerror.texi: Return type is also different
19776         on AIX and HP-UX.
19777
19778 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19779
19780         getaddrinfo, inet_ntop: Update doc for Solaris.
19781         * doc/posix-functions/gai_strerror.texi: Return type is also an
19782         issue on Solaris 9 and earlier.
19783         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
19784         on Solaris 10 and earlier.
19785
19786 2010-12-21  Bruno Haible  <bruno@clisp.org>
19787
19788         New module 'roundl-ieee'.
19789         * modules/roundl-ieee: New file.
19790         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
19791         test whether roundl works according to ISO C 99 with IEC 60559.
19792         * m4/roundl-ieee.m4: New file.
19793         * modules/roundl-ieee-tests: New file.
19794         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
19795         * tests/test-roundl.c (main): Remove signbit tests.
19796         * modules/roundl-tests (Depends-on): Remove signbit.
19797         * doc/posix-functions/roundl.texi: Mention the new module.
19798
19799 2010-12-21  Bruno Haible  <bruno@clisp.org>
19800
19801         New module 'truncl-ieee'.
19802         * modules/truncl-ieee: New file.
19803         * modules/truncl-ieee-tests: New file.
19804         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
19805         * tests/test-truncl.c (main): Remove signbit tests.
19806         * modules/truncl-tests (Depends-on): Remove signbit.
19807         * doc/posix-functions/truncl.texi: Mention the new module.
19808
19809 2010-12-21  Bruno Haible  <bruno@clisp.org>
19810
19811         New module 'ceill-ieee'.
19812         * modules/ceill-ieee: New file.
19813         * modules/ceill-ieee-tests: New file.
19814         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
19815         * tests/test-ceill.c (main): Remove signbit tests.
19816         * modules/ceill-tests (Depends-on): Remove signbit.
19817         * doc/posix-functions/ceill.texi: Mention the new module.
19818
19819 2010-12-21  Bruno Haible  <bruno@clisp.org>
19820
19821         New module 'floorl-ieee'.
19822         * modules/floorl-ieee: New file.
19823         * modules/floorl-ieee-tests: New file.
19824         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
19825         * tests/test-floorl.c (main): Remove signbit tests.
19826         * modules/floorl-tests (Depends-on): Remove signbit.
19827         * doc/posix-functions/floorl.texi: Mention the new module.
19828
19829 2010-12-21  Bruno Haible  <bruno@clisp.org>
19830
19831         New module 'round-ieee'.
19832         * modules/round-ieee: New file.
19833         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
19834         whether round works according to ISO C 99 with IEC 60559.
19835         * m4/round-ieee.m4: New file.
19836         * modules/round-ieee-tests: New file.
19837         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
19838         * tests/test-round1.c (main): Remove signbit tests.
19839         * modules/round-tests (Depends-on): Remove 'signbit'.
19840         * doc/posix-functions/round.texi: Mention the new module.
19841
19842 2010-12-21  Bruno Haible  <bruno@clisp.org>
19843
19844         New module 'trunc-ieee'.
19845         * modules/trunc-ieee: New file.
19846         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
19847         whether trunc works according to ISO C 99 with IEC 60559.
19848         * m4/trunc-ieee.m4: New file.
19849         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
19850         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
19851         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
19852         * modules/trunc-ieee-tests: New file.
19853         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
19854         * tests/test-trunc1.c (main): Remove signbit tests.
19855         * modules/trunc-tests (Depends-on): Remove 'signbit'.
19856         * doc/posix-functions/trunc.texi: Mention the new module.
19857
19858 2010-12-21  Bruno Haible  <bruno@clisp.org>
19859
19860         New module 'ceil-ieee'.
19861         * modules/ceil-ieee: New file.
19862         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
19863         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
19864         ISO C 99 with IEC 60559.
19865         * m4/ceil-ieee.m4: New file.
19866         * modules/ceil (Files): Add lib/ceil.c.
19867         (Depends-on): Add 'float'.
19868         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19869         * lib/math.in.h (ceil): New declaration.
19870         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
19871         REPLACE_CEIL.
19872         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
19873         * modules/ceil-ieee-tests: New file.
19874         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
19875         * tests/test-math-c++.cc: Check the signature of 'ceil'.
19876         * doc/posix-functions/ceil.texi: Mention the new module.
19877
19878 2010-12-21  Bruno Haible  <bruno@clisp.org>
19879
19880         New module 'floor-ieee'.
19881         * modules/floor-ieee: New file.
19882         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
19883         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
19884         ISO C 99 with IEC 60559.
19885         * m4/floor-ieee.m4: New file.
19886         * modules/floor (Files): Add lib/floor.c.
19887         (Depends-on): Add 'float'.
19888         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19889         * lib/math.in.h (floor): New declaration.
19890         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
19891         REPLACE_FLOOR.
19892         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
19893         * modules/floor-ieee-tests: New file.
19894         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
19895         * tests/test-math-c++.cc: Check the signature of 'floor'.
19896         * doc/posix-functions/floor.texi: Mention the new module.
19897
19898 2010-12-21  Bruno Haible  <bruno@clisp.org>
19899
19900         New module 'roundf-ieee'.
19901         * modules/roundf-ieee: New file.
19902         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
19903         test whether roundf works according to ISO C 99 with IEC 60559.
19904         * m4/roundf-ieee.m4: New file.
19905         * modules/roundf-ieee-tests: New file.
19906         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
19907         * tests/test-roundf1.c (main): Remove signbit tests.
19908         * modules/roundf-tests (Depends-on): Remove 'signbit'.
19909         * doc/posix-functions/roundf.texi: Mention the new module.
19910
19911 2010-12-21  Bruno Haible  <bruno@clisp.org>
19912
19913         New module 'truncf-ieee'.
19914         * modules/truncf-ieee: New file.
19915         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
19916         test whether truncf works according to ISO C 99 with IEC 60559.
19917         * m4/truncf-ieee.m4: New file.
19918         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
19919         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
19920         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
19921         * modules/truncf-ieee-tests: New file.
19922         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
19923         * tests/test-truncf1.c (main): Remove signbit tests.
19924         * modules/truncf-tests (Depends-on): Remove 'signbit'.
19925         * doc/posix-functions/truncf.texi: Mention the new module.
19926
19927 2010-12-21  Bruno Haible  <bruno@clisp.org>
19928
19929         New module 'ceilf-ieee'.
19930         * modules/ceilf-ieee: New file.
19931         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
19932         test whether ceilf works according to ISO C 99 with IEC 60559.
19933         * m4/ceilf-ieee.m4: New file.
19934         * modules/ceilf-ieee-tests: New file.
19935         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
19936         * tests/test-ceilf1.c (main): Remove signbit tests.
19937         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
19938         * doc/posix-functions/ceilf.texi: Mention the new module.
19939
19940 2010-12-21  Bruno Haible  <bruno@clisp.org>
19941
19942         New module 'floorf-ieee'.
19943         * modules/floorf-ieee: New file.
19944         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
19945         test whether floorf works according to ISO C 99 with IEC 60559.
19946         * m4/floorf-ieee.m4: New file.
19947         * modules/floorf-ieee-tests: New file.
19948         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
19949         * tests/test-floorf1.c (main): Remove signbit tests.
19950         * modules/floorf-tests (Depends-on): Remove 'signbit'.
19951         * doc/posix-functions/floorf.texi: Mention the new module.
19952
19953 2010-12-21  Bruno Haible  <bruno@clisp.org>
19954
19955         Support for minus zero in autoconf macros.
19956         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
19957         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
19958         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
19959         * tests/minus-zero.h: Update comments.
19960
19961 2010-12-21  Bruno Haible  <bruno@clisp.org>
19962
19963         Tests for module 'ceil'.
19964         * modules/ceil-tests: New file.
19965         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
19966         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
19967
19968 2010-12-21  Bruno Haible  <bruno@clisp.org>
19969
19970         Tests for module 'floor'.
19971         * modules/floor-tests: New file.
19972         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
19973         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
19974
19975 2010-12-21  Bruno Haible  <bruno@clisp.org>
19976
19977         math: Fix indentation.
19978         * lib/math.in.h (floorf): Fix indentation.
19979
19980 2010-12-21  Bruno Haible  <bruno@clisp.org>
19981
19982         Fix cross-compilation guesses on Solaris.
19983         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
19984         not match "solaris2.10".
19985         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19986         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
19987         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
19988
19989 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
19990
19991         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
19992         This fixes a problem observed with the latest coreutils snapshot
19993         that caused a test to fail on Solaris 8.  src/csplit.c's call
19994         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
19995         earlier, instead of returning the number of bytes that would have
19996         been generated; this causes csplit to incorrectly report memory
19997         exhaustion.
19998         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
19999         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
20000         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
20001         comments to match.
20002         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
20003         Fix typo in matching older versions of Solaris: "solaris2.10"
20004         is matched by the shell pattern "solaris2.[0-9]*".  This matters
20005         only for guessing while cross-compiling.
20006         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
20007
20008 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
20009
20010         ftoastr: fix comment again
20011         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
20012         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
20013         Also, simplify example a bit by using flags = 0.
20014
20015 2010-12-20  Bruno Haible  <bruno@clisp.org>
20016
20017         round*, trunc*: Update documentation regarding glibc.
20018         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
20019         * doc/posix-functions/round.texi: Likewise.
20020         * doc/posix-functions/roundl.texi: Likewise.
20021         * doc/posix-functions/truncf.texi: Likewise.
20022         * doc/posix-functions/trunc.texi: Likewise.
20023         * doc/posix-functions/truncl.texi: Likewise.
20024
20025 2010-12-20  Bruno Haible  <bruno@clisp.org>
20026
20027         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
20028         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
20029         * doc/posix-functions/round.texi: Likewise.
20030         * doc/posix-functions/roundl.texi: Likewise.
20031
20032 2010-12-20  Bruno Haible  <bruno@clisp.org>
20033
20034         ttyname_r: Add missing declaration on HP-UX 11.
20035         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
20036         HAVE_TTYNAME_R.
20037         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
20038         declared. Set HAVE_TTYNAME_R always.
20039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20040         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
20041         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
20042         HAVE_TTYNAME_R.
20043         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
20044
20045 2010-12-20  Bruno Haible  <bruno@clisp.org>
20046
20047         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
20048         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
20049         * doc/posix-functions/getlogin_r.texi: Likewise.
20050         * tests/test-getlogin.c: Include <errno.h>.
20051         (main): Avoid test failure on HP-UX 11.11.
20052         * tests/test-getlogin_r.c (main): Likewise.
20053
20054 2010-12-20  Bruno Haible  <bruno@clisp.org>
20055
20056         getlogin_r: Add missing declaration on HP-UX 11.
20057         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
20058         declared also when it exists as a function.
20059         * doc/posix-functions/getlogin_r.texi: Document this workaround.
20060
20061 2010-12-20  Bruno Haible  <bruno@clisp.org>
20062
20063         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
20064         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
20065         through wcrtomb.
20066
20067 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
20068
20069         ftoastr: fix comment
20070         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
20071         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
20072
20073 2010-12-19  Bruno Haible  <bruno@clisp.org>
20074
20075         isnan: Ensure it is a macro.
20076         * lib/math.in.h (isnan): Define as a macro if not already a macro.
20077         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
20078         Solaris.
20079
20080 2010-12-19  Bruno Haible  <bruno@clisp.org>
20081
20082         ldexpl test: Fix link error on OSF/1 5.1.
20083         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
20084
20085 2010-12-19  Bruno Haible  <bruno@clisp.org>
20086
20087         wctype: Make it work in C++ mode on OSF/1 5.1.
20088         * lib/wctype.in.h (iswblank): Declare but not define here.
20089         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
20090         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
20091         * modules/wctype (Files): Add lib/iswblank.c.
20092
20093 2010-12-19  Bruno Haible  <bruno@clisp.org>
20094
20095         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
20096         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
20097         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
20098
20099 2010-12-19  Bruno Haible  <bruno@clisp.org>
20100
20101         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
20102         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
20103         _POSIX_PII_SOCKET.
20104         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
20105         * doc/posix-functions/recvfrom.texi: Likewise.
20106         * doc/posix-functions/send.texi: Likewise.
20107         * doc/posix-functions/sendto.texi: Likewise.
20108
20109 2010-12-19  Bruno Haible  <bruno@clisp.org>
20110
20111         tcgetsid: Add missing declaration on OSF/1 5.1.
20112         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
20113         HAVE_TCGETSID.
20114         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
20115         Don't set HAVE_TCGETSID.
20116         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
20117         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
20118         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
20119         HAVE_TCGETSID.
20120         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
20121
20122 2010-12-19  Bruno Haible  <bruno@clisp.org>
20123
20124         stdio: Fix problem with popen() declaration on OSF/1 5.1.
20125         * lib/stdio.in.h: During the include_next statement, let recursive
20126         includes of this file include only the system header file.
20127
20128 2010-12-19  Bruno Haible  <bruno@clisp.org>
20129
20130         iconv_open: Fix regression from 2010-12-04.
20131         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
20132         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
20133
20134 2010-12-19  Bruno Haible  <bruno@clisp.org>
20135
20136         stdbool test: Avoid a gcc warning.
20137         * tests/test-stdbool.c (main): Fail if e1 is false.
20138         Reported by Jim Meyering.
20139
20140 2010-12-19  Jim Meyering  <meyering@redhat.com>
20141
20142         setenv: restore to working order
20143         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
20144         mistakenly removed.
20145         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
20146         HAVE_SETENV.
20147         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
20148         HAVE_SETENV.
20149
20150 2010-12-19  Bruno Haible  <bruno@clisp.org>
20151
20152         Document some different function declarations on OSF/1 5.1.
20153         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
20154         * doc/posix-functions/inet_ntop.texi: Likewise.
20155         * doc/posix-functions/gethostname.texi: Likewise.
20156         * lib/unistd.in.h (gethostname): Update comment.
20157
20158 2010-12-19  Bruno Haible  <bruno@clisp.org>
20159
20160         doc: Mention vasprintf-posix module.
20161         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
20162         the 'vasprintf-posix' module.
20163         * doc/glibc-functions/vasprintf.texi: Likewise.
20164
20165 2010-12-19  Bruno Haible  <bruno@clisp.org>
20166
20167         unsetenv: Add missing declaration on OSF/1 5.1.
20168         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
20169         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
20170         Don't set HAVE_UNSETENV. In the test program, set _BSD.
20171         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
20172         not HAVE_UNSETENV.
20173         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
20174         HAVE_UNSETENV.
20175         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
20176
20177 2010-12-19  Bruno Haible  <bruno@clisp.org>
20178
20179         setenv: Add missing declaration on OSF/1 5.1.
20180         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
20181         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
20182         declared. Don't set HAVE_SETENV.
20183         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
20184         not HAVE_SETENV.
20185         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
20186         HAVE_SETENV.
20187         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
20188
20189 2010-12-19  Bruno Haible  <bruno@clisp.org>
20190
20191         nl_langinfo tests: Avoid gcc warning.
20192         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
20193
20194 2010-12-19  Bruno Haible  <bruno@clisp.org>
20195
20196         mknod: Avoid error in C++ mode on OSF/1 with GCC.
20197         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
20198         _GL_CXXALIAS_SYS.
20199
20200 2010-12-19  Bruno Haible  <bruno@clisp.org>
20201
20202         stdbool: Relax test.
20203         * tests/test-stdbool.c (e): Don't require that casts from a variable's
20204         address to 'bool' work in static initializer, for compilers other than
20205         GCC.
20206
20207 2010-12-19  Bruno Haible  <bruno@clisp.org>
20208
20209         ftello: Add missing declaration on OSF/1 5.1.
20210         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
20211         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
20212         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
20213         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
20214         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
20215
20216 2010-12-19  Bruno Haible  <bruno@clisp.org>
20217
20218         fseeko: Add missing declaration on OSF/1 5.1.
20219         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
20220         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
20221         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
20222         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
20223         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
20224
20225 2010-12-19  Bruno Haible  <bruno@clisp.org>
20226
20227         fchdir: Add missing declaration on OSF/1 5.1.
20228         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
20229         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
20230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
20231         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
20232         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
20233
20234 2010-12-19  Bruno Haible  <bruno@clisp.org>
20235
20236         relocatable-prog-wrapper: Separate from relocatable-prog.
20237         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
20238         uninstall-relocwrapper rule here.
20239         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
20240         Reported by Ian Beckwith <ianb@erislabs.net>.
20241
20242 2010-12-19  Bruno Haible  <bruno@clisp.org>
20243
20244         unistr/u8-mbsnlen: Add missing dependency.
20245         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
20246         Reported by Ian Beckwith <ianb@erislabs.net>.
20247
20248 2010-12-19  Bruno Haible  <bruno@clisp.org>
20249
20250         iconv: Make it possible again to use this module without 'iconv-h'.
20251         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
20252         if it is not defined.
20253         Reported by Ian Beckwith <ianb@erislabs.net>.
20254
20255 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20256
20257         acl: port to Solaris 8 when copying from tmpfs to ufs
20258         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
20259         error number.  Problem observed on Solaris 8 with latest
20260         coreutils, with "mv A B", where A is on a tmpfs file system and B
20261         is on a ufs file system.  This caused coreutils' mv/part-symlink
20262         test to fail.
20263
20264         tests: set fail=0 at start
20265         * tests/init.sh (setup_): Move fail=0 initialization here ...
20266         (mktempd_): ... from here, so that tests can rely on fail being
20267         set to 0 initially.  This fixes a problem in coreutils; see:
20268         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
20269
20270 2010-12-18  Bruno Haible  <bruno@clisp.org>
20271
20272         memmem-simple: Stylistic changes.
20273         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
20274         Fix preprocessor directive indentation.
20275
20276 2010-12-15  Pádraig Brady <P@draigBrady.com>
20277
20278         memmem, memmem-simple: reorganize and expand empty needle check
20279         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
20280         functional checks to memmem-simple so that one has a fully functional
20281         memmem by using just this module.
20282         Restrict the performance only check to the memmem module.
20283         Also expand the empty needle check to ensure the correct
20284         pointer is returned, not just a non NULL pointer.
20285         * doc/glibc-functions/memmem.texi: Rearrange the portability
20286         documentation to correlate with the rearranged checks.
20287         Clarify exactly how the memmem and memmem-simple modules
20288         relate to each other.
20289
20290 2010-12-15  Pádraig Brady <P@draigBrady.com>
20291             Bruno Haible  <bruno@clisp.org>
20292
20293         Improve cross-compilation guesses for uClibc.
20294         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
20295         that uClibc does not have the glibc bug.
20296         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
20297         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
20298
20299 2010-12-14  Eric Blake  <eblake@redhat.com>
20300
20301         configmake: provide fallbacks for oldest supported autotools
20302         * m4/configmake.m4: New file.
20303         * modules/configmake (Files): Ship it.
20304         (configure.ac): Use it to guarantee fallbacks.
20305
20306 2010-12-13  Pádraig Brady <P@draigBrady.com>
20307
20308         read-file: Improve handling of large files
20309         * lib/read-file.c (fread_file): Minimize realloc()s
20310         for regular files, and better manage sizes around SIZE_MAX.
20311
20312 2010-12-13  Eric Blake  <eblake@redhat.com>
20313
20314         cloexec, fcntl: relax license
20315         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
20316         consent from all contributors.
20317         * modules/fcntl (License): Likewise.
20318
20319 2010-12-10  Bruno Haible  <bruno@clisp.org>
20320
20321         Tests for module 'pipe-posix'.
20322         * modules/pipe-posix-tests: New file.
20323         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
20324
20325 2010-12-10  Bruno Haible  <bruno@clisp.org>
20326
20327         pipe-posix: Make it work in C++ mode.
20328         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
20329         (pipe): Use common idiom, not a macro definition.
20330         * lib/pipe.c: New file.
20331         * m4/pipe.m4: New file.
20332         * modules/pipe-posix (Description): Enhance.
20333         (Files): Add lib/pipe.c, m4/pipe.m4.
20334         (configure.ac): Invoke gl_FUNC_PIPE.
20335         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
20336         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
20337         * tests/test-unistd-c++.cc: Check the signature of pipe.
20338
20339 2010-12-10  Bruno Haible  <bruno@clisp.org>
20340
20341         Rename module 'pipe' to 'spawn-pipe'.
20342         * modules/spawn-pipe: New file, renamed from modules/pipe.
20343         (Files, configure.ac, Makefile.am): Update.
20344         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
20345         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
20346         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
20347         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
20348         "spawn-pipe.h" instead of "pipe.h".
20349         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
20350         to gl_SPAWN_PIPE.
20351         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
20352         (Files, Makefile.am): Update.
20353         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
20354         Update.
20355         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
20356         Include "spawn-pipe.h" instead of "pipe.h".
20357         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
20358         * lib/javacomp.c: Likewise.
20359         * lib/javaversion.c: Likewise.
20360         * lib/pipe-filter-gi.c: Likewise.
20361         * lib/pipe-filter-ii.c: Likewise.
20362         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
20363         * modules/javacomp (Depends-on): Likewise.
20364         * modules/javaversion (Depends-on): Likewise.
20365         * modules/pipe-filter-gi (Depends-on): Likewise.
20366         * modules/pipe-filter-ii (Depends-on): Likewise.
20367         * MODULES.html.sh (Executing programs): Update.
20368         * NEWS: Mention the change.
20369
20370 2010-12-10  Eric Blake  <eblake@redhat.com>
20371
20372         pipe-posix: new module
20373         * modules/pipe-posix: New file.
20374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
20375         (gl_UNISTD_H): Check for declaration.
20376         * modules/unistd (Makefile.am): Substitute it.
20377         * lib/unistd.in.h (pipe): Provide it for mingw.
20378         * doc/posix-functions/pipe.texi (pipe): Update documentation.
20379         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
20380
20381 2010-12-07  Bruno Haible  <bruno@clisp.org>
20382
20383         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
20384         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
20385         u8_strcmp_gnu.
20386         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
20387
20388 2010-12-06  Bruno Haible  <bruno@clisp.org>
20389
20390         Update internal documentation.
20391         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
20392
20393 2010-12-04  Bruno Haible  <bruno@clisp.org>
20394
20395         Put more information about failed tests into the test return codes.
20396         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
20397         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
20398         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
20399         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
20400         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
20401         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
20402         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20403         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20404         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
20405         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20406         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
20407         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
20408         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
20409         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20410         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
20411         returns a bit mask.
20412         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
20413         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
20414         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
20415         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
20416         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20417         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20418         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20419         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
20420         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20421         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20422         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20423         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20424         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20425         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20426         * m4/link.m4 (gl_FUNC_LINK): Likewise.
20427         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
20428         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
20429         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
20430         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20431         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
20432         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20433         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
20434         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
20435         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20436         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20437         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
20438         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
20439         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20440         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20441         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
20442         gl_PRINTF_PRECISION): Likewise.
20443         * m4/regex.m4 (gl_REGEX): Likewise.
20444         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
20445         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20446         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
20447         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20448         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20449         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20450         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
20451         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
20452         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20453         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20454         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
20455         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
20456         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20457         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
20458         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20459         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20460         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
20461         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20462         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20463         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
20464         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
20465         enumerated value.
20466         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
20467
20468 2010-12-04  Bruno Haible  <bruno@clisp.org>
20469
20470         Update for Solaris 11 2010-11.
20471         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
20472         Express, released in November 2010.
20473
20474 2010-12-04  Bruno Haible  <bruno@clisp.org>
20475
20476         nproc: Relax license.
20477         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
20478         and Paul Eggert.
20479         Requested by Ludovic Courtès <ludo@gnu.org>.
20480
20481 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
20482
20483         utimecmp: fine-grained src to nearby coarse-grained dest
20484
20485         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
20486         and the source is on a file system with higher-resolution time
20487         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
20488         not work, and the time stamps are close together, the algorithm to
20489         determine the exact resolution from the read-back mtime was buggy:
20490         it had a "!=" where it should have had an "==".  This bug has been
20491         in the code ever since it was introduced to gnulib.
20492         Problem reported by Dan Jacobson in
20493         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
20494
20495 2010-11-30  Bruno Haible  <bruno@clisp.org>
20496
20497         strerror_r-posix: Fix autoconf test.
20498         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
20499
20500 2010-11-28  Bruno Haible  <bruno@clisp.org>
20501             Paul Eggert  <eggert@cs.ucla.edu>
20502
20503         Tests for module 'getdomainname'.
20504         * modules/getdomainname-tests: New file.
20505         * tests/test-getdomainname.c: New file, based on
20506         tests/test-gethostname.c.
20507
20508 2010-11-28  Bruno Haible  <bruno@clisp.org>
20509             Paul Eggert  <eggert@cs.ucla.edu>
20510
20511         getdomainname: Use the system function when possible.
20512         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
20513         (getdomainname): Replace if needed. Provide the declaration if it is
20514         missing. Don't use _GL_CXXALIAS_SYS_CAST.
20515         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
20516         (getdomainname): When the system has getdomainname, call the system
20517         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
20518         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20519         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
20520         found in libnsl. Look for the declaration also in <netdb.h>. Replace
20521         the function if its second argument is of type 'int' or if it is found
20522         in libnsl.
20523         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
20524         <sys/systeminfo.h> and sysinfo().
20525         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
20526         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20527         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
20528         HAVE_GETDOMAINNAME.
20529         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
20530         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
20531         * doc/glibc-functions/getdomainname.texi: Document the problems with
20532         the getdomainname declaration.
20533
20534 2010-11-28  Bruno Haible  <bruno@clisp.org>
20535
20536         sys_socket: Ensure ss_family field on AIX.
20537         * lib/sys_socket.in.h (ss_family): New macro definition.
20538         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
20539         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
20540         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20541         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
20542         * modules/sys_socket (Makefile.am): Substitute
20543         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
20544         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
20545
20546 2010-11-27  Bruno Haible  <bruno@clisp.org>
20547
20548         readline: Improve configure output.
20549         * m4/readline.m4 (gl_FUNC_READLINE): Make the
20550         "checking for readline..." result understandable.
20551
20552 2010-11-27  Bruno Haible  <bruno@clisp.org>
20553
20554         *printf-posix: Detect a bug on Solaris 10/x86.
20555         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
20556         for floating-point output.
20557         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
20558         directive.
20559         * tests/test-snprintf-posix.h (test_function): Likewise.
20560         * tests/test-sprintf-posix.h (test_function): Likewise.
20561         * tests/test-vasprintf-posix.c (test_function): Likewise.
20562         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
20563         * doc/posix-functions/printf.texi: Likewise.
20564         * doc/posix-functions/snprintf.texi: Likewise.
20565         * doc/posix-functions/sprintf.texi: Likewise.
20566         * doc/posix-functions/vfprintf.texi: Likewise.
20567         * doc/posix-functions/vprintf.texi: Likewise.
20568         * doc/posix-functions/vsnprintf.texi: Likewise.
20569         * doc/posix-functions/vsprintf.texi: Likewise.
20570         * doc/glibc-functions/obstack_printf.texi: Likewise.
20571         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
20572
20573 2010-11-27  Bruno Haible  <bruno@clisp.org>
20574
20575         Fix link error when module libunistring-optional is in use.
20576         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
20577         * modules/striconveha-tests (Makefile.am): Likewise.
20578
20579 2010-11-27  Bruno Haible  <bruno@clisp.org>
20580
20581         regex: Mention link dependencies.
20582         * modules/regex (Link): New section.
20583         * modules/rpmatch (Link): Likewise.
20584         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
20585
20586 2010-11-27  Bruno Haible  <bruno@clisp.org>
20587
20588         ftoastr: Fix compilation error on Solaris.
20589         * lib/ftoastr.c: Include <config.h>.
20590
20591 2010-11-27  Bruno Haible  <bruno@clisp.org>
20592
20593         getloadavg: Update documentation.
20594         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
20595
20596 2010-11-27  Bruno Haible  <bruno@clisp.org>
20597
20598         sys_socket: Fix test whether the functions are declared.
20599         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
20600         not <sys/select.h>.
20601
20602 2010-11-27  Bruno Haible  <bruno@clisp.org>
20603
20604         getpass: Make sure to get system declaration on some platforms.
20605         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
20606         gl_USE_SYSTEM_EXTENSIONS.
20607         * modules/getpass (Depends-on): Add extensions.
20608
20609 2010-11-26  Bruno Haible  <bruno@clisp.org>
20610
20611         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
20612         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
20613         'iconv' module is present.
20614         (ICONV_CONST): New macro.
20615         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
20616         ICONV_CONST.
20617         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
20618         set ICONV_CONST.
20619         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
20620         here.
20621         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
20622         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
20623         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
20624         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
20625         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
20626         present.
20627
20628 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
20629
20630         ftoastr: comment fix
20631         * lib/ftoastr.c: "little" -> "little or no" in comment
20632
20633 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
20634
20635         stdint: port to GCC 4.3 + OSX + Octave
20636         On this platform, stdint.h is buggy and defines int64_t to long
20637         long int.  The replacement defined it to long int, causing
20638         problems with C++ style name mangling.  Instead, trust the system
20639         definition if INT64_MAX is defined, and likewise for the unsigned
20640         variant.   Problem reported by Jarno Rajahalme in
20641         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
20642         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
20643         and don't mess with int64_t and INT64_MAX in this case.
20644         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
20645
20646 2010-11-24  Bruno Haible  <bruno@clisp.org>
20647
20648         doc: Corrections regarding MacOS X 10.4 and 10.5.
20649         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
20650         MacOS X.
20651         Reported by Simon Josefsson.
20652
20653 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
20654
20655         Uninstall ".bin" files installed by relocwrapper.
20656         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
20657         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
20658         unless it is already there.
20659
20660 2010-11-21  Bruno Haible  <bruno@clisp.org>
20661
20662         Update for NetBSD 5.0.
20663         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
20664         NetBSD; the test fails on NetBSD 5.0.
20665         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
20666         about NetBSD.
20667
20668 2010-11-21  Bruno Haible  <bruno@clisp.org>
20669
20670         Update for HP-UX 11.23 and HP-UX 11.31.
20671         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
20672         HP-UX.
20673
20674 2010-11-21  Bruno Haible  <bruno@clisp.org>
20675
20676         Update for MacOS X 10.5.
20677         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
20678         MacOS X; the test fails on MacOS X 10.5.8.
20679         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
20680         about MacOS X.
20681
20682 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
20683
20684         bootstrap: add bootstrap_sync option.
20685         See discussion at
20686         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
20687         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
20688         * build-aux/bootstrap: Accept --bootstrap-sync to update
20689         bootstrap if it is not identical to the local gnulib's
20690         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
20691         enable this by default.  Accept --no-bootstrap-sync to disable
20692         it.
20693
20694 2010-11-20  Bruno Haible  <bruno@clisp.org>
20695
20696         Ensure that <features.h> is included before __GLIBC__ is tested.
20697         * lib/printf-parse.h: Include <features.h>.
20698         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
20699         Reported by Mike Frysinger <vapier@gentoo.org>.
20700
20701         Ensure that <features.h> is included before __GLIBC__ is tested.
20702         * lib/wchar.in.h: Include <features.h>.
20703         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
20704         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
20705         Reported by Mike Frysinger <vapier@gentoo.org>.
20706
20707         Ensure that <features.h> is included before __GLIBC__ is tested.
20708         * lib/arpa_inet.in.h: Include <features.h>.
20709         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
20710         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
20711         Reported by Mike Frysinger <vapier@gentoo.org>.
20712
20713         Ensure that <features.h> is included before __GLIBC__ is tested.
20714         * build-aux/link-warning.h: Include <features.h>.
20715         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
20716         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
20717         Reported by Mike Frysinger <vapier@gentoo.org>.
20718
20719         Ensure that <features.h> is included before __GLIBC__ is tested.
20720         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
20721         Reported by Mike Frysinger <vapier@gentoo.org>.
20722
20723 2010-11-20  Bruno Haible  <bruno@clisp.org>
20724
20725         memmem: Fix autoconf test.
20726         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
20727
20728 2010-11-20  Bruno Haible  <bruno@clisp.org>
20729
20730         Port to uClibc.
20731         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
20732         * lib/fcntl.in.h: Likewise.
20733         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
20734         * lib/mbrtowc.c (mbrtowc): Likewise.
20735         * lib/relocatable.c (find_shared_library_fullname): Likewise.
20736         * lib/strerror_r.c: Likewise.
20737         * lib/unistr/u8-strnlen.c: Likewise.
20738         * lib/vasnprintf.c (decimal_point_char): Likewise.
20739         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
20740         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20741         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
20742         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
20743         * tests/test-sigaction.c (handler, main): Likewise.
20744         * lib/freading.h: Treat uClibc like a non-glibc platform.
20745         * lib/freading.c: Likewise.
20746         * lib/gettext.h: Likewise.
20747         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
20748         Likewise.
20749         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
20750         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
20751         * lib/propername.c (proper_name_utf8): Likewise.
20752         * lib/spawn.in.h: Likewise.
20753         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
20754         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
20755         mem_cd_iconveh_internal): Likewise.
20756         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
20757         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20758         strstr, strcasestr): Likewise.
20759         * lib/unicodeio.c (unicode_to_mb): Likewise.
20760         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
20761         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
20762         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
20763         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
20764         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
20765         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
20766         * lib/unistr/u8-stpncpy.c: Likewise.
20767         * lib/vasnprintf.c (VASNPRINTF): Likewise.
20768         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
20769         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
20770         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20771         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
20772         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
20773         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
20774         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
20775         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
20776         Likewise.
20777         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20778         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20779         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
20780         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20781         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
20782         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20783         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20784         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20785         * tests/test-getopt.h (OPTIND_MIN): Likewise.
20786         * tests/test-striconveha.c (main): Likewise.
20787         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20788         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
20789         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
20790         * doc/posix-functions/getline.texi: Likewise.
20791         Reported by Mike Frysinger <vapier@gentoo.org>.
20792
20793 2010-11-20  Bruno Haible  <bruno@clisp.org>
20794
20795         nproc: Fix condition.
20796         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
20797         HAVE_PTHREAD_AFFINITY_NP.
20798
20799 2010-11-20  Bruno Haible  <bruno@clisp.org>
20800
20801         Fix a comment.
20802         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
20803
20804 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
20805
20806         ftoastr: don't assume snprintf
20807         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
20808         Implement a subset of snprintf here, by using sprintf safely.
20809         * modules/ftoastr (Depends-on): Remove snprintf.
20810
20811 2010-11-19  Jim Meyering  <meyering@redhat.com>
20812
20813         test-rename.h: fix compilation failure
20814         * tests/test-rename.h (test_rename): Add omitted "}".
20815
20816 2010-11-17  Jim Meyering  <meyering@redhat.com>
20817
20818         maint.mk: add a URL discussing the no-@acronym policy
20819         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
20820
20821 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
20822
20823         ftoastr: depend on snprintf, improve comments
20824         * lib/ftoastr.c: Also mention Loitsch's draft.
20825         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
20826         needed in the current implementation, but it might simplify
20827         speeding up the code later.
20828         * modules/ftoastr: Depend on snprintf; this improves portability.
20829         Suggested by Bruno Haible in the same email.
20830
20831         ftoastr: port to hosts lacking strtof and strtold
20832         Problem reported by Bruno Haible in
20833         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
20834         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
20835         environment and strtold (and presumably strtof) are not available.
20836         * modules/ftoastr (Files): Add m4/c-strtod.m4.
20837         (configure.ac): Require gl_C99_STRTOLD.
20838
20839 2010-11-18  Bruno Haible  <bruno@clisp.org>
20840
20841         c-strtold: Avoid link error on AIX 7.
20842         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
20843         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
20844         (gl_C_STRTOLD): Test whether strtold_l exists.
20845         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20846
20847 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
20848
20849         intprops: new macro INT_BITS_STRLEN_BOUND
20850         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
20851         ftoastr.h.  This exposes an internal of intprops.h that was formerly
20852         not exposed.  Also, it uses a slightly tighter bound than before;
20853         though this makes no practical difference, we might as well be as
20854         tight as we easily can.
20855
20856         ftoastr: new module, for lossless conversion of floats to short strings
20857         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
20858         * modules/ftoastr: New files.
20859
20860 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
20861
20862         bootstrap: port to Solaris sed
20863         * build-aux/bootstrap (get_version): Port to Solaris sed.
20864         See Ralf Wildenhues's note in
20865         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
20866
20867 2010-11-14  Jim Meyering  <meyering@redhat.com>
20868
20869         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
20870         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
20871         and move definition closer to sole use.
20872
20873 2010-11-13  Jim Meyering  <meyering@redhat.com>
20874
20875         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
20876         Now we require at least autoconf-2.59, which means the work-around
20877         is no longer needed.
20878         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
20879         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20880         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
20881         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
20882         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20883
20884 2010-11-13  Bruno Haible  <bruno@clisp.org>
20885
20886         rename, renameat: Avoid test failures at NFS mounted locations.
20887         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
20888         functions.
20889         (test_rename): Use assert_nonexistent.
20890         * tests/test-rename.c: Include <dirent.h>.
20891         * tests/test-renameat.c: Likewise.
20892         Reported by Gary V. Vaughan <gary@gnu.org>.
20893
20894         rename, renameat: Document Linux bug with NFS
20895         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
20896         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
20897         * doc/posix-functions/renameat.texi: Likewise.
20898         Suggested by Eric Blake.
20899
20900 2010-11-13  Bruno Haible  <bruno@clisp.org>
20901
20902         rename test: Add comments.
20903         * tests/test-rename.h (test_rename): Add structure and comments.
20904
20905 2010-11-13  Eric Blake  <eblake@redhat.com>
20906
20907         maintainer-makefile: cover a few more files
20908         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
20909         scripts generated within C files, for libvirt.
20910
20911 2010-11-13  Bruno Haible  <bruno@clisp.org>
20912
20913         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
20914         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
20915         character, return the number of bytes that belong together, not always
20916         1.
20917         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
20918         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
20919         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
20920         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
20921         number of bytes of an invalid character.
20922         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
20923         (main): Invoke it.
20924         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
20925         results.
20926         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
20927         malformed byte sequences.
20928         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
20929         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
20930         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
20931         Reported by Ben Pfaff and Paolo Bonzini.
20932
20933 2010-11-13  Bruno Haible  <bruno@clisp.org>
20934
20935         openat: Work around glibc bug with fchownat() and empty file names.
20936         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
20937         (gl_FUNC_FCHOWNAT): Invoke it.
20938         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
20939         * doc/posix-functions/fchownat.texi: Document the glibc bug.
20940         Reported by Gary V. Vaughan <gary@gnu.org>.
20941
20942 2010-11-13  Bruno Haible  <bruno@clisp.org>
20943
20944         openat: Ensure autoconf macro ordering.
20945         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
20946         gl_USE_SYSTEM_EXTENSIONS.
20947         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
20948
20949 2010-11-13  Bruno Haible  <bruno@clisp.org>
20950
20951         Update comments.
20952         * lib/unistr/u8-check.c: Update file name in comments.
20953         * lib/unistr/u8-mblen.c: Likewise.
20954         * lib/unistr/u8-prev.c: Likewise.
20955         * lib/unistr/u8-strmblen.c: Likewise.
20956         * lib/unistr/u8-strmbtouc.c: Likewise.
20957
20958 2010-11-13  Jim Meyering  <meyering@redhat.com>
20959
20960         tests: avoid test failure on Solaris 10 due to lack of PATH export
20961         * tests/test-update-copyright.sh: Don't forget to export PATH.
20962
20963         init.sh: ensure that IFS is defined, just in case...
20964         * tests/init.sh (setup_): Ensure that IFS is defined,
20965         so that saving and restoring it works as expected.  This
20966         appears to be useful at least for an old version of dash
20967         from a long time ago (RH 6).  See here for details:
20968         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
20969
20970         maint.mk: tighten "test a == b" check
20971         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
20972         test to files that contain something like #!/bin/sh.
20973         Without this, coreutils would get two false positives in
20974         the comments of C source files.
20975
20976 2010-11-12  Eric Blake  <eblake@redhat.com>
20977
20978         bootstrap: fix typo in previous attempt
20979         * build-aux/bootstrap (buildreq): Correct the grouping.
20980         Reported by Paul Eggert.
20981
20982         maintainer-makefile: prohibit test x == x
20983         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
20984         Based on a report by Matthias Bolte.
20985
20986         bootstrap: allow FreeBSD gzip
20987         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
20988         which has no '.' and goes to stderr.
20989         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
20990         Reported by Matthias Bolte.
20991
20992         maintainer-makefile: check for i18n setup
20993         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
20994         will likely work.
20995
20996 2010-11-12  Bruno Haible  <bruno@clisp.org>
20997
20998         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
20999         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
21000         * lib/nanosleep.c (nanosleep): Likewise.
21001
21002 2010-11-11  Bruno Haible  <bruno@clisp.org>
21003
21004         fcntl-h: Fix for use of C++ on glibc systems.
21005         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
21006         also on glibc systems in C++ mode.
21007         Reported by Gary V. Vaughan <gary@gnu.org>.
21008
21009 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21010
21011         mknod: avoid false failure with dash
21012         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
21013
21014 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
21015
21016         unlink: Fix "is it should" typo in diagnostic.
21017         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
21018         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
21019
21020 2010-11-11  Bruno Haible  <bruno@clisp.org>
21021
21022         Tests for module 'strerror_r-posix'.
21023         * modules/strerror_r-posix-tests: New file.
21024         * tests/test-strerror_r.c: New file.
21025         * tests/test-string-c++.cc: Check the signature of strerror_r.
21026
21027         New module 'strerror_r-posix'.
21028         * lib/string.in.h (strerror_r): New declaration.
21029         * lib/strerror_r.c: New file.
21030         * m4/strerror_r.m4: New file.
21031         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
21032         of strerror_r.
21033         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
21034         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
21035         * modules/strerror_r-posix: New file.
21036         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
21037         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
21038         * doc/posix-functions/strerror_r.texi: Mention the new module and the
21039         portability problems.
21040
21041 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
21042
21043         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
21044         line is also considered for output. Quoted function name in shell
21045         command, so temporary files for functions like MyClass::operator()
21046         are removed correctly without errors.
21047
21048 2010-11-09  Bruno Haible  <bruno@clisp.org>
21049
21050         * doc/posix-functions/strerror.texi: List more failing platforms.
21051
21052         * doc/posix-functions/strerror.texi: Add a comment.
21053
21054 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
21055
21056         fdopendir: fix bug on MacOS X when low on file descriptors
21057
21058         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
21059         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
21060         All callers changed.
21061         (fdopendir): Invoke save_cwd at the top level, not after using
21062         multiple dup() calls to use up file descriptors.  Then retry
21063         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
21064         less than the maximum number of open file descriptors, because
21065         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
21066         on Mac OS X 10.6.4 for tar 1.24
21067         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
21068         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
21069         and for tar 1.25
21070         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
21071
21072 2010-11-07  Bruno Haible  <bruno@clisp.org>
21073
21074         vasnprintf: Support I flag on glibc systems.
21075         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
21076         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
21077         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
21078         snprintf function.
21079         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
21080         glibc systems.
21081         * tests/test-vasnprintf-posix3.c: New file.
21082         * modules/vasnprintf-posix-tests (Files): Add it.
21083         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
21084
21085 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
21086
21087         [html] Fix copy/paste bug: Use unique name for compiler warnings.
21088         * MODULES.html.sh: For compiler warnings, use name
21089         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
21090
21091 2010-11-05  Eric Blake  <eblake@redhat.com>
21092
21093         ceil, floor: avoid spurious failure with icc
21094         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
21095         [denormals-as-zero] when optimizing without -mieee-fp option.
21096         * tests/test-floorf2.c (floorf_reference): Likewise.
21097         * tests/test-ceilf1.c (dummy): New function.
21098         (main): Use it to outsmart icc's optimization.
21099         * tests/test-floorf1.c (dummy, main): Likewise.
21100
21101         tests: require working signbit
21102         * modules/ceilf-tests (Depends-on): Add signbit.
21103         * modules/ceill-tests (Depends-on): Likewise.
21104         * modules/floorf-tests (Depends-on): Likewise.
21105         * modules/floorl-tests (Depends-on): Likewise.
21106         * modules/round-tests (Depends-on): Likewise.
21107         * modules/roundf-tests (Depends-on): Likewise.
21108         * modules/roundl-tests (Depends-on): Likewise.
21109         * modules/trunc-tests (Depends-on): Likewise.
21110         * modules/truncf-tests (Depends-on): Likewise.
21111         * modules/truncl-tests (Depends-on): Likewise.
21112
21113         strtod: work around icc bug
21114         * lib/strtod.c (minus_zero): Define to working value.
21115         (strtod): Use it to avoid icc bug.
21116
21117         copysign: enhance tests
21118         * modules/copysign-tests (Files): Add minus-zero.h.
21119         * tests/test-copysign.c (main): Also test zeros.
21120
21121 2010-11-04  Eric Blake  <eblake@redhat.com>
21122
21123         ceil, floor, round, trunc: enhance tests of -0
21124         * tests/test-ceilf1.c (main): Ensure correct sign of result.
21125         * tests/test-ceill.c (main): Likewise.
21126         * tests/test-floorf1.c (main): Likewise.
21127         * tests/test-floorl.c (main): Likewise.
21128         * tests/test-round1.c (main): Likewise.
21129         * tests/test-roundf1.c (main): Likewise.
21130         * tests/test-roundl.c (main): Likewise.
21131         * tests/test-trunc1.c (main): Likewise.
21132         * tests/test-truncf1.c (main): Likewise.
21133         * tests/test-truncl.c (main): Likewise.
21134
21135 2010-11-04  Eric Blake  <eblake@redhat.com>
21136
21137         frexp, tests: work around ICC bug with -zero
21138         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
21139         works with more compilers.
21140         * tests/minus-zero.h: New file.
21141         * modules/ceilf-tests (Files): Include it.
21142         * modules/ceill-tests (Files): Likewise.
21143         * modules/floorf-tests (Files): Likewise.
21144         * modules/floorl-tests (Files): Likewise.
21145         * modules/frexp-nolibm-tests (Files): Likewise.
21146         * modules/frexp-tests (Files): Likewise.
21147         * modules/frexpl-nolibm-tests (Files): Likewise.
21148         * modules/frexpl-tests (Files): Likewise.
21149         * modules/isnan-tests (Files): Likewise.
21150         * modules/isnand-nolibm-tests (Files): Likewise.
21151         * modules/isnand-tests (Files): Likewise.
21152         * modules/isnanf-nolibm-tests (Files): Likewise.
21153         * modules/isnanf-tests (Files): Likewise.
21154         * modules/isnanl-nolibm-tests (Files): Likewise.
21155         * modules/isnanl-tests (Files): Likewise.
21156         * modules/round-tests (Files): Likewise.
21157         * modules/roundf-tests (Files): Likewise.
21158         * modules/roundl-tests (Files): Likewise.
21159         * modules/ldexpl-tests (Files): Likewise.
21160         * modules/signbit-tests (Files): Likewise.
21161         * modules/snprintf-posix-tests (Files): Likewise.
21162         * modules/sprintf-posix-tests (Files): Likewise.
21163         * modules/strtod-tests (Files): Likewise.
21164         * modules/trunc-tests (Files): Likewise.
21165         * modules/truncf-tests (Files): Likewise.
21166         * modules/truncl-tests (Files): Likewise.
21167         * modules/vsnprintf-posix-tests (Files): Likewise.
21168         * modules/vsprintf-posix-tests (Files): Likewise.
21169         * modules/vasnprintf-posix-tests (Files): Likewise.
21170         * modules/vasprintf-posix-tests (Files): Likewise.
21171         * tests/test-ceilf1.c (main): Use it.
21172         * tests/test-ceill.c (main): Likewise.
21173         * tests/test-floorf1.c (main): Likewise.
21174         * tests/test-floorl.c (main): Likewise.
21175         * tests/test-frexp.c (main): Likewise.
21176         * tests/test-frexpl.c (main): Likewise.
21177         * tests/test-isnan.c (main): Likewise.
21178         * tests/test-isnand.h (main): Likewise.
21179         * tests/test-isnanf.h (main): Likewise.
21180         * tests/test-isnanl.h (main): Likewise.
21181         * tests/test-ldexpl.c (main): Likewise.
21182         * tests/test-round.c (main): Likewise.
21183         * tests/test-roundf.c (main): Likewise.
21184         * tests/test-roundl.c (main): Likewise.
21185         * tests/test-signbit.c (test_signbitf, test_signbitd)
21186         (test_signbitl): Likewise.
21187         * tests/test-snprintf-posix.h (test_function): Likewise.
21188         * tests/test-sprintf-posix.h (test_function): Likewise.
21189         * tests/test-strtod.c (main): Likewise.
21190         * tests/test-trunc1.c (main): Likewise.
21191         * tests/test-truncf1.c (main): Likewise.
21192         * tests/test-truncl.c (main): Likewise.
21193
21194         isnanl: work around icc bug
21195         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
21196
21197 2010-11-03  Eric Blake  <eblake@redhat.com>
21198
21199         tests: fix compiler warnings
21200         * tests/test-getopt.h (test_getopt): Fix condition.
21201         * tests/test-getopt_long.h (test_getopt_long): Likewise.
21202         * tests/test-pipe2.c (main): Likewise.
21203         * tests/test-quotearg-simple.c (main): Avoid icc warning.
21204
21205         utimens: fix broken m4 test
21206         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
21207
21208 2010-10-28  Bruno Haible  <bruno@clisp.org>
21209
21210         posix_spawn*, getdtablesize: Relax license.
21211         * modules/posix_spawn (License): Change to LGPLv2+.
21212         * modules/posix_spawnp (License): Likewise.
21213         * modules/posix_spawn-internal (License): Likewise.
21214         * modules/posix_spawnattr_init (License): Likewise.
21215         * modules/posix_spawnattr_getflags (License): Likewise.
21216         * modules/posix_spawnattr_setflags (License): Likewise.
21217         * modules/posix_spawnattr_getpgroup (License): Likewise.
21218         * modules/posix_spawnattr_setpgroup (License): Likewise.
21219         * modules/posix_spawnattr_getschedparam (License): Likewise.
21220         * modules/posix_spawnattr_setschedparam (License): Likewise.
21221         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
21222         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
21223         * modules/posix_spawnattr_getsigdefault (License): Likewise.
21224         * modules/posix_spawnattr_setsigdefault (License): Likewise.
21225         * modules/posix_spawnattr_getsigmask (License): Likewise.
21226         * modules/posix_spawnattr_setsigmask (License): Likewise.
21227         * modules/posix_spawnattr_destroy (License): Likewise.
21228         * modules/posix_spawn_file_actions_init (License): Likewise.
21229         * modules/posix_spawn_file_actions_addclose (License): Likewise.
21230         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
21231         * modules/posix_spawn_file_actions_addopen (License): Likewise.
21232         * modules/posix_spawn_file_actions_destroy (License): Likewise.
21233         * modules/getdtablesize (License): Likewise.
21234         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
21235
21236 2010-10-26  Bruno Haible  <bruno@clisp.org>
21237
21238         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
21239         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
21240         Cygwin and mingw.
21241         Suggested by Eric Blake.
21242
21243 2010-10-26  Bruno Haible  <bruno@clisp.org>
21244
21245         stdio: Work around compilation error due to renameat() on Solaris 10.
21246         * lib/stdio.in.h: Include <unistd.h> on Solaris.
21247         * lib/renameat.c: Don't include <unistd.h> here.
21248         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
21249         Reported by Paul Eggert and Eric Blake.
21250
21251 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
21252
21253         renameat: port to Solaris 10, which declares renameat in unistd.h
21254
21255         * lib/renameat.c: Include unistd.h before stdio.h, because
21256         Solaris 10 declares renameat in unistd.h.  Problem encountered
21257         when building GNU tar 1.24 on Solaris 10.
21258
21259 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
21260
21261         fdopendir: fix C89 compilation
21262         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
21263         compilers.
21264
21265 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
21266
21267         inttostr: simplify by removing unnecessary redundancy
21268         * lib/anytostr.c: Don't include verify.h.
21269         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
21270         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
21271         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
21272         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
21273         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
21274         Likewise.
21275         * modules/inttostr (Depends-on): Remove 'verify'.
21276
21277 2010-10-23  Bruno Haible  <bruno@clisp.org>
21278
21279         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
21280         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
21281         Reported by Eric Blake.
21282
21283 2010-10-23  Bruno Haible  <bruno@clisp.org>
21284
21285         Tests: Fix LOCALE_JA on MirBSD 10.
21286         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
21287         to an UTF-8 locale.
21288         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
21289         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21290         Reported by Eric Blake.
21291
21292 2010-10-21  Bruno Haible  <bruno@clisp.org>
21293
21294         nl_langinfo test: Avoid test failure on NetBSD 5.
21295         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
21296         Reported by Eric Blake.
21297
21298 2010-10-21  Eric Blake  <eblake@redhat.com>
21299
21300         c-stack: work around libsigsegv 2.8 bug
21301         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
21302         overflow on at least PowerPC64.
21303
21304 2010-10-17  Bruno Haible  <bruno@clisp.org>
21305
21306         userspec: Drop redundant file.
21307         * modules/userspec (Files): Remove lib/inttostr.h.
21308
21309 2010-10-17  Bruno Haible  <bruno@clisp.org>
21310
21311         nl_langinfo tests: Silence some warnings.
21312         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
21313         Reported by Jim Meyering.
21314
21315 2010-10-17  Bruno Haible  <bruno@clisp.org>
21316
21317         Make use of GCC's attribute __alloc_size__.
21318         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
21319         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
21320         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
21321         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
21322         __alloc_size__.
21323         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
21324         Suggested by Jim Meyering.
21325
21326 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
21327
21328         bootstrap: anchor .gitignore entries.
21329         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
21330         with...
21331         (insert_vc_ignore): ... this new function, which prepends `/' to
21332         all .gitignore entries before passing them to
21333         insert_sorted_if_absent.
21334
21335 2010-10-16  Bruno Haible  <bruno@clisp.org>
21336
21337         nextafter: Fix configure check.
21338         * modules/nextafter (configure.ac): Correct expected prototype.
21339
21340 2010-10-16  Bruno Haible  <bruno@clisp.org>
21341
21342         termios: Update documentation.
21343         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
21344
21345 2010-10-16  Bruno Haible  <bruno@clisp.org>
21346
21347         tests: Make them compile with TinyCC.
21348         * tests/test-strstr.c (main): Remove parentheses around array
21349         initializer.
21350
21351 2010-10-15  Eric Blake  <eblake@redhat.com>
21352
21353         ignore-value: make header idempotent
21354         * lib/ignore-value.h: Add double-inclusion guards.
21355         Reported by Stefan Berger.
21356
21357 2010-10-15  Jim Meyering  <meyering@redhat.com>
21358
21359         GNUmakefile: handle "stable" target, not "major"
21360         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
21361         lists in maint.mk and announce-gen.  Without this, "make stable"
21362         would fail to ensure that $(VERSION) is up to date.
21363
21364 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
21365
21366         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
21367         & co.
21368
21369 2010-10-14  Bruno Haible  <bruno@clisp.org>
21370
21371         vasnprintf: Don't set errno to 0.
21372         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
21373         block that sets it to 0.
21374         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
21375
21376 2010-10-14  Bruno Haible  <bruno@clisp.org>
21377
21378         socketlib: Fix.
21379         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
21380         gl_PREREQ_SYS_H_WINSOCK2.
21381         Reported by Ian Beckwith <ianb@erislabs.net>.
21382
21383 2010-10-13  Jim Meyering  <meyering@redhat.com>
21384
21385         test-select-stdin.c: avoid warn_unused_result warnings
21386         * tests/test-select-stdin.c: Include "macros.h".
21387         ASSERT that read and fflush succeed.
21388
21389 2010-10-13  Jim Meyering  <meyering@redhat.com>
21390
21391         git-version-gen: do require git-VC'd files in cwd
21392         * build-aux/git-version-gen: Reject a git version string
21393         if there are no commits associated with the current directory.
21394         This avoids an unlikely false-positive (unrelated dir whose parent
21395         repository also contains a tag matching v*), as pointed out
21396         by Giuseppe Scrivano in
21397         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
21398
21399 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
21400
21401         argv-iter: omit nonconforming declaration
21402         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
21403         enum arg_iter_err declaration, which doesn't conform to C99.
21404         Solaris 10 cc warns about this.
21405
21406 2010-10-13  Eric Blake  <eblake@redhat.com>
21407
21408         termios: fix compilation on mingw
21409         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
21410         (gl_TERMIOS_H): Adjust it on mingw.
21411         * modules/termios (Makefile.am): Substitute new key.
21412         * lib/termios.in.h (includes): Make include_next conditional.
21413         * doc/posix-headers/termios.texi (termios.h): Update
21414         documentation.
21415         Reported by Daniel P. Berrange.
21416
21417 2010-10-13  Jim Meyering  <meyering@redhat.com>
21418
21419         git-version-gen: don't require that .git/ be in the current dir
21420         * build-aux/git-version-gen: Adjust this script so that it works
21421         when run from any working directory beneath the top-level .git/-
21422         containing directory.  Inspired by a patch from Giuseppe Scrivano,
21423         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
21424
21425         test-select: avoid warn_unused_result warnings
21426         * tests/test-select.c: Include "macros.h".
21427         ASSERT that each call to read, write, and pipe succeeds.
21428         While not technically required, also check each "close".
21429         * modules/select-tests (Files): Add tests/macros.h.
21430
21431         test-symlinkat: remove declaration of unused local
21432         * tests/test-symlinkat.c (main): Remove unused local, "buf".
21433
21434         test-inttostr: avoid shadowing warnings
21435         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
21436         and use malloc rather than the stack for the same reason as
21437         mentioned in the comment justifying the other allocation.
21438
21439 2010-10-11  Bruno Haible  <bruno@clisp.org>
21440
21441         stdlib: Allow multiple gnulib generated replacements to coexist.
21442         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
21443         Reported by Sam Steingold <sds@gnu.org>.
21444
21445 2010-10-11  Jim Meyering  <meyering@redhat.com>
21446
21447         fix a documentation typo
21448         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
21449
21450 2010-10-11  Eric Blake  <eblake@redhat.com>
21451
21452         futimens: work around Solaris 11 bug
21453         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
21454         * tests/test-futimens.h (test_futimens): Enhance, rather than
21455         weaken test.
21456         * doc/posix-functions/futimens.texi (futimens): Document the bug.
21457
21458 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
21459
21460         Indentation.
21461         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
21462         higher-level operators more to the left.
21463
21464 2010-10-11  Jim Meyering  <meyering@redhat.com>
21465
21466         test-futimens: avoid unwarranted test failure on Solaris 5.11
21467         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
21468         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
21469         because it tries to dereference the NULL name argument.
21470
21471 2010-10-11  Bruno Haible  <bruno@clisp.org>
21472
21473         Indentation.
21474         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
21475         indentation.
21476
21477 2010-10-11  Jim Meyering  <meyering@redhat.com>
21478
21479         spawn.in.h: make indentation consistent with parentheses
21480         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
21481         Make indentation consistent with parentheses.
21482
21483 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
21484
21485         Fix mismatched parens in previous commit
21486         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
21487         parens.
21488
21489 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
21490
21491         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
21492
21493         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
21494         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
21495         * lib/malloca.c: Include "verify.h".
21496         (verify1): Remove, replacing with a verify call.
21497         * lib/relocwrapper.c (verify1): Likewise.
21498         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
21499         Likewise.
21500         * modules/malloca (Depends-on): Add 'verify'.
21501         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
21502         * modules/vasnprintf (Depends-on): Add 'verify'.
21503         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21504         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21505         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21506         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21507         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21508         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21509         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21510
21511         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
21512
21513         Formerly the style was sometimes 2*X - 1, because the C standard
21514         was wrongly thought to disallow ?: in integral constant expressions.
21515         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
21516         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
21517         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21518         * lib/stdint.in.h (_verify_intmax_size): Likewise.
21519         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
21520         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
21521         verify that time_t cannot be floating.
21522
21523 2010-10-08  Eric Blake  <eblake@redhat.com>
21524
21525         time: enforce recent POSIX ruling that time_t is integral
21526         * lib/time.in.h (__time_t_must_be_integral): Detect any
21527         problematic systems, allowing the rest of gnulib to assume POSIX.
21528
21529 2010-10-08  Jim Meyering  <meyering@redhat.com>
21530
21531         fdopendir: fix a bug on systems lacking openat and /proc support
21532         OpenBSD 4.7 is one such system.  The most noticeable effect was
21533         failure of any application making nontrivial use of fts: rm, du,
21534         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
21535           ./rm: traversal failed: `a': Bad file descriptor
21536         Debugging that, you see that even though FD 6 was closed just
21537         prior to the opendir call in fd_clone_opendir, its resulting
21538         dir->dd_fd was 8, rather than the expected value of 6:
21539
21540         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
21541         93                close (fd);
21542         (gdb) n
21543         94                dir = fd_clone_opendir (dupfd);
21544         (gdb) n
21545         95                saved_errno = errno;
21546         (gdb) p dir->dd_fd
21547         $11 = 8
21548
21549         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
21550         The problem is that on OpenBSD, fd_clone_opendir has to resort
21551         to using the old-style save/restore CWD mechanism, due to its
21552         lack of openat/proc support, and *that* would steal the FD (6)
21553         that opendir was supposed to use.
21554
21555         The fix is to squirrel away the desired FD so that save_cwd uses a
21556         different one, and then free the dest FD right before calling opendir.
21557         That guarantees opendir will use the required file descriptor.
21558
21559         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
21560
21561 2010-10-08  Bruno Haible  <bruno@clisp.org>
21562
21563         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
21564         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
21565
21566 2010-10-08  Bruno Haible  <bruno@clisp.org>
21567
21568         nanosleep: Make replacement POSIX compliant.
21569         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
21570         is out of range.
21571         Reported by Jim Meyering.
21572
21573 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
21574
21575         bootstrap: add hook for altering gnulib.mk, for Bison
21576         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
21577         the Bison bootstrapping process can rewrite file names and variables
21578         in this file before later parts of 'bootstrap' use the file.
21579         Bison wants to include lib/gnulib.mk from the top-level makefile,
21580         so it needs the file names in this file to be relative to the top
21581         level, not relative to lib; plus it needs variable names to be
21582         rewritten.
21583         (slurp): Use the new function.
21584
21585         bootstrap: reformat for readability
21586         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
21587
21588 2010-10-08  Eric Blake  <eblake@redhat.com>
21589
21590         docs: update cygwin progress
21591         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
21592         1.7.7.
21593         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
21594         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
21595         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
21596         * doc/posix-functions/carg.texi (carg): Likewise.
21597         * doc/posix-functions/cargf.texi (cargf): Likewise.
21598         * doc/posix-functions/casin.texi (casin): Likewise.
21599         * doc/posix-functions/casinf.texi (casinf): Likewise.
21600         * doc/posix-functions/casinh.texi (casinh): Likewise.
21601         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
21602         * doc/posix-functions/catan.texi (catan): Likewise.
21603         * doc/posix-functions/catanf.texi (catanf): Likewise.
21604         * doc/posix-functions/catanh.texi (catanh): Likewise.
21605         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
21606         * doc/posix-functions/ccos.texi (ccos): Likewise.
21607         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
21608         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
21609         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
21610         * doc/posix-functions/cexp.texi (cexp): Likewise.
21611         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
21612         * doc/posix-functions/cimag.texi (cimag): Likewise.
21613         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
21614         * doc/posix-functions/clog.texi (clog): Likewise.
21615         * doc/posix-functions/clogf.texi (clogf): Likewise.
21616         * doc/posix-functions/conj.texi (conj): Likewise.
21617         * doc/posix-functions/conjf.texi (conjf): Likewise.
21618         * doc/posix-functions/cpow.texi (cpow): Likewise.
21619         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
21620         * doc/posix-functions/cproj.texi (cproj): Likewise.
21621         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
21622         * doc/posix-functions/creal.texi (creal): Likewise.
21623         * doc/posix-functions/crealf.texi (crealf): Likewise.
21624         * doc/posix-functions/csin.texi (csin): Likewise.
21625         * doc/posix-functions/csinf.texi (csinf): Likewise.
21626         * doc/posix-functions/csinh.texi (csinh): Likewise.
21627         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
21628         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
21629         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
21630         * doc/posix-functions/ctan.texi (ctan): Likewise.
21631         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
21632         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
21633         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
21634         * doc/posix-headers/complex.texi (complex.h): Likewise.
21635
21636 2010-10-07  Jim Meyering  <meyering@redhat.com>
21637
21638         parse-datetime: avoid compilation failure on OpenBSD 4.7
21639         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
21640         This works around a compilation failure on OpenBSD 4.7:
21641         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
21642
21643 2010-10-07  Eric Blake  <eblake@redhat.com>
21644
21645         docs: update cygwin progress
21646         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
21647         1.7.6.
21648         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
21649         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
21650         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
21651         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
21652         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
21653         Likewise.
21654         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
21655         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
21656         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
21657         Likewise.
21658         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
21659         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
21660         Likewise.
21661         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
21662         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
21663         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
21664         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
21665         Likewise.
21666         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
21667         Likewise.
21668         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
21669
21670         docs: update parse-datetime history
21671         * doc/parse-datetime.texi (Authors of parse_datetime): Better
21672         documentation of this function's history and alternatives.
21673
21674         cygwin: use more robust version check
21675         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
21676         exclude an eventual cygwin 1.9.1.
21677         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21678         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
21679         (gl_FUNC_STRCASESTR): Likewise.
21680         Reported by Bruno Haible.
21681
21682 2010-10-06  Bruno Haible  <bruno@clisp.org>
21683
21684         string, sys_select: Avoid #including large headers unless necessary.
21685         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
21686         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
21687         OSF/1, BeOS, Haiku.
21688         Reported by Jim Meyering.
21689
21690 2010-10-05  Eric Blake  <eblake@redhat.com>
21691
21692         memmem, strstr, strcasestr: fix bug with long periodic needle
21693         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
21694         periodic needle having false positive.
21695         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
21696         and cygwin 1.7.7.
21697         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
21698         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
21699         (gl_FUNC_STRCASESTR): Likewise.
21700         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21701         * tests/test-memmem.c (main): Expose the bug.
21702         * tests/test-strcasestr.c (main): Likewise.
21703         * tests/test-strstr.c (main): Likewise.
21704         * tests/test-c-strcasestr.c (main): Likewise.
21705         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
21706         * doc/posix-functions/strstr.texi (strstr): Likewise.
21707         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
21708         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
21709
21710 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21711
21712         parse-datetime: do some more renaming
21713         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
21714         parse_datetime, not get_date.  Mention the renaming.
21715         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
21716         in comments.
21717         * m4/bison.m4: Likewise.
21718
21719 2010-10-05  Eric Blake  <eblake@redhat.com>
21720
21721         parse-datetime: better name than get_date
21722         * NEWS: Reword the deprecation notice.
21723         * modules/get_date: Rename to modules/parse-datetime.
21724         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
21725         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
21726         * lib/get_date.y: Rename to lib/parse-datetime.y.
21727         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
21728         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
21729         * doc/getdate.texi: Provide fallback wrapper.
21730         * lib/getdate.h: Move guts, and wrap...
21731         * lib/parse-datetime.h: ...new file.
21732         * lib/parse-datetime.y (get_date): Rename...
21733         (parse_datetime): ...to this.
21734         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
21735         (gl_PARSE_DATETIME): ...to this.
21736         * doc/posix-functions/getdate.texi (get_date): Provide fallback
21737         documentation.
21738         * modules/getdate (Files): Provide fallback docs and header.
21739         (Notice, Depends-on): Update references.
21740         * tests/test-parse-datetime.c: Likewise.
21741         * DEPENDENCIES: Likewise.
21742         * MODULES.html.sh (Date and time <time.h>): Likewise.
21743         * doc/parse-datetime.texi (Date input formats)
21744         (Authors of parse_datetime): Likewise.
21745         * modules/parse-datetime (Files, configure.ac, Makefile.am)
21746         (Include): Likewise.
21747         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
21748         * gnulib-tool: Likewise.
21749         * m4/bison.m4 (gl_BISON): Likewise.
21750         Suggested by Bruno Haible.
21751
21752 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21753
21754         more ports to Solaris tr, which needs [] around ranges
21755         * gnulib-tool: Solaris tr needs [] around ranges.
21756         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
21757         * tests/test-pipe-filter-gi1.c (main): Likewise.
21758         * tests/test-pipe-filter-ii1.c (main): Likewise.
21759
21760 2010-10-05  Eric Blake  <eblake@redhat.com>
21761
21762         bootstrap: fix Solaris regression
21763         * build-aux/bootstrap (check_versions): Solaris tr still needs []
21764         around ranges.
21765         Reported by Pádraig Brady.
21766
21767         bootstrap: work with pkg-config
21768         * build-aux/bootstrap (check_versions): Also transliterate - in
21769         prerequisite name.
21770         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
21771         prerequisites that were already found, to avoid confusion.
21772         Reported by Justin Clift.
21773
21774         faccessat: remove unused wrappers
21775         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
21776         presence of these wrappers dragged in -lgen on Solaris.
21777         Reported by Clemens Brogi; fix suggested by Paul Eggert.
21778
21779 2010-10-05  Jim Meyering  <meyering@redhat.com>
21780
21781         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
21782         * Makefile (sc_pragma_columns): New syntax-check rule.
21783
21784 2010-10-04  Bruno Haible  <bruno@clisp.org>
21785
21786         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
21787         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
21788         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
21789         Reported by Bruce Korb and Eric Blake.
21790
21791 2010-10-04  Bruno Haible  <bruno@clisp.org>
21792
21793         threadlib: Make option --with-libpth-prefix work.
21794         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
21795         use $LIBPTH, not just -lpth.
21796
21797 2010-10-04  Bruno Haible  <bruno@clisp.org>
21798
21799         Avoid line length limitation from HP NonStop system header files.
21800         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
21801         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
21802         * lib/ctype.in.h: Likewise.
21803         * lib/dirent.in.h: Likewise.
21804         * lib/errno.in.h: Likewise.
21805         * lib/fcntl.in.h: Likewise.
21806         * lib/float.in.h: Likewise.
21807         * lib/getopt.in.h: Likewise.
21808         * lib/iconv.in.h: Likewise.
21809         * lib/inttypes.in.h: Likewise.
21810         * lib/langinfo.in.h: Likewise.
21811         * lib/locale.in.h: Likewise.
21812         * lib/math.in.h: Likewise.
21813         * lib/netdb.in.h: Likewise.
21814         * lib/netinet_in.in.h: Likewise.
21815         * lib/poll.in.h: Likewise.
21816         * lib/pthread.in.h: Likewise.
21817         * lib/pty.in.h: Likewise.
21818         * lib/sched.in.h: Likewise.
21819         * lib/se-selinux.in.h: Likewise.
21820         * lib/search.in.h: Likewise.
21821         * lib/signal.in.h: Likewise.
21822         * lib/spawn.in.h: Likewise.
21823         * lib/stdarg.in.h: Likewise.
21824         * lib/stddef.in.h: Likewise.
21825         * lib/stdint.in.h: Likewise.
21826         * lib/stdio.in.h: Likewise.
21827         * lib/stdlib.in.h: Likewise.
21828         * lib/string.in.h: Likewise.
21829         * lib/strings.in.h: Likewise.
21830         * lib/sys_file.in.h: Likewise.
21831         * lib/sys_ioctl.in.h: Likewise.
21832         * lib/sys_select.in.h: Likewise.
21833         * lib/sys_socket.in.h: Likewise.
21834         * lib/sys_stat.in.h: Likewise.
21835         * lib/sys_time.in.h: Likewise.
21836         * lib/sys_times.in.h: Likewise.
21837         * lib/sys_utsname.in.h: Likewise.
21838         * lib/sys_wait.in.h: Likewise.
21839         * lib/sysexits.in.h: Likewise.
21840         * lib/termios.in.h: Likewise.
21841         * lib/time.in.h: Likewise.
21842         * lib/unistd.in.h: Likewise.
21843         * lib/wchar.in.h: Likewise.
21844         * lib/wctype.in.h: Likewise.
21845         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
21846         * modules/ctype (Makefile.am): Likewise.
21847         * modules/dirent (Makefile.am): Likewise.
21848         * modules/errno (Makefile.am): Likewise.
21849         * modules/fcntl-h (Makefile.am): Likewise.
21850         * modules/float (Makefile.am): Likewise.
21851         * modules/getopt-posix (Makefile.am): Likewise.
21852         * modules/iconv-h (Makefile.am): Likewise.
21853         * modules/inttypes (Makefile.am): Likewise.
21854         * modules/langinfo (Makefile.am): Likewise.
21855         * modules/locale (Makefile.am): Likewise.
21856         * modules/math (Makefile.am): Likewise.
21857         * modules/netdb (Makefile.am): Likewise.
21858         * modules/netinet_in (Makefile.am): Likewise.
21859         * modules/poll-h (Makefile.am): Likewise.
21860         * modules/pthread (Makefile.am): Likewise.
21861         * modules/pty (Makefile.am): Likewise.
21862         * modules/sched (Makefile.am): Likewise.
21863         * modules/search (Makefile.am): Likewise.
21864         * modules/selinux-h (Makefile.am): Likewise.
21865         * modules/signal (Makefile.am): Likewise.
21866         * modules/spawn (Makefile.am): Likewise.
21867         * modules/stdarg (Makefile.am): Likewise.
21868         * modules/stddef (Makefile.am): Likewise.
21869         * modules/stdint (Makefile.am): Likewise.
21870         * modules/stdio (Makefile.am): Likewise.
21871         * modules/stdlib (Makefile.am): Likewise.
21872         * modules/string (Makefile.am): Likewise.
21873         * modules/strings (Makefile.am): Likewise.
21874         * modules/sys_file (Makefile.am): Likewise.
21875         * modules/sys_ioctl (Makefile.am): Likewise.
21876         * modules/sys_select (Makefile.am): Likewise.
21877         * modules/sys_socket (Makefile.am): Likewise.
21878         * modules/sys_stat (Makefile.am): Likewise.
21879         * modules/sys_time (Makefile.am): Likewise.
21880         * modules/sys_times (Makefile.am): Likewise.
21881         * modules/sys_utsname (Makefile.am): Likewise.
21882         * modules/sys_wait (Makefile.am): Likewise.
21883         * modules/sysexits (Makefile.am): Likewise.
21884         * modules/termios (Makefile.am): Likewise.
21885         * modules/time (Makefile.am): Likewise.
21886         * modules/unistd (Makefile.am): Likewise.
21887         * modules/wchar (Makefile.am): Likewise.
21888         * modules/wctype (Makefile.am): Likewise.
21889
21890 2010-10-04  Bruno Haible  <bruno@clisp.org>
21891
21892         read-file tests: Avoid a test failure on NonStop Kernel.
21893         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
21894         a regular file.
21895         Reported by Joachim Schmitz <schmitz@hp.com>.
21896
21897 2010-10-03  Bruno Haible  <bruno@clisp.org>
21898
21899         gnulib-tool: Fixes for --create-testdir with --libtool.
21900         * gnulib-tool (func_get_automake_snippet): Don't augment
21901         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
21902         an executable.
21903         (func_create_testdir): Handle module 'alloca' like func_import.
21904         Reported by Bruce Korb <bruce.korb@gmail.com>.
21905
21906 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
21907
21908         Avoid some lines longer than 80 characters.
21909         * lib/stdint.in.h: Break long comment lines.
21910         * lib/math.in.h: Likewise.
21911         (_GL_NUM_UINT_WORDS): New macro, for readability.
21912         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
21913         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
21914         * lib/stdlib.in.h: Likewise.
21915         * lib/spawn.in.h: Likewise.
21916         * lib/sys_socket.in.h: Update an URL.
21917         * lib/sys_stat.in.h: Break long line.
21918
21919 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
21920
21921         Improve pmccabe2html.
21922         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
21923         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
21924         when the sources change. Remove the line in the HTML about "Used
21925         ranges" (which implied that there might be other unused ranges),
21926         rename "Resume" to "Summary" (easier to understand for more users).
21927         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
21928         styles, and some unnecessary blank lines.
21929
21930 2010-10-03  Bruno Haible  <bruno@clisp.org>
21931             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
21932
21933         acl: Add support for ACLs on NonStop Kernel.
21934         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
21935         Check whether the function aclsort() exists.
21936         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
21937         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
21938         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21939         (acl_nontrivial [HAVE_ACLSORT]: New function.
21940         (file_has_acl): Implement for NonStop Kernel.
21941         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21942         (qset_acl): Implement for NonStop Kernel.
21943         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
21944         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21945         (main): Implement for NonStop Kernel.
21946         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
21947         Kernel. Handle this flavor.
21948         * tests/test-set-mode-acl.sh: Likewise.
21949         * tests/test-copy-acl.sh: Likewise.
21950         * tests/test-copy-file.sh: Likewise.
21951
21952 2010-10-03  Bruno Haible  <bruno@clisp.org>
21953
21954         Info about ACLs on NonStop Kernel.
21955         * doc/acl-resources.txt: Add info about NonStop Kernel.
21956         References by Joachim Schmitz <schmitz@hp.com>.
21957
21958 2010-10-02  Bruno Haible  <bruno@clisp.org>
21959
21960         Define missing EDQUOT on NonStop Kernel.
21961         * lib/errno.in.h (EDQUOT): Assign a value if missing.
21962         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
21963         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
21964         missing.
21965         * doc/posix-headers/errno.texi: Mention the NSK bug.
21966         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
21967         Reported by Joachim Schmitz <schmitz@hp.com>.
21968
21969 2010-10-02  Bruno Haible  <bruno@clisp.org>
21970
21971         Update doc for POSIX:2008.
21972         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
21973         Update URL of POSIX specification.
21974
21975 2010-10-02  Bruno Haible  <bruno@clisp.org>
21976
21977         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
21978         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
21979         from gnulib, not from Automake.
21980
21981 2010-10-02  Bruno Haible  <bruno@clisp.org>
21982
21983         New module 'system-posix'.
21984         * modules/system-posix: New file.
21985         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
21986         module is present.
21987         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
21988         GNULIB_SYSTEM_POSIX.
21989         * modules/stdlib (Depends-on): Remove sys_wait.
21990         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
21991         * doc/posix-functions/system.texi: Mention the new module.
21992         * doc/posix-headers/stdlib.texi: Likewise.
21993         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
21994         define test_sys_wait_macros to a no-op.
21995         Reported by Sam Steingold <sds@gnu.org>.
21996
21997 2010-09-30  Bruno Haible  <bruno@clisp.org>
21998
21999         More renaming from 'getdate' to 'get_date'.
22000         * doc/get_date.texi: Renamed from doc/getdate.texi.
22001         * modules/get_date (Files): Update.
22002         * MODULES.html.sh (Date and time <time.h>): Update.
22003         * DEPENDENCIES: Update.
22004         * gnulib-tool: Update comment.
22005         * m4/bison.m4 (gl_BISON): Likewise.
22006         * m4/get_date.m4 (gl_GET_DATE): Likewise.
22007
22008 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
22009
22010         bootstrap: support ACLOCAL_FLAGS during aclocal
22011         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
22012         can add additional -I dir for third-party .m4 files.
22013
22014 2010-09-30  Eric Blake  <eblake@redhat.com>
22015
22016         bootstrap: use glibtoolize on MacOS
22017         * build-aux/bootstrap (check_versions): Convert libtool into
22018         libtoolize.
22019         (tool search): Move libtool check earlier, and look for
22020         glibtoolize for MacOS.
22021         (gnulib_tool_options): Auto-add --libtool when appropriate.
22022         Reported by Justin Clift.
22023
22024         poll: fix typo that broke test on MacOS
22025         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
22026         Reported by Justin Clift.
22027
22028         getdate: rename to get_date
22029         Note: getdate.h is not renamed, to minimize client impact.
22030         * modules/getdate: Mark obsolete.  Move old contents...
22031         * modules/get_date: ...to new module name.
22032         * modules/getdate-tests: Move...
22033         * modules/get_date-tests: ...here.
22034         * m4/getdate.m4: Move...
22035         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
22036         * lib/getdate.y: Move...
22037         * lib/get_date.y: ...here.
22038         * tests/test-getdate.c: Move...
22039         * tests/test-get_date.c: ...here.
22040         * doc/posix-functions/getdate.texi (getdate): Update name.
22041         * NEWS: Mention the change.
22042
22043 2010-09-29  Bruno Haible  <bruno@clisp.org>
22044
22045         Separate the module 'waitpid' from the module 'sys_wait'.
22046         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
22047         present.
22048         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
22049         gl_MODULE_INDICATOR_FOR_TESTS.
22050         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
22051         * modules/sys_wait (Depends-on): Remove waitpid.
22052         (Makefile.am): Substitute GNULIB_WAITPID.
22053         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
22054         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
22055         signature only if the 'waitpid' module is present.
22056         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
22057         * NEWS: Mention the change.
22058         * modules/grantpt (Depends-on): Add waitpid.
22059         * modules/wait-process (Depends-on): Likewise.
22060
22061 2010-09-29  Bruno Haible  <bruno@clisp.org>
22062
22063         More tests for module 'sys_wait'.
22064         * modules/sys_wait-c++-tests: New file.
22065         * tests/test-sys_wait-c++.cc: New file.
22066         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
22067         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
22068
22069 2010-09-29  Bruno Haible  <bruno@clisp.org>
22070
22071         New module 'waitpid'.
22072         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
22073         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
22074         Don't include <process.h>.
22075         (waitpid): Declare only, using modern idiom.
22076         * m4/waitpid.m4: New file.
22077         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
22078         * modules/waitpid: New file.
22079         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
22080         (Makefile.am): Update.
22081         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
22082
22083 2010-09-28  Bruno Haible  <bruno@clisp.org>
22084
22085         poll: Assume ANSI C.
22086         * lib/poll.c (poll): Use an ANSI C declaration.
22087
22088 2010-09-28  Bruno Haible  <bruno@clisp.org>
22089
22090         poll-h: Create poll.h on all platforms.
22091         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
22092         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
22093         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
22094         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
22095         (gl_REPLACE_POLL_H): Don't set POLL_H.
22096         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
22097         * modules/poll-h (Depends-on): Add include_next.
22098         (Makefile.am): Create poll.h unconditionally. Substitute also
22099         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
22100
22101 2010-09-28  Bruno Haible  <bruno@clisp.org>
22102
22103         Tests for module 'poll-h'.
22104         * modules/poll-h-c++-tests: New file.
22105         * tests/test-poll-h-c++.cc: New file.
22106
22107         Tests for module 'poll-h'.
22108         * modules/poll-h-tests: New file.
22109         * tests/test-poll-h.c: New file.
22110
22111 2010-09-28  Bruno Haible  <bruno@clisp.org>
22112
22113         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
22114         * modules/poll-h (Depends-on): Add 'extensions'.
22115
22116 2010-09-28  Bruno Haible  <bruno@clisp.org>
22117
22118         New module 'poll-h'.
22119         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
22120         (poll): Use modern idiom.
22121         * modules/poll-h: New file.
22122         * modules/poll (Files): Remove lib/poll.in.h.
22123         (Depends-on): Add poll-h.
22124         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
22125         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
22126         * m4/poll_h.m4: New file.
22127         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
22128         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
22129         and invoke gl_REPLACE_POLL_H.
22130         * lib/poll.c: Use common idiom.
22131         * tests/test-poll.c: Likewise.
22132         * doc/posix-headers/poll.texi: Mention the poll-h module.
22133         Suggested by Eric Blake.
22134
22135 2010-09-26  Bruno Haible  <bruno@clisp.org>
22136
22137         sys_wait: Implement WSTOPSIG.
22138         * lib/sys_wait.in.h (WSTOPSIG): New macro.
22139         Reported by Simon Josefsson.
22140
22141 2010-09-26  Simon Josefsson  <simon@josefsson.org>
22142
22143         stdlib, sys_wait: Avoid compilation error on mingw.
22144         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
22145
22146 2010-09-26  Bruno Haible  <bruno@clisp.org>
22147
22148         stdlib tests: Avoid code duplication.
22149         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
22150         * modules/sys_wait-tests (Files): Likewise.
22151         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
22152         * tests/test-stdlib.c: Include test-sys_wait.h.
22153         (main): Invoke test_sys_wait_macros.
22154         * tests/test-sys_wait.c: Include test-sys_wait.h.
22155         (main): Invoke test_sys_wait_macros.
22156
22157 2010-09-25  Simon Josefsson  <simon@josefsson.org>
22158
22159         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
22160         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
22161         sure Windows sockets are working before calling getaddrinfo.
22162         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
22163         * doc/gnulib.texi (Windows sockets): Fix typo.
22164
22165 2010-09-25  Bruno Haible  <bruno@clisp.org>
22166
22167         Tests for module 'regex-quote'.
22168         * modules/regex-quote-tests: New file.
22169         * tests/test-regex-quote.c: New file.
22170
22171         New module 'regex-quote'.
22172         * lib/regex-quote.h: New file.
22173         * lib/regex-quote.c: New file.
22174         * modules/regex-quote: New file.
22175         Suggested by Reuben Thomas <rrt@sc3d.org>.
22176
22177 2010-09-24  Bruno Haible  <bruno@clisp.org>
22178
22179         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
22180         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
22181
22182 2010-09-23  Bruno Haible  <bruno@clisp.org>
22183
22184         setenv: Relax license.
22185         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
22186         Blake.
22187         Requested by Eric Blake.
22188
22189 2010-09-22  Bruno Haible  <bruno@clisp.org>
22190
22191         termios: Relax license.
22192         * modules/termios (License): Change to LGPLv2+.
22193         Requested by Eric Blake.
22194
22195 2010-09-22  Bruno Haible  <bruno@clisp.org>
22196
22197         threadlib: Allow the package to change the default to 'no'.
22198         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
22199         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
22200         Reported by Paul Eggert.
22201
22202 2010-09-22  Pádraig Brady  <P@draigbrady.com>
22203             Bruno Haible  <bruno@clisp.org>
22204
22205         Fix endless loop in mbmemcasecoll.
22206         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
22207         byte.
22208         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
22209
22210 2010-09-22  Bruno Haible  <bruno@clisp.org>
22211
22212         Tests for module 'memcoll'.
22213         * modules/memcoll-tests: New file.
22214         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
22215
22216         memcoll, xmemcoll: Clarify size vs. length.
22217         * modules/memcoll.c (memcoll0): Clarify specification.
22218         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
22219         passed to collate_error.
22220
22221 2010-09-22  Bruno Haible  <bruno@clisp.org>
22222
22223         Tests for module 'memcasecmp'.
22224         * modules/memcasecmp-tests: New file.
22225         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
22226
22227 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
22228
22229         * lib/pthread.in.h: Add split double-inclusion guard, and include
22230         system <pthread.h> if there is one.  Use @@-style as in other
22231         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
22232         pthread.h doesn't.
22233         (pthread_mutexattr_destroy, pthread_mutexattr_init):
22234         (pthread_mutexattr_settype, pthread_mutex_trylock):
22235         New static inline functions, if there's no system <pthread.h>.
22236         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
22237         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
22238         Approximate with mutexes if the system lacks spinlocks, as in
22239         MacOS.
22240         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
22241         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
22242         @@-style.  Check for spinlocks separately.
22243         (gl_PTHREAD_DEFAULTS): New macro.
22244         * modules/pthread: Redo to use a more typical style for in.h files.
22245
22246 2010-09-21  Eric Blake  <eblake@redhat.com>
22247
22248         net_if: enhance tests
22249         * tests/test-net_if.c (main): Move signature checks earlier.
22250         Print failures to stderr.
22251         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
22252         Document the bug that we do not yet fix.
22253
22254 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
22255
22256         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
22257         about gnulib, not GSS.
22258
22259 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
22260
22261         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
22262         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
22263         for Emacs.
22264         * build-aux/pmccabe2html: Make Makefile.am example code more
22265         cut-and-paste friendly.
22266
22267 2010-09-21  Simon Josefsson  <simon@josefsson.org>
22268
22269         * tests/test-net_if.c: New file.
22270         * modules/net_if-tests: New file.
22271
22272 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
22273
22274         pthread: add pthread_spin_destroy
22275         * lib/pthread.in.h (pthread_spin_destroy): New function.
22276
22277 2010-09-19  Bruno Haible  <bruno@clisp.org>
22278
22279         gnulib-tool: Fix --help output.
22280         * gnulib-tool (func_usage): Fix help message.
22281         Reported by Reuben Thomas <rrt@sc3d.org>.
22282
22283 2010-09-18  Jim Meyering  <meyering@redhat.com>
22284
22285         maint.mk: avoid unexpanded \n in two diagnostics
22286         * top/maint.mk (sc_prohibit_always_true_header_tests):
22287         Don't use a literal \n in a halt=... assignment.  It would not be
22288         expanded, and the two \n bytes would appear in the diagnostic output
22289         rather than the desired newline.  Use halt=$$(printf ... instead.
22290         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
22291
22292 2010-09-18  Bruno Haible  <bruno@clisp.org>
22293
22294         netinet_in: Doc tweak.
22295         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
22296         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22297
22298 2010-09-18  Jim Meyering  <meyering@redhat.com>
22299
22300         init.sh: correct an outdated comment
22301         * tests/init.sh (create_exe_shims_):  s/function/alias/
22302
22303         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
22304         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
22305         a file named "*.exe" is removed between the glob expansion and the
22306         processing of that oddly named file.
22307
22308 2010-09-17  Eric Blake  <eblake@redhat.com>
22309
22310         mirbsd: add some more support
22311         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
22312         in BSD family.
22313         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
22314         devices as OpenBSD.
22315         * m4/host-os.m4 (mirbsd): Add MirBSD.
22316
22317         tests: fix unportable assumption on sys/wait.h
22318         * tests/test-sys_wait.c (main): Relax test.
22319         * tests/test-stdlib.c (main): Likewise.
22320
22321         init.sh: accomodate directory with no .exes
22322         * tests/init.sh: Accomodate directory containing only scripts.
22323
22324         tests: avoid compiler warning
22325         * tests/test-stdlib.c (main): Use the variable.
22326
22327         fdutimens, fdutimensat: update signature, again
22328         * lib/utimens.h (gl_futimens): Delete, and move signature...
22329         (fdutimens): ...here.
22330         (fdutimensat): Rearrange signature.
22331         (lutimensat): Rename variable for clarity.
22332         * lib/fdutimensat.c (fdutimensat): Update signature.
22333         * lib/utimens.c (fdutimens): Likewise.
22334         (gl_futimens): Delete.
22335         (utimens, lutimens): Update callers.
22336         * lib/futimens.c (futimens): Likewise.
22337         * tests/test-fdutimensat.c: Likewise.
22338         * tests/test-utimens.c: Likewise.
22339         * tests/test-futimens.h: Update comment.
22340         * NEWS: Mention this.
22341         Suggested by Paul Eggert.
22342
22343 2010-09-17  Bruno Haible  <bruno@clisp.org>
22344
22345         Take over the maintenance of some older macros from Autoconf.
22346         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
22347         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
22348         GNU Autoconf.
22349         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
22350         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
22351
22352 2010-09-17  Eric Blake  <eblake@redhat.com>
22353
22354         fdutimensat: drop atflag validation
22355         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
22356         with valid fd, to close a race scenario where futimens is
22357         unsupported and FILE was replaced by a symlink.
22358         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
22359         accordingly.
22360         Suggested by Paul Eggert.
22361
22362 2010-09-16  Bruno Haible  <bruno@clisp.org>
22363
22364         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
22365         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
22366
22367 2010-09-16  Bruno Haible  <bruno@clisp.org>
22368
22369         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
22370         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
22371         login_tty exists.
22372         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22373
22374 2010-09-16  Bruno Haible  <bruno@clisp.org>
22375
22376         login_tty: Make the replacement code work on BSD systems.
22377         * lib/login_tty.c: Include <sys/ioctl.h>.
22378         (login_tty): Use ioctl TIOCSCTTY when available.
22379         * modules/login_tty (Depends-on): Add sys_ioctl.
22380         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22381
22382 2010-09-16  Bruno Haible  <bruno@clisp.org>
22383
22384         login_tty: Stricter unit test.
22385         * modules/login_tty-tests (Depends-on): Add tcgetsid.
22386         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
22387         and tcgetsid() after login_tty.
22388         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22389
22390 2010-09-16  Bruno Haible  <bruno@clisp.org>
22391
22392         New module 'tcgetsid'.
22393         * lib/tcgetsid.c: New file.
22394         * m4/tcgetsid.m4: New file.
22395         * modules/tcgetsid: New file.
22396         * modules/termios (Depends-on): Add c++defs, warn-on-use.
22397         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
22398         GNULIB_TCGETSID, HAVE_TCGETSID.
22399         * lib/termios.in.h: Include <sys/types.h>.
22400         (tcgetsid): New declaration.
22401         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
22402         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
22403         * doc/posix-functions/tcgetsid.texi: Mention the new module.
22404         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
22405
22406 2010-09-16  Bruno Haible  <bruno@clisp.org>
22407
22408         Tests for module 'termios'.
22409         * modules/termios-c++-tests: New file.
22410         * modules/termios-tests: New file.
22411         * tests/test-termios-c++.cc: New file.
22412         * tests/test-termios.c: New file.
22413
22414         New module 'termios'.
22415         * modules/termios: New file.
22416         * lib/termios.in.h: New file.
22417         * m4/termios_h.m4: New file.
22418         * doc/posix-headers/termios.texi: Mention the new module.
22419
22420 2010-09-16  Eric Blake  <eblake@redhat.com>
22421
22422         fdutimensat: add an atflag parameter
22423         * lib/fdutimensat.c (fdutimensat): Add new parameter.
22424         * lib/utimens.h (fdutimensat): Update prototype.
22425         * tests/test-fdutimensat.c: Adjust test to match.
22426         * NEWS: Document the change.
22427         Suggested by Paul Eggert.
22428
22429 2010-09-16  Bruno Haible  <bruno@clisp.org>
22430
22431         Fix typos in comments.
22432         * lib/striconveh.h: Fix typo in comment.
22433         * lib/login_tty.c (login_tty): Likewise.
22434
22435 2010-09-15  Bruno Haible  <bruno@clisp.org>
22436
22437         stdlib: clarify MirBSD WEXITSTATUS bug
22438         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
22439         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22440
22441 2010-09-15  Eric Blake  <eblake@redhat.com>
22442
22443         stdlib: work around MirBSD WEXITSTATUS bug
22444         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
22445         * modules/stdlib (Depends-on): Add sys_wait.
22446         * tests/test-sys_wait.c (main): Enhance test.
22447         * tests/test-stdlib.c (main): Likewise.
22448         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
22449
22450         docs: mention MacOS issue with WEXITSTATUS(constant)
22451         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
22452         issue.
22453         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22454
22455         strnlen: add tests
22456         * modules/strnlen-tests: New file.
22457         * tests/test-strnlen.c: Likewise.
22458
22459 2010-09-14  Bruno Haible  <bruno@clisp.org>
22460
22461         unistr/base: Avoid link errors when module 'libunistring' is also used.
22462         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
22463         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
22464         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
22465         Declare also when HAVE_LIBUNISTRING is set.
22466         Reported by Pádraig Brady <P@draigbrady.com>.
22467
22468 2010-09-14  Eric Blake  <eblake@redhat.com>
22469
22470         test-rawmemchr: make more robust
22471         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
22472         (Depends-on, configure.ac): Add needed prerequisites to use it.
22473         * modules/memchr-tests (Files, Depends-on, configure.ac):
22474         Likewise, to avoid implicit reliance on memchr module prereqs.
22475         * tests/test-memchr.c (main): Ensure proper masking.
22476         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
22477         reads.
22478
22479         memchr: detect glibc Alpha bug
22480         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
22481         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
22482         Alpha.
22483         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
22484         * tests/test-memchr.c (main): Enhance test.
22485         Reported by Nelson H. F. Beebe.
22486
22487 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22488
22489         fts, getcwd, glob: audit for dirfd returning -1
22490         * lib/fts.c (opendir): Remove #define; no longer used.
22491         (opendirat): New arg PDIR_FD.  All callers changed.
22492         (fts_build, _opendir2): Use new opendirat to avoid the need for
22493         dirfd, or for checking whether dirfd returns a negative value.
22494         Don't use opendir; always use openat followed by fdopendir.
22495         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
22496         it.
22497         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
22498         returns -1 here.
22499         * modules/fts (Depends-on): Remove dirfd.
22500         * modules/getcwd (Depends-on): Likewise.
22501
22502 2010-09-13  Eric Blake  <eblake@redhat.com>
22503
22504         float: fix broken MirBSD header
22505         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
22506         * doc/posix-headers/float.texi (float.h): Document it.
22507
22508 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22509
22510         fts: use O_NOFOLLOW to avoid race condition when opening a directory
22511         * lib/fts.c (opendirat): New arg extra_flags.
22512         (__opendir2): Use it to avoid following symlinks when opening
22513         a directory, if symlinks are not supposed to be followed.  See
22514         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
22515
22516         fdopendir: preserve argument fd before returning
22517         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
22518         (fdopendir_with_dup, fd_clone_opendir): New static functions.
22519         (fdopendir): Use them, arranging for FD to be open to the same
22520         directory that it was when it started.  (It might be temporarily
22521         closed while fdopendir is running, so this not thread- or
22522         signal-safe.)  Be careful to do the right thing even when file
22523         descriptors are scarce and dup fails with errno == EMFILE.  See
22524         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
22525
22526 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
22527
22528         regex: Pass the system regex if its only problem is 32-bit regoff_t.
22529         * NEWS: Document change.
22530         * m4/regex.m4: Disable test for regoff_t size.
22531
22532 2010-09-13  Jim Meyering  <meyering@redhat.com>
22533
22534         fts: don't operate on an invalid file descriptor after failed dup
22535         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
22536         negative file descriptor.
22537
22538 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
22539
22540         savedir: add streamsavedir, deprecate fdsavedir
22541         * NEWS: Mention deprecation of fdsavedir.
22542         * lib/savedir.c (streamsavedir): New extern function, whose name
22543         ends in "savedir" to be consistent with the others.  This differs
22544         from savedirstream in that it doesn't close its argument.  The
22545         next version of GNU tar will use this instead of fdsavedir, to
22546         avoid some race conditions and conserve file descriptors.
22547         (savedirstream): Reimplement as a wrapper around streamsavedir.
22548         (fdsavedir): Add a comment deprecating this function.  As far as
22549         I know, only GNU tar used it, and GNU tar doesn't need it any more.
22550         * lib/savedir.h (streamsavedir): New decl.
22551         (fdsavedir): Add a comment deprecating this.
22552
22553 2010-09-10  Bruno Haible  <bruno@clisp.org>
22554
22555         langinfo: Fix last commit.
22556         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
22557         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
22558         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22559
22560 2010-09-10  Bruno Haible  <bruno@clisp.org>
22561
22562         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
22563         * lib/progreloc.c (O_EXEC): Define fallback.
22564
22565 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
22566
22567         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
22568         * NEWS: Document recent changes to fcntl-h.
22569         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
22570         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
22571         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
22572         Similarly for O_SEARCH; this last was already true, but not documented.
22573         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
22574         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
22575         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
22576         Likewise.
22577         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
22578         is zero, not whether it is defined.
22579         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
22580         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
22581         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
22582
22583 2010-09-10  Bruno Haible  <bruno@clisp.org>
22584
22585         langinfo, nl_langinfo: Fix for IRIX 5.3.
22586         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
22587         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
22588         HAVE_LANGINFO_YESEXPR.
22589         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
22590         HAVE_LANGINFO_YESEXPR.
22591         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
22592         HAVE_LANGINFO_T_FMT_AMPM is 0.
22593         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
22594         HAVE_LANGINFO_YESEXPR is 0.
22595         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
22596         NOEXPR.
22597         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
22598         * doc/posix-functions/nl_langinfo.texi: Likewise.
22599         Reported by Eric Blake.
22600
22601 2010-09-10  Bruno Haible  <bruno@clisp.org>
22602
22603         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
22604         * doc/glibc-functions/login_tty.texi: Mention the include file problem
22605         on FreeBSD 8.0 and OpenBSD 4.6.
22606         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
22607         * m4/pty_h.m4 (gl_PTY_H): Likewise.
22608         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
22609         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
22610         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
22611         ac_includes_default.
22612         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22613
22614 2010-09-09  Eric Blake  <eblake@redhat.com>
22615
22616         strsignal: work around NetBSD bug
22617         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
22618         * lib/string.in.h (includes): Likewise.
22619         * doc/posix-functions/strsignal.texi (strsignal): Document the
22620         bug.
22621         Reported by Nelson H. F. Beebe.
22622
22623         gnulib-tool: work with NetBSD /bin/sh
22624         * gnulib-tool (func_cache_var, func_cache_lookup_module)
22625         (func_get_description, func_get_comment, func_get_status)
22626         (func_get_notice, func_get_applicability, func_get_filelist)
22627         (func_get_dependencies, func_get_autoconf_early_snippet)
22628         (func_get_autoconf_snippet, func_get_automake_snippet)
22629         (func_get_include_directive, func_get_link_directive)
22630         (func_get_license, func_get_maintainer, func_import): Avoid
22631         shell syntax errors from parsing syntax extensions.
22632
22633 2010-09-09  Bruno Haible  <bruno@clisp.org>
22634
22635         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
22636         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
22637         a reliable way to determine whether the 'alias' command works.
22638
22639 2010-09-08  Jim Meyering  <meyering@redhat.com>
22640
22641         init.sh: penalize a set-x-impaired shell; don't disqualify it
22642         * tests/init.sh: Too many shells corrupt application stderr when
22643         you set -x, so we can't afford to disqualify them, since at least
22644         on Irix-6.5, that would disqualify all bourne shells.
22645         Instead, use a two-pass approach.
22646         On the first pass, try to find a shell that meets the stricter
22647         condition that set -x does not corrupt stderr.
22648         If no shell meets the stricter condition, retest each candidate
22649         shell, but without that extra condition.  Finally, when
22650         VERBOSE=yes is requested and set -x might cause trouble, simply
22651         issue a warning and refrain from enabling debug output.
22652
22653 2010-09-08  Eric Blake  <eblake@redhat.com>
22654
22655         unsetenv: fix OpenBSD bug
22656         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
22657         * doc/posix-functions/unsetenv.texi (unsetenv): Update
22658         documentation.
22659         Reported by Jim Meyering.
22660
22661         strtod: work around IRIX 6.5 bug
22662         * lib/strtod.c (strtod): Reparse number on shorter string if
22663         exponent parse was invalid.
22664         * tests/test-strtod.c (main): Add check for "0x1p 2".
22665         Reported by Tom G. Christensen.
22666
22667         getopt: optimize previous patch
22668         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
22669         empty variable.  Speed up awk script.
22670         Reported by Paolo Bonzini.
22671
22672 2010-09-08  Jim Meyering  <meyering@redhat.com>
22673
22674         test.sh: disqualify shells for which set -x corrupts stderr
22675         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
22676         and OpenBSD 4.7.  They make it so with "set -x", environment settings
22677         appear in stderr output.  For example, this command:
22678             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
22679         prints "P=1" on those two systems:
22680
22681 2010-09-08  Bruno Haible  <bruno@clisp.org>
22682
22683         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
22684         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
22685         commands, because some shells ignore redirections when there is an
22686         error in the command lookup.
22687         Reported by Eric Blake.
22688
22689 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
22690
22691         * lib/regex.h: Fix a mention of `regex_compile' (should be
22692         `re_compile_pattern').
22693         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
22694         (re_set_registers): Correct name of parameter in comment.
22695
22696         * doc/regex.texi: Add documentation for missing syntax flags.
22697         Remove commented-out documentation of defunct syntax option
22698         RE_NO_EMPTY_ALTS.
22699         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
22700         Add documentation of re_set_registers.
22701         Document trick to re-use a pattern buffer by setting fastmap manually.
22702         Update documentation of struct re_pattern_buffer per public members.
22703         Uncomment documentation of equivalence class operators and
22704         collating symbol operators, since they are now implemented,
22705         Explain leftmost-longest matching in relation to alternatives.
22706         Tidy documentation of substring matching.
22707         Remove POSIX documentation, which is done better in
22708         glibc, and refer the reader there. Keep BSD API documentation, as
22709         that is not readily available elsewhere.
22710
22711 2010-09-07  Eric Blake  <eblake@redhat.com>
22712
22713         getopt: handle POSIXLY_CORRECT set but not exported
22714         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
22715         export state of POSIXLY_CORRECT, due to bash set -o posix.
22716         Reported by Dustin J. Mitchell.
22717
22718 2010-09-05  Bruno Haible  <bruno@clisp.org>
22719
22720         gnulib-tool: Highlight the changed options.
22721         * gnulib-tool (func_usage): Display the --import, --add-import,
22722         --remove-import explanations in bold font.
22723
22724 2010-09-06  Karl Berry  <karl@gnu.org>
22725
22726         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
22727
22728 2010-09-05  Bruno Haible  <bruno@clisp.org>
22729
22730         uniwidth/width: Update comment.
22731         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
22732         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
22733
22734 2010-09-05  Bruno Haible  <bruno@clisp.org>
22735
22736         isinf, isnan: Relax license.
22737         * modules/isinf (License): Change from GPL to LGPL, with consent from
22738         Ben Pfaff.
22739         * modules/isnan (License): Likewise.
22740         Requested by Ludovic Courtès.
22741
22742 2010-09-04  Bruno Haible  <bruno@clisp.org>
22743
22744         gnulib-tool: Help migration from --import to --add-import or --update.
22745         * gnulib-tool: Emit a verbose error message when --import is used
22746         without any module name.
22747
22748 2010-09-04  Bruno Haible  <bruno@clisp.org>
22749
22750         Update doc about gnulib-tool.
22751         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
22752         'gnulib-tool --update' in more detail.
22753         Reported by Eric Blake.
22754
22755 2010-09-04  Bruno Haible  <bruno@clisp.org>
22756
22757         gnulib-tool: Change --import. New options --add/remove-import.
22758         * gnulib-tool: New options --add-import, --remove-import.
22759         (func_usage): Document them.
22760         (have_associative): Define always.
22761         (func_import): In import mode, don't merge the specified settings with
22762         the cached settings. Implement remove-import mode.
22763         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
22764         Explain when to use them versus --import.
22765         (Simple update): Use --add-import instead of --import.
22766         * NEWS: Mention the change.
22767
22768 2010-09-04  Bruno Haible  <bruno@clisp.org>
22769
22770         * doc/gnulib-tool.texi (Initial import): Update paragraph about
22771         separate gnulib.mk.
22772
22773 2010-09-04  Bruno Haible  <bruno@clisp.org>
22774
22775         gnulib-tool: Don't talk about CVS any more.
22776         * gnulib-tool (func_usage, func_import): Write "version control"
22777         instead of CVS.
22778
22779 2010-09-04  Jim Meyering  <meyering@redhat.com>
22780
22781         maint.mk: avoid obscure sc_copyright_check failure in coreutils
22782         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
22783         false positives (whose names may be ill-chosen) when searching
22784         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
22785         would cause a false-positive.
22786
22787         avoid coreutils "make distcheck" failure
22788         Coreutils tests with an absolute build directory name that contains
22789         a space.  Not quoting this directory name caused a failure.
22790         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
22791         * tests/test-vc-list-files-cvs.sh: Likewise.
22792
22793 2010-09-04  Bruno Haible  <bruno@clisp.org>
22794
22795         gnulib-tool: Avoid error when run in a package without Makefile.am.
22796         * gnulib-tool: When collecting the m4dirs in a package that does not
22797         have a Makefile.am, eliminate those directories that contain no
22798         gnulib-cache.m4. Fix expression that counts these directories.
22799
22800 2010-09-04  Bruno Haible  <bruno@clisp.org>
22801
22802         update-copyright test: Improve output when perl is missing or too old.
22803         * tests/test-update-copyright.sh: Move test of Perl version down after
22804         the test whether Perl exists. Provide an explanation relating Perl's
22805         error message to Automake's SKIP: message.
22806
22807 2010-09-04  Bruno Haible  <bruno@clisp.org>
22808
22809         Don't augment PATH in TESTS_ENVIRONMENT.
22810         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
22811         set abs_aux_dir instead of augmenting PATH.
22812         * modules/vc-list-files-tests (Makefile.am): Likewise.
22813         * tests/test-update-copyright.sh: Augment PATH here.
22814         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
22815         path_prepend_.
22816         * tests/test-vc-list-files-git.sh: Likewise.
22817
22818 2010-09-04  Jim Meyering  <meyering@redhat.com>
22819
22820         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
22821         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
22822
22823 2010-09-04  Bruno Haible  <bruno@clisp.org>
22824
22825         strdup: Fix compilation error in C++ mode.
22826         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
22827         the macro.
22828
22829 2010-09-04  Bruno Haible  <bruno@clisp.org>
22830
22831         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
22832         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
22833         macro into a function.
22834         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22835
22836 2010-09-04  Bruno Haible  <bruno@clisp.org>
22837
22838         Set PATH_SEPARATOR the same way autoconf does.
22839         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
22840         the value of PATH_SEPARATOR the same way autoconf-generated configure
22841         scripts do.
22842         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
22843         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22844
22845 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22846
22847         Set PATH_SEPARATOR the same way autoconf does.
22848         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
22849         the same way autoconf-generated configure scripts do.
22850         * posix-modules: Likewise.
22851
22852 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22853
22854         hash: fix safe_hasher const typo
22855         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
22856         const; otherwise, there is a type error later.
22857
22858 2010-09-02  Jim Meyering  <meyering@redhat.com>
22859
22860         test-update-copyright.sh: require perl 5.8.0
22861         * tests/test-update-copyright.sh: Require 5.8.0,
22862         which Tom G. Christensen has confirmed is adequate,
22863         while 5.6.1 is not.
22864
22865 2010-09-02  Eric Blake  <eblake@redhat.com>
22866
22867         tests: init.sh improvements for re-exec'ing with zsh
22868         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
22869         -vx through shell re-exec.
22870         Reported by Tom G. Christensen.
22871
22872         wctype: fix typo in previous commit
22873         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
22874         Reported by Ludovic Courtès.
22875
22876 2010-09-02  Jim Meyering  <meyering@redhat.com>
22877
22878         test-update-copyright.sh: skip test if Perl is too old
22879         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
22880         Reported by Tom G. Christensen.
22881
22882 2010-09-02  Bruno Haible  <bruno@clisp.org>
22883
22884         wctype: Avoid compilation error on IRIX 6.5.30.
22885         * lib/wctype.in.h (iswblank): Declare with a replacement if
22886         REPLACE_ISWBLANK is set.
22887         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
22888         declared. Set REPLACE_ISWBLANK.
22889         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
22890         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
22891         * doc/posix-headers/wctype.texi: Likewise.
22892         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22893
22894 2010-09-01  Bruno Haible  <bruno@clisp.org>
22895
22896         New module 'socketlib'.
22897         * modules/socketlib: New file.
22898         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
22899         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
22900         * modules/sockets (Depends-on): Add socketlib.
22901         Suggested by Sam Steingold <sds@gnu.org>.
22902
22903 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22904
22905         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
22906
22907         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
22908         when one needs search access to a directory but not read access.
22909         On systems where it is available, it works in some cases where
22910         O_RDONLY does not, namely on directories that are searchable but
22911         not readable, and which need only to be searchable.  If O_SEARCH
22912         is not available, fall back to the traditional method of using
22913         O_RDONLY.
22914
22915         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
22916         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
22917         when opening a directory that needs only to be searchable.
22918         * lib/chdir-safer.c (chdir_no_follow): Likewise.
22919         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
22920         * lib/openat-proc.c (openat_proc_name): Likewise.
22921         * lib/openat.c (openat_needs_fchdir): Likewise.
22922         * lib/save-cwd.c (save_cwd): Likewise.
22923         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
22924
22925 2010-08-28  Bruno Haible  <bruno@clisp.org>
22926
22927         New module 'host-cpu-c-abi'.
22928         * modules/host-cpu-c-abi: New file.
22929         * m4/host-cpu-c-abi.m4: New file, based on part of
22930         clisp/src/m4/general.m4.
22931         Requested by Sam Steingold <sds@gnu.org>.
22932
22933 2010-08-31  Eric Blake  <eblake@redhat.com>
22934         and Jim Meyering  <meyering@redhat.com>
22935
22936         hash: factor, and guard against misbehaving hasher function
22937         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
22938         of table->hasher's return value.  Also protect against a hash value
22939         so large that adding it to table->bucket results in a NULL pointer.
22940         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
22941         Use it in place of open-coded check-and-abort.
22942
22943 2010-08-30  Bruno Haible  <bruno@clisp.org>
22944
22945         hash: silence spurious clang warning
22946         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
22947         Reported by Eric Blake.
22948
22949 2010-08-30  Eric Blake  <eblake@redhat.com>
22950
22951         strstr, memmem, strcasestr: avoid leaked shell message
22952         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
22953         FreeBSD.
22954         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22955         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22956
22957         tests: silence clang warning
22958         * tests/test-malloca.c (do_allocation): Avoid dead store.
22959
22960 2010-08-29  Bruno Haible  <bruno@clisp.org>
22961
22962         gettext: Fix recent mistake.
22963         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
22964
22965 2010-08-29  Bruno Haible  <bruno@clisp.org>
22966
22967         selinux-h: Offer a --without-selinux option.
22968         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
22969         --without-selinux was specified, skip all tests and define
22970         HAVE_SELINUX_SELINUX_H to 0.
22971         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
22972         set LIB_SELINUX to empty.
22973         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
22974         gl_LIBSELINUX. If --without-selinux was specified, replace
22975         selinux/context.h.
22976         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
22977
22978 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22979             Bruno Haible  <bruno@clisp.org>
22980
22981         Make the module 'realloc-gnu' work again on AIX and OSF/1.
22982         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
22983         of HAVE_REALLOC.
22984         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
22985         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
22986         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
22987         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
22988
22989 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22990             Bruno Haible  <bruno@clisp.org>
22991
22992         Make the module 'calloc-gnu' work again on AIX and OSF/1.
22993         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
22994         HAVE_CALLOC.
22995         * lib/xmalloc.c: Update accordingly.
22996         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
22997         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
22998         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
22999
23000 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23001             Bruno Haible  <bruno@clisp.org>
23002
23003         Make the module 'malloc-gnu' work again on AIX and OSF/1.
23004         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
23005         HAVE_MALLOC.
23006         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
23007         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
23008         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
23009
23010 2010-08-29  Bruno Haible  <bruno@clisp.org>
23011
23012         Update modules list.
23013         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
23014         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
23015         (String handling <string.h>): Add astrxfrm.
23016         (File system functions): Add readlinkat.
23017
23018 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23019
23020         Tests for module 'realloc-gnu'.
23021         * modules/realloc-gnu-tests: New file.
23022         * tests/test-realloc-gnu.c: New file.
23023
23024         Tests for module 'calloc-gnu'.
23025         * modules/calloc-gnu-tests: New file.
23026         * tests/test-calloc-gnu.c: New file.
23027
23028         Tests for module 'malloc-gnu'.
23029         * modules/malloc-gnu-tests: New file.
23030         * tests/test-malloc-gnu.c: New file.
23031
23032 2010-08-28  Bruno Haible  <bruno@clisp.org>
23033
23034         Rename module 'realloc' -> 'realloc-gnu'.
23035         * modules/realloc-gnu: New file, copied from modules/realloc.
23036         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
23037         obsolete.
23038         * modules/mgetgroups (Depends-on): Update.
23039         * doc/posix-functions/realloc.texi: Update.
23040         * NEWS: Mention the change.
23041
23042         Rename module 'calloc' -> 'calloc-gnu'.
23043         * modules/calloc-gnu: New file, copied from modules/calloc.
23044         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
23045         obsolete.
23046         * doc/posix-functions/calloc.texi: Update.
23047         * NEWS: Mention the change.
23048
23049         Rename module 'malloc' -> 'malloc-gnu'.
23050         * modules/malloc-gnu: New file, copied from modules/malloc.
23051         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
23052         obsolete.
23053         * modules/argp (Depends-on): Update.
23054         * modules/regex (Depends-on): Update.
23055         * doc/posix-functions/malloc.texi: Update.
23056         * NEWS: Mention the change.
23057
23058 2010-08-28  Eric Blake  <eblake@redhat.com>
23059
23060         pread, pwrite: add missing dependency
23061         * modules/pread (Depends-on): Add extensions.
23062         * modules/pwrite (Depends-on): Likewise.
23063
23064 2010-08-28  Bruno Haible  <bruno@clisp.org>
23065
23066         unistr/u*-strchr: Fix tests dependencies.
23067         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
23068         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
23069         Reported by Ian Beckwith <ianb@erislabs.net>.
23070
23071 2010-08-28  Bruno Haible  <bruno@clisp.org>
23072
23073         read-file: Don't occupy too much unused memory.
23074         * lib/read-file.c (fread_file): Shrink the buffer at the end.
23075
23076 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
23077             Eric Blake  <eblake@redhat.com>
23078             Bruno Haible  <bruno@clisp.org>
23079
23080         read-file: Avoid memory reallocations with regular files.
23081         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
23082         (fread_file): With regular files, use the remaining length as the
23083         initial buffer size.  Check against overflow.
23084         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
23085         sys_stat.
23086
23087 2010-08-28  Bruno Haible  <bruno@clisp.org>
23088
23089         ftello: Relax license.
23090         * modules/ftello (License): Relax to LGPLv2+.
23091         Reported by Eric Blake.
23092
23093 2010-08-28  Bruno Haible  <bruno@clisp.org>
23094
23095         Avoid relocwrapper link errors due to gnulib replacement functions.
23096         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
23097         function.
23098         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23099
23100 2010-08-28  Bruno Haible  <bruno@clisp.org>
23101
23102         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
23103         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
23104         defined.
23105         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
23106         Suggested by Eric Blake.
23107
23108 2010-08-28  Bruno Haible  <bruno@clisp.org>
23109
23110         sys_socket, netdb: Ensure socklen_t gets defined.
23111         * modules/sys_socket (Depends-on): Add socklen.
23112         * modules/netdb (Depends-on): Likewise.
23113         * modules/getaddrinfo (Depends-on): Remove socklen.
23114         * modules/getsockopt (Depends-on): Likewise.
23115         * modules/setsockopt (Depends-on): Likewise.
23116         * tests/test-sys_socket.c: Check that socklen_t is defined.
23117         * tests/test-netdb.c: Likewise.
23118         * m4/socklen.m4: Update comments.
23119         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23120
23121 2010-08-27  Eric Blake  <eblake@redhat.com>
23122
23123         login_tty: add missing dependency
23124         * modules/login_tty (Depends-on): Add pty.
23125
23126 2010-08-26  Eric Blake  <eblake@redhat.com>
23127
23128         lib-symbol-versions: fix m4 quoting
23129         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
23130         format for AC_LINK_IFELSE.
23131
23132         glob: fix compile test
23133         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
23134
23135         btowc: fix missing file
23136         * modules/btowc (Files): Also ship locale-fr.m4.
23137
23138         lseek: fix link test
23139         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
23140         AC_LINK_IFELSE.
23141
23142         include_next: silence autoconf 2.68 warning
23143         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
23144         AC_COMPILE_IFELSE as special.
23145         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
23146         autoconf < 2.68.
23147
23148         acl: fix compilation test
23149         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
23150         AC_COMPILE_IFELSE.
23151
23152 2010-08-26  Bruno Haible  <bruno@clisp.org>
23153
23154         Modernize AC_TRY_RUN invocations.
23155         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
23156         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23157         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
23158         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
23159         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
23160         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
23161         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23162         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23163         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23164         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23165         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23166         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23167         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23168         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23169         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23170         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
23171         gl_MBRLEN_NUL_RETVAL): Likewise.
23172         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
23173         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
23174         Likewise.
23175         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23176         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23177         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23178         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23179         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
23180         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
23181         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
23182         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
23183         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
23184         Likewise.
23185         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
23186         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
23187         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23188         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23189         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23190         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23191         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23192         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
23193         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
23194         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23195
23196 2010-08-26  Bruno Haible  <bruno@clisp.org>
23197
23198         Modernize AC_TRY_LINK invocations.
23199         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
23200         AC_TRY_LINK.
23201         * m4/argp.m4 (gl_ARGP): Likewise.
23202         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
23203         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
23204         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
23205         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
23206         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
23207         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
23208         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
23209         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
23210         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
23211         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
23212         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
23213         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
23214         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
23215         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23216         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
23217         * m4/hostent.m4 (gl_HOSTENT): Likewise.
23218         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23219         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
23220         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
23221         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
23222         Likewise.
23223         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
23224         Likewise.
23225         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
23226         Likewise.
23227         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
23228         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
23229         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
23230         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
23231         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
23232         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
23233         * m4/servent.m4 (gl_SERVENT): Likewise.
23234         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
23235         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
23236         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
23237         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
23238         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23239         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
23240         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
23241         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
23242         * modules/tsearch-tests (configure.ac): Likewise.
23243
23244 2010-08-26  Bruno Haible  <bruno@clisp.org>
23245
23246         Modernize AC_TRY_COMPILE invocations.
23247         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
23248         AC_TRY_COMPILE.
23249         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
23250         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
23251         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
23252         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
23253         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
23254         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
23255         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
23256         * m4/lock.m4 (gl_LOCK): Likewise.
23257         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
23258         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23259         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
23260         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
23261         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
23262         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
23263         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
23264         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
23265         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
23266         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
23267         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
23268         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
23269         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
23270         extraneous semicolon.
23271
23272 2010-08-26  Jim Meyering  <meyering@redhat.com>
23273
23274         stat-time: relax license LGPL
23275         * modules/stat-time (License): Change from GPL to LGPL,
23276         with consent from all contributors, for use in libguile.
23277         Requested by Ludovic Courtès.
23278
23279 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
23280
23281         poll: return immediately on POLLHUP.
23282         * lib/poll.c (poll): Always set timeout before wait_timeout is
23283         computed.
23284
23285 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23286
23287         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
23288         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
23289         rmdir ("dir/.//"), unlinkat.
23290
23291 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23292
23293         stdbool: avoid spurious failure with modern xlc
23294         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
23295
23296 2010-08-24  Bruno Haible  <bruno@clisp.org>
23297
23298         getloadavg: simplify code
23299         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
23300         gl_have_func. Update comments.
23301
23302 2010-08-24  Eric Blake  <eblake@redhat.com>
23303
23304         getloadavg: don't define SVR4 on cygwin
23305         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
23306         only define SVR4 when -lkvm is required.
23307         Reported by Yaakov Selkowitz.
23308
23309 2010-08-24  Bruno Haible  <bruno@clisp.org>
23310
23311         priv-set: fix comment
23312         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
23313
23314 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23315
23316         priv-set: fix comments
23317         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
23318         to match code, as suggested by David Bartley in:
23319         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
23320
23321 2010-08-23  Eric Blake  <eblake@redhat.com>
23322
23323         stdbool: avoid rejecting clang
23324         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
23325         * tests/test-stdbool.c: Enable more tests if using the system
23326         <stdbool.h> instead of the gnulib replacement.
23327         (main): Move xlc bug test to a runtime test for all compilers.
23328         Reported by Anders Kaseorg.
23329
23330         argz: fix shell quoting issue
23331         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
23332         Reported by Charles Wilson.
23333
23334 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
23335             Erik Faye-Lund <kusmabite@gmail.com>
23336
23337         poll, select: handle ERROR_BROKEN_PIPE.
23338         * lib/poll.c (win32_compute_revents): Return POLLHUP when
23339         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
23340         * lib/select.c (win32_compute_revents): Do not mark a pipe
23341         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
23342
23343 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
23344
23345         fts: allow compilation with C++
23346         * lib/fts_.h: Specify extern "C" linkage with C++.
23347
23348 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23349
23350         Fix gnulib-tool sed script de-commentation for AIX sed.
23351         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
23352         sed.
23353
23354 2010-08-17  Eric Blake  <eblake@redhat.com>
23355
23356         test-stddef: test for (some) offsetof bugs
23357         * tests/test-stddef.c: Enhance test to ensure correct type of
23358         offsetof.
23359         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
23360         that we are not fixing at this time.
23361
23362 2010-08-15  Bruno Haible  <bruno@clisp.org>
23363
23364         stpncpy: Allow stpncpy to be defined as a macro.
23365         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
23366         if it's already correctly declared.
23367         * lib/string.in.h (stpncpy): Undefine before redefining.
23368         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
23369
23370 2010-08-14  Bruno Haible  <bruno@clisp.org>
23371
23372         Rename module 'memxfrm' to 'amemxfrm'.
23373         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
23374         (amemxfrm): Renamed from memxfrm.
23375         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
23376         (amemxfrm): Renamed from memxfrm.
23377         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
23378         * NEWS: Mention the change.
23379         * MODULES.html.sh (String handling <string.h>): Update.
23380         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
23381         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
23382         * lib/unicase/u16-casexfrm.c: Likewise.
23383         * lib/unicase/u32-casexfrm.c: Likewise.
23384         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
23385         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
23386         * lib/uninorm/u16-normxfrm.c: Likewise.
23387         * lib/uninorm/u32-normxfrm.c: Likewise.
23388         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
23389         memxfrm.
23390         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
23391         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
23392         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
23393         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
23394         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
23395         Suggested by Paul Eggert.
23396
23397 2010-08-14  Bruno Haible  <bruno@clisp.org>
23398
23399         Tests for module 'astrxfrm'.
23400         * modules/astrxfrm-tests: New file.
23401         * tests/test-astrxfrm.c: New file.
23402
23403         New module 'astrxfrm'.
23404         * lib/astrxfrm.h: New file.
23405         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
23406         * modules/astrxfrm: New file.
23407
23408 2010-08-14  Reuben Thomas <rrt@sc3d.org>
23409
23410         regex: Tweak doc.
23411         * doc/regex.texi (Overview): Don't mention regex.c.
23412         (GNU Regular Expression Compiling): Likewise.
23413         (Match-end-of-line Operator): Mention 'not_eol'.
23414
23415 2010-08-14  Brian Gough  <bjg@gnu.org>
23416             Bruno Haible  <bruno@clisp.org>
23417
23418         git-merge-changelog: add doc relating to use with bzr and hg.
23419         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
23420
23421 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
23422
23423         pthread: fix pthread.h creation for srcdir != builddir
23424         * modules/pthread (Makefile.am): Fix the rule to work also in a
23425         non-srcdir build.
23426
23427 2010-08-13  Karl Berry  <karl@gnu.org>
23428
23429         * doc/regex.texi (Predefined Syntaxes): @smallexample.
23430         * doc/posix-*/*: force line break before @url of POSIX
23431         specifications.
23432         Suggested by Werner Lemberg.
23433
23434 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23435
23436         strtod: fix const diagnostic
23437         * lib/strtod.c (strtod): Don't assign const char * to char *,
23438         as this elicits a warning from GCC when warnings are enabled.
23439
23440 2010-08-10  Pádraig Brady <P@draigbrady.com>
23441         and Eric Blake  <eblake@redhat.com>
23442
23443         copy-acl: ignore ENOTSUP on HP-UX
23444         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
23445         so that it is available for HP-UX.
23446         * lib/copy-acl.c (qcopy_acl): Use it.
23447         Reported by Patrick M. Callahan.
23448
23449 2010-08-10  Eric Blake  <eblake@redhat.com>
23450
23451         open, chown: relax license
23452         * modules/open (License): Change to LGPLv2+, with consent by all
23453         authors, for use in augeas.
23454         * modules/chown (License): Likewise.
23455         * modules/lchown (Likewise): Likewise.
23456         Requested by Adam Stokes.
23457
23458 2010-08-09  Karl Berry  <karl@gnu.org>
23459
23460         * build-aux/ar-lib: new file, import from Automake.
23461         * config/srclist.txt: autocheck for updates.
23462
23463 2010-08-09  Eric Blake  <eblake@redhat.com>
23464
23465         readlinkat: adjust client modules
23466         * modules/areadlinkat (Depends-on): Use readlinkat, not
23467         symlinkat.
23468         * modules/areadlinkat-with-size (Depends-on): Likewise.
23469
23470         mknod: be more vocal about danger of running tests as root
23471         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
23472         root, since that is just asking for problems.
23473         Suggested by Bruno Haible, based on a report by Rainer Tammer.
23474
23475         readlinkat: split into its own module
23476         * modules/symlinkat: Split readlinkat...
23477         * modules/readlinkat: ...into separate module.
23478         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
23479         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
23480         * lib/symlinkat.c (readlinkat): Move...
23481         * lib/readlinkat.c: ...into new file.
23482         * modules/symlinkat-tests: Split readlinkat test...
23483         * modules/readlinkat-tests: ...into separate module.
23484         * tests/test-symlinkat.c: Split...
23485         * tests/test-readlinkat.c: ...into new file.
23486         * NEWS: Document the split.
23487         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23488         * lib/unistd.in.h (readlinkat): Likewise.
23489         Suggested by Bruno Haible.
23490
23491 2010-08-08  Bruno Haible  <bruno@clisp.org>
23492
23493         memxfrm: Speed up.
23494         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
23495         that usually only one call to strxfrm is necessary for each string
23496         part.
23497         Reported by Paul Eggert <eggert@cs.ucla.edu>.
23498
23499 2010-08-07  Karl Berry  <karl@gnu.org>
23500
23501         * doc/posix-headers/limits.texi,
23502         * doc/posix-functions/malloc.texi,
23503         * doc/posix-functions/strsignal.texi: missing @item.
23504         * doc/ld-version-script.texi: spurious leading i.
23505         * doc/regex.texi (Interval Operators): no commas inside @var.
23506
23507 2010-08-01  Bruno Haible  <bruno@clisp.org>
23508
23509         Integrate the regex documentation.
23510         * doc/gnulib.texi: Define 'cn' index.
23511         (Regular expressions): New a chapter that includes regex.texi and
23512         regexprops-generic.texi.
23513         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
23514         syntax.
23515
23516         Whitespace cleanup.
23517         * doc/regex.texi: Remove trailing spaces.
23518
23519         Add regex documentation.
23520         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
23521         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
23522         Written by Kathy A. Hargreaves and Karl Berry.
23523
23524 2010-08-01  Bruno Haible  <bruno@clisp.org>
23525
23526         link: Update documentation.
23527         * doc/posix-functions/link.texi: Update regarding Solaris.
23528
23529 2010-07-31  Bruno Haible  <bruno@clisp.org>
23530
23531         Update modules list.
23532         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
23533         (String handling <string.h>): Add memcmp2, memxfrm.
23534         (Container data structures): Add xlist, xsublist, xoset.
23535         (Core language properties): Add alignof, unused-parameter.
23536         (Process control, Numeric conversion functions <stdlib.h>): Renamed
23537         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
23538         (Unibyte characters <ctype.h>): New section.
23539         (String handling <string.h>): New section.
23540         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
23541         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
23542         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
23543         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
23544         tan, tanh, tanl, y0, y1, yn.
23545         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
23546         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
23547         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
23548         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
23549         unlockpt, vdprintf, vdprintf-posix.
23550         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
23551         (File system functions): Add concat-filename, sys_file, sys_ioctl,
23552         xconcat-filename.
23553         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
23554         getdtablesize, pipe2, pipe2-safer.
23555         (Security): New section.
23556         (Networking functions): Add accept4.
23557         (Signal handling): Add sigpipe.
23558         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
23559         mbmemcasecoll.
23560         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
23561         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
23562         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
23563         pipe-filter-ii.
23564         (Misc): Add argp-version-etc, login_tty, parse-duration.
23565
23566 2010-07-31  Bruno Haible  <bruno@clisp.org>
23567
23568         Improve doc in MODULES.html.
23569         * modules/linkat (Description): Add the word "function".
23570         * modules/mkfifo (Description): Likewise.
23571         * modules/mknod (Description): Likewise.
23572         * modules/remove (Description): Likewise.
23573         * modules/renameat (Description): Likewise.
23574         * modules/stat (Description): Likewise.
23575         * modules/symlink (Description): Likewise.
23576         * modules/unlink (Description): Likewise.
23577
23578 2010-07-31  Bruno Haible  <bruno@clisp.org>
23579
23580         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
23581         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
23582         option --enable/disable-c++ instead of --enable/disable-cxx.
23583         * NEWS: Mention the change.
23584
23585 2010-07-31  Bruno Haible  <bruno@clisp.org>
23586
23587         readlink, areadlink: Relax test a bit.
23588         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
23589         alternative to ENOTDIR.
23590         * tests/test-areadlink.h (test_areadlink): Likewise.
23591         Reported by Rainer Tammer.
23592
23593 2010-07-31  Bruno Haible  <bruno@clisp.org>
23594
23595         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
23596         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
23597         character, perform the search using U_STRCHR.
23598         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
23599         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
23600         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
23601         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
23602         Suggested by Paolo Bonzini.
23603
23604 2010-07-31  Bruno Haible  <bruno@clisp.org>
23605
23606         unistr/u*-strstr: Fix dependencies.
23607         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
23608         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
23609         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
23610
23611 2010-07-31  Bruno Haible  <bruno@clisp.org>
23612
23613         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
23614         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
23615         the beginning of the loop.
23616         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
23617         cases in 'switch' statement.
23618
23619         unistr/u8-strchr: Fix several bugs.
23620         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
23621         the string. When not found, return NULL, not a pointer near the end.
23622
23623         More tests for unistr/u8-strchr.
23624         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
23625         that the function does not read past the first occurrence of the byte
23626         being searched.
23627         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
23628         * tests/unistr/test-u16-strchr.c (main): New function.
23629         * tests/unistr/test-u32-strchr.c (main): New function.
23630
23631 2010-07-31  Bruno Haible  <bruno@clisp.org>
23632
23633         posix-modules: Ignore backup files of documentation files.
23634         * posix-modules: grep only through files named *.texi.
23635
23636 2010-07-31  Bruno Haible  <bruno@clisp.org>
23637
23638         symlinkat: Fix documentation.
23639         * doc/posix-functions/readlinkat.texi: Fix module name.
23640
23641 2010-07-31  Bruno Haible  <bruno@clisp.org>
23642
23643         fchownat: Replace also when chown has the trailing slash bug.
23644         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
23645         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
23646         introduced on 2010-04-10.
23647         Reported by Rainer Tammer.
23648
23649 2010-07-31  Bruno Haible  <bruno@clisp.org>
23650
23651         linkat: Work around AIX 7.1 bug.
23652         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
23653         whether linkat handles trailing slash correctly. If not, replace linkat
23654         and define LINKAT_TRAILING_SLASH_BUG.
23655         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
23656         check whether (fd1,file1) points to a directory if file1 or file2 ends
23657         in a slash. Code taken from lib/link.c.
23658         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
23659         Reported by Rainer Tammer.
23660
23661 2010-07-31  Bruno Haible  <bruno@clisp.org>
23662
23663         Correctly determine whether pow is available in libc on AIX 7 with xlc.
23664         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
23665         This disables an xlc optimization that was causing wrong test results.
23666         Reported by Rainer Tammer.
23667
23668 2010-07-31  Bruno Haible  <bruno@clisp.org>
23669
23670         iconv: Work around AIX 6.1..7.1 bug.
23671         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
23672         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
23673         cross-compiling, guess no on all versions of AIX.
23674         Reported by Rainer Tammer.
23675
23676 2010-07-31  Bruno Haible  <bruno@clisp.org>
23677
23678         readlink: Relax test a bit.
23679         * tests/test-readlink.h (test_readlink): Allow different errno value
23680         when readlink is called with a file name that ends in / and refers to
23681         a file.
23682         Suggested by Eric Blake.
23683         Reported by Rainer Tammer.
23684
23685 2010-07-31  Bruno Haible  <bruno@clisp.org>
23686
23687         copysign: Does not require -lm on glibc systems.
23688         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
23689         gl_COMMON_DOUBLE_MATHFUNC.
23690         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
23691
23692 2010-07-31  Bruno Haible  <bruno@clisp.org>
23693
23694         duplocale: Work around AIX 7.1 bug.
23695         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
23696         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
23697         * lib/duplocale.c (rpl_duplocale): Update comment.
23698         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
23699         Reported by Rainer Tammer.
23700
23701 2010-07-30  Bruno Haible  <bruno@clisp.org>
23702
23703         dirfd: Avoid link error on AIX 7.1.
23704         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
23705         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
23706         exist, set REPLACE_DIRFD.
23707         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
23708         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
23709         * doc/posix-functions/dirfd.texi: Update.
23710         Reported by Rainer Tammer.
23711
23712 2010-07-30  Eric Blake  <eblake@redhat.com>
23713
23714         strtod: next round of AIX fixes
23715         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
23716         exponent.
23717         * tests/test-strtod.c (main): Enhance tests.
23718         * doc/posix-functions/strtod.texi (strtod): Document next bug.
23719         Reported by Rainer Tammer.
23720
23721         futimens: fix configure check
23722         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
23723         Reported by Bruno Haible.
23724
23725 2010-07-30  Bruno Haible  <bruno@clisp.org>
23726
23727         getline: Update regarding AIX.
23728         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
23729         Reported by Rainer Tammer.
23730
23731 2010-07-30  Bruno Haible  <bruno@clisp.org>
23732
23733         wcwidth: Drop replacement on AIX 7.
23734         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
23735         AIX 7.
23736         Reported by Rainer Tammer.
23737
23738 2010-07-30  Bruno Haible  <bruno@clisp.org>
23739
23740         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
23741         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
23742         a 'char *'.
23743         Reported by Rainer Tammer.
23744
23745 2010-07-30  Bruno Haible  <bruno@clisp.org>
23746
23747         unlink: Update regarding AIX.
23748         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
23749         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
23750         Reported by Rainer Tammer.
23751
23752 2010-07-30  Bruno Haible  <bruno@clisp.org>
23753
23754         symlink: Update regarding AIX.
23755         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
23756         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
23757         Reported by Rainer Tammer.
23758
23759 2010-07-30  Bruno Haible  <bruno@clisp.org>
23760
23761         strndup: Update regarding AIX.
23762         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
23763         AIX 7.
23764         Reported by Rainer Tammer.
23765
23766 2010-07-30  Bruno Haible  <bruno@clisp.org>
23767
23768         stat: Update regarding AIX.
23769         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
23770         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
23771         Reported by Rainer Tammer.
23772
23773 2010-07-30  Bruno Haible  <bruno@clisp.org>
23774
23775         truncl: Fix autoconf test.
23776         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
23777         whether truncl works.
23778         Reported by Rainer Tammer.
23779
23780 2010-07-30  Bruno Haible  <bruno@clisp.org>
23781
23782         round: Update regarding AIX.
23783         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
23784         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
23785         Reported by Rainer Tammer.
23786
23787 2010-07-30  Bruno Haible  <bruno@clisp.org>
23788
23789         rename: Update regarding AIX.
23790         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
23791         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
23792         Reported by Rainer Tammer.
23793
23794 2010-07-30  Bruno Haible  <bruno@clisp.org>
23795
23796         printf.m4: Update regarding AIX.
23797         * m4/printf.m4: Update comments regarding AIX.
23798         Reported by Rainer Tammer.
23799
23800 2010-07-30  Bruno Haible  <bruno@clisp.org>
23801
23802         iconv: Update regarding AIX.
23803         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
23804         AIX 7.
23805         Reported by Rainer Tammer.
23806
23807 2010-07-30  Bruno Haible  <bruno@clisp.org>
23808
23809         getopt: Update regarding AIX.
23810         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
23811         no on AIX.
23812         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
23813         Reported by Rainer Tammer.
23814
23815 2010-07-30  Bruno Haible  <bruno@clisp.org>
23816
23817         ldexpl; Update regarding AIX.
23818         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
23819         on AIX 7.
23820         Reported by Rainer Tammer.
23821
23822 2010-07-30  Bruno Haible  <bruno@clisp.org>
23823
23824         frexpl: Update regarding AIX.
23825         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
23826         on AIX 7.
23827         Reported by Rainer Tammer.
23828
23829 2010-07-30  Bruno Haible  <bruno@clisp.org>
23830
23831         open, fopen: Update regarding AIX.
23832         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
23833         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
23834         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
23835         * doc/posix-functions/fopen.texi: Likewise.
23836         Reported by Rainer Tammer.
23837
23838 2010-07-30  Bruno Haible  <bruno@clisp.org>
23839
23840         chown: Update doc regarding AIX.
23841         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
23842         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
23843         Reported by Rainer Tammer.
23844
23845 2010-07-30  Eric Blake  <eblake@redhat.com>
23846
23847         strtod: fix bug in replacement function on AIX
23848         * lib/strtod.c (strtod): Special case broken "0x" parse in
23849         underlying strtod.
23850         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
23851         * doc/posix-functions/strtod.texi (strtod): Likewise.
23852         Reported by Rainer Tammer.
23853
23854 2010-07-30  Bruno Haible  <bruno@clisp.org>
23855
23856         mbrlen: Fix cross-compilation guess for AIX.
23857         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
23858         guess. Leftover from 2008-12-22.
23859
23860 2010-07-30  Bruno Haible  <bruno@clisp.org>
23861
23862         mbrtowc: Fix cross-compilation guess for AIX.
23863         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
23864         guess. Leftover from 2008-12-21.
23865
23866 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
23867
23868         init.sh: work around trap limitation of some shells
23869         * tests/init.sh (setup_): Move exit trap outside of shell function.
23870
23871 2010-07-29  Eric Blake  <eblake@redhat.com>
23872
23873         strtod: aid debugging
23874         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
23875         understanding why strtod is rejected.
23876
23877 2010-07-28  Bruno Haible  <bruno@clisp.org>
23878
23879         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
23880         * lib/unistr/u8-chr.c: Include <string.h>.
23881         * tests/unistr/test-u8-chr.c: Likewise.
23882         * tests/unistr/test-u16-chr.c: Likewise.
23883         * tests/unistr/test-u32-chr.c: Likewise.
23884         * tests/unistr/test-u8-strchr.c: Likewise.
23885         * tests/unistr/test-u16-strchr.c: Likewise.
23886         * tests/unistr/test-u32-strchr.c: Likewise.
23887         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
23888         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
23889         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
23890         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
23891
23892 2010-07-28  Bruno Haible  <bruno@clisp.org>
23893
23894         Use spaces for indentation, not tabs.
23895         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
23896
23897 2010-07-27  Bruno Haible  <bruno@clisp.org>
23898
23899         mbspcasecmp: Fix function specification.
23900         * lib/string.in.h (mbspcasecmp): Fix specification comment.
23901         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
23902         Reported by Eric Blake <eblake@redhat.com>.
23903
23904 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
23905
23906         timespec: use cast and not conditional, as truncation isn't possible
23907         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
23908         instead of a conditional.  Comment about the situation in more detail.
23909         This undoes most of the 2009-10-29 patch.
23910
23911 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
23912
23913         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
23914         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
23915         * lib/unistr/u8-strchr.c: Likewise.
23916         * modules/unistr/u8-chr: Depend on memchr.
23917
23918         unistr/u*-strchr: add tests
23919         * modules/unistr/u8-strchr-tests: New file.
23920         * modules/unistr/u16-strchr-tests: New file.
23921         * modules/unistr/u32-strchr-tests: New file.
23922         * tests/unistr/test-strchr.h: New file.
23923         * tests/unistr/test-u8-strchr.c: New file.
23924         * tests/unistr/test-u16-strchr.c: New file.
23925         * tests/unistr/test-u32-strchr.c: New file.
23926
23927         unistr/u*-chr: test multibyte sequences more
23928         * tests/unistr/test-chr.h: Do complete testing of the characters in the
23929         test vector.
23930         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
23931         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
23932         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
23933
23934         unistr/u*-chr: test multibyte sequences
23935         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
23936
23937         unistr/u*-chr: prepare for multibyte tests
23938         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
23939         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
23940         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
23941         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
23942         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
23943         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
23944
23945 2010-07-18  Bruno Haible  <bruno@clisp.org>
23946
23947         unistr/u8-strchr: Optimize non-ASCII argument case.
23948         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
23949         because the first byte often matches anyway.
23950         Reported by Pádraig Brady <P@draigbrady.com>.
23951
23952 2010-07-15  Karl Berry  <karl@gnu.org>
23953
23954         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
23955
23956 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
23957
23958         getcwd: on Solaris, work better if ancestors are inaccessible
23959         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
23960         buffer and size, try again with a large buffer.  This works better
23961         on Solaris, since its getcwd succeeds even if the path to the root
23962         is inaccessible, and this is helpful in common cases such as .zfs
23963         hidden directories.  Problem reported by J Chapman Flack in
23964         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
23965         Use system getcwd if it's declared, not merely if it's partly
23966         working; use the partly-working test only to avoid needless effort
23967         if the system getcwd fails.
23968         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
23969         comment that was already obsolete and is now even more obsolete.
23970         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
23971         now might call strdup.
23972
23973 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
23974
23975         pthread: Add enough so that coreutils/src/sort.c compiles.
23976         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
23977         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
23978         gnulib. Include <sched.h> and <time.h>, as per POSIX.
23979         Include <sys/types.h>, in case it defines pthread_t.
23980         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
23981         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
23982         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
23983         (pthread_rwlockattr_t, pthread_spinlock_t):
23984         New typedefs, if HAVE_PTHREAD_T is not defined.
23985         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
23986         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
23987         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
23988         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
23989         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
23990         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
23991         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
23992         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
23993         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
23994         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
23995         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
23996         New macros.
23997         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
23998         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
23999         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
24000         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
24001         (pthread_spin_unlock): New dummy functions.
24002         (pthread_create): Return EAGAIN; don't set errno.
24003         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
24004         require AC_C_INLINE.
24005         * modules/pthread (Depends-on): Add sched, time.
24006         (pthread.h): Use AM_V_GEN.
24007
24008 2010-07-13  Bruno Haible  <bruno@clisp.org>
24009
24010         striconveh: Don't malloc memory if the result buffer is sufficient.
24011         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
24012         buffer if its size is sufficient.
24013         Reported by Ludovic Courtès <ludo@gnu.org>.
24014
24015 2010-07-13  Bruno Haible  <bruno@clisp.org>
24016
24017         strtod: Add safety check.
24018         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
24019
24020 2010-07-12  Bruno Haible  <bruno@clisp.org>
24021
24022         Unify tests that set gl_cv_func_ldexpl_no_libm.
24023         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
24024         gl_FUNC_LDEXPL.
24025         (gl_FUNC_LDEXPL): Invoke it.
24026         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
24027
24028 2010-07-12  Bruno Haible  <bruno@clisp.org>
24029
24030         Unify tests that set gl_cv_func_ldexp_no_libm.
24031         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
24032         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
24033         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
24034         (configure.ac): Simply invoke gl_FUNC_LDEXP.
24035         * modules/strtod (Files): Add m4/ldexp.m4.
24036
24037 2010-07-12  Bruno Haible  <bruno@clisp.org>
24038
24039         Unify tests that set gl_cv_func_frexpl_no_libm.
24040         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
24041         gl_FUNC_FREXPL_NO_LIBM.
24042         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
24043         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
24044
24045 2010-07-12  Bruno Haible  <bruno@clisp.org>
24046
24047         Unify tests that set gl_cv_func_frexp_no_libm.
24048         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
24049         gl_FUNC_FREXP_NO_LIBM.
24050         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
24051         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
24052
24053 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
24054
24055         memcoll: clarify sizes versus lengths, document better, and tweak perf
24056         * lib/memcoll.c (strcoll_loop, memcoll0):
24057         Improve quality of descriptive comments.  Name variables
24058         consistently as to whether they are lengths (which do not include
24059         terminating null) versus sizes (which do).
24060         * lib/xmemcoll.c (xmemcoll0): Likewise.
24061         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
24062         returned when s1size == 0; this is easier to compile and saves
24063         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
24064
24065 2010-07-12  Bruno Haible  <bruno@clisp.org>
24066
24067         Tests for module '_Exit'.
24068         * modules/_Exit-tests: New file.
24069         * tests/test-_Exit.sh: New file.
24070         * tests/test-_Exit.c: New file.
24071
24072         New module '_Exit'.
24073         * lib/stdlib.in.h (__attribute__): New macro.
24074         (_Exit): New declaration.
24075         * lib/_Exit.c: New file.
24076         * m4/_Exit.m4: New file.
24077         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
24078         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
24079         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
24080         * modules/_Exit: New file.
24081         * tests/test-stdlib-c++.cc (_Exit): Check signature.
24082         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
24083
24084 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
24085
24086         strtod: make it more-accurate typically, and don't require libm
24087         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
24088         Include limits.h.  Don't include string.h.
24089         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
24090         (locale_isspace): New function, so that no casts are needed to
24091         check whether *s is a space.
24092         (ldexp): Provide an unused dummy if not available.
24093         (scale_radix_exp, parse_number, underlying_strtod): New functions.
24094         (strtod): Use them.  This implementation prefers to use the
24095         underlying strtod if available, falling back on our own code
24096         only to fix known bugs.  This is more likely to produce an
24097         accurate result.  Also, it avoids the use of libm functions.
24098         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
24099         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
24100         was absent, but it caused a test failure with coreutils.
24101         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
24102         with libm.
24103         * modules/strtod (Makefile.am, Link): libm is no longer needed.
24104         * modules/strtod-tests (Makefile.am): Likewise.
24105
24106 2010-07-11  Pádraig Brady  <P@draigBrady.com>
24107             Bruno Haible  <bruno@clisp.org>
24108
24109         unistr/u8-strchr: Optimize ASCII argument case.
24110         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
24111
24112 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
24113
24114         (x)memcoll: minor tweaks
24115         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
24116         is after the type that it qualifies.
24117         (memcoll0): Likewise.
24118         * lib/memcoll.h (memcoll0): Likewise.
24119         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
24120         * lib/xmemcoll.h (xmemcoll0): Likewise.
24121         * lib/memcoll.c (memcoll0): Correct the comment.  This function
24122         differs from memcoll in that the NUL byte is part of the argument.
24123         Omit the abort-checks, as performance is a real issue here.  Plus,
24124         the checks were wrong anyway (an off-by-one error).  Omit local
24125         variable 'diff', as it's a bit clearer that way.
24126         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
24127         no longer needed.
24128
24129 2010-07-08  Chen Guo <chenguo4@yahoo.com>
24130
24131         (x)memcoll: speedup when input is known to be NUL delimited
24132         * lib/memcoll.c: Include stdlib.
24133         (memcoll0): New function.
24134         (strcoll_loop): New function, refactored for use in both memcoll
24135         and memcoll0.
24136         * lib/memcoll.h (memcoll0): Add prototype.
24137         * lib/xmemcoll.c (xmemcoll0): New function.
24138         (collate_error): New function, refactored for use in both xmemcoll
24139         and xmemcoll0.
24140         * lib/xmemcoll.h (xmemcoll0): Add prototype.
24141         * m4/memcoll.m4: add inline invocation.
24142
24143 2010-07-06  Pádraig Brady  <P@draigBrady.com>
24144
24145         * build-aux/bootstrap: Remove any local translations
24146         from the translation project synchronization directory,
24147         so that local only translations are not distributed.
24148
24149 2010-07-04  Bruno Haible  <bruno@clisp.org>
24150
24151         fsusage: Clarify which code applies to which platforms.
24152         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
24153         platform.
24154         * lib/fsusage.c (get_fs_usage): Likewise.
24155
24156 2010-07-04  Bruno Haible  <bruno@clisp.org>
24157
24158         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
24159         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
24160         Reported by Martin Lambers <marlam@marlam.de>.
24161
24162 2010-07-04  Jim Meyering  <meyering@redhat.com>
24163
24164         hash: once again explicitly disallow insertion of NULL
24165         * lib/hash.c (hash_insert0): Reinstate just-removed test:
24166         inserting a NULL pointer cannot work with these functions.
24167         Add a comment with details.
24168         This reverts part of the 2010-07-01 commit, 5bef1a35
24169         "hash: extend module to deal with non-pointer keys".
24170
24171 2010-07-01  Bruno Haible  <bruno@clisp.org>
24172
24173         stdbool: Update doc.
24174         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
24175         Info from Christian Weisgerber <naddy@mips.inka.de>.
24176
24177 2010-07-01  Jim Meyering  <meyering@redhat.com>
24178
24179         hash: extend module to deal with non-pointer keys
24180         * lib/hash.c (hash_insert0): New interface, much like hash_insert
24181         but that allows insertion of non-pointer entries.
24182         Do not disallow an ENTRY value of NULL.
24183         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
24184         * lib/hash.h (hash_insert0): Declare.
24185
24186 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
24187
24188         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
24189         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
24190         not present (i.e. with autoconf 2.59 and when using gettextize, not
24191         gnulib), require AC_GNU_SOURCE instead.
24192
24193 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
24194
24195         idpriv-drop: Fix tests.
24196         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
24197         not to the test-idpriv-droptemp program.
24198
24199 2010-06-29  Bruno Haible  <bruno@clisp.org>
24200
24201         string: Fix syntax error with g++ 2.96.
24202         * lib/string.in.h (__pure__): Remove definition.
24203         (_GL_ATTRIBUTE_PURE): New macro.
24204         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
24205         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
24206         Reported by Christian Weisgerber <naddy@mips.inka.de>.
24207
24208 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
24209
24210         unitypes: Fix bug introduced on 2010-05-18.
24211         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
24212
24213 2010-06-22  Eric Blake  <eblake@redhat.com>
24214
24215         memmem: slight optimization
24216         * lib/str-two-way.h (critical_factorization): Update comments.
24217         Reduce work during factorization phase.
24218         Reported by Carlos Bueno <carlos@bueno.org>.
24219
24220 2010-06-21  Bruno Haible  <bruno@clisp.org>
24221
24222         Fix HAVE_CALLOC_POSIX misnomer.
24223         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
24224         !HAVE_CALLOC_POSIX.
24225         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
24226         HAVE_CALLOC_POSIX.
24227         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
24228         instead of HAVE_CALLOC_POSIX.
24229         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
24230         HAVE_CALLOC_POSIX.
24231
24232         Use modern idiom for calloc() replacement.
24233         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
24234         AC_FUNC_CALLOC.
24235         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
24236         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
24237         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24238         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
24239         (gl_REPLACE_CALLOC): New macro.
24240
24241 2010-06-21  Bruno Haible  <bruno@clisp.org>
24242
24243         Fix HAVE_REALLOC_POSIX misnomer.
24244         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
24245         !HAVE_REALLOC_POSIX.
24246         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
24247         HAVE_REALLOC_POSIX.
24248         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
24249         instead of HAVE_REALLOC_POSIX.
24250         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
24251         HAVE_REALLOC_POSIX.
24252
24253         Use modern idiom for realloc() replacement.
24254         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
24255         AC_FUNC_REALLOC.
24256         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
24257         Autoconf's AC_FUNC_REALLOC.
24258         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24259         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
24260         (gl_REPLACE_REALLOC): New macro.
24261         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
24262
24263 2010-06-21  Bruno Haible  <bruno@clisp.org>
24264
24265         Fix HAVE_MALLOC_POSIX misnomer.
24266         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
24267         !HAVE_MALLOC_POSIX.
24268         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
24269         HAVE_MALLOC_POSIX.
24270         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
24271         instead of HAVE_MALLOC_POSIX.
24272         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
24273         HAVE_MALLOC_POSIX.
24274
24275         Use modern idiom for malloc() replacement.
24276         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
24277         AC_FUNC_MALLOC.
24278         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
24279         Autoconf's AC_FUNC_MALLOC.
24280         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24281         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
24282         (gl_REPLACE_MALLOC): New macro.
24283         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
24284
24285 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
24286
24287         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
24288         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
24289         This macro takes 3 arguments, not 4.
24290
24291 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
24292
24293         ipv6: fix detection under mingw
24294         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
24295         in6_addr.
24296
24297 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
24298
24299         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
24300         that strtod() works when cross-compiling to a glibc version known
24301         to work.
24302
24303 2010-06-15  Bruno Haible  <bruno@clisp.org>
24304
24305         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
24306
24307 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
24308
24309         select: Correct timeout.
24310         * lib/select.c (rpl_select): Compute wait_timeout correctly.
24311
24312 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24313
24314         git-version-gen: init shell var to avoid env var influence
24315         * build-aux/git-version-gen (v): Init shell var to empty.
24316
24317 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
24318
24319         priv-set: Don't assume that priv.h exists merely because getppriv does.
24320         See Jan Andersen's bug report about AIX 5L in
24321         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
24322         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
24323         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
24324         * lib/priv-set.h: Likewise.
24325         * tests/test-priv-set.c: Likewise.
24326
24327 2010-06-13  Bruno Haible  <bruno@clisp.org>
24328
24329         relocatable: Make it easier to test whether to install wrappers.
24330         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
24331         RELOCATABLE_VIA_WRAPPER.
24332
24333 2010-06-13  Bruno Haible  <bruno@clisp.org>
24334
24335         gnulib-tool: Display specified modules and dependencies differently.
24336         * gnulib-tool (func_show_module_list): New function.
24337         (func_import, func_create_testdir): Invoke it.
24338         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24339
24340 2010-06-13  Bruno Haible  <bruno@clisp.org>
24341
24342         gnulib-tool: Align code of func_import and func_create_testdir.
24343         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
24344         specified_modules.
24345
24346 2010-06-12  Jim Meyering  <meyering@redhat.com>
24347
24348         test-inttostr: avoid spurious failure on Solaris 9
24349         * tests/test-inttostr.c (main): Skip the test when snprintf fails
24350         to accept "%ju".  Reported by Bruno Haible.
24351
24352 2010-06-11  Jim Meyering  <meyering@redhat.com>
24353
24354         test-sys_socket: mark variables as used more readably
24355         * tests/test-sys_socket.c (main): Mark otherwise unused variables
24356         as "used" explicitly via (void) statement casts.  This is more
24357         readable than using them in an artificial return expression.
24358         Suggestion from Bruno Haible.
24359
24360 2010-06-11  Bruno Haible  <bruno@clisp.org>
24361
24362         Avoid some more warnings from "gcc -Wwrite-strings".
24363         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
24364         to 'const char *'.
24365         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
24366         * tests/test-c-strcasestr.c (main): Likewise.
24367         * tests/test-mbscasestr1.c (main): Likewise.
24368         * tests/test-mbscasestr2.c (main): Likewise.
24369         * tests/test-memmem.c (main): Likewise.
24370         * tests/test-strstr.c (main): Likewise.
24371         * tests/test-strcasestr.c (main): Likewise.
24372
24373 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24374
24375         init.sh: change framework_failure_ to fail with status 99, not 1
24376         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
24377         automake's parallel-tests rule that this is an unexpected failure,
24378         even if the test is listed in XFAIL_TESTS.
24379
24380 2010-06-11  Jim Meyering  <meyering@redhat.com>
24381
24382         test-inttostr: avoid warnings about 4-6KB literal strings
24383         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
24384         Include "macros.h", for its definition of ASSERT.
24385         (CK): s/assert/ASSERT/
24386         * modules/inttostr-tests (Files): Add macros.h.
24387
24388         init.sh: don't use $ME_ or skip_ before they are defined
24389         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
24390         their first uses.  Also hoist their companions: warn_, fail_,
24391         framework_failure_, $stderr_fileno.  Prompted by a patch from
24392         Stefano Lattarini.
24393
24394         test-sys_socket: avoid set-but-not-used warnings from gcc
24395         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
24396         avoid warning about set-but-not-used variables.
24397
24398         test-xvasprintf: avoid 'const' discard warnings
24399         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
24400         "const" when assigning from literal strings.
24401         (test_xasprintf): Add "void" in function argument list to placate
24402         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
24403
24404         tests: avoid compilation warnings in argmatch and exclude tests...
24405         in packages that define ARGMATCH_DIE_DECL, like coreutils.
24406         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
24407         Since it always exits, declare with the "noreturn" attribute.
24408         * tests/test-argmatch.c: Likewise.
24409
24410         tests: avoid 'const' discard warnings in mbsstr tests
24411         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
24412         * tests/test-mbsstr2.c (main): Likewise.
24413
24414         test-verify: avoid warning from gcc's -Wmissing-declarations
24415         * tests/test-verify.c (function): Declare to be static.
24416
24417         test-inttostr.c: include <string.h> for use of strcmp
24418         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
24419
24420         test-linkat: avoid failed assertion on "other" architectures
24421         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
24422         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
24423         sparc: https://bugs.launchpad.net/bugs/591968
24424
24425 2010-06-11  Jim Meyering  <meyering@redhat.com>
24426
24427         printf.m4: avoid autoconf's "Expanded Before Required" warning
24428         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
24429         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
24430         autoconf warning.
24431
24432 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
24433
24434         Replacement header templates are now named with ".in", not "_".
24435         * doc/gnulib-intro.texi: Correct.
24436
24437 2010-06-10  Jim Meyering  <meyering@redhat.com>
24438
24439         inttostr-tests: depend on snprintf, not snprintf-posix
24440         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
24441         snprintf-posix, to avoid this aclocal failure:
24442           missing file gnulib-tests/vasnprintf.c
24443           configure.ac:45: error: expected source file, required through \
24444           AC_LIBSOURCES, not found
24445
24446 2010-06-10  Jim Meyering  <meyering@redhat.com>
24447
24448         inttostr: add a new function, inttostr, and tests
24449         The namesake function was not available.  The existence of the
24450         template file, inttostr.c makes its addition nontrivial.
24451         * lib/anytostr.c: Rename from inttostr.c.
24452         (anytostr): Rename from inttostr.
24453         * lib/inttostr.c: New file.
24454         * modules/inttostr (Files): Add anytostr.c.
24455         (Makefile.am): Set lib_SOURCES instead of ...
24456         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
24457         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
24458         * lib/offtostr.c: Likewise.
24459         * lib/uinttostr.c: Likewise.
24460         * lib/umaxtostr.c: Likewise.
24461         * modules/inttostr-tests: New file.
24462         * tests/test-inttostr.c: New file.  Test these functions.
24463
24464 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
24465             Bruno Haible  <bruno@clisp.org>
24466
24467         Add "Extending Gnulib" chapter to manual.
24468         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
24469         chapter.
24470         (Extending Gnulib): New chapter.
24471         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
24472         chapter.
24473
24474 2010-06-09  Bruno Haible  <bruno@clisp.org>
24475
24476         Avoid relocwrapper link errors due to gnulib replacement functions.
24477         * lib/areadlink.c: Use the system's malloc, realloc functions.
24478         (areadlink): Set errno to ENOMEM explicitly.
24479         * modules/areadlink (Depends-on): Remove malloc-posix.
24480         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24481
24482 2010-06-09  Bruno Haible  <bruno@clisp.org>
24483
24484         Avoid relocwrapper link errors due to gnulib replacement functions.
24485         * lib/canonicalize-lgpl.c: Use the system's malloc function.
24486         * lib/malloca.c: Likewise.
24487         * lib/relocatable.c: Likewise.
24488         * lib/progreloc.c: Use the system's malloc, sprintf functions.
24489         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
24490         * lib/setenv.c: Use the system's malloc, realloc functions.
24491         * lib/strerror.c: Use the system's sprintf function.
24492         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24493
24494 2010-06-04  Bruno Haible  <bruno@clisp.org>
24495
24496         Prefer documented low-level autoconf macro names.
24497         * m4/lib-link.m4: Use m4_translit instead of translit.
24498         * m4/environ.m4: Likewise.
24499         * m4/mathfunc.m4: Likewise.
24500         * m4/onceonly.m4: Likewise.
24501         * m4/stdint.m4: Likewise.
24502         Suggested by Eric Blake.
24503
24504 2010-06-04  Martin Lambers  <marlam@marlam.de>
24505             Bruno Haible  <bruno@clisp.org>
24506
24507         havelib: Allow library names with '+' characters.
24508         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
24509         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
24510
24511 2010-06-09  Bruno Haible  <bruno@clisp.org>
24512
24513         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
24514         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
24515         realloc failed.
24516
24517 2010-06-08  Peter Simons  <simons@cryp.to>
24518
24519         maint.mk: make the news-check rule more configurable
24520         * top/maint.mk (news-check-lines-spec): New variable.
24521         (news-check): Use "sed -n 1,10p" in place of "head".
24522
24523 2010-06-07  Jim Meyering  <meyering@redhat.com>
24524
24525         do-release-commit-and-tag: fix typo in --help
24526         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
24527
24528         regex: avoid new dead-code warning with gcc-4.6.0
24529         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
24530         if-block containing a while-loop.  It's been unused for at least
24531         5 years.
24532
24533 2010-06-05  Bruno Haible  <bruno@clisp.org>
24534
24535         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
24536         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
24537
24538 2010-06-04  Bruno Haible  <bruno@clisp.org>
24539
24540         Update to GNU gettext 0.18.1.
24541         * modules/gettext (configure.ac): Require gettext infrastructure from
24542         version 0.18.1.
24543
24544 2010-06-03  Bruno Haible  <bruno@clisp.org>
24545
24546         Don't use AC_LIBOBJ with file names in subdirectories.
24547         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
24548         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
24549         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
24550         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
24551         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
24552         gl_LIBUNISTRING_LIBSOURCE.
24553         (Makefile.am): Augment lib_SOURCES here, conditionally.
24554         * NEWS: Drop requirement for Automake option 'subdir-objects'.
24555
24556 2010-06-03  Bruno Haible  <bruno@clisp.org>
24557
24558         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
24559         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
24560         expansion does not end with a newline.
24561         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
24562         unnecessary newline.
24563
24564 2010-06-03  Bruno Haible  <bruno@clisp.org>
24565
24566         Reduce dependencies.
24567         * tests/test-quotearg.h: New file, extracted from
24568         tests/test-quotearg.c.
24569         * tests/test-quotearg-simple.c: New file, extracted from
24570         tests/test-quotearg.c.
24571         * tests/test-quotearg.c: Don't include <ctype.h>.
24572         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
24573         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
24574         use_quote_double_quotes, use_quotearg_colon): Moved to
24575         tests/test-quotearg.h.
24576         (results_g, flag_results, custom_quotes, custom_results): Moved
24577         to tests/test-quotearg-simple.c.
24578         (main): Moved the part that does not depend on gettext to
24579         tests/test-quotearg-simple.c. Return 77 if the test cannot be
24580         performed.
24581         * modules/quotearg-simple: New file.
24582         * modules/quotearg-simple-tests: New file.
24583         * modules/quotearg (Depends-on): Add quotearg-simple.
24584         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
24585         (Files): Add tests/test-quotearg.h.
24586         Reported by Paolo Bonzini.
24587
24588 2010-06-03  Bruno Haible  <bruno@clisp.org>
24589
24590         Reduce dependencies.
24591         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
24592
24593 2010-06-03  Bruno Haible  <bruno@clisp.org>
24594
24595         time: Undefine more broken macros.
24596         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
24597         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
24598         Reported by Eric Blake.
24599
24600 2010-06-03  Bruno Haible  <bruno@clisp.org>
24601
24602         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
24603         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
24604         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
24605         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
24606         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
24607         Reported by Ludovic Courtès <ludo@gnu.org>.
24608
24609 2010-06-02  Eric Blake  <eblake@redhat.com>
24610
24611         time: work with mingw + pthreads-win32 library
24612         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
24613         if timespec is defined only in pthread.h.
24614         * modules/time (Makefile.am): Substitute it.
24615         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
24616         <pthread.h>, when needed.
24617         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
24618         from the library.
24619
24620 2010-05-31  Bruno Haible  <bruno@clisp.org>
24621
24622         Avoid expanding two macros in the wrong order.
24623         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
24624         gl_LIBUNISTRING if it is defined.
24625         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
24626         autoconf >= 2.64.
24627         Reported by Ludovic Courtès <ludo@gnu.org>.
24628
24629 2010-05-27  Jim Meyering  <meyering@redhat.com>
24630
24631         maint.mk: also prohibit "#undef" of always-defined symbols
24632         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
24633         Allow more than one space before the symbol name.
24634         (sc_prohibit_always-defined_macros): Use grep's -E, now that
24635         the regexp uses alternation.
24636
24637 2010-05-26  Eric Blake  <eblake@redhat.com>
24638
24639         maint.mk: avoid echo -e
24640         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
24641         Convert all uses of echo -* to printf.
24642         Reported by Matthias Bolte.
24643
24644 2010-05-25  Bruno Haible  <bruno@clisp.org>
24645
24646         Update to GNU gettext 0.18, part 2.
24647         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
24648         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
24649
24650 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24651
24652         Add missing include in test-pwrite.c.
24653         * tests/test-pwrite.c: Include string.h, for strcmp.
24654
24655 2010-05-24  Bruno Haible  <bruno@clisp.org>
24656
24657         * NEWS: Mention requirement for Automake option 'subdir-objects'.
24658
24659 2010-05-24  Bruno Haible  <bruno@clisp.org>
24660
24661         Don't use conversion with transliteration in u{8,16,32}_strcoll.
24662         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
24663         iconveh_error argument.
24664         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
24665         U_STRCONV_TO_LOCALE.
24666         * lib/unistr/u16-strcoll.c: Likewise.
24667         * lib/unistr/u32-strcoll.c: Likewise.
24668         * modules/unistr/u8-strcoll (Depends-on): Add
24669         uniconv/u8-strconv-to-enc, localcharset. Remove
24670         uniconv/u8-strconv-to-locale.
24671         (configure.ac): Bump version number.
24672         * modules/unistr/u16-strcoll (Depends-on): Add
24673         uniconv/u16-strconv-to-enc, localcharset. Remove
24674         uniconv/u16-strconv-to-locale.
24675         (configure.ac): Bump version number.
24676         * modules/unistr/u32-strcoll (Depends-on): Add
24677         uniconv/u32-strconv-to-enc, localcharset. Remove
24678         uniconv/u32-strconv-to-locale.
24679         (configure.ac): Bump version number.
24680
24681 2010-05-24  Bruno Haible  <bruno@clisp.org>
24682
24683         Avoid a test failure on NetBSD 5.0.
24684         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
24685         an iconv() bug.
24686
24687 2010-05-24  Bruno Haible  <bruno@clisp.org>
24688
24689         Adjust #include directive style.
24690         * modules/regex (Includes): Recommend to write <regex.h>.
24691
24692 2010-05-24  Bruno Haible  <bruno@clisp.org>
24693
24694         regex: Don't require alloca.
24695         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
24696         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
24697         only inside if (0).
24698
24699 2010-05-23  Jim Meyering  <meyering@redhat.com>
24700
24701         test-renameat.c: include <sys/stat.h>
24702         * tests/test-renameat.c: Include <sys/stat.h>; required for
24703         definition of S_IS* macros.
24704
24705 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
24706
24707         Update maintainer documentation for 'relocatable-prog' module.
24708         * doc/relocatable-maint.texi: Update.
24709         Comments by Bruno Haible.
24710
24711 2010-05-23  Bruno Haible  <bruno@clisp.org>
24712
24713         git-merge-changelog: Enable --split-merged-entry by default.
24714         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
24715         (usage): Don't mention this option any more.
24716         Reported by Ralf Wildenhues.
24717
24718 2010-05-23  Jim Meyering  <meyering@redhat.com>
24719
24720         test-pwrite: do not leave behind a test file named "out"
24721         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
24722         The trivial-looking use of init.sh is really necessary.
24723         It ensures that the temporary file, "out", is created in
24724         a temporary directory, and removed upon termination.
24725         * tests/test-pwrite.sh: Re-add file.
24726         * modules/pwrite-tests: Reference it.
24727
24728 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24729
24730         Fix output redirection buglet in init.sh.
24731         * tests/init.sh: Fix redirection of stderr.
24732
24733 2010-05-20  Simon Josefsson  <simon@josefsson.org>
24734
24735         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
24736
24737 2010-05-17  Simon Josefsson  <simon@josefsson.org>
24738
24739         * modules/valgrind-tests: New file.
24740         * m4/valgrind-tests.m4: New file.
24741         * doc/valgrind-tests.texi: New file.
24742         * doc/gnulib.texi (Running self-tests under valgrind): New
24743         section.
24744
24745 2010-05-19  Bruno Haible  <bruno@clisp.org>
24746
24747         Clean up dead code in recent commit.
24748         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
24749         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
24750         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
24751         Suggested by Paolo Bonzini.
24752
24753 2010-05-19  Bruno Haible  <bruno@clisp.org>
24754
24755         Avoid valgrind error reports from libunistring.
24756         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
24757         * modules/libunistring (Files): Add it.
24758         * modules/libunistring-optional (Files): Likewise.
24759
24760 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
24761             Bruno Haible  <bruno@clisp.org>
24762
24763         New module 'libunistring-optional'.
24764         * modules/libunistring-optional: New file.
24765         * m4/libunistring-base.m4: New file.
24766         * m4/libunistring-optional.m4: New file.
24767         * lib/unicase.in.h: Renamed from lib/unicase.h.
24768         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
24769         * lib/unictype.in.h: Renamed from lib/unictype.h.
24770         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
24771         * lib/uniname.in.h: Renamed from lib/uniname.h.
24772         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
24773         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
24774         * lib/unistr.in.h: Renamed from lib/unistr.h.
24775         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
24776         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
24777         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
24778         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
24779         gl_LIBUNISTRING. If the library was found, determine the installed
24780         version and set LIBUNISTRING_VERSION.
24781         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
24782         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
24783         handle a configuration option --with-included-libunistring.
24784         * modules/libunistring (Files): Add m4/absolute-header.m4.
24785         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
24786         Add m4/libunistring-base.m4.
24787         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24788         (Makefile.am): Build unicase.h from unicase.in.h.
24789         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
24790         Add m4/libunistring-base.m4.
24791         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24792         (Makefile.am): Build uniconv.h from uniconv.in.h.
24793         * modules/unictype/base (Files): Use unictype.in.h instead of
24794         unictype.h. Add m4/libunistring-base.m4.
24795         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24796         (Makefile.am): Build unictype.h from unictype.in.h.
24797         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
24798         Add m4/libunistring-base.m4.
24799         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24800         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
24801         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
24802         Add m4/libunistring-base.m4.
24803         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24804         (Makefile.am): Build uniname.h from uniname.in.h.
24805         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
24806         Add m4/libunistring-base.m4.
24807         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24808         (Makefile.am): Build uninorm.h from uninorm.in.h.
24809         * modules/unistdio/base (Files): Use unistdio.in.h instead of
24810         unistdio.h. Add m4/libunistring-base.m4.
24811         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24812         (Makefile.am): Build unistdio.h from unistdio.in.h.
24813         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
24814         Add m4/libunistring-base.m4.
24815         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24816         (Makefile.am): Build unistr.h from unistr.in.h.
24817         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
24818         Add m4/libunistring-base.m4.
24819         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24820         (Makefile.am): Build unitypes.h from unitypes.in.h.
24821         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
24822         Add m4/libunistring-base.m4.
24823         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24824         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
24825         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
24826         uniwidth.h. Add m4/libunistring-base.m4.
24827         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24828         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
24829         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
24830         instead of augmenting lib_SOURCES.
24831         * modules/unicase/empty-suffix-context: Likewise.
24832         * modules/unicase/locale-language: Likewise.
24833         * modules/unicase/tolower: Likewise.
24834         * modules/unicase/totitle: Likewise.
24835         * modules/unicase/toupper: Likewise.
24836         * modules/unicase/u8-casecmp: Likewise.
24837         * modules/unicase/u8-casecoll: Likewise.
24838         * modules/unicase/u8-casefold: Likewise.
24839         * modules/unicase/u8-casexfrm: Likewise.
24840         * modules/unicase/u8-ct-casefold: Likewise.
24841         * modules/unicase/u8-ct-tolower: Likewise.
24842         * modules/unicase/u8-ct-totitle: Likewise.
24843         * modules/unicase/u8-ct-toupper: Likewise.
24844         * modules/unicase/u8-is-cased: Likewise.
24845         * modules/unicase/u8-is-casefolded: Likewise.
24846         * modules/unicase/u8-is-lowercase: Likewise.
24847         * modules/unicase/u8-is-titlecase: Likewise.
24848         * modules/unicase/u8-is-uppercase: Likewise.
24849         * modules/unicase/u8-prefix-context: Likewise.
24850         * modules/unicase/u8-suffix-context: Likewise.
24851         * modules/unicase/u8-tolower: Likewise.
24852         * modules/unicase/u8-totitle: Likewise.
24853         * modules/unicase/u8-toupper: Likewise.
24854         * modules/unicase/u16-casecmp: Likewise.
24855         * modules/unicase/u16-casecoll: Likewise.
24856         * modules/unicase/u16-casefold: Likewise.
24857         * modules/unicase/u16-casexfrm: Likewise.
24858         * modules/unicase/u16-ct-casefold: Likewise.
24859         * modules/unicase/u16-ct-tolower: Likewise.
24860         * modules/unicase/u16-ct-totitle: Likewise.
24861         * modules/unicase/u16-ct-toupper: Likewise.
24862         * modules/unicase/u16-is-cased: Likewise.
24863         * modules/unicase/u16-is-casefolded: Likewise.
24864         * modules/unicase/u16-is-lowercase: Likewise.
24865         * modules/unicase/u16-is-titlecase: Likewise.
24866         * modules/unicase/u16-is-uppercase: Likewise.
24867         * modules/unicase/u16-prefix-context: Likewise.
24868         * modules/unicase/u16-suffix-context: Likewise.
24869         * modules/unicase/u16-tolower: Likewise.
24870         * modules/unicase/u16-totitle: Likewise.
24871         * modules/unicase/u16-toupper: Likewise.
24872         * modules/unicase/u32-casecmp: Likewise.
24873         * modules/unicase/u32-casecoll: Likewise.
24874         * modules/unicase/u32-casefold: Likewise.
24875         * modules/unicase/u32-casexfrm: Likewise.
24876         * modules/unicase/u32-ct-casefold: Likewise.
24877         * modules/unicase/u32-ct-tolower: Likewise.
24878         * modules/unicase/u32-ct-totitle: Likewise.
24879         * modules/unicase/u32-ct-toupper: Likewise.
24880         * modules/unicase/u32-is-cased: Likewise.
24881         * modules/unicase/u32-is-casefolded: Likewise.
24882         * modules/unicase/u32-is-lowercase: Likewise.
24883         * modules/unicase/u32-is-titlecase: Likewise.
24884         * modules/unicase/u32-is-uppercase: Likewise.
24885         * modules/unicase/u32-prefix-context: Likewise.
24886         * modules/unicase/u32-suffix-context: Likewise.
24887         * modules/unicase/u32-tolower: Likewise.
24888         * modules/unicase/u32-totitle: Likewise.
24889         * modules/unicase/u32-toupper: Likewise.
24890         * modules/unicase/ulc-casecmp: Likewise.
24891         * modules/unicase/ulc-casecoll: Likewise.
24892         * modules/unicase/ulc-casexfrm: Likewise.
24893         * modules/uniconv/u8-conv-from-enc: Likewise.
24894         * modules/uniconv/u8-conv-to-enc: Likewise.
24895         * modules/uniconv/u8-strconv-from-enc: Likewise.
24896         * modules/uniconv/u8-strconv-from-locale: Likewise.
24897         * modules/uniconv/u8-strconv-to-enc: Likewise.
24898         * modules/uniconv/u8-strconv-to-locale: Likewise.
24899         * modules/uniconv/u16-conv-from-enc: Likewise.
24900         * modules/uniconv/u16-conv-to-enc: Likewise.
24901         * modules/uniconv/u16-strconv-from-enc: Likewise.
24902         * modules/uniconv/u16-strconv-from-locale: Likewise.
24903         * modules/uniconv/u16-strconv-to-enc: Likewise.
24904         * modules/uniconv/u16-strconv-to-locale: Likewise.
24905         * modules/uniconv/u32-conv-from-enc: Likewise.
24906         * modules/uniconv/u32-conv-to-enc: Likewise.
24907         * modules/uniconv/u32-strconv-from-enc: Likewise.
24908         * modules/uniconv/u32-strconv-from-locale: Likewise.
24909         * modules/uniconv/u32-strconv-to-enc: Likewise.
24910         * modules/uniconv/u32-strconv-to-locale: Likewise.
24911         * modules/unictype/bidicategory-byname: Likewise.
24912         * modules/unictype/bidicategory-name: Likewise.
24913         * modules/unictype/bidicategory-of: Likewise.
24914         * modules/unictype/bidicategory-test: Likewise.
24915         * modules/unictype/block-list: Likewise.
24916         * modules/unictype/block-test: Likewise.
24917         * modules/unictype/category-C: Likewise.
24918         * modules/unictype/category-Cc: Likewise.
24919         * modules/unictype/category-Cf: Likewise.
24920         * modules/unictype/category-Cn: Likewise.
24921         * modules/unictype/category-Co: Likewise.
24922         * modules/unictype/category-Cs: Likewise.
24923         * modules/unictype/category-L: Likewise.
24924         * modules/unictype/category-Ll: Likewise.
24925         * modules/unictype/category-Lm: Likewise.
24926         * modules/unictype/category-Lo: Likewise.
24927         * modules/unictype/category-Lt: Likewise.
24928         * modules/unictype/category-Lu: Likewise.
24929         * modules/unictype/category-M: Likewise.
24930         * modules/unictype/category-Mc: Likewise.
24931         * modules/unictype/category-Me: Likewise.
24932         * modules/unictype/category-Mn: Likewise.
24933         * modules/unictype/category-N: Likewise.
24934         * modules/unictype/category-Nd: Likewise.
24935         * modules/unictype/category-Nl: Likewise.
24936         * modules/unictype/category-No: Likewise.
24937         * modules/unictype/category-P: Likewise.
24938         * modules/unictype/category-Pc: Likewise.
24939         * modules/unictype/category-Pd: Likewise.
24940         * modules/unictype/category-Pe: Likewise.
24941         * modules/unictype/category-Pf: Likewise.
24942         * modules/unictype/category-Pi: Likewise.
24943         * modules/unictype/category-Po: Likewise.
24944         * modules/unictype/category-Ps: Likewise.
24945         * modules/unictype/category-S: Likewise.
24946         * modules/unictype/category-Sc: Likewise.
24947         * modules/unictype/category-Sk: Likewise.
24948         * modules/unictype/category-Sm: Likewise.
24949         * modules/unictype/category-So: Likewise.
24950         * modules/unictype/category-Z: Likewise.
24951         * modules/unictype/category-Zl: Likewise.
24952         * modules/unictype/category-Zp: Likewise.
24953         * modules/unictype/category-Zs: Likewise.
24954         * modules/unictype/category-and: Likewise.
24955         * modules/unictype/category-and-not: Likewise.
24956         * modules/unictype/category-byname: Likewise.
24957         * modules/unictype/category-name: Likewise.
24958         * modules/unictype/category-none: Likewise.
24959         * modules/unictype/category-of: Likewise.
24960         * modules/unictype/category-or: Likewise.
24961         * modules/unictype/category-test: Likewise.
24962         * modules/unictype/combining-class: Likewise.
24963         * modules/unictype/ctype-alnum: Likewise.
24964         * modules/unictype/ctype-alpha: Likewise.
24965         * modules/unictype/ctype-blank: Likewise.
24966         * modules/unictype/ctype-cntrl: Likewise.
24967         * modules/unictype/ctype-digit: Likewise.
24968         * modules/unictype/ctype-graph: Likewise.
24969         * modules/unictype/ctype-lower: Likewise.
24970         * modules/unictype/ctype-print: Likewise.
24971         * modules/unictype/ctype-punct: Likewise.
24972         * modules/unictype/ctype-space: Likewise.
24973         * modules/unictype/ctype-upper: Likewise.
24974         * modules/unictype/ctype-xdigit: Likewise.
24975         * modules/unictype/decimal-digit: Likewise.
24976         * modules/unictype/digit: Likewise.
24977         * modules/unictype/mirror: Likewise.
24978         * modules/unictype/numeric: Likewise.
24979         * modules/unictype/property-alphabetic: Likewise.
24980         * modules/unictype/property-ascii-hex-digit: Likewise.
24981         * modules/unictype/property-bidi-arabic-digit: Likewise.
24982         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
24983         * modules/unictype/property-bidi-block-separator: Likewise.
24984         * modules/unictype/property-bidi-boundary-neutral: Likewise.
24985         * modules/unictype/property-bidi-common-separator: Likewise.
24986         * modules/unictype/property-bidi-control: Likewise.
24987         * modules/unictype/property-bidi-embedding-or-override: Likewise.
24988         * modules/unictype/property-bidi-eur-num-separator: Likewise.
24989         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
24990         * modules/unictype/property-bidi-european-digit: Likewise.
24991         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
24992         * modules/unictype/property-bidi-left-to-right: Likewise.
24993         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
24994         * modules/unictype/property-bidi-other-neutral: Likewise.
24995         * modules/unictype/property-bidi-pdf: Likewise.
24996         * modules/unictype/property-bidi-segment-separator: Likewise.
24997         * modules/unictype/property-bidi-whitespace: Likewise.
24998         * modules/unictype/property-byname: Likewise.
24999         * modules/unictype/property-combining: Likewise.
25000         * modules/unictype/property-composite: Likewise.
25001         * modules/unictype/property-currency-symbol: Likewise.
25002         * modules/unictype/property-dash: Likewise.
25003         * modules/unictype/property-decimal-digit: Likewise.
25004         * modules/unictype/property-default-ignorable-code-point: Likewise.
25005         * modules/unictype/property-deprecated: Likewise.
25006         * modules/unictype/property-diacritic: Likewise.
25007         * modules/unictype/property-extender: Likewise.
25008         * modules/unictype/property-format-control: Likewise.
25009         * modules/unictype/property-grapheme-base: Likewise.
25010         * modules/unictype/property-grapheme-extend: Likewise.
25011         * modules/unictype/property-grapheme-link: Likewise.
25012         * modules/unictype/property-hex-digit: Likewise.
25013         * modules/unictype/property-hyphen: Likewise.
25014         * modules/unictype/property-id-continue: Likewise.
25015         * modules/unictype/property-id-start: Likewise.
25016         * modules/unictype/property-ideographic: Likewise.
25017         * modules/unictype/property-ids-binary-operator: Likewise.
25018         * modules/unictype/property-ids-trinary-operator: Likewise.
25019         * modules/unictype/property-ignorable-control: Likewise.
25020         * modules/unictype/property-iso-control: Likewise.
25021         * modules/unictype/property-join-control: Likewise.
25022         * modules/unictype/property-left-of-pair: Likewise.
25023         * modules/unictype/property-line-separator: Likewise.
25024         * modules/unictype/property-logical-order-exception: Likewise.
25025         * modules/unictype/property-lowercase: Likewise.
25026         * modules/unictype/property-math: Likewise.
25027         * modules/unictype/property-non-break: Likewise.
25028         * modules/unictype/property-not-a-character: Likewise.
25029         * modules/unictype/property-numeric: Likewise.
25030         * modules/unictype/property-other-alphabetic: Likewise.
25031         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
25032         * modules/unictype/property-other-grapheme-extend: Likewise.
25033         * modules/unictype/property-other-id-continue: Likewise.
25034         * modules/unictype/property-other-id-start: Likewise.
25035         * modules/unictype/property-other-lowercase: Likewise.
25036         * modules/unictype/property-other-math: Likewise.
25037         * modules/unictype/property-other-uppercase: Likewise.
25038         * modules/unictype/property-paired-punctuation: Likewise.
25039         * modules/unictype/property-paragraph-separator: Likewise.
25040         * modules/unictype/property-pattern-syntax: Likewise.
25041         * modules/unictype/property-pattern-white-space: Likewise.
25042         * modules/unictype/property-private-use: Likewise.
25043         * modules/unictype/property-punctuation: Likewise.
25044         * modules/unictype/property-quotation-mark: Likewise.
25045         * modules/unictype/property-radical: Likewise.
25046         * modules/unictype/property-sentence-terminal: Likewise.
25047         * modules/unictype/property-soft-dotted: Likewise.
25048         * modules/unictype/property-space: Likewise.
25049         * modules/unictype/property-terminal-punctuation: Likewise.
25050         * modules/unictype/property-test: Likewise.
25051         * modules/unictype/property-titlecase: Likewise.
25052         * modules/unictype/property-unassigned-code-value: Likewise.
25053         * modules/unictype/property-unified-ideograph: Likewise.
25054         * modules/unictype/property-uppercase: Likewise.
25055         * modules/unictype/property-variation-selector: Likewise.
25056         * modules/unictype/property-white-space: Likewise.
25057         * modules/unictype/property-xid-continue: Likewise.
25058         * modules/unictype/property-xid-start: Likewise.
25059         * modules/unictype/property-zero-width: Likewise.
25060         * modules/unictype/scripts: Likewise.
25061         * modules/unictype/syntax-c-ident: Likewise.
25062         * modules/unictype/syntax-c-whitespace: Likewise.
25063         * modules/unictype/syntax-java-ident: Likewise.
25064         * modules/unictype/syntax-java-whitespace: Likewise.
25065         * modules/unilbrk/u8-possible-linebreaks: Likewise.
25066         * modules/unilbrk/u8-width-linebreaks: Likewise.
25067         * modules/unilbrk/u16-possible-linebreaks: Likewise.
25068         * modules/unilbrk/u16-width-linebreaks: Likewise.
25069         * modules/unilbrk/u32-possible-linebreaks: Likewise.
25070         * modules/unilbrk/u32-width-linebreaks: Likewise.
25071         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
25072         * modules/unilbrk/ulc-width-linebreaks: Likewise.
25073         * modules/uniname/uniname: Likewise.
25074         * modules/uninorm/canonical-decomposition: Likewise.
25075         * modules/uninorm/composition: Likewise.
25076         * modules/uninorm/decomposing-form: Likewise.
25077         * modules/uninorm/decomposition: Likewise.
25078         * modules/uninorm/filter: Likewise.
25079         * modules/uninorm/nfc: Likewise.
25080         * modules/uninorm/nfd: Likewise.
25081         * modules/uninorm/nfkc: Likewise.
25082         * modules/uninorm/nfkd: Likewise.
25083         * modules/uninorm/u8-normalize: Likewise.
25084         * modules/uninorm/u8-normcmp: Likewise.
25085         * modules/uninorm/u8-normcoll: Likewise.
25086         * modules/uninorm/u8-normxfrm: Likewise.
25087         * modules/uninorm/u16-normalize: Likewise.
25088         * modules/uninorm/u16-normcmp: Likewise.
25089         * modules/uninorm/u16-normcoll: Likewise.
25090         * modules/uninorm/u16-normxfrm: Likewise.
25091         * modules/uninorm/u32-normalize: Likewise.
25092         * modules/uninorm/u32-normcmp: Likewise.
25093         * modules/uninorm/u32-normcoll: Likewise.
25094         * modules/uninorm/u32-normxfrm: Likewise.
25095         * modules/unistdio/u8-asnprintf: Likewise.
25096         * modules/unistdio/u8-asprintf: Likewise.
25097         * modules/unistdio/u8-snprintf: Likewise.
25098         * modules/unistdio/u8-sprintf: Likewise.
25099         * modules/unistdio/u8-u8-asnprintf: Likewise.
25100         * modules/unistdio/u8-u8-asprintf: Likewise.
25101         * modules/unistdio/u8-u8-snprintf: Likewise.
25102         * modules/unistdio/u8-u8-sprintf: Likewise.
25103         * modules/unistdio/u8-u8-vasnprintf: Likewise.
25104         * modules/unistdio/u8-u8-vasprintf: Likewise.
25105         * modules/unistdio/u8-u8-vsnprintf: Likewise.
25106         * modules/unistdio/u8-u8-vsprintf: Likewise.
25107         * modules/unistdio/u8-vasnprintf: Likewise.
25108         * modules/unistdio/u8-vasprintf: Likewise.
25109         * modules/unistdio/u8-vsnprintf: Likewise.
25110         * modules/unistdio/u8-vsprintf: Likewise.
25111         * modules/unistdio/u16-asnprintf: Likewise.
25112         * modules/unistdio/u16-asprintf: Likewise.
25113         * modules/unistdio/u16-snprintf: Likewise.
25114         * modules/unistdio/u16-sprintf: Likewise.
25115         * modules/unistdio/u16-u16-asnprintf: Likewise.
25116         * modules/unistdio/u16-u16-asprintf: Likewise.
25117         * modules/unistdio/u16-u16-snprintf: Likewise.
25118         * modules/unistdio/u16-u16-sprintf: Likewise.
25119         * modules/unistdio/u16-u16-vasnprintf: Likewise.
25120         * modules/unistdio/u16-u16-vasprintf: Likewise.
25121         * modules/unistdio/u16-u16-vsnprintf: Likewise.
25122         * modules/unistdio/u16-u16-vsprintf: Likewise.
25123         * modules/unistdio/u16-vasnprintf: Likewise.
25124         * modules/unistdio/u16-vasprintf: Likewise.
25125         * modules/unistdio/u16-vsnprintf: Likewise.
25126         * modules/unistdio/u16-vsprintf: Likewise.
25127         * modules/unistdio/u32-asnprintf: Likewise.
25128         * modules/unistdio/u32-asprintf: Likewise.
25129         * modules/unistdio/u32-snprintf: Likewise.
25130         * modules/unistdio/u32-sprintf: Likewise.
25131         * modules/unistdio/u32-u32-asnprintf: Likewise.
25132         * modules/unistdio/u32-u32-asprintf: Likewise.
25133         * modules/unistdio/u32-u32-snprintf: Likewise.
25134         * modules/unistdio/u32-u32-sprintf: Likewise.
25135         * modules/unistdio/u32-u32-vasnprintf: Likewise.
25136         * modules/unistdio/u32-u32-vasprintf: Likewise.
25137         * modules/unistdio/u32-u32-vsnprintf: Likewise.
25138         * modules/unistdio/u32-u32-vsprintf: Likewise.
25139         * modules/unistdio/u32-vasnprintf: Likewise.
25140         * modules/unistdio/u32-vasprintf: Likewise.
25141         * modules/unistdio/u32-vsnprintf: Likewise.
25142         * modules/unistdio/u32-vsprintf: Likewise.
25143         * modules/unistdio/ulc-asnprintf: Likewise.
25144         * modules/unistdio/ulc-asprintf: Likewise.
25145         * modules/unistdio/ulc-fprintf: Likewise.
25146         * modules/unistdio/ulc-snprintf: Likewise.
25147         * modules/unistdio/ulc-sprintf: Likewise.
25148         * modules/unistdio/ulc-vasnprintf: Likewise.
25149         * modules/unistdio/ulc-vasprintf: Likewise.
25150         * modules/unistdio/ulc-vfprintf: Likewise.
25151         * modules/unistdio/ulc-vsnprintf: Likewise.
25152         * modules/unistdio/ulc-vsprintf: Likewise.
25153         * modules/unistr/u8-check: Likewise.
25154         * modules/unistr/u8-chr: Likewise.
25155         * modules/unistr/u8-cmp: Likewise.
25156         * modules/unistr/u8-cmp2: Likewise.
25157         * modules/unistr/u8-cpy: Likewise.
25158         * modules/unistr/u8-cpy-alloc: Likewise.
25159         * modules/unistr/u8-endswith: Likewise.
25160         * modules/unistr/u8-mblen: Likewise.
25161         * modules/unistr/u8-mbsnlen: Likewise.
25162         * modules/unistr/u8-mbtouc: Likewise.
25163         * modules/unistr/u8-mbtouc-unsafe: Likewise.
25164         * modules/unistr/u8-mbtoucr: Likewise.
25165         * modules/unistr/u8-move: Likewise.
25166         * modules/unistr/u8-next: Likewise.
25167         * modules/unistr/u8-prev: Likewise.
25168         * modules/unistr/u8-set: Likewise.
25169         * modules/unistr/u8-startswith: Likewise.
25170         * modules/unistr/u8-stpcpy: Likewise.
25171         * modules/unistr/u8-stpncpy: Likewise.
25172         * modules/unistr/u8-strcat: Likewise.
25173         * modules/unistr/u8-strchr: Likewise.
25174         * modules/unistr/u8-strcmp: Likewise.
25175         * modules/unistr/u8-strcoll: Likewise.
25176         * modules/unistr/u8-strcpy: Likewise.
25177         * modules/unistr/u8-strcspn: Likewise.
25178         * modules/unistr/u8-strdup: Likewise.
25179         * modules/unistr/u8-strlen: Likewise.
25180         * modules/unistr/u8-strmblen: Likewise.
25181         * modules/unistr/u8-strmbtouc: Likewise.
25182         * modules/unistr/u8-strncat: Likewise.
25183         * modules/unistr/u8-strncmp: Likewise.
25184         * modules/unistr/u8-strncpy: Likewise.
25185         * modules/unistr/u8-strnlen: Likewise.
25186         * modules/unistr/u8-strpbrk: Likewise.
25187         * modules/unistr/u8-strrchr: Likewise.
25188         * modules/unistr/u8-strspn: Likewise.
25189         * modules/unistr/u8-strstr: Likewise.
25190         * modules/unistr/u8-strtok: Likewise.
25191         * modules/unistr/u8-to-u16: Likewise.
25192         * modules/unistr/u8-to-u32: Likewise.
25193         * modules/unistr/u8-uctomb: Likewise.
25194         * modules/unistr/u16-check: Likewise.
25195         * modules/unistr/u16-chr: Likewise.
25196         * modules/unistr/u16-cmp: Likewise.
25197         * modules/unistr/u16-cmp2: Likewise.
25198         * modules/unistr/u16-cpy: Likewise.
25199         * modules/unistr/u16-cpy-alloc: Likewise.
25200         * modules/unistr/u16-endswith: Likewise.
25201         * modules/unistr/u16-mblen: Likewise.
25202         * modules/unistr/u16-mbsnlen: Likewise.
25203         * modules/unistr/u16-mbtouc: Likewise.
25204         * modules/unistr/u16-mbtouc-unsafe: Likewise.
25205         * modules/unistr/u16-mbtoucr: Likewise.
25206         * modules/unistr/u16-move: Likewise.
25207         * modules/unistr/u16-next: Likewise.
25208         * modules/unistr/u16-prev: Likewise.
25209         * modules/unistr/u16-set: Likewise.
25210         * modules/unistr/u16-startswith: Likewise.
25211         * modules/unistr/u16-stpcpy: Likewise.
25212         * modules/unistr/u16-stpncpy: Likewise.
25213         * modules/unistr/u16-strcat: Likewise.
25214         * modules/unistr/u16-strchr: Likewise.
25215         * modules/unistr/u16-strcmp: Likewise.
25216         * modules/unistr/u16-strcoll: Likewise.
25217         * modules/unistr/u16-strcpy: Likewise.
25218         * modules/unistr/u16-strcspn: Likewise.
25219         * modules/unistr/u16-strdup: Likewise.
25220         * modules/unistr/u16-strlen: Likewise.
25221         * modules/unistr/u16-strmblen: Likewise.
25222         * modules/unistr/u16-strmbtouc: Likewise.
25223         * modules/unistr/u16-strncat: Likewise.
25224         * modules/unistr/u16-strncmp: Likewise.
25225         * modules/unistr/u16-strncpy: Likewise.
25226         * modules/unistr/u16-strnlen: Likewise.
25227         * modules/unistr/u16-strpbrk: Likewise.
25228         * modules/unistr/u16-strrchr: Likewise.
25229         * modules/unistr/u16-strspn: Likewise.
25230         * modules/unistr/u16-strstr: Likewise.
25231         * modules/unistr/u16-strtok: Likewise.
25232         * modules/unistr/u16-to-u32: Likewise.
25233         * modules/unistr/u16-to-u8: Likewise.
25234         * modules/unistr/u16-uctomb: Likewise.
25235         * modules/unistr/u32-check: Likewise.
25236         * modules/unistr/u32-chr: Likewise.
25237         * modules/unistr/u32-cmp: Likewise.
25238         * modules/unistr/u32-cmp2: Likewise.
25239         * modules/unistr/u32-cpy: Likewise.
25240         * modules/unistr/u32-cpy-alloc: Likewise.
25241         * modules/unistr/u32-endswith: Likewise.
25242         * modules/unistr/u32-mblen: Likewise.
25243         * modules/unistr/u32-mbsnlen: Likewise.
25244         * modules/unistr/u32-mbtouc: Likewise.
25245         * modules/unistr/u32-mbtouc-unsafe: Likewise.
25246         * modules/unistr/u32-mbtoucr: Likewise.
25247         * modules/unistr/u32-move: Likewise.
25248         * modules/unistr/u32-next: Likewise.
25249         * modules/unistr/u32-prev: Likewise.
25250         * modules/unistr/u32-set: Likewise.
25251         * modules/unistr/u32-startswith: Likewise.
25252         * modules/unistr/u32-stpcpy: Likewise.
25253         * modules/unistr/u32-stpncpy: Likewise.
25254         * modules/unistr/u32-strcat: Likewise.
25255         * modules/unistr/u32-strchr: Likewise.
25256         * modules/unistr/u32-strcmp: Likewise.
25257         * modules/unistr/u32-strcoll: Likewise.
25258         * modules/unistr/u32-strcpy: Likewise.
25259         * modules/unistr/u32-strcspn: Likewise.
25260         * modules/unistr/u32-strdup: Likewise.
25261         * modules/unistr/u32-strlen: Likewise.
25262         * modules/unistr/u32-strmblen: Likewise.
25263         * modules/unistr/u32-strmbtouc: Likewise.
25264         * modules/unistr/u32-strncat: Likewise.
25265         * modules/unistr/u32-strncmp: Likewise.
25266         * modules/unistr/u32-strncpy: Likewise.
25267         * modules/unistr/u32-strnlen: Likewise.
25268         * modules/unistr/u32-strpbrk: Likewise.
25269         * modules/unistr/u32-strrchr: Likewise.
25270         * modules/unistr/u32-strspn: Likewise.
25271         * modules/unistr/u32-strstr: Likewise.
25272         * modules/unistr/u32-strtok: Likewise.
25273         * modules/unistr/u32-to-u16: Likewise.
25274         * modules/unistr/u32-to-u8: Likewise.
25275         * modules/unistr/u32-uctomb: Likewise.
25276         * modules/uniwbrk/u8-wordbreaks: Likewise.
25277         * modules/uniwbrk/u16-wordbreaks: Likewise.
25278         * modules/uniwbrk/u32-wordbreaks: Likewise.
25279         * modules/uniwbrk/ulc-wordbreaks: Likewise.
25280         * modules/uniwbrk/wordbreak-property: Likewise.
25281         * modules/uniwidth/u8-strwidth: Likewise.
25282         * modules/uniwidth/u8-width: Likewise.
25283         * modules/uniwidth/u16-strwidth: Likewise.
25284         * modules/uniwidth/u16-width: Likewise.
25285         * modules/uniwidth/u32-strwidth: Likewise.
25286         * modules/uniwidth/u32-width: Likewise.
25287         * modules/uniwidth/width: Likewise.
25288         * modules/unicase/cased-tests (Makefile.am): Link all test programs
25289         with $(LIBUNISTRING).
25290         * modules/unicase/ignorable-tests: Likewise.
25291         * modules/unicase/locale-language-tests: Likewise.
25292         * modules/unicase/tolower-tests: Likewise.
25293         * modules/unicase/totitle-tests: Likewise.
25294         * modules/unicase/toupper-tests: Likewise.
25295         * modules/unicase/u8-casecmp-tests: Likewise.
25296         * modules/unicase/u8-casecoll-tests: Likewise.
25297         * modules/unicase/u8-casefold-tests: Likewise.
25298         * modules/unicase/u8-is-cased-tests: Likewise.
25299         * modules/unicase/u8-is-casefolded-tests: Likewise.
25300         * modules/unicase/u8-is-lowercase-tests: Likewise.
25301         * modules/unicase/u8-is-titlecase-tests: Likewise.
25302         * modules/unicase/u8-is-uppercase-tests: Likewise.
25303         * modules/unicase/u8-tolower-tests: Likewise.
25304         * modules/unicase/u8-totitle-tests: Likewise.
25305         * modules/unicase/u8-toupper-tests: Likewise.
25306         * modules/unicase/u16-casecmp-tests: Likewise.
25307         * modules/unicase/u16-casecoll-tests: Likewise.
25308         * modules/unicase/u16-casefold-tests: Likewise.
25309         * modules/unicase/u16-is-cased-tests: Likewise.
25310         * modules/unicase/u16-is-casefolded-tests: Likewise.
25311         * modules/unicase/u16-is-lowercase-tests: Likewise.
25312         * modules/unicase/u16-is-titlecase-tests: Likewise.
25313         * modules/unicase/u16-is-uppercase-tests: Likewise.
25314         * modules/unicase/u16-tolower-tests: Likewise.
25315         * modules/unicase/u16-totitle-tests: Likewise.
25316         * modules/unicase/u16-toupper-tests: Likewise.
25317         * modules/unicase/u32-casecmp-tests: Likewise.
25318         * modules/unicase/u32-casecoll-tests: Likewise.
25319         * modules/unicase/u32-casefold-tests: Likewise.
25320         * modules/unicase/u32-is-cased-tests: Likewise.
25321         * modules/unicase/u32-is-casefolded-tests: Likewise.
25322         * modules/unicase/u32-is-lowercase-tests: Likewise.
25323         * modules/unicase/u32-is-titlecase-tests: Likewise.
25324         * modules/unicase/u32-is-uppercase-tests: Likewise.
25325         * modules/unicase/u32-tolower-tests: Likewise.
25326         * modules/unicase/u32-totitle-tests: Likewise.
25327         * modules/unicase/u32-toupper-tests: Likewise.
25328         * modules/unicase/ulc-casecmp-tests: Likewise.
25329         * modules/unicase/ulc-casecoll-tests: Likewise.
25330         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
25331         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
25332         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
25333         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
25334         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
25335         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
25336         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
25337         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
25338         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
25339         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
25340         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
25341         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
25342         * modules/unictype/bidicategory-byname-tests: Likewise.
25343         * modules/unictype/bidicategory-name-tests: Likewise.
25344         * modules/unictype/bidicategory-of-tests: Likewise.
25345         * modules/unictype/bidicategory-test-tests: Likewise.
25346         * modules/unictype/block-list-tests: Likewise.
25347         * modules/unictype/block-of-tests: Likewise.
25348         * modules/unictype/block-test-tests: Likewise.
25349         * modules/unictype/category-C-tests: Likewise.
25350         * modules/unictype/category-Cc-tests: Likewise.
25351         * modules/unictype/category-Cf-tests: Likewise.
25352         * modules/unictype/category-Cn-tests: Likewise.
25353         * modules/unictype/category-Co-tests: Likewise.
25354         * modules/unictype/category-Cs-tests: Likewise.
25355         * modules/unictype/category-L-tests: Likewise.
25356         * modules/unictype/category-Ll-tests: Likewise.
25357         * modules/unictype/category-Lm-tests: Likewise.
25358         * modules/unictype/category-Lo-tests: Likewise.
25359         * modules/unictype/category-Lt-tests: Likewise.
25360         * modules/unictype/category-Lu-tests: Likewise.
25361         * modules/unictype/category-M-tests: Likewise.
25362         * modules/unictype/category-Mc-tests: Likewise.
25363         * modules/unictype/category-Me-tests: Likewise.
25364         * modules/unictype/category-Mn-tests: Likewise.
25365         * modules/unictype/category-N-tests: Likewise.
25366         * modules/unictype/category-Nd-tests: Likewise.
25367         * modules/unictype/category-Nl-tests: Likewise.
25368         * modules/unictype/category-No-tests: Likewise.
25369         * modules/unictype/category-P-tests: Likewise.
25370         * modules/unictype/category-Pc-tests: Likewise.
25371         * modules/unictype/category-Pd-tests: Likewise.
25372         * modules/unictype/category-Pe-tests: Likewise.
25373         * modules/unictype/category-Pf-tests: Likewise.
25374         * modules/unictype/category-Pi-tests: Likewise.
25375         * modules/unictype/category-Po-tests: Likewise.
25376         * modules/unictype/category-Ps-tests: Likewise.
25377         * modules/unictype/category-S-tests: Likewise.
25378         * modules/unictype/category-Sc-tests: Likewise.
25379         * modules/unictype/category-Sk-tests: Likewise.
25380         * modules/unictype/category-Sm-tests: Likewise.
25381         * modules/unictype/category-So-tests: Likewise.
25382         * modules/unictype/category-Z-tests: Likewise.
25383         * modules/unictype/category-Zl-tests: Likewise.
25384         * modules/unictype/category-Zp-tests: Likewise.
25385         * modules/unictype/category-Zs-tests: Likewise.
25386         * modules/unictype/category-and-not-tests: Likewise.
25387         * modules/unictype/category-and-tests: Likewise.
25388         * modules/unictype/category-byname-tests: Likewise.
25389         * modules/unictype/category-name-tests: Likewise.
25390         * modules/unictype/category-none-tests: Likewise.
25391         * modules/unictype/category-of-tests: Likewise.
25392         * modules/unictype/category-or-tests: Likewise.
25393         * modules/unictype/category-test-withtable-tests: Likewise.
25394         * modules/unictype/combining-class-tests: Likewise.
25395         * modules/unictype/ctype-alnum-tests: Likewise.
25396         * modules/unictype/ctype-alpha-tests: Likewise.
25397         * modules/unictype/ctype-blank-tests: Likewise.
25398         * modules/unictype/ctype-cntrl-tests: Likewise.
25399         * modules/unictype/ctype-digit-tests: Likewise.
25400         * modules/unictype/ctype-graph-tests: Likewise.
25401         * modules/unictype/ctype-lower-tests: Likewise.
25402         * modules/unictype/ctype-print-tests: Likewise.
25403         * modules/unictype/ctype-punct-tests: Likewise.
25404         * modules/unictype/ctype-space-tests: Likewise.
25405         * modules/unictype/ctype-upper-tests: Likewise.
25406         * modules/unictype/ctype-xdigit-tests: Likewise.
25407         * modules/unictype/decimal-digit-tests: Likewise.
25408         * modules/unictype/digit-tests: Likewise.
25409         * modules/unictype/mirror-tests: Likewise.
25410         * modules/unictype/numeric-tests: Likewise.
25411         * modules/unictype/property-alphabetic-tests: Likewise.
25412         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
25413         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
25414         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
25415         * modules/unictype/property-bidi-block-separator-tests: Likewise.
25416         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
25417         * modules/unictype/property-bidi-common-separator-tests: Likewise.
25418         * modules/unictype/property-bidi-control-tests: Likewise.
25419         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
25420         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
25421         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
25422         * modules/unictype/property-bidi-european-digit-tests: Likewise.
25423         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
25424         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
25425         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
25426         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
25427         * modules/unictype/property-bidi-pdf-tests: Likewise.
25428         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
25429         * modules/unictype/property-bidi-whitespace-tests: Likewise.
25430         * modules/unictype/property-byname-tests: Likewise.
25431         * modules/unictype/property-combining-tests: Likewise.
25432         * modules/unictype/property-composite-tests: Likewise.
25433         * modules/unictype/property-currency-symbol-tests: Likewise.
25434         * modules/unictype/property-dash-tests: Likewise.
25435         * modules/unictype/property-decimal-digit-tests: Likewise.
25436         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
25437         * modules/unictype/property-deprecated-tests: Likewise.
25438         * modules/unictype/property-diacritic-tests: Likewise.
25439         * modules/unictype/property-extender-tests: Likewise.
25440         * modules/unictype/property-format-control-tests: Likewise.
25441         * modules/unictype/property-grapheme-base-tests: Likewise.
25442         * modules/unictype/property-grapheme-extend-tests: Likewise.
25443         * modules/unictype/property-grapheme-link-tests: Likewise.
25444         * modules/unictype/property-hex-digit-tests: Likewise.
25445         * modules/unictype/property-hyphen-tests: Likewise.
25446         * modules/unictype/property-id-continue-tests: Likewise.
25447         * modules/unictype/property-id-start-tests: Likewise.
25448         * modules/unictype/property-ideographic-tests: Likewise.
25449         * modules/unictype/property-ids-binary-operator-tests: Likewise.
25450         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
25451         * modules/unictype/property-ignorable-control-tests: Likewise.
25452         * modules/unictype/property-iso-control-tests: Likewise.
25453         * modules/unictype/property-join-control-tests: Likewise.
25454         * modules/unictype/property-left-of-pair-tests: Likewise.
25455         * modules/unictype/property-line-separator-tests: Likewise.
25456         * modules/unictype/property-logical-order-exception-tests: Likewise.
25457         * modules/unictype/property-lowercase-tests: Likewise.
25458         * modules/unictype/property-math-tests: Likewise.
25459         * modules/unictype/property-non-break-tests: Likewise.
25460         * modules/unictype/property-not-a-character-tests: Likewise.
25461         * modules/unictype/property-numeric-tests: Likewise.
25462         * modules/unictype/property-other-alphabetic-tests: Likewise.
25463         * modules/unictype/property-other-default-ignorable-code-point-tests:
25464         Likewise.
25465         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
25466         * modules/unictype/property-other-id-continue-tests: Likewise.
25467         * modules/unictype/property-other-id-start-tests: Likewise.
25468         * modules/unictype/property-other-lowercase-tests: Likewise.
25469         * modules/unictype/property-other-math-tests: Likewise.
25470         * modules/unictype/property-other-uppercase-tests: Likewise.
25471         * modules/unictype/property-paired-punctuation-tests: Likewise.
25472         * modules/unictype/property-paragraph-separator-tests: Likewise.
25473         * modules/unictype/property-pattern-syntax-tests: Likewise.
25474         * modules/unictype/property-pattern-white-space-tests: Likewise.
25475         * modules/unictype/property-private-use-tests: Likewise.
25476         * modules/unictype/property-punctuation-tests: Likewise.
25477         * modules/unictype/property-quotation-mark-tests: Likewise.
25478         * modules/unictype/property-radical-tests: Likewise.
25479         * modules/unictype/property-sentence-terminal-tests: Likewise.
25480         * modules/unictype/property-soft-dotted-tests: Likewise.
25481         * modules/unictype/property-space-tests: Likewise.
25482         * modules/unictype/property-terminal-punctuation-tests: Likewise.
25483         * modules/unictype/property-test-tests: Likewise.
25484         * modules/unictype/property-titlecase-tests: Likewise.
25485         * modules/unictype/property-unassigned-code-value-tests: Likewise.
25486         * modules/unictype/property-unified-ideograph-tests: Likewise.
25487         * modules/unictype/property-uppercase-tests: Likewise.
25488         * modules/unictype/property-variation-selector-tests: Likewise.
25489         * modules/unictype/property-white-space-tests: Likewise.
25490         * modules/unictype/property-xid-continue-tests: Likewise.
25491         * modules/unictype/property-xid-start-tests: Likewise.
25492         * modules/unictype/property-zero-width-tests: Likewise.
25493         * modules/unictype/scripts-tests: Likewise.
25494         * modules/unictype/syntax-c-ident-tests: Likewise.
25495         * modules/unictype/syntax-c-whitespace-tests: Likewise.
25496         * modules/unictype/syntax-java-ident-tests: Likewise.
25497         * modules/unictype/syntax-java-whitespace-tests: Likewise.
25498         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
25499         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
25500         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
25501         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
25502         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
25503         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
25504         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
25505         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
25506         * modules/uniname/uniname-tests: Likewise.
25507         * modules/uninorm/canonical-decomposition-tests: Likewise.
25508         * modules/uninorm/compat-decomposition-tests: Likewise.
25509         * modules/uninorm/composition-tests: Likewise.
25510         * modules/uninorm/decomposing-form-tests: Likewise.
25511         * modules/uninorm/decomposition-tests: Likewise.
25512         * modules/uninorm/filter-tests: Likewise.
25513         * modules/uninorm/nfc-tests: Likewise.
25514         * modules/uninorm/nfd-tests: Likewise.
25515         * modules/uninorm/nfkc-tests: Likewise.
25516         * modules/uninorm/nfkd-tests: Likewise.
25517         * modules/uninorm/u8-normcmp-tests: Likewise.
25518         * modules/uninorm/u8-normcoll-tests: Likewise.
25519         * modules/uninorm/u16-normcmp-tests: Likewise.
25520         * modules/uninorm/u16-normcoll-tests: Likewise.
25521         * modules/uninorm/u32-normcmp-tests: Likewise.
25522         * modules/uninorm/u32-normcoll-tests: Likewise.
25523         * modules/unistdio/u8-asnprintf-tests: Likewise.
25524         * modules/unistdio/u8-vasnprintf-tests: Likewise.
25525         * modules/unistdio/u8-vasprintf-tests: Likewise.
25526         * modules/unistdio/u8-vsnprintf-tests: Likewise.
25527         * modules/unistdio/u8-vsprintf-tests: Likewise.
25528         * modules/unistdio/u16-asnprintf-tests: Likewise.
25529         * modules/unistdio/u16-vasnprintf-tests: Likewise.
25530         * modules/unistdio/u16-vasprintf-tests: Likewise.
25531         * modules/unistdio/u16-vsnprintf-tests: Likewise.
25532         * modules/unistdio/u16-vsprintf-tests: Likewise.
25533         * modules/unistdio/u32-asnprintf-tests: Likewise.
25534         * modules/unistdio/u32-vasnprintf-tests: Likewise.
25535         * modules/unistdio/u32-vasprintf-tests: Likewise.
25536         * modules/unistdio/u32-vsnprintf-tests: Likewise.
25537         * modules/unistdio/u32-vsprintf-tests: Likewise.
25538         * modules/unistdio/ulc-asnprintf-tests: Likewise.
25539         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
25540         * modules/unistdio/ulc-vasprintf-tests: Likewise.
25541         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
25542         * modules/unistdio/ulc-vsprintf-tests: Likewise.
25543         * modules/unistr/u8-check-tests: Likewise.
25544         * modules/unistr/u8-chr-tests: Likewise.
25545         * modules/unistr/u8-cmp-tests: Likewise.
25546         * modules/unistr/u8-cmp2-tests: Likewise.
25547         * modules/unistr/u8-cpy-alloc-tests: Likewise.
25548         * modules/unistr/u8-cpy-tests: Likewise.
25549         * modules/unistr/u8-mblen-tests: Likewise.
25550         * modules/unistr/u8-mbsnlen-tests: Likewise.
25551         * modules/unistr/u8-mbtouc-tests: Likewise.
25552         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
25553         * modules/unistr/u8-mbtoucr-tests: Likewise.
25554         * modules/unistr/u8-move-tests: Likewise.
25555         * modules/unistr/u8-next-tests: Likewise.
25556         * modules/unistr/u8-prev-tests: Likewise.
25557         * modules/unistr/u8-set-tests: Likewise.
25558         * modules/unistr/u8-stpcpy-tests: Likewise.
25559         * modules/unistr/u8-stpncpy-tests: Likewise.
25560         * modules/unistr/u8-strcat-tests: Likewise.
25561         * modules/unistr/u8-strcmp-tests: Likewise.
25562         * modules/unistr/u8-strcoll-tests: Likewise.
25563         * modules/unistr/u8-strcpy-tests: Likewise.
25564         * modules/unistr/u8-strdup-tests: Likewise.
25565         * modules/unistr/u8-strlen-tests: Likewise.
25566         * modules/unistr/u8-strmblen-tests: Likewise.
25567         * modules/unistr/u8-strmbtouc-tests: Likewise.
25568         * modules/unistr/u8-strncat-tests: Likewise.
25569         * modules/unistr/u8-strncmp-tests: Likewise.
25570         * modules/unistr/u8-strncpy-tests: Likewise.
25571         * modules/unistr/u8-strnlen-tests: Likewise.
25572         * modules/unistr/u8-to-u16-tests: Likewise.
25573         * modules/unistr/u8-to-u32-tests: Likewise.
25574         * modules/unistr/u8-uctomb-tests: Likewise.
25575         * modules/unistr/u16-check-tests: Likewise.
25576         * modules/unistr/u16-chr-tests: Likewise.
25577         * modules/unistr/u16-cmp-tests: Likewise.
25578         * modules/unistr/u16-cmp2-tests: Likewise.
25579         * modules/unistr/u16-cpy-alloc-tests: Likewise.
25580         * modules/unistr/u16-cpy-tests: Likewise.
25581         * modules/unistr/u16-mblen-tests: Likewise.
25582         * modules/unistr/u16-mbsnlen-tests: Likewise.
25583         * modules/unistr/u16-mbtouc-tests: Likewise.
25584         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
25585         * modules/unistr/u16-mbtoucr-tests: Likewise.
25586         * modules/unistr/u16-move-tests: Likewise.
25587         * modules/unistr/u16-next-tests: Likewise.
25588         * modules/unistr/u16-prev-tests: Likewise.
25589         * modules/unistr/u16-set-tests: Likewise.
25590         * modules/unistr/u16-stpcpy-tests: Likewise.
25591         * modules/unistr/u16-stpncpy-tests: Likewise.
25592         * modules/unistr/u16-strcat-tests: Likewise.
25593         * modules/unistr/u16-strcmp-tests: Likewise.
25594         * modules/unistr/u16-strcoll-tests: Likewise.
25595         * modules/unistr/u16-strcpy-tests: Likewise.
25596         * modules/unistr/u16-strdup-tests: Likewise.
25597         * modules/unistr/u16-strlen-tests: Likewise.
25598         * modules/unistr/u16-strmblen-tests: Likewise.
25599         * modules/unistr/u16-strmbtouc-tests: Likewise.
25600         * modules/unistr/u16-strncat-tests: Likewise.
25601         * modules/unistr/u16-strncmp-tests: Likewise.
25602         * modules/unistr/u16-strncpy-tests: Likewise.
25603         * modules/unistr/u16-strnlen-tests: Likewise.
25604         * modules/unistr/u16-to-u32-tests: Likewise.
25605         * modules/unistr/u16-to-u8-tests: Likewise.
25606         * modules/unistr/u16-uctomb-tests: Likewise.
25607         * modules/unistr/u32-check-tests: Likewise.
25608         * modules/unistr/u32-chr-tests: Likewise.
25609         * modules/unistr/u32-cmp-tests: Likewise.
25610         * modules/unistr/u32-cmp2-tests: Likewise.
25611         * modules/unistr/u32-cpy-alloc-tests: Likewise.
25612         * modules/unistr/u32-cpy-tests: Likewise.
25613         * modules/unistr/u32-mblen-tests: Likewise.
25614         * modules/unistr/u32-mbsnlen-tests: Likewise.
25615         * modules/unistr/u32-mbtouc-tests: Likewise.
25616         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
25617         * modules/unistr/u32-mbtoucr-tests: Likewise.
25618         * modules/unistr/u32-move-tests: Likewise.
25619         * modules/unistr/u32-next-tests: Likewise.
25620         * modules/unistr/u32-prev-tests: Likewise.
25621         * modules/unistr/u32-set-tests: Likewise.
25622         * modules/unistr/u32-stpcpy-tests: Likewise.
25623         * modules/unistr/u32-stpncpy-tests: Likewise.
25624         * modules/unistr/u32-strcat-tests: Likewise.
25625         * modules/unistr/u32-strcmp-tests: Likewise.
25626         * modules/unistr/u32-strcoll-tests: Likewise.
25627         * modules/unistr/u32-strcpy-tests: Likewise.
25628         * modules/unistr/u32-strdup-tests: Likewise.
25629         * modules/unistr/u32-strlen-tests: Likewise.
25630         * modules/unistr/u32-strmblen-tests: Likewise.
25631         * modules/unistr/u32-strmbtouc-tests: Likewise.
25632         * modules/unistr/u32-strncat-tests: Likewise.
25633         * modules/unistr/u32-strncmp-tests: Likewise.
25634         * modules/unistr/u32-strncpy-tests: Likewise.
25635         * modules/unistr/u32-strnlen-tests: Likewise.
25636         * modules/unistr/u32-to-u16-tests: Likewise.
25637         * modules/unistr/u32-to-u8-tests: Likewise.
25638         * modules/unistr/u32-uctomb-tests: Likewise.
25639         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
25640         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
25641         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
25642         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
25643         * modules/uniwidth/u8-strwidth-tests: Likewise.
25644         * modules/uniwidth/u8-width-tests: Likewise.
25645         * modules/uniwidth/u16-strwidth-tests: Likewise.
25646         * modules/uniwidth/u16-width-tests: Likewise.
25647         * modules/uniwidth/u32-strwidth-tests: Likewise.
25648         * modules/uniwidth/u32-width-tests: Likewise.
25649         * modules/uniwidth/width-tests: Likewise.
25650
25651 2010-05-18  Richard Jones  <rjones@redhat.com>
25652
25653         doc: users.txt: list hivex
25654         * users.txt: Add hivex.
25655
25656 2010-05-18  Richard Jones  <rjones@redhat.com>
25657
25658         doc: users.txt: list febootstrap
25659         * users.txt: Add febootstrap.
25660
25661 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
25662
25663         bootstrap: fix an error when gnulib is not used as a git submodule
25664         * build-aux/bootstrap (gnulib_path): If its length is zero then
25665         assign "gnulib" to it.
25666         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
25667
25668 2010-05-16  Bruno Haible  <bruno@clisp.org>
25669
25670         Avoid autoconf warnings about AM_ICONV.
25671         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
25672         2.64.
25673
25674 2010-05-16  Bruno Haible  <bruno@clisp.org>
25675
25676         absolute-header: Make the macro usable in more situations.
25677         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
25678         from gl_ABSOLUTE_HEADER.
25679         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
25680
25681 2010-05-16  James Youngman  <jay@gnu.org>
25682
25683         doc: update users.txt
25684         * users.txt: Add CSSC.
25685
25686 2010-05-16  Jim Meyering  <meyering@redhat.com>
25687
25688         init.sh: fix an error in the previous change; add more comments
25689         * tests/init.sh: Compare exit code in loop against 9, not 2.
25690         Patch by Bruno Haible.
25691         Make the two tests more similar by adding an empty "then" clause.
25692         Add comments.
25693
25694         init.sh: avoid unnecessary shell re-exec
25695         * tests/init.sh: Improve the re-exec-required check to first test the
25696         current shell.  If it passes the test, do not search for a shell that
25697         does pass, and do not re-exec.  This test is particularly contorted to
25698         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
25699         of $(...) evokes a syntax error and causes immediate shell exit with
25700         status 2.  Bruno Haible reported that the re-exec made it impossible
25701         to single-step through any init.sh-using script.
25702
25703 2010-05-16  Bruno Haible  <bruno@clisp.org>
25704
25705         Fix collision between gnulib's and libintl's printf replacements.
25706         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
25707         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
25708         (printf): When using GNU C, map the __printf__ function to rpl_printf
25709         via __asm__. When not using GNU C, define rpl_printf instead of
25710         __printf__.
25711         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
25712         commit.
25713         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
25714         commit.
25715         * m4/asm-underscore.m4: New file.
25716         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
25717         * modules/stdio (Files): Add m4/asm-underscore.m4.
25718         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
25719         Reported by Ben Pfaff.
25720
25721 2010-05-16  Bruno Haible  <bruno@clisp.org>
25722
25723         verify: Avoid skipping the test on openSUSE 11.0.
25724         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
25725
25726 2010-05-13  Bruno Haible  <bruno@clisp.org>
25727
25728         Avoid useless warnings from G++.
25729         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
25730         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
25731         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25732
25733 2010-05-11  Jim Meyering  <meyering@redhat.com>
25734
25735         maint.mk: tweak preceding change
25736         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
25737         regexps tighter by anchoring at EOL, and make the new group "shy"
25738         for slightly decreased overhead.
25739
25740 2010-05-11  Eric Blake  <eblake@redhat.com>
25741
25742         maint.mk: gnulib doesn't guarantee NSIG
25743         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
25744
25745 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
25746
25747         test-pwrite.c: Remove unused variable declaration.
25748         * tests/test-pwrite.c (main): Remove read_buf declaration.
25749
25750         Remove useless test-pwrite.sh file.
25751         * tests/test-pwrite.sh: Delete file.
25752         * modules/pwrite-tests: Remove references.
25753         Reported by Bruno Haible.
25754
25755 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
25756
25757         init.sh: fix a typo
25758         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
25759
25760 2010-05-10  Jim Meyering  <meyering@redhat.com>
25761
25762         maint.mk: avoid using a temporary file in the always-defined-macros check
25763         * top/maint.mk (.re-defmac): Remove rule.
25764         (gl_trap_): Remove definition.
25765         (sc_prohibit_always-defined_macros): Rewrite not to create and
25766         depend on a temporary file.  Instead, depend on GNU grep's ability
25767         to read a list of regular expressions from stdin when given "-f -".
25768
25769 2010-05-09  Bruno Haible  <bruno@clisp.org>
25770
25771         Update to GNU gettext 0.18, part 1.
25772         * m4/gettext.m4: Update to GNU gettext 0.18.
25773         * m4/intl.m4: Likewise.
25774         * m4/po.m4: Likewise.
25775         * modules/gettext (Files): Add m4/fcntl-o.m4.
25776         (configure.ac): Require gettext infrastructure from version 0.18.
25777
25778 2010-05-09  Jim Meyering  <meyering@redhat.com>
25779
25780         init.sh: enable MALLOC_PERTURB_
25781         * tests/init.sh: Enable glibc's malloc-perturbing option.
25782
25783         maint.mk: improve sc_cross_check_PATH_usage_in_tests
25784         With my recent change in init.sh from the two-line form:
25785             -#   : ${srcdir=.}
25786             -#   . "$srcdir/init.sh"; path_prepend_ .
25787             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
25788         I noticed that using the one-line form would cause this test
25789         to fail with a false-positive, or to stop working altogether,
25790         depending on whether help-version changed or all the tests did.
25791         * top/maint.mk (_hv_regex): Remove this definition.
25792         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
25793         (_hv_regex_strong): Use a stronger regex to check for conformance.
25794         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
25795         Give a separate diagnostic for lack of conforming use.
25796
25797         maint.mk: prohibit definition of symbols defined by gnulib
25798         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
25799         definition of symbols defined by gnulib.
25800
25801 2010-05-09  Bruno Haible  <bruno@clisp.org>
25802
25803         acl: Avoid test failure on Cygwin-hosted mingw.
25804         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
25805
25806 2010-05-09  Bruno Haible  <bruno@clisp.org>
25807
25808         error: Use system's fcntl function.
25809         * lib/error.c (fcntl): Undefine.
25810
25811 2010-05-09  Jim Meyering  <meyering@redhat.com>
25812
25813         verify: adjust formatting to be more consistent
25814         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
25815         argument-list '('s, and after one comma.
25816
25817 2010-05-09  Bruno Haible  <bruno@clisp.org>
25818
25819         error: More reliable output on mingw.
25820         * lib/error.c: Include <windows.h>.
25821         (is_open): New function.
25822         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
25823         defined.
25824
25825 2010-05-09  Bruno Haible  <bruno@clisp.org>
25826
25827         vasnprintf: Fix syntax errors in libintl build on mingw.
25828         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
25829         pad_ourselves and prec_ourselves after use.
25830
25831 2010-05-08  Bruno Haible  <bruno@clisp.org>
25832
25833         * lib/config.charset: Update comments for Cygwin 1.7.
25834         * lib/localcharset.c: Likewise.
25835
25836 2010-05-07  Jim Meyering  <meyering@redhat.com>
25837
25838         init.sh: improve comments
25839         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
25840         . "${srcdir=.}/init.sh"; path_prepend_ .
25841         Add a note about path_prepend_ and the alternative of using
25842         TESTS_ENVIRONMENT.
25843
25844 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
25845
25846         exclude: Unescape hashed patterns in wildcard mode.
25847         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
25848         to the hash list.
25849         * tests/test-exclude8.sh: New test case.
25850         * modules/exclude-tests: Add new test.
25851
25852 2010-05-05  Eric Blake  <eblake@redhat.com>
25853
25854         verify: automate tests
25855         * modules/verify-tests: New module.
25856         * tests/test-verify.sh: New file.
25857         * tests/test-verify.c: Guard each negative test with a unique id.
25858         Also avoid warning about unused left hand of comma expressions.
25859
25860 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
25861
25862         Further improvements to verify.h, suggested by Eric Blake.
25863         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
25864         the GL_* versions, to avoid collision with OpenGL.
25865         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
25866         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
25867         than testing merely whether it's defined.
25868
25869         Modify verify.h to pacify gcc -Wredundant_decls.
25870         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
25871         These use the prefix "GL_" since they're likely to be useful elsewhere.
25872         We may need to break them out into a different .h file.
25873         (__COUNTER__): Define to 0 if the compiler doesn't support it.
25874         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
25875         of verify_function__.
25876
25877 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
25878
25879         Tests for module pwrite.
25880         * modules/pwrite-tests: New file.
25881         * tests/test-pwrite.sh: New file.
25882         * tests/test-pwrite.c: New file.
25883
25884         New module pwrite.
25885         * lib/unistd.in.h (pwrite): New declaration.
25886         * lib/pwrite.c: New file, from glibc with modifications.
25887         * m4/pwrite.m4: New file.
25888         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
25889         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
25890         REPLACE_PWRITE.
25891         * modules/pwrite: New file.
25892         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
25893         REPLACE_PWRITE.
25894         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
25895         * doc/posix-functions/pwrite.texi: Mention the new module.
25896
25897 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
25898
25899         pread: Update documentation.
25900         * doc/posix-functions/pread.texi: Mention the 'pread' module.
25901
25902 2010-05-04  Eric Blake  <eblake@redhat.com>
25903
25904         docs: update cygwin progress
25905         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
25906         this bug.
25907         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
25908         Added in cygwin 1.7.2.
25909         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
25910         Likewise.
25911         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
25912         Likewise.
25913         * doc/glibc-functions/dup3.texi (dup3): Likewise.
25914         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
25915         * doc/glibc-functions/accept4.texi (accept4): Likewise.
25916         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
25917         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
25918         Mention nproc module.
25919         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
25920         bug in cygwin 1.7.5 addition.
25921         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
25922         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
25923         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
25924         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
25925         1.7.5.
25926         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
25927         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
25928         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
25929         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
25930         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
25931         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
25932         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
25933         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
25934         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
25935         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
25936         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
25937         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
25938         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
25939         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
25940         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
25941         Likewise.
25942         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
25943         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
25944         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
25945         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
25946         Likewise.
25947         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
25948         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
25949         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
25950         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
25951         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
25952         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
25953         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
25954         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
25955         Likewise.
25956         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
25957         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
25958         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
25959         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
25960         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
25961         Likewise.
25962         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
25963         Likewise.
25964         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
25965         Likewise.
25966         * doc/glibc-functions/xdrrec_endofrecord.texi
25967         (xdrrec_endofrecord): Likewise.
25968         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
25969         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
25970         Likewise.
25971         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
25972         Likewise.
25973
25974 2010-05-04  Jim Meyering  <meyering@redhat.com>
25975
25976         gendocs.sh: make its "-s FILE" option more useful
25977         * build-aux/gendocs.sh: When honoring the -s FILE option, update
25978         $PACKAGE to reflect the probably-different basename of "FILE".
25979
25980 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
25981
25982         bootstrap: don't ignore download_po_files failure
25983         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
25984         failure.
25985
25986 2010-05-03  Jim Meyering  <meyering@redhat.com>
25987
25988         maint.mk: allow to pass options to gendocs.sh
25989         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
25990         (gendocs_options_): New overridable variable.
25991
25992         gnu-web-doc-update: don't ignore configure or build failure
25993         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
25994
25995         announce-gen: backslash-escape '@'s in --help output
25996         * build-aux/announce-gen: Fix syntax errors.
25997
25998         maint.mk, announce-gen: allow project-specific announcement mail headers
25999         * top/maint.mk (translation_project_): Define default.
26000         (announcement_Cc_, announcement_mail_headers_): Likewise.
26001         (announcement): Invoke announce-gen with new --mail-headers option.
26002         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
26003
26004         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
26005         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
26006         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
26007         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
26008         line in the "err2" output file when running "make check" in verbose
26009         mode (i.e., with set -x enabled).
26010
26011 2010-05-03  Bruno Haible  <bruno@clisp.org>
26012
26013         wctob: Fix for weird platforms.
26014         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
26015         argument value.
26016
26017 2010-05-03  Jim Meyering  <meyering@redhat.com>
26018
26019         maint.mk: prohibit unwarranted use of <strings.h>
26020         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
26021         strings.h in a file that does not also use strcasecmp, strncasecmp,
26022         ffs or ffsll.
26023
26024         maint.mk: remove obsolete comments
26025         * top/maint.mk: Remove stale, commented-out rules.
26026
26027 2010-05-02  Bruno Haible  <bruno@clisp.org>
26028
26029         wcwidth: Declare also when it's aliased.
26030         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
26031         macro.
26032
26033 2010-05-02  Bruno Haible  <bruno@clisp.org>
26034
26035         Fix regression from 2010-04-25.
26036         * gnulib-tool (func_modules_transitive_closure): Check the status of
26037         all modules, not only of the tests that are of the form foo-tests where
26038         foo is a module.
26039
26040 2010-05-02  Bruno Haible  <bruno@clisp.org>
26041
26042         wctob: Work around nasty Cygwin 1.7.2 bug.
26043         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
26044         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
26045
26046 2010-05-01  Bruno Haible  <bruno@clisp.org>
26047
26048         fpurge: Sharper test.
26049         * tests/test-fpurge.c (main): Add one more ftell check.
26050         * modules/fpurge-tests (Depends-on): Add ftell.
26051         Suggested by Eric Blake.
26052
26053 2010-05-01  Bruno Haible  <bruno@clisp.org>
26054
26055         ftello: Another test.
26056         * tests/test-ftello3.c: New file.
26057         * modules/ftello-tests (Files): Add it.
26058         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
26059         MOSTLYCLEANFILES.
26060
26061         ftell: Another test.
26062         * tests/test-ftell3.c: New file.
26063         * modules/ftell-tests (Files): Add it.
26064         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
26065         MOSTLYCLEANFILES.
26066
26067 2010-05-01  Bruno Haible  <bruno@clisp.org>
26068
26069         ftell, ftello: Work around Solaris bug.
26070         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
26071         * lib/ftello.c: Include stdio-impl.h.
26072         (ftello): On Solaris, when _IOWRT is set, compute the result without
26073         looking at _IOREAD.
26074         * modules/ftello (Files): Add lib/stdio-impl.h.
26075         * doc/posix-functions/ftell.texi: Mention Solaris bug.
26076         * doc/posix-functions/ftello.texi: Likewise.
26077         Reported by Eric Blake.
26078
26079 2010-05-01  Bruno Haible  <bruno@clisp.org>
26080
26081         freading: Adapt to special meaning of _IOREAD flag on Solaris.
26082         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
26083         the _IOWRT flag is also set.
26084
26085 2010-05-01  Bruno Haible  <bruno@clisp.org>
26086
26087         Fix doc about a HP-UX stdio bug.
26088         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
26089         * doc/posix-functions/ftello.texi: Likewise.
26090
26091 2010-05-01  Bruno Haible  <bruno@clisp.org>
26092
26093         lseek test: Fix failure on Solaris.
26094         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
26095         output.
26096
26097 2010-04-30  Jim Meyering  <meyering@redhat.com>
26098
26099         bootstrap: don't ignore failure to generate po*/Makevars
26100         * build-aux/bootstrap (with_gettext): Don't ignore failure
26101         to create po/Makevars or runtime-po/Makevars.
26102
26103 2010-04-29  Eric Blake  <eblake@redhat.com>
26104
26105         headers: relax license to LGPLv2+
26106         * modules/fcntl-h (License): Relax license.
26107         * modules/getopt-posix (License): Likewise.
26108         * modules/locale (License): Likewise.
26109         * modules/math (License): Likewise.
26110         * modules/pty (License): Likewise.
26111         * modules/sched (License): Likewise.
26112         * modules/search (License): Likewise.
26113         * modules/spawn (License): Likewise.
26114         * modules/stdarg (License): Likewise.
26115         * modules/sysexits (License): Likewise.
26116
26117 2010-04-29  Jim Meyering  <meyering@redhat.com>
26118
26119         inttypes: relax license to LGPLv2+
26120         * modules/inttypes (License): Relax license.
26121
26122 2010-04-29  Simon Josefsson  <simon@josefsson.org>
26123
26124         * top/maint.mk (indent): Run twice to produce idempotent results.
26125
26126 2010-04-28  Bruno Haible  <bruno@clisp.org>
26127
26128         getdate: Generate getdate.c in the source directory.
26129         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
26130         MOSTLYCLEANFILES.
26131         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
26132
26133 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
26134
26135         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
26136         is not declared as a const *; avoid warnings in that case.
26137
26138 2010-04-28  Eric Blake  <eblake@redhat.com>
26139
26140         canonicalize-lgpl: avoid compiler warning
26141         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
26142         declaration' / 'extraneous semicolon' warning with some compilers.
26143         Reported by Andreas Gruenbacher.
26144
26145 2010-04-28  Jim Meyering  <meyering@redhat.com>
26146
26147         init.sh: ensure a more reliable exit status when exiting via trap
26148         * tests/init.sh (setup_): Don't rely on $? in signal handler.
26149         Inspired by patches from Dmitry V. Levin.
26150         Also trap on signal 3 (SIGQUIT).
26151
26152 2010-04-27  Bruno Haible  <bruno@clisp.org>
26153
26154         Update doc about utimes().
26155         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
26156         'utimens' module.
26157         Reported by Andreas Gruenbacher <agruen@suse.de>.
26158
26159 2010-04-27  Eric Blake  <eblake@redhat.com>
26160
26161         full-read, full-write: relax license
26162         * modules/full-read (License): Drop to LGPLv2+.
26163         * modules/full-write (License): Likewise.
26164         * modules/safe-read (License): Likewise.
26165         * modules/safe-write (License): Likewise.
26166
26167         pthread: mention library for linking
26168         * modules/pthread (Link): Mention $(LIB_PTHREAD).
26169
26170 2010-04-27  Jim Meyering  <meyering@redhat.com>
26171
26172         maint.mk: fix a bug introduced in last change
26173         * top/maint.mk (gl_assured_headers_): Now that all names are on
26174         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
26175         is not anchored to end of word, it should be adequate.
26176
26177         maint.mk: avoid side-effect in latest syntax-check
26178         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
26179         to run commands via $(shell...), and hence to incur cost only when
26180         the new rule is actually run.
26181
26182         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
26183         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
26184         and use that to create a regexp used to detect all #if HAVE_..._H uses.
26185         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
26186         (gl_assured_headers_, az_, AZ_): Define.
26187         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
26188
26189 2010-04-26  Jim Meyering  <jim@meyering.net>
26190             Bruno Haible  <bruno@clisp.org>
26191
26192         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
26193         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
26194         Prompted by an exchange with Gilles Espinasse.
26195
26196 2010-04-26  Jim Meyering  <meyering@redhat.com>
26197
26198         git-version-gen: aesthetic tweak
26199         * build-aux/git-version-gen: Use "$nl" rather than a literal,
26200         so that the command remains on a single line.
26201
26202 2010-04-26  Eric Blake  <eblake@redhat.com>
26203
26204         git-version-gen: allow use on EBCDIC hosts
26205         * build-aux/git-version-gen (dirty): Use literal rather than tying
26206         ourselves to ascii.
26207         Reported by Steve Goetze.
26208
26209 2010-04-25  Bruno Haible  <bruno@clisp.org>
26210
26211         netdb: Add support for GNULIB_POSIXCHECK.
26212         * lib/netdb.in.h: Include warn-on-use.h.
26213         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
26214         functions are used when GNULIB_POSIXCHECK is defined and the
26215         getaddrinfo module is not in use.
26216         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
26217         freeaddrinfo, gai_strerror, getnameinfo are declared.
26218         * modules/netdb (Depends-on): Add warn-on-use.
26219         (Makefile.am): Include warn-on-use.h in netdb.h.
26220
26221 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
26222
26223         build: avoid "make check" failure without .git/ directory
26224         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
26225         there is no .git/ directory.
26226
26227 2010-04-25  Bruno Haible  <bruno@clisp.org>
26228
26229         ptsname: Fix misuse of ttyname_r.
26230         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
26231         of errno.
26232
26233 2010-04-25  Bruno Haible  <bruno@clisp.org>
26234
26235         ttyname_r: Make it work on Solaris 10.
26236         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
26237         if the system function has the POSIX declaration. Test whether the
26238         function fails if the buffer is less than 128 bytes large.
26239         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
26240         system's ttyname_r function. Provide a reasonably large buffer.
26241         * modules/ttyname_r (Depends-on): Add extensions.
26242         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
26243
26244 2010-04-25  Bruno Haible  <bruno@clisp.org>
26245
26246         Use the 'extensions' module for some more functions on Solaris.
26247         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
26248         module.
26249         * doc/posix-functions/ctime_r.texi: Likewise.
26250         * doc/posix-functions/getgrgid_r.texi: Likewise.
26251         * doc/posix-functions/getgrnam_r.texi: Likewise.
26252         * doc/posix-functions/getpwnam_r.texi: Likewise.
26253         * doc/posix-functions/getpwuid_r.texi: Likewise.
26254         * doc/posix-functions/readdir_r.texi: Likewise.
26255         * doc/posix-functions/sigwait.texi: Likewise.
26256         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
26257         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
26258
26259 2010-04-25  Bruno Haible  <bruno@clisp.org>
26260
26261         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
26262         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
26263         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
26264         * lib/ttyname_r.c: Include <limits.h>.
26265         (ttyname_r): Define using the system's ttyname_r function, if it exists
26266         and not on Solaris.
26267         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
26268         set.
26269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
26270         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
26271         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
26272         Reported by Simon Josefsson.
26273
26274 2010-04-25  Bruno Haible  <bruno@clisp.org>
26275
26276         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
26277         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
26278         * doc/posix-functions/ctime_r.texi: Likewise.
26279         * doc/posix-functions/getgrgid_r.texi: Likewise.
26280         * doc/posix-functions/getgrnam_r.texi: Likewise.
26281         * doc/posix-functions/getlogin_r.texi: Likewise.
26282         * doc/posix-functions/getpwnam_r.texi: Likewise.
26283         * doc/posix-functions/getpwuid_r.texi: Likewise.
26284         * doc/posix-functions/readdir_r.texi: Likewise.
26285         * doc/posix-functions/sigwait.texi: Likewise.
26286         * doc/posix-functions/ttyname_r.texi: Likewise.
26287         Reported by Simon Josefsson.
26288
26289 2010-04-25  Bruno Haible  <bruno@clisp.org>
26290
26291         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
26292         * gnulib-tool (func_usage): Document that --with-*-tests options apply
26293         also to --create-testdir.
26294         (func_acceptable): Don't consider the status of *-tests modules here.
26295         (func_modules_transitive_closure): Consider it here, before including a
26296         test module.
26297         (func_import, func_create_testdir): Set inc_all_direct_tests,
26298         inc_all_indirect_tests.
26299         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
26300         --create-testdir and --create-megatestdir.
26301
26302 2010-04-25  Bruno Haible  <bruno@clisp.org>
26303
26304         gnulib-tool: Add --without-*-tests options.
26305         * gnulib-tool (func_usage): Document the --without-*-tests options.
26306         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
26307         excl_unportable_tests): New variables.
26308         Fail if they are specified with --import or --update.
26309         (func_acceptable): Respect the excl_*_tests variables.
26310         (func_import): Set the excl_*_tests variables to empty.
26311
26312 2010-04-25  Simon Josefsson  <simon@josefsson.org>
26313             Bruno Haible  <bruno@clisp.org>
26314
26315         Work around a MacOS X 10.4 bug with openpty.
26316         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
26317         * tests/test-openpty.c (main): Close the master side explicitly.
26318
26319 2010-04-25  Bruno Haible  <bruno@clisp.org>
26320
26321         strnlen: Fix a C++ test error on MacOS X and Solaris.
26322         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
26323         the function is not declared.
26324         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
26325         Simon Josefsson.
26326
26327 2010-04-24  Bruno Haible  <bruno@clisp.org>
26328
26329         Avoid a gcc warning.
26330         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
26331         of correct type for %08lx directive.
26332         Reported by Eric Blake.
26333
26334 2010-04-24  Bruno Haible  <bruno@clisp.org>
26335
26336         vasnprintf: Correct errno value in case of out-of-memory.
26337         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
26338         or sprintf. Use the errno value from SNPRINTF or sprintf.
26339         Reported by Ian Beckwith <ianb@erislabs.net>.
26340
26341 2010-04-24  Bruno Haible  <bruno@clisp.org>
26342
26343         ansi-c++-opt: Find correct compiler when cross-compiling.
26344         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
26345         AC_CHECK_PROGS.
26346         Reported by Simon Josefsson.
26347
26348 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
26349
26350         vc-list-files: Add support for subversion
26351         * build-aux/vc-list-files: Use "svn list" to generate the list of
26352         files controlled by subversion.
26353
26354 2010-04-23  Jim Meyering  <meyering@redhat.com>
26355
26356         vc-list-files tests: convert to use init.sh
26357         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
26358         path_prepend_.
26359         Use Exit, not exit.
26360         Use skip_ rather than open coding it.
26361         Remove trap set-up and compare definitions.
26362         * tests/test-vc-list-files-git.sh: Likewise.
26363         * modules/vc-list-files-tests (Files): Add tests/init.sh.
26364
26365 2010-04-22  Simon Josefsson  <simon@josefsson.org>
26366
26367         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
26368         backup files.
26369
26370 2010-04-21  Simon Josefsson  <simon@josefsson.org>
26371
26372         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
26373
26374 2010-04-20  Eric Blake  <eblake@redhat.com>
26375
26376         tests: be robust to ignored SIGPIPE
26377         * tests/test-select-in.sh: Consume all output.
26378         * tests/test-lseek.sh: Check correct exit status, while avoiding
26379         EPIPE.
26380
26381 2010-04-20  Simon Josefsson  <simon@josefsson.org>
26382             Bruno Haible  <bruno@clisp.org>
26383
26384         visibility: Don't use -fvisibility if it leads to a warning.
26385         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
26386         yes, don't pretend that visibility works if it leads to a warning.
26387         Reported by Mike Gran <spk121@yahoo.com>.
26388
26389 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
26390
26391         * build-aux/bootstrap: Use "git -h" for testing for supported options
26392         instead of "git --help".  The short-form option only shows a summary,
26393         and doesn't layout the full man page.  Grep for the full option name
26394         in the summary, too.
26395
26396 2010-04-19  Bruno Haible  <bruno@clisp.org>
26397
26398         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
26399         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
26400         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
26401         mention of RELOCATABLE_STRIP.
26402         Reported by Sylvain Beucler <beuc@beuc.net>.
26403
26404 2010-04-19  Bruno Haible  <bruno@clisp.org>
26405
26406         * lib/diffseq.h: Fix typo in comment.
26407         Reported by Eric Blake.
26408
26409 2010-04-19  Bruno Haible  <bruno@clisp.org>
26410
26411         ioctl: Move autoconf macro to a .m4 file.
26412         * m4/ioctl.m4: New file, extracted from modules/ioctl.
26413         * modules/ioctl (Files): Add it.
26414         (configure.ac): Simply invoke gl_FUNC_IOCTL.
26415         Reported by Ian Beckwith <ianb@erislabs.net>.
26416
26417 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
26418             Bruno Haible  <bruno@clisp.org>
26419
26420         diffseq: Accommodate use-case with abstract arrays.
26421         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
26422         is not defined.
26423         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
26424         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
26425
26426 2010-04-18  Bruno Haible  <bruno@clisp.org>
26427
26428         * doc/posix-headers/stdbool.texi: More precise wording.
26429
26430 2010-04-17  Jim Meyering  <meyering@redhat.com>
26431
26432         maint.mk: use gnu-style indentation in an embedded perl script
26433         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
26434         Rename variable: s/two/last_two_bytes/
26435
26436 2010-04-16  Eric Blake  <eblake@redhat.com>
26437
26438         test-stdbool: skip test that fails with Solaris CC
26439         * tests/test-stdbool.c (f): Skip test that causes compilation
26440         error under buggy C++ compiler.
26441         * lib/stdbool.in.h: Document the limitation.
26442         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
26443
26444         setenv: allow compilation with C++
26445         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
26446         register keyword.
26447
26448         stdint: allow test to pass with C++
26449         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
26450
26451         getopt: allow compilation with C++
26452         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
26453         struct.
26454         * lib/getopt.c (_getopt_internal_r): Use correct type.
26455         Reported by Dagobert Michelson, via Joel E. Denny.
26456
26457 2010-04-16  Bruno Haible  <bruno@clisp.org>
26458
26459         Override netdb.h always.
26460         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
26461         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
26462         Reported by Ludovic Courtès <ludo@gnu.org>.
26463
26464 2010-04-15  Bruno Haible  <bruno@clisp.org>
26465
26466         openpty: Fix mistake from 2010-03-21.
26467         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
26468         Reported by Simon Josefsson.
26469
26470 2010-04-15  Eric Blake  <eblake@redhat.com>
26471
26472         test-forkpty: fix expected signature
26473         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
26474         Reported by Simon Josefsson.
26475
26476 2010-04-15  Jim Meyering  <meyering@redhat.com>
26477
26478         maint.mk: texinfo_suffix_re_: correct the default regexp
26479         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
26480
26481         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
26482         make it configurable via texinfo_suffix_re_.
26483
26484 2010-04-14  Eric Blake  <eblake@redhat.com>
26485
26486         strtok_r: relax license to LGPLv2+
26487         * modules/strtok_r (License): Relax license.
26488         Reported by Matthias Bolte.
26489
26490 2010-04-14  Simon Josefsson  <simon@josefsson.org>
26491
26492         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
26493         version 1.4.4 by default instead of requiring the libgcrypt
26494         version used during build.  This makes it possible to use the
26495         application with older but still binary compatible libgcrypt
26496         versions.
26497
26498 2010-04-13  Eric Blake  <eblake@redhat.com>
26499
26500         getopt-gnu: match recent glibc fixes and posix ruling
26501         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
26502         '+' handling, when requesting extensions.
26503         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
26504         'W;' handling.
26505         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
26506         * doc/posix-functions/getopt.texi (getopt): Document this.
26507         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
26508         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26509         Likewise.
26510
26511         getopt: merge bug fixes from glibc
26512         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
26513         diagnostics.  Honor '+:' correctly.  Reject ';'.
26514
26515         getopt-posix: detect MacOS bug
26516         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
26517         optind when missing a required argument.
26518         * doc/posix-functions/getopt.texi (getopt): Document the bug.
26519         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
26520         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26521         Likewise.
26522
26523         getopt-posix: avoid spurious failure on Solaris
26524         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
26525         an indicator that setting optind=1 is sufficient for reset.
26526
26527         getopt-posix: avoid spurious failure on FreeBSD
26528         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
26529         in POSIX mode, since the m4 test uses it.
26530
26531         gnulib-tool: silence warning on BSD sh
26532         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
26533
26534 2010-04-13  Jim Meyering  <meyering@redhat.com>
26535
26536         doc: users.txt: GNU patch now uses gnulib
26537         * users.txt: Add patch.
26538
26539 2010-04-12  Jim Meyering  <meyering@redhat.com>
26540
26541         maint.mk: generate more concise timing data for syntax-check rules
26542         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
26543         " done" from each line that reports a syntax-check test duration.
26544
26545 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
26546
26547         git-version-gen: use "git update-index..." rather than "git status"
26548         * build-aux/git-version-gen: Use git update-index --refresh, not
26549         "git status".  With some versions of git, "git status" would fail
26550         to update the index and result in an unwarranted "-dirty" suffix.
26551
26552 2010-04-11  Jim Meyering  <meyering@redhat.com>
26553
26554         openat: correct formatting (no semantic change)
26555         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
26556         Suggested by Bruno Haible.
26557
26558 2010-04-11  Bruno Haible  <bruno@clisp.org>
26559
26560         Stricter declaration checking in testdirs.
26561         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26562         If for_tests is true, augment AM_CPPFLAGS to define
26563         GNULIB_STRICT_CHECKING.
26564         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
26565         GNULIB_STRICT_CHECKING is defined, verify that the function is
26566         declared.
26567
26568 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
26569             Bruno Haible  <bruno@clisp.org>
26570
26571         libunistring: Improve configure output.
26572         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
26573         Don't say "consider installing GNU libunistring" when checking again
26574         with libiconv.
26575
26576 2010-04-11  Bruno Haible  <bruno@clisp.org>
26577
26578         libunistring: Correct value of $LTLIBUNISTRING.
26579         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
26580         correct the value of $LTLIBUNISTRING.
26581
26582 2010-04-11  Bruno Haible  <bruno@clisp.org>
26583
26584         havelib: Add static libraries to LIBS in the right order.
26585         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
26586         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
26587
26588 2010-04-11  Bruno Haible  <bruno@clisp.org>
26589
26590         libunistring: Detect libunistring also when it depends on libiconv.
26591         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
26592         the second AC_LIB_HAVE_LINKFLAGS invocation.
26593
26594 2010-04-11  James Youngman  <jay@gnu.org>
26595
26596         close-stream: declare local scalars to be "const"
26597         * lib/close-stream.c (close_stream): Make boolean variables const
26598         to document the fact that we set but do not change them.
26599
26600 2010-04-11  Bruno Haible  <bruno@clisp.org>
26601
26602         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
26603
26604 2010-04-11  Jim Meyering  <meyering@redhat.com>
26605
26606         maint.mk: don't include dist-check.mk
26607         * top/maint.mk: Remove bogus include directive.
26608
26609         maint.mk: improve empty-line-at-EOF check
26610         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
26611         solution, rather than tail+Perl-based one.  The latter would read
26612         a few kilobytes from the end of each file, and did not handle empty
26613         files properly.
26614
26615         maint.mk: print the elapsed time for each syntax-check rule
26616         * top/maint.mk (sc_m_rules_): Save start time in a file.
26617         (sc_z_rules_): New rules: remove temp file and print elapsed time.
26618         (local-check): Interpose the .z rules
26619
26620 2010-04-11  Jim Meyering  <meyering@redhat.com>
26621
26622         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
26623         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
26624         empty file with one that ends in an empty line.
26625
26626 2010-04-10  Bruno Haible  <bruno@clisp.org>
26627
26628         mkdir: Make it work on mingw64.
26629         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
26630         * lib/mkdir.c: Update comment.
26631         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
26632
26633 2010-04-10  Bruno Haible  <bruno@clisp.org>
26634
26635         Don't override improved macro from newer autoconf.
26636         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
26637         autoconf >= 2.62.
26638         Reported by Joel E. Denny <jdenny@clemson.edu>.
26639
26640 2010-04-10  Jim Meyering  <meyering@redhat.com>
26641
26642         maint.mk: new syntax-check rule: prohibit empty lines at end of file
26643         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
26644
26645         maint.mk: correct a diagnostic
26646         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
26647         in diagnostic; now use $prohibit.
26648
26649 2010-04-10  Bruno Haible  <address@hidden>
26650
26651         fchownat: Fix a C++ test error on Solaris 8.
26652         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
26653         the function does not exist.
26654
26655 2010-04-10  Bruno Haible  <bruno@clisp.org>
26656
26657         vasnprintf: Add more tests.
26658         * tests/test-vasnprintf-posix.c: Include <errno.h>.
26659         (test_function): Test converting an invalid wide string.
26660
26661         vasnprintf: Correct handling of unconvertible wide string arguments.
26662         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
26663         VASNPRINTF.
26664         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
26665         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
26666         smaller than the expected maximum need for the directive. Set errno to
26667         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
26668         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
26669         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
26670         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
26671         * modules/vasnprintf (Files): Add m4/printf.m4.
26672         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26673
26674 2010-04-10  Bruno Haible  <bruno@clisp.org>
26675
26676         vasnprintf: Fix crash in %ls directive.
26677         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
26678         string is passed as argument to %ls, with no precision and no width.
26679         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26680
26681 2010-04-10  Bruno Haible  <bruno@clisp.org>
26682
26683         vasnprintf: Fix multiple test failures on mingw.
26684         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
26685         _snprintf, or snwprintf, not _snwprintf.
26686
26687 2010-04-10  Bruno Haible  <bruno@clisp.org>
26688
26689         write: Fix a C++ test error on mingw.
26690         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
26691
26692 2010-04-10  Bruno Haible  <bruno@clisp.org>
26693
26694         vasnprintf test: Reduce code duplication.
26695         * tests/test-vasnprintf.c (test_function): New function, extracted from
26696         test_vasnprintf.
26697         (test_vasnprintf, test_asnprintf): Invoke it.
26698
26699 2010-04-10  Bruno Haible  <bruno@clisp.org>
26700
26701         strnlen: Fix warning in C++ mode on MacOS X.
26702         * lib/string.in.h (strnlen): Use the modern idiom.
26703         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
26704         defining strnlen as a macro already in <config.h>.
26705         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26706         REPLACE_STRNLEN.
26707         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
26708         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26709
26710 2010-04-08  James Youngman  <jay@gnu.org>
26711
26712         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
26713         the example.
26714
26715 2010-04-09  Jim Meyering  <meyering@redhat.com>
26716
26717         maint.mk: print better diagnostic when there is no $(_hv_file)
26718         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
26719         announce that when $(_hv_file) (aka help-version) does not exist.
26720
26721         init.sh: run tr in the "C" locale to avoid multibyte interpretation
26722         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
26723         not try to interpret its random input bytes.  Jarno Rajahalme reported
26724         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
26725         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
26726         (mktempd_): Likewise, just in case.
26727
26728         ftruncate: add two years to projected module removal date: 2012
26729         * m4/ftruncate.m4: Adjust comments.
26730
26731         ftruncate: mark module as obsolete; even MinGW provides it, now
26732         * modules/ftruncate (Status): Obsolete.
26733         (Notice): Say that.
26734         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
26735         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
26736
26737 2010-04-08  Bruno Haible  <bruno@clisp.org>
26738
26739         Fix side effects from tests-related modules.
26740         * modules/dprintf-posix (Comment): New section.
26741         * modules/fprintf-posix (Comment): Likewise.
26742         * modules/obstack-printf-posix (Comment): Likewise.
26743         * modules/printf-posix (Comment): Likewise.
26744         * modules/snprintf-posix (Comment): Likewise.
26745         * modules/sprintf-posix (Comment): Likewise.
26746         * modules/vasnprintf-posix (Comment): Likewise.
26747         * modules/vasprintf-posix (Comment): Likewise.
26748         * modules/vdprintf-posix (Comment): Likewise.
26749         * modules/vfprintf-posix (Comment): Likewise.
26750         * modules/vprintf-posix (Comment): Likewise.
26751         * modules/vsnprintf-posix (Comment): Likewise.
26752         * modules/vsprintf-posix (Comment): Likewise.
26753         * modules/xprintf-posix (Comment): Likewise.
26754         * modules/xvasprintf-posix (Comment): Likewise.
26755         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
26756         * modules/floorf-tests (Depends-on): Likewise.
26757         * modules/round-tests (Depends-on): Likewise.
26758         * modules/roundf-tests (Depends-on): Likewise.
26759         * modules/trunc-tests (Depends-on): Likewise.
26760         * modules/truncf-tests (Depends-on): Likewise.
26761         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
26762         'fprintf-posix' module is not present.
26763         * tests/test-floorf2.c (check): Likewise.
26764         * tests/test-trunc2.c (check): Likewise.
26765         * tests/test-truncf2.c (check): Likewise.
26766         * tests/test-round2.c (equal): Likewise.
26767         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26768
26769 2010-04-07  Karl Berry  <karl@gnu.org>
26770
26771         * config/srclist.txt,
26772         * config/srclistvars.sh,
26773         * config/srclist-update: doc fixes.
26774
26775 2010-04-07  Jim Meyering  <meyering@redhat.com>
26776
26777         maint.mk: add a PATH crosschecking syntax-check rule
26778         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
26779         Useful if you use a test like the one in help-version (coreutils,
26780         diffutils, grep, gzip) that ensures $(VERSION) matches what is
26781         printed by prog --version.
26782
26783 2010-04-06  Bruno Haible  <bruno@clisp.org>
26784
26785         Fix link error on mingw.
26786         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
26787         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
26788
26789 2010-04-06  Bruno Haible  <bruno@clisp.org>
26790
26791         Assume rmdir exists.
26792         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
26793
26794 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
26795
26796         doc: update users.txt
26797         * users.txt: Add gcal.
26798
26799 2010-04-06  Jim Meyering  <meyering@redhat.com>
26800
26801         init.sh: simply unset TMPDIR rather than risking env -i
26802         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
26803         although it probably works fine on all Unix-based systems, some
26804         systems (Cygwin?) cannot tolerate a totally cleared environment.
26805         Suggestion from Eric Blake.
26806
26807 2010-04-06  Jim Meyering  <meyering@redhat.com>
26808
26809         init.sh: portability fix: use env's POSIX-specified -i option not -u
26810         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
26811         than unportable env -u.  Solaris 5.11's env lacks support for -u.
26812
26813 2010-04-05  Bruno Haible  <bruno@clisp.org>
26814
26815         btowc: Work around Cygwin 1.7.2 bug.
26816         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
26817         does not map NUL to 0.
26818         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
26819
26820 2010-04-05  Bruno Haible  <bruno@clisp.org>
26821
26822         Make the multithread modules work on Cygwin 1.7.2.
26823         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
26824         imported symbols can be declared weak, so that it returns "no" on
26825         Cygwin 1.7.2.
26826
26827 2010-04-05  Bruno Haible  <bruno@clisp.org>
26828
26829         Use the module 'strncat'.
26830         * modules/unistr/u8-strncat (Depends-on): Add strncat.
26831
26832         Tests for module 'strncat'.
26833         * modules/strncat-tests: New file.
26834         * tests/test-strncat.c: New file.
26835
26836         New module 'strncat'.
26837         * lib/string.in.h (strncat): New declaration.
26838         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
26839         * m4/strncat.m4: New file, based on m4/memchr.m4.
26840         * modules/strncat: New file.
26841         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
26842         is declared.
26843         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
26844         REPLACE_STRNCAT.
26845         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
26846         REPLACE_STRNCAT.
26847         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
26848         module.
26849         * tests/test-string-c++.cc: Check signature of strncat.
26850
26851 2010-04-05  Jim Meyering  <meyering@redhat.com>
26852
26853         xstrtoumax-tests: convert to use init.sh
26854         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
26855         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26856         Use Exit, not exit.
26857         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26858
26859         xstrtoimax-tests: convert to use init.sh
26860         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
26861         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26862         Use Exit, not exit.
26863         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26864
26865 2010-04-05  Bruno Haible  <bruno@clisp.org>
26866
26867         sys_socket: Avoid #define replacements in C++ mode.
26868         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
26869         warning to the function if possible, rather than #defining the symbol
26870         to a dysfunctional alias.
26871
26872 2010-04-05  Bruno Haible  <bruno@clisp.org>
26873
26874         fseeko: Fix C++ test error on mingw.
26875         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
26876         gl_FUNC_FSEEKO.
26877         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
26878         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
26879         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
26880         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
26881
26882 2010-04-05  Bruno Haible  <bruno@clisp.org>
26883
26884         duplocale: Improve test output.
26885         * tests/test-duplocale.c (main): Print reason for skipped test.
26886
26887 2010-04-05  Bruno Haible  <bruno@clisp.org>
26888
26889         Assume rmdir exists.
26890         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
26891         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
26892
26893 2010-04-05  Bruno Haible  <bruno@clisp.org>
26894
26895         Fix link error on Solaris 8 with cc.
26896         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
26897
26898 2010-04-05  Bruno Haible  <bruno@clisp.org>
26899
26900         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
26901         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
26902
26903 2010-04-05  Bruno Haible  <bruno@clisp.org>
26904
26905         vasprintf: Update documentation.
26906         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
26907
26908 2010-04-05  Bruno Haible  <bruno@clisp.org>
26909
26910         ptsname: Improve test.
26911         * tests/test-ptsname.c (main): Also try the various master names of BSD
26912         systems.
26913
26914 2010-04-05  Bruno Haible  <bruno@clisp.org>
26915
26916         memchr: Avoid a possible C++ test error.
26917         * lib/string.in.h (memchr): Provide declaration if function is missing.
26918         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
26919         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
26920         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
26921         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
26922
26923 2010-04-05  Bruno Haible  <bruno@clisp.org>
26924
26925         strtok_r: Improve idiom.
26926         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
26927         AC_LIBOBJ is used.
26928
26929 2010-04-05  Bruno Haible  <bruno@clisp.org>
26930
26931         strdup: Improve idiom.
26932         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
26933         AC_LIBOBJ is used.
26934         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
26935         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
26936         when AC_LIBOBJ is used.
26937
26938 2010-04-05  Bruno Haible  <bruno@clisp.org>
26939
26940         mbsinit, mbrtowc, wcrtomb: Improve idioms.
26941         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
26942         don't set REPLACE_MBSINIT to 1.
26943         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
26944         don't set REPLACE_MBRTOWC to 1.
26945         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
26946         exist, don't set REPLACE_MBSRTOWCS to 1.
26947         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
26948         exist, don't set REPLACE_MBSNRTOWCS to 1.
26949         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
26950         don't set REPLACE_WCRTOMB to 1.
26951         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
26952         exist, don't set REPLACE_WCSRTOMBS to 1.
26953         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
26954         exist, don't set REPLACE_WCSNRTOMBS to 1.
26955
26956 2010-04-05  Bruno Haible  <bruno@clisp.org>
26957
26958         ldexpl: Improve idiom.
26959         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
26960         make sure to set HAVE_DECL_LDEXPL to 0.
26961
26962 2010-04-05  Jim Meyering  <meyering@redhat.com>
26963
26964         xstrtol-tests: convert to use init.sh
26965         * modules/xstrtol-tests (Files): Add tests/init.sh.
26966         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26967         Use Exit, not exit.
26968         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26969
26970         atexit-tests: convert to use init.sh
26971         * modules/atexit-tests (Files): Add tests/init.sh.
26972         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26973         Use Exit, not exit.
26974         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26975
26976         init.sh: fix typo
26977         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
26978
26979         init.sh: make it easier for a test script to write to the tty, ...
26980         when using automake's parallel-tests mode.
26981         * tests/init.sh (stderr_fileno_): Define overridable variable.
26982         (warn_): New function, to use it.
26983         (fail_, skip_, framework_failure_): Use warn_.
26984
26985 2010-04-04  Bruno Haible  <bruno@clisp.org>
26986
26987         btowc: Avoid warning.
26988         * lib/btowc.c: Include <stdlib.h>.
26989         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
26990
26991 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
26992             Bruno Haible  <bruno@clisp.org>
26993
26994         wchar: Port to NetBSD 1.5.
26995         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
26996         * lib/wctype.in.h (WEOF): Likewise.
26997
26998 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
26999             Bruno Haible  <bruno@clisp.org>
27000
27001         Port extended stdio to NetBSD 1.5.
27002         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
27003         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
27004         older.
27005
27006 2010-04-04  Bruno Haible  <bruno@clisp.org>
27007
27008         string: Remove unused substitution.
27009         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
27010         HAVE_DECL_STRERROR.
27011         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
27012
27013 2010-04-04  Bruno Haible  <bruno@clisp.org>
27014
27015         strtod: Avoid a possible C++ test error.
27016         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
27017         set REPLACE_STRTOD.
27018
27019 2010-04-04  Bruno Haible  <bruno@clisp.org>
27020
27021         strerror: Update documentation.
27022         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
27023
27024 2010-04-04  Bruno Haible  <bruno@clisp.org>
27025
27026         stdio: Fix some C++ test errors on Solaris 8 with GCC.
27027         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
27028         _GL_CXXALIAS_SYS_CAST.
27029
27030 2010-04-04  Bruno Haible  <bruno@clisp.org>
27031
27032         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
27033         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
27034         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
27035         REPLACE_FREXPL to 1.
27036         * doc/posix-functions/frexpl.texi: Update documentation.
27037
27038 2010-04-04  Bruno Haible  <bruno@clisp.org>
27039
27040         math: Fix some C++ test errors on Solaris 8 and Cygwin.
27041         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
27042
27043 2010-04-04  Bruno Haible  <bruno@clisp.org>
27044
27045         Implement nanosleep for native Windows.
27046         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
27047
27048 2010-04-04  Bruno Haible  <bruno@clisp.org>
27049
27050         math: Fix some C++ test errors on Solaris 8.
27051         * lib/math.in.h (truncf, trunc): Use simpler idiom.
27052
27053 2010-04-04  Bruno Haible  <bruno@clisp.org>
27054
27055         math: Fix some C++ test errors on Cygwin.
27056         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
27057         truncl): Provide declaration if the system does not have it.
27058         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
27059         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
27060         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
27061         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
27062         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
27063         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
27064         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
27065         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
27066         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
27067         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
27068         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
27069         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
27070         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
27071         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
27072         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
27073         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
27074         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
27075         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
27076         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
27077         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
27078         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
27079         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
27080
27081 2010-04-04  Bruno Haible  <bruno@clisp.org>
27082
27083         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
27084         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
27085         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
27086         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
27087         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
27088         * m4/isinf.m4 (gl_ISINF): Likewise.
27089         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
27090
27091 2010-04-04  Bruno Haible  <bruno@clisp.org>
27092
27093         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
27094         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
27095
27096 2010-04-04  Bruno Haible  <bruno@clisp.org>
27097
27098         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
27099         * modules/tmpfile (configure.ac): Update.
27100
27101         tmpfile: Fix C++ test error on mingw.
27102         * lib/stdio.in.h (tmpfile): New declaration.
27103         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
27104         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
27105         * modules/tmpfile (Depends-on): Add stdio.
27106         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
27107         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
27108         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
27109         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
27110         REPLACE_TMPFILE.
27111         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
27112
27113 2010-04-04  Bruno Haible  <bruno@clisp.org>
27114
27115         ioctl: Fix C++ test error on mingw.
27116         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
27117         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
27118         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
27119
27120 2010-04-03  Bruno Haible  <bruno@clisp.org>
27121
27122         wcwidth: Fix C++ test error on mingw.
27123         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
27124         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
27125         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
27126
27127 2010-04-03  Bruno Haible  <bruno@clisp.org>
27128
27129         nanosleep: Fix C++ test error on mingw.
27130         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
27131         * lib/time.in.h (nanosleep): Use modern idiom.
27132         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
27133         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
27134         REPLACE_NANOSLEEP to 1.
27135         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
27136         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
27137
27138 2010-04-03  Bruno Haible  <bruno@clisp.org>
27139
27140         strptime: Fix C++ test error on mingw.
27141         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
27142         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
27143         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
27144         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
27145         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
27146         not REPLACE_STRPTIME.
27147         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
27148         REPLACE_STRPTIME.
27149
27150 2010-04-03  Bruno Haible  <bruno@clisp.org>
27151
27152         timegm: Fix C++ test error on mingw.
27153         * lib/time.in.h (timegm): Use modern idiom.
27154         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
27155         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
27156         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
27157         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
27158
27159 2010-04-03  Bruno Haible  <bruno@clisp.org>
27160
27161         timegm: Assume declaration if function exists.
27162         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
27163         if it exists. Don't clobber ac_cv_func_timegm.
27164
27165 2010-04-03  Bruno Haible  <bruno@clisp.org>
27166
27167         time_r: Fix C++ test error on mingw.
27168         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
27169         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
27170         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
27171         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
27172         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
27173
27174 2010-04-03  Bruno Haible  <bruno@clisp.org>
27175
27176         time_r: Minor updates.
27177         * modules/time_r (Description): Mention the provided functions.
27178         * lib/time_r.c: Don't include <string.h>.
27179         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
27180         * doc/posix-functions/localtime_r.texi: Likewise.
27181
27182 2010-04-03  Bruno Haible  <bruno@clisp.org>
27183
27184         time: Fix regression introduced on 2010-03-08.
27185         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
27186         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
27187
27188 2010-04-03  Jim Meyering  <meyering@redhat.com>
27189
27190         maint.mk: don't silently disable project-specific syntax-check rules
27191         * top/maint.mk (_prohibit_regexp): Define, to help people realize
27192         that they need to convert their project-specific syntax-check rules
27193         to use the new _sc_search_regexp.
27194
27195 2010-04-03  Bruno Haible  <bruno@clisp.org>
27196
27197         fchdir: Fix regression introduced on 2010-03-08.
27198         * lib/unistd.in.h (fchdir): Fix declaration.
27199         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
27200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
27201         REPLACE_FCHDIR.
27202         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
27203         REPLACE_FCHDIR.
27204
27205 2010-04-03  Bruno Haible  <bruno@clisp.org>
27206
27207         getpagesize: Fix C++ test error on mingw.
27208         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
27209         system does not declare the function.
27210         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
27211         declared.
27212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27213         HAVE_DECL_GETPAGESIZE.
27214         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
27215
27216 2010-04-03  Bruno Haible  <bruno@clisp.org>
27217
27218         stdio: Make C++ tests work on mingw.
27219         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
27220         does not declare the function.
27221
27222 2010-04-03  Bruno Haible  <bruno@clisp.org>
27223
27224         ftello: Fix C++ test error on mingw.
27225         * lib/stdio.in.h (ftello): Use modern idiom.
27226         * lib/ftello.c (ftello): Renamed from rpl_ftello.
27227         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
27228         is missing and that it needs to be replaced.
27229         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
27230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
27231         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
27232
27233 2010-04-03  Bruno Haible  <bruno@clisp.org>
27234
27235         fseeko: Fix C++ test error on mingw.
27236         * lib/stdio.in.h (fseeko): Use modern idiom.
27237         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
27238         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
27239         is missing and that it needs to be replaced.
27240         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
27241         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
27242         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
27243
27244 2010-04-03  Bruno Haible  <bruno@clisp.org>
27245
27246         mkstemp: Fix C++ test error on mingw.
27247         * lib/stdlib.in.h (mkstemp): Use modern idiom.
27248         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
27249         function is missing and that it needs to be replaced.
27250         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
27251         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
27252
27253 2010-04-03  Bruno Haible  <bruno@clisp.org>
27254
27255         stpncpy: Fix C++ test error on mingw.
27256         * lib/string.in.h (stpncpy): Use modern idiom.
27257         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
27258         function is missing and that it needs to be replaced.
27259         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27260         REPLACE_STPNCPY.
27261         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
27262
27263 2010-04-03  Bruno Haible  <bruno@clisp.org>
27264
27265         sys_stat: Fix C++ test error on mingw.
27266         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
27267         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
27268
27269 2010-04-03  Bruno Haible  <bruno@clisp.org>
27270
27271         pty: Update doc.
27272         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
27273
27274 2010-04-03  Bruno Haible  <bruno@clisp.org>
27275
27276         unistd: Fix C++ test error on mingw.
27277         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
27278
27279 2010-04-03  Bruno Haible  <bruno@clisp.org>
27280
27281         Update doc regarding mingw.
27282         * doc/glibc-functions/openpty.texi: Update regarding mingw.
27283         * doc/glibc-functions/login_tty.texi: Likewise.
27284         * doc/glibc-functions/forkpty.texi: Likewise.
27285
27286 2010-04-03  Bruno Haible  <bruno@clisp.org>
27287
27288         stdlib: Avoid compilation failure of c-strtold on mingw.
27289         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
27290
27291 2010-04-03  Bruno Haible  <bruno@clisp.org>
27292
27293         locale: Make C++ tests work on Cygwin and mingw.
27294         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
27295         cannot provide the function.
27296         Reported by Simon Josefsson.
27297
27298 2010-04-03  Bruno Haible  <bruno@clisp.org>
27299
27300         localename: Port to MacOS X 10.6.
27301         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
27302         memory layout of the locales in MacOS X 10.6 as well.
27303         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
27304
27305 2010-04-02  Bruno Haible  <bruno@clisp.org>
27306
27307         gnulib-tool: Ensure that long-running tests are executed last.
27308         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
27309         running tests after the one for the other tests.
27310
27311 2010-04-02  Bruno Haible  <bruno@clisp.org>
27312
27313         gnulib-tool: Ensure the tests in the main directory are executed first.
27314         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
27315         start with the current directory.
27316
27317 2010-04-02  Bruno Haible  <bruno@clisp.org>
27318
27319         Tests for module 'havelib', moved here from GNU gettext.
27320         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
27321         modifications.
27322         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
27323         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
27324         with modifications.
27325         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
27326         modifications.
27327         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
27328         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
27329         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
27330         with modifications.
27331         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
27332         with modifications.
27333         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
27334         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
27335         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
27336         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
27337         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
27338         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
27339         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
27340         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
27341         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
27342         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
27343         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
27344         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
27345         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
27346         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
27347         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
27348         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
27349         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
27350         with modifications.
27351         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
27352         with modifications.
27353         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
27354         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
27355         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
27356         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
27357         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
27358         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
27359         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
27360         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
27361         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
27362         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
27363         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
27364         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
27365         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
27366         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
27367         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
27368         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
27369         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
27370         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
27371         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
27372         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
27373         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
27374         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
27375         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
27376         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
27377         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
27378         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
27379         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
27380         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
27381         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
27382         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
27383         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
27384         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
27385         * tests/havelib/rpathx/rpathx.c: New file, from
27386         gettext/autoconf-lib-link.
27387         * tests/havelib/rpathx/Makefile.am: New file, from
27388         gettext/autoconf-lib-link.
27389         * tests/havelib/rpathx/configure.ac: New file, from
27390         gettext/autoconf-lib-link with modifications.
27391         * tests/havelib/rpathy/rpathy.c: New file, from
27392         gettext/autoconf-lib-link.
27393         * tests/havelib/rpathy/Makefile.am: New file, from
27394         gettext/autoconf-lib-link.
27395         * tests/havelib/rpathy/configure.ac: New file, from
27396         gettext/autoconf-lib-link with modifications.
27397         * tests/havelib/rpathz/rpathz.c: New file, from
27398         gettext/autoconf-lib-link.
27399         * tests/havelib/rpathz/Makefile.am: New file, from
27400         gettext/autoconf-lib-link.
27401         * tests/havelib/rpathz/configure.ac: New file, from
27402         gettext/autoconf-lib-link with modifications.
27403         * tests/havelib/rpathlx/usex.c: New file, from
27404         gettext/autoconf-lib-link.
27405         * tests/havelib/rpathlx/Makefile.am: New file, from
27406         gettext/autoconf-lib-link.
27407         * tests/havelib/rpathlx/configure.ac: New file, from
27408         gettext/autoconf-lib-link with modifications.
27409         * tests/havelib/rpathly/usey.c: New file, from
27410         gettext/autoconf-lib-link.
27411         * tests/havelib/rpathly/Makefile.am: New file, from
27412         gettext/autoconf-lib-link.
27413         * tests/havelib/rpathly/configure.ac: New file, from
27414         gettext/autoconf-lib-link with modifications.
27415         * tests/havelib/rpathlz/usez.c: New file, from
27416         gettext/autoconf-lib-link.
27417         * tests/havelib/rpathlz/Makefile.am: New file, from
27418         gettext/autoconf-lib-link.
27419         * tests/havelib/rpathlz/configure.ac: New file, from
27420         gettext/autoconf-lib-link with modifications.
27421         * tests/havelib/rpathlyx/usey.c: New file, from
27422         gettext/autoconf-lib-link.
27423         * tests/havelib/rpathlyx/Makefile.am: New file, from
27424         gettext/autoconf-lib-link.
27425         * tests/havelib/rpathlyx/configure.ac: New file, from
27426         gettext/autoconf-lib-link with modifications.
27427         * tests/havelib/rpathlzyx/usez.c: New file, from
27428         gettext/autoconf-lib-link.
27429         * tests/havelib/rpathlzyx/Makefile.am: New file, from
27430         gettext/autoconf-lib-link.
27431         * tests/havelib/rpathlzyx/configure.ac: New file, from
27432         gettext/autoconf-lib-link with modifications.
27433         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
27434         with modifications.
27435
27436 2010-04-02  Bruno Haible  <bruno@clisp.org>
27437
27438         gnulib-tool: Create distributed built sources also for the tests.
27439         * gnulib-tool (func_create_testdir): Also generate distributed built
27440         sources in the tests directory.
27441
27442 2010-04-02  Bruno Haible  <bruno@clisp.org>
27443
27444         gnulib-tool: Obey user's environment variables.
27445         * gnulib-tool (func_create_testdir): When creating built sources,
27446         respect the environment variables for autoconf, automake, etc. given by
27447         the user.
27448
27449 2010-04-02  Bruno Haible  <bruno@clisp.org>
27450
27451         gnulib-tool: Provide the value of --m4-base to modules.
27452         * gnulib-tool (func_import, func_create_testdir): Emit a definition
27453         of gl_m4_base.
27454
27455 2010-04-02  Eric Blake  <eblake@redhat.com>
27456
27457         maint.mk: fix some fallout
27458         * NEWS: Document the incompatible change, and its effect on cfg.mk.
27459         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
27460
27461 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
27462
27463         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
27464         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
27465         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
27466         (sc_cast_of_x_alloc_return_value): Likewise.
27467         (sc_cast_of_alloca_return_value): Likewise.
27468         (sc_space_tab): Likewise.
27469         (sc_prohibit_atoi_atof): Likewise.
27470         (sc_prohibit_magic_number_exit): Likewise.
27471         (sc_error_exit_success): Likewise.
27472         (sc_file_system): Likewise.
27473         (sc_prohibit_have_config_h): Likewise.
27474         (sc_require_config_h): Likewise.
27475         (sc_prohibit_HAVE_MBRTOWC): Likewise.
27476         (sc_obsolete_symbols): Likewise.
27477         (sc_changelog): Likewise.
27478         (sc_program_name): Likewise.
27479         (sc_the_the): Likewise.
27480         (sc_trailing_blank): Likewise.
27481         (sc_two_space_separator_in_usage): Likewise.
27482         (sc_useless_cpp_parens): Likewise.
27483         (sc_GPL_version): Likewise.
27484         (sc_GFDL_version): Likewise.
27485         (sc_texinfo_acronym): Likewise.
27486         (sc_prohibit_cvs_keyword): Likewise.
27487         (sc_prohibit_stat_st_blocks): Likewise.
27488         (sc_prohibit_S_IS_definition): Likewise.
27489         (sc_redundant_const): Likewise.
27490         (sc_makefile_TAB_only_indentation): Likewise.
27491         (sc_m4_quote_check): Likewise.
27492         (sc_makefile_path_separator_check): Likewise.
27493         (sc_copyright_check): Likewise.
27494         (sc_Wundef_boolean): Likewise.
27495         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
27496
27497         maint.mk: match 0 or more whitespace-before-function-call '('
27498         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
27499         that have zero or two-and-more spaces between the function name
27500         and the open parenthesis.
27501         (sc_error_message_warn_fatal): Likewise.
27502         (sc_error_message_uppercase): Likewise.
27503         (sc_error_message_period): Likewise.
27504
27505 2010-03-31  Eric Blake  <eblake@redhat.com>
27506
27507         maint.mk: check for [ as well as test
27508         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
27509         Based on a libvirt report by Matthias Bolte.
27510
27511         gnumakefile: don't squelch _version output
27512         * top/GNUmakefile (_version): Create one-shot dependency rather
27513         than using $(shell) when version must be regenerated.
27514         (_autoreconf): Run verbosely, by default.
27515
27516         sys_time: avoid compiler warnings
27517         * lib/sys_time.in.h (includes): Ensure gcc pragma is
27518         unconditional, fixing regression from 2010-03-29.
27519         Reported by Simon Josefsson.
27520
27521 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
27522
27523         maint.mk: s/_header_without_use/_sc_header_without_use/
27524         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
27525         (sc_prohibit_assert_without_use): Use the new name.
27526         (sc_prohibit_close_stream_without_use): Likewise.
27527         (sc_prohibit_getopt_without_use): Likewise.
27528         (sc_prohibit_quotearg_without_use): Likewise.
27529         (sc_prohibit_quote_without_use): Likewise.
27530         (sc_prohibit_long_options_without_use): Likewise.
27531         (sc_prohibit_inttostr_without_use): Likewise.
27532         (sc_prohibit_ignore_value_without_use): Likewise.
27533         (sc_prohibit_error_without_use): Likewise.
27534         (sc_prohibit_xalloc_without_use): Likewise.
27535         (sc_prohibit_hash_without_use): Likewise.
27536         (sc_prohibit_hash_pjw_without_use): Likewise.
27537         (sc_prohibit_safe_read_without_use): Likewise.
27538         (sc_prohibit_argmatch_without_use): Likewise.
27539         (sc_prohibit_canonicalize_without_use): Likewise.
27540         (sc_prohibit_root_dev_ino_without_use): Likewise.
27541         (sc_prohibit_openat_without_use): Likewise.
27542         (sc_prohibit_c_ctype_without_use): Likewise.
27543         (sc_prohibit_signal_without_use): Likewise.
27544         (sc_prohibit_intprops_without_use): Likewise.
27545
27546 2010-03-30  Eric Blake  <eblake@redhat.com>
27547
27548         maint: improve module indicators
27549         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
27550         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
27551         columns, and avoid extra macro expansion.
27552
27553         fdopendir: work around FreeBSD bug
27554         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
27555         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
27556         * modules/dirent (Makefile.am): Substitute it.
27557         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
27558         declaration.
27559         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
27560         fix.
27561         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27562
27563 2010-03-29  Bruno Haible  <bruno@clisp.org>
27564
27565         Emit #pragma system_header after the inclusion guard, not before.
27566         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
27567         guard that spans the entire file, not before. This enables an
27568         optimization in GCC's preprocessor.
27569         * lib/ctype.in.h: Likewise.
27570         * lib/dirent.in.h: Likewise.
27571         * lib/errno.in.h: Likewise.
27572         * lib/float.in.h: Likewise.
27573         * lib/getopt.in.h: Likewise.
27574         * lib/iconv.in.h: Likewise.
27575         * lib/langinfo.in.h: Likewise.
27576         * lib/locale.in.h: Likewise.
27577         * lib/math.in.h: Likewise.
27578         * lib/netdb.in.h: Likewise.
27579         * lib/netinet_in.in.h: Likewise.
27580         * lib/pty.in.h: Likewise.
27581         * lib/sched.in.h: Likewise.
27582         * lib/se-selinux.in.h: Likewise.
27583         * lib/search.in.h: Likewise.
27584         * lib/spawn.in.h: Likewise.
27585         * lib/stdarg.in.h: Likewise.
27586         * lib/stdint.in.h: Likewise.
27587         * lib/string.in.h: Likewise.
27588         * lib/strings.in.h: Likewise.
27589         * lib/sys_file.in.h: Likewise.
27590         * lib/sys_ioctl.in.h: Likewise.
27591         * lib/sys_time.in.h: Likewise.
27592         * lib/sys_times.in.h: Likewise.
27593         * lib/sys_utsname.in.h: Likewise.
27594         * lib/sys_wait.in.h: Likewise.
27595         * lib/sysexits.in.h: Likewise.
27596         * lib/wctype.in.h: Likewise.
27597
27598 2010-03-28  James Youngman  <jay@gnu.org>
27599
27600         save-cwd: don't leak a file descriptor when the caller execs.
27601         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
27602         saved file descriptor.
27603         * modules/save-cwd (Depends-on): Depend on cloexec.
27604
27605 2010-03-29  Bruno Haible  <bruno@clisp.org>
27606
27607         Remove vestiges of fts-lgpl module.
27608         * lib/fts_.h: Assume GNULIB_FTS is 1.
27609         * lib/fts.c: Likewise.
27610         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
27611
27612 2010-03-28  Bruno Haible  <bruno@clisp.org>
27613
27614         Fix definition of tests witness macro.
27615         * gnulib-tool (func_import): Fix definition of witness macro.
27616
27617 2010-03-28  Bruno Haible  <bruno@clisp.org>
27618
27619         Fix ioctl's protoype on glibc systems.
27620         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
27621         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
27622         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
27623         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
27624         signature. If not, arrange to replace the ioctl function.
27625         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
27626         REPLACE_IOCTL.
27627         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
27628         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
27629         Reported by Ludovic Courtès <ludo@gnu.org>.
27630
27631 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
27632
27633         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
27634         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
27635         made it so grep -r --include=GLOB* ... did not work.
27636
27637 2010-03-26  Jim Meyering  <meyering@redhat.com>
27638             Eric Blake  <eblake@redhat.com>
27639
27640         maint.mk: prohibit use of test's -o and -a operators
27641         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
27642
27643 2010-03-28  Bruno Haible  <bruno@clisp.org>
27644
27645         Remove unused GNULIB_XYZ macro definitions.
27646         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
27647         invocation.
27648
27649 2010-03-28  Bruno Haible  <bruno@clisp.org>
27650
27651         Mark privileged tests modules.
27652         * modules/idpriv-drop-tests (Status): New section.
27653         * modules/idpriv-droptemp-tests (Status): New section.
27654
27655 2010-03-28  Bruno Haible  <bruno@clisp.org>
27656
27657         Split C++ tests into separate tests modules.
27658         * modules/dirent-c++-tests: New file, extracted from
27659         modules/dirent-tests.
27660         * modules/dirent-tests: Depend on it.
27661         * modules/fcntl-h-c++-tests: New file, extracted from
27662         modules/fcntl-h-tests.
27663         * modules/fcntl-h-tests: Depend on it.
27664         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
27665         * modules/glob-tests: Depend on it.
27666         * modules/iconv-h-c++-tests: New file, extracted from
27667         modules/iconv-h-tests.
27668         * modules/iconv-h-tests: Depend on it.
27669         * modules/langinfo-c++-tests: New file, extracted from
27670         modules/langinfo-tests.
27671         * modules/langinfo-tests: Depend on it.
27672         * modules/locale-c++-tests: New file, extracted from
27673         modules/locale-tests.
27674         * modules/locale-tests: Depend on it.
27675         * modules/math-c++-tests: New file, extracted from modules/math-tests.
27676         * modules/math-tests: Depend on it.
27677         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
27678         * modules/pty-tests: Depend on it.
27679         * modules/search-c++-tests: New file, extracted from
27680         modules/search-tests.
27681         * modules/search-tests: Depend on it.
27682         * modules/signal-c++-tests: New file, extracted from
27683         modules/signal-tests.
27684         * modules/signal-tests: Depend on it.
27685         * modules/spawn-c++-tests: New file, extracted from
27686         modules/spawn-tests.
27687         * modules/spawn-tests: Depend on it.
27688         * modules/stdio-c++-tests: New file, extracted from
27689         modules/stdio-tests.
27690         * modules/stdio-tests: Depend on it.
27691         * modules/stdlib-c++-tests: New file, extracted from
27692         modules/stdlib-tests.
27693         * modules/stdlib-tests: Depend on it.
27694         * modules/string-c++-tests: New file, extracted from
27695         modules/string-tests.
27696         * modules/string-tests: Depend on it.
27697         * modules/sys_ioctl-c++-tests: New file, extracted from
27698         modules/sys_ioctl-tests.
27699         * modules/sys_ioctl-tests: Depend on it.
27700         * modules/sys_select-c++-tests: New file, extracted from
27701         modules/sys_select-tests.
27702         * modules/sys_select-tests: Depend on it.
27703         * modules/sys_socket-c++-tests: New file, extracted from
27704         modules/sys_socket-tests.
27705         * modules/sys_socket-tests: Depend on it.
27706         * modules/sys_stat-c++-tests: New file, extracted from
27707         modules/sys_stat-tests.
27708         * modules/sys_stat-tests: Depend on it.
27709         * modules/sys_time-c++-tests: New file, extracted from
27710         modules/sys_time-tests.
27711         * modules/sys_time-tests: Depend on it.
27712         * modules/time-c++-tests: New file, extracted from modules/time-tests.
27713         * modules/time-tests: Depend on it.
27714         * modules/unistd-c++-tests: New file, extracted from
27715         modules/unistd-tests.
27716         * modules/unistd-tests: Depend on it.
27717         * modules/wchar-c++-tests: New file, extracted from
27718         modules/wchar-tests.
27719         * modules/wchar-tests: Depend on it.
27720         * modules/wctype-c++-tests: New file, extracted from
27721         modules/wctype-tests.
27722         * modules/wctype-tests: Depend on it.
27723         Reported by Simon Josefsson.
27724
27725 2010-03-28  Bruno Haible  <bruno@clisp.org>
27726
27727         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
27728         * gnulib-tool (func_exists_module): New function, extracted from
27729         func_verify_module.
27730         (func_verify_module): Use it.
27731         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
27732         'foo' only if 'foo' exists.
27733         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
27734         module.
27735
27736 2010-03-28  Bruno Haible  <bruno@clisp.org>
27737
27738         gnulib-tool: Add support for special categories of tests.
27739         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
27740         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
27741         (func_usage): Document them.
27742         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
27743         inc_unportable_tests, inc_all_tests): New variables.
27744         (func_acceptable): Consider these variables.
27745         (func_modules_transitive_closure): Make it work when the 'Status' field
27746         consists of multiple words.
27747         (func_import): Store and restore the values of inc_cxx_tests,
27748         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
27749         inc_all_tests in gnulib-comp.m4.
27750         (func_create_testdir): Set inc_all_tests to true.
27751         * doc/gnulib.texi (Extra tests modules): New section.
27752         Suggested by Jim Meyering.
27753
27754 2010-03-28  Bruno Haible  <bruno@clisp.org>
27755
27756         ansi-c++-opt: Allow turning off the C++ build by default.
27757         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
27758         gl_CXX_CHOICE_DEFAULT_NO is defined.
27759         Requested by Eric Blake.
27760
27761 2010-03-28  Bruno Haible  <bruno@clisp.org>
27762
27763         unistd: Avoid #define replacements in C++ mode.
27764         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
27765         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
27766         setsockopt, shutdown, select): In C++, attach a warning to the function
27767         if possible, rather than #defining the symbol to a dysfunctional alias.
27768         Reported by John W. Eaton <jwe@gnu.org>.
27769
27770 2010-03-28  Bruno Haible  <bruno@clisp.org>
27771
27772         Fix link errors on mingw.
27773         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
27774         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
27775         $(LIBSOCKET).
27776         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
27777         $(LIBSOCKET).
27778
27779 2010-03-28  Bruno Haible  <bruno@clisp.org>
27780             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27781
27782         lib-ignore: Determine different options for different compilers.
27783         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
27784         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
27785         Add comments.
27786         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
27787         * NEWS: Mention the change.
27788
27789 2010-03-27  Bruno Haible  <bruno@clisp.org>
27790
27791         Remove unused GNULIB_XYZ macro definitions.
27792         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
27793         * modules/fseek (configure.ac): Likewise.
27794         * modules/ioctl (configure.ac): Likewise.
27795         * modules/open (configure.ac): Likewise.
27796         * modules/stdlib-safer (configure.ac): Likewise.
27797
27798 2010-03-27  Bruno Haible  <bruno@clisp.org>
27799
27800         Add a remark about certain modules.
27801         * modules/malloc (Comment): New section.
27802         * modules/realloc (Comment): Likewise.
27803         * modules/sigpipe (Comment): Likewise.
27804
27805 2010-03-27  Bruno Haible  <bruno@clisp.org>
27806
27807         Resolve conflict between the two kinds of module indicators.
27808         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
27809         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
27810         * modules/canonicalize (configure.ac): Invoke
27811         gl_MODULE_INDICATOR_FOR_TESTS.
27812         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
27813         GNULIB_XYZ.
27814         * tests/test-dirent-c++.cc: Likewise.
27815         * tests/test-dirent-safer.c: Likewise.
27816         * tests/test-dup2.c: Likewise.
27817         * tests/test-fchdir.c: Likewise.
27818         * tests/test-fcntl-h-c++.cc: Likewise.
27819         * tests/test-getopt.c: Likewise.
27820         * tests/test-getopt.h: Likewise.
27821         * tests/test-langinfo-c++.cc: Likewise.
27822         * tests/test-locale-c++.cc: Likewise.
27823         * tests/test-math-c++.cc: Likewise.
27824         * tests/test-pty-c++.cc: Likewise.
27825         * tests/test-search-c++.cc: Likewise.
27826         * tests/test-signal-c++.cc: Likewise.
27827         * tests/test-spawn-c++.cc: Likewise.
27828         * tests/test-stdio-c++.cc: Likewise.
27829         * tests/test-stdlib-c++.cc: Likewise.
27830         * tests/test-string-c++.cc: Likewise.
27831         * tests/test-sys_ioctl-c++.cc: Likewise.
27832         * tests/test-sys_select-c++.cc: Likewise.
27833         * tests/test-sys_socket-c++.cc: Likewise.
27834         * tests/test-sys_stat-c++.cc: Likewise.
27835         * tests/test-sys_time-c++.cc: Likewise.
27836         * tests/test-time-c++.cc: Likewise.
27837         * tests/test-unistd-c++.cc: Likewise.
27838         * tests/test-wchar-c++.cc: Likewise.
27839         * tests/uninorm/test-u8-nfc.c: Likewise.
27840         * tests/uninorm/test-u8-nfd.c: Likewise.
27841         * tests/uninorm/test-u8-nfkc.c: Likewise.
27842         * tests/uninorm/test-u8-nfkd.c: Likewise.
27843         * tests/uninorm/test-u16-nfc.c: Likewise.
27844         * tests/uninorm/test-u16-nfd.c: Likewise.
27845         * tests/uninorm/test-u16-nfkc.c: Likewise.
27846         * tests/uninorm/test-u16-nfkd.c: Likewise.
27847         * tests/uninorm/test-u32-nfc.c: Likewise.
27848         * tests/uninorm/test-u32-nfc-big.c: Likewise.
27849         * tests/uninorm/test-u32-nfd.c: Likewise.
27850         * tests/uninorm/test-u32-nfd-big.c: Likewise.
27851         * tests/uninorm/test-u32-nfkc.c: Likewise.
27852         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
27853         * tests/uninorm/test-u32-nfkd.c: Likewise.
27854         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
27855         * tests/uninorm/test-u32-normalize-big.c: Likewise.
27856
27857 2010-03-27  Bruno Haible  <bruno@clisp.org>
27858
27859         Distinguish two kinds of module indicators.
27860         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
27861         gl_MODULE_INDICATOR.
27862         (gl_MODULE_INDICATOR): New macro.
27863         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27864         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
27865         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
27866         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
27867         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
27868         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
27869         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
27870         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
27871         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
27872         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
27873         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
27874         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
27875         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
27876         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
27877         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
27878         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
27879         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
27880         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
27881         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
27882         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
27883         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
27884         * modules/cloexec (configure.ac): Likewise.
27885         * modules/getopt-gnu (configure.ac): Likewise.
27886         * modules/uninorm/u8-normalize (configure.ac): Likewise.
27887         * modules/uninorm/u16-normalize (configure.ac): Likewise.
27888         * modules/uninorm/u32-normalize (configure.ac): Likewise.
27889         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
27890
27891 2010-03-27  Bruno Haible  <bruno@clisp.org>
27892
27893         New module description field 'Comment'.
27894         * gnulib-tool: New option --extract-comment.
27895         (func_usage): Document it.
27896         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
27897         (func_get_comment): New function.
27898         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
27899
27900 2010-03-27  Bruno Haible  <bruno@clisp.org>
27901
27902         Addendum to 2010-02-07 commit.
27903         * gnulib-tool (func_usage): Document --extract-applicability option.
27904
27905 2010-03-27  Bruno Haible  <bruno@clisp.org>
27906
27907         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
27908         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
27909         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
27910         rather than link errors.
27911
27912 2010-03-27  Bruno Haible  <bruno@clisp.org>
27913
27914         Avoid side effects from tests-related modules on the compilation of lib.
27915         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
27916         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
27917         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
27918         parameter. Emit into AM_CPPFLAGS a definition of the designated C
27919         macro.
27920         (func_import): Define a witness macro. Assign it a value that depends
27921         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
27922         tests-related modules.
27923         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
27924         Reported by Jim Meyering.
27925
27926 2010-03-27  Bruno Haible  <bruno@clisp.org>
27927
27928         Factorize common .m4 code.
27929         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
27930         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
27931         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
27932         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
27933         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
27934         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
27935         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
27936         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
27937         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
27938         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
27939         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
27940         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
27941         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
27942         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
27943         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
27944         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
27945         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
27946         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
27947         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
27948         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
27949         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
27950         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
27951         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
27952         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
27953         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
27954         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
27955         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
27956         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
27957         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
27958         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
27959         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
27960         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
27961
27962 2010-03-27  Bruno Haible  <bruno@clisp.org>
27963
27964         Fix a compilation error on Cygwin with g++ >= 4.3.
27965         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
27966         if it is undefined or if we alias it to chmod.
27967         (lstat): Don't warn about the use of this function if it is undefined
27968         or if we alias it to stat.
27969         Reported by Simon Josefsson.
27970
27971 2010-03-27  Bruno Haible  <bruno@clisp.org>
27972
27973         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
27974         * modules/getlogin (configure.ac): Update.
27975
27976         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
27977         * modules/getlogin_r (configure.ac): Update.
27978
27979         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
27980         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
27981         * modules/inet_ntop (configure.ac): Update.
27982
27983         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
27984         * modules/inet_pton (configure.ac): Update.
27985
27986         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
27987         * modules/mbslen (configure.ac): Update.
27988
27989         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
27990         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
27991         * modules/forkpty (configure.ac): Update.
27992         * modules/openpty (configure.ac): Update.
27993
27994 2010-03-26  Simon Josefsson  <simon@josefsson.org>
27995
27996         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
27997         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
27998
27999 2010-03-25  Eric Blake  <eblake@redhat.com>
28000
28001         maint: use pragma consistently across replacement headers
28002         * lib/ctype.in.h (system_header): Hoist for consistent placement.
28003         * lib/dirent.in.h (system_header): Likewise.
28004         * lib/errno.in.h (system_header): Likewise.
28005         * lib/float.in.h (system_header): Likewise.
28006         * lib/getopt.in.h (system_header): Likewise.
28007         * lib/iconv.in.h (system_header): Likewise.
28008         * lib/inttypes.in.h (system_header): Likewise.
28009         * lib/langinfo.in.h (system_header): Likewise.
28010         * lib/locale.in.h (system_header): Likewise.
28011         * lib/math.in.h (system_header): Likewise.
28012         * lib/netdb.in.h (system_header): Likewise.
28013         * lib/netinet_in.in.h (system_header): Likewise.
28014         * lib/pty.in.h (system_header): Likewise.
28015         * lib/sched.in.h (system_header): Likewise.
28016         * lib/se-selinux.in.h (system_header): Likewise.
28017         * lib/search.in.h (system_header): Likewise.
28018         * lib/spawn.in.h (system_header): Likewise.
28019         * lib/stdarg.in.h (system_header): Likewise.
28020         * lib/stdint.in.h (system_header): Likewise.
28021         * lib/string.in.h (system_header): Likewise.
28022         * lib/strings.in.h (system_header): Likewise.
28023         * lib/sys_file.in.h (system_header): Likewise.
28024         * lib/sys_ioctl.in.h (system_header): Likewise.
28025         * lib/sys_socket.in.h (system_header): Likewise.
28026         * lib/sys_times.in.h (system_header): Likewise.
28027         * lib/sys_utsname.in.h (system_header): Likewise.
28028         * lib/sys_wait.in.h (system_header): Likewise.
28029         * lib/sysexits.in.h (system_header): Likewise.
28030         * lib/unistd.in.h (system_header): Likewise.
28031         * lib/wctype.in.h (system_header): Likewise.
28032
28033         arpa/inet: fix mingw compilation warning
28034         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
28035         Reported by Matthew Bolte.
28036
28037 2010-03-25  Bruno Haible  <bruno@clisp.org>
28038
28039         Avoid collision between gnulib wrapper and libintl wrapper.
28040         * lib/printf.c (printf): Don't define if a printf wrapper is already
28041         defined in intl/printf.c.
28042         Reported by Michel Boaventura <michel@michelboaventura.com>.
28043
28044 2010-03-25  Bruno Haible  <bruno@clisp.org>
28045
28046         Use ANSI C.
28047         * lib/readutmp.h (getutent): Provide ANSI C prototype.
28048
28049 2010-03-25  Bruno Haible  <bruno@clisp.org>
28050
28051         Minor formatting changes.
28052         * lib/acosl.c: Insert space before function argument list.
28053         * lib/argz.c: Likewise.
28054         * lib/asinl.c: Likewise.
28055         * lib/expl.c: Likewise.
28056         * lib/gen-uni-tables.c: Likewise.
28057         * lib/gettext.h: Likewise.
28058         * lib/glthread/lock.h: Likewise.
28059         * lib/tanl.c: Likewise.
28060         * lib/uniname/uniname.c: Likewise.
28061         * tests/test-idpriv-drop.c: Likewise.
28062         * tests/test-idpriv-droptemp.c: Likewise.
28063         * tests/test-lock.c: Likewise.
28064         * tests/test-tls.c: Likewise.
28065         * lib/argp-help.c: Insert space before function-like macro argument
28066         list.
28067         * lib/memcmp.c: Likewise.
28068         * tests/test-base64.c: Likewise.
28069         * lib/localename.c: Insert space before sizeof's argument list.
28070         * lib/safe-alloc.h: Likewise.
28071         * lib/file-set.h: Insert space before macro argument list.
28072         * tests/test-argp.c: Likewise.
28073         * lib/argp-namefrob.h: Insert space before function parameter list.
28074         * lib/getaddrinfo.c: Likewise.
28075         * lib/netdb.in.h: Likewise.
28076         * lib/parse-duration.h: Likewise.
28077         * lib/parse-duration.c: Likewise.
28078         * lib/poll.c: Likewise.
28079         * lib/select.c: Likewise.
28080         * lib/trim.h: Likewise.
28081         * tests/test-usleep.c: Likewise.
28082         * lib/ldexpl.c: Insert space before function parameter list and before
28083         function argument list.
28084         * lib/logl.c: Likewise.
28085         * lib/sqrtl.c: Likewise.
28086         * lib/trim.c: Likewise.
28087         * lib/cosl.c: Use GNU style indentation. Insert space before function
28088         argument list.
28089         * lib/sinl.c: Likewise.
28090         * lib/tsearch.c: Insert space after 'for'.
28091         Reported by Jim Meyering.
28092
28093 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
28094
28095         * maint.mk (sc_Wundef_boolean): Check for the presence of the
28096         config header before grepping, as it's not present before
28097         autoreconf/configure are run.  Reported by Simon Josefsson.
28098
28099 2010-03-23  Bruno Haible  <bruno@clisp.org>
28100
28101         pt_chown: Make it work with automake < 1.11.
28102         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
28103         Reported by Simon Josefsson.
28104
28105 2010-03-23  Bruno Haible  <bruno@clisp.org>
28106
28107         pt_chown: Don't depend on GPLed modules.
28108         * lib/pt_chown.c: Don't include idpriv.h.
28109         (main): Don't drop privileges.
28110         * modules/pt_chown (Depends-on): Remove idpriv-drop.
28111         Reported by Simon Josefsson.
28112
28113 2010-03-24  Simon Josefsson  <simon@josefsson.org>
28114
28115         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
28116         suggestions from karl@freefriends.org (Karl Berry).
28117
28118 2010-03-22  Eric Blake  <eblake@redhat.com>
28119
28120         gethostname: further tweaks
28121         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
28122         are overriding gethostname.
28123         Suggested by Bruno Haible.
28124
28125 2010-03-21  Bruno Haible  <bruno@clisp.org>
28126
28127         Fix comments.
28128         * lib/forkpty.c (rpl_forkpty): Fix comment.
28129         * lib/openpty.c (rpl_openpty): Likewise.
28130         Reported by Eric Blake.
28131
28132 2010-03-22  Eric Blake  <eblake@redhat.com>
28133
28134         gethostname: fix build on mingw
28135         * lib/unistd.in.h (includes): Work around fact that mingw
28136         <winsock2.h> re-includes <unistd.h>, by avoiding any
28137         redeclarations if we are being included by <winsock2.h>.
28138         Reported by Matthias Bolte.
28139
28140 2010-03-21  Bruno Haible  <bruno@clisp.org>
28141
28142         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
28143         * lib/forkpty.c (forkpty): New replacement function, from glibc with
28144         modifications.
28145         * lib/pty.in.h (forkpty): Update declaration. Add comments.
28146         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
28147         provide the replacement.
28148         * modules/forkpty (Depends-on): Add openpty, login_tty.
28149         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
28150         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
28151         * doc/glibc-functions/forkpty.texi: More supported platforms.
28152         * config/srclist.txt: Add forkpty.c (commented).
28153
28154 2010-03-21  Bruno Haible  <bruno@clisp.org>
28155
28156         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
28157         (Makefile.am): Verify that PTY_LIB is defined.
28158
28159         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
28160
28161 2010-03-21  Bruno Haible  <bruno@clisp.org>
28162
28163         Tests for module 'login_tty'.
28164         * modules/login_tty-tests: New file.
28165         * tests/test-login_tty.c: New file.
28166
28167         New module 'login_tty'.
28168         * lib/login_tty.c: New file.
28169         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
28170         * modules/login_tty: New file.
28171         * doc/glibc-functions/login_tty.texi: Mention the new module.
28172
28173 2010-03-21  Bruno Haible  <bruno@clisp.org>
28174
28175         login_tty: Documentation.
28176         * doc/glibc-functions/login_tty.texi: New file.
28177         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
28178
28179 2010-03-21  Bruno Haible  <bruno@clisp.org>
28180
28181         pty: Consistent macro naming.
28182         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
28183         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
28184         * modules/pty (configure.ac): Update.
28185
28186 2010-03-21  Bruno Haible  <bruno@clisp.org>
28187
28188         Tests for openpty: Make stricter.
28189         * tests/test-openpty.c (main): Add test of canonical processing and
28190         erase.
28191         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
28192
28193         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
28194         * lib/openpty.c (openpty): New replacement function.
28195         * lib/pty.in.h: Include <termios.h>.
28196         (openpty): Update declaration. Add comments.
28197         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
28198         is not declared, arrange to provide the replacement. Check for _getpty
28199         and posix_openpt.
28200         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
28201         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
28202         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
28203         * modules/pty-tests (test_pty_c___LDADD): New variable.
28204         * doc/glibc-functions/openpty.texi: More supported platforms.
28205
28206 2010-03-21  Bruno Haible  <bruno@clisp.org>
28207
28208         setenv: Tweaks.
28209         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
28210         the test program.
28211         * doc/posix-functions/setenv.texi: Update platforms list.
28212
28213 2010-03-21  Bruno Haible  <bruno@clisp.org>
28214
28215         New module 'unlockpt'.
28216         * lib/unlockpt.c: New file, from glibc with modifications.
28217         * m4/unlockpt.m4: New file.
28218         * modules/unlockpt: New file.
28219         * lib/stdlib.in.h (unlockpt): New declaration.
28220         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
28221         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
28222         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
28223         HAVE_UNLOCKPT.
28224         * doc/posix-functions/unlockpt.texi: Mention the new module.
28225         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
28226         * config/srclist.txt: Add unlockpt.c (commented).
28227
28228 2010-03-21  Jim Meyering  <meyering@redhat.com>
28229
28230         maint.mk: prohibit inclusion of "intprops.h" without use
28231         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
28232
28233 2010-03-21  Bruno Haible  <bruno@clisp.org>
28234
28235         New module 'grantpt'.
28236         * lib/grantpt.c: New file, from glibc with modifications.
28237         * m4/grantpt.m4: New file.
28238         * modules/grantpt: New file.
28239         * lib/stdlib.in.h (grantpt): New declaration.
28240         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
28241         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
28242         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
28243         HAVE_GRANTPT.
28244         * doc/posix-functions/grantpt.texi: Mention the new module.
28245         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
28246         * config/srclist.txt: Add grantpt.c (commented).
28247
28248 2010-03-21  Bruno Haible  <bruno@clisp.org>
28249
28250         New module 'pt_chown'.
28251         * lib/pt_chown.c: New file, from glibc with modifications.
28252         * lib/pty-private.h: New file, from glibc with modifications.
28253         * modules/pt_chown: New file.
28254         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
28255
28256 2010-03-21  Bruno Haible  <bruno@clisp.org>
28257
28258         Tests for module 'ptsname'.
28259         * modules/ptsname-tests: New file.
28260         * tests/test-ptsname.c: New file.
28261
28262         New module 'ptsname'.
28263         * lib/ptsname.c: New file, from glibc with modifications.
28264         * m4/ptsname.m4: New file.
28265         * modules/ptsname: New file.
28266         * lib/stdlib.in.h (ptsname): New declaration.
28267         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
28268         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
28269         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
28270         HAVE_PTSNAME.
28271         * doc/posix-functions/ptsname.texi: Mention the new module.
28272         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
28273         * config/srclist.txt: Add ptsname.c (commented).
28274
28275 2010-03-21  Bruno Haible  <bruno@clisp.org>
28276
28277         Tests for module 'ttyname_r'.
28278         * modules/ttyname_r-tests: New file.
28279         * tests/test-ttyname_r.c: New file.
28280
28281         New module 'ttyname_r'.
28282         * lib/ttyname_r.c: New file.
28283         * m4/ttyname_r.m4: New file.
28284         * modules/ttyname_r: New file.
28285         * lib/unistd.in.h (ttyname_r): New declaration.
28286         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
28287         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
28288         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
28289         HAVE_TTYNAME_R.
28290         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
28291         * doc/posix-functions/ttyname_r.texi: Mention the new module.
28292
28293 2010-03-20  Bruno Haible  <bruno@clisp.org>
28294
28295         signal: Undefine macro definitions in C++ mode.
28296         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
28297         sigfillset): Undefine macro definitions from the system header in C++
28298         mode.
28299         Reported by John W. Eaton <jwe@gnu.org>.
28300
28301 2010-03-20  Bruno Haible  <bruno@clisp.org>
28302
28303         Ensure no #include statements inside extern "C" { ... }.
28304         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
28305         contain #include statements.
28306         * lib/time.in.h: Likewise.
28307
28308 2010-03-20  Bruno Haible  <bruno@clisp.org>
28309
28310         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
28311         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
28312         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
28313         Reported by John W. Eaton <jwe@gnu.org>.
28314
28315 2010-03-20  Bruno Haible  <bruno@clisp.org>
28316
28317         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
28318         Reported by Jim Meyering.
28319
28320 2010-03-20  Bruno Haible  <bruno@clisp.org>
28321
28322         pipe: Set errno upon failure.
28323         * lib/pipe.h: Specify that when -1 is returned, errno is set.
28324         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
28325         errno value in error message.
28326
28327 2010-03-20  Bruno Haible  <bruno@clisp.org>
28328             Jim Meyering  <meyering@redhat.com>
28329
28330         lchown: Avoid "unused variable" warning.
28331         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
28332
28333 2010-03-20  Bruno Haible  <bruno@clisp.org>
28334
28335         Work around unlink() bug on MacOS X 10.5.6.
28336         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
28337         attempting to unlink a parent directory.
28338         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
28339         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
28340         activate for the replacement function.
28341         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
28342
28343 2010-03-20  Bruno Haible  <bruno@clisp.org>
28344
28345         Fix link errors on Solaris 8.
28346         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
28347         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
28348
28349 2010-03-19  Jim Meyering  <meyering@redhat.com>
28350
28351         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
28352         The _LIBC implementation of build_range_exp correctly honors the
28353         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
28354         However, the non-_LIBC implementation would ignore that syntax-bit
28355         flag and return REG_ERANGE unconditionally.
28356         This change makes it honor that flag.
28357         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
28358         Make two pointer parameters "const".
28359         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
28360         (parse_bracket_exp): Update caller.
28361
28362         regex.m4: correct the reversed range endpoint ([b-a]) test
28363         * m4/regex.m4: When requiring that [b-a] evoke failure,
28364         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
28365         test pass once again for x86-based systems.
28366
28367 2010-03-19  Bruno Haible  <bruno@clisp.org>
28368
28369         scandir: Fix link error on Solaris 8.
28370         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
28371         macros.
28372
28373 2010-03-19  Bruno Haible  <bruno@clisp.org>
28374
28375         getusershell: Fix documentation.
28376         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
28377         module.
28378         * doc/glibc-functions/setusershell.texi: Likewise.
28379
28380         getusershell: Provide declaration, missing on Solaris 9.
28381         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
28382         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
28383         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
28384         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
28385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28386         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
28387         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
28388         HAVE_GETUSERSHELL.
28389         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
28390
28391 2010-03-19  Bruno Haible  <bruno@clisp.org>
28392
28393         wctype: Provide iswblank function.
28394         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
28395         exists and is fine.
28396         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
28397         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
28398         * tests/test-wctype.c (main): Re-enable the iswblank tests.
28399         * doc/posix-functions/iswblank.texi: Update.
28400
28401 2010-03-19  Bruno Haible  <bruno@clisp.org>
28402
28403         Tests of module 'pty' in C++ mode.
28404         * modules/pty-tests: New file.
28405         * tests/test-pty-c++.cc: New file.
28406         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28407
28408 2010-03-19  Eric Blake  <eblake@redhat.com>
28409
28410         logb: fix documentation
28411         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
28412         1.5 declaration bug.
28413
28414         forkpty, openpty: prefer glibc's const-safe prototype
28415         * lib/forkpty.c (rpl_forkpty): New file.
28416         * lib/openpty.c (rpl_openpty): Likewise.
28417         * modules/forkpty (Files): Distribute it.
28418         * modules/openpty (Files): Likewise.
28419         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
28420         check...
28421         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
28422         replacement for for non-const BSD signature.
28423         * modules/pty (Makefile.am): Substitute witnesses.
28424         * lib/pty.in.h (forkpty, openpty): Declare replacements.
28425         * tests/test-forkpty.c: Update signature check.
28426         * tests/test-openpty.c: Likewise.
28427         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
28428         * doc/glibc-functions/openpty.texi (openpty): Likewise.
28429
28430         forkpty, openpty: split functions into new modules
28431         * modules/pty (Makefile.am): Substitute new witnesses.
28432         (Libraries): Move library detection...
28433         * modules/forkpty: ...into new module.
28434         * modules/openpty: Another new module.
28435         * modules/pty-tests: Rename and split...
28436         * modules/forkpty-tests: ...to this...
28437         * modules/openpty-tests: ...and this.
28438         * tests/test-pty.c: Rename and split...
28439         * tests/test-forkpty.c: ...to this...
28440         * tests/test-openpty.c: ...and this.
28441         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
28442         (gl_PTY): Split library searching...
28443         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
28444         (gl_FORKPTY, gl_OPENPTY): New macros.
28445         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
28446         * NEWS: Mention the split.
28447         * MODULES.html.sh (Misc): Document the modules.
28448         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
28449         * doc/glibc-functions/openpty.texi (openpty): Likewise.
28450
28451         pty: improve replacement header
28452         * lib/pty.in.h: New file.
28453         * modules/pty (Files): Ship it.
28454         (Makefile.am): Always build replacement.
28455         * m4/pty.m4: Rename...
28456         * m4/pty_h.m4: ...to this.
28457         (gl_PTY): Modernize setting of witness macros; update check of
28458         forkpty to take proper advantage of cache.
28459         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
28460
28461         getopt: avoid compiler warning
28462         * lib/getopt.c (attribute_hidden): Remove unused macro.
28463
28464 2010-03-18  Bruno Haible  <bruno@clisp.org>
28465
28466         Fix link errors on Solaris 8.
28467         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
28468         * modules/search-tests (test_search_c___LDADD): Likewise.
28469         * modules/signal-tests (test_signal_c___LDADD): Likewise.
28470         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
28471         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
28472         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
28473         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
28474         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
28475         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
28476
28477 2010-03-18  Bruno Haible  <bruno@clisp.org>
28478
28479         Fix bug introduced on 2010-03-14.
28480         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
28481         (gl_SPAWN_H): Require it.
28482         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
28483         Reported by Simon Josefsson.
28484
28485 2010-03-18  Bruno Haible  <bruno@clisp.org>
28486
28487         Fix typo introduced on 2009-12-31.
28488         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
28489         posix_spawn_file_actions_adddup2.
28490
28491 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
28492         and Eric Blake  <eblake@redhat.com>
28493
28494         test-vc-list-files-git: make more robust
28495         * tests/test-vc-list-files-git.sh: Unset problematic environment
28496         variables.  Chain commands together.
28497
28498 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
28499
28500         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
28501         `AC_CHECK_DECL' invocation.
28502
28503 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
28504
28505         * lib/inttostr.c (inttostr): Make sure the invocation of verify
28506         appears before executable statements. Suggested by Petr Sumbera
28507         <Petr.Sumbera@Sun.COM>.
28508
28509 2010-03-14  Bruno Haible  <bruno@clisp.org>
28510
28511         * tests/test-flock.c (test_exclusive): Comment out a test that causes
28512         portability problems. Instead use a simpler test.
28513         (main): Check that invalid arguments are rejected only on Linux.
28514
28515 2010-03-14  Bruno Haible  <bruno@clisp.org>
28516
28517         Fix bug introduced on 2009-12-31.
28518         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28519         gl_PREREQ_SYS_H_WINSOCK2 always.
28520         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
28521         SYS_SOCKET_H variable.
28522         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
28523         Update comments.
28524         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
28525         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28526         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28527         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28528         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
28529
28530 2010-03-14  Bruno Haible  <bruno@clisp.org>
28531
28532         Fix values returned by sinl, cosl.
28533         * lib/trigl.h: Add specification comments.
28534         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
28535         that combines the values from the precomputed table with the values of
28536         the Chebyshev polynomials.
28537
28538 2010-03-14  Bruno Haible  <bruno@clisp.org>
28539
28540         Fix compilation error when modules 'posix_spawn[p]' are not used.
28541         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
28542         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
28543
28544 2010-03-14  Bruno Haible  <bruno@clisp.org>
28545
28546         Fix compilation error on mingw when module 'time_r' is not used.
28547         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
28548         is 1.
28549         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
28550         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
28551         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
28552         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
28553
28554 2010-03-14  Bruno Haible  <bruno@clisp.org>
28555
28556         Fix compilation error with Sun C.
28557         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
28558         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
28559         instead of GCC specific ULONG_LONG_MAX.
28560         * lib/xstrtoll.c: Likewise.
28561         * lib/xstrtoull.c: Likewise.
28562
28563 2010-03-13  Bruno Haible  <bruno@clisp.org>
28564
28565         Allow the user to disable C++ code and tests.
28566         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
28567         (gl_PROG_ANSI_CXX): Require it.
28568
28569 2010-03-13  Bruno Haible  <bruno@clisp.org>
28570
28571         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
28572         cases.
28573
28574 2010-03-13  Bruno Haible  <bruno@clisp.org>
28575
28576         Test that gnulib does not break the standard C++ headers.
28577         * tests/test-locale-c++2.cc: New file.
28578         * modules/locale-tests (Files): Add it.
28579         (Makefile.am): Compile it for test-locale-c++.
28580         * tests/test-math-c++2.cc: New file.
28581         * modules/math-tests (Files): Add it.
28582         (Makefile.am): Compile it for test-math-c++.
28583         * tests/test-signal-c++2.cc: New file.
28584         * modules/signal-tests (Files): Add it.
28585         (Makefile.am): Compile it for test-signal-c++.
28586         * tests/test-stdio-c++2.cc: New file.
28587         * modules/stdio-tests (Files): Add it.
28588         (Makefile.am): Compile it for test-stdio-c++.
28589         * tests/test-stdlib-c++2.cc: New file.
28590         * modules/stdlib-tests (Files): Add it.
28591         (Makefile.am): Compile it for test-stdlib-c++.
28592         * tests/test-string-c++2.cc: New file.
28593         * modules/string-tests (Files): Add it.
28594         (Makefile.am): Compile it for test-string-c++.
28595         * tests/test-time-c++2.cc: New file.
28596         * modules/time-tests (Files): Add it.
28597         (Makefile.am): Compile it for test-time-c++.
28598         Reported by John W. Eaton <jwe@gnu.org>.
28599
28600 2010-03-13  Bruno Haible  <bruno@clisp.org>
28601
28602         * gnulib-tool (func_usage): Clarify which options are available for
28603         --create-testdir and --create-megatestdir.
28604
28605 2010-03-13  Bruno Haible  <bruno@clisp.org>
28606
28607         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
28608         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
28609         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
28610         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
28611         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
28612         when appropriate.
28613         Reported by Jim Meyering.
28614
28615 2010-03-12  Simon Josefsson  <simon@josefsson.org>
28616
28617         * gnulib-tool (func_import): Explain origin of code.
28618
28619 2010-03-12  Bruno Haible  <bruno@clisp.org>
28620
28621         Fix problem with automake's definition of CXXLINK.
28622         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
28623         Reported by Simon Josefsson and Ludovic Courtès.
28624
28625 2010-03-12  Bruno Haible  <bruno@clisp.org>
28626
28627         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
28628         stable releases.
28629
28630 2010-03-11  Bruno Haible  <bruno@clisp.org>
28631
28632         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
28633         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
28634         whether the system provides one variant or multiple variants of the
28635         function.
28636         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
28637         C++ compilers.
28638         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
28639         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
28640         Reported by Jim Meyering.
28641
28642 2010-03-09  Simon Josefsson  <simon@josefsson.org>
28643
28644         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
28645
28646 2010-03-08  Bruno Haible  <bruno@clisp.org>
28647
28648         gnulib-tool: Add support for --libtool in --create-testdir.
28649         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
28650         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
28651
28652 2010-03-08  Eric Blake  <eblake@redhat.com>
28653
28654         gnulib-tool.texi: mention possibility of git submodule
28655         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
28656         submodules.
28657         * doc/.gitignore: Ignore another generated file.
28658
28659 2010-03-08  Karl Berry  <karl@gnu.org>
28660
28661         * doc/gnulib-tool.texi (VCS Issues): Mention third option
28662         of committing gnulib files while skipping others.
28663
28664 2010-03-07  Bruno Haible  <bruno@clisp.org>
28665
28666         Tests of module 'wctype' in C++ mode.
28667         * tests/test-wctype-c++.cc: New file.
28668         * modules/wctype-tests (Files): Add it and tests/signature.h.
28669         (Depends-on): Add ansi-c++-opt.
28670         (Makefile.am): Arrange to compile and run test-wctype-c++.
28671
28672         Tests of module 'wchar' in C++ mode.
28673         * tests/test-wchar-c++.cc: New file.
28674         * modules/wchar-tests (Files): Add it and tests/signature.h.
28675         (Depends-on): Add ansi-c++-opt.
28676         (Makefile.am): Arrange to compile and run test-wchar-c++.
28677         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
28678         gl_MODULE_INDICATOR.
28679
28680         Tests of module 'unistd' in C++ mode.
28681         * tests/test-unistd-c++.cc: New file.
28682         * modules/unistd-tests (Files): Add it and tests/signature.h.
28683         (Depends-on): Add ansi-c++-opt.
28684         (Makefile.am): Arrange to compile and run test-unistd-c++.
28685         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
28686         gl_MODULE_INDICATOR.
28687
28688         Tests of module 'time' in C++ mode.
28689         * tests/test-time-c++.cc: New file.
28690         * modules/time-tests (Files): Add it and tests/signature.h.
28691         (Depends-on): Add ansi-c++-opt.
28692         (Makefile.am): Arrange to compile and run test-time-c++.
28693         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28694
28695         Tests of module 'sys_time' in C++ mode.
28696         * tests/test-sys_time-c++.cc: New file.
28697         * modules/sys_time-tests (Files): Add it and tests/signature.h.
28698         (Depends-on): Add ansi-c++-opt.
28699         (Makefile.am): Arrange to compile and run test-sys_time-c++.
28700         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
28701         gl_MODULE_INDICATOR.
28702
28703         Tests of module 'sys_stat' in C++ mode.
28704         * tests/test-sys_stat-c++.cc: New file.
28705         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
28706         (Depends-on): Add ansi-c++-opt.
28707         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
28708         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
28709         gl_MODULE_INDICATOR.
28710
28711         Tests of module 'sys_socket' in C++ mode.
28712         * tests/test-sys_socket-c++.cc: New file.
28713         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
28714         (Depends-on): Add ansi-c++-opt.
28715         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
28716         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
28717         gl_MODULE_INDICATOR.
28718
28719         Tests of module 'sys_select' in C++ mode.
28720         * tests/test-sys_select-c++.cc: New file.
28721         * modules/sys_select-tests (Files): Add it and tests/signature.h.
28722         (Depends-on): Add ansi-c++-opt.
28723         (Makefile.am): Arrange to compile and run test-sys_select-c++.
28724         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
28725         gl_MODULE_INDICATOR.
28726
28727         Tests of module 'sys_ioctl' in C++ mode.
28728         * tests/test-sys_ioctl-c++.cc: New file.
28729         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
28730         (Depends-on): Add ansi-c++-opt.
28731         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
28732         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
28733         gl_MODULE_INDICATOR.
28734
28735         Tests of module 'string' in C++ mode.
28736         * tests/test-string-c++.cc: New file.
28737         * modules/string-tests (Files): Add it and tests/signature.h.
28738         (Depends-on): Add ansi-c++-opt.
28739         (Makefile.am): Arrange to compile and run test-string-c++.
28740         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
28741         gl_MODULE_INDICATOR.
28742
28743         Tests of module 'stdlib' in C++ mode.
28744         * tests/test-stdlib-c++.cc: New file.
28745         * modules/stdlib-tests (Files): Add it and tests/signature.h.
28746         (Depends-on): Add ansi-c++-opt.
28747         (Makefile.am): Arrange to compile and run test-stdlib-c++.
28748         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
28749         gl_MODULE_INDICATOR.
28750
28751         Tests of module 'stdio' in C++ mode.
28752         * tests/test-stdio-c++.cc: New file.
28753         * modules/stdio-tests (Files): Add it and tests/signature.h.
28754         (Depends-on): Add ansi-c++-opt.
28755         (Makefile.am): Arrange to compile and run test-stdio-c++.
28756         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
28757         gl_MODULE_INDICATOR.
28758
28759         Tests of module 'spawn' in C++ mode.
28760         * tests/test-spawn-c++.cc: New file.
28761         * modules/spawn-tests (Files): Add it and tests/signature.h.
28762         (Depends-on): Add ansi-c++-opt.
28763         (Makefile.am): Arrange to compile and run test-spawn-c++.
28764         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
28765         gl_MODULE_INDICATOR.
28766
28767         Tests of module 'signal' in C++ mode.
28768         * tests/test-signal-c++.cc: New file.
28769         * modules/signal-tests (Files): Add it and tests/signature.h.
28770         (Depends-on): Add ansi-c++-opt.
28771         (Makefile.am): Arrange to compile and run test-signal-c++.
28772         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
28773         gl_MODULE_INDICATOR.
28774
28775         Tests of module 'search' in C++ mode.
28776         * tests/test-search-c++.cc: New file.
28777         * modules/search-tests (Files): Add it and tests/signature.h.
28778         (Depends-on): Add ansi-c++-opt.
28779         (Makefile.am): Arrange to compile and run test-search-c++.
28780         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
28781         gl_MODULE_INDICATOR.
28782
28783         Tests of module 'math' in C++ mode.
28784         * tests/test-math-c++.cc: New file.
28785         * modules/math-tests (Files): Add it and tests/signature.h.
28786         (Depends-on): Add ansi-c++-opt.
28787         (Makefile.am): Arrange to compile and run test-math-c++.
28788         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28789
28790         Tests of module 'locale' in C++ mode.
28791         * tests/test-locale-c++.cc: New file.
28792         * modules/locale-tests (Files): Add it and tests/signature.h.
28793         (Depends-on): Add ansi-c++-opt.
28794         (Makefile.am): Arrange to compile and run test-locale-c++.
28795         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
28796         gl_MODULE_INDICATOR.
28797
28798         Tests of module 'langinfo' in C++ mode.
28799         * tests/test-langinfo-c++.cc: New file.
28800         * modules/langinfo-tests (Files): Add it and tests/signature.h.
28801         (Depends-on): Add ansi-c++-opt.
28802         (Makefile.am): Arrange to compile and run test-langinfo-c++.
28803         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
28804         gl_MODULE_INDICATOR.
28805
28806         Tests of module 'iconv-h' in C++ mode.
28807         * tests/test-iconv-h-c++.cc: New file.
28808         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
28809         (Depends-on): Add ansi-c++-opt.
28810         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
28811
28812         Tests of module 'glob' in C++ mode.
28813         * tests/test-glob-c++.cc: New file.
28814         * modules/glob-tests (Files): Add it.
28815         (Depends-on): Add ansi-c++-opt.
28816         (Makefile.am): Arrange to compile and run test-glob-c++.
28817
28818         Tests of module 'fcntl-h' in C++ mode.
28819         * tests/test-fcntl-h-c++.cc: New file.
28820         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
28821         (Depends-on): Add ansi-c++-opt.
28822         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
28823         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
28824         gl_MODULE_INDICATOR.
28825
28826         Tests of module 'dirent' in C++ mode.
28827         * tests/test-dirent-c++.cc: New file.
28828         * modules/dirent-tests (Files): Add it and tests/signature.h.
28829         (Depends-on): Add ansi-c++-opt.
28830         (Makefile.am): Arrange to compile and run test-dirent-c++.
28831         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
28832         gl_MODULE_INDICATOR.
28833
28834         New module 'ansi-c++-opt'.
28835         * modules/ansi-c++-opt: New file.
28836         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
28837
28838         Document C++ namespace mode.
28839         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
28840
28841         wctype: Avoid #define replacements in C++ mode.
28842         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
28843         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
28844         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
28845         In C++, define a namespaced alias symbol.
28846         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
28847         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
28848         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
28849         rule.
28850
28851         wchar: Avoid #define replacements in C++ mode.
28852         * lib/wchar.in.h: Include c++defs.h.
28853         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
28854         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
28855         symbol.
28856         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
28857         * modules/wchar (Depends-on): Add c++defs.
28858         (Makefile.am): Update wchar.h rule.
28859
28860         unistd: Avoid #define replacements in C++ mode.
28861         * lib/unistd.in.h: Include c++defs.h.
28862         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
28863         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
28864         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
28865         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
28866         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
28867         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
28868         symbol.
28869         (environ): Update.
28870         * modules/unistd (Depends-on): Add c++defs.
28871         (Makefile.am): Update unistd.h rule.
28872
28873         time: Avoid #define replacements in C++ mode.
28874         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
28875         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
28876         define a namespaced alias symbol.
28877         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
28878         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
28879         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
28880         * modules/time (Depends-on): Add c++defs, warn-on-use.
28881         (Makefile.am): Update time.h rule.
28882         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
28883         * modules/nanosleep (configure.ac): Likewise.
28884         * modules/strptime (configure.ac): Likewise.
28885         * modules/timegm (configure.ac): Likewise.
28886
28887         sys_time: Avoid #define replacements in C++ mode.
28888         * lib/sys_time.in.h: Include c++defs.h.
28889         (gettimeofday): In C++, define a namespaced alias symbol.
28890         * modules/sys_time (Depends-on): Add c++defs.
28891         (Makefile.am): Update sys/time.h rule.
28892
28893         sys_stat: Avoid #define replacements in C++ mode.
28894         * lib/sys_stat.in.h: Include c++defs.h.
28895         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
28896         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
28897         namespaced alias symbol.
28898         In C++, define a namespaced alias symbol.
28899         * modules/sys_stat (Depends-on): Add c++defs.
28900         (Makefile.am): Update sys/stat.h rule.
28901
28902         sys_socket: Avoid #define replacements in C++ mode.
28903         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
28904         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
28905         definitions also when the system has a <sys/socket.h>.
28906         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
28907         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
28908         In C++, define a namespaced alias symbol.
28909         * modules/sys_socket (Depends-on): Add c++defs.
28910         (Makefile.am): Update sys/socket.h rule.
28911
28912         sys_select: Avoid #define replacements in C++ mode.
28913         * lib/sys_select.in.h: Include c++defs.h. Enable the function
28914         definitions also when the system has a <sys/select.h>.
28915         (select): In C++, define a namespaced alias symbol.
28916         * modules/sys_select (Depends-on): Add c++defs.
28917         (Makefile.am): Update sys/select.h rule.
28918
28919         sys_ioctl: Avoid #define replacements in C++ mode.
28920         * lib/sys_ioctl.in.h: Include c++defs.h.
28921         (ioctl): In C++, define a namespaced alias symbol.
28922         * modules/sys_ioctl (Depends-on): Add c++defs.
28923         (Makefile.am): Update sys/ioctl.h rule.
28924
28925         string: Avoid #define replacements in C++ mode.
28926         * lib/string.in.h: Include c++defs.h.
28927         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
28928         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28929         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28930         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
28931         strsignal, strverscmp): In C++, define a namespaced alias symbol.
28932         * modules/string (Depends-on): Add c++defs.
28933         (Makefile.am): Update string.h rule.
28934
28935         stdlib: Avoid #define replacements in C++ mode.
28936         * lib/stdlib.in.h: Include c++defs.h.
28937         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
28938         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
28939         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
28940         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
28941         symbol.
28942         * modules/stdlib (Depends-on): Add c++defs.
28943         (Makefile.am): Update stdlib.h rule.
28944
28945         stdio: Avoid #define replacements in C++ mode.
28946         * lib/stdio.in.h: Include c++defs.h.
28947         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
28948         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
28949         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
28950         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
28951         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
28952         namespaced alias symbol.
28953         * modules/stdio (Depends-on): Add c++defs.
28954         (Makefile.am): Update stdio.h rule.
28955
28956         spawn: Avoid #define replacements in C++ mode.
28957         * lib/spawn.in.h: Include c++defs.h.
28958         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28959         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28960         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28961         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28962         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28963         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28964         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28965         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28966         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28967         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28968         In C++, define a namespaced alias symbol.
28969         * modules/spawn (Depends-on): Add c++defs.
28970         (Makefile.am): Update spawn.h rule.
28971
28972         signal: Avoid #define replacements in C++ mode.
28973         * lib/signal.in.h: Include c++defs.h.
28974         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28975         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
28976         namespaced alias symbol.
28977         * modules/signal (Depends-on): Add c++defs.
28978         (Makefile.am): Update signal.h rule.
28979
28980         search: Avoid #define replacements in C++ mode.
28981         * lib/search.in.h: Include c++defs.h.
28982         (_gl_search_compar_fn, _gl_search_action_fn): New types.
28983         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
28984         symbol.
28985         * modules/search (Depends-on): Add c++defs.
28986         (Makefile.am): Update search.h rule.
28987
28988         math: Avoid #define replacements in C++ mode.
28989         * lib/math.in.h: Include c++defs.h.
28990         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
28991         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
28992         trunc, truncl): In C++, define a namespaced alias symbol.
28993         * modules/math (Depends-on): Add c++defs.
28994         (Makefile.am): Update math.h rule.
28995
28996         locale: Avoid #define replacements in C++ mode.
28997         * lib/locale.in.h: Include c++defs.h.
28998         (duplocale): In C++, define a namespaced alias symbol.
28999         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
29000         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
29001         * modules/locale (Depends-on): Add c++defs.
29002         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
29003
29004         langinfo: Avoid #define replacements in C++ mode.
29005         * lib/langinfo.in.h: Include c++defs.h.
29006         (nl_langinfo): In C++, define a namespaced alias symbol.
29007         * modules/langinfo (Depends-on): Add c++defs.
29008         (Makefile.am): Update langinfo.h rule.
29009
29010         iconv-h: Avoid #define replacements in C++ mode.
29011         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
29012         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
29013         symbol.
29014         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
29015         whenever iconv is present.
29016         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
29017         (Makefile.am): Update iconv.h rule.
29018
29019         glob: Avoid #define replacements in C++ mode.
29020         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
29021         (_gl_glob_errfunc_fn): New type.
29022         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
29023         symbol.
29024         * modules/glob (Depends-on): Add c++defs, warn-on-use.
29025         (Makefile.am): Update glob.h rule.
29026
29027         fcntl-h: Avoid #define replacements in C++ mode.
29028         * lib/fcntl.in.h: Include c++defs.h.
29029         (fcntl, open, openat): In C++, define a namespaced alias symbol.
29030         * modules/fcntl-h (Depends-on): Add c++defs.
29031         (Makefile.am): Update fcntl.h rule.
29032
29033         dirent: Avoid #define replacements in C++ mode.
29034         * lib/dirent.in.h: Include c++defs.h.
29035         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
29036         namespaced alias symbol.
29037         (dirfd): Update declaration.
29038         * modules/dirent (Depends-on): Add c++defs.
29039         (Makefile.am): Update dirent.h rule.
29040
29041         ctype: Make it usable in C++ code.
29042         * lib/ctype.in.h: Include c++defs.h.
29043         (isblank): Declare as extern "C".
29044         * modules/ctype (Depends-on): Add c++defs.
29045         (Makefile.am): Update ctype.h rule.
29046
29047         New module 'c++defs'.
29048         * modules/c++defs: New file.
29049         * build-aux/c++defs.h: New file.
29050         Reported by John W. Eaton <jwe@gnu.org>.
29051
29052 2010-03-07  Bruno Haible  <bruno@clisp.org>
29053
29054         logb: Provide missing declaration for Cygwin.
29055         * lib/math.in.h (logb): New declaration.
29056         * m4/logb.m4: New file.
29057         * modules/logb (Files): Add m4/logb.m4.
29058         (Depends-on): Add math.
29059         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
29060         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
29061         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
29062         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
29063         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
29064
29065 2010-03-07  Bruno Haible  <bruno@clisp.org>
29066
29067         Fix test-cond link error.
29068         * tests/test-cond.c: Include <stdio.h>.
29069
29070 2010-03-07  Bruno Haible  <bruno@clisp.org>
29071
29072         Fix test-dirent-safer link error.
29073         * modules/dirent-safer-tests (Makefile.am): Define
29074         test_dirent_safer_LDADD.
29075
29076 2010-03-07  Bruno Haible  <bruno@clisp.org>
29077
29078         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
29079         among default module list.
29080
29081 2010-03-07  Bruno Haible  <bruno@clisp.org>
29082
29083         Fix link error on platforms with GNU libiconv.
29084         * modules/unistr/u8-strcoll-tests (Makefile): Define
29085         test_u8_strcoll_LDADD.
29086         * modules/unistr/u16-strcoll-tests (Makefile): Define
29087         test_u16_strcoll_LDADD.
29088         * modules/unistr/u32-strcoll-tests (Makefile): Define
29089         test_u32_strcoll_LDADD.
29090
29091 2010-03-07  Bruno Haible  <bruno@clisp.org>
29092
29093         Use POSIX declarations for socket functions.
29094         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
29095         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
29096         rpl_sendto): Change declaration to match POSIX.
29097         * lib/connect.c (rpl_connect): Likewise.
29098         * lib/accept.c (rpl_accept): Likewise.
29099         * lib/bind.c (rpl_bind): Likewise.
29100         * lib/getpeername.c (rpl_getpeername): Likewise.
29101         * lib/getsockname.c (rpl_getsockname): Likewise.
29102         * lib/recv.c (rpl_recv): Likewise.
29103         * lib/send.c (rpl_send): Likewise.
29104         * lib/recvfrom.c (rpl_recvfrom): Likewise.
29105         * lib/sendto.c (rpl_sendto): Likewise.
29106
29107 2010-03-06  Bruno Haible  <bruno@clisp.org>
29108
29109         Clarify access, euidaccess, faccessat.
29110         * doc/posix-functions/faccessat.texi: Mention security problem under
29111         "Other problems", not "Portability problems".
29112         * doc/posix-functions/access.texi: Likewise. Mention a related security
29113         problem.
29114         * doc/glibc-functions/euidaccess.texi: Mention security problems.
29115         * lib/euidaccess.c: Add comments about platforms.
29116         * lib/unistd.in.h (access, euidaccess): Add warnings.
29117
29118 2010-03-07  Bruno Haible  <bruno@clisp.org>
29119
29120         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
29121         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
29122         (POSIX_SPAWN_SETSCHEDULER): Likewise.
29123         (POSIX_SPAWN_USEVFORK): Define in a way that works when
29124         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
29125         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
29126         declare when POSIX_SPAWN_SETSCHEDULER is zero.
29127         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
29128         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
29129         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
29130         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
29131         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
29132         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
29133         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
29134         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
29135         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
29136         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
29137         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
29138         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
29139         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
29140         Likewise.
29141         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
29142         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
29143         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
29144         Likewise.
29145         * tests/test-spawn.c (main): Make it work when
29146         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
29147
29148 2010-03-07  Bruno Haible  <bruno@clisp.org>
29149
29150         Fix incorrect Makefile.am generation in German locale.
29151         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29152         Execute sed command with character range in C locale.
29153
29154 2010-03-06  Bruno Haible  <bruno@clisp.org>
29155
29156         Tests for module 'iconv-h'.
29157         * modules/iconv-h-tests: New file.
29158         * tests/test-iconv-h.c: New file.
29159
29160         New module 'iconv-h'.
29161         * modules/iconv-h: New file.
29162         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
29163         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
29164         (configure.ac): Remove gl_ICONV_H.
29165         (Makefile.am): Remove rule for iconv.h.
29166
29167 2010-03-06  Bruno Haible  <bruno@clisp.org>
29168
29169         More consistent naming of *.m4 files.
29170         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
29171         * modules/wctype (Files): Update.
29172
29173         More consistent naming of *.m4 files.
29174         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
29175         * modules/wchar (Files): Update.
29176
29177 2010-03-06  Jim Meyering  <meyering@redhat.com>
29178
29179         euidaccess: relax license to LGPLv2+
29180         * modules/euidaccess (License): Relax to LGPLv2+.
29181
29182 2010-03-06  Bruno Haible  <bruno@clisp.org>
29183
29184         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
29185         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
29186         (Makefile.am): Augment lib_SOURCES instead.
29187
29188 2010-03-04  Jim Meyering  <meyering@redhat.com>
29189
29190         utime: remove obsolete module
29191         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
29192         unnecessary for years, and has been marked as obsolete for 10 months.
29193         * modules/utime: Remove file.
29194         * lib/utime.c: Remove file.
29195         * m4/utime.m4: Remove file.
29196         * m4/utimes-null.m4: Remove file.
29197         * doc/posix-functions/utime.texi (utime): Remove reference to
29198         the module.  Move the sole "fixed by gnulib" item into the
29199         "problems not fixed by Gnulib" list.
29200         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
29201
29202 2010-03-05  Simon Josefsson  <simon@josefsson.org>
29203
29204         * modules/exit (License): Relax license to LGPLv2+.
29205         (Status): Mark as obsolete.
29206         * NEWS: Mention deprecated 'exit' module.
29207         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
29208         of now obsolete 'exit'.
29209
29210 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29211
29212         fts-lgpl: remove unused module
29213         * modules/fts-lgpl: Remove.
29214         * MODULES.html.sh (func_all_modules): Adjust.
29215         * check-module (find_included_lib_files): Adjust.
29216         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
29217
29218 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
29219
29220         copy-acl: enhance Solaris ACL error handling
29221         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
29222         * lib/set-mode-acl.c (qset_acl): Likewise.
29223
29224 2010-03-02  Bruno Haible  <bruno@clisp.org>
29225
29226         spawn: Don't override the system defined values on FreeBSD 8.
29227         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
29228         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
29229         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
29230         if HAVE_POSIX_SPAWN is 1.
29231         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
29232
29233 2010-03-01  Bruno Haible  <bruno@clisp.org>
29234
29235         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
29236         regarding Automake.
29237
29238 2010-02-25  Bruno Haible  <bruno@clisp.org>
29239
29240         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
29241         * gnulib-tool: Define 'echo' as a function only before the ksh alias
29242         setting, not afterwards.
29243         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
29244
29245 2010-02-24  Eric Blake  <eblake@redhat.com>
29246
29247         bootstrap, git-version-gen: use timestamp
29248         * build-aux/git-version-gen (scriptversion): Force UTC.
29249         * build-aux/bootstrap (scriptversion): New variable.
29250
29251         bootstrap: allow older git
29252         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
29253         older than 1.6.4.  Requested by the libvirt project.
29254
29255 2010-02-23  Eric Blake  <eblake@redhat.com>
29256
29257         warn-on-use: work with old autoconf
29258         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
29259         AS_VAR semantics of autoconf 2.60.
29260         Reported by Bruno Haible.
29261
29262         bootstrap: improve some comments
29263         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
29264         clarification comments.
29265
29266         gettimeofday: provide correct function
29267         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
29268         when replacement is declared, otherwise provide gettimeofday.
29269         Reported by Michael Goffioul.
29270
29271 2010-02-23  Jim Meyering  <meyering@redhat.com>
29272
29273         lib-ignore: relax license to "unlimited", not LGPLv2+
29274         * modules/lib-ignore (License): Relax to "unlimited".
29275
29276 2010-02-23  Jim Meyering  <meyering@redhat.com>
29277
29278         lib-ignore: relax license to LGPLv2+
29279         * modules/lib-ignore (License): Relax to LGPLv2+.
29280
29281 2010-02-22  Eric Blake  <eblake@redhat.com>
29282
29283         lseek: avoid bash 3.2 broken pipe bug
29284         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
29285         warning from bash 3.2.
29286         Reported by Ben Pfaff, with analysis from Bruno Haible.
29287
29288         bootstrap: support non-FSF copyright holder
29289         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
29290         bootstrap.conf override of COPYRIGHT_HOLDER.
29291         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
29292
29293         bootstrap: interoperate with gettext 0.14.1
29294         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
29295
29296         bootstrap: allow for alternate submodule location
29297         * build-aux/bootstrap (gnulib_path): New variable; use instead of
29298         hardcoding submodule location.
29299         (gnulib_mk): Allow direct use of Makefile.am.
29300
29301         bootstrap: use GNULIB_SRCDIR to reduce disk usage
29302         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
29303         rather than reconfiguring where the submodule points.
29304
29305         gettimeofday: restore support for platforms that lack function
29306         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
29307         replacement if function is missing.
29308         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
29309         * modules/sys_time (Makefile.am): Substitute it.
29310         * lib/sys_time.in.h (gettimeofday): Check it.
29311         Reported by Michael Goffioul.
29312
29313 2010-02-21  Bruno Haible  <bruno@clisp.org>
29314
29315         * lib/stdio.in.h (obstack_printf): Fix typo.
29316
29317 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
29318
29319         vc-list-files: use bzr ls's -R option
29320         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
29321         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
29322
29323 2010-02-21  Jim Meyering  <meyering@redhat.com>
29324
29325         init.sh: fix EXEEXT shims to work also for names like test-prog
29326         * tests/init.sh: Re-exec a better shell, when needed.
29327         If the current shell lacks support for posix $(...), an init.sh-using
29328         test will now try to find a shell that supports that.  If EXEEXT is
29329         nonempty, we also require support for hyphen-in-alias-name and shell
29330         substitutions like ${var#glob}.  Failure to find such a shell results
29331         in a skipped test.
29332
29333 2010-02-21  Bruno Haible  <bruno@clisp.org>
29334
29335         Really work around around "broken pipe" error message from bash 3.2.
29336         * gnulib-tool (func_reset_sigpipe): Remove function.
29337         (echo): In bash 3.2, define to a function that uses printf.
29338         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
29339
29340 2010-02-20  Bruno Haible  <bruno@clisp.org>
29341
29342         Restore support for automake 1.9.6 with autoconf 2.61.
29343         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
29344         Reported by James Youngman <jay@gnu.org>.
29345
29346 2010-02-20  Bruno Haible  <bruno@clisp.org>
29347
29348         Improve *printf warning condition.
29349         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
29350         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
29351         and the function is overridden due to SIGPIPE emulation.
29352
29353 2010-02-20  Bruno Haible  <bruno@clisp.org>
29354
29355         * lib/stdio.in.h: Tweak comments.
29356
29357 2010-02-19  Bruno Haible  <bruno@clisp.org>
29358
29359         Make it easier to find modules. New gnulib-tool option '--find'.
29360         * gnulib-tool: New option --find.
29361         (func_usage): Document it.
29362         (func_sanitize_modulelist): New function, extracted from
29363         func_all_modules.
29364         (func_all_modules): Invoke it.
29365         * doc/gnulib-tool.texi (Which modules?): New node.
29366
29367 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
29368
29369         * lib/sys_select.in.h: Provide select replacement even if
29370         sys/select.h exists on a system, for Interix.
29371
29372 2010-02-18  Jim Meyering  <meyering@redhat.com>
29373
29374         init.sh: don't use $(...) just yet
29375         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
29376         to accommodate e.g., Solaris' /bin/sh.
29377
29378 2010-02-17  Bruno Haible  <bruno@clisp.org>
29379
29380         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
29381         Reported by Ludovic Courtès <ludo@gnu.org>.
29382
29383 2010-02-16  Simon Josefsson  <simon@josefsson.org>
29384
29385         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
29386         linking with -lintl.
29387
29388 2010-02-17  Simon Josefsson  <simon@josefsson.org>
29389
29390         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
29391         if not provided by the system's netdb.h.  Reported by
29392         ludo@gnu.org (Ludovic Courtès).
29393
29394 2010-02-15  Jim Meyering  <meyering@redhat.com>
29395
29396         init.sh: improve portability and efficiency
29397         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
29398         "dummy" in a for loop.
29399         Use '!', not '^' to select the complement of a character set used
29400         in a "case" statement.
29401         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
29402         Suggestions from Eric Blake.
29403
29404         init.sh: automatically accommodate programs with the .exe suffix
29405         Automatically arrange for an invocation of "prog" to execute the
29406         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
29407         may use the simpler "prog", yet still work when built on a system
29408         that requires specifying the added suffix.
29409         Do this by constructing a function named "prog" that invokes
29410         "prog.exe" for each .exe file in selected directories.
29411         * tests/init.sh (find_exe_basenames_): New function.
29412         (create_exe_shim_functions_): New function.
29413         (path_prepend_): Use it.
29414
29415         maint.mk: mark syntax-check sc_*.m rules as .PHONY
29416         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
29417         "make -t syntax-check" doesn't create a ton of sc_*.m files.
29418
29419 2010-02-14  Jim Meyering  <meyering@redhat.com>
29420
29421         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
29422         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
29423         (sc_prohibit_hash_pjw_without_use): New rule.
29424
29425         maint.mk: allow the default upload destination dir to be overridden
29426         * top/maint.mk (upload_dest_dir_): Define with a default that
29427         preserves the status quo.
29428         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
29429         Reported by Peter Simons.
29430
29431         maint.mk: prohibit inclusion of "hash.h" without_use
29432         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
29433
29434 2010-02-10  Jim Meyering  <meyering@redhat.com>
29435
29436         maint.mk: prohibit inclusion of "ignore-value.h" without_use
29437         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
29438
29439 2010-02-09  Eric Blake  <ebb9@byu.net>
29440         and Bruno Haible  <bruno@clisp.org>
29441
29442         obstack-printf-posix: ensure declaration
29443         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
29444         extracted from gl_FUNC_OBSTACK_PRINTF.
29445         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
29446         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
29447         Likewise.
29448         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
29449         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
29450         0.
29451
29452 2010-02-08  Bruno Haible  <bruno@clisp.org>
29453
29454         gnulib-tool: Fix typo in 2010-02-07 commit.
29455         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
29456         Reported by Eric Blake.
29457
29458 2010-02-07  Bruno Haible  <bruno@clisp.org>
29459
29460         gnulib-tool: Fix up caching patches.
29461         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
29462         option --no-cache. Use associative arrays when supported by the shell.
29463         (sed_comments): New variable.
29464         (modcache): Renamed from do_cache.
29465         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
29466         abbreviate unnecessarily.
29467         (have_associative): New variable.
29468         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
29469         way also for ksh and zsh.
29470         (func_init_sed_convert_to_cache_statements): New function, extracted
29471         from func_cache_lookup_module. Add support for associative arrays.
29472         Don't set the c_MODULE_cached variable here. Ignore all lines before
29473         the first field header. Remove only the final newline, not all trailing
29474         newlines. Support empty fields correctly. Limit the use of 'eval' to
29475         assignments.
29476         (func_get_description, func_get_status, func_get_notice,
29477         func_get_applicability, func_get_filelist, func_get_dependencies,
29478         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
29479         func_get_automake_snippet, func_get_include_directive,
29480         func_get_link_directive, func_get_license, func_get_maintainer):
29481         Update documentation. List the unoptimized code first. Add support for
29482         associative arrays. Limit the use of 'eval' to assignments.
29483         (func_get_applicability): Undo stylistic pessimisations.
29484         (func_get_automake_snippet, func_get_include_directive): Reduce code
29485         duplication.
29486         (func_modules_transitive_closure, func_modules_add_dummy,
29487         func_modules_notice, func_modules_to_filelist, func_add_file,
29488         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
29489         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
29490         func_create_testdir, func_create_megatestdir): Update documentation.
29491
29492 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29493
29494         * gnulib-tool (func_cache_lookup_module): Store the module name
29495         belonging to the cache variable; error out if two different
29496         module names map to the same cache variable name.
29497
29498 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29499
29500         gnulib-tool: Make caching optional.
29501         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
29502         Update matching short versions of --no-changelog.
29503         (func_usage): Update.
29504         (sed_extract_cache_prog): Renamed from ...
29505         (sed_extract_prog): ... this; revert to old extraction script.
29506         (func_get_description, func_get_status)
29507         (func_get_notice, func_get_applicability, func_get_filelist)
29508         (func_get_dependencies, func_get_autoconf_early_snippet)
29509         (func_get_autoconf_snippet, func_get_automake_snippet)
29510         (func_get_include_directive, func_get_link_directive)
29511         (func_get_license, func_get_maintainer): If $do_cache is false,
29512         use old, non-caching extraction scripts.
29513         Suggestion by Bruno Haible.
29514
29515 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29516
29517         gnulib-tool: cache module metainformation.
29518         * gnulib-tool (sed_extract_prog): Match newline before each
29519         header, and rewrite header to a shell variable suffix.
29520         (func_cache_var, func_cache_lookup_module): New functions,
29521         to turn a module name into a cache variable prefix, and to
29522         look up and cache module metainformation.
29523         (func_get_description, func_get_status)
29524         (func_get_notice, func_get_applicability, func_get_filelist)
29525         (func_get_dependencies, func_get_autoconf_early_snippet)
29526         (func_get_autoconf_snippet, func_get_automake_snippet)
29527         (func_get_include_directive, func_get_link_directive)
29528         (func_get_license, func_get_maintainer): Use
29529         func_cache_lookup_module.
29530
29531 2010-02-07  Bruno Haible  <bruno@clisp.org>
29532
29533         fnctl: Fix missing dependency.
29534         * modules/fcntl (Depends-on): Add getdtablesize.
29535         Reported by John W. Eaton <jwe@gnu.org>.
29536
29537 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29538
29539         Argp: fix recognition of short alias options.
29540
29541         * lib/argp-parse.c (convert_options): Fix improper use of
29542         `|' between character values.
29543         * tests/test-argp.c (group1_option): New alias option
29544         --read (-r).
29545         (group1_parser): Special handling for 'r'.
29546         (test15): New test case.
29547         (test_fun): Add test15.
29548         * tests/test-argp-2.sh: Update expected --help and --usage
29549         outputs.
29550
29551 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29552
29553         * tests/test-argp.c: Fix indentation.
29554
29555 2010-02-04  Eric Blake  <ebb9@byu.net>
29556
29557         gettimeofday: expose type of second argument
29558         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
29559         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
29560         * tests/test-gettimeofday.c: Use it to silence warning.
29561         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
29562         the issue.
29563
29564 2010-02-03  Jim Meyering  <meyering@redhat.com>
29565
29566         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
29567         * lib/regcomp.c (TYPE_SIGNED): Define.
29568         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
29569
29570         regcomp.c: avoid a new -Wshadow warning
29571         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
29572
29573 2010-02-01  Jim Meyering  <meyering@redhat.com>
29574
29575         removing useless parentheses in cpp #define directives
29576         For motivation, see commit c0221df4, "define STREQ(a,b)
29577         consistently, removing useless parentheses"
29578         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
29579         * lib/mountlist.c (MNT_IGNORE): Likewise.
29580         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
29581
29582 2010-02-01  Eric Blake  <ebb9@byu.net>
29583
29584         sys_time: use link-warning
29585         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
29586         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
29587         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
29588         * modules/sys_time (Depends-on): Add warn-on-use.
29589         (Makefile.am): Always build replacement.
29590         (configure.ac): Update substitutions.
29591         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
29592         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
29593         bother with SYS_TIME_H.
29594         * modules/gettimeofday (configure.ac): Declare indicator.
29595         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
29596         in use.
29597
29598         closein-tests: silence compiler warning
29599         * tests/test-closein.c (main): Ignore fread result.
29600         * modules/closein-tests (Depends-on): Add ignore-value.
29601
29602         tests: silence warning about system return
29603         * tests/test-areadlink-with-size.c (main): Ignore system result.
29604         * tests/test-areadlink.c (main): Likewise.
29605         * tests/test-areadlinkat-with-size.c (main): Likewise.
29606         * tests/test-areadlinkat.c (main): Likewise.
29607         * tests/test-canonicalize-lgpl.c (main): Likewise.
29608         * tests/test-canonicalize.c (main): Likewise.
29609         * tests/test-chown.c (main): Likewise.
29610         * tests/test-fchownat.c (main): Likewise.
29611         * tests/test-fdutimensat.c (main): Likewise.
29612         * tests/test-fstatat.c (main): Likewise.
29613         * tests/test-futimens.c (main): Likewise.
29614         * tests/test-lchown.c (main): Likewise.
29615         * tests/test-link.c (main): Likewise.
29616         * tests/test-linkat.c (main): Likewise.
29617         * tests/test-lstat.c (main): Likewise.
29618         * tests/test-mkdir.c (main): Likewise.
29619         * tests/test-mkdirat.c (main): Likewise.
29620         * tests/test-mkfifo.c (main): Likewise.
29621         * tests/test-mkfifoat.c (main): Likewise.
29622         * tests/test-mknod.c (main): Likewise.
29623         * tests/test-readlink.c (main): Likewise.
29624         * tests/test-remove.c (main): Likewise.
29625         * tests/test-rename.c (main): Likewise.
29626         * tests/test-renameat.c (main): Likewise.
29627         * tests/test-rmdir.c (main): Likewise.
29628         * tests/test-symlink.c (main): Likewise.
29629         * tests/test-symlinkat.c (main): Likewise.
29630         * tests/test-unlink.c (main): Likewise.
29631         * tests/test-unlinkat.c (main): Likewise.
29632         * tests/test-utimens.c (main): Likewise.
29633         * tests/test-utimensat.c (main): Likewise.
29634         * modules/areadlink-tests (Depends-on): Add ignore-value.
29635         * modules/areadlink-with-size-tests (Depends-on): Likewise.
29636         * modules/areadlinkat-tests (Depends-on): Likewise.
29637         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
29638         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29639         * modules/canonicalize-tests (Depends-on): Likewise.
29640         * modules/chown-tests (Depends-on): Likewise.
29641         * modules/fdutimensat-tests (Depends-on): Likewise.
29642         * modules/futimens-tests (Depends-on): Likewise.
29643         * modules/lchown-tests (Depends-on): Likewise.
29644         * modules/link-tests (Depends-on): Likewise.
29645         * modules/linkat-tests (Depends-on): Likewise.
29646         * modules/lstat-tests (Depends-on): Likewise.
29647         * modules/mkdir-tests (Depends-on): Likewise.
29648         * modules/mkfifo-tests (Depends-on): Likewise.
29649         * modules/mkfifoat-tests (Depends-on): Likewise.
29650         * modules/mknod-tests (Depends-on): Likewise.
29651         * modules/openat-tests (Depends-on): Likewise.
29652         * modules/readlink-tests (Depends-on): Likewise.
29653         * modules/remove-tests (Depends-on): Likewise.
29654         * modules/rename-tests (Depends-on): Likewise.
29655         * modules/renameat-tests (Depends-on): Likewise.
29656         * modules/rmdir-tests (Depends-on): Likewise.
29657         * modules/symlink-tests (Depends-on): Likewise.
29658         * modules/symlinkat-tests (Depends-on): Likewise.
29659         * modules/unlink-tests (Depends-on): Likewise.
29660         * modules/utimens-tests (Depends-on): Likewise.
29661         * modules/utimensat-tests (Depends-on): Likewise.
29662
29663 2010-01-31  Bruno Haible  <bruno@clisp.org>
29664
29665         Perform the same test for many <math.h> functions.
29666         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
29667         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
29668         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
29669         of gl_MATHFUNC.
29670         * modules/acos (configure.ac): Likewise.
29671         * modules/asin (configure.ac): Likewise.
29672         * modules/atan (configure.ac): Likewise.
29673         * modules/atan2 (configure.ac): Likewise.
29674         * modules/cbrt (configure.ac): Likewise.
29675         * modules/copysign (configure.ac): Likewise.
29676         * modules/cos (configure.ac): Likewise.
29677         * modules/cosh (configure.ac): Likewise.
29678         * modules/erf (configure.ac): Likewise.
29679         * modules/erfc (configure.ac): Likewise.
29680         * modules/exp (configure.ac): Likewise.
29681         * modules/fmod (configure.ac): Likewise.
29682         * modules/hypot (configure.ac): Likewise.
29683         * modules/j0 (configure.ac): Likewise.
29684         * modules/j1 (configure.ac): Likewise.
29685         * modules/jn (configure.ac): Likewise.
29686         * modules/lgamma (configure.ac): Likewise.
29687         * modules/log (configure.ac): Likewise.
29688         * modules/log10 (configure.ac): Likewise.
29689         * modules/log1p (configure.ac): Likewise.
29690         * modules/pow (configure.ac): Likewise.
29691         * modules/remainder (configure.ac): Likewise.
29692         * modules/sin (configure.ac): Likewise.
29693         * modules/sinh (configure.ac): Likewise.
29694         * modules/tan (configure.ac): Likewise.
29695         * modules/tanh (configure.ac): Likewise.
29696         * modules/y0 (configure.ac): Likewise.
29697         * modules/y1 (configure.ac): Likewise.
29698         * modules/yn (configure.ac): Likewise.
29699         Suggested by Paolo Bonzini.
29700
29701 2010-01-31  Bruno Haible  <bruno@clisp.org>
29702
29703         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
29704
29705 2010-01-31  Bruno Haible  <bruno@clisp.org>
29706
29707         Work around getdelim() bug on FreeBSD 8.0.
29708         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
29709         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
29710         not work.
29711         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
29712         is 1.
29713         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
29714         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
29715         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
29716         a non-zero size.
29717         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
29718
29719 2010-01-31  Bruno Haible  <bruno@clisp.org>
29720
29721         Work around getline() bug on FreeBSD 8.0.
29722         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
29723         and a non-zero size.
29724         * tests/test-getline.c (main): Likewise.
29725         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
29726         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
29727
29728 2010-01-28  Eric Blake  <ebb9@byu.net>
29729
29730         regex: fix build failure
29731         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
29732         platforms.
29733
29734 2010-01-28  Jim Meyering  <meyering@redhat.com>
29735
29736         regex: do not ignore memory allocation failure
29737         * lib/regex_internal.c (create_cd_newstate): Detect
29738         re_node_set_init_copy failure.   Extracted from glibc commit
29739         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29740
29741         regex: sync more white-space changes from libc
29742         * lib/regex_internal.c: White-space only changes.
29743         * lib/regexec.c: Likewise.
29744
29745         regex: add many uses of __attribute_warn_unused_result__
29746         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
29747         * lib/regexec.c: Likewise.
29748         Extracted from a messy glibc commit.
29749
29750         regcomp.c: spelling and merge-artifact from glibc
29751         * lib/regcomp.c: Merge remainder of glibc's
29752         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29753
29754         regcomp.c: sync white-space changes from glibc
29755         * lib/regcomp.c: Merge to accommodate white space
29756         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29757
29758         regcomp.c: do not ignore internal return values
29759         * lib/regcomp.c: Do not ignore internal return values.
29760         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
29761         but without its white-space changes and spelling fixes.
29762
29763         regex_internal.h: define __attribute_warn_unused_result__
29764         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
29765
29766         maint: add a syntax-check rule to check for vulnerable Makefile.in
29767         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
29768
29769 2010-01-27  Jim Meyering  <meyering@redhat.com>
29770
29771         ncftpput-ftp: clean up spaces
29772         * build-aux/ncftpput-ftp: Make Copyright line consistent.
29773         Remove trailing blanks.
29774
29775 2010-01-27  Simon Josefsson  <simon@josefsson.org>
29776
29777         * build-aux/git-version-gen: Fix copyright statement.
29778         * build-aux/gnupload: Likewise.
29779         * tests/test-arcfour.c: Likewise.
29780         * tests/test-arctwo.c: Likewise.
29781         * tests/test-count-one-bits.c: Likewise.
29782         * tests/test-crc.c: Likewise.
29783         * tests/test-des.c: Likewise.
29784         * tests/test-gc-arcfour.c: Likewise.
29785         * tests/test-gc-arctwo.c: Likewise.
29786         * tests/test-gc-des.c: Likewise.
29787         * tests/test-gc-hmac-md5.c: Likewise.
29788         * tests/test-gc-hmac-sha1.c: Likewise.
29789         * tests/test-gc-md2.c: Likewise.
29790         * tests/test-gc-md4.c: Likewise.
29791         * tests/test-gc-md5.c: Likewise.
29792         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29793         * tests/test-gc-rijndael.c: Likewise.
29794         * tests/test-gc-sha1.c: Likewise.
29795         * tests/test-gc.c: Likewise.
29796         * tests/test-gethostname.c: Likewise.
29797         * tests/test-gettimeofday.c: Likewise.
29798         * tests/test-hash.c: Likewise.
29799         * tests/test-hmac-md5.c: Likewise.
29800         * tests/test-hmac-sha1.c: Likewise.
29801         * tests/test-md2.c: Likewise.
29802         * tests/test-md4.c: Likewise.
29803         * tests/test-md5.c: Likewise.
29804         * tests/test-memchr.c: Likewise.
29805         * tests/test-memchr2.c: Likewise.
29806         * tests/test-memcmp.c: Likewise.
29807         * tests/test-memmem.c: Likewise.
29808         * tests/test-memrchr.c: Likewise.
29809         * tests/test-rawmemchr.c: Likewise.
29810         * tests/test-read-file.c: Likewise.
29811         * tests/test-rijndael.c: Likewise.
29812         * tests/test-sockets.c: Likewise.
29813         * tests/test-strchrnul.c: Likewise.
29814         * tests/test-strstr.c: Likewise.
29815         * tests/test-strtod.c: Likewise.
29816         * build-aux/ncftpput-ftp: Likewise.
29817
29818 2010-01-26  Eric Blake  <ebb9@byu.net>
29819
29820         ignore-value: update recommended header name
29821         * modules/ignore-value (Include): Only use <> for headers that
29822         exist in glibc.
29823
29824 2010-01-26  Jim Meyering  <meyering@redhat.com>
29825
29826         test-userspec.c: avoid compiler warnings
29827         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
29828         and "initialization discards qualifiers..." warnings.
29829         Put the first "uid" in its own scope, and make char* members "const".
29830
29831 2010-01-25  Bruno Haible  <bruno@clisp.org>
29832
29833         gnulib-tool: Make warning diagnostics consistent.
29834         * gnulib-tool (func_warning): New function.
29835         Use it everywhere where gnulib-tool produces output to stderr and it is
29836         not a fatal error.
29837
29838 2010-01-25  Bruno Haible  <bruno@clisp.org>
29839
29840         Fix test dependencies.
29841         * modules/xstrtol-tests (Depends-on): Add inttypes.
29842         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
29843
29844 2010-01-25 Pádraig Brady <P@draigBrady.com>
29845
29846         syntax-check: detect incorrect boolean macro values in config.h
29847         * modules/maintainer-makefile (configure.ac): Parameterize the location
29848         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
29849         The logic is from Eric Blake and the location indicated by Jim Meyering.
29850         Note the more natural CONFIG_HEADER name is prohibited by automake
29851         for backwards compatibility reasons.
29852         * top/maint.mk (sc_Wundef_boolean): New rule.
29853
29854 2010-01-25  Jim Meyering  <meyering@redhat.com>
29855
29856         bootstrap: detect MacOS 10.6's shasum, too
29857         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
29858         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
29859
29860 2010-01-23  Jim Meyering  <meyering@redhat.com>
29861
29862         xstrtoll: new module
29863         * modules/xstrtoll: New file.
29864         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
29865         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
29866         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
29867         ./configure fails if you use this module and lack "long long".
29868         * modules/xstrtoll-tests: New module.
29869         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
29870         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
29871         new init.sh-based test framework.
29872
29873 2010-01-24  Bruno Haible  <bruno@clisp.org>
29874
29875         Tests for module 'yn'.
29876         * modules/yn-tests: New file.
29877         * tests/test-yn.c: New file.
29878
29879         Tests for module 'y1'.
29880         * modules/y1-tests: New file.
29881         * tests/test-y1.c: New file.
29882
29883         Tests for module 'y0'.
29884         * modules/y0-tests: New file.
29885         * tests/test-y0.c: New file.
29886
29887         Tests for module 'tanh'.
29888         * modules/tanh-tests: New file.
29889         * tests/test-tanh.c: New file.
29890
29891         Tests for module 'tan'.
29892         * modules/tan-tests: New file.
29893         * tests/test-tan.c: New file.
29894
29895         Tests for module 'sqrt'.
29896         * modules/sqrt-tests: New file.
29897         * tests/test-sqrt.c: New file.
29898
29899         Tests for module 'sinh'.
29900         * modules/sinh-tests: New file.
29901         * tests/test-sinh.c: New file.
29902
29903         Tests for module 'sin'.
29904         * modules/sin-tests: New file.
29905         * tests/test-sin.c: New file.
29906
29907         Tests for module 'rint'.
29908         * modules/rint-tests: New file.
29909         * tests/test-rint.c: New file.
29910
29911         Tests for module 'remainder'.
29912         * modules/remainder-tests: New file.
29913         * tests/test-remainder.c: New file.
29914
29915         Tests for module 'pow'.
29916         * modules/pow-tests: New file.
29917         * tests/test-pow.c: New file.
29918
29919         Tests for module 'nextafter'.
29920         * modules/nextafter-tests: New file.
29921         * tests/test-nextafter.c: New file.
29922
29923         Tests for module 'modf'.
29924         * modules/modf-tests: New file.
29925         * tests/test-modf.c: New file.
29926
29927         Tests for module 'logb'.
29928         * modules/logb-tests: New file.
29929         * tests/test-logb.c: New file.
29930
29931         Tests for module 'log1p'.
29932         * modules/log1p-tests: New file.
29933         * tests/test-log1p.c: New file.
29934
29935         Tests for module 'log10'.
29936         * modules/log10-tests: New file.
29937         * tests/test-log10.c: New file.
29938
29939         Tests for module 'log'.
29940         * modules/log-tests: New file.
29941         * tests/test-log.c: New file.
29942
29943         Tests for module 'lgamma'.
29944         * modules/lgamma-tests: New file.
29945         * tests/test-lgamma.c: New file.
29946
29947         Tests for module 'ldexp'.
29948         * modules/ldexp-tests: New file.
29949         * tests/test-ldexp.c: New file.
29950
29951         Tests for module 'jn'.
29952         * modules/jn-tests: New file.
29953         * tests/test-jn.c: New file.
29954
29955         Tests for module 'j1'.
29956         * modules/j1-tests: New file.
29957         * tests/test-j1.c: New file.
29958
29959         Tests for module 'j0'.
29960         * modules/j0-tests: New file.
29961         * tests/test-j0.c: New file.
29962
29963         Tests for module 'hypot'.
29964         * modules/hypot-tests: New file.
29965         * tests/test-hypot.c: New file.
29966
29967         Tests for module 'fmod'.
29968         * modules/fmod-tests: New file.
29969         * tests/test-fmod.c: New file.
29970
29971         Tests for module 'fabs'.
29972         * modules/fabs-tests: New file.
29973         * tests/test-fabs.c: New file.
29974
29975         Tests for module 'exp'.
29976         * modules/exp-tests: New file.
29977         * tests/test-exp.c: New file.
29978
29979         Tests for module 'erfc'.
29980         * modules/erfc-tests: New file.
29981         * tests/test-erfc.c: New file.
29982
29983         Tests for module 'erf'.
29984         * modules/erf-tests: New file.
29985         * tests/test-erf.c: New file.
29986
29987         Tests for module 'cosh'.
29988         * modules/cosh-tests: New file.
29989         * tests/test-cosh.c: New file.
29990
29991         Tests for module 'cos'.
29992         * modules/cos-tests: New file.
29993         * tests/test-cos.c: New file.
29994
29995         Tests for module 'copysign'.
29996         * modules/copysign-tests: New file.
29997         * tests/test-copysign.c: New file.
29998
29999         Tests for module 'cbrt'.
30000         * modules/cbrt-tests: New file.
30001         * tests/test-cbrt.c: New file.
30002
30003         Tests for module 'atan2'.
30004         * modules/atan2-tests: New file.
30005         * tests/test-atan2.c: New file.
30006
30007         Tests for module 'atan'.
30008         * modules/atan-tests: New file.
30009         * tests/test-atan.c: New file.
30010
30011         Tests for module 'asin'.
30012         * modules/asin-tests: New file.
30013         * tests/test-asin.c: New file.
30014
30015         Tests for module 'acos'.
30016         * modules/acos-tests: New file.
30017         * tests/test-acos.c: New file.
30018
30019 2010-01-24  Bruno Haible  <bruno@clisp.org>
30020
30021         Fix tests for common <math.h> functions.
30022         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
30023         code snippet that references the function pointer, rather than merely
30024         calling the function. Substitute the FUNC_LIBM variable.
30025         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
30026         * modules/acos (configure.ac): Likewise.
30027         * modules/asin (configure.ac): Likewise.
30028         * modules/atan (configure.ac): Likewise.
30029         * modules/atan2 (configure.ac): Likewise.
30030         * modules/cbrt (configure.ac): Likewise.
30031         * modules/copysign (configure.ac): Likewise.
30032         * modules/cos (configure.ac): Likewise.
30033         * modules/cosh (configure.ac): Likewise.
30034         * modules/erf (configure.ac): Likewise.
30035         * modules/erfc (configure.ac): Likewise.
30036         * modules/exp (configure.ac): Likewise.
30037         * modules/fabs (configure.ac): Likewise.
30038         * modules/fmod (configure.ac): Likewise.
30039         * modules/hypot (configure.ac): Likewise.
30040         * modules/j0 (configure.ac): Likewise.
30041         * modules/j1 (configure.ac): Likewise.
30042         * modules/jn (configure.ac): Likewise.
30043         * modules/ldexp (configure.ac): Likewise.
30044         * modules/lgamma (configure.ac): Likewise.
30045         * modules/log (configure.ac): Likewise.
30046         * modules/log10 (configure.ac): Likewise.
30047         * modules/log1p (configure.ac): Likewise.
30048         * modules/logb (configure.ac): Likewise.
30049         * modules/modf (configure.ac): Likewise.
30050         * modules/nextafter (configure.ac): Likewise.
30051         * modules/pow (configure.ac): Likewise.
30052         * modules/remainder (configure.ac): Likewise.
30053         * modules/rint (configure.ac): Likewise.
30054         * modules/sin (configure.ac): Likewise.
30055         * modules/sinh (configure.ac): Likewise.
30056         * modules/tan (configure.ac): Likewise.
30057         * modules/tanh (configure.ac): Likewise.
30058         * modules/y0 (configure.ac): Likewise.
30059         * modules/y1 (configure.ac): Likewise.
30060         * modules/yn (configure.ac): Likewise.
30061
30062 2010-01-24  Bruno Haible  <bruno@clisp.org>
30063
30064         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
30065         * tests/test-acosl.c (x): New variable.
30066         (main): Store argument in x and fetch it from x.
30067         * tests/test-asinl.c (x): New variable.
30068         (main): Store argument in x and fetch it from x.
30069         * tests/test-atanl.c (x): New variable.
30070         (main): Store argument in x and fetch it from x.
30071         * tests/test-cosl.c (x): New variable.
30072         (main): Store argument in x and fetch it from x.
30073         * tests/test-expl.c (x): New variable.
30074         (main): Store argument in x and fetch it from x.
30075         * tests/test-logl.c (x): New variable.
30076         (main): Store argument in x and fetch it from x.
30077         * tests/test-sinl.c (x): New variable.
30078         (main): Store argument in x and fetch it from x.
30079         * tests/test-sqrtl.c (x): New variable.
30080         (main): Store argument in x and fetch it from x.
30081         * tests/test-tanl.c (x): New variable.
30082         (main): Store argument in x and fetch it from x.
30083
30084 2010-01-24  Bruno Haible  <bruno@clisp.org>
30085
30086         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
30087         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
30088         assignments to the initial TESTS_ENVIRONMENT.
30089         * doc/gnulib.texi (Unit test modules): Document it.
30090         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
30091         TESTS_ENVIRONMENT.
30092         * modules/btowc-tests (Makefile.am): Likewise.
30093         * modules/c-stack-tests (Makefile.am): Likewise.
30094         * modules/c-strcase-tests (Makefile.am): Likewise.
30095         * modules/copy-file-tests (Makefile.am): Likewise.
30096         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
30097         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
30098         * modules/mbrtowc-tests (Makefile.am): Likewise.
30099         * modules/mbscasecmp-tests (Makefile.am): Likewise.
30100         * modules/mbscasestr-tests (Makefile.am): Likewise.
30101         * modules/mbschr-tests (Makefile.am): Likewise.
30102         * modules/mbscspn-tests (Makefile.am): Likewise.
30103         * modules/mbsinit-tests (Makefile.am): Likewise.
30104         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
30105         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
30106         * modules/mbspbrk-tests (Makefile.am): Likewise.
30107         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
30108         * modules/mbsrchr-tests (Makefile.am): Likewise.
30109         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
30110         * modules/mbsspn-tests (Makefile.am): Likewise.
30111         * modules/mbsstr-tests (Makefile.am): Likewise.
30112         * modules/nl_langinfo-tests (Makefile.am): Likewise.
30113         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
30114         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
30115         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
30116         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
30117         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
30118         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
30119         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
30120         * modules/wcrtomb-tests (Makefile.am): Likewise.
30121         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
30122         * modules/wcsrtombs-tests (Makefile.am): Likewise.
30123         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
30124         assignments from TESTS_ENVIRONMENT.
30125         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
30126         augmentation.
30127         * modules/argp-version-etc-tests (Makefile.am): Likewise.
30128         * modules/atexit-tests (Makefile.am): Likewise.
30129         * modules/binary-io-tests (Makefile.am): Likewise.
30130         * modules/closein-tests (Makefile.am): Likewise.
30131         * modules/dprintf-posix-tests (Makefile.am): Likewise.
30132         * modules/exclude-tests (Makefile.am): Likewise.
30133         * modules/fflush-tests (Makefile.am): Likewise.
30134         * modules/fpending-tests (Makefile.am): Likewise.
30135         * modules/fprintf-posix-tests (Makefile.am): Likewise.
30136         * modules/freadahead-tests (Makefile.am): Likewise.
30137         * modules/freadptr-tests (Makefile.am): Likewise.
30138         * modules/freadseek-tests (Makefile.am): Likewise.
30139         * modules/fseek-tests (Makefile.am): Likewise.
30140         * modules/fseeko-tests (Makefile.am): Likewise.
30141         * modules/ftell-tests (Makefile.am): Likewise.
30142         * modules/ftello-tests (Makefile.am): Likewise.
30143         * modules/idpriv-drop-tests (Makefile.am): Likewise.
30144         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
30145         * modules/lseek-tests (Makefile.am): Likewise.
30146         * modules/parse-duration-tests (Makefile.am): Likewise.
30147         * modules/perror-tests (Makefile.am): Likewise.
30148         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
30149         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
30150         * modules/pipe-tests (Makefile.am): Likewise.
30151         * modules/pread-tests (Makefile.am): Likewise.
30152         * modules/printf-posix-tests (Makefile.am): Likewise.
30153         * modules/select-tests (Makefile.am): Likewise.
30154         * modules/sigpipe-tests (Makefile.am): Likewise.
30155         * modules/tsearch-tests (Makefile.am): Likewise.
30156         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
30157         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
30158         * modules/uniname/uniname-tests (Makefile.am): Likewise.
30159         * modules/uniwidth/width-tests (Makefile.am): Likewise.
30160         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
30161         * modules/version-etc-tests (Makefile.am): Likewise.
30162         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
30163         * modules/vprintf-posix-tests (Makefile.am): Likewise.
30164         * modules/xalloc-die-tests (Makefile.am): Likewise.
30165         * modules/xprintf-posix-tests (Makefile.am): Likewise.
30166         * modules/xstrtoimax-tests (Makefile.am): Likewise.
30167         * modules/xstrtol-tests (Makefile.am): Likewise.
30168         * modules/xstrtoumax-tests (Makefile.am): Likewise.
30169         * modules/yesno-tests (Makefile.am): Likewise.
30170         Suggested by Jim Meyering.
30171
30172 2010-01-24  Bruno Haible  <bruno@clisp.org>
30173
30174         More documentation.
30175         * doc/gnulib.texi (Writing modules): New chapter.
30176         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
30177         the new chapter.
30178
30179 2010-01-24  Jim Meyering  <meyering@redhat.com>
30180
30181         maint.mk: do not prepend "./" after filtering
30182         * top/maint.mk (_prepend_srcdir_prefix): New variable
30183         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
30184         "./" when $(srcdir) is ".".
30185
30186         define STREQ(a,b) consistently, removing useless parentheses
30187         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
30188         since the only risk is that "a" or "b" contains an unparenthesized
30189         comma, but if either did that, STREQ would have 3 or more arguments.
30190         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
30191         * lib/fts.c (STREQ): Remove unnecessary parentheses.
30192         * lib/hash-triple.c (STREQ): Likewise.
30193         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
30194         * lib/getugroups.c (STREQ): Likewise.
30195
30196 2010-01-23  Jim Meyering  <meyering@redhat.com>
30197
30198         maint.mk: fix syntax-check in a non-srcdir build directory
30199         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
30200         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
30201
30202 2010-01-22  Jim Meyering  <meyering@redhat.com>
30203
30204         userspec: add unit tests
30205         * tests/test-userspec.c: New file.
30206         * modules/userspec-tests: Likewise.
30207
30208 2010-01-21  Jim Meyering  <meyering@redhat.com>
30209
30210         maint.mk: handle source file names containing "." robustly
30211         * top/maint.mk (_dot_escaped_srcdir): Define.
30212         (VC_LIST): Use it in LHS of sed substitution.
30213
30214 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
30215
30216         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
30217         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
30218         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
30219         from a non-srcdir build.
30220
30221 2010-01-20  Eric Blake  <ebb9@byu.net>
30222
30223         warn-on-use: use instead of link-warning
30224         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
30225         * modules/unistd (Depends-on, Makefile.am): Likewise.
30226         * modules/arpa_inet (Depends-on): Replace link-warning with
30227         warn-on-use.
30228         (Makefile.am): Update rules accordingly.
30229         * modules/ctype (Depends-on, Makefile.am): Likewise.
30230         * modules/dirent (Depends-on, Makefile.am): Likewise.
30231         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
30232         * modules/inttypes (Depends-on, Makefile.am): Likewise.
30233         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30234         * modules/locale (Depends-on, Makefile.am): Likewise.
30235         * modules/math (Depends-on, Makefile.am): Likewise.
30236         * modules/search (Depends-on, Makefile.am): Likewise.
30237         * modules/signal (Depends-on, Makefile.am): Likewise.
30238         * modules/spawn (Depends-on, Makefile.am): Likewise.
30239         * modules/stdlib (Depends-on, Makefile.am): Likewise.
30240         * modules/string (Depends-on, Makefile.am): Likewise.
30241         * modules/strings (Depends-on, Makefile.am): Likewise.
30242         * modules/sys_file (Depends-on, Makefile.am): Likewise.
30243         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
30244         * modules/sys_select (Depends-on, Makefile.am): Likewise.
30245         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
30246         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
30247         * modules/sys_times (Depends-on, Makefile.am): Likewise.
30248         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30249         * modules/wchar (Depends-on, Makefile.am): Likewise.
30250         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
30251         should be poisoned.
30252         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
30253         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
30254         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
30255         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30256         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30257         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30258         * m4/math_h.m4 (gl_MATH_H): Likewise.
30259         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30260         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
30261         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
30262         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
30263         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
30264         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
30265         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
30266         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
30267         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
30268         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30269         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30270         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
30271         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30272         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
30273         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
30274         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30275         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
30276         GL_LINK_WARNING.
30277         * lib/ctype.in.h: Likewise.
30278         * lib/dirent.in.h: Likewise.
30279         * lib/fcntl.in.h: Likewise.
30280         * lib/inttypes.in.h: Likewise.
30281         * lib/langinfo.in.h: Likewise.
30282         * lib/locale.in.h: Likewise.
30283         * lib/math.in.h: Likewise.
30284         * lib/search.in.h: Likewise.
30285         * lib/signal.in.h: Likewise.
30286         * lib/spawn.in.h: Likewise.
30287         * lib/stdio.in.h: Likewise.
30288         * lib/stdlib.in.h: Likewise.
30289         * lib/string.in.h: Likewise.
30290         * lib/strings.in.h: Likewise.
30291         * lib/sys_file.in.h: Likewise.
30292         * lib/sys_ioctl.in.h: Likewise.
30293         * lib/sys_select.in.h: Likewise.
30294         * lib/sys_socket.in.h: Likewise.
30295         * lib/sys_stat.in.h: Likewise.
30296         * lib/sys_times.in.h: Likewise.
30297         * lib/sys_utsname.in.h: Likewise.
30298         * lib/unistd.in.h: Likewise.
30299         * lib/wchar.in.h: Likewise.
30300
30301 2010-01-20  Bruno Haible  <bruno@clisp.org>
30302
30303         Avoid duplicate -lm.
30304         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
30305         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
30306         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
30307         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
30308         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
30309         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
30310         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
30311         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
30312         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
30313         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
30314         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
30315         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30316         Reported by Paolo Bonzini.
30317
30318 2010-01-19  Bruno Haible  <bruno@clisp.org>
30319
30320         langinfo, nl_langinfo: Relicense under LGPLv2+.
30321         * modules/langinfo (License): Change to LGPLv2+.
30322         * modules/nl_langinfo (License): Likewise.
30323         Patch by David Lutterkort <lutter@redhat.com>.
30324
30325 2010-01-19  Bruno Haible  <bruno@clisp.org>
30326
30327         Avoid compilation error with cc on OSF/1 5.1.
30328         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
30329         statement, not before.
30330         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30331
30332 2010-01-18  Bruno Haible  <bruno@clisp.org>
30333
30334         Avoid a link error due to the __printf__ symbol.
30335         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
30336         and 2.6.x.
30337         (__format__, __printf__): Remove definitions.
30338         * lib/argp-fmtstream.h: Likewise.
30339         * lib/argp.h: Likewise.
30340         * lib/error.h: Likewise.
30341         * lib/vasnprintf.h: Likewise.
30342         * lib/xprintf.h: Likewise.
30343         * lib/xvasprintf.h: Likewise.
30344         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30345
30346 2010-01-18  Bruno Haible  <bruno@clisp.org>
30347
30348         Tests for module 'tanl'.
30349         * modules/tanl-tests: New file.
30350         * tests/test-tanl.c: New file.
30351
30352         Tests for module 'sqrtl'.
30353         * modules/sqrtl-tests: New file.
30354         * tests/test-sqrtl.c: New file.
30355
30356         Tests for module 'sinl'.
30357         * modules/sinl-tests: New file.
30358         * tests/test-sinl.c: New file.
30359
30360         Tests for module 'logl'.
30361         * modules/logl-tests: New file.
30362         * tests/test-logl.c: New file.
30363
30364         Tests for module 'expl'.
30365         * modules/expl-tests: New file.
30366         * tests/test-expl.c: New file.
30367
30368         Tests for module 'cosl'.
30369         * modules/cosl-tests: New file.
30370         * tests/test-cosl.c: New file.
30371
30372         Tests for module 'atanl'.
30373         * modules/atanl-tests: New file.
30374         * tests/test-atanl.c: New file.
30375
30376         Tests for module 'asinl'.
30377         * modules/asinl-tests: New file.
30378         * tests/test-asinl.c: New file.
30379
30380         Tests for module 'acosl'.
30381         * modules/acosl-tests: New file.
30382         * tests/test-acosl.c: New file.
30383
30384         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
30385         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
30386         tanl): Use the standard gnulib idiom.
30387         * lib/cosl.c: Don't include trigl.c and sincosl.c.
30388         * lib/sinl.c: Likewise.
30389         * lib/tanl.c: Don't include trigl.c.
30390         (kernel_tanl): Make static.
30391         * lib/sincosl.c: Include trigl.h first.
30392         * lib/trigl.c: Likewise.
30393         * m4/acosl.m4: New file.
30394         * m4/asinl.m4: New file.
30395         * m4/atanl.m4: New file.
30396         * m4/cosl.m4: New file.
30397         * m4/expl.m4: New file.
30398         * m4/logl.m4: New file.
30399         * m4/sinl.m4: New file.
30400         * m4/sqrtl.m4: New file.
30401         * m4/tanl.m4: New file.
30402         * m4/mathl.m4: Remove file.
30403         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
30404         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
30405         Don't initialize GNULIB_MATHL.
30406         * modules/acosl: New file.
30407         * modules/asinl: New file.
30408         * modules/atanl: New file.
30409         * modules/cosl: New file.
30410         * modules/expl: New file.
30411         * modules/logl: New file.
30412         * modules/sinl: New file.
30413         * modules/sqrtl: New file.
30414         * modules/tanl: New file.
30415         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
30416         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
30417         substitute GNULIB_MATHL.
30418         * modules/mathl: Rewritten.
30419         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
30420         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
30421         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
30422         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
30423         * doc/posix-functions/expl.texi: Mention the 'expl' module.
30424         * doc/posix-functions/logl.texi: Mention the 'logl' module.
30425         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
30426         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
30427         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
30428
30429 2010-01-18  Bruno Haible  <bruno@clisp.org>
30430
30431         sqrt: Make gl_FUNC_SQRT requirable.
30432         * m4/sqrt.m4: New file.
30433         * modules/sqrt (Files): Add it.
30434         (configure.ac): Invoke gl_FUNC_SQRT.
30435
30436 2010-01-18  Bruno Haible  <bruno@clisp.org>
30437
30438         New modules for common <math.h> functions.
30439         * m4/mathfunc.m4: New file.
30440         * modules/acos: New file.
30441         * modules/asin: New file.
30442         * modules/atan: New file.
30443         * modules/atan2: New file.
30444         * modules/cbrt: New file.
30445         * modules/copysign: New file.
30446         * modules/cos: New file.
30447         * modules/cosh: New file.
30448         * modules/erf: New file.
30449         * modules/erfc: New file.
30450         * modules/exp: New file.
30451         * modules/fabs: New file.
30452         * modules/fmod: New file.
30453         * modules/hypot: New file.
30454         * modules/j0: New file.
30455         * modules/j1: New file.
30456         * modules/jn: New file.
30457         * modules/ldexp: New file.
30458         * modules/lgamma: New file.
30459         * modules/log: New file.
30460         * modules/log10: New file.
30461         * modules/log1p: New file.
30462         * modules/logb: New file.
30463         * modules/modf: New file.
30464         * modules/nextafter: New file.
30465         * modules/pow: New file.
30466         * modules/remainder: New file.
30467         * modules/rint: New file.
30468         * modules/sin: New file.
30469         * modules/sinh: New file.
30470         * modules/sqrt: New file.
30471         * modules/tan: New file.
30472         * modules/tanh: New file.
30473         * modules/y0: New file.
30474         * modules/y1: New file.
30475         * modules/yn: New file.
30476         * doc/posix-functions/acos.texi: Mention the 'acos' module.
30477         * doc/posix-functions/asin.texi: Mention the 'asin' module.
30478         * doc/posix-functions/atan.texi: Mention the 'atan' module.
30479         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
30480         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
30481         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
30482         * doc/posix-functions/cos.texi: Mention the 'cos' module.
30483         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
30484         * doc/posix-functions/erf.texi: Mention the 'erf' module.
30485         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
30486         * doc/posix-functions/exp.texi: Mention the 'exp' module.
30487         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
30488         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
30489         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
30490         * doc/posix-functions/j0.texi: Mention the 'j0' module.
30491         * doc/posix-functions/j1.texi: Mention the 'j1' module.
30492         * doc/posix-functions/jn.texi: Mention the 'jn' module.
30493         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
30494         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
30495         * doc/posix-functions/log.texi: Mention the 'log' module.
30496         * doc/posix-functions/log10.texi: Mention the 'log10' module.
30497         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
30498         * doc/posix-functions/logb.texi: Mention the 'logb' module.
30499         * doc/posix-functions/modf.texi: Mention the 'modf' module.
30500         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
30501         * doc/posix-functions/pow.texi: Mention the 'pow' module.
30502         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
30503         * doc/posix-functions/rint.texi: Mention the 'rint' module.
30504         * doc/posix-functions/sin.texi: Mention the 'sin' module.
30505         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
30506         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
30507         * doc/posix-functions/tan.texi: Mention the 'tan' module.
30508         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
30509         * doc/posix-functions/y0.texi: Mention the 'y0' module.
30510         * doc/posix-functions/y1.texi: Mention the 'y1' module.
30511         * doc/posix-functions/yn.texi: Mention the 'yn' module.
30512
30513 2010-01-18  Jim Meyering  <meyering@redhat.com>
30514
30515         ignore-value: relax license to LGPLv2+
30516         * modules/ignore-value (License): Relax to LGPLv2+.
30517
30518         getdate: don't leak when TZ contains two or more '"'s
30519         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
30520         double quote in TZ after the first one.
30521
30522         readtokens: do not leak internal token_lengths buffer
30523         * lib/readtokens.c (readtokens): Free the local, lengths,
30524         when the supplied "token_lengths" parameter is NULL.
30525
30526 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30527
30528         Fix a couple of missing LIBTHREAD link failures on AIX.
30529         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
30530         $(LIBTHREAD).
30531         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
30532
30533         Link test-poll against INET_PTON_LIB.
30534         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
30535         for inet_pton on Solaris 10.
30536
30537 2010-01-17  Bruno Haible  <bruno@clisp.org>
30538
30539         unistdio/*-sprintf: Fix typo in module description.
30540         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
30541         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
30542         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
30543         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
30544         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
30545         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
30546         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
30547         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30548
30549 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30550
30551         gnulib-tool: fix filelist for AIX, HP-UX ksh.
30552         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
30553         variables in shell case patterns, for AIX and HP-UX ksh.
30554
30555         Split large sed scripts, for HP-UX sed.
30556         * modules/stdio: Split sed scripts around 50 sed commands,
30557         to avoid HP-UX limit of 99 commands, in the near future.
30558         * modules/string: Likewise.
30559         * modules/unistd: Likewise.
30560
30561         gnulib-tool: avoid writing in the current directory.
30562         * gnulib-tool (func_emit_lib_Makefile_am)
30563         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
30564         not in the current directory, so concurrent gnulib-tool
30565         instances do not interfere.
30566
30567 2010-01-16  Jim Meyering  <meyering@redhat.com>
30568
30569         doc: update users.txt
30570         * users.txt: Add grep.
30571         (diffutils, gzip): Update URLs.
30572
30573 2010-01-12  Bruno Haible  <bruno@clisp.org>
30574
30575         posix_spawn: Avoid test failure on Cygwin.
30576         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
30577         characters.
30578         Reported by Simon Josefsson.
30579
30580 2010-01-12  Bruno Haible  <bruno@clisp.org>
30581
30582         * tests/test-cond.c (main): When skipping the test, show the reason.
30583
30584 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30585
30586         * lib/striconv.c (str_cd_iconv): Avoid if before free.
30587
30588 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30589
30590         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
30591         VC_LIST_ALWAYS_EXCLUDE_REGEX.
30592
30593 2010-01-12  Eric Blake  <ebb9@byu.net>
30594
30595         build: guarantee AS_VAR_IF
30596         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
30597         (gl_AS_VAR_IF): Move...
30598         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
30599         Reported by Simon Josefsson.
30600
30601 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30602
30603         * lib/stdio.in.h: Fix typo.
30604
30605 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30606
30607         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
30608         libgpg-error.
30609
30610 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30611
30612         * tests/test-xalloc-die.sh: Use $EXEEXT.
30613
30614 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30615             Bruno Haible  <bruno@clisp.org>
30616
30617         getlogin, getlogin_r: Avoid test failure.
30618         * tests/test-getlogin.c: Include <stdio.h>.
30619         (main): Skip the test when the function fails because stdin is not a
30620         tty.
30621         * tests/test-getlogin_r.c: Include <stdio.h>.
30622         (main): Skip the test when the function fails because stdin is not a
30623         tty.
30624
30625 2010-01-11  Eric Blake  <ebb9@byu.net>
30626
30627         tests: avoid more large file warnings
30628         * tests/test-fflush.c: Avoid warning about ftell use.
30629         * tests/test-fseek.c: Avoid warning about fseek use.
30630
30631 2010-01-10  Bruno Haible  <bruno@clisp.org>
30632
30633         nproc: Work better on Linux when /proc and /sys are not mounted.
30634         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
30635         as lower bound when, on glibc/Linux systems,
30636         sysconf (_SC_NPROCESSORS_CONF) returns 1.
30637         Suggested by Pádraig Brady <P@draigbrady.com>.
30638         Reported by Dmitry V. Levin <ldv@altlinux.org>.
30639
30640         nproc: Refactor.
30641         * lib/nproc.c (num_processors_via_affinity_mask): New function,
30642         extracted from num_processors.
30643         (num_processors): Call it.
30644
30645 2010-01-11  Jim Meyering  <meyering@redhat.com>
30646
30647         utimecmp: avoid new warning from upcoming gcc-4.5.0
30648         * lib/utimecmp.c (BILLION): Define using #define rather than an
30649         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
30650
30651 2010-01-11  Eric Blake  <ebb9@byu.net>
30652
30653         math: add portability warnings for classification macros
30654         * modules/math (Depends-on): Add warn-on-use.
30655         (Makefile.am): Provide new substitutions.
30656         * m4/math_h.m4 (gl_MATH_H): Require inline.
30657         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
30658         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
30659         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
30660         implement warnings.
30661
30662         unistd: warn on use of environ without module
30663         * modules/unistd (Depends-on): Add warn-on-use.
30664         (Makefile.am): Provide new substitutions.
30665         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
30666         * lib/unistd.in.h (environ): Wrap with a warning helper function.
30667
30668         stdio: warn on suspicious uses
30669         * modules/stdio (Depends-on): Add warn-on-use.
30670         (Makefile.am): Provide new substitutions.
30671         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
30672         fseeko.
30673         * lib/stdio.in.h (gets): Always warn on use.
30674         (fseek, ftell): Adjust when warnings are issued, and honor
30675         _GL_NO_LARGE_FILES as a way to silence the warning.
30676         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
30677         any warning about large file offsets.
30678         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
30679         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
30680         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
30681         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
30682         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
30683         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
30684         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
30685         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
30686
30687         warn-on-use: new module
30688         * modules/warn-on-use: New file.
30689         * build-aux/warn-on-use.h: Likewise.
30690         * m4/warn-on-use.m4: Likewise.
30691         * MODULES.html.sh (Support for building): Mention it.
30692
30693 2010-01-10  Bruno Haible  <bruno@clisp.org>
30694
30695         Tests for module 'unistr/u32-strdup'.
30696         * modules/unistr/u32-strdup-tests: New file.
30697         * tests/unistr/test-u32-strdup.c: New file.
30698
30699         Tests for module 'unistr/u16-strdup'.
30700         * modules/unistr/u16-strdup-tests: New file.
30701         * tests/unistr/test-u16-strdup.c: New file.
30702
30703         Tests for module 'unistr/u8-strdup'.
30704         * modules/unistr/u8-strdup-tests: New file.
30705         * tests/unistr/test-u8-strdup.c: New file.
30706         * tests/unistr/test-strdup.h: New file.
30707
30708         Tests for module 'unistr/u32-strncmp'.
30709         * modules/unistr/u32-strncmp-tests: New file.
30710         * tests/unistr/test-u32-strncmp.c: New file.
30711
30712         Tests for module 'unistr/u16-strncmp'.
30713         * modules/unistr/u16-strncmp-tests: New file.
30714         * tests/unistr/test-u16-strncmp.c: New file.
30715
30716         Tests for module 'unistr/u8-strncmp'.
30717         * modules/unistr/u8-strncmp-tests: New file.
30718         * tests/unistr/test-u8-strncmp.c: New file.
30719         * tests/unistr/test-strncmp.h: New file.
30720
30721         Tests for module 'unistr/u32-strcoll'.
30722         * modules/unistr/u32-strcoll-tests: New file.
30723         * tests/unistr/test-u32-strcoll.c: New file.
30724
30725         Tests for module 'unistr/u16-strcoll'.
30726         * modules/unistr/u16-strcoll-tests: New file.
30727         * tests/unistr/test-u16-strcoll.c: New file.
30728
30729         Tests for module 'unistr/u8-strcoll'.
30730         * modules/unistr/u8-strcoll-tests: New file.
30731         * tests/unistr/test-u8-strcoll.c: New file.
30732
30733         Tests for module 'unistr/u32-strcmp'.
30734         * modules/unistr/u32-strcmp-tests: New file.
30735         * tests/unistr/test-u32-strcmp.c: New file.
30736         * tests/unistr/test-u32-strcmp.h: New file.
30737
30738         Tests for module 'unistr/u16-strcmp'.
30739         * modules/unistr/u16-strcmp-tests: New file.
30740         * tests/unistr/test-u16-strcmp.c: New file.
30741         * tests/unistr/test-u16-strcmp.h: New file.
30742
30743         Tests for module 'unistr/u8-strcmp'.
30744         * modules/unistr/u8-strcmp-tests: New file.
30745         * tests/unistr/test-u8-strcmp.c: New file.
30746         * tests/unistr/test-u8-strcmp.h: New file.
30747         * tests/unistr/test-strcmp.h: New file.
30748
30749         Tests for module 'unistr/u32-strncat'.
30750         * modules/unistr/u32-strncat-tests: New file.
30751         * tests/unistr/test-u32-strncat.c: New file.
30752
30753         Tests for module 'unistr/u16-strncat'.
30754         * modules/unistr/u16-strncat-tests: New file.
30755         * tests/unistr/test-u16-strncat.c: New file.
30756
30757         Tests for module 'unistr/u8-strncat'.
30758         * modules/unistr/u8-strncat-tests: New file.
30759         * tests/unistr/test-u8-strncat.c: New file.
30760         * tests/unistr/test-strncat.h: New file.
30761
30762         Tests for module 'unistr/u32-strcat'.
30763         * modules/unistr/u32-strcat-tests: New file.
30764         * tests/unistr/test-u32-strcat.c: New file.
30765
30766         Tests for module 'unistr/u16-strcat'.
30767         * modules/unistr/u16-strcat-tests: New file.
30768         * tests/unistr/test-u16-strcat.c: New file.
30769
30770         Tests for module 'unistr/u8-strcat'.
30771         * modules/unistr/u8-strcat-tests: New file.
30772         * tests/unistr/test-u8-strcat.c: New file.
30773         * tests/unistr/test-strcat.h: New file.
30774
30775         Tests for module 'unistr/u32-stpncpy'.
30776         * modules/unistr/u32-stpncpy-tests: New file.
30777         * tests/unistr/test-u32-stpncpy.c: New file.
30778
30779         Tests for module 'unistr/u16-stpncpy'.
30780         * modules/unistr/u16-stpncpy-tests: New file.
30781         * tests/unistr/test-u16-stpncpy.c: New file.
30782
30783         Tests for module 'unistr/u8-stpncpy'.
30784         * modules/unistr/u8-stpncpy-tests: New file.
30785         * tests/unistr/test-u8-stpncpy.c: New file.
30786         * tests/unistr/test-stpncpy.h: New file.
30787
30788         Tests for module 'unistr/u32-strncpy'.
30789         * modules/unistr/u32-strncpy-tests: New file.
30790         * tests/unistr/test-u32-strncpy.c: New file.
30791
30792         Tests for module 'unistr/u16-strncpy'.
30793         * modules/unistr/u16-strncpy-tests: New file.
30794         * tests/unistr/test-u16-strncpy.c: New file.
30795
30796         Tests for module 'unistr/u8-strncpy'.
30797         * modules/unistr/u8-strncpy-tests: New file.
30798         * tests/unistr/test-u8-strncpy.c: New file.
30799         * tests/unistr/test-strncpy.h: New file.
30800
30801         Tests for module 'unistr/u32-stpcpy'.
30802         * modules/unistr/u32-stpcpy-tests: New file.
30803         * tests/unistr/test-u32-stpcpy.c: New file.
30804
30805         Tests for module 'unistr/u16-stpcpy'.
30806         * modules/unistr/u16-stpcpy-tests: New file.
30807         * tests/unistr/test-u16-stpcpy.c: New file.
30808
30809         Tests for module 'unistr/u8-stpcpy'.
30810         * modules/unistr/u8-stpcpy-tests: New file.
30811         * tests/unistr/test-u8-stpcpy.c: New file.
30812         * tests/unistr/test-stpcpy.h: New file.
30813
30814         Tests for module 'unistr/u32-strcpy'.
30815         * modules/unistr/u32-strcpy-tests: New file.
30816         * tests/unistr/test-u32-strcpy.c: New file.
30817
30818         Tests for module 'unistr/u16-strcpy'.
30819         * modules/unistr/u16-strcpy-tests: New file.
30820         * tests/unistr/test-u16-strcpy.c: New file.
30821
30822         Tests for module 'unistr/u8-strcpy'.
30823         * modules/unistr/u8-strcpy-tests: New file.
30824         * tests/unistr/test-u8-strcpy.c: New file.
30825         * tests/unistr/test-strcpy.h: New file.
30826
30827         Tests for module 'unistr/u32-strnlen'.
30828         * modules/unistr/u32-strnlen-tests: New file.
30829         * tests/unistr/test-u32-strnlen.c: New file.
30830
30831         Tests for module 'unistr/u16-strnlen'.
30832         * modules/unistr/u16-strnlen-tests: New file.
30833         * tests/unistr/test-u16-strnlen.c: New file.
30834
30835         Tests for module 'unistr/u8-strnlen'.
30836         * modules/unistr/u8-strnlen-tests: New file.
30837         * tests/unistr/test-u8-strnlen.c: New file.
30838         * tests/unistr/test-strnlen.h: New file.
30839
30840         Tests for module 'unistr/u32-strlen'.
30841         * modules/unistr/u32-strlen-tests: New file.
30842         * tests/unistr/test-u32-strlen.c: New file.
30843
30844         Tests for module 'unistr/u16-strlen'.
30845         * modules/unistr/u16-strlen-tests: New file.
30846         * tests/unistr/test-u16-strlen.c: New file.
30847
30848         Tests for module 'unistr/u8-strlen'.
30849         * modules/unistr/u8-strlen-tests: New file.
30850         * tests/unistr/test-u8-strlen.c: New file.
30851
30852         Tests for module 'unistr/u32-prev'.
30853         * modules/unistr/u32-prev-tests: New file.
30854         * tests/unistr/test-u32-prev.c: New file.
30855
30856         Tests for module 'unistr/u16-prev'.
30857         * modules/unistr/u16-prev-tests: New file.
30858         * tests/unistr/test-u16-prev.c: New file.
30859
30860         Tests for module 'unistr/u8-prev'.
30861         * modules/unistr/u8-prev-tests: New file.
30862         * tests/unistr/test-u8-prev.c: New file.
30863
30864         Tests for module 'unistr/u32-next'.
30865         * modules/unistr/u32-next-tests: New file.
30866         * tests/unistr/test-u32-next.c: New file.
30867
30868         Tests for module 'unistr/u16-next'.
30869         * modules/unistr/u16-next-tests: New file.
30870         * tests/unistr/test-u16-next.c: New file.
30871
30872         Tests for module 'unistr/u8-next'.
30873         * modules/unistr/u8-next-tests: New file.
30874         * tests/unistr/test-u8-next.c: New file.
30875
30876         Tests for module 'unistr/u32-strmbtouc'.
30877         * modules/unistr/u32-strmbtouc-tests: New file.
30878         * tests/unistr/test-u32-strmbtouc.c: New file.
30879
30880         Tests for module 'unistr/u16-strmbtouc'.
30881         * modules/unistr/u16-strmbtouc-tests: New file.
30882         * tests/unistr/test-u16-strmbtouc.c: New file.
30883
30884         Tests for module 'unistr/u8-strmbtouc'.
30885         * modules/unistr/u8-strmbtouc-tests: New file.
30886         * tests/unistr/test-u8-strmbtouc.c: New file.
30887
30888         Tests for module 'unistr/u32-strmblen'.
30889         * modules/unistr/u32-strmblen-tests: New file.
30890         * tests/unistr/test-u32-strmblen.c: New file.
30891
30892         Tests for module 'unistr/u16-strmblen'.
30893         * modules/unistr/u16-strmblen-tests: New file.
30894         * tests/unistr/test-u16-strmblen.c: New file.
30895
30896         Tests for module 'unistr/u8-strmblen'.
30897         * modules/unistr/u8-strmblen-tests: New file.
30898         * tests/unistr/test-u8-strmblen.c: New file.
30899
30900         Tests for module 'unistr/u32-cpy-alloc'.
30901         * modules/unistr/u32-cpy-alloc-tests: New file.
30902         * tests/unistr/test-u32-cpy-alloc.c: New file.
30903
30904         Tests for module 'unistr/u16-cpy-alloc'.
30905         * modules/unistr/u16-cpy-alloc-tests: New file.
30906         * tests/unistr/test-u16-cpy-alloc.c: New file.
30907
30908         Tests for module 'unistr/u8-cpy-alloc'.
30909         * modules/unistr/u8-cpy-alloc-tests: New file.
30910         * tests/unistr/test-u8-cpy-alloc.c: New file.
30911         * tests/unistr/test-cpy-alloc.h: New file.
30912
30913         Tests for module 'unistr/u32-mbsnlen'.
30914         * modules/unistr/u32-mbsnlen-tests: New file.
30915         * tests/unistr/test-u32-mbsnlen.c: New file.
30916
30917         Tests for module 'unistr/u16-mbsnlen'.
30918         * modules/unistr/u16-mbsnlen-tests: New file.
30919         * tests/unistr/test-u16-mbsnlen.c: New file.
30920
30921         Tests for module 'unistr/u8-mbsnlen'.
30922         * modules/unistr/u8-mbsnlen-tests: New file.
30923         * tests/unistr/test-u8-mbsnlen.c: New file.
30924
30925         Tests for module 'unistr/u32-chr'.
30926         * modules/unistr/u32-chr-tests: New file.
30927         * tests/unistr/test-u32-chr.c: New file.
30928
30929         Tests for module 'unistr/u16-chr'.
30930         * modules/unistr/u16-chr-tests: New file.
30931         * tests/unistr/test-u16-chr.c: New file.
30932
30933         Tests for module 'unistr/u8-chr'.
30934         * modules/unistr/u8-chr-tests: New file.
30935         * tests/unistr/test-u8-chr.c: New file.
30936         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
30937
30938         Tests for module 'unistr/u32-cmp2'.
30939         * modules/unistr/u32-cmp2-tests: New file.
30940         * tests/unistr/test-u32-cmp2.c: New file.
30941
30942         Tests for module 'unistr/u16-cmp2'.
30943         * modules/unistr/u16-cmp2-tests: New file.
30944         * tests/unistr/test-u16-cmp2.c: New file.
30945
30946         Tests for module 'unistr/u8-cmp2'.
30947         * modules/unistr/u8-cmp2-tests: New file.
30948         * tests/unistr/test-u8-cmp2.c: New file.
30949         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
30950
30951         Tests for module 'unistr/u32-cmp'.
30952         * modules/unistr/u32-cmp-tests: New file.
30953         * tests/unistr/test-u32-cmp.c: New file.
30954
30955         Tests for module 'unistr/u16-cmp'.
30956         * modules/unistr/u16-cmp-tests: New file.
30957         * tests/unistr/test-u16-cmp.c: New file.
30958
30959         Tests for module 'unistr/u8-cmp'.
30960         * modules/unistr/u8-cmp-tests: New file.
30961         * tests/unistr/test-u8-cmp.c: New file.
30962         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
30963
30964         Tests for module 'unistr/u32-set'.
30965         * modules/unistr/u32-set-tests: New file.
30966         * tests/unistr/test-u32-set.c: New file.
30967
30968         Tests for module 'unistr/u16-set'.
30969         * modules/unistr/u16-set-tests: New file.
30970         * tests/unistr/test-u16-set.c: New file.
30971
30972         Tests for module 'unistr/u8-set'.
30973         * modules/unistr/u8-set-tests: New file.
30974         * tests/unistr/test-u8-set.c: New file.
30975         * tests/unistr/test-set.h: New file.
30976
30977         Tests for module 'unistr/u32-move'.
30978         * modules/unistr/u32-move-tests: New file.
30979         * tests/unistr/test-u32-move.c: New file.
30980
30981         Tests for module 'unistr/u16-move'.
30982         * modules/unistr/u16-move-tests: New file.
30983         * tests/unistr/test-u16-move.c: New file.
30984
30985         Tests for module 'unistr/u8-move'.
30986         * modules/unistr/u8-move-tests: New file.
30987         * tests/unistr/test-u8-move.c: New file.
30988         * tests/unistr/test-move.h: New file.
30989
30990         Tests for module 'unistr/u32-cpy'.
30991         * modules/unistr/u32-cpy-tests: New file.
30992         * tests/unistr/test-u32-cpy.c: New file.
30993
30994         Tests for module 'unistr/u16-cpy'.
30995         * modules/unistr/u16-cpy-tests: New file.
30996         * tests/unistr/test-u16-cpy.c: New file.
30997
30998         Tests for module 'unistr/u8-cpy'.
30999         * modules/unistr/u8-cpy-tests: New file.
31000         * tests/unistr/test-u8-cpy.c: New file.
31001         * tests/unistr/test-cpy.h: New file.
31002
31003 2010-01-09  Bruno Haible  <bruno@clisp.org>
31004
31005         Tests for module 'unistr/u32-uctomb'.
31006         * modules/unistr/u32-uctomb-tests: New file.
31007         * tests/unistr/test-u32-uctomb.c: New file.
31008
31009         Tests for module 'unistr/u16-uctomb'.
31010         * modules/unistr/u16-uctomb-tests: New file.
31011         * tests/unistr/test-u16-uctomb.c: New file.
31012
31013         Tests for module 'unistr/u8-uctomb'.
31014         * modules/unistr/u8-uctomb-tests: New file.
31015         * tests/unistr/test-u8-uctomb.c: New file.
31016
31017         Tests for module 'unistr/u32-mbtoucr'.
31018         * modules/unistr/u32-mbtoucr-tests: New file.
31019         * tests/unistr/test-u32-mbtoucr.c: New file.
31020
31021         Tests for module 'unistr/u16-mbtoucr'.
31022         * modules/unistr/u16-mbtoucr-tests: New file.
31023         * tests/unistr/test-u16-mbtoucr.c: New file.
31024
31025         Tests for module 'unistr/u8-mbtoucr'.
31026         * modules/unistr/u8-mbtoucr-tests: New file.
31027         * tests/unistr/test-u8-mbtoucr.c: New file.
31028
31029         Tests for module 'unistr/u32-mbtouc'.
31030         * modules/unistr/u32-mbtouc-tests: New file.
31031         * tests/unistr/test-u32-mbtouc.c: New file.
31032
31033         Tests for module 'unistr/u16-mbtouc'.
31034         * modules/unistr/u16-mbtouc-tests: New file.
31035         * tests/unistr/test-u16-mbtouc.c: New file.
31036
31037         Tests for module 'unistr/u8-mbtouc'.
31038         * modules/unistr/u8-mbtouc-tests: New file.
31039         * tests/unistr/test-u8-mbtouc.c: New file.
31040
31041         Tests for module 'unistr/u32-mbtouc-unsafe'.
31042         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
31043         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
31044         * tests/unistr/test-u32-mbtouc.h: New file.
31045
31046         Tests for module 'unistr/u16-mbtouc-unsafe'.
31047         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
31048         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
31049         * tests/unistr/test-u16-mbtouc.h: New file.
31050
31051         Tests for module 'unistr/u8-mbtouc-unsafe'.
31052         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
31053         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
31054         * tests/unistr/test-u8-mbtouc.h: New file.
31055
31056         Tests for module 'unistr/u32-mblen'.
31057         * modules/unistr/u32-mblen-tests: New file.
31058         * tests/unistr/test-u32-mblen.c: New file.
31059
31060         Tests for module 'unistr/u16-mblen'.
31061         * modules/unistr/u16-mblen-tests: New file.
31062         * tests/unistr/test-u16-mblen.c: New file.
31063
31064         Tests for module 'unistr/u8-mblen'.
31065         * modules/unistr/u8-mblen-tests: New file.
31066         * tests/unistr/test-u8-mblen.c: New file.
31067
31068         Tests for module 'unistr/u32-to-u16'.
31069         * modules/unistr/u32-to-u16-tests: New file.
31070         * tests/unistr/test-u32-to-u16.c: New file.
31071
31072         Tests for module 'unistr/u32-to-u8'.
31073         * modules/unistr/u32-to-u8-tests: New file.
31074         * tests/unistr/test-u32-to-u8.c: New file.
31075
31076         Tests for module 'unistr/u16-to-u32'.
31077         * modules/unistr/u16-to-u32-tests: New file.
31078         * tests/unistr/test-u16-to-u32.c: New file.
31079
31080         Tests for module 'unistr/u16-to-u8'.
31081         * modules/unistr/u16-to-u8-tests: New file.
31082         * tests/unistr/test-u16-to-u8.c: New file.
31083
31084         Tests for module 'unistr/u8-to-u32'.
31085         * modules/unistr/u8-to-u32-tests: New file.
31086         * tests/unistr/test-u8-to-u32.c: New file.
31087
31088         Tests for module 'unistr/u8-to-u16'.
31089         * modules/unistr/u8-to-u16-tests: New file.
31090         * tests/unistr/test-u8-to-u16.c: New file.
31091
31092         Tests for module 'unistr/u32-check'.
31093         * modules/unistr/u32-check-tests: New file.
31094         * tests/unistr/test-u32-check.c: New file.
31095
31096         Tests for module 'unistr/u16-check'.
31097         * modules/unistr/u16-check-tests: New file.
31098         * tests/unistr/test-u16-check.c: New file.
31099
31100         Tests for module 'unistr/u8-check'.
31101         * modules/unistr/u8-check-tests: New file.
31102         * tests/unistr/test-u8-check.c: New file.
31103
31104         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
31105         (category_equals): New function.
31106         (main): Add more tests.
31107         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
31108
31109         * tests/unictype/test-bidi_byname.c (main): Add more tests.
31110
31111 2010-01-10  Bruno Haible  <bruno@clisp.org>
31112
31113         unistr/u*-strcoll: Try harder to distinguish different strings.
31114         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
31115         compare s1 and s2 to see if they are different.
31116
31117 2010-01-10  Bruno Haible  <bruno@clisp.org>
31118
31119         unistr/u*-stpncpy: Fix the return value.
31120         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
31121         description of the return value consistent with stpncpy in glibc.
31122         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
31123         written non-NUL unit.
31124
31125 2010-01-10  Bruno Haible  <bruno@clisp.org>
31126
31127         unistr/u*-next: Add missing dependencies.
31128         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
31129         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
31130         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
31131
31132 2010-01-10  Bruno Haible  <bruno@clisp.org>
31133
31134         unistr/u8-mbsnlen: Fix return value for incomplete character.
31135         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
31136         u8_mblen.
31137         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
31138         Remove unistr/u8-mblen.
31139         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
31140         u16_mblen.
31141         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
31142         Remove unistr/u16-mblen.
31143
31144 2010-01-10  Bruno Haible  <bruno@clisp.org>
31145
31146         wchar: Fix compilation error when <wchar.h> is used from coreutils.
31147         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
31148         Reported by Brian Gough <bjg@gnu.org> and
31149         Chris Clayton <chris2553@googlemail.com> via
31150         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
31151
31152 2010-01-09  Bruno Haible  <bruno@clisp.org>
31153
31154         unistr/u16-to-u32: Reject invalid input.
31155         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
31156         u16_mbtouc.
31157         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
31158         Remove unistr/u16-mbtouc.
31159
31160         unistr/u16-to-u8: Reject invalid input.
31161         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
31162         u16_mbtouc.
31163         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
31164         Remove unistr/u16-mbtouc.
31165
31166         unistr/u8-to-u32: Reject invalid input.
31167         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
31168         u8_mbtouc.
31169         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
31170         Remove unistr/u8-mbtouc.
31171
31172         unistr/u8-to-u16: Reject invalid input.
31173         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
31174         u8_mbtouc.
31175         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
31176         Remove unistr/u8-mbtouc.
31177
31178 2010-01-09  Bruno Haible  <bruno@clisp.org>
31179
31180         Tests for module 'getlogin'.
31181         * modules/getlogin-tests: New file.
31182         * tests/test-getlogin.c: New file.
31183
31184         New module 'getlogin'.
31185         * lib/unistd.in.h (getlogin): New declaration.
31186         * lib/getlogin.c: New file.
31187         * m4/getlogin.m4: New file.
31188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
31189         HAVE_GETLOGIN.
31190         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
31191         HAVE_GETLOGIN.
31192         * modules/getlogin: New file.
31193         * doc/posix-functions/getlogin.texi: Mention the new module.
31194         Reported by John W. Eaton <jwe@gnu.org>.
31195
31196 2010-01-09  Bruno Haible  <bruno@clisp.org>
31197
31198         getlogin_r: Support for native Windows.
31199         * lib/getlogin_r.c: Include <windows.h>
31200         (getlogin_r): Implement for native Windows.
31201         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
31202         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
31203         via John W. Eaton <jwe@gnu.org>.
31204
31205 2010-01-09  Bruno Haible  <bruno@clisp.org>
31206
31207         getlogin_r: Small fixes.
31208         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
31209         succeeds.
31210         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
31211         before testing whether getlogin_r is declared. No need to set
31212         HAVE_DECL_GETLOGIN_R to 1.
31213         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
31214
31215 2010-01-09  Bruno Haible  <bruno@clisp.org>
31216
31217         * lib/unistd.in.h (getlogin_r): Add comment.
31218
31219 2010-01-09  Bruno Haible  <bruno@clisp.org>
31220
31221         Tests for module 'getlogin_r'.
31222         * modules/getlogin_r-tests: New file.
31223         * tests/test-getlogin_r.c: New file.
31224
31225 2010-01-09  Jim Meyering  <meyering@redhat.com>
31226
31227         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
31228         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
31229         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
31230
31231 2010-01-08  Simon Josefsson  <simon@josefsson.org>
31232
31233         * lib/dup2.c (rpl_dup2): Improve comment.
31234
31235 2010-01-08  Eric Blake  <ebb9@byu.net>
31236
31237         maint.mk: allow packages to add makefile @@ exceptions
31238         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
31239         (sc_makefile_check): Rename...
31240         (sc_makefile_at_at_check): ...to this, and use hook.
31241
31242         dup2: work around mingw bug
31243         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
31244         Reported by Simon Josefsson.
31245
31246 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
31247
31248         glob: Fix C++ compilation.
31249         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
31250         C++.
31251
31252 2010-01-07  Bruno Haible  <bruno@clisp.org>
31253
31254         Fix indentation of wctype.in.h, broken since 2007-01-06.
31255         * lib/wctype.in.h: Fix indentation of preprocessor directives.
31256
31257 2010-01-07  Bruno Haible  <bruno@clisp.org>
31258
31259         mbslen: Avoid collision with system function.
31260         * lib/string.in.h [MirBSD]: Include <wchar.h>.
31261         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
31262         * m4/mbslen.m4: New file.
31263         * modules/mbslen (Files): Add it.
31264         (configure.ac): Invoke gl_MBSLEN.
31265         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
31266         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
31267         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
31268         via Ian Beckwith <ianb@erislabs.net>.
31269
31270 2010-01-07  Bruno Haible  <bruno@clisp.org>
31271
31272         dirent: Document the last fix.
31273         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
31274
31275 2010-01-07  Bruno Haible  <bruno@clisp.org>
31276
31277         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
31278         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
31279         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
31280         va_list are defined.
31281         * doc/posix-headers/stdio.texi: Document the bug of missing types.
31282         Reported by Eric Blake.
31283
31284 2010-01-07  Bruno Haible  <bruno@clisp.org>
31285
31286         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
31287         * modules/xlist (Depends-on): Add 'list',
31288         * modules/xoset (Depends-on): Add 'oset'.
31289         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31290
31291 2010-01-07  Bruno Haible  <bruno@clisp.org>
31292
31293         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
31294         * doc/posix-functions/strncasecmp.texi: Likewise.
31295
31296 2010-01-07  Bruno Haible  <bruno@clisp.org>
31297
31298         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
31299
31300 2010-01-07  John W. Eaton  <jwe@octave.org>
31301
31302         wctype: allow C++ use
31303         * lib/wctype.in.h: Add extern "C" block for C++.
31304
31305 2010-01-06  Eric Blake  <ebb9@byu.net>
31306
31307         maint.mk: detect incorrect GFDL usage
31308         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
31309
31310 2010-01-06  Jim Meyering  <meyering@redhat.com>
31311         and Eric Blake  <ebb9@byu.net>
31312
31313         maint.mk: ignore multi-line copyright in NEWS
31314         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
31315
31316 2010-01-06  Eric Blake  <ebb9@byu.net>
31317
31318         select: add missing dependency
31319         * modules/select-tests (Depends-on): Move sockets dependency...
31320         * modules/select (Depends-on): ...here.
31321         Reported by Ian Beckwith.
31322
31323         doc: regenerate INSTALL
31324         * doc/INSTALL: Reflect recent autoconf update.
31325         * doc/INSTALL.ISO: Likewise.
31326         * doc/INSTALL.UTF-8: Likewise.
31327
31328         pread: fix compilation on glibc
31329         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
31330         Reported by Ralf Wildenhues.
31331
31332         dirent: fix test failure
31333         * lib/dirent.in.h (includes): Guarantee ino_t.
31334         Reported by Ralf Wildenhues.
31335
31336 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
31337
31338         linkat, renameat: avoid bad free
31339         * lib/at-func2.c (at_func2): Fix typo.
31340         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
31341
31342 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31343
31344         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
31345         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
31346         to avoid failure of symlink test later.
31347
31348 2010-01-06  Eric Blake  <ebb9@byu.net>
31349
31350         stdio, unistd: guarantee ssize_t
31351         * lib/unistd.in.h (includes): Ensure that types required by POSIX
31352         2008 are exposed when needed.
31353         * lib/stdio.in.h (includes): Likewise.
31354         Reported by Ralf Wildenhues.
31355
31356 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
31357
31358         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
31359         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
31360         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
31361
31362 2010-01-06  Jim Meyering  <meyering@redhat.com>
31363
31364         readtokens: this module *does* require xalloc.h
31365         It uses only functions that were omitted by the old syntax-check rule.
31366         * lib/readtokens.c: Include "xalloc.h" once again.
31367         * modules/readtokens (Depends-on): Add xalloc.
31368         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
31369
31370 2010-01-05  Eric Blake  <ebb9@byu.net>
31371
31372         maint: support 'make announcement' from a VPATH build
31373         * top/maint.mk (announcement): Look for correct NEWS file.
31374
31375 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
31376
31377         utimens (fdutimens): ignore a negative FD, per contract
31378         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
31379         when we have a valid file descriptor.  Otherwise, using a brand
31380         new glibc (with just-patched futimens that now fails with EBADF)
31381         would cause this function to fail with ENOSYS.
31382         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
31383         See also http://bugzilla.redhat.com/552320.
31384
31385 2010-01-05  Eric Blake  <ebb9@byu.net>
31386
31387         strcase: document what it provides
31388         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
31389         gnulib module.
31390         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
31391         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
31392
31393 2010-01-05  Jim Meyering  <meyering@redhat.com>
31394
31395         maint: remove useless inclusions of "xalloc.h"
31396         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
31397         * lib/readtokens.c: Likewise.
31398         * lib/same.c: Likewise.
31399         * modules/getloadavg (Depends-on): Remove xalloc.
31400         * modules/readtokens: Likewise.
31401         * modules/same: Likewise.
31402
31403         maint.mk: include 4 more function names in alloca.h-checking regexp
31404         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
31405         regexp.  Before, we would give a false-positive (saying alloca.h
31406         is included unnecessarily) when the only uses involved omitted symbols.
31407
31408         xalloc.h: use consistent formatting
31409         * lib/xalloc.h: Move declarations to start in the first column.
31410
31411 2010-01-05  Eric Blake  <ebb9@byu.net>
31412
31413         mkdir: avoid xalloc
31414         * lib/mkdir.c (includes): Drop unused header.
31415         Reported by John W. Eaton.
31416
31417 2010-01-04  Jim Meyering  <meyering@redhat.com>
31418
31419         nl_langinfo: avoid configure-time syntax error
31420         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
31421         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
31422         the empty string.  Don't let that provoke a shell syntax error.
31423
31424         regcomp, regexec, fnmatch: avoid array bounds read error
31425         * lib/regcomp.c (build_equiv_class): From glibc:
31426         Use only the low 24 bits of a findidx return value as an index
31427         into the weights array.  Patch by Ulrich Drepper:
31428         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
31429         * lib/regexec.c (check_node_accept_bytes): Likewise.
31430         * lib/fnmatch_loop.c (FCT): Likewise.
31431
31432         regcomp: skip collseq lookup when there are no rules
31433         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
31434         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
31435
31436         regcomp: recognize ill-formed { } expressions
31437         * lib/regcomp.c (parse_dup_op): From glibc:
31438         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
31439
31440         regcomp: fix typo in comment
31441         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
31442         s/satisfy/satisfies/.
31443
31444         regcomp: sync from glibc: remove dead store
31445         * lib/regcomp.c (duplicate_node_closure): Remove useless
31446         search_duplicated_node call and dead store.
31447
31448         regcomp: sync from glibc; always use nl_langinfo
31449         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
31450         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
31451         * modules/regex (Depends-on): Add nl_langinfo.
31452
31453 2010-01-04  Eric Blake  <ebb9@byu.net>
31454
31455         fdopendir: fix configure test
31456         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
31457
31458 2010-01-01  Bruno Haible  <bruno@clisp.org>
31459
31460         wchar: Remove unused configure check.
31461         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
31462
31463 2010-01-01  Eric Blake  <ebb9@byu.net>
31464
31465         headers: make check of system header explicit
31466         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
31467         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
31468         ourselves.
31469         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
31470         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31471         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
31472         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
31473         internals.
31474         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
31475         missing.
31476         Suggested by Bruno Haible.
31477
31478 2010-01-01  Jim Meyering  <meyering@redhat.com>
31479
31480         ChangeLog: tweak to eliminate unnecessary copyright line
31481         * ChangeLog: Remove a copyright line that was mistakenly updated
31482         by today's update-copyright run.  Reported by Eric Blake.
31483
31484         test-update-copyright: don't let envvar setting cause test failure
31485         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
31486
31487 2010-01-01  Bruno Haible  <bruno@clisp.org>
31488
31489         localename: Avoid gcc warning.
31490         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
31491         function if it is not used.
31492
31493 2010-01-01  Jim Meyering  <meyering@redhat.com>
31494
31495         update nearly all FSF copyright year lists to include 2010
31496         Use the same procedure as for 2009, outlined in
31497         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
31498
31499         version-etc: set COPYRIGHT_YEAR to 2010
31500         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
31501
31502 2009-12-31  Eric Blake  <ebb9@byu.net>
31503
31504         doc: correct availability of cygwin 1.5.x getopt
31505         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
31506         variables.
31507         * doc/posix-functions/opterr.texi (opterr): Likewise.
31508         * doc/posix-functions/optind.texi (optind): Likewise.
31509         * doc/posix-functions/optopt.texi (optopt): Likewise.
31510         * doc/posix-functions/tzname.texi (tzname): Likewise.
31511
31512         openat: update maintainer
31513         * modules/openat (Maintainer): Add myself.
31514
31515         utimens: avoid shadowing warning
31516         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
31517         buffers into one, to avoid shadowing, as well as avoiding a
31518         redundant stat.
31519         Reported by Jim Meyering.
31520
31521         test-dup2: avoid compiler warning
31522         * tests/test-dup2.c (is_inheritable): Only define if used.
31523
31524 2010-01-01  Bruno Haible  <bruno@clisp.org>
31525
31526         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
31527         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
31528         defined, use wctomb instead of wcrtomb.
31529
31530 2010-01-01  Bruno Haible  <bruno@clisp.org>
31531
31532         iconv: Reject native Solaris iconv.
31533         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
31534         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
31535
31536 2009-12-31  Bruno Haible  <bruno@clisp.org>
31537
31538         * tests/test-signal.c (main): Remove test of 'SIG'.
31539
31540 2009-12-31  Bruno Haible  <bruno@clisp.org>
31541
31542         spawn: Fix incomplete fix.
31543         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
31544         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
31545         warnings for GNULIB_POSIXCHECK again.
31546         Reported by Eric Blake.
31547
31548 2009-12-31  Bruno Haible  <bruno@clisp.org>
31549
31550         Avoid namespace pollution on glibc systems.
31551         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
31552         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
31553         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
31554         glibc systems.
31555
31556 2009-12-31  Bruno Haible  <bruno@clisp.org>
31557
31558         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
31559         (gl_REPLACE_WCHAR_H): Turn into a no-op.
31560         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
31561         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
31562         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
31563         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
31564         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
31565
31566 2009-12-31  Bruno Haible  <bruno@clisp.org>
31567
31568         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31569         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
31570         afterwards.
31571
31572 2009-12-31  Bruno Haible  <bruno@clisp.org>
31573
31574         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
31575         SYS_UTSNAME_H.
31576
31577 2009-12-31  Bruno Haible  <bruno@clisp.org>
31578
31579         spawn: Fix misapplied patch.
31580         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
31581         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
31582         warnings for GNULIB_POSIXCHECK.
31583
31584 2009-12-31  Bruno Haible  <bruno@clisp.org>
31585
31586         times: Update after sys_times changed.
31587         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
31588         * modules/times (Files): Add it.
31589         (configure.ac): Invoke gl_FUNC_TIMES.
31590
31591 2009-12-31  Bruno Haible  <bruno@clisp.org>
31592
31593         Use AC_C_INLINE where necessary.
31594         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
31595         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
31596         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
31597         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31598         * m4/mbfile.m4 (gl_MBFILE): Likewise.
31599         * m4/mbiter.m4 (gl_MBITER): Likewise.
31600         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31601         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31602         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
31603         * modules/u64 (configure.ac): Likewise.
31604
31605 2009-12-31  Bruno Haible  <bruno@clisp.org>
31606
31607         Use AC_C_INLINE instead of module 'inline' where possible.
31608         * modules/inline (Description): Clarify purpose.
31609         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
31610         * modules/count-one-bits (Depends-on): Remove inline.
31611         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
31612         * modules/openat (Depends-on): Remove inline.
31613         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
31614         instead of depending on module 'inline'.
31615         * modules/filevercmp (Depends-on, configure.ac): Likewise.
31616         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
31617         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
31618         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
31619         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
31620         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
31621         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
31622         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
31623         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
31624         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
31625         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
31626         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
31627         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
31628         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
31629         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
31630         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
31631         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
31632         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
31633         Likewise.
31634         * modules/unictype/property-ascii-hex-digit (Depends-on,
31635         configure.ac): Likewise.
31636         * modules/unictype/property-bidi-arabic-digit (Depends-on,
31637         configure.ac): Likewise.
31638         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
31639         configure.ac): Likewise.
31640         * modules/unictype/property-bidi-block-separator (Depends-on,
31641         configure.ac): Likewise.
31642         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
31643         configure.ac): Likewise.
31644         * modules/unictype/property-bidi-common-separator (Depends-on,
31645         configure.ac): Likewise.
31646         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
31647         Likewise.
31648         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
31649         configure.ac): Likewise.
31650         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
31651         configure.ac): Likewise.
31652         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
31653         configure.ac): Likewise.
31654         * modules/unictype/property-bidi-european-digit (Depends-on,
31655         configure.ac): Likewise.
31656         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
31657         configure.ac): Likewise.
31658         * modules/unictype/property-bidi-left-to-right (Depends-on,
31659         configure.ac): Likewise.
31660         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
31661         configure.ac): Likewise.
31662         * modules/unictype/property-bidi-other-neutral (Depends-on,
31663         configure.ac): Likewise.
31664         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
31665         Likewise.
31666         * modules/unictype/property-bidi-segment-separator (Depends-on,
31667         configure.ac): Likewise.
31668         * modules/unictype/property-bidi-whitespace (Depends-on,
31669         configure.ac): Likewise.
31670         * modules/unictype/property-combining (Depends-on, configure.ac):
31671         Likewise.
31672         * modules/unictype/property-composite (Depends-on, configure.ac):
31673         Likewise.
31674         * modules/unictype/property-currency-symbol (Depends-on,
31675         configure.ac): Likewise.
31676         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
31677         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
31678         Likewise.
31679         * modules/unictype/property-default-ignorable-code-point (Depends-on,
31680         configure.ac): Likewise.
31681         * modules/unictype/property-deprecated (Depends-on, configure.ac):
31682         Likewise.
31683         * modules/unictype/property-diacritic (Depends-on, configure.ac):
31684         Likewise.
31685         * modules/unictype/property-extender (Depends-on, configure.ac):
31686         Likewise.
31687         * modules/unictype/property-format-control (Depends-on, configure.ac):
31688         Likewise.
31689         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
31690         Likewise.
31691         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
31692         Likewise.
31693         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
31694         Likewise.
31695         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
31696         Likewise.
31697         * modules/unictype/property-hyphen (Depends-on, configure.ac):
31698         Likewise.
31699         * modules/unictype/property-id-continue (Depends-on, configure.ac):
31700         Likewise.
31701         * modules/unictype/property-id-start (Depends-on, configure.ac):
31702         Likewise.
31703         * modules/unictype/property-ideographic (Depends-on, configure.ac):
31704         Likewise.
31705         * modules/unictype/property-ids-binary-operator (Depends-on,
31706         configure.ac): Likewise.
31707         * modules/unictype/property-ids-trinary-operator (Depends-on,
31708         configure.ac): Likewise.
31709         * modules/unictype/property-ignorable-control (Depends-on,
31710         configure.ac): Likewise.
31711         * modules/unictype/property-iso-control (Depends-on, configure.ac):
31712         Likewise.
31713         * modules/unictype/property-join-control (Depends-on, configure.ac):
31714         Likewise.
31715         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
31716         Likewise.
31717         * modules/unictype/property-line-separator (Depends-on, configure.ac):
31718         Likewise.
31719         * modules/unictype/property-logical-order-exception (Depends-on,
31720         configure.ac): Likewise.
31721         * modules/unictype/property-lowercase (Depends-on, configure.ac):
31722         Likewise.
31723         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
31724         * modules/unictype/property-non-break (Depends-on, configure.ac):
31725         Likewise.
31726         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
31727         Likewise.
31728         * modules/unictype/property-numeric (Depends-on, configure.ac):
31729         Likewise.
31730         * modules/unictype/property-other-alphabetic (Depends-on,
31731         configure.ac): Likewise.
31732         * modules/unictype/property-other-default-ignorable-code-point
31733         (Depends-on, configure.ac): Likewise.
31734         * modules/unictype/property-other-grapheme-extend (Depends-on,
31735         configure.ac): Likewise.
31736         * modules/unictype/property-other-id-continue (Depends-on,
31737         configure.ac): Likewise.
31738         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
31739         Likewise.
31740         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
31741         Likewise.
31742         * modules/unictype/property-other-math (Depends-on, configure.ac):
31743         Likewise.
31744         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
31745         Likewise.
31746         * modules/unictype/property-paired-punctuation (Depends-on,
31747         configure.ac): Likewise.
31748         * modules/unictype/property-paragraph-separator (Depends-on,
31749         configure.ac): Likewise.
31750         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
31751         Likewise.
31752         * modules/unictype/property-pattern-white-space (Depends-on,
31753         configure.ac): Likewise.
31754         * modules/unictype/property-private-use (Depends-on, configure.ac):
31755         Likewise.
31756         * modules/unictype/property-punctuation (Depends-on, configure.ac):
31757         Likewise.
31758         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
31759         Likewise.
31760         * modules/unictype/property-radical (Depends-on, configure.ac):
31761         Likewise.
31762         * modules/unictype/property-sentence-terminal (Depends-on,
31763         configure.ac): Likewise.
31764         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
31765         Likewise.
31766         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
31767         * modules/unictype/property-terminal-punctuation (Depends-on,
31768         configure.ac): Likewise.
31769         * modules/unictype/property-titlecase (Depends-on, configure.ac):
31770         Likewise.
31771         * modules/unictype/property-unassigned-code-value (Depends-on,
31772         configure.ac): Likewise.
31773         * modules/unictype/property-unified-ideograph (Depends-on,
31774         configure.ac): Likewise.
31775         * modules/unictype/property-uppercase (Depends-on, configure.ac):
31776         Likewise.
31777         * modules/unictype/property-variation-selector (Depends-on,
31778         configure.ac): Likewise.
31779         * modules/unictype/property-white-space (Depends-on, configure.ac):
31780         Likewise.
31781         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
31782         Likewise.
31783         * modules/unictype/property-xid-start (Depends-on, configure.ac):
31784         Likewise.
31785         * modules/unictype/property-zero-width (Depends-on, configure.ac):
31786         Likewise.
31787         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
31788         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
31789         Likewise.
31790
31791 2009-12-31  Bruno Haible  <bruno@clisp.org>
31792
31793         Remove unnecessary AC_C_INLINE invocation.
31794         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
31795         since 2009-08-21.
31796
31797 2009-12-31  Jim Meyering  <meyering@redhat.com>
31798
31799         maint.mk: don't require explicit gpg_key_ID in cfg.mk
31800         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
31801         With this change, we can all remove the gpg_key_ID = ... definition
31802         from our respective cfg.mk files.
31803
31804         maint.mk: create announcement template in ~/, not in /tmp
31805         * top/maint.mk (emit_upload_commands): Adjust.
31806         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
31807         Remove temporary file, .ci-msg.
31808
31809 2009-12-31  Eric Blake  <ebb9@byu.net>
31810
31811         link-warning: always build headers with link warnings
31812         * modules/arpa_inet (Makefile.am): Always build replacement
31813         header.
31814         * modules/ctype (Makefile.am): Likewise.
31815         * modules/dirent (Makefile.am): Likewise.
31816         * modules/inttypes (Makefile.am): Likewise.
31817         * modules/langinfo (Makefile.am): Likewise.
31818         * modules/locale (Makefile.am): Likewise.
31819         * modules/spawn (Makefile.am): Likewise.
31820         * modules/sys_file (Makefile.am): Likewise.
31821         * modules/sys_ioctl (Makefile.am): Likewise.
31822         * modules/sys_select (Makefile.am): Likewise.
31823         * modules/sys_socket (Makefile.am): Likewise.
31824         * modules/sys_times (Makefile.am): Likewise.
31825         * modules/sys_utsname (Makefile.am): Likewise.
31826         * modules/sys_wait (Makefile.am): Likewise.
31827         * modules/wchar (Makefile.am): Likewise.
31828         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
31829         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
31830         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
31831         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
31832         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
31833         Likewise.
31834         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31835         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31836         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
31837         Likewise.
31838         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
31839         Likewise.
31840         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
31841         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
31842         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
31843         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31844         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31845         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
31846         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
31847         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
31848         (gl_WCHAR_H_DEFAULTS): Likewise.
31849
31850 2009-12-31  Eric Blake  <ebb9@byu.net>
31851
31852         signal, spawn: use link warnings
31853         * lib/signal.in.h (sigset_t): Make unconditional.
31854         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
31855         (sigpending, sigprocmask, sigaction): Add link warnings.
31856         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
31857         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
31858         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
31859         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
31860         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
31861         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
31862         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
31863         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
31864         (posix_spawn_file_actions_destroy)
31865         (posix_spawn_file_actions_addopen)
31866         (posix_spawn_file_actions_addclose)
31867         (posix_spawn_file_actions_adddup2): Likewise.
31868         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
31869         * tests/test-signal.c (main): Enhance test.
31870
31871         spawn: improve wrapper support
31872         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
31873         (gl_SPAWN_H_DEFAULTS): New defaults.
31874         * modules/spawn (Makefile.am): Substitute them.
31875         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
31876         Only declare if missing or broken.
31877
31878         sys_times, sys_utsname: use include_next
31879         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
31880         header.
31881         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
31882         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
31883         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
31884         * modules/sys_times (Depends-on): Add include_next.
31885         (Makefile.am): Substitute additional values.
31886         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
31887         * lib/sys_times.in.h (includes): Include native header, if
31888         available.
31889         * lib/sys_utsname.in.h (includes): Likewise.
31890         * tests/test-sys_times.c (main): Enhance test.
31891
31892         fdutimensat: revert prior patch
31893         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
31894         utimens.h.
31895         Reported by Bruno Haible.
31896
31897 2009-12-30  Eric Blake  <ebb9@byu.net>
31898
31899         sys_wait: drop link-warning dependency
31900         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
31901         link-warning efforts.
31902         * lib/sys_wait.in.h: Likewise.
31903
31904         fdutimensat: remove bogus dependency
31905         * modules/fdutimensat (Depends-on): Drop inline.
31906
31907         unistd: fix typo
31908         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
31909
31910 2009-12-30  Bruno Haible  <bruno@clisp.org>
31911
31912         Fix compilation error with Solaris cc.
31913         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
31914         * lib/unicase/u16-is-invariant.c: Likewise.
31915         * lib/unicase/u32-is-invariant.c: Likewise.
31916         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
31917
31918 2009-12-30  Bruno Haible  <bruno@clisp.org>
31919
31920         Fix test crash.
31921         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
31922         locales.
31923         Reported by Simon Josefsson <simon@josefsson.org>.
31924
31925 2009-12-30  Bruno Haible  <bruno@clisp.org>
31926
31927         Fix compilation error on most platforms.
31928         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
31929         Reported by Simon Josefsson <simon@josefsson.org>
31930         and Nelson H. F. Beebe <beebe@math.utah.edu>.
31931
31932 2009-12-30  Eric Blake  <ebb9@byu.net>
31933
31934         futimens, utimensat: work around ntfs-3g bug
31935         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
31936         a ctime bug is present, and expand workaround to cover ntfs-3g.
31937         * lib/utimens.c (fdutimens, lutimens): Likewise.
31938         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
31939         (validate_timespec): Adjust return value.
31940         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
31941         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31942         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
31943
31944 2009-12-29  Eric Blake  <ebb9@byu.net>
31945
31946         link-warning: make usage consistent
31947         * modules/ctype (Depends-on): Add link-warning.
31948         (Makefile.am): Update rules accordingly.
31949         * modules/langinfo (Depends-on, Makefile.am): Likewise.
31950         * modules/locale (Depends-on, Makefile.am): Likewise.
31951         * modules/sys_file (Makefile.am): Likewise.
31952         * modules/getopt-posix (Makefile.am): Delete unused link warning
31953         efforts.
31954         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
31955         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
31956         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
31957         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
31958
31959         stdio: remove unused variables
31960         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
31961         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
31962         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31963
31964         tests: test more substitute headers
31965         * modules/ctype-tests: New file.
31966         * modules/dirent-tests: Likewise.
31967         * modules/spawn-tests: Likewise.
31968         * modules/sys_file-tests: Likewise.
31969         * modules/sys_ioctl-tests: Likewise.
31970         * modules/sys_wait-tests: Likewise.
31971         * tests/test-ctype.c: Likewise.
31972         * tests/test-dirent.c: Likewise.
31973         * tests/test-spawn.c: Likewise.
31974         * tests/test-sys_file.c: Likewise.
31975         * tests/test-sys_ioctl.c: Likewise.
31976         * tests/test-sys_wait.c: Likewise.
31977         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
31978         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
31979         whether or not flock is in use.
31980
31981         tests: remove License section from module
31982         * modules/arpa_inet-tests: Remove unneeded section.
31983         * modules/byteswap-tests: Likewise.
31984         * modules/ceilf-tests: Likewise.
31985         * modules/ceill-tests: Likewise.
31986         * modules/crypto/des-tests: Likewise.
31987         * modules/crypto/gc-arcfour-tests: Likewise.
31988         * modules/crypto/gc-arctwo-tests: Likewise.
31989         * modules/crypto/gc-des-tests: Likewise.
31990         * modules/crypto/gc-hmac-md5-tests: Likewise.
31991         * modules/crypto/gc-hmac-sha1-tests: Likewise.
31992         * modules/crypto/gc-md2-tests: Likewise.
31993         * modules/crypto/gc-md4-tests: Likewise.
31994         * modules/crypto/gc-md5-tests: Likewise.
31995         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
31996         * modules/crypto/gc-rijndael-tests: Likewise.
31997         * modules/crypto/gc-sha1-tests: Likewise.
31998         * modules/crypto/gc-tests: Likewise.
31999         * modules/crypto/md2-tests: Likewise.
32000         * modules/crypto/md4-tests: Likewise.
32001         * modules/fcntl-h-tests: Likewise.
32002         * modules/floorf-tests: Likewise.
32003         * modules/floorl-tests: Likewise.
32004         * modules/frexp-nolibm-tests: Likewise.
32005         * modules/frexp-tests: Likewise.
32006         * modules/frexpl-nolibm-tests: Likewise.
32007         * modules/frexpl-tests: Likewise.
32008         * modules/getaddrinfo-tests: Likewise.
32009         * modules/inttypes-tests: Likewise.
32010         * modules/isfinite-tests: Likewise.
32011         * modules/isinf-tests: Likewise.
32012         * modules/ldexpl-tests: Likewise.
32013         * modules/locale-tests: Likewise.
32014         * modules/math-tests: Likewise.
32015         * modules/netdb-tests: Likewise.
32016         * modules/netinet_in-tests: Likewise.
32017         * modules/printf-frexp-tests: Likewise.
32018         * modules/printf-frexpl-tests: Likewise.
32019         * modules/priv-set-tests: Likewise.
32020         * modules/random_r-tests: Likewise.
32021         * modules/round-tests: Likewise.
32022         * modules/roundf-tests: Likewise.
32023         * modules/roundl-tests: Likewise.
32024         * modules/search-tests: Likewise.
32025         * modules/select-tests: Likewise.
32026         * modules/signal-tests: Likewise.
32027         * modules/stdbool-tests: Likewise.
32028         * modules/stddef-tests: Likewise.
32029         * modules/stdint-tests: Likewise.
32030         * modules/stdio-tests: Likewise.
32031         * modules/stdlib-tests: Likewise.
32032         * modules/string-tests: Likewise.
32033         * modules/strings-tests: Likewise.
32034         * modules/sys_select-tests: Likewise.
32035         * modules/sys_socket-tests: Likewise.
32036         * modules/sys_stat-tests: Likewise.
32037         * modules/sys_time-tests: Likewise.
32038         * modules/sys_utsname-tests: Likewise.
32039         * modules/sysexits-tests: Likewise.
32040         * modules/time-tests: Likewise.
32041         * modules/trunc-tests: Likewise.
32042         * modules/truncf-tests: Likewise.
32043         * modules/truncl-tests: Likewise.
32044         * modules/tsearch-tests: Likewise.
32045         * modules/unistd-tests: Likewise.
32046         * modules/wchar-tests: Likewise.
32047         * modules/wctype-tests: Likewise.
32048
32049         tests: fix license on several tests
32050         * tests/test-des.c: Update to GPLv3+.
32051         * tests/test-flock.c: Likewise.
32052         * tests/test-fsync.c: Likewise.
32053         * tests/test-futimens.h: Likewise.
32054         * tests/test-gc-arcfour.c: Likewise.
32055         * tests/test-gc-arctwo.c: Likewise.
32056         * tests/test-gc-des.c: Likewise.
32057         * tests/test-gc-hmac-md5.c: Likewise.
32058         * tests/test-gc-hmac-sha1.c: Likewise.
32059         * tests/test-gc-md2.c: Likewise.
32060         * tests/test-gc-md4.c: Likewise.
32061         * tests/test-gc-md5.c: Likewise.
32062         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32063         * tests/test-gc-rijndael.c: Likewise.
32064         * tests/test-gc-sha1.c: Likewise.
32065         * tests/test-gc.c: Likewise.
32066         * tests/test-getcwd.c: Likewise.
32067         * tests/test-link.c: Likewise.
32068         * tests/test-link.h: Likewise.
32069         * tests/test-lutimens.h: Likewise.
32070         * tests/test-md2.c: Likewise.
32071         * tests/test-md4.c: Likewise.
32072         * tests/test-mkdir.h: Likewise.
32073         * tests/test-rename.c: Likewise.
32074         * tests/test-rename.h: Likewise.
32075         * tests/test-safe-alloc.c: Likewise.
32076         * tests/test-utimens-common.h: Likewise.
32077         * tests/test-utimens.h: Likewise.
32078
32079         maint: sync license texts
32080         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
32081         * doc/gpl-3.0.texi: Revert copyright year update.
32082         * doc/lgpl-3.0.texi: Likewise.
32083
32084 2009-12-29  Jim Meyering  <meyering@redhat.com>
32085
32086         update nearly all FSF copyright year lists to include 2009
32087         The files named by the following are exempted:
32088             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
32089               test -f "$dst" && { echo "$dst"; continue; }
32090               test -d "$dst" || continue
32091               echo "$dst"/$(basename "$src")
32092             done > exempt
32093             git ls-files tests/unictype >> exempt
32094         In the remaining files, convert to all-interval notation if
32095         - there is already at least one year interval like 2000-2003
32096         - the file is maintained by me
32097         - the file is in lib/uni*/, where that style already prevails
32098         Otherwise, use update-copyright's default.
32099
32100 2009-12-29  Simon Josefsson  <simon@josefsson.org>
32101         and Eric Blake  <ebb9@byu.net>
32102
32103         tests: don't require debug system() to pass
32104         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
32105         * tests/test-rmdir.h (test_rmdir_func): Likewise.
32106         * tests/test-unlink.h (test_unlink_func): Likewise.
32107         * tests/test-fstatat.c (main): ...into callers.
32108         * tests/test-lstat.c (main): Likewise.
32109         * tests/test-rmdir.c (main): Likewise.
32110         * tests/test-unlink.c (main): Likewise.
32111         * tests/test-unlinkat.c (main): Likewise.
32112         * tests/test-areadlink-with-size.c (main): Don't require a
32113         debug-only system call to pass, aiding cross-testing to mingw.
32114         * tests/test-areadlink.c (main): Likewise.
32115         * tests/test-areadlinkat-with-size.c (main): Likewise.
32116         * tests/test-areadlinkat.c (main): Likewise.
32117         * tests/test-canonicalize-lgpl.c (main): Likewise.
32118         * tests/test-canonicalize.c (main): Likewise.
32119         * tests/test-chown.c (main): Likewise.
32120         * tests/test-fchownat.c (main): Likewise.
32121         * tests/test-lchown.c (main): Likewise.
32122         * tests/test-fdutimensat.c (main): Likewise.
32123         * tests/test-futimens.c (main): Likewise.
32124         * tests/test-link.c (main): Likewise.
32125         * tests/test-linkat.c (main): Likewise.
32126         * tests/test-mkdir.c (main): Likewise.
32127         * tests/test-mkdirat.c (main): Likewise.
32128         * tests/test-mkfifo.c (main): Likewise.
32129         * tests/test-mkfifoat.c (main): Likewise.
32130         * tests/test-mknod.c (main): Likewise.
32131         * tests/test-readlink.c (main): Likewise.
32132         * tests/test-remove.c (main): Likewise.
32133         * tests/test-rename.c (main): Likewise.
32134         * tests/test-renameat.c (main): Likewise.
32135         * tests/test-symlink.c (main): Likewise.
32136         * tests/test-symlinkat.c (main): Likewise.
32137         * tests/test-utimens.c (main): Likewise.
32138         * tests/test-utimensat.c (main): Likewise.
32139
32140 2009-12-29  Simon Josefsson  <simon@josefsson.org>
32141
32142         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
32143         on $(UNUSED_PARAMETER_H) to avoid build failure.
32144
32145 2009-12-28  Jim Meyering  <meyering@redhat.com>
32146
32147         update-copyright: you may specify a max. line length other than 72
32148         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
32149
32150         maint: use consistent FSF copyright line syntax
32151         * lib/posixtm.c: Add missing comma in FSF copyright line.
32152         * lib/posixtm.h: Likewise.
32153         * lib/getugroups.c: Add missing ", Inc.".
32154
32155         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
32156         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
32157         FSF copyright line.  Remove trailing blanks.
32158
32159 2009-12-28  Eric Blake  <ebb9@byu.net>
32160
32161         test-dup2: reduce dependencies
32162         * modules/cloexec (Configure.ac): Set witness.
32163         * modules/dup2-tests (Depends-on): Drop cloexec.
32164         * tests/test-dup2.c (main): Skip portion of test if cloexec module
32165         not present.
32166         Suggested by Bruno Haible.
32167
32168 2009-12-26  Bruno Haible  <bruno@clisp.org>
32169
32170         Remove an unneeded dependency.
32171         * modules/fseterr (Depends-on): Remove dup2.
32172
32173 2009-12-26  Eric Blake  <ebb9@byu.net>
32174
32175         tests: use macros.h in more places
32176         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
32177         (ASSERT_STREAM): Provide default of stderr.
32178         * tests/test-dirent-safer.c: Include macros.h, using alternate
32179         stream for assertions.
32180         * tests/test-dup-safer.c: Likewise.
32181         * tests/test-freopen-safer.c: Likewise.
32182         * tests/test-getopt.c: Likewise.
32183         * tests/test-openat-safer.c: Likewise.
32184         * tests/test-pipe.c: Likewise.
32185         * tests/test-popen-safer.c: Likewise.
32186         * modules/dirent-safer-tests (Files): Include macros.h.
32187         * modules/unistd-safer-tests (Files): Likewise.
32188         * modules/freopen-safer-tests (Files): Likewise.
32189         * modules/getopt-posix-tests (Files): Likewise.
32190         * modules/openat-safer-tests (Files): Likewise.
32191         * modules/pipe-tests (Files): Likewise.
32192
32193 2009-12-26  Bruno Haible  <bruno@clisp.org>
32194
32195         javacomp: Portability fix.
32196         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
32197         that it also works on Solaris.
32198
32199 2009-12-26  Bruno Haible  <bruno@clisp.org>
32200
32201         localename: Fix storage allocation of gl_locale_name_thread's result.
32202         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
32203         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
32204         all platforms that have 'uselocale'.
32205         (gl_locale_name_thread_unsafe): New function, extracted from
32206         gl_locale_name_thread.
32207         (gl_locale_name_thread): Call struniq on all platforms that have
32208         'uselocale'.
32209         * tests/test-localename.c (test_locale_name_thread): Check that the
32210         resulting strings are permanently allocated.
32211         * modules/localename-tests (Depends-on): Add strdup.
32212
32213 2009-12-26  Bruno Haible  <bruno@clisp.org>
32214
32215         * tests/test-localename.c (categories): Fill in the strings.
32216
32217 2009-12-26  Jim Meyering  <meyering@redhat.com>
32218
32219         isdir: complete the removal of m4/isdir.m4
32220         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
32221
32222         isdir: clean up, since at least grep still uses it
32223         * lib/isdir.c: Include "isdir.h".
32224         (S_ISDIR): Remove now-unneeded definition.
32225         * modules/isdir (Files): Add lib/isdir.h.
32226         * lib/isdir.h: New file, with declaration.
32227         * m4/isdir.m4: Remove file -- unneeded.
32228
32229 2009-12-25  Bruno Haible  <bruno@clisp.org>
32230
32231         selinux-h: Make generated .h files standalone.
32232         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
32233         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
32234         * lib/se-selinux.in.h: Likewise.
32235         * modules/selinux-h (Depends-on): Add unused-parameter.
32236         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
32237         selinux/selinux.h and selinux/context.h.
32238         Suggested by Eric Blake.
32239
32240 2009-12-25  Bruno Haible  <bruno@clisp.org>
32241
32242         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
32243         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
32244         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
32245         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
32246         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
32247
32248 2009-12-24  Bruno Haible  <bruno@clisp.org>
32249
32250         openat: Fix warning.
32251         * lib/openat-proc.c: Include <unistd.h>.
32252
32253 2009-12-24  Bruno Haible  <bruno@clisp.org>
32254
32255         New module 'unused-parameter'.
32256         * build-aux/unused-parameter.h: New file, extracted from earlier
32257         gnulib-common.m4.
32258         * modules/unused-parameter: New file.
32259         * lib/unistr.h: Include unused-parameter.h.
32260         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
32261         _GL_UNUSED.
32262         * modules/unistr/base (Depends-on): Add unused-parameter.
32263
32264 2009-12-24  Bruno Haible  <bruno@clisp.org>
32265
32266         Add missing dependencies to 'extensions' module.
32267         * m4/extensions.m4: Add comment.
32268         * modules/accept4 (Depends-on): Add extensions.
32269         * modules/dup3 (Depends-on): Likewise.
32270         * modules/fcntl (Depends-on): Likewise.
32271         * modules/futimens (Depends-on): Likewise.
32272         * modules/mknod (Depends-on): Likewise.
32273         * modules/pipe2 (Depends-on): Likewise.
32274         * modules/stat-time (Depends-on): Likewise.
32275         * modules/strcasestr-simple (Depends-on): Likewise.
32276         * modules/strsignal (Depends-on): Likewise.
32277         * modules/utimensat (Depends-on): Likewise.
32278         * modules/localcharset (Depends-on): Likewise. Needed because of
32279         gl_FCNTL_O_FLAGS.
32280         * modules/wcrtomb (Depends-on): Likewise. Needed because of
32281         AC_TYPE_MBSTATE_T.
32282         * modules/wcsnrtombs (Depends-on): Likewise.
32283         * modules/wcsrtombs (Depends-on): Likewise.
32284
32285 2009-12-24  Bruno Haible  <bruno@clisp.org>
32286
32287         binary-io: Avoid gcc warning due to SET_BINARY.
32288         * lib/binary-io.h (SET_BINARY): Cast the result to void.
32289         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
32290
32291 2009-12-24  Bruno Haible  <bruno@clisp.org>
32292
32293         Avoid future namespace pollution on glibc systems.
32294         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
32295         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
32296         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
32297         glibc systems.
32298
32299 2009-12-24  Bruno Haible  <bruno@clisp.org>
32300
32301         Refactor common macros used in tests.
32302         * tests/macros.h: New file.
32303         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
32304         and/or <stdlib.h>, if appropriate.
32305         (ASSERT, SIZEOF): Remove macros.
32306         * tests/test-areadlink-with-size.c: Likewise.
32307         * tests/test-areadlinkat.c: Likewise.
32308         * tests/test-areadlinkat-with-size.c: Likewise.
32309         * tests/test-argmatch.c: Likewise.
32310         * tests/test-argv-iter.c: Likewise.
32311         * tests/test-array-mergesort.c: Likewise.
32312         * tests/test-array_list.c: Likewise.
32313         * tests/test-array_oset.c: Likewise.
32314         * tests/test-avltree_list.c: Likewise.
32315         * tests/test-avltree_oset.c: Likewise.
32316         * tests/test-avltreehash_list.c: Likewise.
32317         * tests/test-base64.c: Likewise.
32318         * tests/test-binary-io.c: Likewise.
32319         * tests/test-bitrotate.c: Likewise.
32320         * tests/test-btowc.c: Likewise.
32321         * tests/test-byteswap.c: Likewise.
32322         * tests/test-c-ctype.c: Likewise.
32323         * tests/test-c-stack.c: Likewise.
32324         * tests/test-c-strcasecmp.c: Likewise.
32325         * tests/test-c-strcasestr.c: Likewise.
32326         * tests/test-c-strncasecmp.c: Likewise.
32327         * tests/test-c-strstr.c: Likewise.
32328         * tests/test-canonicalize-lgpl.c: Likewise.
32329         * tests/test-canonicalize.c: Likewise.
32330         * tests/test-carray_list.c: Likewise.
32331         * tests/test-ceilf1.c: Likewise.
32332         * tests/test-ceilf2.c: Likewise.
32333         * tests/test-ceill.c: Likewise.
32334         * tests/test-chown.c: Likewise.
32335         * tests/test-cloexec.c: Likewise.
32336         * tests/test-copy-acl.c: Likewise.
32337         * tests/test-copy-file.c: Likewise.
32338         * tests/test-count-one-bits.c: Likewise.
32339         * tests/test-dprintf-posix.c: Likewise.
32340         * tests/test-dup2.c: Likewise.
32341         * tests/test-dup3.c: Likewise.
32342         * tests/test-duplocale.c: Likewise.
32343         * tests/test-fbufmode.c: Likewise.
32344         * tests/test-fchdir.c: Likewise.
32345         * tests/test-fchownat.c: Likewise.
32346         * tests/test-fcntl-safer.c: Likewise.
32347         * tests/test-fcntl.c: Likewise.
32348         * tests/test-fdopendir.c: Likewise.
32349         * tests/test-fdutimensat.c: Likewise.
32350         * tests/test-fflush2.c: Likewise.
32351         * tests/test-file-has-acl.c: Likewise.
32352         * tests/test-filevercmp.c: Likewise.
32353         * tests/test-flock.c: Likewise.
32354         * tests/test-floorf1.c: Likewise.
32355         * tests/test-floorf2.c: Likewise.
32356         * tests/test-floorl.c: Likewise.
32357         * tests/test-fnmatch.c: Likewise.
32358         * tests/test-fopen.h: Likewise.
32359         * tests/test-fpending.c: Likewise.
32360         * tests/test-fprintf-posix.c: Likewise.
32361         * tests/test-fpurge.c: Likewise.
32362         * tests/test-freadable.c: Likewise.
32363         * tests/test-freadahead.c: Likewise.
32364         * tests/test-freading.c: Likewise.
32365         * tests/test-freadptr.c: Likewise.
32366         * tests/test-freadptr2.c: Likewise.
32367         * tests/test-freadseek.c: Likewise.
32368         * tests/test-freopen.c: Likewise.
32369         * tests/test-frexp.c: Likewise.
32370         * tests/test-frexpl.c: Likewise.
32371         * tests/test-fseek.c: Likewise.
32372         * tests/test-fseeko.c: Likewise.
32373         * tests/test-fstatat.c: Likewise.
32374         * tests/test-fstrcmp.c: Likewise.
32375         * tests/test-fsync.c: Likewise.
32376         * tests/test-ftell.c: Likewise.
32377         * tests/test-ftello.c: Likewise.
32378         * tests/test-func.c: Likewise.
32379         * tests/test-futimens.c: Likewise.
32380         * tests/test-fwritable.c: Likewise.
32381         * tests/test-fwriting.c: Likewise.
32382         * tests/test-getcwd.c: Likewise.
32383         * tests/test-getdate.c: Likewise.
32384         * tests/test-getdelim.c: Likewise.
32385         * tests/test-getdtablesize.c: Likewise.
32386         * tests/test-getgroups.c: Likewise.
32387         * tests/test-getline.c: Likewise.
32388         * tests/test-getndelim2.c: Likewise.
32389         * tests/test-glob.c: Likewise.
32390         * tests/test-hash.c: Likewise.
32391         * tests/test-i-ring.c: Likewise.
32392         * tests/test-iconv-utf.c: Likewise.
32393         * tests/test-iconv.c: Likewise.
32394         * tests/test-idpriv-drop.c: Likewise.
32395         * tests/test-idpriv-droptemp.c: Likewise.
32396         * tests/test-inet_ntop.c: Likewise.
32397         * tests/test-inet_pton.c: Likewise.
32398         * tests/test-isblank.c: Likewise.
32399         * tests/test-isfinite.c: Likewise.
32400         * tests/test-isinf.c: Likewise.
32401         * tests/test-isnan.c: Likewise.
32402         * tests/test-isnand.h: Likewise.
32403         * tests/test-isnanf.h: Likewise.
32404         * tests/test-isnanl.h: Likewise.
32405         * tests/test-lchown.c: Likewise.
32406         * tests/test-ldexpl.c: Likewise.
32407         * tests/test-link.c: Likewise.
32408         * tests/test-linkat.c: Likewise.
32409         * tests/test-linked_list.c: Likewise.
32410         * tests/test-linkedhash_list.c: Likewise.
32411         * tests/test-localename.c: Likewise.
32412         * tests/test-lseek.c: Likewise.
32413         * tests/test-lstat.c: Likewise.
32414         * tests/test-mbmemcasecmp.c: Likewise.
32415         * tests/test-mbmemcasecoll.c: Likewise.
32416         * tests/test-mbrtowc.c: Likewise.
32417         * tests/test-mbscasecmp.c: Likewise.
32418         * tests/test-mbscasestr1.c: Likewise.
32419         * tests/test-mbscasestr2.c: Likewise.
32420         * tests/test-mbscasestr3.c: Likewise.
32421         * tests/test-mbscasestr4.c: Likewise.
32422         * tests/test-mbschr.c: Likewise.
32423         * tests/test-mbscspn.c: Likewise.
32424         * tests/test-mbsinit.c: Likewise.
32425         * tests/test-mbsncasecmp.c: Likewise.
32426         * tests/test-mbsnrtowcs.c: Likewise.
32427         * tests/test-mbspbrk.c: Likewise.
32428         * tests/test-mbspcasecmp.c: Likewise.
32429         * tests/test-mbsrchr.c: Likewise.
32430         * tests/test-mbsrtowcs.c: Likewise.
32431         * tests/test-mbsspn.c: Likewise.
32432         * tests/test-mbsstr1.c: Likewise.
32433         * tests/test-mbsstr2.c: Likewise.
32434         * tests/test-mbsstr3.c: Likewise.
32435         * tests/test-memchr.c: Likewise.
32436         * tests/test-memchr2.c: Likewise.
32437         * tests/test-memcmp.c: Likewise.
32438         * tests/test-memmem.c: Likewise.
32439         * tests/test-memrchr.c: Likewise.
32440         * tests/test-mkdir.c: Likewise.
32441         * tests/test-mkdirat.c: Likewise.
32442         * tests/test-mkfifo.c: Likewise.
32443         * tests/test-mkfifoat.c: Likewise.
32444         * tests/test-mknod.c: Likewise.
32445         * tests/test-nanosleep.c: Likewise.
32446         * tests/test-nl_langinfo.c: Likewise.
32447         * tests/test-obstack-printf.c: Likewise.
32448         * tests/test-open.c: Likewise.
32449         * tests/test-openat.c: Likewise.
32450         * tests/test-pipe-filter-gi1.c: Likewise.
32451         * tests/test-pipe-filter-gi2-main.c: Likewise.
32452         * tests/test-pipe-filter-ii1.c: Likewise.
32453         * tests/test-pipe-filter-ii2-main.c: Likewise.
32454         * tests/test-pipe2.c: Likewise.
32455         * tests/test-popen.h: Likewise.
32456         * tests/test-posixtm.c: Likewise.
32457         * tests/test-pread.c: Likewise.
32458         * tests/test-printf-frexp.c: Likewise.
32459         * tests/test-printf-frexpl.c: Likewise.
32460         * tests/test-printf-posix.c: Likewise.
32461         * tests/test-priv-set.c: Likewise.
32462         * tests/test-quotearg.c: Likewise.
32463         * tests/test-random_r.c: Likewise.
32464         * tests/test-rawmemchr.c: Likewise.
32465         * tests/test-rbtree_list.c: Likewise.
32466         * tests/test-rbtree_oset.c: Likewise.
32467         * tests/test-rbtreehash_list.c: Likewise.
32468         * tests/test-readlink.c: Likewise.
32469         * tests/test-remove.c: Likewise.
32470         * tests/test-rename.c: Likewise.
32471         * tests/test-renameat.c: Likewise.
32472         * tests/test-rmdir.c: Likewise.
32473         * tests/test-round1.c: Likewise.
32474         * tests/test-roundf1.c: Likewise.
32475         * tests/test-roundl.c: Likewise.
32476         * tests/test-safe-alloc.c: Likewise.
32477         * tests/test-sameacls.c: Likewise.
32478         * tests/test-set-mode-acl.c: Likewise.
32479         * tests/test-setenv.c: Likewise.
32480         * tests/test-sigaction.c: Likewise.
32481         * tests/test-signbit.c: Likewise.
32482         * tests/test-sleep.c: Likewise.
32483         * tests/test-snprintf-posix.c: Likewise.
32484         * tests/test-snprintf.c: Likewise.
32485         * tests/test-sprintf-posix.c: Likewise.
32486         * tests/test-stat-time.c: Likewise.
32487         * tests/test-stat.c: Likewise.
32488         * tests/test-strcasestr.c: Likewise.
32489         * tests/test-strchrnul.c: Likewise.
32490         * tests/test-strerror.c: Likewise.
32491         * tests/test-striconv.c: Likewise.
32492         * tests/test-striconveh.c: Likewise.
32493         * tests/test-striconveha.c: Likewise.
32494         * tests/test-strsignal.c: Likewise.
32495         * tests/test-strstr.c: Likewise.
32496         * tests/test-strtod.c: Likewise.
32497         * tests/test-strverscmp.c: Likewise.
32498         * tests/test-symlink.c: Likewise.
32499         * tests/test-symlinkat.c: Likewise.
32500         * tests/test-trunc1.c: Likewise.
32501         * tests/test-trunc2.c: Likewise.
32502         * tests/test-truncf1.c: Likewise.
32503         * tests/test-truncf2.c: Likewise.
32504         * tests/test-truncl.c: Likewise.
32505         * tests/test-uname.c: Likewise.
32506         * tests/test-unlink.c: Likewise.
32507         * tests/test-unlinkat.c: Likewise.
32508         * tests/test-unsetenv.c: Likewise.
32509         * tests/test-usleep.c: Likewise.
32510         * tests/test-utimens.c: Likewise.
32511         * tests/test-utimensat.c: Likewise.
32512         * tests/test-vasnprintf-posix.c: Likewise.
32513         * tests/test-vasnprintf-posix2.c: Likewise.
32514         * tests/test-vasnprintf.c: Likewise.
32515         * tests/test-vasprintf-posix.c: Likewise.
32516         * tests/test-vasprintf.c: Likewise.
32517         * tests/test-vdprintf-posix.c: Likewise.
32518         * tests/test-vfprintf-posix.c: Likewise.
32519         * tests/test-vprintf-posix.c: Likewise.
32520         * tests/test-vsnprintf-posix.c: Likewise.
32521         * tests/test-vsnprintf.c: Likewise.
32522         * tests/test-vsprintf-posix.c: Likewise.
32523         * tests/test-wcrtomb.c: Likewise.
32524         * tests/test-wcsnrtombs.c: Likewise.
32525         * tests/test-wcsrtombs.c: Likewise.
32526         * tests/test-wctype.c: Likewise.
32527         * tests/test-wcwidth.c: Likewise.
32528         * tests/test-xfprintf-posix.c: Likewise.
32529         * tests/test-xmemdup0.c: Likewise.
32530         * tests/test-xprintf-posix.c: Likewise.
32531         * tests/test-xvasprintf.c: Likewise.
32532         * tests/unicase/test-locale-language.c: Likewise.
32533         * tests/unicase/test-mapping-part1.h: Likewise.
32534         * tests/unicase/test-predicate-part1.h: Likewise.
32535         * tests/unicase/test-u8-casecmp.c: Likewise.
32536         * tests/unicase/test-u8-casecoll.c: Likewise.
32537         * tests/unicase/test-u8-casefold.c: Likewise.
32538         * tests/unicase/test-u8-is-cased.c: Likewise.
32539         * tests/unicase/test-u8-is-casefolded.c: Likewise.
32540         * tests/unicase/test-u8-is-lowercase.c: Likewise.
32541         * tests/unicase/test-u8-is-titlecase.c: Likewise.
32542         * tests/unicase/test-u8-is-uppercase.c: Likewise.
32543         * tests/unicase/test-u8-tolower.c: Likewise.
32544         * tests/unicase/test-u8-totitle.c: Likewise.
32545         * tests/unicase/test-u8-toupper.c: Likewise.
32546         * tests/unicase/test-u16-casecmp.c: Likewise.
32547         * tests/unicase/test-u16-casecoll.c: Likewise.
32548         * tests/unicase/test-u16-casefold.c: Likewise.
32549         * tests/unicase/test-u16-is-cased.c: Likewise.
32550         * tests/unicase/test-u16-is-casefolded.c: Likewise.
32551         * tests/unicase/test-u16-is-lowercase.c: Likewise.
32552         * tests/unicase/test-u16-is-titlecase.c: Likewise.
32553         * tests/unicase/test-u16-is-uppercase.c: Likewise.
32554         * tests/unicase/test-u16-tolower.c: Likewise.
32555         * tests/unicase/test-u16-totitle.c: Likewise.
32556         * tests/unicase/test-u16-toupper.c: Likewise.
32557         * tests/unicase/test-u32-casecmp.c: Likewise.
32558         * tests/unicase/test-u32-casecoll.c: Likewise.
32559         * tests/unicase/test-u32-casefold.c: Likewise.
32560         * tests/unicase/test-u32-is-cased.c: Likewise.
32561         * tests/unicase/test-u32-is-casefolded.c: Likewise.
32562         * tests/unicase/test-u32-is-lowercase.c: Likewise.
32563         * tests/unicase/test-u32-is-titlecase.c: Likewise.
32564         * tests/unicase/test-u32-is-uppercase.c: Likewise.
32565         * tests/unicase/test-u32-tolower.c: Likewise.
32566         * tests/unicase/test-u32-totitle.c: Likewise.
32567         * tests/unicase/test-u32-toupper.c: Likewise.
32568         * tests/unicase/test-ulc-casecmp.c: Likewise.
32569         * tests/unicase/test-ulc-casecoll.c: Likewise.
32570         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32571         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
32572         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32573         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32574         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
32575         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
32576         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32577         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32578         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32579         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
32580         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32581         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32582         * tests/unictype/test-bidi_byname.c: Likewise.
32583         * tests/unictype/test-bidi_name.c: Likewise.
32584         * tests/unictype/test-bidi_of.c: Likewise.
32585         * tests/unictype/test-bidi_test.c: Likewise.
32586         * tests/unictype/test-block_list.c: Likewise.
32587         * tests/unictype/test-block_of.c: Likewise.
32588         * tests/unictype/test-block_test.c: Likewise.
32589         * tests/unictype/test-categ_and.c: Likewise.
32590         * tests/unictype/test-categ_and_not.c: Likewise.
32591         * tests/unictype/test-categ_byname.c: Likewise.
32592         * tests/unictype/test-categ_name.c: Likewise.
32593         * tests/unictype/test-categ_none.c: Likewise.
32594         * tests/unictype/test-categ_of.c: Likewise.
32595         * tests/unictype/test-categ_or.c: Likewise.
32596         * tests/unictype/test-categ_test_withtable.c: Likewise.
32597         * tests/unictype/test-combining.c: Likewise.
32598         * tests/unictype/test-decdigit.c: Likewise.
32599         * tests/unictype/test-digit.c: Likewise.
32600         * tests/unictype/test-mirror.c: Likewise.
32601         * tests/unictype/test-numeric.c: Likewise.
32602         * tests/unictype/test-pr_byname.c: Likewise.
32603         * tests/unictype/test-pr_test.c: Likewise.
32604         * tests/unictype/test-predicate-part1.h: Likewise.
32605         * tests/unictype/test-scripts.c: Likewise.
32606         * tests/unictype/test-sy_c_ident.c: Likewise.
32607         * tests/unictype/test-sy_java_ident.c: Likewise.
32608         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
32609         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
32610         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
32611         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
32612         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
32613         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
32614         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
32615         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
32616         * tests/uninorm/test-canonical-decomposition.c: Likewise.
32617         * tests/uninorm/test-compat-decomposition.c: Likewise.
32618         * tests/uninorm/test-composition.c: Likewise.
32619         * tests/uninorm/test-decomposing-form.c: Likewise.
32620         * tests/uninorm/test-decomposition.c: Likewise.
32621         * tests/uninorm/test-u8-nfc.c: Likewise.
32622         * tests/uninorm/test-u8-nfd.c: Likewise.
32623         * tests/uninorm/test-u8-nfkc.c: Likewise.
32624         * tests/uninorm/test-u8-nfkd.c: Likewise.
32625         * tests/uninorm/test-u8-normcmp.c: Likewise.
32626         * tests/uninorm/test-u8-normcoll.c: Likewise.
32627         * tests/uninorm/test-u16-nfc.c: Likewise.
32628         * tests/uninorm/test-u16-nfd.c: Likewise.
32629         * tests/uninorm/test-u16-nfkc.c: Likewise.
32630         * tests/uninorm/test-u16-nfkd.c: Likewise.
32631         * tests/uninorm/test-u16-normcmp.c: Likewise.
32632         * tests/uninorm/test-u16-normcoll.c: Likewise.
32633         * tests/uninorm/test-u32-nfc.c: Likewise.
32634         * tests/uninorm/test-u32-nfd.c: Likewise.
32635         * tests/uninorm/test-u32-nfkc.c: Likewise.
32636         * tests/uninorm/test-u32-nfkd.c: Likewise.
32637         * tests/uninorm/test-u32-normalize-big.c: Likewise.
32638         * tests/uninorm/test-u32-normcmp.c: Likewise.
32639         * tests/uninorm/test-u32-normcoll.c: Likewise.
32640         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
32641         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
32642         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
32643         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
32644         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
32645         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
32646         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
32647         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
32648         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
32649         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
32650         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
32651         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
32652         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
32653         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
32654         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
32655         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
32656         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
32657         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
32658         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
32659         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
32660         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
32661         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
32662         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
32663         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
32664         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
32665         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
32666         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
32667         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
32668         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
32669         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
32670         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
32671         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
32672         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
32673         * tests/uniwidth/test-u8-strwidth.c: Likewise.
32674         * tests/uniwidth/test-u8-width.c: Likewise.
32675         * tests/uniwidth/test-u16-strwidth.c: Likewise.
32676         * tests/uniwidth/test-u16-width.c: Likewise.
32677         * tests/uniwidth/test-u32-strwidth.c: Likewise.
32678         * tests/uniwidth/test-u32-width.c: Likewise.
32679         * tests/uniwidth/test-uc_width.c: Likewise.
32680         * tests/uniwidth/test-uc_width2.c: Likewise.
32681         * modules/acl-tests (Files): Add tests/macros.h.
32682         * modules/areadlink-tests (Files): Likewise.
32683         * modules/areadlink-with-size-tests (Files): Likewise.
32684         * modules/areadlinkat-tests (Files): Likewise.
32685         * modules/areadlinkat-with-size-tests (Files): Likewise.
32686         * modules/argmatch-tests (Files): Likewise.
32687         * modules/argv-iter-tests (Files): Likewise.
32688         * modules/array-list-tests (Files): Likewise.
32689         * modules/array-mergesort-tests (Files): Likewise.
32690         * modules/array-oset-tests (Files): Likewise.
32691         * modules/avltree-list-tests (Files): Likewise.
32692         * modules/avltree-oset-tests (Files): Likewise.
32693         * modules/avltreehash-list-tests (Files): Likewise.
32694         * modules/base64-tests (Files): Likewise.
32695         * modules/binary-io-tests (Files): Likewise.
32696         * modules/bitrotate-tests (Files): Likewise.
32697         * modules/btowc-tests (Files): Likewise.
32698         * modules/byteswap-tests (Files): Likewise.
32699         * modules/c-ctype-tests (Files): Likewise.
32700         * modules/c-stack-tests (Files): Likewise.
32701         * modules/c-strcase-tests (Files): Likewise.
32702         * modules/c-strcasestr-tests (Files): Likewise.
32703         * modules/c-strstr-tests (Files): Likewise.
32704         * modules/canonicalize-lgpl-tests (Files): Likewise.
32705         * modules/canonicalize-tests (Files): Likewise.
32706         * modules/carray-list-tests (Files): Likewise.
32707         * modules/ceilf-tests (Files): Likewise.
32708         * modules/ceill-tests (Files): Likewise.
32709         * modules/chown-tests (Files): Likewise.
32710         * modules/cloexec-tests (Files): Likewise.
32711         * modules/copy-file-tests (Files): Likewise.
32712         * modules/count-one-bits-tests (Files): Likewise.
32713         * modules/dprintf-posix-tests (Files): Likewise.
32714         * modules/dup2-tests (Files): Likewise.
32715         * modules/dup3-tests (Files): Likewise.
32716         * modules/duplocale-tests (Files): Likewise.
32717         * modules/fbufmode-tests (Files): Likewise.
32718         * modules/fchdir-tests (Files): Likewise.
32719         * modules/fcntl-safer-tests (Files): Likewise.
32720         * modules/fcntl-tests (Files): Likewise.
32721         * modules/fdopendir-tests (Files): Likewise.
32722         * modules/fdutimensat-tests (Files): Likewise.
32723         * modules/fflush-tests (Files): Likewise.
32724         * modules/filevercmp-tests (Files): Likewise.
32725         * modules/flock-tests (Files): Likewise.
32726         * modules/floorf-tests (Files): Likewise.
32727         * modules/floorl-tests (Files): Likewise.
32728         * modules/fnmatch-tests (Files): Likewise.
32729         * modules/fopen-safer-tests (Files): Likewise.
32730         * modules/fopen-tests (Files): Likewise.
32731         * modules/fpending-tests (Files): Likewise.
32732         * modules/fprintf-posix-tests (Files): Likewise.
32733         * modules/fpurge-tests (Files): Likewise.
32734         * modules/freadable-tests (Files): Likewise.
32735         * modules/freadahead-tests (Files): Likewise.
32736         * modules/freading-tests (Files): Likewise.
32737         * modules/freadptr-tests (Files): Likewise.
32738         * modules/freadseek-tests (Files): Likewise.
32739         * modules/freopen-tests (Files): Likewise.
32740         * modules/frexp-nolibm-tests (Files): Likewise.
32741         * modules/frexp-tests (Files): Likewise.
32742         * modules/frexpl-nolibm-tests (Files): Likewise.
32743         * modules/frexpl-tests (Files): Likewise.
32744         * modules/fseek-tests (Files): Likewise.
32745         * modules/fseeko-tests (Files): Likewise.
32746         * modules/fstrcmp-tests (Files): Likewise.
32747         * modules/fsync-tests (Files): Likewise.
32748         * modules/ftell-tests (Files): Likewise.
32749         * modules/ftello-tests (Files): Likewise.
32750         * modules/func-tests (Files): Likewise.
32751         * modules/futimens-tests (Files): Likewise.
32752         * modules/fwritable-tests (Files): Likewise.
32753         * modules/fwriting-tests (Files): Likewise.
32754         * modules/getcwd-tests (Files): Likewise.
32755         * modules/getdate-tests (Files): Likewise.
32756         * modules/getdelim-tests (Files): Likewise.
32757         * modules/getdtablesize-tests (Files): Likewise.
32758         * modules/getgroups-tests (Files): Likewise.
32759         * modules/getline-tests (Files): Likewise.
32760         * modules/getndelim2-tests (Files): Likewise.
32761         * modules/glob-tests (Files): Likewise.
32762         * modules/hash-tests (Files): Likewise.
32763         * modules/i-ring-tests (Files): Likewise.
32764         * modules/iconv-tests (Files): Likewise.
32765         * modules/iconv_open-utf-tests (Files): Likewise.
32766         * modules/idpriv-drop-tests (Files): Likewise.
32767         * modules/idpriv-droptemp-tests (Files): Likewise.
32768         * modules/inet_ntop-tests (Files): Likewise.
32769         * modules/inet_pton-tests (Files): Likewise.
32770         * modules/isblank-tests (Files): Likewise.
32771         * modules/isfinite-tests (Files): Likewise.
32772         * modules/isinf-tests (Files): Likewise.
32773         * modules/isnan-tests (Files): Likewise.
32774         * modules/isnand-nolibm-tests (Files): Likewise.
32775         * modules/isnand-tests (Files): Likewise.
32776         * modules/isnanf-nolibm-tests (Files): Likewise.
32777         * modules/isnanf-tests (Files): Likewise.
32778         * modules/isnanl-nolibm-tests (Files): Likewise.
32779         * modules/isnanl-tests (Files): Likewise.
32780         * modules/lchown-tests (Files): Likewise.
32781         * modules/ldexpl-tests (Files): Likewise.
32782         * modules/link-tests (Files): Likewise.
32783         * modules/linkat-tests (Files): Likewise.
32784         * modules/linked-list-tests (Files): Likewise.
32785         * modules/linkedhash-list-tests (Files): Likewise.
32786         * modules/localename-tests (Files): Likewise.
32787         * modules/lseek-tests (Files): Likewise.
32788         * modules/lstat-tests (Files): Likewise.
32789         * modules/mbmemcasecmp-tests (Files): Likewise.
32790         * modules/mbmemcasecoll-tests (Files): Likewise.
32791         * modules/mbrtowc-tests (Files): Likewise.
32792         * modules/mbscasecmp-tests (Files): Likewise.
32793         * modules/mbscasestr-tests (Files): Likewise.
32794         * modules/mbschr-tests (Files): Likewise.
32795         * modules/mbscspn-tests (Files): Likewise.
32796         * modules/mbsinit-tests (Files): Likewise.
32797         * modules/mbsncasecmp-tests (Files): Likewise.
32798         * modules/mbsnrtowcs-tests (Files): Likewise.
32799         * modules/mbspbrk-tests (Files): Likewise.
32800         * modules/mbspcasecmp-tests (Files): Likewise.
32801         * modules/mbsrchr-tests (Files): Likewise.
32802         * modules/mbsrtowcs-tests (Files): Likewise.
32803         * modules/mbsspn-tests (Files): Likewise.
32804         * modules/mbsstr-tests (Files): Likewise.
32805         * modules/memchr-tests (Files): Likewise.
32806         * modules/memchr2-tests (Files): Likewise.
32807         * modules/memcmp-tests (Files): Likewise.
32808         * modules/memmem-tests (Files): Likewise.
32809         * modules/memrchr-tests (Files): Likewise.
32810         * modules/mkdir-tests (Files): Likewise.
32811         * modules/mkfifo-tests (Files): Likewise.
32812         * modules/mkfifoat-tests (Files): Likewise.
32813         * modules/mknod-tests (Files): Likewise.
32814         * modules/nanosleep-tests (Files): Likewise.
32815         * modules/nl_langinfo-tests (Files): Likewise.
32816         * modules/obstack-printf-tests (Files): Likewise.
32817         * modules/open-tests (Files): Likewise.
32818         * modules/openat-tests (Files): Likewise.
32819         * modules/pipe-filter-gi-tests (Files): Likewise.
32820         * modules/pipe-filter-ii-tests (Files): Likewise.
32821         * modules/pipe2-tests (Files): Likewise.
32822         * modules/popen-safer-tests (Files): Likewise.
32823         * modules/popen-tests (Files): Likewise.
32824         * modules/posixtm-tests (Files): Likewise.
32825         * modules/pread-tests (Files): Likewise.
32826         * modules/printf-frexp-tests (Files): Likewise.
32827         * modules/printf-frexpl-tests (Files): Likewise.
32828         * modules/printf-posix-tests (Files): Likewise.
32829         * modules/priv-set-tests (Files): Likewise.
32830         * modules/quotearg-tests (Files): Likewise.
32831         * modules/random_r-tests (Files): Likewise.
32832         * modules/rawmemchr-tests (Files): Likewise.
32833         * modules/rbtree-list-tests (Files): Likewise.
32834         * modules/rbtree-oset-tests (Files): Likewise.
32835         * modules/rbtreehash-list-tests (Files): Likewise.
32836         * modules/readlink-tests (Files): Likewise.
32837         * modules/remove-tests (Files): Likewise.
32838         * modules/rename-tests (Files): Likewise.
32839         * modules/renameat-tests (Files): Likewise.
32840         * modules/rmdir-tests (Files): Likewise.
32841         * modules/round-tests (Files): Likewise.
32842         * modules/roundf-tests (Files): Likewise.
32843         * modules/roundl-tests (Files): Likewise.
32844         * modules/safe-alloc-tests (Files): Likewise.
32845         * modules/setenv-tests (Files): Likewise.
32846         * modules/sigaction-tests (Files): Likewise.
32847         * modules/signbit-tests (Files): Likewise.
32848         * modules/sleep-tests (Files): Likewise.
32849         * modules/snprintf-posix-tests (Files): Likewise.
32850         * modules/snprintf-tests (Files): Likewise.
32851         * modules/sprintf-posix-tests (Files): Likewise.
32852         * modules/stat-tests (Files): Likewise.
32853         * modules/stat-time-tests (Files): Likewise.
32854         * modules/strcasestr-tests (Files): Likewise.
32855         * modules/strchrnul-tests (Files): Likewise.
32856         * modules/strerror-tests (Files): Likewise.
32857         * modules/striconv-tests (Files): Likewise.
32858         * modules/striconveh-tests (Files): Likewise.
32859         * modules/striconveha-tests (Files): Likewise.
32860         * modules/strsignal-tests (Files): Likewise.
32861         * modules/strstr-tests (Files): Likewise.
32862         * modules/strtod-tests (Files): Likewise.
32863         * modules/strverscmp-tests (Files): Likewise.
32864         * modules/symlink-tests (Files): Likewise.
32865         * modules/symlinkat-tests (Files): Likewise.
32866         * modules/trunc-tests (Files): Likewise.
32867         * modules/truncf-tests (Files): Likewise.
32868         * modules/truncl-tests (Files): Likewise.
32869         * modules/uname-tests (Files): Likewise.
32870         * modules/unicase/cased-tests (Files): Likewise.
32871         * modules/unicase/ignorable-tests (Files): Likewise.
32872         * modules/unicase/locale-language-tests (Files): Likewise.
32873         * modules/unicase/tolower-tests (Files): Likewise.
32874         * modules/unicase/totitle-tests (Files): Likewise.
32875         * modules/unicase/toupper-tests (Files): Likewise.
32876         * modules/unicase/u8-casecmp-tests (Files): Likewise.
32877         * modules/unicase/u8-casecoll-tests (Files): Likewise.
32878         * modules/unicase/u8-casefold-tests (Files): Likewise.
32879         * modules/unicase/u8-is-cased-tests (Files): Likewise.
32880         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
32881         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
32882         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
32883         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
32884         * modules/unicase/u8-tolower-tests (Files): Likewise.
32885         * modules/unicase/u8-totitle-tests (Files): Likewise.
32886         * modules/unicase/u8-toupper-tests (Files): Likewise.
32887         * modules/unicase/u16-casecmp-tests (Files): Likewise.
32888         * modules/unicase/u16-casecoll-tests (Files): Likewise.
32889         * modules/unicase/u16-casefold-tests (Files): Likewise.
32890         * modules/unicase/u16-is-cased-tests (Files): Likewise.
32891         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
32892         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
32893         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
32894         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
32895         * modules/unicase/u16-tolower-tests (Files): Likewise.
32896         * modules/unicase/u16-totitle-tests (Files): Likewise.
32897         * modules/unicase/u16-toupper-tests (Files): Likewise.
32898         * modules/unicase/u32-casecmp-tests (Files): Likewise.
32899         * modules/unicase/u32-casecoll-tests (Files): Likewise.
32900         * modules/unicase/u32-casefold-tests (Files): Likewise.
32901         * modules/unicase/u32-is-cased-tests (Files): Likewise.
32902         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
32903         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
32904         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
32905         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
32906         * modules/unicase/u32-tolower-tests (Files): Likewise.
32907         * modules/unicase/u32-totitle-tests (Files): Likewise.
32908         * modules/unicase/u32-toupper-tests (Files): Likewise.
32909         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
32910         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
32911         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
32912         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
32913         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
32914         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
32915         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
32916         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
32917         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
32918         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
32919         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
32920         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
32921         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
32922         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
32923         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
32924         * modules/unictype/bidicategory-name-tests (Files): Likewise.
32925         * modules/unictype/bidicategory-of-tests (Files): Likewise.
32926         * modules/unictype/bidicategory-test-tests (Files): Likewise.
32927         * modules/unictype/block-list-tests (Files): Likewise.
32928         * modules/unictype/block-of-tests (Files): Likewise.
32929         * modules/unictype/block-test-tests (Files): Likewise.
32930         * modules/unictype/category-C-tests (Files): Likewise.
32931         * modules/unictype/category-Cc-tests (Files): Likewise.
32932         * modules/unictype/category-Cf-tests (Files): Likewise.
32933         * modules/unictype/category-Cn-tests (Files): Likewise.
32934         * modules/unictype/category-Co-tests (Files): Likewise.
32935         * modules/unictype/category-Cs-tests (Files): Likewise.
32936         * modules/unictype/category-L-tests (Files): Likewise.
32937         * modules/unictype/category-Ll-tests (Files): Likewise.
32938         * modules/unictype/category-Lm-tests (Files): Likewise.
32939         * modules/unictype/category-Lo-tests (Files): Likewise.
32940         * modules/unictype/category-Lt-tests (Files): Likewise.
32941         * modules/unictype/category-Lu-tests (Files): Likewise.
32942         * modules/unictype/category-M-tests (Files): Likewise.
32943         * modules/unictype/category-Mc-tests (Files): Likewise.
32944         * modules/unictype/category-Me-tests (Files): Likewise.
32945         * modules/unictype/category-Mn-tests (Files): Likewise.
32946         * modules/unictype/category-N-tests (Files): Likewise.
32947         * modules/unictype/category-Nd-tests (Files): Likewise.
32948         * modules/unictype/category-Nl-tests (Files): Likewise.
32949         * modules/unictype/category-No-tests (Files): Likewise.
32950         * modules/unictype/category-P-tests (Files): Likewise.
32951         * modules/unictype/category-Pc-tests (Files): Likewise.
32952         * modules/unictype/category-Pd-tests (Files): Likewise.
32953         * modules/unictype/category-Pe-tests (Files): Likewise.
32954         * modules/unictype/category-Pf-tests (Files): Likewise.
32955         * modules/unictype/category-Pi-tests (Files): Likewise.
32956         * modules/unictype/category-Po-tests (Files): Likewise.
32957         * modules/unictype/category-Ps-tests (Files): Likewise.
32958         * modules/unictype/category-S-tests (Files): Likewise.
32959         * modules/unictype/category-Sc-tests (Files): Likewise.
32960         * modules/unictype/category-Sk-tests (Files): Likewise.
32961         * modules/unictype/category-Sm-tests (Files): Likewise.
32962         * modules/unictype/category-So-tests (Files): Likewise.
32963         * modules/unictype/category-Z-tests (Files): Likewise.
32964         * modules/unictype/category-Zl-tests (Files): Likewise.
32965         * modules/unictype/category-Zp-tests (Files): Likewise.
32966         * modules/unictype/category-Zs-tests (Files): Likewise.
32967         * modules/unictype/category-and-not-tests (Files): Likewise.
32968         * modules/unictype/category-and-tests (Files): Likewise.
32969         * modules/unictype/category-byname-tests (Files): Likewise.
32970         * modules/unictype/category-name-tests (Files): Likewise.
32971         * modules/unictype/category-none-tests (Files): Likewise.
32972         * modules/unictype/category-of-tests (Files): Likewise.
32973         * modules/unictype/category-or-tests (Files): Likewise.
32974         * modules/unictype/category-test-withtable-tests (Files): Likewise.
32975         * modules/unictype/combining-class-tests (Files): Likewise.
32976         * modules/unictype/ctype-alnum-tests (Files): Likewise.
32977         * modules/unictype/ctype-alpha-tests (Files): Likewise.
32978         * modules/unictype/ctype-blank-tests (Files): Likewise.
32979         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
32980         * modules/unictype/ctype-digit-tests (Files): Likewise.
32981         * modules/unictype/ctype-graph-tests (Files): Likewise.
32982         * modules/unictype/ctype-lower-tests (Files): Likewise.
32983         * modules/unictype/ctype-print-tests (Files): Likewise.
32984         * modules/unictype/ctype-punct-tests (Files): Likewise.
32985         * modules/unictype/ctype-space-tests (Files): Likewise.
32986         * modules/unictype/ctype-upper-tests (Files): Likewise.
32987         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
32988         * modules/unictype/decimal-digit-tests (Files): Likewise.
32989         * modules/unictype/digit-tests (Files): Likewise.
32990         * modules/unictype/mirror-tests (Files): Likewise.
32991         * modules/unictype/numeric-tests (Files): Likewise.
32992         * modules/unictype/property-alphabetic-tests (Files): Likewise.
32993         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
32994         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
32995         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
32996         Likewise.
32997         * modules/unictype/property-bidi-block-separator-tests (Files):
32998         Likewise.
32999         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
33000         Likewise.
33001         * modules/unictype/property-bidi-common-separator-tests (Files):
33002         Likewise.
33003         * modules/unictype/property-bidi-control-tests (Files): Likewise.
33004         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
33005         Likewise.
33006         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
33007         Likewise.
33008         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
33009         Likewise.
33010         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
33011         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
33012         Likewise.
33013         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
33014         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
33015         Likewise.
33016         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
33017         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
33018         * modules/unictype/property-bidi-segment-separator-tests (Files):
33019         Likewise.
33020         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
33021         * modules/unictype/property-byname-tests (Files): Likewise.
33022         * modules/unictype/property-combining-tests (Files): Likewise.
33023         * modules/unictype/property-composite-tests (Files): Likewise.
33024         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
33025         * modules/unictype/property-dash-tests (Files): Likewise.
33026         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
33027         * modules/unictype/property-default-ignorable-code-point-tests (Files):
33028         Likewise.
33029         * modules/unictype/property-deprecated-tests (Files): Likewise.
33030         * modules/unictype/property-diacritic-tests (Files): Likewise.
33031         * modules/unictype/property-extender-tests (Files): Likewise.
33032         * modules/unictype/property-format-control-tests (Files): Likewise.
33033         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
33034         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
33035         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
33036         * modules/unictype/property-hex-digit-tests (Files): Likewise.
33037         * modules/unictype/property-hyphen-tests (Files): Likewise.
33038         * modules/unictype/property-id-continue-tests (Files): Likewise.
33039         * modules/unictype/property-id-start-tests (Files): Likewise.
33040         * modules/unictype/property-ideographic-tests (Files): Likewise.
33041         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
33042         * modules/unictype/property-ids-trinary-operator-tests (Files):
33043         Likewise.
33044         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
33045         * modules/unictype/property-iso-control-tests (Files): Likewise.
33046         * modules/unictype/property-join-control-tests (Files): Likewise.
33047         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
33048         * modules/unictype/property-line-separator-tests (Files): Likewise.
33049         * modules/unictype/property-logical-order-exception-tests (Files):
33050         Likewise.
33051         * modules/unictype/property-lowercase-tests (Files): Likewise.
33052         * modules/unictype/property-math-tests (Files): Likewise.
33053         * modules/unictype/property-non-break-tests (Files): Likewise.
33054         * modules/unictype/property-not-a-character-tests (Files): Likewise.
33055         * modules/unictype/property-numeric-tests (Files): Likewise.
33056         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
33057         * modules/unictype/property-other-default-ignorable-code-point-tests
33058         (Files): Likewise.
33059         * modules/unictype/property-other-grapheme-extend-tests (Files):
33060         Likewise.
33061         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
33062         * modules/unictype/property-other-id-start-tests (Files): Likewise.
33063         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
33064         * modules/unictype/property-other-math-tests (Files): Likewise.
33065         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
33066         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
33067         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
33068         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
33069         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
33070         * modules/unictype/property-private-use-tests (Files): Likewise.
33071         * modules/unictype/property-punctuation-tests (Files): Likewise.
33072         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
33073         * modules/unictype/property-radical-tests (Files): Likewise.
33074         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
33075         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
33076         * modules/unictype/property-space-tests (Files): Likewise.
33077         * modules/unictype/property-terminal-punctuation-tests (Files):
33078         Likewise.
33079         * modules/unictype/property-test-tests (Files): Likewise.
33080         * modules/unictype/property-titlecase-tests (Files): Likewise.
33081         * modules/unictype/property-unassigned-code-value-tests (Files):
33082         Likewise.
33083         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
33084         * modules/unictype/property-uppercase-tests (Files): Likewise.
33085         * modules/unictype/property-variation-selector-tests (Files): Likewise.
33086         * modules/unictype/property-white-space-tests (Files): Likewise.
33087         * modules/unictype/property-xid-continue-tests (Files): Likewise.
33088         * modules/unictype/property-xid-start-tests (Files): Likewise.
33089         * modules/unictype/property-zero-width-tests (Files): Likewise.
33090         * modules/unictype/scripts-tests (Files): Likewise.
33091         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
33092         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
33093         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
33094         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
33095         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
33096         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
33097         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
33098         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
33099         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
33100         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
33101         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
33102         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
33103         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
33104         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
33105         * modules/uninorm/composition-tests (Files): Likewise.
33106         * modules/uninorm/decomposing-form-tests (Files): Likewise.
33107         * modules/uninorm/decomposition-tests (Files): Likewise.
33108         * modules/uninorm/filter-tests (Files): Likewise.
33109         * modules/uninorm/nfc-tests (Files): Likewise.
33110         * modules/uninorm/nfd-tests (Files): Likewise.
33111         * modules/uninorm/nfkc-tests (Files): Likewise.
33112         * modules/uninorm/nfkd-tests (Files): Likewise.
33113         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
33114         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
33115         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
33116         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
33117         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
33118         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
33119         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
33120         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
33121         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
33122         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
33123         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
33124         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
33125         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
33126         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
33127         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
33128         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
33129         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
33130         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
33131         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
33132         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
33133         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
33134         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
33135         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
33136         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
33137         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
33138         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
33139         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
33140         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
33141         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
33142         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
33143         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
33144         * modules/uniwidth/u8-width-tests (Files): Likewise.
33145         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
33146         * modules/uniwidth/u16-width-tests (Files): Likewise.
33147         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
33148         * modules/uniwidth/u32-width-tests (Files): Likewise.
33149         * modules/uniwidth/width-tests (Files): Likewise.
33150         * modules/unlink-tests (Files): Likewise.
33151         * modules/unsetenv-tests (Files): Likewise.
33152         * modules/usleep-tests (Files): Likewise.
33153         * modules/utimens-tests (Files): Likewise.
33154         * modules/utimensat-tests (Files): Likewise.
33155         * modules/vasnprintf-posix-tests (Files): Likewise.
33156         * modules/vasnprintf-tests (Files): Likewise.
33157         * modules/vasprintf-posix-tests (Files): Likewise.
33158         * modules/vasprintf-tests (Files): Likewise.
33159         * modules/vdprintf-posix-tests (Files): Likewise.
33160         * modules/vfprintf-posix-tests (Files): Likewise.
33161         * modules/vprintf-posix-tests (Files): Likewise.
33162         * modules/vsnprintf-posix-tests (Files): Likewise.
33163         * modules/vsnprintf-tests (Files): Likewise.
33164         * modules/vsprintf-posix-tests (Files): Likewise.
33165         * modules/wcrtomb-tests (Files): Likewise.
33166         * modules/wcsnrtombs-tests (Files): Likewise.
33167         * modules/wcsrtombs-tests (Files): Likewise.
33168         * modules/wctype-tests (Files): Likewise.
33169         * modules/wcwidth-tests (Files): Likewise.
33170         * modules/xmemdup0-tests (Files): Likewise.
33171         * modules/xprintf-posix-tests (Files): Likewise.
33172         * modules/xvasprintf-tests (Files): Likewise.
33173
33174 2009-12-24  Eric Blake  <ebb9@byu.net>
33175
33176         test-nanosleep: fix typo
33177         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
33178         patch.
33179         Reported by Bruno Haible.
33180
33181 2009-12-24  Bruno Haible  <bruno@clisp.org>
33182
33183         Reduce namespace pollution on glibc systems.
33184         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
33185         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
33186         systems.
33187         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
33188         <getopt.h> on glibc systems.
33189         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
33190         systems.
33191         * lib/fcntl.c: Include <unistd.h> here instead.
33192
33193 2009-12-24  Bruno Haible  <bruno@clisp.org>
33194
33195         * lib/stdlib.in.h (includes): Fix typo in today's commit.
33196
33197 2009-12-24  Eric Blake  <ebb9@byu.net>
33198
33199         tests: add signature checks
33200         * tests/signature.h (SIGNATURE_CHECK): New file.
33201         * modules/atexit-tests (Files): Use it.
33202         * modules/btowc-tests (Files): Likewise.
33203         * modules/canonicalize-lgpl-tests (Files): Likewise.
33204         * modules/ceilf-tests (Files): Likewise.
33205         * modules/ceill-tests (Files): Likewise.
33206         * modules/chown-tests (Files): Likewise.
33207         * modules/dprintf-posix-tests (Files): Likewise.
33208         * modules/dup2-tests (Files): Likewise.
33209         * modules/dup3-tests (Files): Likewise.
33210         * modules/duplocale-tests (Files): Likewise.
33211         * modules/fchdir-tests (Files): Likewise.
33212         * modules/fcntl-tests (Files): Likewise.
33213         * modules/fdopendir-tests (Files): Likewise.
33214         * modules/fflush-tests (Files): Likewise.
33215         * modules/flock-tests (Files): Likewise.
33216         * modules/floorf-tests (Files): Likewise.
33217         * modules/floorl-tests (Files): Likewise.
33218         * modules/fnmatch-tests (Files): Likewise.
33219         * modules/fopen-tests (Files): Likewise.
33220         * modules/fprintf-posix-tests (Files): Likewise.
33221         * modules/freopen-tests (Files): Likewise.
33222         * modules/frexp-nolibm-tests (Files): Likewise.
33223         * modules/frexp-tests (Files): Likewise.
33224         * modules/frexpl-nolibm-tests (Files): Likewise.
33225         * modules/frexpl-tests (Files): Likewise.
33226         * modules/fseek-tests (Files): Likewise.
33227         * modules/fseeko-tests (Files): Likewise.
33228         * modules/fsync-tests (Files): Likewise.
33229         * modules/ftell-tests (Files): Likewise.
33230         * modules/ftello-tests (Files): Likewise.
33231         * modules/futimens-tests (Files): Likewise.
33232         * modules/getaddrinfo-tests (Files): Likewise.
33233         * modules/getcwd-tests (Files): Likewise.
33234         * modules/getdelim-tests (Files): Likewise.
33235         * modules/getdtablesize-tests (Files): Likewise.
33236         * modules/getgroups-tests (Files): Likewise.
33237         * modules/gethostname-tests (Files): Likewise.
33238         * modules/getline-tests (Files): Likewise.
33239         * modules/getopt-posix-tests (Files): Likewise.
33240         * modules/gettimeofday-tests (Files): Likewise.
33241         * modules/glob-tests (Files): Likewise.
33242         * modules/iconv-tests (Files): Likewise.
33243         * modules/inet_ntop-tests (Files): Likewise.
33244         * modules/inet_pton-tests (Files): Likewise.
33245         * modules/isblank-tests (Files): Likewise.
33246         * modules/lchown-tests (Files): Likewise.
33247         * modules/ldexpl-tests (Files): Likewise.
33248         * modules/link-tests (Files): Likewise.
33249         * modules/linkat-tests (Files): Likewise.
33250         * modules/lseek-tests (Files): Likewise.
33251         * modules/lstat-tests (Files): Likewise.
33252         * modules/mbrtowc-tests (Files): Likewise.
33253         * modules/mbsinit-tests (Files): Likewise.
33254         * modules/mbsnrtowcs-tests (Files): Likewise.
33255         * modules/mbsrtowcs-tests (Files): Likewise.
33256         * modules/memchr-tests (Files): Likewise.
33257         * modules/memcmp-tests (Files): Likewise.
33258         * modules/memmem-tests (Files): Likewise.
33259         * modules/memrchr-tests (Files): Likewise.
33260         * modules/mkdir-tests (Files): Likewise.
33261         * modules/mkfifo-tests (Files): Likewise.
33262         * modules/mkfifoat-tests (Files): Likewise.
33263         * modules/mknod-tests (Files): Likewise.
33264         * modules/nanosleep-tests (Files): Likewise.
33265         * modules/nl_langinfo-tests (Files): Likewise.
33266         * modules/obstack-printf-tests (Files): Likewise.
33267         * modules/open-tests (Files): Likewise.
33268         * modules/openat-tests (Files): Likewise.
33269         * modules/perror-tests (Files): Likewise.
33270         * modules/pipe2-tests (Files): Likewise.
33271         * modules/poll-tests (Files): Likewise.
33272         * modules/popen-tests (Files): Likewise.
33273         * modules/posix_spawn-tests (Files): Likewise.
33274         * modules/posix_spawnp-tests (Files): Likewise.
33275         * modules/pread-tests (Files): Likewise.
33276         * modules/printf-posix-tests (Files): Likewise.
33277         * modules/pty-tests (Files): Likewise.
33278         * modules/random_r-tests (Files): Likewise.
33279         * modules/rawmemchr-tests (Files): Likewise.
33280         * modules/readlink-tests (Files): Likewise.
33281         * modules/remove-tests (Files): Likewise.
33282         * modules/rename-tests (Files): Likewise.
33283         * modules/renameat-tests (Files): Likewise.
33284         * modules/rmdir-tests (Files): Likewise.
33285         * modules/round-tests (Files): Likewise.
33286         * modules/roundf-tests (Files): Likewise.
33287         * modules/roundl-tests (Files): Likewise.
33288         * modules/select-tests (Files): Likewise.
33289         * modules/setenv-tests (Files): Likewise.
33290         * modules/sigaction-tests (Files): Likewise.
33291         * modules/sleep-tests (Files): Likewise.
33292         * modules/snprintf-posix-tests (Files): Likewise.
33293         * modules/snprintf-tests (Files): Likewise.
33294         * modules/sprintf-posix-tests (Files): Likewise.
33295         * modules/stat-tests (Files): Likewise.
33296         * modules/strcasestr-tests (Files): Likewise.
33297         * modules/strchrnul-tests (Files): Likewise.
33298         * modules/strerror-tests (Files): Likewise.
33299         * modules/strsignal-tests (Files): Likewise.
33300         * modules/strstr-tests (Files): Likewise.
33301         * modules/strtod-tests (Files): Likewise.
33302         * modules/strverscmp-tests (Files): Likewise.
33303         * modules/symlink-tests (Files): Likewise.
33304         * modules/symlinkat-tests (Files): Likewise.
33305         * modules/times-tests (Files): Likewise.
33306         * modules/trunc-tests (Files): Likewise.
33307         * modules/truncf-tests (Files): Likewise.
33308         * modules/truncl-tests (Files): Likewise.
33309         * modules/tsearch-tests (Files): Likewise.
33310         * modules/uname-tests (Files): Likewise.
33311         * modules/unlink-tests (Files): Likewise.
33312         * modules/unsetenv-tests (Files): Likewise.
33313         * modules/usleep-tests (Files): Likewise.
33314         * modules/utimensat-tests (Files): Likewise.
33315         * modules/vasprintf-tests (Files): Likewise.
33316         * modules/vdprintf-posix-tests (Files): Likewise.
33317         * modules/vfprintf-posix-tests (Files): Likewise.
33318         * modules/vprintf-posix-tests (Files): Likewise.
33319         * modules/vsnprintf-posix-tests (Files): Likewise.
33320         * modules/vsnprintf-tests (Files): Likewise.
33321         * modules/vsprintf-posix-tests (Files): Likewise.
33322         * modules/wcrtomb-tests (Files): Likewise.
33323         * modules/wcsnrtombs-tests (Files): Likewise.
33324         * modules/wcsrtombs-tests (Files): Likewise.
33325         * modules/wcwidth-tests (Files): Likewise.
33326         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
33327         * tests/test-isinf.c (isinf): Likewise.
33328         * tests/test-isnan.c (isnan): Likewise.
33329         * tests/test-signbit.c (signbit): Likewise.
33330         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
33331         declaration, either as macro or with correct signature.
33332         (select): Ensure function under test is declared with correct
33333         signature in correct header.
33334         * tests/test-atexit.c (atexit): Likewise.
33335         * tests/test-btowc.c (btowc): Likewise.
33336         * tests/test-canonicalize-lgpl.c (realpath)
33337         (canonicalize_file_name): Likewise.
33338         * tests/test-ceilf1.c (ceilf): Likewise.
33339         * tests/test-ceill.c (ceill): Likewise.
33340         * tests/test-chown.c (chown): Likewise.
33341         * tests/test-dprintf-posix.c (dprintf): Likewise.
33342         * tests/test-dup2.c (dup2): Likewise.
33343         * tests/test-dup3.c (dup3): Likewise.
33344         * tests/test-duplocale.c (duplocale): Likewise.
33345         * tests/test-fchdir.c (fchdir): Likewise.
33346         * tests/test-fchownat.c (fchownat): Likewise.
33347         * tests/test-fcntl.c (fcntl): Likewise.
33348         * tests/test-fdopendir.c (fdopendir): Likewise.
33349         * tests/test-fflush.c (fflush): Likewise.
33350         * tests/test-flock.c (flock): Likewise.
33351         * tests/test-floorf1.c (floorf): Likewise.
33352         * tests/test-floorl.c (floorl): Likewise.
33353         * tests/test-fnmatch.c (fnmatch): Likewise.
33354         * tests/test-fopen.c (fopen): Likewise.
33355         * tests/test-fprintf-posix.c (fprintf): Likewise.
33356         * tests/test-freopen.c (freopen): Likewise.
33357         * tests/test-frexp.c (frexp): Likewise.
33358         * tests/test-frexpl.c (frexpl): Likewise.
33359         * tests/test-fseek.c (fseek): Likewise.
33360         * tests/test-fseeko.c (fseeko): Likewise.
33361         * tests/test-fstatat.c (fstatat): Likewise.
33362         * tests/test-fsync.c (fsync): Likewise.
33363         * tests/test-ftell.c (ftell): Likewise.
33364         * tests/test-ftello.c (ftello): Likewise.
33365         * tests/test-futimens.c (futimens): Likewise.
33366         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
33367         (gai_strerror): Likewise.
33368         * tests/test-getcwd.c (getcwd): Likewise.
33369         * tests/test-getdelim.c (getdelim): Likewise.
33370         * tests/test-getdtablesize.c (getdtablesize): Likewise.
33371         * tests/test-getgroups.c (getgroups): Likewise.
33372         * tests/test-gethostname.c (gethostname): Likewise.
33373         * tests/test-getline.c (getline): Likewise.
33374         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
33375         Likewise.
33376         * tests/test-gettimeofday.c (gettimeofday): Likewise.
33377         * tests/test-glob.c (glob, globfree): Likewise.
33378         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
33379         * tests/test-inet_ntop.c (inet_ntop): Likewise.
33380         * tests/test-inet_pton.c (inet_pton): Likewise.
33381         * tests/test-isblank.c (isblank): Likewise.
33382         * tests/test-lchown.c (lchown): Likewise.
33383         * tests/test-ldexpl.c (ldexpl): Likewise.
33384         * tests/test-link.c (link): Likewise.
33385         * tests/test-linkat.c (linkat): Likewise.
33386         * tests/test-lseek.c (lseek): Likewise.
33387         * tests/test-lstat.c (lstat): Likewise.
33388         * tests/test-mbrtowc.c (mbrtowc): Likewise.
33389         * tests/test-mbsinit.c (mbsinit): Likewise.
33390         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
33391         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
33392         * tests/test-memchr.c (memchr): Likewise.
33393         * tests/test-memcmp.c (memcmp): Likewise.
33394         * tests/test-memmem.c (memmem): Likewise.
33395         * tests/test-memrchr.c (memrchr): Likewise.
33396         * tests/test-mkdir.c (mkdir): Likewise.
33397         * tests/test-mkdirat.c (mkdirat): Likewise.
33398         * tests/test-mkfifo.c (mkfifo): Likewise.
33399         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
33400         * tests/test-mknod.c (mknod): Likewise.
33401         * tests/test-nanosleep.c (nanosleep): Likewise.
33402         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
33403         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
33404         Likewise.
33405         * tests/test-open.c (open): Likewise.
33406         * tests/test-openat.c (openat): Likewise.
33407         * tests/test-perror.c (perror): Likewise.
33408         * tests/test-pipe2.c (pipe2): Likewise.
33409         * tests/test-poll.c (poll): Likewise.
33410         * tests/test-popen.c (popen, pclose): Likewise.
33411         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
33412         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
33413         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
33414         (posix_spawn_file_actions_destroy)
33415         (posix_spawn_file_actions_addclose)
33416         (posix_spawn_file_actions_addopen)
33417         (posix_spawn_file_actions_adddup2): Likewise.
33418         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
33419         * tests/test-pread.c (pread): Likewise.
33420         * tests/test-printf-posix.c (printf): Likewise.
33421         * tests/test-pty.c (openpty, forkpty): Likewise.
33422         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
33423         (random_r): Likewise.
33424         * tests/test-rawmemchr.c (rawmemchr): Likewise.
33425         * tests/test-readlink.c (readlink): Likewise.
33426         * tests/test-remove.c (remove): Likewise.
33427         * tests/test-rename.c (rename): Likewise.
33428         * tests/test-renameat.c (renameat): Likewise.
33429         * tests/test-rmdir.c (rmdir): Likewise.
33430         * tests/test-round1.c (round): Likewise.
33431         * tests/test-roundf1.c (roundf): Likewise.
33432         * tests/test-roundl.c (roundl): Likewise.
33433         * tests/test-setenv.c (setenv): Likewise.
33434         * tests/test-sigaction.c (sigaction): Likewise.
33435         * tests/test-sleep.c (sleep): Likewise.
33436         * tests/test-snprintf.c (snprintf): Likewise.
33437         * tests/test-sprintf-posix.c (sprintf): Likewise.
33438         * tests/test-stat.c (stat): Likewise.
33439         * tests/test-stpncpy.c (stpncpy): Likewise.
33440         * tests/test-strcasestr.c (strcasestr): Likewise.
33441         * tests/test-strchrnul.c (strchrnul): Likewise.
33442         * tests/test-strerror.c (strerror): Likewise.
33443         * tests/test-strsignal.c (strsignal): Likewise.
33444         * tests/test-strstr.c (strstr): Likewise.
33445         * tests/test-strtod.c (strtod): Likewise.
33446         * tests/test-strverscmp.c (strverscmp): Likewise.
33447         * tests/test-symlink.c (symlink): Likewise.
33448         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
33449         * tests/test-times.c (times): Likewise.
33450         * tests/test-trunc1.c (trunc): Likewise.
33451         * tests/test-truncf1.c (truncf): Likewise.
33452         * tests/test-truncl.c (truncl): Likewise.
33453         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
33454         Likewise.
33455         * tests/test-uname.c (uname): Likewise.
33456         * tests/test-unlink.c (unlink): Likewise.
33457         * tests/test-unlinkat.c (unlinkat): Likewise.
33458         * tests/test-unsetenv.c (unsetenv): Likewise.
33459         * tests/test-usleep.c (usleep): Likewise.
33460         * tests/test-utimensat.c (utimensat): Likewise.
33461         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
33462         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
33463         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
33464         * tests/test-vprintf-posix.c (vprintf): Likewise.
33465         * tests/test-vsnprintf.c (vsnprintf): Likewise.
33466         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
33467         * tests/test-wcrtomb.c (wcrtomb): Likewise.
33468         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
33469         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
33470         * tests/test-wcwidth.c (wcwidth): Likewise.
33471
33472         build: pull in conditional headers during GNULIB_POSIXCHECK
33473         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
33474         definitions from any conditionally-included headers.
33475         * lib/stdlib.in.h (includes): Likewise.
33476         * lib/unistd.in.h (includes): Likewise.
33477
33478 2009-12-24  Bruno Haible  <bruno@clisp.org>
33479
33480         * tests/test-argv-iter.c: Include header file being tested immediately
33481         after config.h.
33482         * tests/test-base64.c: Likewise.
33483         * tests/test-flock.c: Likewise.
33484         * tests/test-fsync.c: Likewise.
33485         * tests/test-getdate.c: Likewise.
33486         * tests/test-getndelim2.c: Likewise.
33487         * tests/test-isfinite.c: Likewise.
33488         * tests/test-isinf.c: Likewise.
33489         * tests/test-strerror.c: Likewise.
33490         * tests/test-strsignal.c: Likewise.
33491
33492 2009-12-23  Eric Blake  <ebb9@byu.net>
33493
33494         unistd: work around cygwin bug
33495         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
33496         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
33497         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33498
33499 2009-12-23  Bruno Haible  <bruno@clisp.org>
33500
33501         localename: More tests.
33502         * tests/test-localename.c (SIZEOF): New macro.
33503         (categories): New variable.
33504         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
33505         test_locale_name_default): Add test w.r.t. thread locale.
33506         (test_locale_name_thread): New function.
33507         (main): Invoke it.
33508
33509         localename: Make aware of thread locale.
33510         * lib/localename.h (gl_locale_name_thread): New declaration.
33511         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
33512         behaviour with respect to thread locale.
33513         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
33514         <langinfo.h>, glthread/lock.h.
33515         (SIZE_BITS): New macro.
33516         (string_hash): New function.
33517         (struct hash_node): New type.
33518         (HASH_TABLE_SIZE): New macro.
33519         (struniq_hash_table, struniq_lock): New variables.
33520         (struniq): New function.
33521         (gl_locale_name_thread): New function.
33522         (gl_locale_name): Invoke it.
33523         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
33524         * modules/localename (Depends-on): Add lock.
33525         Reported by Mike Gran <spk121@yahoo.com>.
33526
33527 2009-12-23  Eric Blake  <ebb9@byu.net>
33528
33529         va-args: new module
33530         * modules/va-args: New file.
33531         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
33532         * MODULES.html.sh (Core language properties): Mention it.
33533
33534         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
33535         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
33536         named alias for __attribute__((__unused__)).
33537         * lib/chown.c: Update client.
33538         * lib/fchmodat.c: Likewise.
33539         * lib/fts.c: Likewise.
33540         * lib/getdate.y: Likewise.
33541         * lib/getgroups.c: Likewise.
33542         * lib/getopt.c: Likewise.
33543         * lib/getugroups.c: Likewise.
33544         * lib/mkdir.c: Likewise.
33545         * lib/mkfifo.c: Likewise.
33546         * lib/mkfifoat.c: Likewise.
33547         * lib/mknod.c: Likewise.
33548         * lib/mknodat.c: Likewise.
33549         * lib/readlink.c: Likewise.
33550         * lib/se-context.in.h: Likewise.
33551         * lib/se-selinux.in.h: Likewise.
33552         * lib/sockets.c: Likewise.
33553         * lib/symlink.c: Likewise.
33554         * lib/symlinkat.c: Likewise.
33555         * lib/unicodeio.c: Likewise.
33556         * lib/unistr.h: Likewise.
33557         * tests/test-areadlink.c: Likewise.
33558         * tests/test-areadlinkat.c: Likewise.
33559         * tests/test-filenamecat.c: Likewise.
33560         * tests/test-fseeko.c: Likewise.
33561         * tests/test-ftello.c: Likewise.
33562         * tests/test-getdate.c: Likewise.
33563         * tests/test-getgroups.c: Likewise.
33564         * tests/test-gethostname.c: Likewise.
33565         * tests/test-quotearg.c: Likewise.
33566         * tests/test-version-etc.c: Likewise.
33567         * tests/test-xalloc-die.c: Likewise.
33568         * tests/test-xfprintf-posix.c: Likewise.
33569         * tests/test-xprintf-posix.c: Likewise.
33570         * tests/test-xvasprintf.c: Likewise.
33571
33572         tests: avoid compiler warnings
33573         * tests/test-fcntl.c (main): Delete unused parameters.
33574         * tests/test-freopen-safer.c (main): Likewise.
33575         * tests/test-xalloc-die.c (main): Mark unused parameters.
33576         * tests/test-fseeko.c (main): Likewise.
33577         * tests/test-ftello.c (main): Likewise.
33578         * tests/test-nanosleep.c (main): Avoid declaration warning.
33579         * tests/test-sleep.c (main): Likewise.
33580         * tests/test-unsetenv.c (main): Silence warning about string
33581         literal.
33582         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
33583
33584 2009-12-23  Bruno Haible  <bruno@clisp.org>
33585
33586         * tests/test-localename.c (test_locale_name): New function, extracted
33587         from main. Also test mixed situations.
33588         (test_locale_name_posix, test_locale_name_environ,
33589         test_locale_name_default): New functions.
33590         (main): Invoke them all.
33591         * modules/localename-tests (configure.ac): Test for newlocale.
33592
33593 2009-12-23  Bruno Haible  <bruno@clisp.org>
33594
33595         unistd: Ensure getcwd gets declared before being overridden.
33596         * lib/unistd.in.h: Conditionally include <io.h>.
33597
33598 2009-12-22  Bruno Haible  <bruno@clisp.org>
33599
33600         wchar: Diagnose broken combination of glibc and gcc versions and flags.
33601         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
33602         (gl_WCHAR_H): Invoke it.
33603         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
33604         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
33605         Reported by Karl Berry <karl@freefriends.org>.
33606
33607 2009-12-22  Eric Blake  <ebb9@byu.net>
33608
33609         math, unistd: avoid redundant includes
33610         * lib/math.in.h (isnan): No need to re-include <math.h>.
33611         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
33612
33613         getsubopt: work around cygwin bug
33614         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
33615         avoid conflicting with system getsubopt.
33616         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
33617         bug.
33618
33619         getopt: synchronize from glibc
33620         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
33621         parameter order.  Adjust all callers.
33622         (_getopt_internal_r, main): Adjust quoting in error messages.
33623         Drop considerations for outdated POSIX 1003.2 error message.
33624         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
33625         callers.
33626         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
33627
33628         test-getopt: test stderr behavior
33629         * modules/getopt-posix-tests (Depends-on): Add dup2.
33630         * tests/test-getopt.c (ASSERT): Avoid stderr.
33631         (main): Move stderr to a temporary file.
33632         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
33633         Instead, add parameter to inform caller if output occurred.
33634         (test_getopt): Adjust all existing tests to expect silence, and
33635         add new tests of leading ":".
33636         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
33637         glibc shortcomings with leading "-:" or "+:" in optstring.
33638         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33639         Likewise.
33640         * doc/posix-functions/getopt.texi (getopt): Likewise.
33641
33642         test-getopt: enhance test
33643         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
33644         supports optind=0.
33645         * tests/test-getopt.c (OPTIND_MIN): Move...
33646         * tests/test-getopt.h (OPTIND_MIN): ...here.
33647         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
33648         Require that optind=0 works, since modern BSD supports it in
33649         addition to optreset, and since coreutils expects it.
33650         (test_getopt_long_only): New test.
33651         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
33652         glibc shortcomings with 'W;', and enforcement of optind=0.
33653         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33654         Likewise.
33655
33656 2009-12-21  Bruno Haible  <bruno@clisp.org>
33657
33658         localename: Improvements for MacOS X and Cygwin.
33659         * lib/localename.h (gl_locale_name_environ): New declaration.
33660         * lib/localename.c (gl_locale_name_environ): New function, extracted from
33661         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
33662         (gl_locale_name_posix): Invoke it.
33663         (gl_locale_name_default): Add comments. Use Windows native API also on
33664         Cygwin.
33665
33666 2009-12-21  Bruno Haible  <bruno@clisp.org>
33667
33668         Update list of Win32 locale ids.
33669         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
33670         (LANG_SAMI): Renamed from LANG_SAAMI.
33671         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
33672         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
33673         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
33674         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
33675         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
33676         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
33677         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
33678         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
33679         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
33680         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
33681         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
33682         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
33683         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
33684         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
33685         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
33686         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
33687         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
33688         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
33689         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
33690         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
33691         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
33692         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
33693         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
33694         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
33695         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
33696         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
33697         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
33698         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
33699         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
33700         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
33701         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
33702         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
33703         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
33704         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
33705         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
33706         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
33707         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
33708         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
33709         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
33710         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
33711         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
33712         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
33713         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
33714         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
33715         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
33716         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
33717         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
33718         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
33719         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
33720         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
33721         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
33722         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
33723         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
33724         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
33725         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
33726         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
33727         Add more languages and countries for Sami, Sorbian. Add more countries
33728         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
33729         for Pashto. Change country for Syriac, Tswana.
33730
33731 2009-12-21  Eric Blake  <ebb9@byu.net>
33732
33733         test-utimens: avoid spurious failure
33734         * tests/test-chown.h (nap): Factor...
33735         * tests/nap.h: ...into new file.
33736         * tests/test-lchown.h (nap): Avoid duplication.
33737         * tests/test-utimens-common.h (nap): Use shared implementation,
33738         necessary on file systems with 1-second resolution.
33739         * modules/chown-tests (Files): Include new file.
33740         * modules/fdutimensat-tests (Files): Likewise.
33741         * modules/futimens-tests (Files): Likewise.
33742         * modules/lchown-tests (Files): Likewise.
33743         * modules/openat-tests (Files): Likewise.
33744         * modules/utimens-tests (Files): Likewise.
33745         * modules/utimensat-tests (Files): Likewise.
33746
33747 2009-12-19  Eric Blake  <ebb9@byu.net>
33748
33749         futimens, utimensat: work around Linux bug
33750         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
33751         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33752         * lib/utimensat.c (rpl_utimensat): Work around it.
33753         * lib/futimens.c (rpl_futimens): Adjust comment.
33754
33755         utimens: work around Linux ctime bug
33756         * lib/utimens.c (detect_ctime_bug): New helper function.
33757         (update_timespec): Differentiate between workaround needed for
33758         this bug vs. what is needed for systems that lack utimensat.
33759         (fdutimens, lutimens): Work around bug.
33760
33761         utimens: check for ctime update
33762         * tests/test-utimens-common.h (check_ctime): Define.
33763         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
33764         * tests/test-futimens.h (test_futimens): Likewise.
33765         * tests/test-lutimens.h (test_lutimens): Likewise.
33766         * doc/posix-functions/futimens.texi (futimens): Document the bug.
33767         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33768
33769 2009-12-19  Bruno Haible  <bruno@clisp.org>
33770
33771         dprintf-posix: Check against memory leak fixed on 2009-12-15.
33772         * tests/test-dprintf-posix2.sh: New file.
33773         * tests/test-dprintf-posix2.c: New file.
33774         * modules/dprintf-posix-tests (Files): Add them.
33775         (configure.ac): Check for getrlimit and setrlimit.
33776         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
33777
33778 2009-12-19  Bruno Haible  <bruno@clisp.org>
33779
33780         fprintf-posix: Check against memory leak fixed on 2009-12-15.
33781         * tests/test-fprintf-posix3.sh: New file.
33782         * tests/test-fprintf-posix3.c: New file.
33783         * modules/fprintf-posix-tests (Files): Add them.
33784         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
33785
33786 2009-12-19  Eric Blake  <ebb9@byu.net>
33787
33788         dirfd: fix prototype
33789         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
33790         * lib/dirfd.c (dirfd): Likewise.
33791
33792         canonicalize: reduce memory usage
33793         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
33794         allocation to size.
33795         Reported by Solar Designer <solar@openwall.com>.
33796
33797 2009-12-19  Bruno Haible  <bruno@clisp.org>
33798
33799         New module attribute 'Applicability'.
33800         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
33801         * gnulib-tool: New option --extract-applicability.
33802         (func_usage): Document it.
33803         (sed_extract_prog): Recognize it.
33804         (func_get_applicability): New function.
33805         (func_import): Generalize handling of 'link-warning' module.
33806         * modules/link-warning (Applicability): New section.
33807         * modules/arg-nonnull (Applicability): New section.
33808         Repoted by Simon Josefsson <simon@josefsson.org>.
33809
33810 2009-12-19  Bruno Haible  <bruno@clisp.org>
33811
33812         fflush: tweak
33813         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
33814         * lib/fseeko.c (rpl_fseeko): Likewise.
33815
33816 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
33817
33818         * lib/gl_list.h: Fix typo in comment.
33819
33820 2009-12-16  Eric Blake  <ebb9@byu.net>
33821
33822         fcntl: use to simplify other modules
33823         * modules/cloexec (Depends-on): Add fcntl.
33824         * modules/fchdir (Depends-on): Likewise.
33825         * modules/fd-safer-flag (Depends-on): Likewise.
33826         * modules/unistd-safer (Depends-on): Likewise.
33827         * modules/dup3 (configure.ac): Set module indicator.
33828         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
33829         missing.
33830         * lib/fchdir.c (_gl_register_dup): Fix comment.
33831         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
33832         * lib/dup-safer.c (dup_safer): Likewise.
33833         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
33834         * lib/dup3.c (dup3): Likewise.
33835         * tests/test-fchdir.c (main): Enhance test.
33836         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
33837
33838         fcntl: port portions of fcntl to mingw
33839         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
33840         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
33841         replacement for mingw.
33842         * modules/fcntl (Description): Update.
33843         (Depends-on): Add dup2.
33844         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
33845         * modules/fcntl-h (Makefile.am): Substitute it.
33846         * lib/fcntl.in.h (fcntl): Update declaration.
33847         (F_DUPFD, F_GETFD): New macros, when needed.
33848         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33849         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
33850         * tests/test-fcntl.c (check_flags, main): Enhance test for items
33851         we now guarantee.
33852
33853         fcntl: work around cygwin bug in F_DUPFD
33854         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
33855         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
33856         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
33857         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
33858         * doc/posix-functions/fcntl.texi (fcntl): Document it.
33859
33860         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
33861         * modules/fcntl (Files): List new files.
33862         (configure.ac): Run a test.
33863         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
33864         * lib/fcntl.c (rpl_fcntl): Likewise.
33865         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
33866         (gl_FCNTL_H): Always replace fcntl.h.
33867         * modules/fcntl-h (Makefile.am): Substitute witnesses.
33868         * lib/fcntl.in.h (fcntl): Declare replacement.
33869         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
33870         needed, plus a witness.
33871         * doc/posix-functions/fcntl.texi (fcntl): Document this.
33872         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
33873         * tests/test-fcntl.c: New file.
33874         * modules/fcntl-tests: Likewise.
33875
33876         binary-io: avoid potential compilation warning
33877         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
33878         directives.
33879
33880         fflush: avoid compilation error on NetBSD
33881         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
33882         between off_t and fpos_t, since the latter is sometimes a struct.
33883         * lib/fseeko.c (rpl_fseeko): Likewise.
33884         Reported by Alexander Nasonov <alnsn@yandex.ru>.
33885
33886 2009-12-15  Eric Blake  <ebb9@byu.net>
33887
33888         fcntl-h, stdio, sys_ioctl: fix declarations
33889         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
33890         function must not take arguments.
33891         * lib/sys_ioctl.in.h (ioctl): Likewise.
33892         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
33893         (open): Add a link warning.
33894
33895 2009-12-15  Jim Meyering  <meyering@redhat.com>
33896
33897         areadlink, areadlink-with-size: relax license to LGPLv2+
33898         * modules/areadlink (License): Relax to LGPLv2+.
33899         * modules/areadlink-with-size (License): Likewise.
33900
33901 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
33902             Bruno Haible  <bruno@clisp.org>
33903
33904         *printf: Fix memory leak.
33905         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
33906         * lib/vfprintf.c (vfprintf): Likewise.
33907         * lib/dprintf.c (dprintf): Likewise.
33908         * lib/vdprintf.c (vdprintf): Likewise.
33909
33910 2009-12-14  Eric Blake  <ebb9@byu.net>
33911
33912         accept4: adjust module dependencies
33913         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
33914
33915         utimens: one more try at avoiding compiler warning
33916         * lib/utimens.c (lutimens): Lower scope of result.
33917
33918 2009-12-13  Bruno Haible  <bruno@clisp.org>
33919
33920         Move the malloc checking from module 'list' to new module 'xlist'.
33921         * modules/xlist: New file.
33922         * lib/gl_xlist.h: New file.
33923         * lib/gl_xlist.c: New file.
33924         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
33925         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
33926         gl_list_add_last, gl_list_add_before, gl_list_add_after,
33927         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
33928         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
33929         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
33930         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
33931         gl_sortedlist_nx_add): New declarations.
33932         (struct gl_list_implementation): Rename and change methods accordingly.
33933         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
33934         (gl_list_nx_create): Renamed from gl_list_create.
33935         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
33936         (gl_list_nx_set_at): Renamed from gl_list_set_at.
33937         (gl_list_nx_add_first): Renamed from gl_list_add_first.
33938         (gl_list_nx_add_last): Renamed from gl_list_add_last.
33939         (gl_list_nx_add_before): Renamed from gl_list_add_before.
33940         (gl_list_nx_add_after): Renamed from gl_list_add_after.
33941         (gl_list_nx_add_at): Renamed from gl_list_add_at.
33942         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
33943         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
33944         gl_list_create_empty.
33945         (gl_list_nx_create): Renamed from gl_list_create.
33946         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
33947         (gl_list_nx_set_at): Renamed from gl_list_set_at.
33948         (gl_list_nx_add_first): Renamed from gl_list_add_first.
33949         (gl_list_nx_add_last): Renamed from gl_list_add_last.
33950         (gl_list_nx_add_before): Renamed from gl_list_add_before.
33951         (gl_list_nx_add_after): Renamed from gl_list_add_after.
33952         (gl_list_nx_add_at): Renamed from gl_list_add_at.
33953         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
33954         * lib/gl_array_list.c: Don't include xalloc.h.
33955         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
33956         NULL upon out-of-memory.
33957         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
33958         out-of-memory.
33959         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
33960         Change return type to 'int'.
33961         (gl_array_nx_set_at): Renamed from gl_array_set_at.
33962         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
33963         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
33964         upon out-of-memory.
33965         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
33966         upon out-of-memory.
33967         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
33968         upon out-of-memory.
33969         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
33970         upon out-of-memory.
33971         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
33972         out-of-memory.
33973         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
33974         Update.
33975         (gl_array_list_implementation): Update.
33976         * lib/gl_carray_list.c: Don't include xalloc.h.
33977         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
33978         Return NULL upon out-of-memory.
33979         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
33980         out-of-memory.
33981         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
33982         Change return type to 'int'.
33983         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
33984         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
33985         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
33986         upon out-of-memory.
33987         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
33988         upon out-of-memory.
33989         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
33990         out-of-memory.
33991         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
33992         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
33993         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
33994         Update.
33995         (gl_carray_list_implementation): Update.
33996         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
33997         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
33998         gl_linked_create_empty. Return NULL upon out-of-memory.
33999         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
34000         out-of-memory.
34001         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
34002         Change return type to 'int'. Return -1 upon out-of-memory.
34003         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
34004         out-of-memory.
34005         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
34006         upon out-of-memory.
34007         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
34008         upon out-of-memory.
34009         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
34010         NULL upon out-of-memory.
34011         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
34012         upon out-of-memory.
34013         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
34014         out-of-memory.
34015         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
34016         Update.
34017         * lib/gl_linked_list.c: Don't include xalloc.h.
34018         (gl_linked_list_implementation): Update.
34019         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
34020         (add_to_bucket): Change return type to 'int'.
34021         (gl_linkedhash_list_implementation): Update.
34022         * lib/gl_anytree_list1.h (free_subtree): New function.
34023         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
34024         gl_tree_create_empty. Return NULL upon out-of-memory.
34025         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
34026         Change return type to 'int'. Return -1 upon out-of-memory.
34027         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
34028         out-of-memory.
34029         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
34030         (gl_tree_remove_node): New function, moved here from
34031         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
34032         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
34033         Update.
34034         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
34035         malloc, not xmalloc. Return NULL upon out-of-memory.
34036         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
34037         out-of-memory.
34038         (gl_tree_remove_node_from_tree): New function, extracted from
34039         gl_tree_remove_node.
34040         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
34041         upon out-of-memory.
34042         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
34043         out-of-memory.
34044         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
34045         upon out-of-memory.
34046         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
34047         upon out-of-memory.
34048         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
34049         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
34050         not xmalloc. Return NULL upon out-of-memory.
34051         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
34052         out-of-memory.
34053         (gl_tree_remove_node_from_tree): New function, extracted from
34054         gl_tree_remove_node.
34055         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
34056         upon out-of-memory.
34057         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
34058         out-of-memory.
34059         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
34060         upon out-of-memory.
34061         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
34062         upon out-of-memory.
34063         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
34064         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
34065         gl_anytree_list1.h before gl_anyavltree_list2.h.
34066         (gl_avltree_list_implementation): Update.
34067         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
34068         gl_anytree_list1.h before gl_anyavltree_list2.h.
34069         (gl_rbtree_list_implementation): Update.
34070         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
34071         Change return type to 'int'. Return -1 upon out-of-memory. Use
34072         __builtin_expect.
34073         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
34074         (gl_avltreehash_list_implementation): Update.
34075         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
34076         (gl_rbtreehash_list_implementation): Update.
34077         * modules/array-list (Depends-on): Remove xalloc.
34078         * modules/carray-list (Depends-on): Likewise.
34079         * modules/linked-list (Depends-on): Likewise.
34080         * modules/linkedhash-list (Depends-on): Likewise.
34081         * modules/avltree-list (Depends-on): Likewise.
34082         * modules/rbtree-list (Depends-on): Likewise.
34083         * modules/avltreehash-list (Depends-on): Likewise.
34084         * modules/rbtreehash-list (Depends-on): Likewise.
34085
34086         * modules/xsublist: New file.
34087         * lib/gl_xsublist.h: New file.
34088         * lib/gl_xsublist.c: New file.
34089         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
34090         (gl_sublist_nx_create): New declaration.
34091         * lib/gl_sublist.c: Don't include xalloc.h.
34092         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
34093         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
34094         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
34095         Change return type to 'int'. Return -1 upon out-of-memory.
34096         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
34097         upon out-of-memory.
34098         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
34099         NULL upon out-of-memory.
34100         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
34101         upon out-of-memory.
34102         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
34103         NULL upon out-of-memory.
34104         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
34105         NULL upon out-of-memory.
34106         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
34107         upon out-of-memory.
34108         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
34109         (gl_sublist_list_implementation): Update.
34110         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
34111         upon out-of-memory.
34112         * modules/sublist (Depends-on): Remove xalloc.
34113
34114         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
34115         * tests/test-carray_list.c: Likewise.
34116         * tests/test-linked_list.c: Likewise.
34117         * tests/test-linkedhash_list.c: Likewise.
34118         * tests/test-avltree_list.c: Likewise.
34119         * tests/test-rbtree_list.c: Likewise.
34120         * tests/test-avltreehash_list.c: Likewise.
34121         * tests/test-rbtreehash_list.c: Likewise.
34122         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
34123         * modules/carray-list-tests (Makefile.am): Likewise.
34124         * modules/linked-list-tests (Makefile.am): Likewise.
34125         * modules/linkedhash-list-tests (Makefile.am): Likewise.
34126         * modules/avltree-list-tests (Makefile.am): Likewise.
34127         * modules/rbtree-list-tests (Makefile.am): Likewise.
34128         * modules/avltreehash-list-tests (Makefile.am): Likewise.
34129         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
34130
34131         * NEWS: Mention the changes.
34132
34133         * lib/clean-temp.c: Include gl_xlist.h.
34134         * modules/clean-temp (Depends-on): Add xlist.
34135
34136         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
34137         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
34138
34139         * tests/test-array_oset.c: Include gl_xlist.h.
34140         * modules/array-oset-tests (Depends-on): Add xlist.
34141
34142         Reported by José E. Marchesi <jemarch@gnu.org>.
34143
34144 2009-12-13  Bruno Haible  <bruno@clisp.org>
34145
34146         Move the malloc checking from module 'oset' to new module 'xoset'.
34147         * modules/xoset: New file.
34148         * lib/gl_xoset.h: New file.
34149         * lib/gl_xoset.c: New file.
34150         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
34151         declarations.
34152         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
34153         (struct gl_oset_implementation): Rename and change methods accordingly.
34154         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
34155         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
34156         'int'. Mark as __warn_unused_result__.
34157         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
34158         gl_oset_create_empty.
34159         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
34160         'int'.
34161         * lib/gl_array_oset.c: Don't include xalloc.h.
34162         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
34163         malloc, not xmalloc.
34164         (grow): Change return type to 'int'. Don't call xalloc_die.
34165         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
34166         to 'int'.
34167         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
34168         'int'.
34169         (gl_array_oset_implementation): Update.
34170         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
34171         gl_tree_create_empty.
34172         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
34173         'int'.
34174         * lib/gl_avltree_oset.c: Don't include xalloc.h.
34175         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
34176         xmalloc.
34177         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
34178         not xmalloc.
34179         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
34180         xmalloc.
34181         (gl_avltree_oset_implementation): Update.
34182         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
34183         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
34184         xmalloc.
34185         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
34186         not xmalloc.
34187         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
34188         xmalloc.
34189         (gl_rbtree_oset_implementation): Update.
34190         * modules/array-oset (Depends-on): Remove xalloc.
34191         * modules/avltree-oset (Depends-on): Likewise.
34192         * modules/rbtree-oset (Depends-on): Likewise.
34193         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
34194         * tests/test-avltree_oset.c: Likewise.
34195         * tests/test-rbtree_oset.c: Likewise.
34196         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
34197         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
34198         * modules/rbtree-oset-tests (Makefile.am): Likewise.
34199         * NEWS: Mention the change.
34200
34201 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
34202
34203         maint.mk: allow a project to override release-prep commands
34204         * top/maint.mk (alpha, beta, stable): Move release-preparatory
34205         commands into a new rule.
34206         (release-prep): New rule.
34207         (release-prep-hook): New overridable variable.
34208
34209 2009-12-13  Bruno Haible  <bruno@clisp.org>
34210
34211         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
34212
34213 2009-12-13  Jim Meyering  <meyering@redhat.com>
34214
34215         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
34216         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
34217
34218 2009-12-12  Bruno Haible  <bruno@clisp.org>
34219
34220         duplocale: Tweak.
34221         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
34222
34223 2009-12-12  Karl Berry  <karl@gnu.org>
34224
34225         * config/srclist.txt (strtoll.c): tab changes, no more sync.
34226
34227 2009-12-12  Bruno Haible  <bruno@clisp.org>
34228
34229         * m4/po.m4: Undo incorrect untabification.
34230
34231 2009-12-12  Bruno Haible  <bruno@clisp.org>
34232
34233         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
34234         * modules/c-strtod (Depends-on): Add locale.
34235         * modules/c-strtold (Depends-on): Likewise.
34236
34237 2009-12-12  Bruno Haible  <bruno@clisp.org>
34238
34239         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
34240
34241 2009-12-11  Eric Blake  <ebb9@byu.net>
34242
34243         setenv: relax requirement in light of POSIX ruling
34244         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
34245         not NULL.
34246         * tests/test-setenv.c (main): Relax test.
34247         * tests/test-unsetenv.c (main): Likewise.
34248         * doc/posix-functions/setenv.texi (setenv): Document this.
34249         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34250
34251 2009-12-11  Bruno Haible  <bruno@clisp.org>
34252
34253         New module 'fd-safer-flag'.
34254         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
34255         * lib/dup-safer.c (dup_safer_flag): Remove function.
34256         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
34257         * lib/fd-safer.c (fd_safer_flag): Remove function.
34258         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
34259         * modules/cloexec (configure.ac): Drop indicator macro.
34260         * modules/fd-safer-flag: New file.
34261         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
34262         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
34263         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
34264
34265 2009-12-11  Bruno Haible  <bruno@clisp.org>
34266
34267         Tests for module 'nl_langinfo'.
34268         * modules/nl_langinfo-tests: New file.
34269         * tests/test-nl_langinfo.sh: New file.
34270         * tests/test-nl_langinfo.c: New file.
34271
34272         New module 'nl_langinfo'.
34273         * lib/nl_langinfo.c: New file.
34274         * m4/nl_langinfo.m4: New file.
34275         * modules/nl_langinfo: New file.
34276         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
34277
34278 2009-12-11  Bruno Haible  <bruno@clisp.org>
34279
34280         Tests for module 'langinfo'.
34281         * modules/langinfo-tests: New file.
34282         * tests/test-langinfo.c: New file.
34283
34284         New module 'langinfo'.
34285         * lib/langinfo.in.h: New file.
34286         * m4/langinfo_h.m4: New file.
34287         * modules/langinfo: New file.
34288         * doc/posix-headers/langinfo.texi: Mention the new module.
34289
34290 2009-12-11  Bruno Haible  <bruno@clisp.org>
34291
34292         * lib/config.charset: Untabify.
34293
34294 2009-12-11  Bruno Haible  <bruno@clisp.org>
34295
34296         * modules/unistd-safer (configure.ac): Drop indicator macro.
34297
34298 2009-12-11  Bruno Haible  <bruno@clisp.org>
34299
34300         Move pipe2-safer code to its own file.
34301         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
34302         * lib/pipe-safer.c (pipe2_safer): Remove function.
34303         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
34304         (Makefile.am): Add it to lib_SOURCES.
34305
34306 2009-12-10  Bruno Haible  <bruno@clisp.org>
34307
34308         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
34309
34310 2009-12-10  Bruno Haible  <bruno@clisp.org>
34311
34312         Declare which arguments expect non-NULL values, for GCC and clang.
34313         * build-aux/arg-nonnull.h: New file.
34314         * modules/arg-nonnull: New file.
34315         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
34316         (inet_ntop, inet_pton): Use it.
34317         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
34318         (closedir, dirfd, opendir, scandir, alphasort): Use it.
34319         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
34320         (open, openat): Use it.
34321         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
34322         (fnmatch): Use it.
34323         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
34324         (getopt, getopt_long, getopt_long_only): Use it.
34325         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
34326         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
34327         Use it.
34328         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
34329         (iconv_open): Use it.
34330         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
34331         (strtoimax, strtoumax): Use it.
34332         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
34333         (duplocale): Use it.
34334         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
34335         (frexp, frexpl): Use it.
34336         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
34337         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
34338         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
34339         (tsearch, tfind, tdelete, twalk): Use it.
34340         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
34341         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
34342         sigpending): Use it.
34343         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
34344         (posix_spawn, posix_spawnp, posix_spawnattr_init,
34345         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
34346         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
34347         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
34348         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
34349         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
34350         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
34351         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
34352         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
34353         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
34354         Use it.
34355         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
34356         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
34357         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
34358         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
34359         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
34360         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
34361         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
34362         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
34363         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
34364         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
34365         strtoull, unsetenv): Use it.
34366         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
34367         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
34368         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
34369         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
34370         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
34371         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
34372         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
34373         (strcasecmp, strncasecmp): Use it.
34374         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
34375         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
34376         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
34377         rpl_setsockopt): Use it.
34378         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
34379         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
34380         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
34381         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
34382         (gettimeofday): Use it.
34383         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
34384         (times): Use it.
34385         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
34386         (uname): Use it.
34387         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
34388         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
34389         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
34390         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
34391         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
34392         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
34393         unlinkat, write): Use it.
34394         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
34395         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
34396         * lib/argv-iter.h: Include arg-nonnull.h.
34397         (_ATTRIBUTE_NONNULL_): Remove macro.
34398         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
34399         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
34400         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
34401         optimization.
34402         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
34403         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
34404         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
34405         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
34406         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
34407         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
34408         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
34409         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
34410         * modules/arpa_inet (Depends-on): Add arg-nonnull.
34411         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
34412         * modules/dirent (Depends-on): Add arg-nonnull.
34413         (Makefile.am): Insert arg-nonnull.h into dirent.h.
34414         * modules/fcntl-h (Depends-on): Add arg-nonnull.
34415         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
34416         * modules/fnmatch (Depends-on): Add arg-nonnull.
34417         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
34418         * modules/getopt-posix (Depends-on): Add arg-nonnull.
34419         (Makefile.am): Insert arg-nonnull.h into getopt.h.
34420         * modules/glob (Depends-on): Add arg-nonnull.
34421         (Makefile.am): Insert arg-nonnull.h into glob.h.
34422         * modules/iconv_open (Depends-on): Add arg-nonnull.
34423         (Makefile.am): Insert arg-nonnull.h into iconv.h.
34424         * modules/inttypes (Depends-on): Add arg-nonnull.
34425         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
34426         * modules/locale (Depends-on): Add arg-nonnull.
34427         (Makefile.am): Insert arg-nonnull.h into locale.h.
34428         * modules/math (Depends-on): Add arg-nonnull.
34429         (Makefile.am): Insert arg-nonnull.h into math.h.
34430         * modules/netdb (Depends-on): Add arg-nonnull.
34431         (Makefile.am): Insert arg-nonnull.h into netdb.h.
34432         * modules/search (Depends-on): Add arg-nonnull.
34433         (Makefile.am): Insert arg-nonnull.h into search.h.
34434         * modules/signal (Depends-on): Add arg-nonnull.
34435         (Makefile.am): Insert arg-nonnull.h into signal.h.
34436         * modules/spawn (Depends-on): Add arg-nonnull.
34437         (Makefile.am): Insert arg-nonnull.h into spawn.h.
34438         * modules/stdio (Depends-on): Add arg-nonnull.
34439         (Makefile.am): Insert arg-nonnull.h into stdio.h.
34440         * modules/stdlib (Depends-on): Add arg-nonnull.
34441         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
34442         * modules/string (Depends-on): Add arg-nonnull.
34443         (Makefile.am): Insert arg-nonnull.h into string.h.
34444         * modules/strings (Depends-on): Add arg-nonnull.
34445         (Makefile.am): Insert arg-nonnull.h into strings.h.
34446         * modules/sys_socket (Depends-on): Add arg-nonnull.
34447         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
34448         * modules/sys_stat (Depends-on): Add arg-nonnull.
34449         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
34450         * modules/sys_time (Depends-on): Add arg-nonnull.
34451         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
34452         * modules/sys_times (Depends-on): Add arg-nonnull.
34453         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
34454         * modules/sys_utsname (Depends-on): Add arg-nonnull.
34455         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
34456         * modules/time (Depends-on): Add arg-nonnull.
34457         (Makefile.am): Insert arg-nonnull.h into time.h.
34458         * modules/unistd (Depends-on): Add arg-nonnull.
34459         (Makefile.am): Insert arg-nonnull.h into unistd.h.
34460         * modules/wchar (Depends-on): Add arg-nonnull.
34461         (Makefile.am): Insert arg-nonnull.h into wchar.h.
34462         * modules/argv-iter (Depends-on): Add arg-nonnull.
34463         * tests/test-canonicalize.c (null_ptr): New function.
34464         (main): Use it.
34465         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
34466         (main): Use it.
34467         * tests/test-memmem.c (null_ptr): New function.
34468         (main): Use it.
34469         Reported by Jim Meyering.
34470
34471 2009-12-10  Bruno Haible  <bruno@clisp.org>
34472
34473         Use spaces for indentation, not tabs.
34474         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
34475         * m4/*.m4: Untabify.
34476         * build-aux/*.h: Untabify.
34477         * tests/**/*.[hc]: Untabify.
34478         * README: New section "Indent with spaces, not TABs", based on
34479         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
34480         * NEWS: Mention the change.
34481
34482 2009-12-10  Bruno Haible  <bruno@clisp.org>
34483
34484         pty test: Fix link error.
34485         * modules/pty-tests (Makefile.am): Add the default LDADD value to
34486         test_pty_LDADD.
34487
34488 2009-12-07  Simon Josefsson  <simon@josefsson.org>
34489
34490         * modules/pty: New file.
34491         * modules/pty-tests: New file.
34492         * m4/pty.m4: New file.
34493         * tests/test-pty.c: New file.
34494         * doc/glibc-headers/pty.texi: Modified.
34495         * doc/glibc-functions/forkpty.texi: Modified.
34496         * doc/glibc-functions/openpty.texi: Modified.
34497
34498 2009-12-10  Bruno Haible  <bruno@clisp.org>
34499
34500         Avoid syntax error in C++ mode.
34501         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
34502
34503 2009-12-10  Bruno Haible  <bruno@clisp.org>
34504
34505         Use sed with option -e.
34506         * gnulib-tool (func_version, func_emit_copyright_notice,
34507         func_emit_initmacro_end, func_import, func_create_testdir): Pass
34508         option -e to sed.
34509         * modules/link-warning (Makefile.am): Likewise.
34510
34511 2009-12-10  Jim Meyering  <meyering@redhat.com>
34512
34513         mgetgroups: do not write bytes beyond end of malloc'd buffer
34514         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
34515         username, we call getgroups with a one-element-shorter buffer,
34516         but still told it the length was original, max_n_groups.
34517
34518 2009-12-09  Eric Blake  <ebb9@byu.net>
34519
34520         cloexec: relax license
34521         * modules/cloexec (Maintainer): Add myself.
34522         (License): Use LGPL, not GPL.
34523
34524         link-warning: optimize generation
34525         * modules/link-warning (Makefile.am): Reduce process usage.
34526
34527 2009-12-09  Bruno Haible  <bruno@clisp.org>
34528
34529         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
34530         workaround was added on 2009-11-17.
34531
34532 2009-12-09  Jim Meyering  <meyering@redhat.com>
34533             Bruno Haible  <bruno@clisp.org>
34534
34535         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
34536         * modules/link-warning (Makefile.am): Make the comment-removing sed
34537         command more robust in the face of bootstrap-prepended comment lines.
34538
34539 2009-12-09  Bruno Haible  <bruno@clisp.org>
34540
34541         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
34542         most one group.
34543
34544 2009-12-09  Simon Josefsson <simon@josefsson.org>
34545             Bruno Haible  <bruno@clisp.org>
34546
34547         * build-aux/link-warning.h: Add copyright notice.
34548         * modules/link-warning (Makefile.am): Generate link-warning.h from
34549         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
34550         * NEWS: Mention change in link-warning module.
34551         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
34552         * modules/dirent (Makefile.am): Add dependency to dirent.h.
34553         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
34554         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
34555         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
34556         * modules/math (Makefile.am): Add dependency to math.h.
34557         * modules/search (Makefile.am): Add dependency to search.h.
34558         * modules/signal (Makefile.am): Add dependency to signal.h.
34559         * modules/spawn (Makefile.am): Add dependency to spawn.h.
34560         * modules/stdio (Makefile.am): Add dependency to stdio.h.
34561         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
34562         * modules/string (Makefile.am): Add dependency to string.h.
34563         * modules/strings (Makefile.am): Add dependency to strings.h.
34564         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
34565         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
34566         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
34567         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
34568         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
34569         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
34570         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
34571         * modules/unistd (Makefile.am): Add dependency to unistd.h.
34572         * modules/wchar (Makefile.am): Add dependency to wchar.h.
34573
34574 2009-12-09  Bruno Haible  <bruno@clisp.org>
34575
34576         fchdir: Optimize away rpl_fstat when possible.
34577         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
34578         REPLACE_OPEN_DIRECTORY.
34579         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
34580
34581 2009-12-09  Bruno Haible  <bruno@clisp.org>
34582
34583         * lib/fchdir.c: Update comment.
34584
34585 2009-12-09  Bruno Haible  <bruno@clisp.org>
34586
34587         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
34588
34589 2009-12-08  Eric Blake  <ebb9@byu.net>
34590
34591         fchdir: avoid memory leak on re-registration.
34592         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
34593
34594 2009-12-08  Jim Meyering  <meyering@redhat.com>
34595
34596         init.sh: avoid Solaris 10 /bin/sh portability problem
34597         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
34598         sourced script:
34599           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
34600           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
34601           bar
34602         tests/init.sh relied on that, accepting a --set-path=DIR argument,
34603         and two tests used that idiom.
34604         * tests/init.sh: Update suggested usage comments.
34605         (path_prepend_): New function, to be used in place
34606         of the --src-path=DIR option.
34607         (setup_): Move PATH-prepending code into path_prepend_.
34608         * tests/test-pread.sh: Adapt to new usage.
34609         * tests/test-xalloc-die.sh: Likewise.
34610
34611 2009-12-08  Simon Josefsson  <simon@josefsson.org>
34612
34613         * doc/gnulib.texi (Glibc pty.h): Add.
34614         * doc/glibc-functions/forkpty.texi: Add.
34615         * doc/glibc-functions/openpty.texi: Add.
34616         Suggested by Bruno Haible.
34617
34618 2009-12-08  Eric Blake  <ebb9@byu.net>
34619
34620         fchdir: fix logic bugs
34621         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
34622         * tests/test-fchdir.c (main): Enhance test.
34623         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
34624         is in use.
34625
34626         dup2: fix logic bugs
34627         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
34628         REPLACE_DUP2 to decide when rpl_dup2 is needed.
34629         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
34630         exists.
34631         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
34632
34633 2009-12-07  Eric Blake  <ebb9@byu.net>
34634
34635         unlink: fix m4 detection
34636         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
34637
34638         unistd-safer: add unit test
34639         * modules/unistd-safer-tests: New file.
34640         * tests/test-dup-safer.c: Likewise.
34641         * tests/test-cloexec.c (setmode): Avoid compiler warning.
34642         * tests/test-dup2.c (setmode): Likewise.
34643         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
34644
34645         cloexec: preserve text vs. binary across dup_cloexec
34646         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
34647         mode.
34648         * modules/dup2-tests (Depends-on): Add binary-io.
34649         * modules/cloexec-tests (Depends-on): Likewise.
34650         * tests/test-dup2.c (setmode, is_mode): New helpers.
34651         (main): Add tests that translation mode is preserved.
34652         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
34653         Reported by Bruno Haible.
34654
34655         mgetgroups: reduce duplicate listings
34656         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
34657         resulting array.
34658         * tests/test-chown.h (test_chown): Simplify client.
34659         * tests/test-lchown.h (test_lchown): Likewise.
34660
34661 2009-12-06  Bruno Haible  <bruno@clisp.org>
34662
34663         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
34664         value.
34665
34666 2009-12-06  Bruno Haible  <bruno@clisp.org>
34667
34668         * lib/progname.c: Include stdio.h, stdlib.h.
34669         (set_program_name): Reject a NULL argument.
34670
34671 2009-12-05  Eric Blake  <ebb9@byu.net>
34672
34673         pipe2-safer: new module
34674         * modules/pipe2-safer: New file.
34675         * lib/unistd-safer.h (pipe2_safer): New prototype.
34676         * lib/unistd--.h (pipe2): New wrapper.
34677         * lib/pipe-safer.c (pipe2_safer): New function.
34678         * modules/pipe (Depends-on): Add pipe2-safer.
34679         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
34680
34681         stdlib-safer: preserve cloexec flag for mkostemp[s]
34682         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
34683         fd_safer_flag.
34684
34685         unistd-safer: allow preservation of cloexec status via flag
34686         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
34687         prototypes.
34688         * lib/dup-safer.c (dup_safer_flag): New function.
34689         * lib/fd-safer.c (fd_safer_flag): Likewise.
34690         * modules/cloexec (configure.ac): Set witness.
34691
34692         test-dup2: enhance test
34693         * modules/dup2-tests (Depends-on): Add cloexec.
34694         * tests/test-dup2.c (main): Enhance test.
34695
34696         cloexec: add dup_cloexec
34697         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
34698         header and comments.
34699         * lib/cloexec.c (set_cloexec_flag): Add comments.
34700         (dup_cloexec): New function, with mingw implementation borrowed
34701         from...
34702         * lib/w32spawn.h (dup_noinherit): ...here.
34703         * modules/execute (Depends-on): Add cloexec.
34704         * modules/pipe (Depends-on): Likewise.
34705         * modules/cloexec (Depends-on): Add dup2.
34706         * modules/cloexec-tests (Files): New file.
34707         * tests/test-cloexec.c: Likewise.
34708
34709         test-xalloc-die: fix test for mingw
34710         * modules/xalloc-die-tests (Files): Add tests/init.sh.
34711         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
34712         directory and .exe suffix off argv[0] output.
34713
34714         test-fseeko: fix test for mingw
34715         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
34716         than undefining fseek, so test will pass on mingw.
34717
34718 2009-12-05  Bruno Haible  <bruno@clisp.org>
34719
34720         * lib/progname.h (set_program_name): Clarify specification.
34721         * lib/progname.c (set_program_name): Likewise.
34722         Reported by Jim Meyering.
34723
34724 2009-12-05  Jim Meyering  <meyering@redhat.com>
34725
34726         maint.mk: backslash-escape parens in default regexp
34727         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
34728         backslash-escape the literal parentheses.
34729
34730         maint.mk: news-date-check: use grep -E
34731         * top/maint.mk (today): Define a Make variable, not a...
34732         (news-date-check): ...shell variable.
34733         (news-date-regexp): Use the Make variable.
34734         Use grep's -E option.  Change the failing diagnostic to mention
34735         the variable, $(news-date-regexp).
34736
34737 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
34738
34739         maintainer-makefile: allow customization of NEWS entry format
34740         * top/maint.mk (news-date-regexp): New overridable variable.
34741         (news-date-check): Use it.
34742
34743 2009-12-04  Eric Blake  <ebb9@byu.net>
34744
34745         mgetgroups: add xgetgroups, and avoid ENOSYS failures
34746         * lib/mgetgroups.h (xgetgroups): New prototype.
34747         * lib/mgetgroups.c (xgetgroups): New wrapper.
34748         (mgetgroups): Handle ENOSYS.
34749         * modules/mgetgroups (Depends-on): Add realloc.
34750         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
34751
34752         mgetgroups: avoid argument promotion issues with -1
34753         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
34754         for invalid gid_t.
34755         * tests/test-chown.h (getegid, test_chown): Likewise.
34756         * tests/test-lchown.h (getegid, test_lchown): Likewise.
34757
34758 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
34759
34760         exclude: Fix header file problems.
34761         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
34762
34763 2009-12-01  Jim Meyering  <meyering@redhat.com>
34764
34765         fts: fts_open: do not let an empty string cause immediate failure
34766         This is required in support of GNU rm, for which the command
34767         "rm A '' B" must process and remove both A and B, in spite of
34768         the empty string argument.
34769         * lib/fts.c (fts_open): Do not let the presence of an empty string
34770         cause fts_open to fail immediately.  Most fts-using tools must be
34771         able to process all arguments, in order, and can be expected to
34772         diagnose such arguments themselves.
34773
34774 2009-11-30  Eric Blake  <ebb9@byu.net>
34775
34776         utimens: fix compilation error
34777         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
34778         Declare variable at right scope.
34779
34780 2009-11-29  Jim Meyering  <meyering@redhat.com>
34781
34782         bootstrap: handle perl-5.11's changed --version output
34783         * build-aux/bootstrap (get_version): Handle perl separately,
34784         since perl-5.11's --version output is different.
34785
34786 2009-11-28  Jim Meyering  <meyering@redhat.com>
34787
34788         userspec: depend on the inttostr module, too
34789         * modules/userspec (Depends-on): Add inttostr.
34790
34791         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
34792         * lib/userspec.c (parse_with_separator): Do not accept a user ID
34793         number of MAXUID when it evaluates to (uid_t) -1.
34794         Likewise for group ID.  Reported by Matt McCutchen in
34795         <http://savannah.gnu.org/bugs/?28113>
34796
34797         userspec: reformat to use spaces, not TABs
34798         * lib/userspec.c: Expand TABs to spaces.
34799         Add Emacs' "indent-tabs-mode: nil" hint.
34800
34801 2009-11-27  Eric Blake  <ebb9@byu.net>
34802
34803         getopt-gnu: flush out another BSD bug
34804         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
34805         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
34806         flush out BSD bug.
34807         * tests/test-getopt.h (test_getopt): End lists with NULL.
34808         * tests/test-getopt_long.h (test_getopt_long): Likewise.
34809         (test_getopt_long_posix): Enhance test.
34810         * modules/getopt-posix-tests (Depends-on): Add stdbool.
34811         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
34812         getopt-gnu.
34813         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34814         Likewise.
34815
34816 2009-11-27  Simon Josefsson  <simon@josefsson.org>
34817
34818         * modules/idpriv-droptemp-tests (Notice): Fix text.
34819
34820 2009-11-27  Jim Meyering  <meyering@redhat.com>
34821
34822         test-xalloc-die: avoid spurious failure due to libtool argv difference
34823         In a libtool-enabled project, this test would fail due to a difference
34824         in the emitted program name, e.g.,
34825         -test-xalloc-die: memory exhausted
34826         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
34827         Use program to avoid that.
34828         * modules/xalloc-die-tests (Depends-on): Add progname.
34829         * tests/test-xalloc-die.c: Include progname.h".
34830         (program_name): Remove decl.
34831         (main): Call set_program_name.
34832         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
34833
34834 2009-11-26  Richard Jones  <rjones@redhat.com>
34835
34836         w32sock: leave win32 error in place.
34837         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
34838
34839 2009-11-26  Eric Blake  <ebb9@byu.net>
34840
34841         init.sh: suggest to use skip_ and fail_ functions in comments
34842         * tests/init.sh: Add a sentence.
34843
34844 2009-11-25  Bruno Haible  <bruno@clisp.org>
34845
34846         init.sh: add documentation in comments
34847         * tests/init.sh: Add some developer and user documentation.
34848
34849 2009-11-26  Jim Meyering  <meyering@redhat.com>
34850
34851         init.sh: accommodate even those who specify bogus srcdir manually
34852         * tests/init.sh: Normally, srcdir is guaranteed by automake and
34853         configure-time tests to be sanitized, so that there is no need to
34854         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
34855         (with no double quotes) suffices.  However, since tests may be
34856         invoked manually, and since you may explicitly set srcdir to the
34857         name of a directory containing spaces, do quote its uses here.
34858         * tests/test-pread.sh: Likewise.
34859         Suggested by Bruno Haible.
34860
34861         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
34862         * tests/test-pread.sh: Write no data into the pipe, because
34863         test-pread actually reads none.  This avoids a diagnostic,
34864         "bash: echo: write error: Broken pipe", that arises in the unusual
34865         event something is ignoring SIGPIPE, and might be interpreted
34866         as some sort of failure.  Reported by Bruno Haible.
34867
34868 2009-11-25  Jim Meyering  <meyering@redhat.com>
34869
34870         test-pread: cover failure with ESPIPE and EINVAL
34871         * tests/test-pread.c (main): Test for failure, too.
34872         * tests/test-pread.sh: Invoke with stdin on a pipe.
34873         Suggested by Eric Blake.
34874
34875         pread: improvement and fix
34876         * modules/pread (Depends-on): Depend on lseek, for portability to
34877         e.g., mingw.  Suggested by Eric Blake.
34878         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
34879
34880         unistd.in.h: correct declaration of pread
34881         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
34882         Reported by Richard W.M. Jones.
34883
34884         test-pread.sh: distribute the test script
34885         * modules/pread-tests (Files): Include test-pread.sh.
34886
34887         test-pread.sh: clean up
34888         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
34889         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
34890         That is unnecessary, since it's always ".".
34891         Suggestion from Eric Blake.
34892
34893         test-pread.sh: make executable
34894         * tests/test-pread.sh: Set executable bit.
34895         Reported by Eric Blake.
34896
34897         correct typo in test-pread.sh
34898         * tests/test-pread.sh: Add #! line.
34899
34900         test pread
34901         * tests/test-pread.c: New file.
34902         * tests/test-pread.sh: Likewise.
34903         * modules/pread-tests: Likewise.
34904
34905         pread: new module
34906         * modules/pread: New file.
34907         * lib/unistd.in.h (pread): Define/declare.
34908         * lib/pread.c (pread): New file.
34909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
34910         * modules/unistd (Makefile.am): Substitute witnesses.
34911         * doc/posix-functions/pread.texi (pread): Update.
34912         * MODULES.html.sh: Add pread.
34913
34914 2009-11-25  Jim Meyering  <meyering@redhat.com>
34915
34916         tests/init.sh: new file to be used via most *.sh tests
34917         * tests/init.sh: New file.
34918
34919 2009-11-25  Eric Blake  <ebb9@byu.net>
34920
34921         utimens: work around older Linux failure with symlinks
34922         * lib/utimens.c (lutimensat_works_really): New variable.
34923         (fdutimens, lutimens): Use it to manage kernels that support
34924         nanosecond times on files, but not on symlinks.
34925         Reported by OndÅ™ej Vašík.
34926
34927         utimes: fix configure grammar
34928         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
34929
34930 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
34931
34932         regex: Fix fastmap for multibyte character ranges.
34933         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
34934         characters when a multibyte character range is included.
34935
34936 2009-11-22  Andy Wingo  <wingo@pobox.com>
34937
34938         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
34939         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
34940
34941 2009-11-24  Bruno Haible  <bruno@clisp.org>
34942
34943         doc: Most *_l functions exist in MacOS X 10.5.
34944         * doc/posix-functions/duplocale.texi: Update platforms list.
34945         * doc/posix-functions/freelocale.texi: Likewise.
34946         * doc/posix-functions/newlocale.texi: Likewise.
34947         * doc/posix-functions/uselocale.texi: Likewise.
34948         * doc/posix-functions/isalnum_l.texi: Likewise.
34949         * doc/posix-functions/isalpha_l.texi: Likewise.
34950         * doc/posix-functions/isblank_l.texi: Likewise.
34951         * doc/posix-functions/iscntrl_l.texi: Likewise.
34952         * doc/posix-functions/isdigit_l.texi: Likewise.
34953         * doc/posix-functions/isgraph_l.texi: Likewise.
34954         * doc/posix-functions/islower_l.texi: Likewise.
34955         * doc/posix-functions/isprint_l.texi: Likewise.
34956         * doc/posix-functions/ispunct_l.texi: Likewise.
34957         * doc/posix-functions/isspace_l.texi: Likewise.
34958         * doc/posix-functions/isupper_l.texi: Likewise.
34959         * doc/posix-functions/iswalnum_l.texi: Likewise.
34960         * doc/posix-functions/iswalpha_l.texi: Likewise.
34961         * doc/posix-functions/iswblank_l.texi: Likewise.
34962         * doc/posix-functions/iswcntrl_l.texi: Likewise.
34963         * doc/posix-functions/iswctype_l.texi: Likewise.
34964         * doc/posix-functions/iswdigit_l.texi: Likewise.
34965         * doc/posix-functions/iswgraph_l.texi: Likewise.
34966         * doc/posix-functions/iswlower_l.texi: Likewise.
34967         * doc/posix-functions/iswprint_l.texi: Likewise.
34968         * doc/posix-functions/iswpunct_l.texi: Likewise.
34969         * doc/posix-functions/iswspace_l.texi: Likewise.
34970         * doc/posix-functions/iswupper_l.texi: Likewise.
34971         * doc/posix-functions/iswxdigit_l.texi: Likewise.
34972         * doc/posix-functions/isxdigit_l.texi: Likewise.
34973         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
34974         * doc/posix-functions/strcasecmp_l.texi: Likewise.
34975         * doc/posix-functions/strcoll_l.texi: Likewise.
34976         * doc/posix-functions/strfmon_l.texi: Likewise.
34977         * doc/posix-functions/strftime_l.texi: Likewise.
34978         * doc/posix-functions/strncasecmp_l.texi: Likewise.
34979         * doc/posix-functions/strxfrm_l.texi: Likewise.
34980         * doc/posix-functions/tolower_l.texi: Likewise.
34981         * doc/posix-functions/toupper_l.texi: Likewise.
34982         * doc/posix-functions/towctrans_l.texi: Likewise.
34983         * doc/posix-functions/towlower_l.texi: Likewise.
34984         * doc/posix-functions/towupper_l.texi: Likewise.
34985         * doc/posix-functions/wcscoll_l.texi: Likewise.
34986         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
34987         * doc/posix-functions/wctrans_l.texi: Likewise.
34988         * doc/posix-functions/wctype_l.texi: Likewise.
34989         * doc/glibc-functions/strptime_l.texi: Likewise.
34990         * doc/glibc-functions/strtod_l.texi: Likewise.
34991         * doc/glibc-functions/strtof_l.texi: Likewise.
34992         * doc/glibc-functions/strtol_l.texi: Likewise.
34993         * doc/glibc-functions/strtold_l.texi: Likewise.
34994         * doc/glibc-functions/strtoll_l.texi: Likewise.
34995         * doc/glibc-functions/strtoul_l.texi: Likewise.
34996         * doc/glibc-functions/strtoull_l.texi: Likewise.
34997         * doc/glibc-functions/wcsftime_l.texi: Likewise.
34998         * doc/glibc-functions/wcstod_l.texi: Likewise.
34999         * doc/glibc-functions/wcstof_l.texi: Likewise.
35000         * doc/glibc-functions/wcstol_l.texi: Likewise.
35001         * doc/glibc-functions/wcstold_l.texi: Likewise.
35002         * doc/glibc-functions/wcstoll_l.texi: Likewise.
35003         * doc/glibc-functions/wcstoul_l.texi: Likewise.
35004         * doc/glibc-functions/wcstoull_l.texi: Likewise.
35005
35006 2009-11-24  Bruno Haible  <bruno@clisp.org>
35007
35008         duplocale: Fix logic bug.
35009         * lib/duplocale.c: Don't include <langinfo.h>.
35010         (_NL_LOCALE_NAME): Remove macro.
35011         (rpl_duplocale): Use setlocale instead of nl_langinfo.
35012         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
35013
35014 2009-11-23  Jim Meyering  <meyering@redhat.com>
35015
35016         test-update-copyright: don't hard-code /usr/bin/perl
35017         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
35018         perl to print the current year.  Gilles Espinasse reported that
35019         the replaced use of perl was hard-coded as /usr/bin/perl.
35020
35021 2009-11-23  Bruno Haible  <bruno@clisp.org>
35022
35023         duplocale: Add support for glibc 2.3.x.
35024         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
35025
35026 2009-11-22  Bruno Haible  <bruno@clisp.org>
35027
35028         vasnprintf: Tiny optimization.
35029         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
35030         MacOS X.
35031
35032 2009-11-22  Bruno Haible  <bruno@clisp.org>
35033
35034         Tests for module 'duplocale'.
35035         * modules/duplocale-tests: New file.
35036         * tests/test-duplocale.c: New file.
35037
35038         New module 'duplocale'.
35039         * m4/duplocale.m4: New file.
35040         * lib/locale.in.h (duplocale): New declaration.
35041         * lib/duplocale.c: New file.
35042         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
35043         gl_LOCALE_H_DEFAULTS): New macros.
35044         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
35045         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
35046         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
35047         REPLACE_DUPLOCALE.
35048         * modules/duplocale: New file.
35049         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
35050
35051 2009-11-22  Bruno Haible  <bruno@clisp.org>
35052
35053         * modules/locale-tests (configure.ac): Test for newlocale function.
35054         * tests/test-locale.c: When the system has extended locale functions,
35055         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
35056
35057         locale: Make locale_t available when possible.
35058         * lib/locale.in.h: Include <xlocale.h> when it exists.
35059         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
35060         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
35061         * modules/locale (Depends-on): Add extensions.
35062         (Makefile.am): Also substitute HAVE_XLOCALE_H.
35063         * doc/posix-headers/locale.texi: Document the problem with locale_t.
35064
35065 2009-11-22  Bruno Haible  <bruno@clisp.org>
35066
35067         Add comments.
35068         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
35069         invocation.
35070         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
35071         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
35072         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35073
35074 2009-11-22  Bruno Haible  <bruno@clisp.org>
35075
35076         error: account for the possibility of freopen (stdout).
35077         * lib/error.c: Include <unistd.h>.
35078         (flush_stdout): New function, extracted from error and error_at_line.
35079         Determine stdout's fd dynamically.
35080         (error, error_at_line): Invoke flush_stdout.
35081         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
35082         * modules/error (Depends-on): Add unistd.
35083
35084 2009-11-22  Bruno Haible  <bruno@clisp.org>
35085
35086         diffseq: Add comment.
35087         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
35088
35089 2009-11-22  Jim Meyering  <meyering@redhat.com>
35090
35091         c-stack: avoid defining an unused static function
35092         * lib/c-stack.c (find_stack_direction): Do not define this function
35093         when it will not be used.
35094
35095         diffseq: avoid spurious gcc warnings
35096         * lib/diffseq.h (IF_LINT2): Define.
35097         (compareseq): Use it to initialize two members of "part".
35098         This avoids two used-uninitialized warnings.
35099
35100 2009-11-21  Jim Meyering  <meyering@redhat.com>
35101
35102         c-stack: avoid "ignoring return value of `write'" warning
35103         * lib/c-stack.c: Include "ignore-value.h".
35104         (die): Explicitly ignore each write return value.
35105         * modules/c-stack (Depends-on): Add ignore-value.
35106
35107 2009-11-21  Bruno Haible  <bruno@clisp.org>
35108
35109         diffseq: reduce scope of variable 'best'.
35110         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
35111         variable, earlier used for two different purposes.
35112
35113 2009-11-21  Jim Meyering  <meyering@redhat.com>
35114
35115         diffseq: remove useless assignment to "best"
35116         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
35117         assignment.  At that point "best" is already guaranteed to be zero.
35118
35119 2009-11-20  Eric Blake  <ebb9@byu.net>
35120
35121         build: mention ftp redirector in release announcements
35122         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
35123         values that used to come from cfg.mk; mention FTP redirect URL.
35124         * build-aux/announce-gen: Mention the mirror list.
35125         Suggested by Karl Berry.
35126
35127         nanosleep: improve port to mingw
35128         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
35129         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
35130         LIB_NANOSLEEP, but only when needed.
35131         * modules/select (Link): Document LIBSOCKET.
35132         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
35133         enough.
35134
35135         nanosleep: work around cygwin bug
35136         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
35137         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
35138         bug.
35139         (getnow): Delete, not needed.
35140         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
35141         LIB_CLOCK_GETTIME.
35142         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
35143         clock-time, gettime.
35144         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
35145         bug.
35146         * modules/nanosleep-tests: New test.
35147         * tests/test-nanosleep.c: New file.
35148
35149         sleep: work around cygwin bug
35150         * lib/sleep.c (rpl_sleep): Work around the bug.
35151         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
35152         (gl_PREREQ_SLEEP): Delete unused macro.
35153         * modules/sleep (Depends-on): Add verify.
35154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
35155         * modules/unistd (Makefile.am): Substitute witness.
35156         * lib/unistd.in.h (sleep): Update prototype.
35157         * doc/posix-functions/sleep.texi (sleep): Document the bug.
35158         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
35159         * modules/sleep-tests (Depends-on): Check for alarm.
35160
35161 2009-11-20  Jim Meyering  <meyering@redhat.com>
35162
35163         maint.mk: improve sc_prohibit_magic_number_exit
35164         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
35165         so it does not match uses like System.exit(1).
35166         Add comments showing how to correct all offenders.
35167
35168 2009-11-19  Eric Blake  <ebb9@byu.net>
35169
35170         xalloc-die-tests: add missing library
35171         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
35172
35173         test-xvasprintf: silence compiler warnings
35174         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
35175         empty string from gcc.
35176
35177 2009-11-19  Jim Meyering  <meyering@redhat.com>
35178
35179         xfreopen: new module, from coreutils
35180         * modules/xfreopen: New module.
35181         * lib/xfreopen.c: New file.
35182         * lib/xfreopen.h: New file.
35183         * MODULES.html.sh (File stream based Input/Output"): Add it.
35184
35185 2009-11-19  Eric Blake  <ebb9@byu.net>
35186
35187         manywarnings: depend on warnings
35188         * modules/manywarnings (Depends-on): Add warnings.
35189
35190         build: avoid compiler warnings
35191         * lib/select.c (rpl_select): Delete unused variable.
35192         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
35193
35194 2009-11-18  Eric Blake  <ebb9@byu.net>
35195
35196         tests: avoid false negative with --with-packager
35197         * tests/test-version-etc.sh: Discard packager information.
35198         * tests/test-argp-version-etc-1.sh: Likewise.
35199         Reported by Mike Frysinger.
35200
35201         utimens: fix regression on Solaris
35202         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
35203         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
35204         can only change fd timestamps via futimesat.  Instead, use an
35205         additional witness macro to avoid BSD bug.
35206         Reported by Jim Meyering.
35207
35208 2009-11-17  Eric Blake  <ebb9@byu.net>
35209
35210         usleep: use it to simplify tests
35211         * modules/stat-time-tests (Depends-on): Add usleep.
35212         (configure.ac): Drop usleep check.
35213         * modules/chown-tests (Depends-on, configure.ac): Likewise.
35214         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
35215         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
35216         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
35217         * modules/openat-tests (Depends-on, configure.ac): Likewise.
35218         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
35219         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
35220         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
35221         Likewise.
35222         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
35223         * tests/test-lchown.h (nap): Likewise.
35224         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
35225         * tests/test-stat-time.c (nap): Likewise.
35226         * tests/test-utimens-common.h (nap): Update comments.
35227
35228         usleep: new module
35229         * modules/usleep: New file.
35230         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
35231         * lib/usleep.c (usleep): Likewise.
35232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
35233         * modules/unistd (Makefile.am): Substitute witnesses.
35234         * lib/unistd.in.h (usleep): Add declaration.
35235         * doc/pastposix-functions/usleep.texi (usleep): Document this.
35236         * MODULES.html.sh (Date and time): Likewise.
35237         * modules/usleep-tests (Depends-on): New test.
35238         * tests/test-usleep.c: New file.
35239
35240         chown: work around OpenBSD bug
35241         * lib/chown.c (rpl_chown): Work around the bug.
35242         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
35243         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
35244         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
35245         * modules/chown (Depends-on): Add stdbool.
35246         * modules/lchown (Depends-on): Likewise.
35247         * doc/posix-functions/chown.texi (chown): Document the bug.
35248         * doc/posix-functions/lchown.texi (lchown): Likewise.
35249         * tests/test-lchown.h (test_chown): Relax test.
35250
35251         mkstemp: avoid conflict with C++ keyword template
35252         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
35253         * lib/mkostemp.c (mkostemp): Likewise.
35254         * lib/mkostemps.c (mkostemps): Likewise.
35255         * lib/mkstemp.c (mkstemp): Likewise.
35256         * lib/mkstemps.c (mkstemps): Likewise.
35257
35258         xalloc-die-tests: optimize
35259         * tests/test-xalloc-die.sh: Reduce number of processes.
35260
35261 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35262
35263         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
35264         patch from ludo@gnu.org (Ludovic Courtès).
35265
35266 2009-11-17  Jim Meyering  <meyering@redhat.com>
35267
35268         version-etc: use proper license string
35269         * modules/version-etc (License): Use LGPL, not LGPLv3+.
35270         * modules/version-etc-fsf: Likewise.
35271
35272 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35273
35274         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
35275         printed to stdout.  Deal with EOL differences.
35276
35277 2009-11-17  Eric Blake  <ebb9@byu.net>
35278
35279         unsetenv: work around Solaris bug
35280         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
35281         * lib/unsetenv.c (rpl_unsetenv): Work around it.
35282         Reported by Jim Meyering.
35283
35284         vasnprintf: avoid compiler warnings
35285         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
35286         variables.
35287         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
35288
35289 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35290
35291         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
35292         settings since xalloc-die is no longer the self test,
35293         xalloc-die.sh is.
35294
35295 2009-11-17  Jim Meyering  <meyering@redhat.com>
35296
35297         test-xalloc-die.sh: make the code agree with the commit log
35298         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
35299         at the end, just in case you happen to have a test-xalloc-die
35300         program in some other PATH directory.
35301
35302         test-xalloc-die.sh: fix a portability bug
35303         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
35304         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
35305         Otherwise, argv[0] (as often seen in diagnostics) would be too
35306         system-dependent, sometimes with, and sometimes without the leading "./".
35307
35308         version-etc-fsf: relax license to LGPLv3+
35309         * modules/version-etc-fsf (License): Relax license.
35310
35311 2009-11-16  Eric Blake  <ebb9@byu.net>
35312
35313         xalloc-die-tests: avoid printing null pointer
35314         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
35315         shell script.
35316         * tests/test-xalloc-die.c (program_name): Declare.
35317         * tests/test-xalloc-die.sh (tmpfiles): New file.
35318
35319         setenv, unsetenv: work around various bugs
35320         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
35321         (setenv) [HAVE_SETENV]: Work around bugs.
35322         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
35323         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
35324         for bugs.
35325         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
35326         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
35327         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
35328         * modules/stdlib (Makefile.am): Update substitutions.
35329         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
35330         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
35331         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
35332         * modules/setenv-tests: New test.
35333         * modules/unsetenv-tests: Likewise.
35334         * tests/test-setenv.c: New file.
35335         * tests/test-unsetenv.c: Likewise.
35336
35337 2009-11-16  Jim Meyering  <meyering@redhat.com>
35338
35339         version-etc: relax license to LGPLv3+
35340         * modules/version-etc (License): Relax license.
35341
35342         better AC_REQUIRE expanded-before-required-warning avoidance
35343         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
35344         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
35345         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
35346         which is no longer needed.
35347
35348 2009-11-16  Eric Blake  <ebb9@byu.net>
35349
35350         test-freading: clean up temporary file
35351         * tests/test-freading.c (main): Remove file on success, and use
35352         ASSERT more liberally.
35353         Reported by Jim Meyering.
35354
35355 2009-11-16  Jim Meyering  <meyering@redhat.com>
35356
35357         avoid new AC_REQUIRE expanded-before-required warnings
35358         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
35359         merely using it.
35360         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
35361         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
35362
35363 2009-11-15  Simon Josefsson  <simon@josefsson.org>
35364
35365         * tests/test-xalloc-die.c: New file.
35366         * modules/xalloc-die-tests: New file.
35367         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
35368         XFAIL_TESTS so it can be appended by modules.
35369
35370 2009-11-15  Simon Josefsson  <simon@josefsson.org>
35371
35372         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
35373         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
35374
35375 2009-11-14  Eric Blake  <ebb9@byu.net>
35376
35377         fnmatch: avoid compiler warning
35378         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
35379         to silence compiler warning about mismatch signedness in ?:.
35380         Reported by Robert Millan.
35381
35382         intprops: add double-inclusion guard
35383         * lib/intprops.h: Allow idempotent includes.
35384         Suggested by Bruce Korb.
35385
35386         openat: detect Solaris fchownat bug
35387         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
35388         penalizing glibc chownat when only lchownat is broken.
35389         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
35390         trailing slash bugs.
35391         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
35392         * modules/openat-tests (Files): Include more files.
35393         (Depends-on): Add mgetgroups, sleep, stat-time.
35394         (configure.ac): Add additional checks.
35395         (Makefile.am): Build new test.
35396         * tests/test-fchownat.c: New file.
35397
35398         lchown: detect Solaris and FreeBSD bug
35399         * lib/lchown.c (rpl_lchown): Work around bug.
35400         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
35401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35402         * modules/unistd (Makefile.am): Populate it.
35403         * lib/unistd.in.h (lchown): Update declaration.
35404         * doc/posix-functions/lchown.texi (lchown): Document the bug.
35405         * modules/lchown-tests: New file.
35406         * tests/test-lchown.h (test_lchown): Likewise.
35407         * tests/test-lchown.c (main): Likewise.
35408
35409         chown: detect Solaris and FreeBSD bug
35410         * lib/chown.c (rpl_chown): Work around bug.
35411         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
35412         (gl_PREREQ_CHOWN): Delete.
35413         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35414         * modules/unistd (Makefile.am): Populate it.
35415         * lib/unistd.in.h (chown): Update declaration.
35416         * lib/lchown.c (chown): Update client.
35417         * modules/lchown (Depends-on): Add lstat.
35418         * doc/posix-functions/chown.texi (chown): Document the bug.
35419         * doc/posix-functions/getgroups.texi (getgroups): Document
35420         getgroups pitfall.
35421         * modules/chown-tests: New file.
35422         * tests/test-chown.h (test_chown): Likewise.
35423         * tests/test-chown.c (main): Likewise.
35424
35425 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
35426
35427         gnulib-tool: correctly detect absence of m4 directories
35428         * gnulib-tool: Avoid extra newline on data passed to wc -l.
35429
35430 2009-11-14  Jim Meyering  <meyering@redhat.com>
35431
35432         maint.mk: Prohibit inclusion of "xalloc.h" without use.
35433         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
35434
35435 2009-11-14  John W. Eaton  <jwe@gnu.org>
35436
35437         strftime.h: wrap funtion declaration in extern "C" block
35438         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
35439
35440 2009-11-13  Eric Blake  <ebb9@byu.net>
35441
35442         getgroups: avoid compiler warning
35443         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
35444
35445         getgroups: work around FreeBSD bug
35446         * lib/getgroups.c (rpl_getgroups): Work around the bug.
35447         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
35448         * doc/posix-functions/getgroups.texi (getgroups): Document it.
35449         * tests/test-getgroups.c (main): Fix buffer overrun.
35450
35451         getgroups: avoid compilation failure
35452         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
35453         * modules/getgroups (Depends-on): Add stdint.
35454
35455 2009-11-13  Jim Meyering  <meyering@redhat.com>
35456
35457         test-getgroups: avoid compilation failure
35458         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
35459
35460 2009-11-13  Eric Blake  <ebb9@byu.net>
35461
35462         mgetgroups: new module, taken from coreutils
35463         * modules/mgetgroups: New file.
35464         * lib/mgetgroups.h: Likewise.
35465         * lib/mgetgroups.c (mgetgroups): Likewise.
35466         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
35467         * MODULES.html.sh (Users and groups): Mention it.
35468
35469         getgroups: don't expose GETGROUPS_T to user
35470         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
35471         an element at a time if GETGROUPS_T is wrong size.
35472         * lib/getugroups.h (getugroups): Change signature.
35473         * lib/unistd.in.h (getgroups): Likewise.
35474         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
35475         signature needs fixing.
35476         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
35477         AC_TYPE_GETGROUPS.
35478         * modules/group-member (Depends-on): Add getgroups.
35479         * lib/group-member.c (group_info, get_group_info): Use gid_t.
35480         (group_member): Rely on getgroups replacement.
35481         * lib/getugroups.c (getugroups): Use gid_t.
35482         * tests/test-getgroups.c (main): Likewise.
35483         * NEWS: Mention the signature change.
35484         * doc/posix-functions/getgroups.texi (getgroups): Mention the
35485         problem with signature.
35486         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
35487         GETGROUPS_T is still useful for setgroups.
35488
35489         getgroups, getugroups: provide stubs for mingw
35490         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
35491         * lib/getugroups.c (getugroups): Likewise.
35492         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
35493         function.  Modernize replacement scheme.
35494         (gl_PREREQ_GETGROUPS): Delete.
35495         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
35496         * modules/getgroups (configure.ac): Declare witness.
35497         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
35498         * modules/unistd (Depends-on): Substitute witness.
35499         * lib/unistd.in.h (getgroups): Declare replacement.
35500
35501         getgroups: avoid calling exit
35502         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
35503         drop xalloc.
35504         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
35505         dependencies.
35506         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
35507         exiting, in the rare case of malloc failure.
35508
35509         getgroups: fix logic error
35510         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
35511         has more than 20 groups.
35512         * modules/getgroups-tests: New test.
35513         * tests/test-getgroups.c: New file.
35514
35515 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35516
35517         * tests/test-base64.c: Improve.
35518
35519 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35520
35521         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
35522         Blake <ebb9@byu.net>.
35523
35524 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35525
35526         * tests/test-xvasprintf.c: Add %s%s related checks.
35527
35528 2009-11-12  Eric Blake  <ebb9@byu.net>
35529
35530         version-etc: match standards.texi style
35531         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
35532         and use <> only for URLs.
35533
35534 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
35535
35536         fts: do not fail on a submount during traversal
35537         * lib/fts.c (fts_build): Read the stat info again after opening
35538         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
35539         Original report at http://bugzilla.redhat.com/501848.
35540
35541 2009-11-12  Jim Meyering  <meyering@redhat.com>
35542
35543         bootstrap: sync from coreutils
35544         * build-aux/bootstrap (bootstrap_epilogue): New function.
35545         Use git_modules_config in one more place.  This make bootstrap's
35546         --gnulib-srcdir option more useful for testing.
35547
35548         bootstrap: generalize autoheader check
35549         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
35550         AC_CONFIG_HEADERS.
35551
35552 2009-11-11  Eric Blake  <ebb9@byu.net>
35553
35554         mkfifoat: use new modules for Solaris and BSD bugs
35555         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
35556         * lib/mkfifoat.c (mknodat): Split...
35557         * lib/mknodat.c (mknodat): ...into new file.
35558         * modules/mkfifoat (Files): Ship new file.
35559         (Depends-on): Add mkfifo, mknod.
35560         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
35561         (Depends-on): Add symlink.
35562         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
35563         redundant with test_mkfifo.h.
35564         (do_mkfifoat, do_mknodat): New helpers.
35565
35566         mknod: new module
35567         * modules/mknod: New file.
35568         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
35569         * lib/mknod.c (mknod): Likewise.
35570         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
35571         defaults.
35572         * modules/sys_stat (Makefile.am): Substitute them.
35573         * lib/sys_stat.in.h (mknod): Declare replacement.
35574         * MODULES.html.sh (Support for systems lacking POSIX:2008):
35575         Document it.
35576         * doc/posix-functions/mknod.texi (mknod): Likewise.
35577         * modules/mknod-tests: New test.
35578         * tests/test-mknod.c: Likewise.
35579
35580         mkfifo: new module
35581         * modules/mkfifo: New file.
35582         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
35583         * lib/mkfifo.c (mkfifo): Likewise.
35584         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
35585         defaults.
35586         * modules/sys_stat (Makefile.am): Substitute them.
35587         * lib/sys_stat.in.h (mkfifo): Declare replacement.
35588         * MODULES.html.sh (Support for systems lacking POSIX:2008):
35589         Document it.
35590         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
35591         * modules/mkfifo-tests: New test.
35592         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
35593         from test-mkfifoat.c.
35594         * tests/test-mkfifo.c: New file.
35595
35596         readlink: detect FreeBSD bug
35597         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
35598         slash on symlink.
35599         * doc/posix-functions/readlink.texi (readlink): Document the bug.
35600         * tests/test-readlink.h (test_readlink): Enhance test.
35601
35602         symlink: detect FreeBSD bug
35603         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
35604         slash on symlink.
35605         * doc/posix-functions/symlink.texi (symlink): Document the bug.
35606         * tests/test-symlink.h (test_symlink): Enhance test.
35607
35608 2009-11-10  Eric Blake  <ebb9@byu.net>
35609
35610         link: detect FreeBSD bug
35611         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
35612         symlink.
35613         * doc/posix-functions/link.texi (link): Document the bug.
35614         * tests/test-link.h (test_link): Enhance test.
35615         * tests/test-linkat.c (main): Update caller.
35616
35617         unlink, remove: detect FreeBSD bug
35618         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
35619         slash on symlink.
35620         * doc/posix-functions/unlink.texi (unlink): Document the bug.
35621         * doc/posix-functions/remove.texi (remove): Likewise.
35622         * tests/test-unlink.h (test_unlink): Enhance test.
35623         * tests/test-remove.c (main): Likewise.
35624
35625 2009-11-09  Eric Blake  <ebb9@byu.net>
35626
35627         rename: detect FreeBSD bug
35628         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
35629         slash on symlink.
35630         * modules/renameat-tests (Depends-on): Add filenamecat.
35631         * tests/test-rename.h (test_rename): Allow one more errno.
35632         * tests/test-renameat.c (main): Likewise.
35633         * doc/posix-functions/rename.texi (rename): Document the bug.
35634
35635         open: detect FreeBSD bug
35636         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
35637         symlink.
35638         * doc/posix-functions/open.texi (open): Document the bug.
35639         * doc/posix-functions/utimes.texi (utimes): Likewise.
35640         * tests/test-open.h (test_open): Add parameters, and test symlink
35641         handling.
35642         * tests/test-open.c (main): Adjust caller.
35643         * tests/test-fcntl-safer.c (main): Likewise.
35644         * modules/open-tests (Depends-on): Add stdbool, symlink.
35645         * modules/fcntl-safer-tests (Depends-on): Likewise.
35646         * tests/test-openat.c (main): Add test-open tests.
35647
35648         stat: detect FreeBSD bug
35649         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
35650         symlink.
35651         * doc/posix-functions/stat.texi (stat): Document the bug.
35652         * tests/test-stat.h (test_stat_func): Add argument.
35653         * tests/test-stat.c (main): Adjust caller.
35654         * tests/test-fstatat.c (main): Likewise.
35655         * modules/stat-tests (Depends-on): Add stdbool, symlink.
35656         Reported by Jim Meyering.
35657
35658 2009-11-09  James Youngman  <jay@gnu.org>
35659
35660         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
35661         * lib/strftime.c: Correct placement of #include "ignore-value.h".
35662
35663 2009-11-08  Jim Meyering  <meyering@redhat.com>
35664
35665         utimens: remove invalid futimesat call
35666         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
35667         It used the file descriptor of the target file as the DIR_FD
35668         parameter and NULL as the file name.  That caused failure with
35669         errno == EFAULT on FreeBSD-8.0-rc2
35670
35671 2009-11-07  Eric Blake  <ebb9@byu.net>
35672
35673         fflush, freadseek: use fseeko, not fseek
35674         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
35675         (clear_ungetc_buffer): Avoid potential problems on large files.
35676         * lib/freadseek.c (freadseek): Likewise.
35677         * modules/freadseek (Depends-on): Add fseeko.
35678         * modules/fseek (configure.ac): Set a witness.
35679         * tests/test-fflush.c (main): Use fseeko.
35680         * tests/test-fpurge.c (fseek): Disable link warning.
35681         * tests/test-freadable.c (fseek): Likewise.
35682         * tests/test-freading.c (fseek): Likewise.
35683         * tests/test-fseeko.c (fseek): Likewise.
35684         * tests/test-ftell.c (fseek): Likewise.
35685         * tests/test-ftello.c (fseek): Likewise.
35686         * tests/test-fwritable.c (fseek): Likewise.
35687         * tests/test-fwriting.c (fseek): Likewise.
35688
35689 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35690
35691         * modules/memchr (Depends-on): Drop getpagesize dependency.
35692
35693 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35694
35695         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
35696         Reported by Ludovic Courtès.
35697         * build-aux/pmccabe2html: Improve example usage.
35698         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
35699
35700 2009-11-06  Jim Meyering  <meyering@redhat.com>
35701
35702         do-release-commit-and-tag: New module.
35703         Automate the release-commit and tag process.
35704         * build-aux/do-release-commit-and-tag: New script, from coreutils.
35705         * modules/do-release-commit-and-tag: New file.
35706         * MODULES.html.sh (Support for maintaining and releasing): Add it.
35707
35708 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35709
35710         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
35711         because test-select.c uses inet_pton.
35712
35713 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35714
35715         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
35716         GETADDRINFO_LIB.  Bump serial number.
35717         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
35718         Suggested by Eric Blake <ebb9@byu.net>.
35719
35720 2009-11-05  Eric Blake  <ebb9@byu.net>
35721
35722         strtod: detect darwin bug
35723         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
35724         Reported by Leo Davis.
35725
35726         freopen-safer: new module
35727         * modules/freopen-safer: New module.
35728         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
35729         * lib/freopen-safer.c (freopen_safer): New file.
35730         * lib/stdio-safer.h (freopen_safer): New declaration.
35731         * lib/stdio--.h (freopen): New override.
35732         * MODULES.html.sh (File stream based Input/Output): Mention it.
35733         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
35734         freopen-safer module.
35735         * doc/posix-functions/stderr.texi (stderr): Likewise.
35736         * doc/posix-functions/stdin.texi (stdin): Likewise.
35737         * doc/posix-functions/stdout.texi (stdout): Likewise.
35738         * modules/freopen-safer-tests: New test.
35739         * tests/test-reopen-safer.c: New file.
35740
35741 2009-11-05  Jim Meyering  <meyering@redhat.com>
35742
35743         maint.mk: Prohibit inclusion of "close-stream.h" without use.
35744         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
35745
35746 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35747
35748         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
35749
35750 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35751
35752         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
35753
35754 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35755
35756         Fix link error.
35757         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
35758         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35759
35760 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35761
35762         * tests/test-func.c: Also test value of __func__.
35763
35764 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35765
35766         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
35767         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
35768
35769 2009-11-05  Bruno Haible  <bruno@clisp.org>
35770
35771         Fix link error.
35772         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
35773         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35774         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
35775
35776 2009-11-05  Bruno Haible  <bruno@clisp.org>
35777
35778         Tests for module 'inet_pton'.
35779         * modules/inet_pton-tests: New file.
35780         * tests/test-inet_pton.c: New file.
35781
35782 2009-11-05  Bruno Haible  <bruno@clisp.org>
35783
35784         Tests for module 'inet_ntop'.
35785         * modules/inet_ntop-tests: New file.
35786         * tests/test-inet_ntop.c: New file.
35787
35788 2009-11-04  Eric Blake  <ebb9@byu.net>
35789
35790         stdlib-safer: wrap all mkstemp variants
35791         * modules/mkostemp (configure.ac): Set witness.
35792         * modules/mkostemps (configure.ac): Likewise.
35793         * modules/mkstemps (configure.ac): Likewise.
35794         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
35795         (mkstemps_safer): Wrap more functions.
35796         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
35797         wrapping.
35798         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
35799         (mkstemps_safer): Implement the wrappers.
35800
35801         mkstemps, mkostemps: new modules
35802         * modules/mkostemps: New module.
35803         * modules/mkstemps: Likewise.
35804         * lib/mkostemps.c (mkostemps): New file.
35805         * lib/mkstemps.c (mkstemps): Likewise.
35806         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
35807         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
35808         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
35809         * modules/stdlib (Makefile.am): Substitute them.
35810         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
35811         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
35812         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
35813         * doc/gnulib.texi (Glibc stdlib.h): Include them.
35814         * MODULES.html.sh (File system functions): Mention them.
35815
35816         tempname: resync from glibc
35817         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
35818         same values for __GT_FILE as glibc.  Abort even when assertions
35819         are disabled.
35820         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
35821         match its value otherwise.  Allow idempotent inclusion.
35822         * lib/mkdtemp.c (mkdtemp): Adjust caller.
35823         * lib/mkostemp.c (mkostemp): Likewise.
35824         * lib/mkstemp.c (mkstemp): Likewise.
35825         * lib/tmpfile.c (tmpfile): Likewise.
35826         * NEWS: Document this.
35827
35828         utimens: fix use of futimens on older Linux
35829         * lib/utimens.c (fdutimens): Use updated, rather than original,
35830         timespec to avoid bug in older Linux kernel.
35831         Reported by Simon Josefsson.
35832
35833 2009-11-04  Bruno Haible  <bruno@clisp.org>
35834
35835         Make num_processors more flexible and consistent.
35836         * lib/nproc.h (enum nproc_query): New type.
35837         (num_processors): Add a 'query' argument.
35838         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
35839         (num_processors): Add a 'query' argument. Test the value of the
35840         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
35841         mingw, count the number of CPUs available for the current process.
35842         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
35843         Check for sched_getaffinity and sched_getaffinity_np.
35844         * modules/nproc (Depends-on): Add c-ctype, extensions.
35845         * NEWS: Mention the change.
35846
35847 2009-11-03  Bruno Haible  <bruno@clisp.org>
35848
35849         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
35850
35851 2009-11-03  Jim Meyering  <meyering@redhat.com>
35852
35853         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
35854         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
35855         if it is defined.
35856
35857 2009-11-02  Eric Blake  <ebb9@byu.net>
35858
35859         mktime, timegm: share common declaration
35860         * lib/mktime-internal.h: New file.
35861         * lib/mktime.c: Use it rather than open-coding a declaration.
35862         * lib/timegm.c: Likewise.
35863         * modules/mktime (Files): Ship it.
35864         * modules/timegm (Files): Likewise.
35865         Suggested by Bruno Haible.
35866
35867         test-update-copyright: update test to match script changes
35868         * tests/test-update-copyright.sh: Avoid hard-coding perl
35869         location.  Don't update *.bak created by earlier runs.
35870
35871 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
35872             Simon Josefsson  <simon@josefsson.org>
35873             Bruno Haible  <bruno@clisp.org>
35874
35875         Fix link error on Solaris 8.
35876         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
35877         also in libnsl. Define also INET_PTON_LIB.
35878         * modules/inet_pton (Link): New section.
35879
35880 2009-11-02  Simon Josefsson  <simon@josefsson.org>
35881             Bruno Haible  <bruno@clisp.org>
35882
35883         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
35884         * modules/inet_ntop (Link): New section.
35885         Reported by Boyan Kasarov <bkasarov@gmail.com>.
35886
35887 2009-11-02  Eric Blake  <ebb9@byu.net>
35888
35889         maint: avoid compiler warnings in m4 macros
35890         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
35891         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
35892
35893 2009-11-02  Simon Josefsson  <simon@josefsson.org>
35894
35895         * m4/pmccabe2html.m4: Remove file.
35896         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
35897         function.  Change maintainer.
35898         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
35899         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
35900         Courtès).
35901
35902 2009-10-31  Eric Blake  <ebb9@byu.net>
35903
35904         fseeko: fix m4 regression
35905         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
35906         regression from 2009-10-27.
35907         Reported by Ralf Wildenhues.
35908
35909 2009-10-31  Jim Meyering  <meyering@redhat.com>
35910
35911         inttostr: aesthetics and improved (compile-time) safety
35912         Define inttype_is_signed rather than inttype_is_unsigned,
35913         since the sole use is via "#if inttype_is_signed".
35914         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
35915         inttype_is_unsigned.
35916         * lib/offtostr.c (inttype_is_signed): Likewise.
35917         * lib/uinttostr.c (inttype_is_signed): Likewise.
35918         * lib/umaxtostr.c (inttype_is_signed): Likewise.
35919         * lib/inttostr.c (inttostr): Use verify to cross-check the
35920         inttype_is_signed value and the signedness of the actual type.
35921         * modules/inttostr (Depends-on): Add verify.
35922
35923 2009-10-30  Eric Blake  <ebb9@byu.net>
35924
35925         build: avoid compiler warnings
35926         * lib/fchmodat.c (lchmod): Mark unused variables.
35927         * lib/getopt.c (_getopt_initialize): Likewise.
35928         * lib/mktime.c (__mktime_internal): Provide prototype.
35929         * lib/inttostr.c (inttostr): Avoid compiler warning even with
35930         older gcc that do not understand #pragma GCC diagnostic.
35931         * lib/uinttostr.c (inttype_is_unsigned): Define.
35932         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
35933
35934 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
35935
35936         stat: fix compilation on AIX
35937         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
35938         only see struct stat64.
35939
35940 2009-10-30  Eric Blake  <ebb9@byu.net>
35941
35942         exclude: make more robust
35943         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
35944         rather than masking a coding bug.
35945         Suggested by Bruno Haible.
35946
35947 2009-10-30  Jim Meyering  <meyering@redhat.com>
35948
35949         perl scripts: remove #!/usr/bin/perl in favor of more portable...
35950         Rather than putting #!/usr/bin/perl on the first line,
35951         start with a variant of what's recommended by "man perlrun" that
35952         invokes the first "perl" program from your shell's search path.
35953         * build-aux/gitlog-to-changelog: Replace #!... as above.
35954         Add a "Local Variables" perl mode setting.
35955         Prompted by a patch from Ludovic Courtès.
35956         Improved by Eric Blake.
35957         * build-aux/useless-if-before-free: Likewise.
35958         * build-aux/announce-gen: Likewise.
35959         * build-aux/update-copyright: Likewise.
35960
35961 2009-10-29  Eric Blake  <ebb9@byu.net>
35962
35963         filenamecat-lgpl: adjust clients
35964         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
35965         filenamecat.
35966         * modules/renameat (Depends-on): Likewise.
35967
35968         filenamecat: split into filenamecat-lgpl
35969         * modules/filenamecat-lgpl: New module.
35970         * modules/filenamecat (Files): Move library-safe files into
35971         filenamecat-lgpl.
35972         (Depends-on): Add filenamecat-lgpl.
35973         (configure.ac): Declare witness.
35974         * lib/filenamecat.h (file_name_concat): Only declare when using
35975         GPL module.
35976         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
35977         Move...
35978         * lib/filenamecat-lgpl.c: ...into new file.
35979         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
35980         (gl_FILE_NAME_CONCAT): Use it.
35981         * MODULES.html.sh (File system functions): Mention new module.
35982
35983         argp: avoid memory leak
35984         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
35985         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
35986         base_name, since the latter malloc()s and can call exit().
35987         Leak introduced 2006-07-03.
35988
35989         dirname-lgpl: adjust clients that don't need full dirname
35990         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
35991         * modules/filenamecat (Depends-on): Likewise.
35992         * modules/linkat (Depends-on): Likewise.
35993         * modules/mkancesdirs (Depends-on): Likewise.
35994         * modules/mkdir (Depends-on): Likewise.
35995         * modules/openat (Depends-on): Likewise.
35996         * modules/savewd (Depends-on): Likewise.
35997         * modules/rename (Depends-on): Likewise.
35998         (License): Relax license.
35999         * modules/mkdir-tests (Depends-on): Drop progname.
36000         (Makefile.am): Delete unneeded LDADD.
36001         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
36002
36003         dirname: split into dirname-lgpl
36004         * modules/dirname-lgpl: New module.
36005         * modules/dirname (Files): Move library-safe files into
36006         dirname-lgpl.
36007         (Depends-on): Add dirname-lgpl.
36008         (configure.ac): Declare witness.
36009         * modules/double-slash-root (License): Relax license.
36010         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
36011         module.
36012         * lib/dirname.c (dir_len, mdir_name): Move...
36013         * lib/dirname-lgpl.c: ...into new file.
36014         * lib/basename.c (last_component, base_len): Move...
36015         * lib/basename-lgpl.c: ...into new file.
36016         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
36017         (gl_DIRNAME): Use it.
36018         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
36019         Mention new module.
36020         * modules/dirname-tests (Depends-on): Add progname.
36021         * tests/test-dirname.c (program_name): Delete.
36022
36023         mkdir: make safe for libraries
36024         * modules/mkdir (Depends-on): Drop xalloc.
36025         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
36026         exit.
36027
36028         tests: avoid some compiler warnings
36029         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
36030         literals.
36031         * tests/test-memchr.c (main): Avoid type mismatch.
36032         * tests/test-arpa_inet.c (main): Avoid unused parameters.
36033         * tests/test-base64.c (main): Likewise.
36034         * tests/test-getdelim.c (main): Likewise.
36035         * tests/test-gethostname.c (main): Likewise.
36036         * tests/test-getline.c (main): Likewise.
36037         * tests/test-netinet_in.c (main): Likewise.
36038         * tests/test-select.c (open_server_socket, main): Likewise.
36039         * tests/test-select-stdin.c (main): Likewise.
36040         * tests/test-sockets.c (main): Likewise.
36041         * tests/test-strsignal.c (main): Likewise.
36042         * tests/test-sys_select.c (main): Likewise.
36043         * tests/test-sys_socket.c (main): Likewise.
36044         * tests/test-u64.c (main): Likewise.
36045         * tests/test-xfprintf-posix.c (main): Likewise.
36046         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
36047
36048         sockets: avoid compiler warning
36049         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
36050
36051         maint: detect usage(1) and other suspicious exits
36052         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
36053
36054 2009-10-29  Jim Meyering  <meyering@redhat.com>
36055
36056         timespec: long-to-int truncation could make timespec_cmp malfunction
36057         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
36058         a multiple of 2^32 nanoseconds as no difference.
36059
36060 2009-10-28  Jim Meyering  <meyering@redhat.com>
36061
36062         fprintftime: wrap macro code argument in "do {...} while(0)"
36063         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
36064         cpy macro must be a statement that can be followed by a semicolon.
36065         Now that the else clause contains a comment and is hence longer
36066         than one line, I require curly braces.  That in turn requires
36067         that we wrap this code block in the standard do...while(0).
36068
36069         fprintftime: remove stray semicolon from previous change
36070         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
36071
36072         fprintftime: avoid a warning about ignored fwrite return value
36073         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
36074         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
36075         that is unsafe.
36076         * modules/fprintftime (Depends-on): Add ignore-value.
36077
36078         exclude: avoid an unwarranted warning
36079         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
36080
36081 2009-10-27  Eric Blake  <ebb9@byu.net>
36082
36083         fseek: avoid compilation failure when fflush is replaced
36084         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
36085         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
36086         module is in use.
36087         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
36088         module is not in use; since REPLACE_FSEEK worked otherwise.
36089         (GNULIB_FTELLO): Likewise for ftell.
36090         Reported by Ian Beckwith and others.
36091
36092 2009-10-27  Bruno Haible  <bruno@clisp.org>
36093
36094         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
36095         Reported by Jim Meyering.
36096
36097 2009-10-27  Jim Meyering  <jim@meyering.net>
36098             Bruno Haible  <bruno@clisp.org>
36099
36100         Avoid warning despite dropping the return value of fwrite.
36101         * lib/unicodeio.c: Include ignore-value.h.
36102         (fwrite_success_callback): Explicitly ignore fwrite's return value.
36103         * modules/unicodeio (Depends-on): Add ignore-value.
36104
36105 2009-10-26  Eric Blake  <ebb9@byu.net>
36106
36107         areadlinkat: fix fallback path
36108         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
36109         pointer and zero.
36110
36111 2009-10-22  Pádraig Brady  <P@draigBrady.com>
36112
36113         Use a better IO block size for modern systems
36114         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
36115         * lib/md2.c: Likewise.
36116         * lib/md4.c: Likewise.
36117         * lib/md5.c: Likewise.
36118         * lib/sha1.c: Likewise.
36119         * lib/sha256.c: Likewise.
36120         * lib/sha512.c: Likewise.
36121
36122 2009-10-22  Eric Blake  <ebb9@byu.net>
36123
36124         tests: avoid several compiler warnings
36125         * tests/test-getcwd.c (main): Avoid buffer underflow.
36126         * tests/test-getdate.c (main): String literals are not safe with
36127         putenv, so use setenv.  Declare unused argument.
36128         * modules/getdate-tests (Depends-on): Add setenv.
36129         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
36130         problems with string literals in char *.
36131         * tests/test-hash.c (main): Avoid shadowing declaration.
36132         (insert_new): Treat string literals as char const *.
36133         * tests/test-getopt.h (test_getopt): Likewise.
36134         (getopt_loop): Alter types to minimize casting elsewhere.
36135         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
36136         (test_getopt_long_posix): Likewise.
36137         (do_getopt_long): Add wrapper to minimize casting.
36138         * tests/test-atexit.c (clear_temp_file): Use void.
36139         * tests/test-areadlink-with-size.c (main): Declare unused
36140         arguments.
36141         * tests/test-areadlink.c (main): Likewise.
36142         * tests/test-areadlinkat-with-size.c (main): Likewise.
36143         * tests/test-areadlinkat.c (main): Likewise.
36144         * tests/test-canonicalize-lgpl.c (main): Likewise.
36145         * tests/test-canonicalize.c (main): Likewise.
36146         * tests/test-dirent-safer.c (main): Likewise.
36147         * tests/test-dirname.c (main): Likewise.
36148         * tests/test-dup2.c (main): Likewise.
36149         * tests/test-fchdir.c (main): Likewise.
36150         * tests/test-fcntl-h.c (main): Likewise.
36151         * tests/test-fcntl-safer.c (main): Likewise.
36152         * tests/test-fdopendir.c (main): Likewise.
36153         * tests/test-fdutimensat.c (main): Likewise.
36154         * tests/test-fflush.c (main): Likewise.
36155         * tests/test-filenamecat.c (main): Likewise.
36156         * tests/test-filevercmp.c (main): Likewise.
36157         * tests/test-fopen-safer.c (main): Likewise.
36158         * tests/test-fopen.c (main): Likewise.
36159         * tests/test-fpending.c (main): Likewise.
36160         * tests/test-fpurge.c (main): Likewise.
36161         * tests/test-freading.c (main): Likewise.
36162         * tests/test-fstatat.c (main): Likewise.
36163         * tests/test-fsync.c (main): Likewise.
36164         * tests/test-futimens.c (main): Likewise.
36165         * tests/test-getndelim2.c (main): Likewise.
36166         * tests/test-gettimeofday.c (main): Likewise.
36167         * tests/test-getopt.c (main): Likewise.
36168         * tests/test-i-ring.c (main): Likewise.
36169         * tests/test-inttypes.c (main): Likewise.
36170         * tests/test-link.c (main): Likewise.
36171         * tests/test-lstat.c (main): Likewise.
36172         * tests/test-math.c (main): Likewise.
36173         * tests/test-md5.c (main): Likewise.
36174         * tests/test-memchr2.c (main): Likewise.
36175         * tests/test-memrchr.c (main): Likewise.
36176         * tests/test-mkdir.c (main): Likewise.
36177         * tests/test-mkdirat.c (main): Likewise.
36178         * tests/test-mkfifoat.c (main): Likewise.
36179         * tests/test-open.c (main): Likewise.
36180         * tests/test-openat-safer.c (main): Likewise.
36181         * tests/test-openat.c (main): Likewise.
36182         * tests/test-quotearg.c (main): Likewise.
36183         * tests/test-rawmemchr.c (main): Likewise.
36184         * tests/test-readlink.c (main): Likewise.
36185         * tests/test-remove.c (main): Likewise.
36186         * tests/test-rename.c (main): Likewise.
36187         * tests/test-renameat.c (main): Likewise.
36188         * tests/test-rmdir.c (main): Likewise.
36189         * tests/test-sha1.c (main): Likewise.
36190         * tests/test-signal.c (main): Likewise.
36191         * tests/test-sigaction.c (main): Likewise.
36192         * tests/test-stat.c (main): Likewise.
36193         * tests/test-stat-time.c (main): Likewise.
36194         * tests/test-stddef.c (main): Likewise.
36195         * tests/test-stdint.c (main): Likewise.
36196         * tests/test-stdio.c (main): Likewise.
36197         * tests/test-stdlib.c (main): Likewise.
36198         * tests/test-strchrnul.c (main): Likewise.
36199         * tests/test-strerror.c (main): Likewise.
36200         * tests/test-string.c (main): Likewise.
36201         * tests/test-strtod.c (main): Likewise.
36202         * tests/test-strverscmp.c (main): Likewise.
36203         * tests/test-symlink.c (main): Likewise.
36204         * tests/test-symlinkat.c (main): Likewise.
36205         * tests/test-sys_stat.c (main): Likewise.
36206         * tests/test-sys_time.c (main): Likewise.
36207         * tests/test-time.c (main): Likewise.
36208         * tests/test-unistd.c (main): Likewise.
36209         * tests/test-unlink.c (main): Likewise.
36210         * tests/test-unlinkat.c (main): Likewise.
36211         * tests/test-utimens.c (main): Likewise.
36212         * tests/test-utimensat.c (main): Likewise.
36213         * tests/test-version-etc.c (main): Likewise.
36214         * tests/test-wchar.c (main): Likewise.
36215         * tests/test-wctype.c (main): Likewise.
36216         * tests/test-xprintf-posix.c (main): Likewise.
36217         * tests/test-posixtm.c (main): Likewise.
36218         (STREQ): Delete unused macro.
36219         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
36220         shadowed variables.
36221         * tests/test-memchr.c (main): Likewise.
36222
36223 2009-10-21  Eric Blake  <ebb9@byu.net>
36224
36225         areadlinkat: avoid failure on older glibc
36226         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
36227         rather than mis-comparing 0 against FUNC_RESULT of char*.
36228
36229 2009-10-21  Bruno Haible  <bruno@clisp.org>
36230
36231         * modules/stpncpy (License): Relicense under LGPLv2+.
36232         Reported by David Lutterkort <lutter@redhat.com>.
36233
36234 2009-10-20  Eric Blake  <ebb9@byu.net>
36235
36236         utimensat: work around Solaris 9 bug
36237         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
36238         has trailing slash bugs.
36239         * tests/test-lutimens.h (test_lutimens): Enhance test.
36240         * tests/test-utimens.h (test_utimens): Likewise.
36241         * doc/posix-functions/utime.texi (utime): Enhance documentation.
36242         * doc/posix-functions/utimes.texi (utimes): Likewise.
36243         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36244         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
36245         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
36246         * doc/posix-functions/futimens.texi (futimens): Likewise.
36247
36248         fdutimensat: new module
36249         * modules/fdutimensat: New file.
36250         * lib/fdutimensat.c (fdutimensat): Likewise.
36251         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
36252         * MODULES.html.sh (File system functions): Mention module.
36253         * modules/fdutimensat-tests: New test.
36254         * tests/test-fdutimensat.c: Likewise.
36255
36256         doc: regenerate INSTALL
36257         * doc/INSTALL: Reflect recent autoconf update.
36258         * doc/INSTALL.ISO: Likewise.
36259         * doc/INSTALL.UTF-8: Likewise.
36260
36261 2009-10-20  Pádraig Brady  <P@draigBrady.com>
36262
36263         acl: warn if ACL support is not detected
36264         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
36265
36266 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
36267
36268         * lib/nproc.h: Add extern "C" block for C++.
36269
36270 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
36271             Bruno Haible  <bruno@clisp.org>
36272
36273         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
36274         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
36275         * doc/posix-functions/isalpha.texi: Likewise.
36276         * doc/posix-functions/isblank.texi: Likewise.
36277         * doc/posix-functions/iscntrl.texi: Likewise.
36278         * doc/posix-functions/isdigit.texi: Likewise.
36279         * doc/posix-functions/isgraph.texi: Likewise.
36280         * doc/posix-functions/islower.texi: Likewise.
36281         * doc/posix-functions/isprint.texi: Likewise.
36282         * doc/posix-functions/ispunct.texi: Likewise.
36283         * doc/posix-functions/isspace.texi: Likewise.
36284         * doc/posix-functions/isupper.texi: Likewise.
36285         * doc/posix-functions/isxdigit.texi: Likewise.
36286
36287 2009-10-18  Bruno Haible  <bruno@clisp.org>
36288
36289         Tests for module 'isblank'.
36290         * modules/isblank-tests: New file.
36291         * tests/test-isblank.c: New file.
36292
36293         New module 'isblank'.
36294         * lib/isblank.c: New file.
36295         * m4/isblank.m4: New file.
36296         * modules/isblank: New file.
36297         * doc/posix-functions/isblank.texi: Mention the new module.
36298
36299 2009-10-18  Bruno Haible  <bruno@clisp.org>
36300
36301         New module 'ctype'.
36302         * lib/ctype.in.h: New file.
36303         * m4/ctype.m4: New file.
36304         * modules/ctype: New file.
36305         * doc/posix-headers/ctype.texi: Mention the new module.
36306
36307 2009-10-18  Jim Meyering  <meyering@redhat.com>
36308
36309         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
36310         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
36311         right after its initialization, rather than farther down.
36312         Keeping these in close proximity makes it easier to ensure
36313         that each such variable is initialized.  E.g.,
36314
36315             LIB_CLOCK_GETTIME=
36316             AC_SUBST([LIB_CLOCK_GETTIME])
36317
36318         This change also increments these serial numbers.
36319         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
36320         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
36321         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36322
36323 2009-10-18  Bruno Haible  <bruno@clisp.org>
36324
36325         Don't let environment variables perturb build.
36326         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
36327         (gl_PREREQ_GETHRXTIME): ... not here.
36328
36329 2009-10-18  Bruno Haible  <bruno@clisp.org>
36330
36331         Avoid symlink attack in localcharset module.
36332         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
36333         (O_NOFOLLOW): Define fallback.
36334         (get_charset_aliases): Don't open the file if it is a symbolic link.
36335         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
36336         gl_FCNTL_H.
36337         (gl_FCNTL_H): Require it.
36338         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
36339         * modules/localcharset (Files): Add m4/fcntl_h.m4.
36340         Reported by Fergal Glynn <fglynn@veracode.com>.
36341
36342 2009-10-18  Bruno Haible  <bruno@clisp.org>
36343
36344         Implement nproc for mingw.
36345         * lib/nproc.c: Include <windows.h>
36346         (num_processors): On native Windows platforms, try GetSystemInfo.
36347
36348 2009-10-18  Bruno Haible  <bruno@clisp.org>
36349
36350         Implement nproc for IRIX.
36351         * lib/nproc.c: Include <sys/sysmp.h>.
36352         (num_processors): On IRIX systems, try sysmp.
36353         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
36354
36355 2009-10-18  Bruno Haible  <bruno@clisp.org>
36356
36357         Implement nproc for HP-UX.
36358         * lib/nproc.c: Include <sys/pstat.h>
36359         (num_processors): On HP-UX systems, try pstat_getdynamic.
36360         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
36361         pstat_getdynamic.
36362
36363 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
36364             Bruno Haible  <bruno@clisp.org>
36365
36366         Implement nproc for NetBSD, OpenBSD.
36367         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
36368         (ARRAY_SIZE): New macro.
36369         (num_processors): On BSD systems, try sysctl of HW_NCPU.
36370         * m4/nproc.m4: New file.
36371         * modules/nproc (Files): Add m4/nproc.m4.
36372         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
36373         (Makefile.am): Instead, augment lib_SOURCES.
36374
36375 2009-10-18  Bruno Haible  <bruno@clisp.org>
36376
36377         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
36378         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
36379         sys/param.h.
36380
36381 2009-10-16  Eric Blake  <ebb9@byu.net>
36382
36383         utimensat: new module
36384         * modules/utimensat: New file.
36385         * lib/utimensat.c (utimensat): Likewise.
36386         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36387         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
36388         so we can work around Linux bugs.
36389         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36390         * modules/sys_stat (Makefile.am): Substitute them.
36391         * lib/sys_stat.in.h (utimensat): Declare it.
36392         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36393         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36394         * modules/utimensat-tests: New test.
36395         * tests/test-utimensat.c: Likewise.
36396
36397         utimens: let lutimens work on non-symlinks
36398         * lib/utimens.c (lutimens): Fall back to utimens rather than
36399         failing with ENOSYS, when file is not a symlink.
36400         (utimens): Reduce redirection.
36401         * tests/test-lutimens.h (test_lutimens): Update test to cover
36402         non-symlinks.
36403         * tests/test-utimens.h (test_utimens): Update test to cover
36404         symlinks.
36405         * tests/test-utimens.c (main): Update caller.
36406
36407         utimens: cache whether utimensat syscall works
36408         * lib/utimens.c (utimensat_works_really): New cache variable.
36409         (fdutimens, lutimens): Use it to avoid failing syscall.
36410
36411         test-stat-time, test-utimens: improve portability
36412         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
36413         ext4 on alpha, and for cygwin.
36414         * tests/test-utimens-common.h: New file.
36415         (nap): Factor delays into single function.
36416         * tests/test-lutimens.h (test_lutimens): Use new header.
36417         * tests/test-futimens.h (test_futimens): Likewise.
36418         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
36419         timestamps to occur from same machine, as was done previously for
36420         test_utimens.
36421         * modules/utimens-tests (Files): Ship new file.
36422         * modules/futimens-tests (Files): Likewise.
36423         Reported in part by Jim Meyering.
36424
36425         sys_stat: sort replacement declarations
36426         * lib/sys_stat.in.h: Sort declarations.
36427         * lib/futimens.c (futimens): Fix typo.
36428
36429 2009-10-15  Jim Meyering  <meyering@redhat.com>
36430
36431         don't let environment settings perturb build
36432         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
36433         could cause a configure-time and/or build-time malfunction.
36434         Typically, a configure-time function-in-library test is performed
36435         via code like this:
36436
36437           LIB_VAR=
36438           AC_SUBST([LIB_VAR])
36439           prefix_saved_LIBS=$LIBS
36440             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
36441                        [test "$ac_cv_search_FUNC" = "none required" ||
36442                         LIB_VAR=$ac_cv_search_FUNC])
36443           LIBS=$prefix_saved_LIBS
36444
36445         However, in each of the files affected by this change, the LIB_VAR=
36446         initialization was omitted.  Thus, when set in the environment, its
36447         value would propagate into generated Makefiles when FUNC is not found
36448         in LIB_NAME.
36449         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
36450         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
36451         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36452
36453 2009-10-14  Eric Blake  <ebb9@byu.net>
36454
36455         fchdir: avoid infinite recursion in mingw
36456         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
36457         recursing.
36458
36459         test-stat-time: port to mingw
36460         * tests/test-stat-time.c (force_unlink): Return a value.
36461         (test_ctime) [W32]: Fix compilation error.
36462         (nap): Don't call usleep with too large an argument.  Use
36463         force_unlink.
36464         * doc/pastposix-functions/usleep.texi (usleep): Document the
36465         portability issue.
36466
36467 2009-10-13  Jim Meyering  <meyering@redhat.com>
36468
36469         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
36470         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
36471         * modules/pipe-filter-ii: Likewise.
36472         * modules/sys_socket-tests: Likewise.
36473         * modules/tsearch-tests: Likewise.
36474         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
36475         (check): Depend on it.
36476
36477 2009-10-12  Eric Blake  <ebb9@byu.net>
36478
36479         utimens-tests: port to NFS file systems
36480         * tests/test-utimens.h (test_utimens): Refactor utimecmp
36481         comparisons to avoid spurious failures from timestamp drift
36482         between NFS machines.
36483
36484 2009-10-12  Eric Blake  <ebb9@byu.net>
36485
36486         stat-time-tests: minor cleanups
36487         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
36488         * tests/test-stat-time.c (nap): Separate assignment from call.
36489         Suggested by Paolo Bonzini and Bruno Haible.
36490
36491         sys_stat: guarantee struct timespec
36492         * lib/sys_stat.in.h (includes): Always include <time.h>
36493         * modules/sys_stat (Depends-on): Add time.
36494         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
36495         mode_t permission values.
36496         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
36497         get at subsecond timestamps.
36498
36499 2009-10-10  Eric Blake  <ebb9@byu.net>
36500
36501         futimens: new module
36502         * modules/futimens: New file.
36503         * lib/futimens.c (futimens): Likewise.
36504         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
36505         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
36506         we can work around Linux bugs.
36507         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36508         * modules/sys_stat (Makefile.am): Substitute them.
36509         * lib/sys_stat.in.h (futimens): Declare it.
36510         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36511         * doc/posix-functions/futimens.texi (futimens): Likewise.
36512         * modules/futimens-tests: New test.
36513         * tests/test-futimens.c: Likewise.
36514
36515         utimens: introduce fdutimens
36516         * lib/utimens.h (fdutimens): New prototype.
36517         * lib/utimens.c (gl_futimens): Move guts...
36518         (fdutimens): ...to new interface.
36519         * tests/test-utimens.c (do_fdutimens): Use it.
36520
36521         utimens: add UTIME_NOW and UTIME_OMIT support
36522         * lib/utimens.c (validate_timespec, update_timespec): New helper
36523         functions.
36524         (gl_futimens, lutimens): Use them.
36525         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
36526         stdbool, sys_stat.
36527         (Link): Mention resulting library dependency.
36528         * modules/utimecmp (Link): Likewise.
36529         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
36530         (Makefile.am): Pick up library dependency.
36531         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
36532         definition.
36533         * tests/test-sys_stat.c: Test the definitions.
36534         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
36535         * NEWS: Document library dependency.
36536
36537         utimecmp: support symlink timestamps
36538         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
36539         hashing when possible.  Use pathconf when available.
36540         (SYSCALL_RESOLUTION): Recognize tighter resolution.
36541         * modules/utimecmp (Depends-on): Add lstat.
36542
36543         utimens: add lutimens interface
36544         * lib/utimens.c (lutimens): New function.
36545         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
36546         * lib/utimens.h (lutimens): Declare new interface.
36547         * tests/test-utimens.c (main): Enhance test.
36548         * tests/test-lutimens.h (test_lutimens): New file.
36549         * modules/utimens-tests (Files): Distribute it.
36550         (Depends-on): Add symlink.
36551         (configure.ac): Check for usleep.
36552
36553         utimens: validate futimens usage
36554         * lib/utimens.c (gl_futimens): Require valid fd up front, using
36555         fewer syscalls on failure later on.  Avoid compiler warning on
36556         mingw.
36557         * modules/utimens (Depends-on): Add dup2.
36558
36559         utimens: add test
36560         * modules/utimens-tests: New test.
36561         * tests/test-utimens.h: New file.
36562         * tests/test-futimens.h: Likewise.
36563         * tests/test-utimens.c: Likewise.
36564
36565         doc: mention timestamp portability issues
36566         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
36567         instead.
36568         * doc/posix-functions/utime.texi (utime): Likewise.
36569         * doc/posix-functions/utimes.texi (utimes): Likewise.
36570         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
36571         instead.
36572         * doc/posix-functions/futimens.texi (futimens): Mention utimens
36573         module.
36574         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36575         Mention weakness with symlink timestamps.
36576         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
36577         to utimensat/futimens instead.
36578         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
36579
36580         test-dup2: enhance test
36581         * tests/test-dup2.c (main): Also check AT_FDCWD.
36582
36583         test-stat-time: avoid more spurious failures
36584         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
36585         xfs; and avoid race if the two timestamps cross quantization edge.
36586
36587         relocatable: prefer 'file system' over 'filesystem'
36588         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
36589         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
36590         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
36591         * doc/relocatable.texi (Enabling Relocatability): Likewise.
36592         * lib/relocatable.c (compute_curr_prefix): Likewise.
36593
36594 2009-10-10  Jim Meyering  <meyering@redhat.com>
36595
36596         stat-time-tests: check for the usleep function
36597         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
36598
36599 2009-10-10  Bruno Haible  <bruno@clisp.org>
36600
36601         * modules/xnanosleep: Put the Link section after the Include section.
36602
36603 2009-10-09  Eric Blake  <ebb9@byu.net>
36604
36605         dup2: work around FreeBSD 6.1 bug
36606         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
36607         * doc/posix-functions/dup2.texi (dup2): Document it.
36608         Reported by Nelson H. F. Beebe and Jim Meyering.
36609
36610         test-stat-time: port to buggy NFS clients
36611         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
36612         (test_ctime): Also skip test if mtime and ctime are skewed.
36613
36614         maint: prefer 'file system' over 'filesystem'
36615         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
36616         * doc/posix-functions/lstat.texi (lstat): Likewise.
36617         * lib/file-has-acl.c (file_has_acl): Likewise.
36618         * lib/fwriteerror.c [TEST]: Likewise.
36619         * tests/test-areadlink.h (test_areadlink): Likewise.
36620         * tests/test-areadlinkat-with-size.c (main): Likewise.
36621         * tests/test-areadlinkat.c (main): Likewise.
36622         * tests/test-canonicalize-lgpl.c (main): Likewise.
36623         * tests/test-canonicalize.c (main): Likewise.
36624         * tests/test-fstatat.c (main): Likewise.
36625         * tests/test-linkat.c (main): Likewise.
36626         * tests/test-lstat.h (test_lstat_func): Likewise.
36627         * tests/test-mkdir.h (test_mkdir): Likewise.
36628         * tests/test-readlink.h (test_readlink): Likewise.
36629         * tests/test-remove.c (main): Likewise.
36630         * tests/test-rename.h (test_rename): Likewise.
36631         * tests/test-renameat.c (main): Likewise.
36632         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36633         * tests/test-symlink.h (test_symlink): Likewise.
36634         * tests/test-symlinkat.c (main): Likewise.
36635         * tests/test-unlink.h (test_unlink_func): Likewise.
36636         * tests/test-unlinkat.c (main): Likewise.
36637
36638         maint: make realtime library usage explicit
36639         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
36640         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
36641         * modules/settime (Link): Likewise.
36642         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
36643
36644         test-stat-time: speed up execution
36645         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
36646         warning on mingw.
36647         (nap): New helper function.
36648         (prepare_test): Use it to reduce sleep time.
36649         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
36650         execution.
36651         * modules/stat-time-tests (configure.ac): Check for usleep.
36652
36653 2009-10-09  Jim Meyering  <meyering@redhat.com>
36654
36655         selinux-h: always use getfilecon wrappers
36656         * lib/getfilecon.c: New file.
36657         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
36658         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
36659         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
36660         (fgetfilecon): Provide a stub.
36661         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
36662         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
36663         file unconditionally.
36664         When <selinux/selinux.h> is found, arrange to use wrappers.
36665         * modules/selinux-h (Files): Add getfilecon.c.
36666         (Makefile.am): Substitute include-next-related bits
36667         into the now-always-generated selinux/selinux.h file.
36668         * doc/glibc-functions/lgetfilecon.texi: New file.
36669         * doc/glibc-functions/fgetfilecon.texi: New file.
36670         * doc/glibc-functions/getfilecon.texi: New file.
36671         * doc/glibc-functions/getfilecon-desc.texi: New file.
36672         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
36673         which to pull in the new files.
36674         * MODULES.html.sh (Misc): Add selinux-h.
36675
36676 2009-10-08  Jim Meyering  <meyering@redhat.com>
36677
36678         unistd: fix comment typo
36679         * lib/unistd.in.h (euidaccess): Fix a comment typo.
36680
36681 2009-10-08  Eric Blake  <ebb9@byu.net>
36682
36683         areadlink: use SIZE_MAX consistently
36684         * modules/areadlink (Depends-on): Add stdint.
36685         * modules/areadlink-with-size (Depends-on): Likewise.
36686         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
36687         gives NULL; drop sys/types, since unistd gives size_t; and add
36688         stdint for SIZE_MAX.
36689         (SIZE_MAX): Rely on headers.
36690         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
36691         and add stdint.
36692         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
36693         (SIZE_MAX): Likewise.
36694         (INITIAL_BUF_SIZE): Turn into enum.
36695         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
36696
36697 2009-10-08  Jim Meyering  <meyering@redhat.com>
36698
36699         areadlinkat: avoid compilation failure
36700         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
36701         Fix typo in comment.
36702
36703 2009-10-07  Eric Blake  <ebb9@byu.net>
36704
36705         areadlinkat-with-size: new module
36706         * modules/areadlinkat-with-size: New module.
36707         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
36708         * lib/areadlink.h (areadlinkat): Declare it.
36709         * MODULES.html.sh (File system functions): Mention it.
36710         * modules/areadlinkat-with-size-tests: New test.
36711         * tests/test-areadlinkat-with-size.c: New file.
36712
36713         xreadlinkat: new module
36714         * modules/xreadlinkat: New module.
36715         * lib/xreadlinkat.c (xreadlinkat): New file.
36716         * lib/xreadlink.h (xreadlinkat): Declare it.
36717         * MODULES.html.sh (File system functions): Mention it.
36718
36719         areadlinkat: new module
36720         * lib/at-func.c (FUNC_FAIL): New define.
36721         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
36722         * modules/areadlinkat: New module.
36723         * lib/linkat.c (areadlinkat): Move...
36724         * lib/areadlinkat.c (areadlinkat): ...to new file.
36725         * lib/areadlink.h (areadlinkat): Declare it.
36726         * modules/linkat (Depends-on): Add areadlinkat.
36727         * MODULES.html.sh (File system functions): Mention it.
36728         * modules/areadlinkat-tests: New test.
36729         * tests/test-areadlinkat.c: New file.
36730
36731         areadlink, areadlink-with-size: add tests
36732         * modules/areadlink-tests: New test.
36733         * modules/areadlink-with-size-tests: Likewise.
36734         * tests/test-areadlink.h: New file.
36735         * tests/test-areadlink.c: Likewise.
36736         * tests/test-areadlink-with-size.c: Likewise.
36737
36738         maint: minor cleanups
36739         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
36740         _UNUSED_PARAMETER_ instead.
36741         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
36742         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
36743         * modules/linkat-tests (Files): Distribute test-link.h.
36744
36745         openat, utimens: whitespace cleanup
36746         * lib/openat.c: Prefer space throughout, rather than mix of 8
36747         spaces vs. tabs.
36748         * lib/at-func.c: Likewise.
36749         * lib/utimens.c: Likewise.
36750
36751         openat: avoid using wrong fd
36752         * lib/openat.c (openat_permissive): Reject user's fd if saving the
36753         working directory chooses same fd.
36754         * lib/at-func.c (AT_FUNC_NAME): Likewise.
36755
36756         mkdir, mkdirat: fix cygwin 1.5.x bug
36757         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
36758         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
36759         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
36760         bug.
36761         (gl_PREREQ_MKDIR): Delete unused macro.
36762         * modules/mkdir (Files): Track file rename.
36763         (configure.ac): Update macro name.
36764         * modules/openat (Depends-on): Add mkdir.
36765         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
36766
36767         mkdir, mkdirat: add tests
36768         * modules/mkdir-tests: New test.
36769         * tests/test-mkdir.h: New file.
36770         * tests/test-mkdir.c: Likewise.
36771         * tests/test-mkdirat.c: Likewise.
36772         * modules/openat-tests (Files): Add new files.
36773         (Makefile.am): Run new test.
36774
36775 2009-10-06  Eric Blake  <ebb9@byu.net>
36776
36777         doc: tweak *at function documentation
36778         * doc/posix-functions/faccessat.texi (faccessat): Mention
36779         known issue with replacement.
36780         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
36781         * doc/posix-functions/linkat.texi (linkat): Likewise.
36782         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36783         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36784         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36785         * doc/posix-functions/renameat.texi (renameat): Likewise.
36786         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36787
36788         openat: fix GNU/Hurd bug in unlinkat
36789         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
36790         broken.
36791         * doc/posix-functions/unlink.texi (unlink): Document this.
36792         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
36793
36794         fdopendir: fix GNU/Hurd bug
36795         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
36796         allowing non-directory fds.
36797         * lib/fdopendir.c (rpl_fdopendir): Work around it.
36798         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
36799         * modules/dirent (Makefile.am): Substitute it.
36800         * lib/dirent.in.h (fdopendir): Declare replacement.
36801         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
36802         * tests/test-fdopendir.c (main): Test something other than
36803         /dev/null, since on Hurd that behaves like a directory.
36804
36805         test-symlink: port to GNU/Hurd
36806         * tests/test-symlink.h (test_symlink): Relax expected errno.
36807
36808         doc: tweak more cygwin information
36809         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
36810         now compatible with glibc.
36811         * doc/posix-functions/getopt.texi (getopt): Likewise.
36812
36813         getopt-gnu: add another test
36814         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
36815         guarantee behavior relied on by m4.
36816         * tests/test-getopt.c (main): Use it.
36817         * modules/getopt-posix-tests (Depends-on): Add setenv.
36818         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
36819
36820         getopt: fix compilation on darwin
36821         * lib/getopt.in.h (includes): Leave breadcrumbs during system
36822         include.
36823         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
36824         Reported by Ludovic Courtès.
36825
36826 2009-10-06  Bruno Haible  <bruno@clisp.org>
36827
36828         * modules/size_max (Description): Discourage its use.
36829         Reported by Simon Josefsson.
36830
36831 2009-10-06  Jim Meyering  <meyering@redhat.com>
36832
36833         linkat: avoid compilation failure
36834         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
36835
36836 2009-10-05  Eric Blake  <ebb9@byu.net>
36837
36838         linkat: support Linux 2.6.17
36839         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
36840         linkat on Linux, but allow cache variable override.
36841         * lib/linkat.c (rpl_linkat): Define override.
36842         * modules/linkat (Depends-on): Add symlinkat.
36843         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
36844         * modules/unistd (Makefile.am): Substitute it.
36845         * lib/unistd.in.h (linkat): Declare replacement.
36846         Reported by Pádraig Brady.
36847
36848         quotearg: port test to systems with C.UTF-8 locale
36849         * tests/test-quotearg.c (struct result_strings): Add another
36850         member, differentiating between C.ASCII and C.UTF-8 handling.
36851         (compare_strings): Add parameter.
36852         (main): Adjust all callers.
36853
36854         getopt: avoid clash with FreeBSD _getopt_internal
36855         * lib/getopt.in.h (_getopt_internal): Override the name.
36856         * lib/getopt_int.h (includes): Pick up any overrides.
36857         Reported by Reuben Thomas.
36858
36859         hash: allow C89 compilation
36860         * lib/hash.c (check_tuning): Move declaration before statement.
36861         Reported by Reuben Thomas.
36862
36863 2009-10-05  Karl Berry  <karl@gnu.org>
36864
36865         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
36866
36867 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
36868             Bruno Haible  <bruno@clisp.org>
36869
36870         * lib/uname.c (uname): Use a table-driven algorithm to compute
36871         Windows NT versions.
36872
36873 2009-10-04  Bruno Haible  <bruno@clisp.org>
36874
36875         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
36876         program_invocation_short_name.
36877         * modules/progname (configure.ac): Test for presence of
36878         program_invocation_short_name.
36879         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
36880
36881 2009-10-04  Bruno Haible  <bruno@clisp.org>
36882
36883         * lib/progname.c (set_program_name): Fix comment.
36884         Reported by Jim Meyering.
36885
36886 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
36887             Bruno Haible  <bruno@clisp.org>
36888
36889         * lib/uname.c: Include <string.h>.
36890         (uname): Do only one call to GetVersionEx in the common case.
36891
36892 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
36893             Bruno Haible  <bruno@clisp.org>
36894
36895         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
36896         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
36897         (uname): Add support for Windows CE and various non-x86 CPU types.
36898
36899 2009-10-03  Bruno Haible  <bruno@clisp.org>
36900
36901         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
36902         invocation to tests/configure.ac.
36903         Reported by Ian Beckwith <ianb@erislabs.net>.
36904
36905 2009-10-02  Eric Blake  <ebb9@byu.net>
36906
36907         fchdir: avoid compiler warning
36908         * lib/fchdir.c (canonicalize_file_name)
36909         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
36910
36911         test-open: support mingw errno values
36912         * tests/test-open.h (test_open): Relax test.
36913         * tests/test-fopen.h (test_fopen): Likewise.
36914         * tests/test-openat-safer.c (main): Likewise.
36915
36916         open: fix opening directory on mingw
36917         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
36918
36919         test-open: on GNU/Hurd, /dev/null is a directory
36920         * tests/test-fopen.h (main): Rename...
36921         (test_fopen): ...to this.  Use a guaranteed non-directory when
36922         confirming open behavior on trailing slash.
36923         * tests/test-openat-safer.c (main): Likewise.
36924         * tests/test-open.h (main): Likewise....
36925         (test_open): ...to this.
36926         * tests/test-fopen.c (main): Adjust caller.
36927         * tests/test-fopen-safer.c (main): Likewise.
36928         * tests/test-open.c (main): Likewise.
36929         * tests/test-fcntl-safer.c (main): Likewise.
36930         Reported by Samuel Thibault.
36931
36932         rename, fchdir: don't ignore chdir failure
36933         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
36934         * lib/rename.c (rpl_rename) [W32]: Likewise.
36935         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
36936         an empty destination directory if source cannot be renamed,
36937         although there is still possibility for failure.
36938         * doc/posix-functions/rename.texi (rename): Document the race.
36939         Reported by Jim Meyering.
36940
36941         maint: cleanup whitespace in recent commits
36942         * lib/rename.c (rpl_rename): Remove tabs.
36943         * tests/test-link.h (test_link): Likewise.
36944         * lib/fchdir.c (get_name): Likewise.
36945         Reported by Jim Meyering.
36946
36947 2009-10-02  Ben Pfaff  <blp@gnu.org>
36948
36949         relocatable-prog-wrapper: Add missing dependency on
36950         double-slash-root.
36951         * modules/relocatable-prog-wrapper: Add dependency.
36952         Reported by Ian Beckwith <ianb@erislabs.net>.
36953
36954 2009-10-02  Eric Blake  <ebb9@byu.net>
36955
36956         renameat: fix Solaris bugs
36957         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
36958         needed fixing.
36959         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
36960         * modules/stdio (Makefile.am): Substitute it.
36961         * lib/stdio.in.h (renameat): Declare replacement.
36962         * lib/renameat.c (rpl_renameat): Implement fix.
36963
36964         renameat: new module
36965         * modules/renameat: New file.
36966         * lib/renameat.c (renameat): Likewise.
36967         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
36968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36969         * modules/stdio (Makefile.am): Substitute them.
36970         * lib/stdio.in.h (renameat): Declare it.
36971         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36972         * doc/posix-functions/renameat.texi (renameat): Likewise.
36973         * modules/renameat-tests: New test.
36974         * tests/test-renameat.c: Likewise.
36975
36976         rename: fix mingw bugs
36977         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
36978         directory overwrite bugs.
36979
36980         rename: fix another cygwin 1.5 bug
36981         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
36982         checks.
36983         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
36984         unnecessary cygwin workarounds.  Also work around bug with moving
36985         full directory onto an empty one.
36986         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
36987
36988         rename-dest-slash: merge into rename module
36989         * modules/rename-dest-slash (Status): Mark obsolete.
36990         (Depends-on): Add rename.
36991         (Files): Let rename do it all.
36992         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
36993         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
36994         * m4/rename-dest-slash.m4: ...so this file can be deleted.
36995         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
36996         * lib/rename.c (rpl_rename): Update comments.
36997
36998         rename: fix cygwin 1.5.x bugs
36999         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
37000         * lib/rename.c (rpl_rename): Work around them.
37001         * modules/rename (Depends-on): Add same-inode.
37002
37003         rename: fix Solaris 10 bug
37004         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
37005         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
37006         was the only bug.
37007
37008         rename: fix Solaris 9 bug
37009         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
37010         on non-directory.  Avoid calling exit.
37011         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
37012         strdup.
37013         * modules/rename-tests (Depends-on): Drop lstat.
37014         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
37015         (gl_PREREQ_RENAME): Delete unused macro.
37016
37017         rename-dest-slash: fix NetBSD bug
37018         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
37019         links.
37020         * modules/rename-dest-slash (Depends-on): Add same-inode.
37021
37022         rename-tests: new test, exposes several platform bugs
37023         * modules/rename-tests: New file.
37024         * tests/test-rename.h: Likewise.
37025         * tests/test-rename.c: Likewise.
37026         * doc/posix-functions/rename.texi (rename): Improve documentation,
37027         including bugs that will eventually be fixed in gnulib.
37028
37029 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
37030
37031         * lib/uname.c: Include <stdlib.h>
37032         (uname): Assume version info is available.
37033
37034 2009-10-02  Jim Meyering  <meyering@redhat.com>
37035
37036         gnu-web-doc-update: correct --help output
37037         * build-aux/gnu-web-doc-update: Make --help output relevant.
37038
37039         gnu-web-doc-update: add standard options
37040         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
37041
37042         gnu-web-doc-update: New module.
37043         Use this script to automatically update the on-line web documentation
37044         for your GNU project at http://www.gnu.org/software/$pkg/manual/
37045         * modules/gnu-web-doc-update: New file, from coreutils.
37046         * build-aux/gnu-web-doc-update: New script.
37047
37048 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
37049
37050         link: LoadLibrary is not needed.
37051         * lib/link.c: Use GetModuleHandle.
37052
37053 2009-10-01  Eric Blake  <ebb9@byu.net>
37054
37055         getopt: bump serial number
37056         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
37057         change.
37058
37059         tests: tighten link, rmdir, and remove tests
37060         * tests/test-link.h (includes): No need to use <config.h> here.
37061         Clean up if directory hard link was created, otherwise test for
37062         trailing '.'.
37063         * tests/test-linkat.c (main): Simplify.
37064         * tests/test-remove.c (main): Enhance test for trailing '.'.
37065         * tests/test-rmdir.h (test_rmdir_func): Likewise.
37066
37067 2009-10-01  Jim Meyering  <meyering@redhat.com>
37068
37069         maint.mk: requiring "make major" was annoying, for a "minor" release.
37070         What is intended is "stable", to contrast with alpha and beta,
37071         so require "make stable", not "make major".
37072         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
37073         (get_tool_versions): Likewise.
37074         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
37075
37076 2009-09-30  Ben Pfaff  <blp@gnu.org>
37077
37078         Fix broken build of replacement for Windows tmpfile().
37079         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
37080         flags argument added along with the 'mkostemp' module.
37081
37082 2009-09-28  Bruno Haible  <bruno@clisp.org>
37083
37084         Avoid identifier clash with POSIX function 'remove' defined as a macro.
37085         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
37086         to 'remove_elt'.
37087         (gl_list_remove): Update.
37088         * lib/gl_list.c (gl_list_remove): Update.
37089         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
37090         to 'remove_elt'.
37091         (gl_oset_remove): Update.
37092         * lib/gl_list.c (gl_oset_remove): Update.
37093         Reported by Eric Blake.
37094
37095 2009-09-28  Eric Blake  <ebb9@byu.net>
37096
37097         doc: mention yet more cygwin 1.7 status
37098         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
37099         cygwin.
37100         * doc/glibc-functions/execvpe.texi (execvpe): New file.
37101         * doc/gnulib.texi (Glibc unistd.h): Mention it.
37102
37103         argp: fix test failure
37104         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
37105         that are not upper-case.  Pass correct range to tolower.
37106
37107 2009-09-27  Jim Meyering  <meyering@redhat.com>
37108
37109         test-yesno: work around sparc-dash here-document infelicity
37110         Without this change, the literal \177 byte in a here document
37111         would make dash 0.5.5.1-3 access uninitialized memory.
37112         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
37113         Instead, use a marker, "@", and filter through tr to create the desired
37114         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
37115
37116 2009-09-27  Bruno Haible  <bruno@clisp.org>
37117
37118         Disable untested support for new flavours of ACLs on AIX.
37119         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
37120         progress.
37121         * lib/set-mode-acl.c (qset_acl): Likewise.
37122
37123 2008-12-07  Bruno Haible  <bruno@clisp.org>
37124
37125         Add support for new flavours of ACLs on AIX. (Untested.)
37126         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
37127         (file_has_acl): Add support for newer AIX.
37128         * lib/set-mode-acl.c (qset_acl): Likewise.
37129         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
37130         Rainer Tammer <tammer@tammer.net>.
37131
37132 2009-09-26  Eric Blake  <ebb9@byu.net>
37133
37134         argp: fix compilation of getopt
37135         * lib/getopt.in.h (includes): Use different guard than glibc.
37136         Reported by Sergey Poznyakoff.
37137
37138         doc: mention more cygwin 1.7 status
37139         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
37140         bug.
37141         * doc/posix-functions/execl.texi (execl): Likewise.
37142         * doc/posix-functions/execle.texi (execle): Likewise.
37143         * doc/posix-functions/execlp.texi (execlp): Likewise.
37144         * doc/posix-functions/execv.texi (execv): Likewise.
37145         * doc/posix-functions/execve.texi (execve): Likewise.
37146         * doc/posix-functions/execvp.texi (execvp): Likewise.
37147         * doc/glibc-functions/canonicalize_file_name.texi
37148         (canonicalize_file_name): Cygwin 1.7 now provides this.
37149         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
37150         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
37151         on AT_SYMLINK_NOFOLLOW.
37152
37153 2009-09-24  Eric Blake  <ebb9@byu.net>
37154
37155         test-linkat: make test more robust
37156         * tests/test-linkat.c (main): Avoid collision with EEXIST.
37157
37158         getopt: fix inclusion guards for cygwin
37159         * modules/getopt-posix (Depends-on): Add include-next.
37160         (Makefile.am): Substitute more items in replacement header.
37161         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
37162         <getopt.h>.
37163         * lib/getopt.in.h (includes): Use split inclusion guard, and
37164         prefer <getopt.h> over include <unistd.h> when one is present.
37165         (option): Also override name of 'struct option'.
37166
37167         same-inode: revert prior change; it is not yet ready
37168         * NEWS: Undo mention of this change.
37169         * lib/same-inode.h (same-inode.h): Undo tri-state change.
37170         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
37171         * lib/cycle-check.c (cycle_check): Likewise.
37172         * lib/same.c (same_name): Likewise.
37173         * lib/at-func2.c (at_func2): Likewise.
37174
37175 2009-09-23  Eric Blake  <ebb9@byu.net>
37176
37177         linkat: new module
37178         * modules/linkat: New file.
37179         * lib/at-func2.c (at_func2): Likewise.
37180         * lib/linkat.c (linkat): Likewise.
37181         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
37182         * lib/openat-priv.h (at_func2): Add declaration.
37183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37184         * modules/unistd (Makefile.am): Substitute them.
37185         * lib/unistd.in.h (linkat): Declare it.
37186         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37187         * doc/posix-functions/linkat.texi (linkat): Likewise.
37188         * doc/posix-functions/link.texi (link): Tweak wording.
37189         * tests/test-link.c (main): Move guts...
37190         * tests/test-link.h (test_link): ...into new file.
37191         * modules/linkat-tests: New test.
37192         * tests/test-linkat.c: Likewise.
37193         * modules/link-tests (Files): Ship new file.
37194         (Depends-on): Add stdbool.
37195
37196         dirname: add library-safe mdir_name
37197         * lib/dirname.h (mdir_name): New prototype.
37198         * lib/dirname.c (dir_name): Move guts...
37199         (mdir_name): ...to new function that avoids xalloc_die.
37200
37201         fchdir: another mingw fix
37202         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
37203         * lib/fchdir.c (get_name): New helper method; skips canonicalize
37204         on mingw (where it has not yet been ported), and make it optional
37205         elsewhere.
37206         (_gl_register_fd): Use it.
37207
37208         same-inode: make SAME_INODE tri-state, to port to mingw
37209         * NEWS: Mention this change.
37210         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
37211         st_ino always being 0.
37212         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
37213         * lib/cycle-check.c (cycle_check): Likewise.
37214         * lib/same.c (same_name): Likewise.
37215
37216         lstat: avoid mingw compilation error
37217         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
37218         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
37219         lstat ourselves.
37220         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
37221         was adequate.
37222         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
37223         the checks for lstat.
37224         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
37225
37226         link: fix test failure on Solaris 9
37227         * lib/link.c (rpl_link): Don't assume link will catch bogus
37228         trailing slash on source.
37229
37230         test-symlinkat: enhance test
37231         * tests/test-readlink.c (main): Move guts...
37232         * tests/test-readlink.h (test_readlink): ...into new file.
37233         * tests/test-symlink.c (main): Move guts...
37234         * tests/test-symlink.h (test_symlink): ...into new file.
37235         * tests/test-symlinkat.c (main): Use new files for further
37236         coverage.
37237         (do_symlink, do_readlink): New helper functions.
37238         * modules/symlink-tests (Files): Ship new file.
37239         (Depends-on): Add stdbool.
37240         * modules/readlink-tests (Files): Ship new file.
37241         (Depends-on): Add stdbool.
37242         * modules/symlinkat-tests (Files): Use new files.
37243
37244 2009-09-23  Eric Blake  <ebb9@byu.net>
37245
37246         readlink: document portability issue with symlink length
37247         * doc/posix-functions/lstat.texi (lstat): Mention that some file
37248         systems have bogus st_size on symlinks, and mention the
37249         areadlink-with-size module.
37250         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
37251         * doc/posix-functions/readlink.texi (readlink): Mention the
37252         areadlink module, and ERANGE failure.
37253         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37254         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
37255
37256         readlink: fix Solaris 9 bug with trailing slash
37257         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
37258         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
37259         * doc/posix-functions/readlink.texi (readlink): Document this.
37260         * modules/readlink-tests: New test.
37261         * tests/test-readlink.c: Likewise.
37262
37263         readlink: fix cygwin 1.5.x bug with return type
37264         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
37265         * lib/unistd.in.h (readlink): Use ssize_t.
37266         * lib/readlink.c (readlink): Likewise.
37267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37268         * modules/unistd (Makefile.am): Substitute it.
37269         * lib/unistd.in.h (readlink): Declare replacement.
37270         * doc/posix-functions/readlink.texi (readlink): Document this.
37271
37272         symlink: use throughout gnulib
37273         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
37274         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
37275         symlink is not used.
37276         * modules/symlinkat (Depends-on): Add symlink.
37277         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37278         * modules/canonicalize-tests (Depends-on): Likewise.
37279         * modules/lstat-tests (Depends-on): Likewise.
37280         * modules/openat-tests (Depends-on): Likewise.
37281         * modules/remove-tests (Depends-on): Likewise.
37282         * modules/rmdir-tests (Depends-on): Likewise.
37283         * modules/unlink-tests (Depends-on): Likewise.
37284         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
37285         * tests/test-canonicalize.c (symlink): Likewise.
37286         * tests/test-fstatat.c (symlink): Likewise.
37287         * tests/test-lstat.c (symlink): Likewise.
37288         * tests/test-remove.c (symlink): Likewise.
37289         * tests/test-rmdir.c (symlink): Likewise.
37290         * tests/test-unlink.c (symlink): Likewise.
37291         * tests/test-unlinkat.c (symlink): Likewise.
37292
37293         symlink: new module, for Solaris 9 bug
37294         * modules/symlink: New file.
37295         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
37296         * lib/symlink.c: Likewise.
37297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37298         * modules/unistd (Makefile.am): Substitute them.
37299         * lib/unistd.in.h (symlink): Declare replacement.
37300         * MODULES.html.sh (File system functions): Mention it.
37301         * doc/posix-functions/symlink.texi (symlink): Likewise.
37302         * modules/symlink-tests: New test.
37303         * tests/test-symlink.c: Likewise.
37304
37305 2009-09-23  Bruno Haible  <bruno@clisp.org>
37306
37307         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
37308         when needed.
37309         Test case: gnulib-tool --import --with-tests atexit inttypes.
37310         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
37311
37312 2009-09-23  Bruno Haible  <bruno@clisp.org>
37313
37314         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
37315         subcommand, not in a subshell.
37316
37317 2009-09-22  Eric Blake  <ebb9@byu.net>
37318
37319         unistd: sort replacement declarations
37320         * lib/unistd.in.h: Sort declarations.
37321
37322         open, openat: minor optimization
37323         * lib/open.c (open): If open succeeded, len is non-zero.
37324         * lib/openat.c (rpl_openat): Likewise.
37325
37326         link-follow: ensure correct result
37327         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
37328         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
37329         distinguish between possible failures.
37330
37331 2009-09-21  Eric Blake  <ebb9@byu.net>
37332
37333         fts: avoid compiler warning
37334         * lib/fts.c (dirent_inode_sort_may_be_useful)
37335         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
37336
37337 2009-09-19  Bruno Haible  <bruno@clisp.org>
37338
37339         * lib/progreloc.c (canonicalize_file_name): New declaration.
37340
37341 2009-09-19  Eric Blake  <ebb9@byu.net>
37342
37343         link: fix quoting
37344         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
37345
37346         openat: fix openat bugs on Solaris 9
37347         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
37348         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
37349         * modules/openat (Depends-on): Add open.
37350         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
37351         * modules/fcntl-h (Makefile.am): Substitute it.
37352         * lib/fcntl.in.h (openat): Declare replacement.
37353         * doc/posix-functions/openat.texi (openat): Document this.
37354
37355         openat: move fstatat and unlinkat into correct files
37356         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
37357         compiled.
37358         * lib/openat.c (fstatat, unlinkat): Move...
37359         * lib/fstatat.c (fstatat): ...into correct files.
37360         * lib/unlinkat.c (unlinkat): Likewise.
37361
37362         openat: fix unlinkat bugs on Solaris 9
37363         * lib/unlinkat.c (unlinkat): New file.
37364         * modules/openat (Depends-on): Add unlink.
37365         (Files): Distribute it.
37366         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
37367         trailing slash behavior is broken.
37368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37369         * modules/unistd (Makefile.am): Substitute it.
37370         * lib/unistd.in.h (unlinkat): Declare replacement.
37371         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
37372
37373         openat: fix fstatat bugs on Solaris 9
37374         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
37375         stat.
37376         * doc/posix-functions/fstatat.texi (fstatat): Document this.
37377
37378         test-unlinkat: enhance test, to expose Solaris 9 bug
37379         * tests/test-unlink.c (main): Factor guts...
37380         * tests/test-unlink.h (test_rmdir_func): ...into new file.
37381         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
37382         * tests/test-rmdir.c (main): Adjust caller.
37383         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
37384         (unlinker): New helper function.
37385         (rmdirat): Enhance check.
37386         * modules/rmdir-tests (Depends-on): Add stdbool.
37387         * modules/unlink-tests (Depends-on): Likewise.
37388         (Files): Add test-unlink.h.
37389         * modules/openat-tests (Files): Likewise.
37390         (Depends-on): Add unlinkdir.
37391
37392         test-fstatat: new test, to expose Solaris 9 bugs
37393         * tests/test-stat.c (main): Factor guts...
37394         * tests/test-stat.h (test_stat_func): ...into new file.
37395         * tests/test-lstat.c (main): Factor guts...
37396         * tests/test-lstat.h (test_lstat_func): ...into new file.
37397         * tests/test-fstatat.c: New file.
37398         * modules/stat-tests (Files): Add test-stat.h.
37399         * modules/lstat-tests (Files): Add test-lstat.h.
37400         (Depends-on): Add stdbool.
37401         * modules/openat-tests (Depends-on): Add pathmax.
37402         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
37403         (Makefile.am): Run new test.
37404
37405         remove: new module, for mingw and Solaris 9 bugs
37406         * modules/remove: New file.
37407         * lib/remove.c: Likewise.
37408         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
37409         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
37410         * modules/stdio (Makefile.am): Use them.
37411         * lib/stdio.in.h (remove): Declare replacement.
37412         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37413         * doc/posix-functions/remove.texi (remove): Likewise.
37414         * modules/remove-tests: New test.
37415         * tests/test-remove.c: Likewise.
37416
37417         unlink: new module, for Solaris 9 bug
37418         * modules/unlink: New file.
37419         * lib/unlink.c: Likewise.
37420         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
37421         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37422         * modules/unistd (Makefile.am): Use them.
37423         * lib/unistd.in.h (stat): Declare replacement.
37424         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37425         * doc/posix-functions/unlink.texi (unlink): Likewise.
37426         * modules/unlink-tests: New test.
37427         * tests/test-unlink.c: Likewise.
37428
37429         lstat: fix Solaris 9 bug
37430         * lib/lstat.c (lstat): Also check for trailing slash on
37431         non-symlink, non-directories.  Use stat module to simplify logic.
37432         * doc/posix-functions/lstat.texi (lstat): Document it.
37433         * modules/lstat-tests (Depends-on): Add errno, same-inode.
37434         (configure.ac): Check for symlink.
37435         * tests/test-lstat.c (main): Add more tests.
37436
37437         stat: add as dependency to other modules
37438         * modules/chown (Depends-on): Add stat.
37439         * modules/euidaccess (Depends-on): Likewise.
37440         * modules/fchdir (Depends-on): Likewise.
37441         * modules/isdir (Depends-on): Likewise.
37442         * modules/link (Depends-on): Likewise.
37443         * modules/lstat (Depends-on): Likewise.
37444         * modules/mkdir-p (Depends-on): Likewise.
37445         * modules/modechange (Depends-on): Likewise.
37446         * modules/open (Depends-on): Likewise.
37447         * modules/readlink (Depends-on): Likewise.
37448         * modules/same (Depends-on): Likewise.
37449
37450         stat: fix Solaris 9 bug
37451         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
37452         slash.
37453         * lib/stat.c (rpl_stat): Work around it.
37454         * doc/posix-functions/stat.texi (stat): Update documentation.
37455
37456         stat: new module, for mingw bug
37457         * modules/stat: New file.
37458         * lib/stat.c: Likewise.
37459         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
37460         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37461         * modules/sys_stat (Makefile.am): Use them.
37462         * lib/sys_stat.in.h (stat): Declare replacement.
37463         * lib/openat.c (fstatat): Deal with lstat and stat being function
37464         macros.
37465         * modules/openat (Depends-on): Add inline.
37466         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37467         * doc/posix-functions/stat.texi (stat): Likewise.
37468         * modules/stat-tests: New test.
37469         * tests/test-stat.c: Likewise.
37470
37471 2009-09-19  Jim Meyering  <meyering@redhat.com>
37472
37473         syntax-check: detect unnecessary inclusion of canonicalize.h
37474         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
37475
37476 2009-09-19  Eric Blake  <ebb9@byu.net>
37477
37478         canonicalize-lgpl: adjust clients to use correct header
37479         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37480         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
37481         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
37482         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
37483         * lib/progreloc.c (includes): Likewise.
37484
37485 2009-09-19  Jim Meyering  <meyering@redhat.com>
37486
37487         test-posixtm.c: correct a comment
37488         * tests/test-posixtm.c: Correct first-line comment.
37489         Spotted by Eric Blake.
37490
37491 2009-09-16  Jim Meyering  <meyering@redhat.com>
37492
37493         posixtm-tests: make T const-correct; add a test case
37494         * tests/test-posixtm.c (T): Declare const.
37495         Add a test for -(2^31+1).
37496         Remove useless can-succeed-only-in-2002 test.
37497
37498         posixtm-tests: adjust the sole failing test
37499         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
37500         expected output matches what mktime now produces.  Cross-checked via
37501         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
37502
37503         posixtm: move #ifdef'd tests into a new module
37504         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
37505         * tests/test-posixtm.c: ... this new file.
37506         * modules/posixtm-tests: New module.
37507
37508 2009-09-19  Eric Blake  <ebb9@byu.net>
37509
37510         openat: simplify use of at-func.c
37511         * lib/at-func.c (includes): Include prerequisites here, to
37512         simplify requirements on client files.
37513         * lib/openat-priv.h: Add double-inclusion guard.
37514         * lib/faccessat.c (includes): Simplify.
37515         * lib/fchmodat.c (includes): Likewise.
37516         * lib/fchownat.c (includes): Likewise.
37517         * lib/mkdirat.c (includes): Likewise.
37518         * lib/mkfifoat.c (includes): Likewise.
37519         * lib/symlinkat.c (includes): Likewise.
37520
37521         openat: allow return of fd 0
37522         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
37523         * modules/save-cwd (Depends-on): Replace fcntl-safer with
37524         unistd-safer.
37525         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
37526         <fcntl.h>; this module does not leak fds.
37527         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
37528         must be allowed to return 0, leaving openat_safer to add the
37529         safety.
37530         (openat_permissive): Avoid writing to just-opened fd 2 if
37531         restoring the current directory fails.
37532         * lib/openat-die.c (openat_restore_fail): Add comment.
37533         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
37534         (save_cwd): Guarantee safe fd, but without use of open_safer.
37535         * tests/test-openat.c: New test.
37536         * modules/openat-tests (Files, Makefile.am): Distribute and build
37537         new file.
37538
37539         relocatable-prog-wrapper: fix build
37540         * modules/relocatable-prog-wrapper (Files): Update name of
37541         canonicalize m4 file, broken on 2009-09-17.
37542         Reported by emad hajjar <aleppos@hotmail.com>.
37543
37544 2009-09-19  Bruno Haible  <bruno@clisp.org>
37545
37546         * lib/safe-alloc.h: Use the standard header with GPL copyright.
37547         * lib/safe-alloc.c: Likewise.
37548         Reported by Ian Beckwith <ianb@erislabs.net>.
37549
37550 2009-09-18  Bruno Haible  <bruno@clisp.org>
37551
37552         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
37553         Reported by <erobles@sensacd.com.mx>.
37554
37555 2009-09-17  Eric Blake  <ebb9@byu.net>
37556
37557         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
37558         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
37559         slashes when checking if last component is missing.
37560         * tests/test-canonicalize.c (main): Test this.
37561
37562         canonicalize, canonicalize-lgpl: honor // if distinct from /
37563         * modules/canonicalize (Files): Add double-slash-root.m4.
37564         * modules/canonicalize-lgpl (Files): Likewise.
37565         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37566         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
37567         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
37568         fallback definition.
37569         (canonicalize_filename_mode): Use it to protect //.
37570         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
37571         (__realpath): Likewise.
37572         * tests/test-canonicalize.c (main): Test this.
37573         * tests/test-canonicalize-lgpl.c (main): Likewise.
37574         * modules/canonicalize-tests (Depends-on): Add same-inode.
37575         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37576
37577         canonicalize-lgpl: fix glibc bug with trailing slash
37578         * m4/canonicalize-lgpl.m4: Move contents...
37579         * m4/canonicalize.m4: ...here.
37580         (gl_CANONICALIZE_LGPL): Factor realpath check...
37581         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
37582         glibc 2.3.5 bug, fixed 2005-04-27.
37583         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
37584         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
37585         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
37586         * modules/canonicalize-lgpl (Files): Manage file rename.
37587         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
37588         * modules/stdlib (Makefile.am): Substitute witness.
37589         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
37590         is needed.
37591         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
37592         replacement is required.
37593         * lib/canonicalize.c (canonicalize_file_name): Likewise.
37594         * doc/glibc-functions/canonicalize_file_name.texi
37595         (canonicalize_file_name): Document this.
37596         * doc/posix-functions/realpath.texi (realpath): Likewise.
37597
37598         canonicalize-lgpl: reject non-directory with trailing slash
37599         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
37600         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
37601         catches failures in glibc 2.3.5.
37602         * tests/test-canonicalize.c (main): Likewise.
37603
37604         canonicalize-lgpl: use native realpath if it works
37605         * lib/canonicalize-lgpl.c (realpath): Guard with
37606         FUNC_REALPATH_WORKS.
37607         * lib/stdlib.in.h (realpath): Make declaration optional based on
37608         HAVE_REALPATH.
37609         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
37610         native realpath works.
37611         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
37612         * modules/stdlib (Makefile.am): Substitute witness.
37613
37614         canonicalize, canonicalize-lgpl: use <stdlib.h>
37615         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
37616         (Include): Mention <stdlib.h>.
37617         (configure.ac): Mention functions we provide.
37618         * modules/canonicalize (configure.ac): Likewise.
37619         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
37620         realpath if canonicalize_file_name is missing.
37621         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
37622         * modules/stdlib (Makefile.am): Substitute witnesses.
37623         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
37624         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
37625         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
37626         * NEWS: Document this.
37627         * doc/glibc-functions/canonicalize_file_name.texi
37628         (canonicalize_file_name): Likewise.
37629         * doc/posix-functions/realpath.texi (realpath): Likewise.
37630         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
37631
37632         test-canonicalize: consolidate into single C program
37633         * tests/test-canonicalize.sh: Delete; move setup into...
37634         * tests/test-canonicalize.c (main): ...the program, making it
37635         easier to run in debugger.  Add some tests.
37636         * modules/canonicalize-tests (Files): Remove unused file.
37637         (Depends-on): Add progname.
37638         (configure.ac, Makefile.am): Simplify.
37639
37640         test-canonicalize-lgpl: consolidate into single C program
37641         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
37642         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
37643         easier to run in debugger.  Add some tests.
37644         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
37645         (configure.ac, Makefile.am): Simplify.
37646
37647         canonicalize: avoid resolvepath
37648         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
37649         unnecessary checks.
37650         * lib/canonicalize.c (includes): Simplify.
37651         (canonicalize_file_name): Drop resolvepath implementation.
37652         * modules/canonicalize (Depends-on): Drop filenamecat.
37653
37654         canonicalize: don't lose errno
37655         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
37656         over calls to free.
37657
37658         canonicalize: simplify errno handling
37659         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
37660         assignment.
37661
37662         canonicalize, canonicalize-lgpl: update module dependencies
37663         * modules/canonicalize (Depends-on): Add extensions, lstat,
37664         pathmax, stdlib.
37665         (Files): Drop pathmax.h.
37666         (configure.ac): Adjust macro name.
37667         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
37668         lstat, stdlib, sys_stat.
37669         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
37670         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
37671         extensions.
37672         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
37673         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
37674         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
37675         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
37676         declaration, if available.
37677         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
37678         we can rely on the readlink module.
37679         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
37680         (includes): Use <unistd.h> unconditionally.
37681
37682 2009-09-17  Eric Blake  <ebb9@byu.net>
37683
37684         maint: make Include sections of modules consistent
37685         * modules/alloca: Use only header name; no need to list #include.
37686         * modules/alloca-opt: Likewise.
37687         * modules/arpa_inet: Likewise.
37688         * modules/canon-host: Likewise.
37689         * modules/configmake: Likewise.
37690         * modules/dirent: Likewise.
37691         * modules/eealloc: Likewise.
37692         * modules/environ: Likewise.
37693         * modules/fchdir: Likewise.
37694         * modules/fcntl: Likewise.
37695         * modules/fcntl-h: Likewise.
37696         * modules/gethrxtime: Likewise.
37697         * modules/gettime: Likewise.
37698         * modules/ignore-value: Likewise.
37699         * modules/inet_ntop: Likewise.
37700         * modules/inet_pton: Likewise.
37701         * modules/inttypes: Likewise.
37702         * modules/isnand-nolibm: Likewise.
37703         * modules/isnanf-nolibm: Likewise.
37704         * modules/mbchar: Likewise.
37705         * modules/mbfile: Likewise.
37706         * modules/mbiter: Likewise.
37707         * modules/mbuiter: Likewise.
37708         * modules/netdb: Likewise.
37709         * modules/netinet_in: Likewise.
37710         * modules/nproc: Likewise.
37711         * modules/pagealign_alloc: Likewise.
37712         * modules/poll: Likewise.
37713         * modules/printf-frexp: Likewise.
37714         * modules/pthread: Likewise.
37715         * modules/putenv: Likewise.
37716         * modules/random_r: Likewise.
37717         * modules/relocatable-prog: Likewise.
37718         * modules/search: Likewise.
37719         * modules/select: Likewise.
37720         * modules/selinux-h: Likewise.
37721         * modules/settime: Likewise.
37722         * modules/signal: Likewise.
37723         * modules/size_max: Likewise.
37724         * modules/socklen: Likewise.
37725         * modules/ssize_t: Likewise.
37726         * modules/stdarg: Likewise.
37727         * modules/stdbool: Likewise.
37728         * modules/stddef: Likewise.
37729         * modules/stdint: Likewise.
37730         * modules/stdio: Likewise.
37731         * modules/stdlib: Likewise.
37732         * modules/string: Likewise.
37733         * modules/strings: Likewise.
37734         * modules/sys_file: Likewise.
37735         * modules/sys_ioctl: Likewise.
37736         * modules/sys_select: Likewise.
37737         * modules/sys_socket: Likewise.
37738         * modules/sys_stat: Likewise.
37739         * modules/sys_time: Likewise.
37740         * modules/sys_times: Likewise.
37741         * modules/sys_utsname: Likewise.
37742         * modules/sys_wait: Likewise.
37743         * modules/sysexits: Likewise.
37744         * modules/time: Likewise.
37745         * modules/times: Likewise.
37746         * modules/tmpfile: Likewise.
37747         * modules/trim: Likewise.
37748         * modules/unistd: Likewise.
37749         * modules/wchar: Likewise.
37750         * modules/wctype: Likewise.
37751
37752 2009-09-17  Bruno Haible  <bruno@clisp.org>
37753
37754         Make getdate.y compile on QNX and NetBSD 5 / i386.
37755         * m4/getdate.m4 (gl_GETDATE): Conditionally define
37756         TIME_T_FITS_IN_LONG_INT.
37757         * lib/getdate.y (long_time_t): New type.
37758         (relative_time): Change type of 'seconds' field to long_time_t.
37759         (get_date): Update types of local variables. Check against overflow
37760         during conversion from long_time_t to time_t.
37761         Reported by Matt Kraai <kraai@ftbfs.org>
37762         and Hasso Tepper <hasso@netbsd.org>.
37763
37764 2009-09-17  Bruno Haible  <bruno@clisp.org>
37765
37766         * modules/COPYING: Update copyright years.
37767         * modules/README: Likeiwse.
37768         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
37769         Reported by Ian Beckwith <ianb@erislabs.net>.
37770
37771 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
37772
37773         * users.txt: Update references for gnuit package.
37774
37775 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
37776
37777         * m4/getdelim.m4: Fix typo in copyright line.
37778
37779 2009-09-17  Bruno Haible  <bruno@clisp.org>
37780
37781         * lib/atoll.c: Use the standard header with GPL copyright.
37782         * lib/argz.in.h: Likewise.
37783         * lib/glob.c: Likewise.
37784         * lib/glob-libc.h: Likewise.
37785         * lib/random_r.c: Likewise.
37786         * lib/siglist.h: Likewise.
37787         * lib/strsignal.c: Likewise.
37788         Reported by Ian Beckwith <ianb@erislabs.net>.
37789
37790 2009-09-17  Eric Blake  <ebb9@byu.net>
37791
37792         rmdir: ensure correct dependency order
37793         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
37794
37795 2009-09-17  Bruno Haible  <bruno@clisp.org>
37796
37797         Disable assertion that fails on NetBSD 5 / i386.
37798         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
37799         Reported by Sam Steingold <sds@gnu.org>
37800         and Hasso Tepper <hasso@netbsd.org>.
37801
37802 2009-09-16  Eric Blake  <ebb9@byu.net>
37803
37804         unlinkdir: port to mingw
37805         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
37806         on which no one can unlink a directory.
37807
37808         stdlib: sort witness names
37809         * modules/stdlib (Makefile.am): Sort replacements.
37810         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
37811         * lib/stdlib.in.h: Likewise.
37812
37813         parse-duration-tests: avoid link failure
37814         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
37815         LIBINTL.
37816         Reported by Tom G. Christensen.
37817
37818         openat-tests: ensure unlinkat behaves like rmdir
37819         * tests/test-rmdir.c (main): Factor guts...
37820         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
37821         * modules/rmdir-tests (Files): Ship new file.
37822         * modules/openat-tests: New test.
37823         * tests/test-unlinkat.c: Likewise.
37824
37825         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
37826         * modules/rmdir-errno (Status, Notice): Now obsolete.
37827
37828         rmdir: work around cygwin 1.5.x and mingw bugs
37829         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
37830         * lib/rmdir.c (rmdir): Work around it.
37831         * modules/rmdir (Status, Notice): No longer obsolete.
37832         (Files): Add dos.m4.
37833         (Depends-on): Add unistd.
37834         (configure.ac): Set witnesses.
37835         (License): Relax to LGPLv2+.
37836         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
37837         * modules/unistd (Makefile.am): Substitute witnesses.
37838         * lib/unistd.in.h (rmdir): Declare replacement.
37839         * doc/posix-functions/rmdir.texi (rmdir): Document this.
37840         * modules/rmdir-tests: New tests.
37841         * tests/test-rmdir.c: Likewise.
37842
37843 2009-09-15  Eric Blake  <ebb9@byu.net>
37844
37845         fchdir: improve use of replacement functions
37846         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
37847         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
37848         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
37849         REPLACE_CLOSEDIR.
37850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
37851         * modules/sys_stat (Makefile.am): Substitute correct witness.
37852         * modules/dirent (Makefile.am): Likewise.
37853         * modules/unistd (Makefile.am): Likewise.
37854         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
37855         * lib/unistd.in.h (dup): Likewise.
37856         * lib/sys_stat.in.h (fstat): Likewise.
37857
37858         maint: ignore gnulib-tool temp files
37859         * .gitignore: Ignore files created during gnulib-tool --test.
37860
37861 2009-09-13  Jim Meyering  <meyering@redhat.com>
37862
37863         posixtm: don't reject a time that specify "60" as the number of seconds
37864         * lib/posixtm.c (posixtime): The code to reject invalid dates
37865         would also reject a time specified with the .60 suffix.
37866         But POSIX allows that, in order to accommodate leap seconds.
37867         So don't reject it.
37868         (main): Adjust tests accordingly.
37869         * modules/posixtm (Depends-on): Add stpcpy.
37870
37871 2009-09-11  Jim Meyering  <meyering@redhat.com>
37872
37873         announce-gen: include [$release_type] in emitted Subject:
37874         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
37875         e.g., [stable] in the emitted Subject: line.
37876
37877 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37878
37879         Remove obsolete macros from several modules.
37880         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
37881         obsolete Autoconf macros with their modern counterparts.
37882         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
37883         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
37884         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
37885         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
37886         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
37887         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37888         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
37889         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
37890         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
37891         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
37892         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
37893         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
37894         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
37895         * m4/sockets.m4 (gl_SOCKETS): Likewise.
37896         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
37897         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
37898         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
37899         * m4/time_r.m4 (gl_TIME_R): Likewise.
37900         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
37901         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
37902         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
37903
37904         Fix copyright header in build-aux scripts.
37905         * build-aux/git-version-gen: Fix copyright header to match GPLv3
37906         recommendation.
37907         * build-aux/ncftpput-ftp: Likewise.
37908         * build-aux/update-copyright: Likewise.
37909
37910 2009-09-09  Eric Blake  <ebb9@byu.net>
37911
37912         test-link: allow Linux choice of errno
37913         * tests/test-link.c (main): Relax test for alternate error.
37914
37915         strndup: fix improper m4 caching
37916         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
37917         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
37918         (gl_PREREQ_STRNDUP): Delete.
37919         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
37920         * modules/string (Makefile.am): Substitute it.
37921         * lib/string.in.h (strndup): Modernize prototype.
37922
37923         getcwd: port to mingw
37924         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
37925         different from the POSIX assumptions made throughout the getcwd
37926         module; fortunately, the mingw getcwd does not need replacement.
37927         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
37928         * modules/getcwd-tests: New test.
37929         * tests/test-getcwd.c: Likewise.
37930
37931         link: fix platform bugs
37932         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
37933         * lib/link.c (link): Work around them.  Fix related mingw bug.
37934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
37935         * modules/unistd (Makefile.am): Substitute it.
37936         * lib/unistd.in.h (link): Declare replacement.
37937         * doc/posix-functions/link.texi (link): Document this.
37938         * modules/link (Depends-on): Add strdup-posix, sys_stat.
37939
37940         test-link: consolidate into single C program, test more cases
37941         * tests/test-link.sh: Delete.
37942         * tests/test-link.c: Test more error conditions.  Exposes bugs on
37943         at least Cygwin and Solaris.
37944         * modules/link-tests (Files): Remove unused file.
37945         (Depends-on): Add errno, sys_stat.
37946         (Makefile.am): Simplify.
37947
37948 2009-09-08  Bruno Haible  <bruno@clisp.org>
37949
37950         Work around towlower, towupper bug on mingw.
37951         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
37952         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
37953         * doc/posix-functions/towlower.texi: Mention the mingw bug.
37954         * doc/posix-functions/towupper.texi: Likewise.
37955         Reported by Eric Blake.
37956
37957 2009-09-08  Jim Meyering  <meyering@redhat.com>
37958
37959         build: don't try to run autoheader if we don't use it
37960         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
37961         is not used in configure.ac.
37962
37963 2009-09-08  Eric Blake  <ebb9@byu.net>
37964
37965         euidaccess: fix compilation error
37966         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
37967
37968         rawmemchr: relax license
37969         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
37970         okay.
37971         Reported by Jim Meyering.
37972
37973         mkfifoat: new module
37974         * modules/mkfifoat: New file.
37975         * lib/mkfifoat.c: Likewise.
37976         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
37977         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37978         * modules/sys_stat (Makefile.am): Use them.
37979         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
37980         * MODULES.html.sh (File system functions): Mention module.
37981         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
37982         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
37983         * modules/mkfifoat-tests: New test.
37984         * tests/test-mkfifoat.c: Likewise.
37985
37986         strchrnul: relax license
37987         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
37988         okay.
37989         Reported by Jim Meyering.
37990
37991 2009-09-08  Eric Blake  <ebb9@byu.net>
37992
37993         fstatat: fix compilation on Solaris
37994         * lib/fstatat.c (includes): Add fcntl.h.
37995         Reported by Pádraig Brady.
37996
37997 2009-09-07  Eric Blake  <ebb9@byu.net>
37998
37999         rename: modernize replacement
38000         * modules/rename (Depends-on): Add stdio.
38001         (configure.ac): Declare witness.
38002         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
38003         stdio take care of replacement.
38004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
38005         * modules/stdio (Makefile.am): Substitute them.
38006         * lib/stdio.in.h (rename): Declare replacement.
38007         * lib/rename.c (includes): Allow cross-compilation to non-windows
38008         machines.
38009         * doc/posix-functions/rename.texi (rename): Improve
38010         documentation.
38011
38012         stdio: sort witness names
38013         * modules/stdio (Makefile.am): Sort replacements.
38014         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38015         * lib/stdio.in.h: Likewise.
38016
38017         getcwd: minor cleanups
38018         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
38019         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
38020
38021         openat: provide more convenience names
38022         * modules/faccessat (configure.ac): Add C witness.
38023         * lib/unistd.in.h (readlinkat): Fix typo.
38024         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
38025         convenience wrappers.
38026         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
38027         wrappers in syntax checks.
38028
38029 2009-09-06  Eric Blake  <ebb9@byu.net>
38030
38031         doc: fix comments in recent patches
38032         * lib/faccessat.c: Mention correct function.
38033         * lib/fchmodat.c: Likewise.
38034         * lib/fchownat.c: Likewise.
38035         * lib/symlinkat.c: Likewise.
38036         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
38037         constants.
38038
38039         faccessat, symlinkat: continue cleanup of previous patch
38040         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
38041         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
38042         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
38043         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
38044         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
38045         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
38046         set.
38047
38048 2009-09-06  Bruno Haible  <bruno@clisp.org>
38049
38050         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
38051         (fstatat): Declare if GNULIB_FSTATAT is set.
38052         (mkdirat): Declare if GNULIB_MKDIRAT is set.
38053         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
38054         (unlinkat): Declare if GNULIB_UNLINKAT is set.
38055         * modules/fcntl-h (Files): Remove m4/openat.m4.
38056         * modules/sys_stat (Files): Remove m4/openat.m4.
38057         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
38058         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
38059         * modules/unistd (Files): Remove m4/openat.m4.
38060         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
38061         GNULIB_OPENAT.
38062         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
38063         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
38064         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
38065         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
38066         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
38067         gl_OPENAT_DEFAULTS.
38068         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
38069         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
38070         Don't require gl_OPENAT_DEFAULTS.
38071         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
38072         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
38073         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
38074         (gl_OPENAT_DEFAULTS): Remove macro.
38075
38076 2009-09-06  Bruno Haible  <bruno@clisp.org>
38077
38078         * modules/openat (configure.ac): Remove unneeded witness.
38079
38080 2009-09-06  Bruno Haible  <bruno@clisp.org>
38081
38082         Set errno to ENOSYS when a function is entirely unsupported.
38083         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
38084         EOPNOTSUPP.
38085         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
38086         * modules/chown (Depends-on): Remove errno.
38087
38088 2009-09-06  Bruno Haible  <bruno@clisp.org>
38089
38090         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
38091
38092 2009-09-06  Bruno Haible  <bruno@clisp.org>
38093
38094         * lib/sys_stat.in.h: Fix preprocessor command indentation.
38095
38096 2009-09-06  Ben Pfaff  <blp@gnu.org>
38097             Bruno Haible  <bruno@clisp.org>
38098
38099         Work around a glibc bug in strtok_r.
38100         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
38101         Undefine if UNDEFINE_STRTOK_R is set.
38102         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
38103         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
38104         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
38105         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
38106         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
38107         UNDEFINE_STRTOK_R.
38108         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
38109
38110 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
38111
38112         exclude: minor fix
38113         * lib/exclude.c: Include wctype.h
38114
38115 2009-09-06  Akim Demaille  <demaille@gostai.com>
38116
38117         bootstrap: improve error message
38118         * build-aux/bootstrap (find_tool): Upon failure, report the list
38119         of candidates.
38120         Honor the initial value of the envvar.
38121
38122 2009-09-05  Eric Blake  <ebb9@byu.net>
38123
38124         symlinkat: new module
38125         * modules/symlinkat: New file.
38126         * lib/symlinkat.c: Likewise.
38127         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
38128         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
38129         * modules/unistd (Makefile.am): Use them.
38130         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
38131         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
38132         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
38133         * MODULES.html.sh (File system functions): Mention module.
38134         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38135         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
38136         * modules/symlinkat-tests: New test.
38137         * tests/test-symlinkat.c: Likewise.
38138
38139         test-openat-safer: add more checks
38140         * tests/test-openat-safer.c (main): Check more code paths.
38141
38142 2009-09-05  Jim Meyering  <meyering@redhat.com>
38143
38144         syntax-check: detect unnecessary inclusion of openat.h
38145         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
38146
38147 2009-09-05  Bruno Haible  <bruno@clisp.org>
38148
38149         Support towlower, towupper.
38150         * doc/posix-functions/towlower.texi: Mention module wctype.
38151         * doc/posix-functions/towupper.texi: Likewise.
38152         * lib/wctype.in.h (towlower, towupper): New functions.
38153         * tests/test-wctype.c: Include stdio.h, stdlib.h.
38154         (ASSERT): New macro.
38155         (e): New variable.
38156         (main): Test also towlower, towupper. Test WEOF argument.
38157         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
38158
38159 2009-09-05  Bruno Haible  <bruno@clisp.org>
38160
38161         Fix conversion behaviour when the input is invalid.
38162         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
38163         mark occurring in first pass of indirect conversion.
38164         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
38165         input.
38166         Found by clang's static analyzer.
38167
38168 2009-09-05  Bruno Haible  <bruno@clisp.org>
38169
38170         * tests/test-striconveh.c (main): Test indirect conversion on platforms
38171         where direct conversion is possible.
38172
38173 2009-09-04  Eric Blake  <ebb9@byu.net>
38174
38175         openat: fail with ENOENT on empty name
38176         * lib/openat-proc.c (openat_proc_name): Special-case the empty
38177         buffer.
38178
38179         link-follow: fix logic bug in prior patch
38180         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
38181         reversed sense of yes and no in prior patch.  Avoid confusing
38182         compilation failure with desired semantics.
38183
38184         link-follow: accomodate mingw and cross-compilation
38185         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
38186         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
38187         cross-compilation results to -1, to make linkat easier to
38188         implement when cross-compiling.  Trivially support mingw.
38189         * modules/link-follow (configure.ac): Call new name.
38190         * NEWS: Mention this.
38191
38192 2009-09-03  Eric Blake  <ebb9@byu.net>
38193
38194         faccessat: compile replacement
38195         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
38196         needed.
38197
38198         fts: fix compilation error
38199         * lib/fts.c (includes): Re-add "openat.h", for
38200         openat_needs_fchdir.
38201
38202         faccessat: new module
38203         * modules/faccessat: New file.
38204         * lib/faccessat.c: Likewise.
38205         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
38206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38207         * modules/unistd (Makefile.am): Use it.
38208         * lib/unistd.in.h (faccessat): Declare it.
38209         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
38210         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
38211         * MODULES.html.sh (File system functions): Mention it.
38212         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
38213         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
38214
38215         euidaccess: prefer POSIX over non-standard implementation
38216         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
38217         * lib/euidaccess.c (euidaccess): Use it if available.
38218
38219         openat: make template easier to use
38220         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
38221         AT_FUNC_F2 to be undefined.
38222         (VALIDATE_FLAG): New macro; use it to reject bad flags.
38223         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
38224         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
38225         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
38226         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
38227         Likewise.
38228         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
38229         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
38230         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
38231         Likewise.
38232
38233         openat: declare in POSIX headers
38234         * NEWS: Mention this.
38235         * modules/openat (configure.ac): Declare witnesses.
38236         (Depends-on): Add fcntl-h, sys_stat, unistd.
38237         (Include): Mention correct headers.
38238         * modules/fcntl-h (Depends-on): Add link-warning.
38239         (Files): Add openat.m4.
38240         (Makefile.am): Substitute witnesses.
38241         * modules/sys_stat (Files, Makefile.am): Likewise.
38242         * modules/unistd (Files, Makefile.am): Likewise.
38243         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
38244         (gl_OPENAT_DEFAULTS): New macro.
38245         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
38246         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
38247         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
38248         (SYS_STAT_H): Remove unused variable.
38249         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
38250         * lib/fcntl--.h (includes): Remove unneeded header.
38251         * lib/openat-safer.c (includes): Likewise.
38252         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
38253         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
38254         appropriate headers.
38255         (__OPENAT_PREFIX): Delete.
38256         * lib/fcntl.in.h (openat): Provide declaration.
38257         (AT_FDCWD): Fix Solaris bug.
38258         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
38259         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
38260         * lib/fchmodat.c (includes):  Adjust to find declaration.
38261         * lib/fchownat.c (includes): Likewise.
38262         * lib/mkdirat.c (includes): Likewise.
38263         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
38264         still visible.
38265
38266 2009-09-02  Eric Blake  <ebb9@byu.net>
38267
38268         errno: use consistently
38269         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
38270         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
38271         * lib/canonicalize.c (ELOOP): Likewise.
38272         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
38273         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
38274         * lib/lchown.c (EOPNOTSUPP): Likewise.
38275         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
38276         * lib/savewd.c (ESTALE): Likewise.
38277         * lib/settime.c (ENOSYS): Likewise.
38278         * lib/utimens.c (ENOSYS): Likewise.
38279         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
38280         * lib/chdir-safer.c (ELOOP): Likewise.
38281         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
38282         * modules/c-stack (Depends-on): Add errno.
38283         * modules/canonicalize (Depends-on): Likewise.
38284         * modules/chdir-safer (Depends-on): Likewise.
38285         * modules/fdopendir (Depends-on): Likewise.
38286         * modules/inet_ntop (Depends-on): Likewise.
38287         * modules/inet_pton (Depends-on): Likewise.
38288         * modules/lchown (Depends-on): Likewise.
38289         * modules/openat (Depends-on): Likewise.
38290         * modules/savewd (Depends-on): Likewise.
38291         * modules/settime (Depends-on): Likewise.
38292         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
38293
38294         fts: avoid leaking fds
38295         * modules/fts (Depends-on): Add cloexec.
38296         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
38297         flag.
38298
38299         fts: make directory fds more robust
38300         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
38301         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
38302
38303         backupfile, chdir-long, fts, savedir: make safer
38304         * lib/backupfile.c (includes): Use "dirent--.h", since
38305         numbered_backup can write to stderr during readdir.
38306         * lib/savedir.c (includes): Likewise.
38307         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
38308         emulation can write to stderr on failure.
38309         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
38310         * lib/getcwd.c: Document why opendir_safer is unused.
38311         * lib/glob.c: Likewise.
38312         * lib/scandir.c: Likewise.
38313         * lib/openat-proc.c: Likewise, for open_safer.
38314         * modules/backupfile (Depends-on): Add dirent-safer.
38315         * modules/savedir (Depends-on): Likewise.
38316         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
38317         * modules/chdir-long (Depends-on): Add openat-safer.
38318
38319         openat-safer: new module
38320         * modules/openat-safer: New file.
38321         * lib/openat-safer.c: Likewise.
38322         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
38323         * lib/fcntl-safer.h (openat_safer): Declare.
38324         * lib/fcntl--.h (openat): Override.
38325         * MODULES.html.sh (File descriptor based I/O): Mention it.
38326         * lib/openat.h: Add double-inclusion guards.
38327         * lib/openat.c (includes): Only include "fcntl-safer.h", not
38328         "fcntl--.h", so we can implement openat.
38329         * modules/openat-safer-tests: New test.
38330         * tests/test-openat-safer.c: New file.
38331
38332         dirent-safer: new module
38333         * modules/dirent-safer: New file.
38334         * lib/dirent--.h: Likewise.
38335         * lib/dirent-safer.h: Likewise.
38336         * lib/opendir-safer.c: Likewise.
38337         * m4/dirent-safer.m4: Likewise.
38338         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
38339         * modules/dirent-safer-tests: New test.
38340         * tests/test-dirent-safer.c: New file.
38341         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
38342
38343         fdopendir: optimize on mingw
38344         * lib/unistd.in.h (_gl_directory_name): New prototype.
38345         * lib/fchdir.c (_gl_directory_name): Implement it.
38346         (fchdir): Use it to simplify implementation.
38347         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
38348         fchdir, when available, to avoid calling [f]chdir().
38349
38350         fdopendir: split into its own module
38351         * lib/openat.c (fdopendir): Move...
38352         * lib/fdopendir.c: ...into new file.
38353         * modules/fdopendir: New module.
38354         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
38355         * modules/openat (Depends-on): Add fdopendir.
38356         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
38357         fdopendir here.
38358         * modules/savedir (Depends-on): Only need fdopendir, not full
38359         openat.
38360         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
38361         * lib/openat.h (fdopendir): Drop prototype.
38362         * lib/dirent.in.h (fdopendir): Provide prototype.
38363         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
38364         * modules/dirent (Makefile.am): Substitute them.
38365         * MODULES.html.sh (File system functions): Mention it.
38366         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
38367         * modules/fdopendir-tests: New file.
38368         * tests/test-fdopendir.c: Likewise.
38369
38370         fchdir: use more consistent macro convention
38371         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
38372         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
38373         REPLACE_FCHDIR, rather than relying on config.h macros.
38374         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
38375         inside a single make-time REPLACE_FCHDIR block, rather than using
38376         the config.h FCHDIR_REPLACEMENT.
38377         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
38378         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
38379         Manage fstat replacement.
38380         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
38381         REPLACE_FCHDIR.
38382         * modules/sys_stat (Files): Add m4/unistd_h.m4.
38383         (Makefile.am): Substitute REPLACE_FCHDIR.
38384         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
38385         FCHDIR_REPLACEMENT.
38386         * lib/dup-safer.c (dup_safer): Likewise.
38387         * lib/dup2.c (rpl_dup2): Likewise.
38388         * lib/dup3.c (rpl_dup3): Likewise.
38389         * lib/open.c (rpl_open): Likewise.
38390
38391         fchdir: simplify error handling, and support dup3
38392         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
38393         stdbool, malloc-posix, realloc-posix.
38394         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
38395         (ensure_dirs_slot): Return false on allocation failure.
38396         (rpl_dup2): Delete.
38397         (_gl_register_dup): New function.
38398         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
38399         (_gl_register_fd): Close fd on allocation failure.
38400         * lib/fcntl.in.h (_gl_register_fd): Update signature.
38401         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
38402         prototype.
38403         (rpl_dup2_fchdir): Delete prototype.
38404         * lib/open.c (open): Update caller.
38405         * lib/dup2.c (dup2): Track fchdir metadata.
38406         * lib/dup3.c (dup3): Likewise.
38407         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
38408         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
38409
38410 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38411
38412         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
38413         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
38414         don't pass arguments to AC_OUTPUT.
38415
38416 2009-09-02  Bruno Haible  <bruno@clisp.org>
38417
38418         * modules/mkdtemp (License): Relicense under LGPLv2+.
38419         Reported by Paolo Bonzini.
38420
38421 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38422
38423         Replace uses of obsolete autoconf macros in Jim's modules.
38424         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
38425         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
38426         can evoke a warning from autoconf when run with -Wobsolete
38427         enabled.  They were declared obsolete for good reasons (see
38428         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
38429         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
38430         should not continue using the deprecated macros.
38431         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
38432         obsolete Autoconf macros with modern counterparts.
38433         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
38434         * m4/dos.m4 (gl_AC_DOS): Likewise.
38435         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
38436         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
38437         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
38438         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
38439         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
38440         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
38441         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
38442         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
38443         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
38444         Likewise.
38445         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
38446         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
38447         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
38448         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
38449         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38450         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
38451
38452 2009-09-01  Eric Blake  <ebb9@byu.net>
38453
38454         fchdir: fix off-by-one bug in previous patch
38455         * lib/fchdir.c (rpl_fstat): Use correct bounds.
38456         (_gl_unregister_fd): Delete useless if.
38457
38458 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
38459
38460         maint.mk: sort the list of syntax-check rules
38461         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
38462         easier to get a sense of progress when the rules are run sequentially
38463         and take a long time.
38464
38465 2009-09-01  Simon Josefsson  <simon@josefsson.org>
38466
38467         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
38468         * modules/netinet_in: Likewise.
38469         * modules/sys_file: Likewise.
38470         * modules/sys_ioctl: Likewise.
38471         * modules/sys_select: Likewise.
38472         * modules/sys_socket: Likewise.
38473         * modules/sys_stat: Likewise.
38474         * modules/sys_time: Likewise.
38475         * modules/sys_times: Likewise.
38476         * modules/sys_utsname: Likewise.
38477         * modules/sys_wait: Likewise.
38478
38479 2009-09-01  Jim Meyering  <meyering@redhat.com>
38480
38481         fts: help ensure that return values are not ignored
38482         * lib/fts_.h (__GNUC_PREREQ): Define.
38483         (__attribute_warn_unused_result__): Define.
38484         (fts_children, fts_close, fts_open, fts_read): Declare with
38485         __attribute_warn_unused_result__.
38486
38487         fts: fts_close now fails also when closing a dir file descriptor fails
38488         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
38489         and propagate to caller, along with errno.
38490
38491         announce-gen: correct formatting in --help output
38492         * build-aux/announce-gen (usage): Move the one-line description in
38493         --help output "up", to where it belongs, just after Usage:.
38494
38495 2009-08-31  Eric Blake  <ebb9@byu.net>
38496
38497         fchdir: port to mingw
38498         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
38499         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
38500         opened, then use a substitute.
38501         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
38502         replacement.
38503         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
38504         (_gl_register_fd): No need to check stat if open already filters
38505         all directories.
38506         (fchdir): Fix error condition to match POSIX.
38507         * modules/fchdir (Depends-on): Add sys_stat.
38508         * doc/posix-functions/open.texi (open): Document the limitation.
38509         * modules/fchdir-tests: New file.
38510         * tests/test-fchdir.c: Likewise.
38511
38512         canonicalize: allow cross-testing from cygwin to mingw
38513         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
38514         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
38515         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
38516         Likewise.
38517         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
38518         target does not support symlinks.
38519         * tests/test-canonicalize-lgpl.sh: Likewise.
38520
38521         chown: avoid compilation warning on mingw
38522         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
38523         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
38524         mingw.
38525         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
38526         * modules/chown (Depends-on): Add errno.
38527
38528 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
38529
38530         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
38531         command.
38532
38533 2009-08-31  Jim Meyering  <meyering@redhat.com>
38534
38535         canonicalize: remove useless initialization
38536         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
38537         initialization of local, "end".
38538
38539 2009-08-30  Bruno Haible  <bruno@clisp.org>
38540
38541         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
38542         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
38543         ENOSYS.
38544
38545 2009-08-30  Bruno Haible  <bruno@clisp.org>
38546
38547         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
38548         /usr/xpg4/bin/tr when it exists.
38549         * tests/test-pipe-filter-gi1.sh: Likewise.
38550
38551 2009-08-30  Bruno Haible  <bruno@clisp.org>
38552
38553         Work around deficient /usr/bin/id program on Solaris.
38554         * tests/test-file-has-acl.sh (ID): New variable.
38555         * tests/test-set-mode-acl.sh (ID): Likewise.
38556         * tests/test-copy-acl.sh (ID): Likewise.
38557         * tests/test-copy-file.sh (ID): Likewise.
38558
38559 2009-08-30  Bruno Haible  <bruno@clisp.org>
38560
38561         New module 'xstriconveh'.
38562         * lib/xstriconveh.h: New file.
38563         * lib/xstriconveh.c: New file.
38564         * modules/xstriconveh: New file.
38565
38566 2009-08-30  Bruno Haible  <bruno@clisp.org>
38567
38568         Make it easier to use mem_cd_iconveh.
38569         * lib/striconveh.h (iconveh_t): New type.
38570         (iconveh_open, iconveh_close): New declarations.
38571         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
38572         with a single 'const iconveh_t *' argument.
38573         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
38574         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
38575         with a single 'const iconveh_t *' argument.
38576         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
38577         * tests/test-striconveh.c (main): Update.
38578         * NEWS: Mention the change.
38579
38580 2009-08-30  Bruno Haible  <bruno@clisp.org>
38581
38582         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
38583         problem.
38584
38585 2009-08-30  Bruno Haible  <bruno@clisp.org>
38586
38587         Work around iconv_open problem on Solaris.
38588         * lib/iconv_open-solaris.gperf: New file.
38589         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
38590         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
38591         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
38592         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
38593         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
38594         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
38595
38596 2009-08-29  Jim Meyering  <meyering@redhat.com>
38597
38598         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
38599         * top/maint.mk (cvs-check): Remove target; it was just an alias
38600         to the better-named vc-diff-check.
38601         (maintainer-distcheck): Remove rule.  It was used only from
38602         the (alpha/beta/major) target, and all of its commands but one
38603         were coreutils-specific.
38604         (vc-dist): Remove rule.
38605         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
38606         Run vc-diff-check, not vc-dist.
38607         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
38608
38609 2009-08-27  Bruno Haible  <bruno@clisp.org>
38610
38611         * tests/test-bitrotate.c (main): Remove test that uses a shift count
38612         of 0.
38613
38614 2009-08-27  Bruno Haible  <bruno@clisp.org>
38615
38616         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
38617         compilers.
38618         * doc/func.texi: Document the SunPRO C bug.
38619
38620 2009-08-27  Bruno Haible  <bruno@clisp.org>
38621
38622         Fix link error on Solaris.
38623         * tests/test-parse-duration.c (xstrdup): Remove function.
38624
38625 2009-08-26  Pádraig Brady  <P@draigbrady.com>
38626
38627         ignore-value: handle pointer types, too
38628         * lib/ignore-value.h (__attribute__): Remove definition.
38629         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
38630         of a more concise and more-often effective "(void) i" statement.
38631         (ignore_ptr): New function to suppress warnings from functions that
38632         return pointers, and to make it explicit that one function doesn't
38633         handle all cases.
38634
38635 2009-08-25  Bruno Haible  <bruno@clisp.org>
38636
38637         dup2: work around a Linux bug.
38638         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
38639         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
38640         * doc/posix-functions/dup2.texi: Mention the Linux bug.
38641         Reported by Simon Josefsson.
38642
38643 2009-08-25  Jim Meyering  <meyering@redhat.com>
38644
38645         libguestfs uses gnulib
38646         * users.txt: Add libguestfs.
38647
38648 2009-08-24  Eric Blake  <ebb9@byu.net>
38649
38650         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
38651         * lib/pipe2.c (includes): Add binary-io.h.
38652         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
38653
38654 2009-08-24  Bruno Haible  <bruno@clisp.org>
38655
38656         Tolerate declared but missing accept4 syscall.
38657         * lib/accept4.c (accept4): Invoke original accept4 function first, if
38658         available.
38659         * lib/sys_socket.in.h (accept4): If the function is already present,
38660         override it.
38661         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
38662         * modules/accept4 (Makefile.am): Compile accept4.c always.
38663         Reported by Paolo Bonzini and Eric Blake.
38664
38665 2009-08-23  Bruno Haible  <bruno@clisp.org>
38666
38667         New module 'accept4'.
38668         * lib/sys_socket.in.h (accept4): New declaration.
38669         * lib/accept4.c: New file.
38670         * m4/accept4.m4: New file.
38671         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
38672         GNULIB_ACCEPT4, HAVE_ACCEPT4.
38673         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
38674         HAVE_ACCEPT4.
38675         * modules/accept4: New file.
38676         * doc/glibc-functions/accept4.texi: Mention the new module.
38677
38678 2009-08-24  Jim Meyering  <meyering@redhat.com>
38679
38680         progname: also set global program_invocation_name, when possible
38681         Before this change, a libtool-enabled program that calls glibc's
38682         error function would report the program name as
38683         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
38684         * modules/progname (configure.ac): Check for a declaration of
38685         program_invocation_name.
38686         * lib/progname.c:  Include <errno.h>.
38687         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
38688         Set program_invocation_name.
38689
38690 2009-08-23  Bruno Haible  <bruno@clisp.org>
38691
38692         * lib/dup3.c: Include <string.h>.
38693
38694 2009-08-23  Bruno Haible  <bruno@clisp.org>
38695
38696         * lib/dup3.c (dup3): Test only once whether the system actually exists.
38697         * lib/pipe2.c (pipe2): Likewise.
38698         Suggested by Eric Blake.
38699
38700 2009-08-23  Bruno Haible  <bruno@clisp.org>
38701
38702         Tolerate declared but missing dup3 syscall.
38703         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
38704         * lib/unistd.in.h (dup3): If the function is already present,
38705         override it.
38706         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
38707         * modules/dup3 (Makefile.am): Compile dup3.c always.
38708         Reported by Paolo Bonzini.
38709
38710 2009-08-23  Bruno Haible  <bruno@clisp.org>
38711
38712         Tolerate declared but missing pipe2 syscall.
38713         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
38714         available.
38715         * lib/unistd.in.h (pipe2): If the function is already present,
38716         override it.
38717         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
38718         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
38719         Reported by Paolo Bonzini.
38720
38721 2009-08-23  Bruno Haible  <bruno@clisp.org>
38722
38723         * lib/pipe2.c (pipe2): Move #ifs inside function.
38724
38725 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38726
38727         quotearg: document limitations of quote_these_too
38728         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
38729         those limitations are created.
38730         * lib/quotearg.h (set_char_quoting): Document that digits and
38731         letters that are special after backslash are not permitted.
38732         (quotearg_char): Cross-reference set_char_quoting documentation.
38733
38734 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
38735
38736         quotearg: implement custom_quoting_style
38737         * lib/quotearg.c: (struct quoting_options): Add left_quote and
38738         right_quote fields.
38739         (set_custom_quoting): New public function.
38740         (quotearg_buffer_restyled): Add left_quote and right_quote
38741         arguments, handle them very much like locale quoting, and update
38742         all uses.
38743         (quotearg_n_custom): New public function.
38744         (quotearg_n_custom_mem): New public function.
38745         (quotearg_custom): New public function.
38746         (quotearg_custom_mem): New public function.
38747         * lib/quotearg.h: Prototype and document new public functions.
38748         (enum quoting_style): For escape_quoting_style and
38749         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
38750         ignored even though they're otherwise like c_quoting_style.
38751         Add custom_quoting_style member and document with comparison to
38752         clocale_quoting_style.
38753         * tests/test-quotearg.c (custom_quotes): New array.
38754         (custom_results): New array.
38755         (main): Extend to test custom quoting.
38756
38757 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38758
38759         quotearg: fix right quote escaping when it's in quote_these_too
38760         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
38761         quote, be sure to prepend only one backslash.
38762         * tests/test-quotearg.c (use_quote_double_quotes): New function.
38763         (main): Test it.
38764
38765 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38766
38767         quotearg-tests: test escaping of embedded locale quotes
38768         * tests/test-quotearg.c (struct result_strings): Add member for
38769         new input.
38770         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
38771         (inputs): Add new input.
38772         (results_g): Add expected results.
38773         (flag_results): Likewise.
38774         (locale_results): Likewise.
38775         (compare_strings): Check those.
38776
38777 2009-08-23  Bruno Haible  <bruno@clisp.org>
38778
38779         Tests for module 'dup3'.
38780         * modules/dup3-tests: New file.
38781         * tests/test-dup3.c: New file.
38782
38783         New module 'dup3'.
38784         * lib/unistd.in.h (dup3): New declaration.
38785         * lib/dup3.c: New file.
38786         * m4/dup3.m4: New file.
38787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
38788         HAVE_DUP3.
38789         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
38790         * modules/dup3: New file.
38791         * doc/glibc-functions/dup3.texi: Mention the new module.
38792
38793 2009-08-23  Bruno Haible  <bruno@clisp.org>
38794
38795         Tweak the dup2 test.
38796         * tests/test-dup2.c (main): Create the test file empty. Verify that an
38797         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
38798         the test file is still empty. Fix argument order of lseek.
38799
38800 2009-08-23  Bruno Haible  <bruno@clisp.org>
38801
38802         Avoid test link errors when the modules getopt-gnu, gettext are used.
38803         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
38804         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38805
38806 2009-08-23  Bruno Haible  <bruno@clisp.org>
38807
38808         Fix getdtablesize() on mingw.
38809         * lib/getdtablesize.c (getdtablesize): Implement differently.
38810         * lib/unistd.in.h (getdtablesize): Improve comment.
38811
38812 2009-08-23  Bruno Haible  <bruno@clisp.org>
38813
38814         New module 'mkostemp'.
38815         Based on Ulrich Drepper's 2007-08-10 change in glibc.
38816         * lib/stdlib.in.h (mksotemp): New declaration.
38817         * lib/mkostemp.c: New file, from glibc with modifications.
38818         * lib/tempname.h (GT_FILE): Remove outdated comment.
38819         (gen_tempname): Add flags argument.
38820         * lib/tempname.c (__GT_BIGFILE): Remove macro.
38821         (__GT_FILE): Map to 1.
38822         (small_open, large_open): Remove macros.
38823         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
38824         * lib/mkstemp.c (mkstemp): Update.
38825         * lib/mkdtemp.c (mkdtemp): Likewise.
38826         * m4/mkostemp.m4: New file.
38827         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
38828         HAVE_MKOSTEMP.
38829         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
38830         HAVE_MKOSTEMP.
38831         * modules/mkostemp: New file, based on modules/mkstemp.
38832         * doc/glibc-functions/mkostemp.texi: Mention the new module.
38833         * NEWS: Mention the change.
38834
38835 2009-08-23  Bruno Haible  <bruno@clisp.org>
38836
38837         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
38838         Reported by Eric Blake.
38839
38840 2009-08-23  Bruno Haible  <bruno@clisp.org>
38841
38842         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
38843         Reported by Eric Blake.
38844
38845 2009-08-23  Bruno Haible  <bruno@clisp.org>
38846
38847         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
38848         * modules/pipe2 (Depends-on): Likewise.
38849
38850 2009-08-23  Eric Blake  <ebb9@byu.net>
38851
38852         fcntl-h: add O_TTY_INIT support
38853         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
38854         * tests/test-fcntl-h.c (o): Test it.
38855         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38856
38857         fcntl-h: rename from fcntl, in preparation for fcntl(2)
38858         * modules/fcntl: Move <fcntl.h> header replacement...
38859         * modules/fcntl-h: ...to new name, so as not to collide with
38860         like-named function.
38861         * tests/test-fcntl.c: Rename...
38862         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
38863         * modules/fcntl-tests: Rename...
38864         * modules/fcntl-h-tests: ...to this.  Update test file name.
38865         * modules/chdir-long (Depends-on): Update clients.
38866         * modules/chdir-safer (Depends-on): Likewise.
38867         * modules/fcntl-safer (Depends-on): Likewise.
38868         * modules/fts (Depends-on): Likewise.
38869         * modules/mkancesdirs (Depends-on): Likewise.
38870         * modules/mkdir-p (Depends-on): Likewise.
38871         * modules/open (Depends-on): Likewise.
38872         * modules/savewd (Depends-on): Likewise.
38873         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
38874         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38875
38876 2009-08-22  Bruno Haible  <bruno@clisp.org>
38877
38878         * modules/binary-io (License): Relicense under LGPL.
38879         * modules/pipe2 (License): Likewise.
38880
38881 2009-08-22  Bruno Haible  <bruno@clisp.org>
38882
38883         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
38884         return value.
38885         * lib/pipe-filter-gi.c (filter_init): Likewise.
38886         Reported by Eric Blake.
38887
38888 2009-08-22  Bruno Haible  <bruno@clisp.org>
38889
38890         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
38891         * modules/pipe (Depends-on): Add pipe2.
38892
38893 2009-08-22  Bruno Haible  <bruno@clisp.org>
38894
38895         Tests for module 'pipe2'.
38896         * modules/pipe2-tests: New file.
38897         * tests/test-pipe2.c: New file.
38898
38899         New module 'pipe2'.
38900         * lib/unistd.in.h (pipe2): New declaration.
38901         * lib/pipe2.c: New file.
38902         * m4/pipe2.m4: New file.
38903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
38904         HAVE_PIPE2.
38905         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
38906         * modules/pipe2: New file.
38907         * doc/glibc-functions/pipe2.texi: Mention the new module.
38908
38909 2009-08-22  Bruno Haible  <bruno@clisp.org>
38910
38911         Reference some new glibc functions.
38912         * doc/glibc-functions/accept4.texi: New file.
38913         * doc/glibc-functions/dup3.texi: New file.
38914         * doc/glibc-functions/mkostemp.texi: New file.
38915         * doc/glibc-functions/pipe2.texi: New file.
38916         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
38917         (Glibc sys/socket.h): Refer to accept4.
38918         (Glibc unistd.h): Refer to dup3, pipe2.
38919         Reported by Eric Blake.
38920
38921 2009-08-22  Jim Meyering  <meyering@redhat.com>
38922             Bruno Haible  <bruno@clisp.org>
38923
38924         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
38925         This makes it so packages using automake-1.11's silent-rules option
38926         can print e.g., a single "GEN    configmake.h" line, rather than
38927         the 30+ statements that perform the job.  If you want to see the
38928         actual commands, you can still run "make V=1".
38929         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
38930         so that make output is abbreviated when those variables are defined
38931         appropriately.
38932         * modules/argz: Likewise.
38933         * modules/arpa_inet: Likewise.
38934         * modules/byteswap: Likewise.
38935         * modules/configmake: Likewise.
38936         * modules/dirent: Likewise.
38937         * modules/errno: Likewise.
38938         * modules/fcntl: Likewise.
38939         * modules/float: Likewise.
38940         * modules/fnmatch: Likewise.
38941         * modules/getopt-posix: Likewise.
38942         * modules/glob: Likewise.
38943         * modules/iconv_open: Likewise.
38944         * modules/inttypes: Likewise.
38945         * modules/localcharset: Likewise.
38946         * modules/locale: Likewise.
38947         * modules/math: Likewise.
38948         * modules/netdb: Likewise.
38949         * modules/netinet_in: Likewise.
38950         * modules/poll: Likewise.
38951         * modules/posix_spawnp-tests: Likewise.
38952         * modules/sched: Likewise.
38953         * modules/search: Likewise.
38954         * modules/selinux-h: Likewise.
38955         * modules/signal: Likewise.
38956         * modules/spawn: Likewise.
38957         * modules/stdarg: Likewise.
38958         * modules/stdbool: Likewise.
38959         * modules/stddef: Likewise.
38960         * modules/stdint: Likewise.
38961         * modules/stdio: Likewise.
38962         * modules/stdlib: Likewise.
38963         * modules/string: Likewise.
38964         * modules/strings: Likewise.
38965         * modules/sys_file: Likewise.
38966         * modules/sys_ioctl: Likewise.
38967         * modules/sys_select: Likewise.
38968         * modules/sys_socket: Likewise.
38969         * modules/sys_stat: Likewise.
38970         * modules/sys_time: Likewise.
38971         * modules/sys_times: Likewise.
38972         * modules/sys_utsname: Likewise.
38973         * modules/sys_wait: Likewise.
38974         * modules/sysexits: Likewise.
38975         * modules/time: Likewise.
38976         * modules/unistd: Likewise.
38977         * modules/wchar: Likewise.
38978         * modules/wctype: Likewise.
38979
38980 2009-08-22  Jim Meyering  <meyering@redhat.com>
38981
38982         announce-gen: detect write failure
38983         * build-aux/announce-gen: Add Coda at end.
38984         Remove equivalent-but-more-verbose block at top.
38985
38986 2009-08-19  Akim Demaille  <demaille@gostai.com>
38987
38988         bootstrap: --help to stdout.
38989         * bootstrap (usage): Don't send --help to stderr.
38990         Use a here doc instead of a long string.
38991
38992 2009-08-21  Eric Blake  <ebb9@byu.net>
38993
38994         test-popen-safer: split from test-popen
38995         * tests/test-popen.c (main): Move...
38996         * tests/test-popen.h: ...into new file.
38997         * tests/test-popen-safer2.c: New file.
38998         * modules/popen-tests (Files): Add test-popen.h.
38999         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
39000         Suggested by Bruno Haible.
39001
39002         test-fcntl-safer: split from test-open
39003         * tests/test-open.c (main): Move...
39004         * tests/test-open.h: ...into new file.
39005         * tests/test-fcntl-safer.c: New file.
39006         * modules/open-tests (Files): Add test-open.h.
39007         * modules/fcntl-safer-tests: New file.
39008         Suggested by Bruno Haible.
39009
39010         test-fopen-safer: split from test-fopen
39011         * tests/test-fopen.c (main): Move...
39012         * tests/test-fopen.h: ...into new file.
39013         * tests/test-fopen-safer.c: New file.
39014         * modules/fopen-tests (Files): Add test-fopen.h.
39015         * modules/fopen-safer-tests: New file.
39016         Suggested by Bruno Haible.
39017
39018 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
39019
39020         popen-safer: test O_CLOEXEC at run-time.
39021         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
39022
39023 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
39024
39025         fcntl: move more flags to the header
39026         * lib/cloexec.c: Do not define FD_CLOEXEC here.
39027         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
39028         * lib/fcntl.in.h: Do both things here.
39029
39030 2009-08-21  Jim Meyering  <meyering@redhat.com>
39031
39032         consistently remove $@-t before redirecting to it
39033         * modules/argz: Remove $@-t and $@ before redirecting to the former.
39034         * modules/alloca-opt: Likewise.
39035         * modules/byteswap: Likewise.
39036         * modules/fnmatch: Likewise.
39037         * modules/getopt-posix: Likewise.
39038         * modules/glob: Likewise.
39039         * modules/poll: Likewise.
39040         * modules/posix_spawnp-tests: Likewise.
39041         * modules/sys_socket: Likewise.
39042         * modules/sysexits: Likewise.
39043
39044 2009-08-21  Eric Blake  <ebb9@byu.net>
39045
39046         popen: simplify access to original popen
39047         * lib/popen.c (rpl_popen): No need to worry about popen being a
39048         macro.
39049         Reported by Bruno Haible.
39050
39051 2009-08-20  Eric Blake  <ebb9@byu.net>
39052
39053         build: avoid some compiler warnings
39054         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
39055         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
39056         type.
39057         (new_exclude_segment, excluded_file_pattern_p)
39058         (excluded_file_name_p): Reduce scope.
39059         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
39060         old-style declaration.
39061
39062 2009-08-20  Simon Josefsson  <simon@josefsson.org>
39063
39064         * tests/test-exclude1.sh: Handle Windows EOL.
39065         * tests/test-exclude2.sh: Likewise.
39066         * tests/test-exclude3.sh: Likewise.
39067         * tests/test-exclude4.sh: Likewise.
39068         * tests/test-exclude5.sh: Likewise.
39069         * tests/test-exclude6.sh: Likewise.
39070         * tests/test-exclude7.sh: Likewise.
39071
39072 2009-08-19  Akim Demaille  <demaille@gostai.com>
39073
39074         bootstrap: find sha1sum when named gsha1sum.
39075         * bootstrap (find_tool): New.
39076         ($SHA1SUM): New.
39077         Use it.
39078
39079 2009-08-20  Jim Meyering  <meyering@redhat.com>
39080
39081         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
39082         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
39083         expression that converts "." in a file name to "\." in the resulting
39084         regexp.  Start with a dummy statement, so that prior shell variable
39085         definitions are expanded portably.  Reported by Simon Josefsson.
39086
39087 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
39088
39089         Fix polling for writeability of a screen buffer.
39090         * lib/poll.c: Distinguish input and screen buffers for the
39091         Win32 implementation.
39092         * lib/select.c: Likewise.
39093
39094 2009-08-19  Eric Blake  <ebb9@byu.net>
39095
39096         popen-safer: prevent popen from clobbering std descriptors
39097         * modules/popen-safer: New file.
39098         * lib/popen-safer.c: Likewise.
39099         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
39100         * lib/stdio--.h (popen): Provide override.
39101         * lib/stdio-safer.h (popen_safer): Provide declaration.
39102         * tests/test-popen.c (includes): Partially test this.
39103         * modules/popen-safer-tests: New file, for more tests.
39104         * tests/test-popen-safer.c: Likewise.
39105         * MODULES.html.sh (file stream based Input/Output): Mention it.
39106
39107         tests: test some of the *-safer modules
39108         * modules/fopen-safer (Depends-on): Add fopen.
39109         * modules/fcntl-safer (Depends-on): Add fcntl.
39110         * modules/stdlib-safer (Depends-on): Add stdlib.
39111         (configure.ac): Set indicator.
39112         * modules/unistd-safer (configure.ac): Likewise.
39113         * modules/tmpfile-safer (configure.ac): Likewise.
39114         (Depends-on): Add tmpfile.
39115         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
39116         active.
39117         * tests/test-fopen.c (includes): Test safer versions when they are
39118         in use.
39119         * tests/test-open.c (includes): Likewise.
39120
39121         popen: fix cygwin 1.5 bug when stdin closed
39122         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
39123         * modules/popen: New file.
39124         * modules/popen-tests: Likewise.
39125         * tests/test-popen.c: Likewise.
39126         * m4/popen.m4: Likewise.
39127         * lib/popen.c: Likewise.
39128         * lib/stdio.in.h (popen): New declaration.
39129         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
39130         * modules/stdio (Makefile.am): Likewise.
39131         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
39132
39133 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
39134
39135         maint.mk: give full control over update-copyright exclusions
39136         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
39137         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
39138         (update-copyright): Don't force inclusion of top-level
39139         ChangeLog.  Don't force exclusion of all COPYING files, but make
39140         them the default exclusion instead.
39141
39142 2009-08-16  Bruno Haible  <bruno@clisp.org>
39143
39144         Fix test failures on Solaris 10.
39145         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
39146         tests when Solaris iconv() is used.
39147         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
39148         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
39149         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
39150         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
39151         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
39152
39153 2009-08-16  Bruno Haible  <bruno@clisp.org>
39154
39155         Fix test failures on Solaris 10.
39156         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
39157         'tr' program and pass it as first argument.
39158         * tests/test-pipe-filter-gi1.sh: Likewise.
39159         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
39160         program as first argument.
39161         * tests/test-pipe-filter-gi1.c (main): Likewise.
39162
39163 2009-08-16  Eric Blake  <ebb9@byu.net>
39164
39165         fpurge: fix previous commits
39166         * modules/fpurge (Makefile.am): Make replacement conditional,
39167         partially reverting 2007-04-29 change; missed in previous
39168         attempt.
39169         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
39170         is missing.
39171
39172 2009-08-16  Bruno Haible  <bruno@clisp.org>
39173
39174         Clarify fpurge's effect on the file position.
39175         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
39176         * tests/test-fpurge.c (main): Make a second pass for checking the file
39177         position.
39178
39179 2009-08-16  Bruno Haible  <bruno@clisp.org>
39180
39181         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
39182         declaration of fpurge is missing.
39183         * tests/test-fpurge.c (main): Check that the file has not more contents
39184         than expected. Close the file before removing it.
39185
39186 2009-08-15  Eric Blake  <ebb9@byu.net>
39187
39188         fpurge: don't wrap working cygwin implementation
39189         * lib/fpurge.c (fpurge): Fix comment typo.
39190         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
39191         1.7 to avoid replacement.
39192         * tests/test-fpurge.c (main): Enhance test.
39193
39194 2009-08-15  Eric Blake  <ebb9@byu.net>
39195         and Jim Meyering  <meyering@redhat.com>
39196
39197         test-update-copyright: skip if perl is insufficient
39198         * tests/test-update-copyright.sh: Failure to run maintainer tool
39199         should not cause testsuite failure on cygwin 1.5.
39200
39201 2009-08-14  Eric Blake  <ebb9@byu.net>
39202
39203         doc: mention more functions added in cygwin 1.7.0
39204         * doc/posix-headers/limits.texi (limits.h): Update for recent
39205         cygwin additions.
39206         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
39207         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
39208         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
39209         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
39210         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
39211
39212 2009-08-14  Eric Blake  <ebb9@byu.net>
39213
39214         maint.mk: simplify update-copyright rule
39215         * top/maint.mk (update-copyright-local): Delete, and document how
39216         to do it in cfg.mk instead.
39217         (update-copyright-exclude-regexp): Delete, and document how to do
39218         it in .x-update-copyright instead.
39219         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
39220         exclude ChangeLog.
39221
39222 2009-08-14  Bruno Haible  <bruno@clisp.org>
39223
39224         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
39225
39226 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39227
39228         maint.mk: support update-copyright-env
39229         * top/maint.mk (update-copyright-env): Define place-holder.
39230         (update-copyright): Expand $(update-copyright-env) before
39231         invoking update-copyright.
39232
39233 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39234
39235         update-copyright: implement forced reformatting
39236         * build-aux/update-copyright: Implement and document
39237         UPDATE_COPYRIGHT_FORCE.
39238         * tests/test-update-copyright.sh: Test it.
39239
39240 2009-08-14  Eric Blake  <ebb9@byu.net>
39241         and Bruno Haible  <bruno@clisp.org>
39242
39243         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
39244         * tests/test-locale.c: Revert previous patch related to NULL.
39245         * tests/test-stdio.c: Likewise.
39246         * tests/test-stdlib.c: Likewise.
39247         * tests/test-string.c: Likewise.
39248         * tests/test-unistd.c: Likewise.
39249         * modules/time-tests (Depends-on): Add verify.
39250         * modules/wchar-tests (Depends-on): Likewise.
39251         * tests/test-time.c: Test for NULL compliance.
39252         * tests/test-wchar.c: Likewise.
39253         * modules/locale (Depends-on): Add stddef.
39254         * modules/stdio (Depends-on): Likewise.
39255         * modules/stdlib (Depends-on): Likewise.
39256         * modules/string (Depends-on): Likewise.
39257         * modules/time (Depends-on): Likewise.
39258         * modules/unistd (Depends-on): Likewise.
39259         * modules/wchar (Depends-on): Likewise.
39260         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
39261         * lib/stdlib.in.h (includes): Likewise.
39262         * lib/string.in.h (includes): Likewise.
39263         * lib/time.in.h (includes): Likewise.
39264         * lib/unistd.in.h (includes): Likewise.
39265         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
39266         replaced.
39267         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39268         * m4/stddef_h.m4: New file.
39269         * modules/stddef: Likewise.
39270         * lib/stddef.in.h: Likewise.
39271         * modules/stddef-tests: Likewise.
39272         * tests/test-stddef.c: Likewise.
39273         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
39274         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
39275         * doc/posix-headers/locale.texi (locale.h): Likewise.
39276         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
39277         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
39278         * doc/posix-headers/string.texi (string.h): Likewise.
39279         * doc/posix-headers/time.texi (time.h): Likewise.
39280         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
39281         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
39282
39283 2009-08-14  Eric Blake  <ebb9@byu.net>
39284
39285         doc: improve git diff of texinfo files
39286         * .gitattributes: Add rule for *.texi files, with hint on how to
39287         use it.
39288         Copied from m4, and based on a report by Bruno Haible.
39289
39290 2009-08-14  Bruno Haible  <bruno@clisp.org>
39291
39292         Disable multithread support by default on Cygwin 1.5.x for real.
39293         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
39294
39295 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39296
39297         update-copyright: much ado about intervals
39298         * build-aux/update-copyright: Implement and document
39299         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
39300         of copyright year intervals.
39301         Also, document UPDATE_COPYRIGHT_YEAR.
39302         * tests/test-update-copyright.sh: Test it.
39303
39304         update-copyright: convert 2-digit to 4-digit years
39305         * build-aux/update-copyright: Implement and document.
39306         * tests/test-update-copyright.sh: Update.
39307
39308 2009-08-14  Jim Meyering  <meyering@redhat.com>
39309
39310         test-exclude: avoid coreutils "make check" failure
39311         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
39312         just as in test-argmatch.c.
39313
39314 2009-08-13  Eric Blake  <ebb9@byu.net>
39315
39316         test-dup2: fix bad assumption
39317         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
39318         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
39319
39320         test-version-etc: fix CRLF portability issue
39321         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
39322         recognize \r.
39323         * tests/test-argp-version-etc-1.sh: Likewise.
39324
39325         getopt: update client modules
39326         * modules/argp (Depends-on): Use getopt-gnu.
39327         * modules/git-merge-changelog (Depends-on): Likewise.
39328         * modules/long-options (Depends-on): Likewise.
39329         * modules/xstrtol (Depends-on): Likewise.
39330
39331 2009-08-13  Simon Josefsson  <simon@josefsson.org>
39332
39333         * tests/test-version-etc.sh: Don't fail on different
39334         project/version.  Don't fail on CRLF differences.  Rewrite to use
39335         multiple -e instead of multiple sed forks, suggested by Eric Blake
39336         <ebb9@byu.net>.
39337         * tests/test-argp-version-etc-1.sh: Likewise.
39338
39339 2009-08-13  Simon Josefsson  <simon@josefsson.org>
39340
39341         * tests/test-version-etc.sh: Don't fail on different
39342         project/version.
39343
39344 2009-08-12  Bruno Haible  <bruno@clisp.org>
39345
39346         Tests for modules 'getopt-posix', 'getopt-gnu'.
39347         * modules/getopt-posix-tests: New file.
39348         * tests/test-getopt.c: New file.
39349         * tests/test-getopt.h: New file.
39350         * tests/test-getopt_long.h: New file.
39351
39352         New modules 'getopt-posix', 'getopt-gnu'.
39353         * modules/getopt-gnu: New file, renamed from modules/getopt.
39354         * modules/getopt-posix: New file.
39355         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
39356         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
39357         (gl_GETOPT): Remove macro.
39358         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
39359         Disable the test against BSD systems that declare optreset. Test
39360         against mingw bug. Test against lack of support of optional arguments
39361         on many platforms.
39362         * doc/glibc-headers/getopt.texi: Update module name and list of
39363         relevant platforms.
39364         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
39365         'getopt-gnu' and more portability problems.
39366         * NEWS: Mention the changes.
39367
39368 2009-08-12  Bruno Haible  <bruno@clisp.org>
39369
39370         Ensure that optarg etc. get declared by <unistd.h>.
39371         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
39372         AC_USE_SYSTEM_EXTENSIONS.
39373         * modules/getopt (Depends-on): Add 'extensions'.
39374
39375 2009-08-12  Bruno Haible  <bruno@clisp.org>
39376
39377         Avoid test link errors.
39378         * modules/pipe-filter-ii-tests (Makefile.am): Define
39379         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
39380         * modules/pipe-filter-gi-tests (Makefile.am): Define
39381         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
39382         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39383
39384 2009-08-12  Bruno Haible  <bruno@clisp.org>
39385
39386         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
39387         gl_GETOPT_SUBSTITUTE before.
39388         (gl_GETOPT): Use it.
39389         * m4/argp.m4 (gl_ARGP): Update.
39390         Reported by Sergey Poznyakoff.
39391
39392         * m4/getopt.m4: Reorder macros.
39393         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
39394         (gl_GETOPT_SUBSTITUTE): Remove macro.
39395
39396 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39397
39398         Minor improvement in gitlog-to-changelog
39399
39400         * build-aux/gitlog-to-changelog: New option `--format' makes
39401         output format string configurable.
39402
39403 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39404
39405         Optimize exclude: use hash tables for non-wildcard patterns.
39406
39407         * lib/exclude.c: Include hash.h and mbuiter.h
39408         (struct exclude_pattern, exclude_segment): New data types.
39409         (struct exclude): Rewrite.
39410         (fnmatch_pattern_has_wildcards): New function.
39411         (new_exclude_segment, free_exclude_segment): New functions.
39412         (excluded_file_pattern_p, excluded_file_name_p): New functions.
39413         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
39414         * lib/exclude.h (is_fnmatch_pattern): New prototype.
39415         * modules/exclude: Depend on hash and mbuiter.
39416
39417         * modules/exclude-tests: New file.
39418         * tests/test-exclude.c: New file.
39419         * tests/test-exclude1.sh: New file.
39420         * tests/test-exclude2.sh: New file.
39421         * tests/test-exclude3.sh: New file.
39422         * tests/test-exclude4.sh: New file.
39423         * tests/test-exclude5.sh: New file.
39424         * tests/test-exclude6.sh: New file.
39425         * tests/test-exclude7.sh: New file.
39426
39427 2009-08-12  Bruno Haible  <bruno@clisp.org>
39428
39429         Ensure that getopt() gets declared by <unistd.h>.
39430         * lib/unistd.in.h: Conditionally include getopt.h.
39431         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
39432         Set GNULIB_UNISTD_H_GETOPT.
39433         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39434         GNULIB_UNISTD_H_GETOPT.
39435         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
39436
39437 2009-08-12  Bruno Haible  <bruno@clisp.org>
39438
39439         Clarify logic.
39440         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
39441         gl_replace_getopt instead of GETOPT_H.
39442
39443 2009-08-12  Bruno Haible  <bruno@clisp.org>
39444
39445         * m4/getopt.m4: Add comments.
39446
39447 2009-08-12  Bruno Haible  <bruno@clisp.org>
39448
39449         Disable multithread support by default on Cygwin 1.5.x.
39450         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
39451         set gl_use_threads=no if not specified otherwise.
39452
39453 2009-08-11  Bruno Haible  <bruno@clisp.org>
39454
39455         Avoid compilation error on NetBSD 5.0.
39456         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
39457         * tests/test-stdio.c: Likewise.
39458         * tests/test-stdlib.c: Likewise.
39459         * tests/test-string.c: Likewise.
39460         * tests/test-unistd.c: Likewise.
39461         Reported by Greg Troxel <gdt@ir.bbn.com>
39462         at <https://savannah.gnu.org/support/?106973>.
39463
39464 2009-08-11  Bruno Haible  <bruno@clisp.org>
39465
39466         * modules/dup2-tests (Depends-on): Remove close.
39467
39468         Undo 2009-07-19 commit.
39469         * modules/acl-tests (Depends-on): Remove close.
39470         * modules/binary-io-tests (Depends-on): Likewise.
39471         * modules/closein-tests (Depends-on): Likewise.
39472         * modules/flock-tests (Depends-on): Likewise.
39473         * modules/fsync-tests (Depends-on): Likewise.
39474         * modules/lseek-tests (Depends-on): Likewise.
39475         * modules/pipe-tests (Depends-on): Likewise.
39476         * modules/posix_spawn-tests (Depends-on): Likewise.
39477         * modules/posix_spawnp-tests (Depends-on): Likewise.
39478         * modules/stat-time-tests (Depends-on): Likewise.
39479         * modules/yesno-tests (Depends-on): Likewise.
39480
39481 2009-08-10  Bruno Haible  <bruno@clisp.org>
39482
39483         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
39484
39485 2009-08-10  Bruno Haible  <bruno@clisp.org>
39486
39487         Fix a gcc warning.
39488         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
39489
39490 2009-08-10  Bruno Haible  <bruno@clisp.org>
39491
39492         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
39493         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
39494         not only the first time.
39495         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
39496         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
39497         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
39498         is 1, not only the the first time.
39499
39500 2009-08-10  Bruno Haible  <bruno@clisp.org>
39501
39502         Make it possible to use module 'gethostname' without module 'close'.
39503         * lib/unistd.in.h (close): Evoke a link error only if
39504         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
39505         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39506         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39507         * modules/unistd (Makefile.am): Substitute
39508         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39509         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
39510         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
39511         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
39512         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39513         * modules/sys_ioctl (Makefile.am): Substitute
39514         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39515         * modules/socket (configure.ac): On native Windows, set
39516         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
39517         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39518         Reported by Sam Steingold <sds@gnu.org>.
39519
39520 2009-08-10  Bruno Haible  <bruno@clisp.org>
39521
39522         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
39523         * modules/ioctl (configure.ac): Likewise.
39524
39525 2009-08-10  Bruno Haible  <bruno@clisp.org>
39526
39527         Avoid collision between gnulib wrapper and libintl wrapper.
39528         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
39529         already defined in intl/printf.c.
39530         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
39531         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
39532
39533 2009-08-09  Bruno Haible  <bruno@clisp.org>
39534
39535         Make <sys/select.h> really self-contained, also on Solaris 10.
39536         * lib/sys_select.in.h: Include <string.h>.
39537         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
39538         Solaris 10 problem.
39539         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
39540         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
39541         Reported by Jim Meyering.
39542
39543 2009-08-09  Bruno Haible  <bruno@clisp.org>
39544
39545         Avoid warnings from 'aclocal' that are due to a use of macro name
39546         AM_XGETTEXT_OPTION that is not defined in automake.
39547         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
39548         automake.
39549         * modules/error (configure.ac): Likewise.
39550         * modules/propername (configure.ac): Likewise.
39551         * modules/vasprintf (configure.ac): Likewise.
39552         * modules/verror (configure.ac): Likewise.
39553         * modules/xprintf (configure.ac): Likewise.
39554         * modules/xvasprintf (configure.ac): Likewise.
39555
39556 2009-08-08  Bruno Haible  <bruno@clisp.org>
39557
39558         Avoid compilation error in C++ mode.
39559         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
39560         Reported by Sam Steingold <sds@gnu.org>.
39561
39562 2009-08-08  Bruno Haible  <bruno@clisp.org>
39563
39564         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
39565         for the various Unix platforms.
39566         * doc/posix-headers/limits.texi: Update platforms list regarding
39567         HOST_NAME_MAX.
39568         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39569
39570 2009-08-07  Jim Meyering  <meyering@redhat.com>
39571
39572         selinux-at: fix typo in a comment
39573         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
39574         Spotted by Paolo Bonzini.
39575
39576         selinux-at: remove redundant m4 code, add documentation
39577         * modules/selinux-at (configure.ac): Remove redundant code.
39578         LIB_SELINUX is already set via the dependent module, selinux-h.
39579         (Include): Add quotes around selinux-at.h.
39580         * lib/selinux-at.h: Add documentation.
39581         Reported by Bruno Haible in
39582         http://marc.info/?l=gnulib-bug&m=124958988300749
39583
39584 2009-08-07  Bruno Haible  <bruno@clisp.org>
39585
39586         Avoid link error on MacOS X 10.3 and 10.4.
39587         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
39588         on non-ELF systems.
39589         * lib/argp-pv.c (argp_program_version): Likewise.
39590         Reported by Simon Josefsson.
39591
39592 2009-08-07  Simon Josefsson  <simon@josefsson.org>
39593
39594         * tests/test-version-etc.sh: Use $EXEEXT.
39595
39596 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
39597
39598         update-copyright: update documentation to point to maint.mk
39599         * build-aux/update-copyright: Here.
39600
39601 2009-08-06  Jim Meyering  <meyering@redhat.com>
39602
39603         maint.mk: support update-copyright-local
39604         * top/maint.mk (update-copyright-local): Define place-holder.
39605         (update-copyright): Depend on $(update-copyright-local).
39606
39607 2009-08-06  Jim Meyering  <meyering@redhat.com>
39608
39609         selinux-at: new module
39610         Initially written for coreutils, this module will soon be
39611         used by findutils, too.
39612         * MODULES.html.sh [Misc]: Add selinux-at.
39613         * lib/selinux-at.h: New file, from coreutils.
39614         * lib/selinux-at.c: Likewise.
39615         * modules/selinux-at: Likewise.
39616         (License): Change from LGPL to GPL, since it depends
39617         on the GPL'd openat module.
39618
39619         doc: update README
39620         * README: Remove references to cogito.
39621         Remove cvs-repo-updating instructions from 2007.
39622         Don't imply that CVS is better if you have limited disk space.
39623
39624 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39625
39626         update-copyright: support C-style comments
39627         * build-aux/update-copyright: Implement and document.
39628         * tests/test-update-copyright.sh: Test.
39629
39630 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39631
39632         update-copyright: support omitted "(C)"
39633         * build-aux/update-copyright: Implement and document.  Also,
39634         allow variable whitespace before "(C)".
39635         * tests/test-update-copyright.sh: Test.
39636
39637 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39638
39639         update-copyright: don't trip on non-FSF copyright statements
39640         * build-aux/update-copyright: Fix so that the first correctly
39641         formatted FSF copyright statement is recognized no matter what
39642         appears before it.  Update documentation.
39643         * tests/test-update-copyright.sh: Test that.
39644
39645 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39646
39647         update-copyright: clean up code a little
39648         * build-aux/update-copyright: Append "_re" to the name of any
39649         variable holding a regular expression.
39650         Replace "old" and "new" with "stmt" in variable names.
39651         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
39652         handled correctly.
39653         Format code more consistently.
39654
39655 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39656
39657         update-copyright-tests: improve portability
39658         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
39659         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
39660
39661 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
39662
39663         update-copyright: support @copyright{} and &copy;
39664         * build-aux/update-copyright: Implement and document.
39665         * tests/test-update-copyright.sh: Test.
39666
39667 2009-08-04  Jim Meyering  <meyering@redhat.com>
39668
39669         update-copyright-tests: correctly test EOL=\r\n handling
39670         * tests/test-update-copyright.sh: Put \r at the end of some lines
39671         for the dos-eol tests.  Based on a patch by Joel E. Denny.
39672
39673         maint.mk: make update-copyright exclusion list more configurable
39674         * top/maint.mk (update-copyright): Default to excluding COPYING,
39675         but allow an override, in case someone does want to update that file.
39676
39677         maint.mk: don't update copyright date in COPYING
39678         * top/maint.mk (update-copyright): Exclude COPYING.
39679
39680         maint.mk: add a copyright-updating rule
39681         * top/maint.mk (update-copyright): New rule.
39682         Derived from coreutils/Makefile.am.
39683
39684         update-copyright: rename some variables
39685         * build-aux/update-copyright: Rename a few variables for clarity.
39686         Tweak syntax.  List Joel E. Denny as coauthor.
39687
39688 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
39689
39690         update-copyright: fix bug for 2-digit last year and add tests
39691         * build-aux/update-copyright: Fix bug.
39692         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
39693         specified.
39694         * modules/update-copyright-tests: New
39695         * tests/test-update-copyright.sh: New.
39696
39697 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39698
39699         update-copyright: handle leading tabs in line prefix
39700         * build-aux/update-copyright: Count leading tabs as 8 spaces
39701         when computing margin.  This helps with the formatting of
39702         ChangeLogs, for example.
39703         Fix documentation a little.
39704
39705 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39706
39707         update-copyright: support EOL=\r\n
39708         * build-aux/update-copyright: Implement that.
39709
39710 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39711
39712         update-copyright: automatically format copyright statements
39713         * build-aux/update-copyright: Implement that.
39714         Also, be a little more predictable and safer by always failing
39715         when the full copyright format is not perfectly recognized as an
39716         unbroken whole.  Discussed at
39717         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
39718         Rewrite documentation.
39719
39720 2009-08-03  Bruno Haible  <bruno@clisp.org>
39721
39722         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
39723
39724 2009-08-02  Bruno Haible  <bruno@clisp.org>
39725
39726         Tests for module 'uname'.
39727         * modules/uname-tests: New file.
39728         * tests/test-uname.c: New file.
39729
39730         New module 'uname'.
39731         * lib/uname.c: New file.
39732         * m4/uname.m4: New file.
39733         * modules/uname: New file.
39734         * doc/posix-functions/uname.texi: Mention the new module.
39735
39736 2009-08-02  Bruno Haible  <bruno@clisp.org>
39737
39738         Tests for module 'sys_utsname'.
39739         * modules/sys_utsname-tests: New file.
39740         * tests/test-sys_utsname.c: New file.
39741
39742         New module 'sys_utsname'.
39743         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
39744         * m4/sys_utsname_h.m4: New file.
39745         * modules/sys_utsname: New file.
39746         * doc/posix-headers/sys_utsname.texi: Mention the new module.
39747
39748 2009-08-02  Bruno Haible  <bruno@clisp.org>
39749
39750         Implicitly initialize the sockets library.
39751         * lib/gethostname.c: Include sockets.h.
39752         (rpl_gethostname): Invoke gl_sockets_startup.
39753         * lib/socket.c: Include sockets.h.
39754         (rpl_socket): Invoke gl_sockets_startup.
39755         * modules/gethostname (Depends-on): Add sockets.
39756         * modules/socket (Depends-on): Likewise.
39757         * tests/test-poll.c: Don't include sockets.h.
39758         (main): Don't invoke gl_sockets_startup.
39759         * tests/test-select.c: Don't include sockets.h.
39760         (main): Don't invoke gl_sockets_startup.
39761
39762 2009-08-02  Bruno Haible  <bruno@clisp.org>
39763
39764         Allow multiple calls to gl_sockets_startup.
39765         * lib/sockets.c (initialized_sockets_version): New variable.
39766         (gl_sockets_startup): Do nothing if already called for this or a higher
39767         version.
39768         (gl_sockets_cleanup): Reset initialized_sockets_version.
39769
39770 2009-08-03  Simon Josefsson  <simon@josefsson.org>
39771
39772         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
39773         different project/version.
39774
39775 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
39776             Bruno Haible  <bruno@clisp.org>
39777
39778         Tests for module 'pipe-filter-gi'.
39779         * modules/pipe-filter-gi-tests: New file.
39780         * tests/test-pipe-filter-gi1.sh: New file.
39781         * tests/test-pipe-filter-gi1.c: New file.
39782         * tests/test-pipe-filter-gi2.sh: New file.
39783         * tests/test-pipe-filter-gi2-main.c: New file.
39784         * tests/test-pipe-filter-gi2-child.c: New file.
39785
39786         New module 'pipe-filter-gi'.
39787         * lib/pipe-filter-gi.c: New file.
39788         * modules/pipe-filter-gi: New file.
39789
39790 2009-08-02  Bruno Haible  <bruno@clisp.org>
39791             Paolo Bonzini  <bonzini@gnu.org>
39792
39793         Tests for module 'pipe-filter-ii'.
39794         * modules/pipe-filter-ii-tests: New file.
39795         * tests/test-pipe-filter-ii1.sh: New file.
39796         * tests/test-pipe-filter-ii1.c: New file.
39797         * tests/test-pipe-filter-ii2.sh: New file.
39798         * tests/test-pipe-filter-ii2-main.c: New file.
39799         * tests/test-pipe-filter-ii2-child.c: New file.
39800
39801         New module 'pipe-filter-ii'.
39802         * lib/pipe-filter.h: New file.
39803         * lib/pipe-filter-ii.c: New file.
39804         * lib/pipe-filter-aux.h: New file.
39805         * modules/pipe-filter-ii: New file.
39806
39807 2009-08-02  Simon Josefsson  <simon@josefsson.org>
39808
39809         * lib/gc-libgcrypt.c: Change copyright to FSF.
39810         * lib/gc-gnulib.c: Likewise.
39811
39812 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
39813
39814         * lib/gethostname.c: Include limits.h.
39815
39816 2009-08-02  Simon Josefsson  <simon@josefsson.org>
39817             Bruno Haible  <bruno@clisp.org>
39818
39819         Ensure HOST_NAME_MAX as part of the gethostname module.
39820         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
39821         define also HOST_NAME_MAX.
39822         * tests/test-gethostname.c: Include <limits.h>.
39823         (main): Check also HOST_NAME_MAX.
39824         * doc/posix-headers/limits.texi: Document the mingw problem.
39825
39826 2009-08-02  Bruno Haible  <bruno@clisp.org>
39827
39828         * lib/gethostname.c (gethostname): Fix handling of large len argument.
39829         Add comments.
39830
39831 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39832
39833         * lib/gethostname.c: Add Windows wrapper.
39834         * m4/gethostname.m4: Look for gethostname in -lws2_32.
39835         * modules/gethostname: Depend on sys_socket & errno, for also
39836         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
39837         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
39838
39839 2009-07-31  Jim Meyering  <meyering@redhat.com>
39840
39841         getloadavg: fix symbol name in comment
39842         * lib/getloadavg.c: Correct a typo I introduced when adding
39843         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
39844         Matt Kraai spotted the problem.
39845
39846 2009-07-29  Matt Kraai  <mkraai@beckman.com>
39847
39848         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
39849         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
39850         code also if ! defined N_NAME_POINTER.
39851         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
39852         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
39853         but the n_name member is a 12-byte array.
39854
39855 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
39856
39857         update-copyright: generalize comment handling
39858         * build-aux/update-copyright: Handle copyright statements
39859         within more comment styles.
39860         Document usage.
39861         Report any file with an external copyright holder or parse failure.
39862
39863 2009-07-29  Jim Meyering  <meyering@redhat.com>
39864
39865         mktime: correct setting of REPLACE_MKTIME
39866         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
39867
39868         update-copyright: new module
39869         * modules/update-copyright: New file.
39870         * build-aux/update-copyright: New file.
39871         * MODULES.html.sh (maint+release support): Add update-copyright.
39872
39873 2009-07-27  Bruno Haible  <bruno@clisp.org>
39874
39875         Fix compilation error when <ctime> is used and mktime is replaced.
39876         * lib/time.in.h (mktime): New declaration.
39877         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
39878         REPLACE_MKTIME instead of defining mktime in config.h.
39879         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
39880         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
39881         Reported by Ross McFarland <rwmcfa1@neces.com>.
39882
39883 2009-07-27  Bruno Haible  <bruno@clisp.org>
39884
39885         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
39886         Reported by Matt Kraai <mkraai@beckman.com>.
39887
39888 2009-07-25  Jim Meyering  <meyering@redhat.com>
39889
39890         maint.mk: avoid warnings about missing files
39891         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
39892         diagnostic when .prev-version does not exist.
39893         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
39894         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
39895         nonexistent cfg.mk.
39896         Suggestions from Simon Josefsson.
39897
39898 2009-07-25  Bruno Haible  <bruno@clisp.org>
39899
39900         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
39901         defined as macros. Needed on QNX 6.4.1.
39902         Reported by Matt Kraai <mkraai@beckman.com>.
39903
39904 2009-07-23  Jim Meyering  <meyering@redhat.com>
39905
39906         maint.mk: invoke "make dist" with a working value of XZ_OPT
39907         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
39908
39909 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
39910
39911         Make fseeko.c compile on QNX.
39912         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
39913
39914 2009-07-22  Peter Simons  <simons@cryp.to>
39915
39916         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
39917         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
39918         * lib/md4.h: Likewise.
39919         * lib/md5.h: Likewise.
39920         * lib/sha1.h: Likewise.
39921         * lib/sha256.h: Likewise.
39922         * lib/sha512.h: Likewise.
39923
39924         tests-sha1: don't assign literal string to 'char *' variable
39925         * tests/test-sha1.c (main): Declare locals with "const" to match
39926         attributes of the right hand side.
39927
39928 2009-07-21  Eric Blake  <ebb9@byu.net>
39929
39930         dup2: fix more mingw problems
39931         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
39932         fd to itself.
39933         * doc/posix-functions/dup2.texi (dup2): Document the bug.
39934         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
39935         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
39936         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
39937         care of mingw bugs.
39938
39939 2009-07-21  Jim Meyering  <meyering@redhat.com>
39940
39941         vc-list-files: avoid failure when /bin/sh is dash
39942         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
39943         On some Debian based systems, /bin/sh is a symlink to dash, and running
39944         this command would omit the "/" following each 'tests' prefix:
39945           dash -x build-aux/vc-list-files -C . tests
39946         That is because bash and dash work differently:
39947           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
39948           bash ok
39949           dash odd
39950
39951 2009-07-21  Eric Blake  <ebb9@byu.net>
39952
39953         dup2-tests: test previous patch
39954         * modules/dup2-tests: New file.
39955         * tests/test-dup2.c: Likewise.
39956         * tests/test-open.c (main): Avoid unspecified behavior.
39957         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
39958         test.
39959
39960         dup2: work around mingw and cygwin 1.5 bug
39961         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
39962         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39963         * modules/unistd (Makefile.am): Substitute it.
39964         * lib/unistd.in.h (dup2): Declare the replacement.
39965         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
39966         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
39967         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
39968         * modules/execute (Depends-on): Add dup2.
39969         * modules/fseterr (Depends-on): Likewise.
39970         * modules/pipe (Depends-on): Likewise.
39971         * modules/posix_spawn-internal (Depends-on): Likewise.
39972
39973 2009-07-21  Bruno Haible  <bruno@clisp.org>
39974
39975         * modules/.gitattributes: New file.
39976
39977 2009-07-20  Bruno Haible  <bruno@clisp.org>
39978
39979         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
39980         (main): Use it.
39981
39982 2009-07-20  Eric Blake  <ebb9@byu.net>
39983
39984         test-pipe: make a bit more robust.
39985         * tests/test-pipe.c (myerr): Allow error messages regardless of
39986         what we do to stderr.
39987         (test_pipe): Rearrange to avoid deadlock.
39988         (child_main): Try a larger read, to ensure we avoided deadlock.
39989         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
39990         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
39991         if misused.
39992
39993 2009-07-19  Jim Meyering  <meyering@redhat.com>
39994
39995         fts: avoid false-positive cycle-detection
39996         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
39997         for each new command line argument.
39998
39999 2009-07-19  Bruno Haible  <bruno@clisp.org>
40000
40001         Fix build error on mingw with the modules sys_select and unistd.
40002         * modules/acl-tests (Depends-on): Add close.
40003         * modules/binary-io-tests (Depends-on): Likewise.
40004         * modules/closein-tests (Depends-on): Likewise.
40005         * modules/flock-tests (Depends-on): Likewise.
40006         * modules/fsync-tests (Depends-on): Likewise.
40007         * modules/lseek-tests (Depends-on): Likewise.
40008         * modules/pipe-tests (Depends-on): Likewise.
40009         * modules/posix_spawn-tests (Depends-on): Likewise.
40010         * modules/posix_spawnp-tests (Depends-on): Likewise.
40011         * modules/stat-time-tests (Depends-on): Likewise.
40012         * modules/yesno-tests (Depends-on): Likewise.
40013
40014 2009-07-19  Bruno Haible  <bruno@clisp.org>
40015
40016         Unify conditionals.
40017         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
40018         macros, not at the compiler macros.
40019         * lib/pipe.c: Likewise.
40020         * lib/execute.c: Likewise.
40021         * lib/spawni.c: Likewise.
40022
40023 2009-07-19  Bruno Haible  <bruno@clisp.org>
40024
40025         Fix handling of closed stdin/stdout/stderr on mingw.
40026         * lib/w32spawn.h: Include unistd.h.
40027         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
40028         file descriptor with O_NOINHERIT flag.
40029         (fd_safer_noinherit): New function, based on fd-safer.c.
40030         (dup_safer_noinherit): New function, based on dup-safer.c.
40031         (undup_safer_noinherit): New function.
40032         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
40033         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
40034         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
40035         instead of fd_safer.
40036         * tests/test-pipe.c: Include <windows.h>.
40037         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
40038         result.
40039
40040         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
40041         from main.
40042         (test_pipe): Pass an extra argument for disambiguation.
40043         (main): Invoke parent_main or child_main.
40044
40045         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
40046         consistently.
40047
40048 2009-07-18  Eric Blake  <ebb9@byu.net>
40049
40050         test-pipe: fix mingw build
40051         * tests/test-pipe.c (main): Avoid fcntl on mingw.
40052
40053 2009-07-18  Bruno Haible  <bruno@clisp.org>
40054
40055         * modules/pipe-tests (Makefile.am): Fix typo.
40056
40057 2009-07-18  Eric Blake  <ebb9@byu.net>
40058
40059         error: fix mingw build
40060         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
40061         Reported by Bruno Haible.
40062
40063         error: avoid undefined use of stdout
40064         * lib/error.c (error, error_at_line): Check that fd 1 is open
40065         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
40066         is handling faults and the close_stdout module wants to report the
40067         detection of closed stdout as an error.
40068
40069 2009-07-17  Eric Blake  <ebb9@byu.net>
40070
40071         pipe: be robust in face of closed fds
40072         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
40073         should cause child to misbehave.
40074         * modules/pipe-tests: New module.
40075         * tests/test-pipe.c: New file.
40076         * tests/test-pipe.sh: New file.
40077         Reported by Akim Demaille.
40078
40079 2009-07-14  Bruno Haible  <bruno@clisp.org>
40080
40081         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
40082         Reported by anonymous kc.
40083
40084 2009-07-07  Jim Meyering  <meyering@redhat.com>
40085
40086         maint.mk: don't look for translatable strings in *.m4 or *.mk
40087         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
40088         when searching for translatable strings.
40089
40090 2009-07-05  Jim Meyering  <meyering@redhat.com>
40091
40092         remove superfluous parentheses in STREQ definition
40093         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
40094         * lib/getugroups.c (STREQ): Likewise.
40095         * lib/fnmatch.c (STREQ): Likewise.
40096         Spotted by Bruno Haible.
40097
40098 2009-07-04  Jim Meyering  <meyering@redhat.com>
40099
40100         argv-iter: new module
40101         * MODULES.html.sh: Add argv-iter.
40102         * lib/argv-iter.c, lib/argv-iter.h: New files.
40103         * modules/argv-iter: New file.
40104         * modules/argv-iter-tests: New file.
40105         * tests/test-argv-iter.c: Test it.
40106
40107 2009-07-04  Bruno Haible  <bruno@clisp.org>
40108
40109         Fix assertion.
40110         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
40111         contains more exact copies of a given entry than file2, leave the extra
40112         copies unpaired rather than aborting.
40113         Reported by Eric Blake.
40114
40115 2009-07-02  Bruno Haible  <bruno@clisp.org>
40116
40117         Speedup git-merge-changelog for git cherry-pick.
40118         * lib/git-merge-changelog.c (struct entries_mapping): New type.
40119         (entries_mapping_get): New function, extracted from compute_mapping.
40120         (entries_mapping_reverse_get): New function.
40121         (compute_mapping): Add a 'full' argument. Return the result in a
40122         'struct entries_mapping'.
40123         (main): Update. Access the mappings through entries_mapping_get.
40124         Reported by Eric Blake.
40125
40126 2009-07-02  Bruno Haible  <bruno@clisp.org>
40127
40128         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
40129         best_i.
40130
40131 2009-07-02  Bruno Haible  <bruno@clisp.org>
40132
40133         Speed up approximate search for matching ChangeLog entries.
40134         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
40135         argument. Call fstrcmp_bounded instead of fstrcmp.
40136         (compute_mapping, try_split_merged_entry, main): Update callers.
40137
40138 2009-07-02  Bruno Haible  <bruno@clisp.org>
40139
40140         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
40141
40142 2009-06-30  Bruno Haible  <bruno@clisp.org>
40143
40144         Reduce the number of uc_is_cased calls.
40145         * lib/unicase.h (casing_suffix_context_t): Add
40146         'first_char_except_ignorable' field.
40147         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
40148         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
40149         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
40150         Update initializer.
40151         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
40152         case-ignorable characters.
40153         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
40154         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
40155         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
40156         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
40157         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
40158
40159 2009-06-30  Bruno Haible  <bruno@clisp.org>
40160
40161         Tests for module 'unicase/ignorable'.
40162         * modules/unicase/ignorable-tests: New file.
40163         * tests/unicase/test-ignorable.c: New file, generated by
40164         gen-uni-tables.
40165
40166         Tests for module 'unicase/cased'.
40167         * modules/unicase/cased-tests: New file.
40168         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
40169         * tests/unicase/test-predicate-part1.h: New file, derived from
40170         tests/unictype/test-predicate-part1.h.
40171         * tests/unicase/test-predicate-part2.h: New file, same as
40172         tests/unictype/test-predicate-part2.h.
40173
40174         Fix evaluation of "Before C" condition of FINAL_SIGMA.
40175         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
40176         (output_casing_properties): New function.
40177         (main): Call it.
40178         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
40179         * lib/unicase/cased.c: Include unictype/bitmap.h.
40180         (uc_is_cased): Define through a bitmap lookup.
40181         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
40182         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
40183         (uc_is_case_ignorable): Define through a bitmap lookup.
40184         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
40185         lib/unictype/bitmap.h.
40186         (Depends-on): Add inline. Clean up.
40187         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
40188         lib/unictype/bitmap.h.
40189         (Depends-on): Add inline. Clean up.
40190         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
40191         recognition.
40192         * tests/unicase/test-u16-tolower.c (main): Likewise.
40193         * tests/unicase/test-u32-tolower.c (main): Likewise.
40194
40195 2009-06-30  Bruno Haible  <bruno@clisp.org>
40196
40197         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
40198         * lib/unicase/u16-casemap.c: Likewise.
40199         * lib/unicase/u32-casemap.c: Likewise.
40200
40201 2009-06-29  Bruno Haible  <bruno@clisp.org>
40202
40203         Define u32_casefold as a wrapper around u32_ct_casefold.
40204         * lib/unicase/u32-casefold.c: Update.
40205         * modules/unicase/u32-casefold (Depends-on): Add
40206         unicase/u32-ct-casefold, unicase/empty-prefix-context,
40207         unicase/empty-suffix-context. Clean up.
40208
40209         Define u16_casefold as a wrapper around u16_ct_casefold.
40210         * lib/unicase/u16-casefold.c: Update.
40211         * modules/unicase/u16-casefold (Depends-on): Add
40212         unicase/u16-ct-casefold, unicase/empty-prefix-context,
40213         unicase/empty-suffix-context. Clean up.
40214
40215         Define u8_casefold as a wrapper around u8_ct_casefold.
40216         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
40217         * lib/unicase/u8-casefold.c: Update.
40218         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
40219         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40220
40221         Define u32_totitle as a wrapper around u32_ct_totitle.
40222         * lib/unicase/u32-totitle.c: Update.
40223         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
40224         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40225
40226         Define u16_totitle as a wrapper around u16_ct_totitle.
40227         * lib/unicase/u16-totitle.c: Update.
40228         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
40229         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40230
40231         Define u8_totitle as a wrapper around u8_ct_totitle.
40232         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
40233         functions.
40234         (FUNC): Delegate to U_CT_TOTITLE.
40235         * lib/unicase/u8-totitle.c: Update.
40236         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
40237         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
40238
40239         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
40240         invocation.
40241         * modules/unicase/u32-tolower (Depends-on): Add
40242         unicase/empty-prefix-context, unicase/empty-suffix-context.
40243
40244         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
40245         invocation.
40246         * modules/unicase/u16-tolower (Depends-on): Add
40247         unicase/empty-prefix-context, unicase/empty-suffix-context.
40248
40249         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
40250         * modules/unicase/u8-tolower (Depends-on): Add
40251         unicase/empty-prefix-context, unicase/empty-suffix-context.
40252
40253         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
40254         invocation.
40255         * modules/unicase/u32-toupper (Depends-on): Add
40256         unicase/empty-prefix-context, unicase/empty-suffix-context.
40257
40258         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
40259         invocation.
40260         * modules/unicase/u16-toupper (Depends-on): Add
40261         unicase/empty-prefix-context, unicase/empty-suffix-context.
40262
40263         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
40264         * modules/unicase/u8-toupper (Depends-on): Add
40265         unicase/empty-prefix-context, unicase/empty-suffix-context.
40266
40267         New module 'unicase/u32-ct-casefold'.
40268         * lib/unicase/u32-ct-casefold.c: New file.
40269         * modules/unicase/u32-ct-casefold: New file.
40270
40271         New module 'unicase/u16-ct-casefold'.
40272         * lib/unicase/u16-ct-casefold.c: New file.
40273         * modules/unicase/u16-ct-casefold: New file.
40274
40275         New module 'unicase/u8-ct-casefold'.
40276         * lib/unicase/u8-ct-casefold.c: New file.
40277         * lib/unicase/u-ct-casefold.h: New file, derived from
40278         lib/unicase/u-casefold.h.
40279         * modules/unicase/u8-ct-casefold: New file.
40280
40281         New module 'unicase/u32-ct-totitle'.
40282         * lib/unicase/u32-ct-totitle.c: New file.
40283         * modules/unicase/u32-ct-totitle: New file.
40284
40285         New module 'unicase/u16-ct-totitle'.
40286         * lib/unicase/u16-ct-totitle.c: New file.
40287         * modules/unicase/u16-ct-totitle: New file.
40288
40289         New module 'unicase/u8-ct-totitle'.
40290         * lib/unicase/u8-ct-totitle.c: New file.
40291         * lib/unicase/u-ct-totitle.h: New file, derived from
40292         lib/unicase/u-totitle.h.
40293         * modules/unicase/u8-ct-totitle: New file.
40294
40295         New module 'unicase/u32-ct-tolower'.
40296         * lib/unicase/u32-ct-tolower.c: New file.
40297         * modules/unicase/u32-ct-tolower: New file.
40298
40299         New module 'unicase/u16-ct-tolower'.
40300         * lib/unicase/u16-ct-tolower.c: New file.
40301         * modules/unicase/u16-ct-tolower: New file.
40302
40303         New module 'unicase/u8-ct-tolower'.
40304         * lib/unicase/u8-ct-tolower.c: New file.
40305         * modules/unicase/u8-ct-tolower: New file.
40306
40307         New module 'unicase/u32-ct-toupper'.
40308         * lib/unicase/u32-ct-toupper.c: New file.
40309         * modules/unicase/u32-ct-toupper: New file.
40310
40311         New module 'unicase/u16-ct-toupper'.
40312         * lib/unicase/u16-ct-toupper.c: New file.
40313         * modules/unicase/u16-ct-toupper: New file.
40314
40315         New module 'unicase/u8-ct-toupper'.
40316         * lib/unicase/u8-ct-toupper.c: New file.
40317         * modules/unicase/u8-ct-toupper: New file.
40318
40319         Add context arguments to u*_casemap functions.
40320         * lib/unicase/unicasemap.h: Include unicase.h.
40321         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
40322         suffix_context arguments.
40323         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
40324         functions.
40325         (FUNC): Add prefix_context and suffix_context arguments. Use
40326         uc_is_cased and uc_is_case_ignorable.
40327         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
40328         * lib/unicase/u16-casemap.c: Likewise.
40329         * lib/unicase/u32-casemap.c: Likewise.
40330         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
40331         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40332         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
40333         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40334         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
40335         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40336
40337         New module 'unicase/u32-suffix-context'.
40338         * lib/unicase/u32-suffix-context.c: New file.
40339         * modules/unicase/u32-suffix-context: New file.
40340
40341         New module 'unicase/u16-suffix-context'.
40342         * lib/unicase/u16-suffix-context.c: New file.
40343         * modules/unicase/u16-suffix-context: New file.
40344
40345         New module 'unicase/u8-suffix-context'.
40346         * lib/unicase/u8-suffix-context.c: New file.
40347         * lib/unicase/u-suffix-context.h: New file.
40348         * modules/unicase/u8-suffix-context: New file.
40349
40350         New module 'unicase/empty-suffix-context'.
40351         * lib/unicase/empty-suffix-context.c: New file.
40352         * modules/unicase/empty-suffix-context: New file.
40353
40354         New module 'unicase/u32-prefix-context'.
40355         * lib/unicase/u32-prefix-context.c: New file.
40356         * modules/unicase/u32-prefix-context: New file.
40357
40358         New module 'unicase/u16-prefix-context'.
40359         * lib/unicase/u16-prefix-context.c: New file.
40360         * modules/unicase/u16-prefix-context: New file.
40361
40362         New module 'unicase/u8-prefix-context'.
40363         * lib/unicase/u8-prefix-context.c: New file.
40364         * lib/unicase/u-prefix-context.h: New file.
40365         * lib/unicase/context.h: New file.
40366         * modules/unicase/u8-prefix-context: New file.
40367
40368         New module 'unicase/empty-prefix-context'.
40369         * lib/unicase/empty-prefix-context.c: New file.
40370         * modules/unicase/empty-prefix-context: New file.
40371
40372         New module 'unicase/ignorable'.
40373         * lib/unicase/ignorable.c: New file.
40374         * modules/unicase/ignorable: New file.
40375
40376         New module 'unicase/cased'.
40377         * lib/unicase/caseprop.h: New file.
40378         * lib/unicase/cased.c: New file.
40379         * modules/unicase/cased: New file.
40380
40381         New functions for case mapping of substrings.
40382         * lib/unicase.h (casing_prefix_context_t): New type.
40383         (unicase_empty_prefix_context): New variable.
40384         (u8_casing_prefix_context, u16_casing_prefix_context,
40385         u32_casing_prefix_context, u8_casing_prefixes_context,
40386         u16_casing_prefixes_context, u32_casing_prefixes_context): New
40387         declarations.
40388         (casing_suffix_context_t): New type.
40389         (unicase_empty_suffix_context): New variable.
40390         (u8_casing_suffix_context, u16_casing_suffix_context,
40391         u32_casing_suffix_context, u8_casing_suffixes_context,
40392         u16_casing_suffixes_context, u32_casing_suffixes_context,
40393         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
40394         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
40395         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
40396         declarations.
40397
40398 2009-06-28  Jim Meyering  <meyering@redhat.com>
40399
40400         boostrap: indent only with spaces
40401         * build-aux/bootstrap: Indent only with spaces, never TABs.
40402
40403         bootstrap: split long lines
40404         * build-aux/bootstrap: Keep line length < 80.
40405
40406         bootstrap: sync from coreutils
40407         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
40408         just as autoreconf does.  Verify a list of prerequisite
40409         package-name,version-number pairs if defined in bootstrap.conf.
40410         Refer to README-prereq, if prerequisites are not satisfied.
40411
40412 2009-06-27  Eric Blake  <ebb9@byu.net>
40413
40414         tests: add test for bogus NULL definition
40415         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
40416         * tests/test-stdlib.c: Likewise.
40417         * tests/test-string.c: Likewise.
40418         * tests/test-locale.c: Likewise.
40419         * tests/test-unistd.c: Likewise.
40420         * modules/stdio-tests (Depends-on): Add verify.
40421         * modules/stdlib-tests (Depends-on): Likewise.
40422         * modules/string-tests (Depends-on): Likewise.
40423         * modules/locale-tests (Depends-on): Likewise.
40424         * modules/unistd-tests (Depends-on): Likewise.
40425
40426 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
40427
40428         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
40429         self-explaining comment.
40430         * m4/selinux-selinux-h: Update serial.
40431         (gl_LIBSELINUX): New macro, adding a warning for missing development
40432         packages to code extracted from...
40433         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
40434         Add warning for missing development packages here, too.
40435
40436 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
40437
40438         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
40439
40440 2009-06-25  Eric Blake  <ebb9@byu.net>
40441
40442         version-etc: fix regression
40443         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
40444         gcc.
40445         (version_etc): Use it, to catch bugs with trailing NULL.
40446         * lib/version-etc.c (version_etc_arn): Delete unused argument.
40447         (version_etc_va): Fix logic bug.
40448         * modules/version-etc-tests: Add test.
40449         * tests/test-version-etc.c: New file.
40450         * tests/test-version-etc.sh: Likewise.
40451
40452 2009-06-25  Sam Steingold  <sds@gnu.org>
40453
40454         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
40455         mbtowc declaration.
40456
40457 2009-06-25  Eric Blake  <ebb9@byu.net>
40458
40459         fpurge: migrate into <stdio.h>
40460         * lib/fpurge.h: Delete...
40461         * lib/stdio.in.h (fpurge): ...and declare here, instead.
40462         * lib/fpurge.c (fpurge): Change declaring header.
40463         * modules/fpurge (Files): Drop deleted file.
40464         (Depends-on): Add stdio.
40465         (configure.ac): Set witness.
40466         * modules/stdio (Makefile.am): Support fpurge macros.
40467         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40468         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
40469         * lib/fflush.c: Update client.
40470         * tests/test-fpurge.c: Likewise.
40471         * NEWS: Mention the change.
40472
40473 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40474
40475         * lib/argp-version-etc.c (program_authors): Add const
40476         qualifier.
40477         * lib/version-etc.c: Fix typos in the comments.
40478         * modules/argp-version-etc: Depends on version-etc.
40479
40480 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40481
40482         argp-version-etc: new module.
40483
40484         * lib/argp-version-etc.c: New file.
40485         * lib/argp-version-etc.h: New file.
40486         * modules/argp-version-etc: New file.
40487         * modules/argp-version-etc-tests: New file.
40488         * tests/test-argp-version-etc.c: New test.
40489         * tests/test-argp-version-etc-1.sh: New test.
40490
40491 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40492
40493         Provide additional interfaces and documentation for version-etc
40494         module.
40495
40496         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
40497         interfaces.
40498         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
40499         prototypes.
40500
40501 2009-06-24  Bruno Haible  <bruno@clisp.org>
40502
40503         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
40504         HAVE_LIB${NAME} macro.
40505         Reported by Sam Steingold <sds@gnu.org>.
40506
40507 2009-06-23  Simon Josefsson  <simon@josefsson.org>
40508
40509         * modules/hash-tests (test_hash_LDADD): Link to libintl when
40510         needed.
40511
40512 2009-06-21  Bruno Haible  <bruno@clisp.org>
40513
40514         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
40515         work.
40516         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
40517         together with LIB${NAME}, LTLIB${NAME}.
40518         Reported by Sam Steingold <sds@gnu.org>.
40519
40520 2009-06-20  Jim Meyering  <meyering@redhat.com>
40521
40522         tests: make sc_require_test_exit_idiom more generic
40523         * top/maint.mk (Exit_witness_file): New overridable variable.
40524         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
40525         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
40526
40527 2009-06-19  Jim Meyering  <meyering@redhat.com>
40528
40529         hash: reverse order of src/dst parameters in an internal interface
40530         * lib/hash.c (transfer_entries): Reverse order of parameters to
40531         put DST before SRC.  Adjust callers.
40532
40533         tests: test-hash: avoid wholesale duplication
40534         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
40535         Instead, use a loop and add a single conditional.
40536
40537         tests: test-hash: allow seed selection via a command line argument
40538         * tests/test-hash.c (get_seed): New function.
40539         (main): Use it.
40540
40541 2009-06-19  Eric Blake  <ebb9@byu.net>
40542
40543         hash: avoid memory leak on allocation failure
40544         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
40545         failure.  Factor repeated algorithm...
40546         (transfer_entries): ...into new helper routine.
40547         (hash_delete): React to hash_rehash return value.
40548
40549         hash: reduce memory pressure in hash_rehash no-op case
40550         * lib/hash.c (next_prime): Avoid overflow.
40551         (hash_initialize): Factor bucket size computation...
40552         (compute_bucket_size): ...into new helper function.
40553         (hash_rehash): Use new function and open coding to reduce memory
40554         pressure, and avoid a memory leak in USE_OBSTACK code.
40555         Reported by Jim Meyering.
40556
40557 2009-06-18  Eric Blake  <ebb9@byu.net>
40558
40559         hash: make rotation more obvious
40560         * modules/hash (Depends-on): Add bitrotate and stdint.
40561         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
40562         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
40563         (SIZE_MAX): Rely on headers for definition.
40564         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
40565         (raw_hasher): Use rotr_sz.
40566         Suggested by Jim Meyering.
40567
40568         hash: fix memory leak in last patch
40569         * lib/hash.c (hash_rehash): Avoid memory leak.
40570
40571         hash: avoid no-op rehashing
40572         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
40573
40574         hash: provide default callback functions
40575         * lib/hash.c (raw_hasher, raw_comparator): New functions.
40576         (hash_initialize): Use them as defaults.
40577         * tests/test-hash.c (main): Test this.
40578
40579         hash: minor optimization
40580         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
40581         when possible.
40582         (hash_initialize): Document this promise.
40583         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
40584         * tests/test-hash.c (hash_compare_strings): Test this.
40585
40586 2009-06-18  Bruno Haible  <bruno@clisp.org>
40587
40588         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
40589         going to be replaced anyway.
40590
40591 2009-06-18  Bruno Haible  <bruno@clisp.org>
40592
40593         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
40594         in one place.
40595         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
40596         be replaced anyway.
40597
40598 2009-06-18  Eric Blake  <ebb9@byu.net>
40599
40600         hash: check for resize before insertion
40601         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
40602         threshold before insertion, so that a pathological hash_rehash
40603         that fills every bucket can still trigger another rehash.
40604
40605 2009-06-18  Jim Meyering  <meyering@redhat.com>
40606
40607         hash-tests: add a loop around the small tests
40608         * tests/test-hash.c (main): Repeat small tests with selected
40609         small initial table sizes.
40610
40611 2009-06-17  Eric Blake  <ebb9@byu.net>
40612
40613         hash: minor cleanups
40614         * lib/hash.h (hash_entry): Make opaque, by moving...
40615         * lib/hash.c (hash_entry): ...here.
40616         (hash_insert): Clarify restrictions on what can be inserted.
40617         (hash_get_next): Clarify when it is safe to remove an element
40618         during traversal.
40619         (check_tuning): Skip verification when tuning is known safe.
40620         (hash_initialize): Clarify restrictions on tuning.
40621
40622 2009-06-17  Jim Meyering  <jim@meyering.net>
40623         and Eric Blake  <ebb9@byu.net>
40624
40625         hash-tests: new module
40626         * modules/hash-tests: New file.
40627         * tests/test-hash.c: New file.
40628
40629 2009-06-17  Eric Blake  <ebb9@byu.net>
40630
40631         strstr-simple: document new module
40632         * MODULES.html.sh: Document new module.
40633
40634         strstr, strcasestr: replace on platforms with broken memchr
40635         * modules/strstr: Split into...
40636         * modules/strstr-simple: ...new module that does not care about
40637         performance, but does care about glibc bug.
40638         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
40639         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
40640         if platform memchr is broken, per Debian bug 521737.
40641         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
40642         memchr.
40643         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
40644         * doc/posix-functions/strstr.texi (strstr): Document the fix.
40645         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40646         * modules/mountlist (Depends-on): Add strstr-simple.
40647         * modules/gen-uni-tables (Depends-on): Likewise.
40648         * modules/argz (Depends-on): Add strstr.
40649
40650 2009-06-17  Bruno Haible  <bruno@clisp.org>
40651
40652         * modules/posix_spawn-internal (Depends-on): Add errno.
40653
40654 2009-06-17  Bruno Haible  <bruno@clisp.org>
40655
40656         Define missing ESTALE on Interix 3.5.
40657         * lib/errno.in.h (ESTALE): Assign a value if missing.
40658         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
40659         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
40660         missing.
40661         * doc/posix-headers/errno.texi: Mention the Interix bug.
40662         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
40663
40664 2009-06-15  Eric Blake  <ebb9@byu.net>
40665
40666         memchr, memchr2: add valgrind exception
40667         * lib/memchr.valgrind: New file.
40668         * lib/memchr2.valgrind: New file.
40669         * modules/memchr (Files): Distribute valgrind file.
40670         * modules/memchr2 (Files): Likewise.
40671
40672         docs: memchr is no longer obsolete
40673         * MODULES.html.sh: Move memchr from obsolete to string.h section.
40674         * lib/string.in.h (memchr): Simplify logic.
40675
40676 2009-06-14  Jim Meyering  <meyering@redhat.com>
40677
40678         link-follow: fix the "checking..." message to not mention trailing slash
40679         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
40680         never considered trailing slashes.
40681
40682 2009-06-14  Bruno Haible  <bruno@clisp.org>
40683
40684         * m4/memchr.m4: Mention also the bug on IA-64.
40685         * doc/posix-functions/memchr.texi: Likewise.
40686
40687 2009-06-12  Eric Blake  <ebb9@byu.net>
40688
40689         memchr: detect broken x86_64 and alpha implementations
40690         * modules/memchr-tests (Depends-on): Move mmap detection...
40691         * modules/memchr (Depends-on): ...here.
40692         (configure.ac): Set indicator.
40693         * lib/string.in.h (memchr): Declare replacement.
40694         * modules/string (Makefile.am): Trigger replacement.
40695         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
40696         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
40697         bugs.
40698         * doc/posix-functions/memchr.texi (memchr): Document the bug.
40699         * modules/getpagesize (License): Relax license.
40700
40701 2009-06-11  Bruno Haible  <bruno@clisp.org>
40702
40703         * lib/idpriv.h: Add more references.
40704
40705 2009-06-08  Bruno Haible  <bruno@clisp.org>
40706
40707         Tests for module 'idpriv-droptemp'.
40708         * modules/idpriv-droptemp-tests: New file.
40709         * tests/test-idpriv-droptemp.sh: New file.
40710         * tests/test-idpriv-droptemp.su.sh: New file.
40711         * tests/test-idpriv-droptemp.c: New file.
40712
40713         New module 'idpriv-droptemp'.
40714         * lib/idpriv-droptemp.c: New file.
40715         * modules/idpriv-droptemp: New file.
40716
40717 2009-06-08  Bruno Haible  <bruno@clisp.org>
40718
40719         Tests for module 'idpriv-drop'.
40720         * modules/idpriv-drop-tests: New file.
40721         * tests/test-idpriv-drop.sh: New file.
40722         * tests/test-idpriv-drop.su.sh: New file.
40723         * tests/test-idpriv-drop.c: New file.
40724
40725         New module 'idpriv-drop'.
40726         * lib/idpriv.h: New file.
40727         * lib-idpriv-drop.c: New file.
40728         * m4/idpriv.m4: New file.
40729         * modules/idpriv-drop: New file.
40730
40731 2009-06-08  Bruno Haible  <bruno@clisp.org>
40732
40733         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
40734         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40735         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40736         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40737         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40738         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40739         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40740
40741 2009-06-08  Eric Blake  <ebb9@byu.net>
40742
40743         test-strstr: use memory fence, when possible
40744         * tests/test-strstr.c (main): Use memory fence, in order to be
40745         more likely to trigger Debian bug 521737.
40746         * modules/strstr-tests (Files): Pull in additional files.
40747
40748         memchr: no longer obsolete, for wider field testing
40749         * modules/memchr (Status, Notice): Delete, this module is no
40750         longer obsolete.
40751         * modules/vasnprintf (Depends-on): Add memchr.
40752
40753 2009-06-07  Jim Meyering  <meyering@redhat.com>
40754
40755         hash: declare some functions with the warn_unused_result attribute
40756         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
40757
40758 2009-06-07  Bruno Haible  <bruno@clisp.org>
40759
40760         * tests/test-alignof.c: Don't test int64_t if it does not exist.
40761         Reported by Eric Blake.
40762
40763 2009-06-06  Eric Blake  <ebb9@byu.net>
40764
40765         test-alignof: fix typo with long double
40766         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
40767         compiler error.
40768
40769 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
40770
40771         Escape non-texinfo { and }s.
40772         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
40773         markup error.
40774
40775 2009-06-04  Jim Meyering  <meyering@redhat.com>
40776
40777         gitlog-to-changelog: don't infloop on an empty commit log
40778         * build-aux/gitlog-to-changelog: Warn about an empty log message.
40779         Reported by Boris Petersen <transacid@centerim.org>.
40780
40781 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
40782
40783         version-etc: extend for packagers
40784         Add three new configure options, intended for packagers:
40785           --with-packager="packager name"
40786           --with-packager-version="packager-specific version"
40787           --with-packager-bug-reports="packager bug reporting"
40788         An example with coreutils:
40789           $ ./configure \
40790             --with-packager=Gentoo \
40791             --with-packager-bug-report=http://bugs.gentoo.org/ \
40792             --with-packager-version="patchset 1.6"
40793           $ ./src/ls --version | head -n2
40794           ls (GNU coreutils) 7.1-dirty
40795           Packaged by Gentoo (patchset 1.6)
40796         Note that the bug reporting info via --help doesn't show up because
40797         coreutils uses its own custom emit_bug_reporting_address() implementation
40798         in src/system.h.  If it didn't, it'd look like:
40799           $ ./src/ls --help | tail -n4
40800           Report bugs to <bug-coreutils@gnu.org>.
40801           Report Gentoo bugs to <http://bugs.gentoo.org/>.
40802           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
40803           General help using GNU software: <http://www.gnu.org/gethelp/>.
40804         * lib/version-etc.c: Print new information, if provided.
40805         * m4/version-etc.m4: New file.
40806         * modules/version-etc (Files): Add m4/version-etc.m4.
40807         (configure.ac): Add gl_VERSION_ETC.
40808
40809 2009-05-31  Bruno Haible  <bruno@clisp.org>
40810
40811         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
40812         and 'int64_t'.
40813         * modules/alignof-tests (Dependencies): Add stdint.
40814         Reported by Eric Blake.
40815
40816 2009-05-31  Bruno Haible  <bruno@clisp.org>
40817
40818         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
40819         restriction due to compiler bugs.
40820         Reported by Eric Blake.
40821
40822 2009-05-31  Simon Josefsson  <simon@josefsson.org>
40823             Bruno Haible  <bruno@clisp.org>
40824
40825         Fix test-alignof failure.
40826         * lib/alignof.h (alignof_slot): New macro.
40827         (alignof_type): New macro, with the same semantics as the previous
40828         'alignof'.
40829         (alignof): Alias to alignof_slot.
40830         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
40831         check that the results are usable as constant expressions.
40832
40833 2009-05-31  Bruno Haible  <bruno@clisp.org>
40834
40835         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
40836         * tests/test-memchr.c (main): Check that memchr does not read past the
40837         first occurrence of the byte.
40838         * tests/test-strstr.c (main): Update comment.
40839         Suggested by Eric Blake.
40840
40841 2009-05-30  Bruno Haible  <bruno@clisp.org>
40842
40843         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
40844         detail how to use dumpbin.
40845         Reported by David Byron <dbyron@dbyron.com>.
40846
40847 2009-06-02  Simon Josefsson  <simon@josefsson.org>
40848
40849         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
40850
40851 2009-06-02  Simon Josefsson  <simon@josefsson.org>
40852
40853         * m4/manywarnings.m4: Add GCC 4.4 warnings.
40854
40855 2009-05-28  Bruno Haible  <bruno@clisp.org>
40856
40857         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
40858         build-aux/ files.
40859
40860 2009-05-28  Simon Josefsson  <simon@josefsson.org>
40861
40862         * gnulib-tool (func_import): Transform license on build-aux/ files too.
40863
40864 2009-05-27  Simon Josefsson  <simon@josefsson.org>
40865
40866         * gnulib-tool (sed_transform_main_lib_file)
40867         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
40868         regexps.
40869
40870 2009-05-26  Simon Josefsson  <simon@josefsson.org>
40871
40872         * tests/test-strstr.c: Add another self-test.
40873         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
40874         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
40875
40876 2009-05-23  Bruno Haible  <bruno@clisp.org>
40877
40878         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
40879         change.
40880
40881 2009-05-21  Bruno Haible  <bruno@clisp.org>
40882
40883         Simplify use of mode_t varargs.
40884         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
40885         uses 'mode_t' or 'int'.
40886         * lib/openat.c (openat): Likewise.
40887         * lib/open-safer.c (open_safer): Likewise.
40888         * m4/mode_t.m4: New file.
40889         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
40890         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
40891         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
40892         * modules/open (Files): Add m4/mode_t.m4.
40893         * modules/openat (Files): Likewise.
40894         * modules/fcntl-safer (Files): Likewise.
40895         Suggested by Eric Blake.
40896
40897 2009-05-21  Pádraig Brady  <P@draigbrady.com>
40898
40899         * doc/glibc-functions/fallocate.texi: New file.
40900         * doc/gnulib.texi: Include it.
40901
40902 2009-05-21  Eric Blake  <ebb9@byu.net>
40903             Bruno Haible  <bruno@clisp.org>
40904
40905         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
40906         invocations.
40907         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40908
40909 2009-05-21  Eric Blake  <ebb9@byu.net>
40910             Bruno Haible  <bruno@clisp.org>
40911
40912         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
40913         include_next. Fix of 2008-11-20 commit.
40914         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
40915         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
40916         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
40917         NEXT_MATH_H.
40918         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
40919         instead of NEXT_MATH_H.
40920
40921 2009-05-21  Bruno Haible  <bruno@clisp.org>
40922
40923         Avoid redefinition warnings for SIZE_MAX.
40924         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
40925         Reported by Simon Josefsson.
40926
40927 2009-05-21  Bruno Haible  <bruno@clisp.org>
40928
40929         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
40930         AC_CACHE_VAL.
40931
40932 2009-05-20  Bruno Haible  <bruno@clisp.org>
40933
40934         Make zeroptr.h work on mingw.
40935         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
40936         mprotect.
40937         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
40938         * modules/memchr2-tests (configure.ac): Likewise.
40939         * modules/memcmp-tests (configure.ac): Likewise.
40940         * modules/memmem-tests (configure.ac): Likewise.
40941         * modules/memrchr-tests (configure.ac): Likewise.
40942         Reported by Simon Josefsson.
40943
40944 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40945
40946         * tests/test-glob.c: Include string.h for strcmp prototype.
40947
40948 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40949
40950         * modules/getdelim (Depends-on): Add explicit stdint, although it
40951         was implicitly already pulled in via realloc-posix.
40952         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
40953
40954 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40955
40956         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
40957         G. Christensen" <tgc@jupiterrise.com>.
40958         * m4/sys_socket_h.m4: Check for sa_family_t.
40959         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
40960         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
40961         * tests/test-sys_socket.c: Check that sa_family_t works.
40962
40963 2009-05-18  Eric Blake  <ebb9@byu.net>
40964
40965         maint.mk: allow gnulib_dir in VPATH build
40966         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
40967
40968 2009-05-15  Jim Meyering  <meyering@redhat.com>
40969
40970         maint.mk: Give gnulib_dir a default definition.
40971         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
40972         Thus, most packages no longer need to specify this variable in cfg.mk
40973
40974 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
40975
40976         rename.m4: fix typos that would make non-mingw cross-configure fail
40977         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
40978
40979 2009-05-13  Eric Blake  <ebb9@byu.net>
40980
40981         mmap-anon: avoid out-of-order autoconf expansion
40982         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
40983         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
40984         * modules/memchr-tests (Depends-on): Add extensions.
40985         * modules/memchr2-tests (Depends-on): Add extensions.
40986         * modules/memcmp-tests (Depends-on): Add extensions.
40987         * modules/memmem-tests (Depends-on): Add extensions.
40988         * modules/memrchr-tests (Depends-on): Add extensions.
40989
40990 2009-05-13  Bruno Haible  <bruno@clisp.org>
40991
40992         Make some tests ISO C 99 compliant.
40993         * tests/zerosize-ptr.h: New file.
40994         * tests/test-memchr.c: Include zerosize-ptr.h.
40995         (main): Use a zero-size object pointer instead of NULL.
40996         * tests/test-memchr2.c: Include zerosize-ptr.h.
40997         (main): Use a zero-size object pointer instead of NULL.
40998         * tests/test-memcmp.c: Include zerosize-ptr.h.
40999         (main): Use a zero-size object pointer instead of NULL.
41000         * tests/test-memmem.c: Include zerosize-ptr.h.
41001         (main): Use a zero-size object pointer instead of NULL.
41002         * tests/test-memrchr.c: Include zerosize-ptr.h.
41003         (main): Use a zero-size object pointer instead of NULL.
41004         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
41005         m4/mmap-anon.m4.
41006         (Depends-on): Add getpagesize.
41007         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41008         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
41009         m4/mmap-anon.m4.
41010         (Depends-on): Add getpagesize.
41011         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41012         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
41013         m4/mmap-anon.m4.
41014         (Depends-on): Add getpagesize.
41015         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41016         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
41017         m4/mmap-anon.m4.
41018         (Depends-on): Add getpagesize.
41019         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41020         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
41021         m4/mmap-anon.m4.
41022         (Depends-on): Add getpagesize.
41023         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
41024
41025 2009-05-12  Bruno Haible  <bruno@clisp.org>
41026
41027         Tests for module 'alignof'.
41028         * modules/alignof-tests: New file.
41029         * tests/test-alignof.c: New file.
41030
41031 2009-05-12  Bruno Haible  <bruno@clisp.org>
41032
41033         Fix alignof macro.
41034         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
41035         vendor compilers that are always correct.
41036
41037 2009-05-12  Bruno Haible  <bruno@clisp.org>
41038
41039         Make the MAP_ANONYMOUS detection work on HP-UX 11.
41040         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
41041         not whether its fully works.
41042
41043 2009-05-12  Bruno Haible  <bruno@clisp.org>
41044
41045         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
41046
41047 2009-05-12  Jim Meyering  <meyering@redhat.com>
41048
41049         * top/maint.mk: Adjust backslash alignment.
41050
41051 2009-05-11  Simon Josefsson  <simon@josefsson.org>
41052
41053         * top/maint.mk: Make $(srcdir)/build-aux configurable.
41054
41055 2009-05-11  Eric Blake  <ebb9@byu.net>
41056
41057         argp: avoid undefined behavior
41058         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
41059         macros.
41060
41061 2009-05-08  Simon Josefsson  <simon@josefsson.org>
41062
41063         * tests/test-vc-list-files-git.sh: Do git config of user.email and
41064         user.name to prevent git commit from complaining.
41065
41066 2009-05-10  Bruno Haible  <bruno@clisp.org>
41067
41068         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
41069         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
41070         it rewrites every file name only once.
41071         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
41072
41073 2009-05-08  Bruno Haible  <bruno@clisp.org>
41074
41075         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
41076         instead of 'max'.
41077
41078 2009-05-08  Simon Josefsson  <simon@josefsson.org>
41079
41080         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
41081         sockaddr_storage test.
41082
41083 2009-05-07  Simon Josefsson  <simon@josefsson.org>
41084
41085         * modules/sys_socket (Makefile.am): Substitute
41086         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
41087         * m4/sys_socket_h.m4: Check for sockaddr_storage.
41088         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
41089         * tests/test-sys_socket.c: Check sockaddr_storage.
41090
41091 2009-05-08  Bruno Haible  <bruno@clisp.org>
41092
41093         New module 'alignof'.
41094         * lib/alignof.h: New file.
41095         * modules/alignof: New file.
41096
41097 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41098             Bruno Haible  <bruno@clisp.org>
41099
41100         Fix test-file-has-acl on FreeBSD.
41101         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
41102         mask is implicitly added.
41103         * tests/test-file-has-acl.c: Include <signal.h>.
41104         (main): Terminate the test after 5 seconds.
41105         * modules/acl-tests (configure.ac): Check for alarm function.
41106
41107 2009-05-04  Bruno Haible  <bruno@clisp.org>
41108
41109         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
41110         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
41111         * modules/errno (configure.ac): Drop AC_REQUIRE.
41112         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
41113         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
41114
41115 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41116
41117         * modules/glob-tests: New module.
41118         * tests/test-glob.c: Add.
41119
41120 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41121
41122         * modules/fnmatch-tests: New module.
41123         * tests/test-fnmatch.c: Add.
41124
41125 2009-05-04  Eric Blake  <ebb9@byu.net>
41126
41127         maint: make the new no-submodule-changes rule VPATH-safe
41128         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
41129
41130 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41131             Bruno Haible  <bruno@clisp.org>
41132
41133         acl: Fix infinite loop on FreeBSD.
41134         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
41135         of return value from acl_get_entry.
41136         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
41137         Likewise.
41138
41139 2009-05-03  Bruno Haible  <bruno@clisp.org>
41140
41141         * lib/acl-internal.h (acl_entries): Clarify return value.
41142         * lib/acl_entries.c (acl_entries): Likewise.
41143
41144 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41145
41146         Bug fix in acl module.
41147         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
41148
41149 2009-05-03  Bruno Haible  <bruno@clisp.org>
41150
41151         Create gperf-generated file in the source dir, not in the build dir.
41152         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
41153         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
41154         * modules/unicase/locale-language (unicase/locale-languages.h):
41155         Likewise.
41156         * modules/unicase/special-casing (unicase/special-casing-table.h):
41157         Likewise.
41158         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
41159         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
41160         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
41161         Reported by Ralf Wildenhues.
41162
41163 2009-05-03  Bruno Haible  <bruno@clisp.org>
41164
41165         * modules/fnmatch (Description, configure.ac): Taken from
41166         fnmatch-posix.
41167         * modules/fnmatch-posix: Turn into a symbolic reference to the
41168         'fnmatch' module, and deprecate.
41169         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
41170
41171 2009-05-03  Bruno Haible  <bruno@clisp.org>
41172
41173         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
41174         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
41175         Reported by Ralf Wildenhues.
41176
41177 2009-05-04  Simon Josefsson  <simon@josefsson.org>
41178
41179         * m4/fnmatch.m4: Fix fnmatch re-define.
41180
41181 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
41182
41183         priv-set: new module and tests; adapt write-any-file
41184         * lib/priv-set.c: New file.
41185         * lib/priv-set.h: New file.
41186         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
41187         * lib/write-any-file.c: Simplify by using priv-set module.
41188         * m4/priv-set.m4: New file.
41189         * modules/priv-set: New file.
41190         * modules/unlinkdir: Add dependency on priv-set module.
41191         * modules/write-any-file: Likewise.
41192
41193         Tests for module 'priv-set'.
41194         * modules/priv-set-tests: New file.
41195         * tests/test-priv-set.c: New file.
41196
41197 2009-05-03  Jim Meyering  <meyering@redhat.com>
41198             Bruno Haible  <bruno@clisp.org>
41199
41200         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
41201         use the converted UTF-8 variant of the name instead.
41202
41203 2009-05-03  Jim Meyering  <meyering@redhat.com>
41204
41205         tests: tighten some getdate tests
41206         * tests/test-getdate.c (main): Tighten tests: require equality,
41207         not just greater than.  Set TZ envvar to UTC0.
41208
41209 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
41210
41211         getdate: correctly interpret "next monday" when run on a Monday
41212         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
41213         that e.g., "next tues" (when run on a tuesday) results in a date
41214         that is one week in the future, and not today's date.
41215         I.e., add a week when the wday is the same as the current one.
41216         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
41217         and earlier by Martin Bernreuther and Jan Minář.
41218         * tests/test-getdate.c (main): Check that "next DAY" is always in
41219         the future and that "last DAY" is always in the past.
41220
41221 2009-05-02  Jim Meyering  <meyering@redhat.com>
41222
41223         build: ensure that a release build fails when a submodule is unclean
41224         * top/maint.mk (no-submodule-changes): New rule.
41225         (alpha beta major): Depend on it.
41226
41227 2009-05-02  Bruno Haible  <bruno@clisp.org>
41228
41229         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
41230         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
41231         shell variable gl_fnmatch_required to detect which variant is
41232         requested.
41233         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
41234         gl_FUNC_FNMATCH_POSIX.
41235         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
41236         exclude fnmatch-posix.
41237
41238 2009-05-02  Bruno Haible  <bruno@clisp.org>
41239
41240         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
41241         * modules/mbsrtowcs (License): Change to LGPLv2+.
41242         * modules/strnlen1 (License): Likewise.
41243         Reported by Simon Josefsson.
41244
41245 2009-05-02  Bruno Haible  <bruno@clisp.org>
41246
41247         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
41248         "cross".
41249         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
41250         gnulib-tool was called with option --source-base=lib.
41251
41252 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41253
41254         Use automake *-local hooks without commands, for extensibility.
41255         * modules/localcharset (Makefile.am): Rename install-exec-local
41256         rule to install-exec-localcharset, and make it a prerequisite of
41257         install-exec-local.  Likewise, rename the uninstall-local rule to
41258         uninstall-localcharset, and make it a prerequisite of the former.
41259
41260 2009-05-01  Bruno Haible  <bruno@clisp.org>
41261
41262         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
41263         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
41264         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
41265         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
41266         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
41267         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
41268         m4/locale-zh.m4, m4/codeset.m4.
41269
41270         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
41271         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
41272         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
41273         m4/locale-zh.m4.
41274
41275         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
41276         REPLACE_WCRTOMB if mbstate_t must be replaced.
41277         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
41278         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
41279
41280 2009-05-01  Bruno Haible  <bruno@clisp.org>
41281
41282         Avoid compiler warnings when redefining macros defined by <libintl.h>.
41283         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
41284         dngettext, dcngettext, textdomain, bindtextdomain,
41285         bind_textdomain_codeset): Undefine before redefining.
41286
41287 2009-04-30  Bruno Haible  <bruno@clisp.org>
41288
41289         Fix bug introduced on 2009-04-25.
41290         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
41291         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
41292         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
41293         is defined.
41294         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
41295         is defined.
41296         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
41297         is defined.
41298         Reported by Elbert_Pol <elbert.pol@gmail.com>.
41299
41300 2009-04-28  Bruno Haible  <bruno@clisp.org>
41301
41302         Comment tweaks.
41303         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
41304         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
41305         * lib/unicase.h (u*_casexfrm): Likewise.
41306         Reported by Paolo Bonzini.
41307
41308 2009-04-28  Bruno Haible  <bruno@clisp.org>
41309
41310         Fix a compilation error.
41311         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
41312         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41313         Reported by Jim Meyering.
41314
41315 2009-04-27  Bruno Haible  <bruno@clisp.org>
41316
41317         New module 'libunistring'.
41318         * modules/libunistring: New file.
41319         * m4/libunistring.m4: New file.
41320         * MODULES.html.sh (Unicode string functions): Add it.
41321
41322 2009-04-27  Eric Blake  <ebb9@byu.net>
41323
41324         maint.mk: allow package-specific header to provide <config.h>
41325         * top/maint.mk (sc_require_config_h): New variable.
41326         (sc_require_config_h, sc_require_config_h_first): Use it.
41327
41328 2009-04-27  Simon Josefsson  <simon@josefsson.org>
41329
41330         * top/maint.mk (sc_avoid_if_before_free): Except
41331         useless-if-before-free script.
41332
41333 2009-04-27  Eric Blake  <ebb9@byu.net>
41334
41335         maintainer-makefile: depend on all required helper scripts
41336         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
41337         useless-if-before-free.
41338         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
41339         version, rather than assuming gnulib checkout is available.
41340         Reported by Simen Josefsson.
41341
41342 2009-04-26  Bruno Haible  <bruno@clisp.org>
41343
41344         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
41345         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
41346         "../" or "..".
41347
41348 2009-04-26  Bruno Haible  <bruno@clisp.org>
41349
41350         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
41351         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
41352         AC_LIB_HAVE_LINKFLAGS.
41353
41354 2009-04-26  Bruno Haible  <bruno@clisp.org>
41355
41356         Simplify calling convention of u*_conv_from_encoding.
41357         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
41358         u32_conv_from_encoding): Expect a resultbuf argument and return the
41359         result directly as a pointer.
41360         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
41361         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
41362         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
41363         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
41364         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
41365         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
41366         Update.
41367         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
41368         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
41369         * lib/vasnprintf.c (VASNPRINTF): Update.
41370         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
41371         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
41372         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
41373         * NEWS: Mention the change.
41374
41375 2009-04-26  Bruno Haible  <bruno@clisp.org>
41376
41377         Simplify calling convention of u*_conv_to_encoding.
41378         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
41379         u32_conv_to_encoding): Expect a resultbuf argument and return the
41380         result directly as a pointer.
41381         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
41382         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
41383         freeing scaled_offsets if mem_iconveha failed.
41384         * lib/unicase/u-casexfrm.h (FUNC): Update.
41385         * lib/uninorm/u-normxfrm.h (FUNC): Update.
41386         * lib/vasnprintf.c (VASNPRINTF): Update.
41387         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
41388         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
41389         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
41390         * NEWS: Mention the change.
41391
41392 2009-04-26  Bruno Haible  <bruno@clisp.org>
41393
41394         Avoid test failures on AIX and OSF/1.
41395         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
41396         malloc(0).
41397         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
41398         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
41399         Likewise.
41400         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
41401         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
41402         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
41403         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
41404         * doc/posix-functions/malloc.texi: Document the portability problem
41405         related to malloc(0).
41406
41407 2009-04-26  Bruno Haible  <bruno@clisp.org>
41408
41409         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
41410         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
41411         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
41412
41413 2009-04-25  Bruno Haible  <bruno@clisp.org>
41414
41415         Avoid link error when creating a namespace clean library.
41416         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
41417         as macro with arguments if already defined as an alias.
41418         * lib/signbitf.c (gl_signbitf): Don't undefine.
41419         * lib/signbitd.c (gl_signbitd): Don't undefine.
41420         * lib/signbitl.c (gl_signbitl): Don't undefine.
41421
41422 2009-04-25  Jim Meyering  <meyering@redhat.com>
41423
41424         vc-list-files: fix another quoting bug
41425         * build-aux/vc-list-files: Avoid sed backslash expansion
41426         of pathological directory names.
41427
41428 2009-04-25  Eric Blake  <ebb9@byu.net>
41429
41430         vc-list-files: fix shell quoting error
41431         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
41432         timestamp.
41433
41434 2009-04-25  Jim Meyering  <meyering@redhat.com>
41435
41436         vc-list-files: restore lost functionality with subdir argument
41437         * build-aux/vc-list-files: When given a non-"." sub-directory
41438         argument, substitute the $dir/ prefix back onto each resulting name.
41439         Otherwise, coreutils' root_tests check would fail.
41440
41441 2009-04-24  Eric Blake  <ebb9@byu.net>
41442
41443         vc-list-files: ignore git symlinks
41444         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
41445         than ls-files, to ignore git symlinks.
41446
41447         maint.mk: import improvements from m4
41448         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
41449         (move_if_change): Delete unused macro.
41450         (news-date-check, vc-diff-check): Support VPATH builds.
41451         (announcement): Likewise.  Split --bootstrap-tools list...
41452         (boostrap-tools): ...into separate list, which can be overridden
41453         in cfg.mk.
41454         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
41455         requiring dependency on useless-if-before-free module.
41456         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
41457         Support VPATH builds.
41458
41459 2009-04-24  Jim Meyering  <meyering@redhat.com>
41460
41461         maint.mk: remove coreutils-specific rules and variables
41462         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
41463         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
41464         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
41465
41466         maint.mk: remove obsolete rule
41467         * top/maint.mk (rel-check): Remove rule.
41468         (WGET, WGETFLAGS): Remove now-unused variables.
41469
41470 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41471
41472         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
41473         consistency.
41474
41475         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
41476         '$(PATH_SEPARATOR)' instead of ':'.
41477
41478 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41479
41480         * lib/getopt1.c (main): Use 'const' for static array.
41481
41482 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41483
41484         * top/maint.mk: Sync with coreutils.
41485         * NEWS: Explain incompatibilities.
41486
41487 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41488             Bruno Haible  <bruno@clisp.org>
41489
41490         Fix cross-compilation results.
41491         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
41492         statement, as third argument of AC_TRY_RUN.
41493         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
41494         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
41495         Likewise.
41496         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
41497         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
41498         Likewise.
41499         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
41500         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
41501         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
41502
41503 2009-04-20  Bruno Haible  <bruno@clisp.org>
41504
41505         Avoid test failure on mingw.
41506         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
41507
41508 2009-04-20  Bruno Haible  <bruno@clisp.org>
41509
41510         Avoid compilation error on mingw.
41511         * modules/localename-tests (Depends-on): Add locale.
41512
41513 2009-04-19  Bruno Haible  <bruno@clisp.org>
41514
41515         Support for building a shared library on Windows platforms.
41516         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
41517         (main): Test the presence of UNINORM_NFC here.
41518         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
41519         (main): Test the presence of UNINORM_NFD here.
41520         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
41521         (main): Test the presence of UNINORM_NFKC here.
41522         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
41523         (main): Test the presence of UNINORM_NFKD here.
41524
41525 2009-04-19  Bruno Haible  <bruno@clisp.org>
41526
41527         Avoid a compiler warning.
41528         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
41529         Change type of variable 'sequence'.
41530
41531 2009-04-19  Bruno Haible  <bruno@clisp.org>
41532
41533         * modules/configmake (Makefile.am): When the contents of configmake.h
41534         does not change, arrange to preserve its modification time.
41535
41536 2009-04-17  Simon Josefsson  <simon@josefsson.org>
41537
41538         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
41539         gettext domain.
41540
41541 2009-04-16  Jim Meyering  <meyering@redhat.com>
41542
41543         useless-if-before-free: improve conversion code
41544         * build-aux/useless-if-before-free: Adjust code-in-comment to match
41545         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
41546
41547 2009-04-14  Bruno Haible  <bruno@clisp.org>
41548
41549         * modules/fcntl (Depends-on): Add extensions.
41550         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
41551
41552 2009-04-12  Ben Pfaff  <blp@gnu.org>
41553
41554         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
41555         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
41556
41557 2009-03-20  Ben Pfaff  <blp@gnu.org>
41558
41559         Make rename replace existing destinations on Windows.
41560         * m4/rename.m4: Add test for Mingw.
41561         * lib/rename.c: Add rename replacement that uses MoveFileEx with
41562         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
41563         * doc/posix-functions/rename.texi: Document.
41564
41565 2009-04-10  Bruno Haible  <bruno@clisp.org>
41566
41567         New include file "iconveh.h".
41568         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
41569         * lib/striconveh.h: Include it.
41570         (enum iconv_ilseq_handler): Remove definition.
41571         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
41572         striconveh.h.
41573         * lib/striconveha.c: Include striconveh.h.
41574         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
41575         * modules/striconveh (Files): Add lib/iconveh.h.
41576         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
41577         lib/striconveh.h.
41578
41579 2009-04-10  Bruno Haible  <bruno@clisp.org>
41580
41581         * lib/uniconv.h: Update comment.
41582
41583 2009-04-10  Bruno Haible  <bruno@clisp.org>
41584
41585         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
41586         always.
41587         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
41588         * lib/unistr/u16-mbtouc-aux.c: Likewise.
41589         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
41590         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
41591         "unistring-notinline.h", so that the function gets defined always.
41592         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
41593         * lib/unistr/u8-uctomb.c: Likewise.
41594         * lib/unistr/u16-mbtouc.c: Likewise.
41595         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
41596         * lib/unistr/u16-uctomb.c: Likewise.
41597         * lib/unistr/u32-mbtouc.c: Likewise.
41598         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
41599         * lib/unistr/u32-uctomb.c: Likewise.
41600
41601 2009-04-10  Bruno Haible  <bruno@clisp.org>
41602
41603         Mark 'utime' obsolete.
41604         * modules/utime (Status, Notice): New sections.
41605         Suggested by Jim Meyering.
41606
41607         Fix cross-compile guess for utime test.
41608         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
41609         autoconf.
41610         * doc/posix-functions/utime.texi: Give more precisions.
41611         Reported by Jan <ipif@ymail.com>.
41612
41613 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
41614
41615         filevercmp: correct today's change
41616         * lib/filevercmp.c: Also handle coreutils' test inputs.
41617         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
41618
41619         Fix regression in 'filevercmp' module. Thanks Sven Joachim
41620         for reporting it.
41621         * lib/filevercmp.c: Special handle for "", "." and "..".
41622         * tests/test-filevercmp.c: Enlarge the set suite.
41623
41624 2009-04-07  Jim Meyering  <meyering@redhat.com>
41625
41626         useless-if-before-free: show how to remove braced useless free, too
41627         * build-aux/useless-if-before-free: still only in a comment, though.
41628
41629 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
41630
41631         maint.mk: import changes to syntax-check macros from coreutils
41632         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
41633         Use them in the relevant macros.
41634
41635 2009-04-06  Bruno Haible  <bruno@clisp.org>
41636
41637         Fix unportable use of bit-fields.
41638         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
41639         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
41640         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
41641
41642 2009-04-06  Bruno Haible  <bruno@clisp.org>
41643
41644         Avoid test failures on AIX and OSF/1.
41645         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
41646         that malloc(0) = NULL.
41647         * tests/unicase/test-u8-tolower.c (check): Likewise.
41648         * tests/unicase/test-u8-totitle.c (check): Likewise.
41649         * tests/unicase/test-u8-toupper.c (check): Likewise.
41650         * tests/unicase/test-u16-casefold.c (check): Likewise.
41651         * tests/unicase/test-u16-tolower.c (check): Likewise.
41652         * tests/unicase/test-u16-totitle.c (check): Likewise.
41653         * tests/unicase/test-u16-toupper.c (check): Likewise.
41654         * tests/unicase/test-u32-casefold.c (check): Likewise.
41655         * tests/unicase/test-u32-tolower.c (check): Likewise.
41656         * tests/unicase/test-u32-totitle.c (check): Likewise.
41657         * tests/unicase/test-u32-toupper.c (check): Likewise.
41658         * tests/uninorm/test-u8-nfc.c (check): Likewise.
41659         * tests/uninorm/test-u8-nfd.c (check): Likewise.
41660         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
41661         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
41662         * tests/uninorm/test-u16-nfc.c (check): Likewise.
41663         * tests/uninorm/test-u16-nfd.c (check): Likewise.
41664         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
41665         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
41666         * tests/uninorm/test-u32-nfc.c (check): Likewise.
41667         * tests/uninorm/test-u32-nfd.c (check): Likewise.
41668         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
41669         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
41670
41671 2009-04-05  Bruno Haible  <bruno@clisp.org>
41672
41673         Work around an autoconf limitation.
41674         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
41675         comment line if it would be longer than 3 KB.
41676
41677 2009-04-05  Bruno Haible  <bruno@clisp.org>
41678
41679         Avoid test failure with libiconv-1.13.
41680         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
41681         of the expected test results.
41682
41683 2009-04-05  Bruno Haible  <bruno@clisp.org>
41684
41685         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
41686         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
41687         that it should be installed.
41688
41689 2009-04-05  Bruno Haible  <bruno@clisp.org>
41690
41691         * gnulib-tool: New option --copy-file.
41692         (func_usage): Document it.
41693         (func_dest_tmpfilename): Moved out of func_import.
41694         (func_add_file, func_update_file): New functions, extracted from
41695         func_import.
41696         (func_import): Update.
41697
41698 2009-04-05  Karl Berry  <karl@gnu.org>
41699
41700         * README: prominently mention gnulib-tool.
41701         Rearrange sections so getting the code is near the top.
41702
41703 2009-04-05  Bruno Haible  <bruno@clisp.org>
41704
41705         * lib/unicase.h: Mention u*_cmp2.
41706         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
41707         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
41708         * lib/unicase/ulc-casecmp.c: Likewise.
41709         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
41710         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
41711         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
41712         unistr/u8-cmp.
41713         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
41714         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
41715         unistr/u16-cmp.
41716         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
41717         unistr/u32-cmp.
41718
41719         * lib/uninorm.h: Mention u*_cmp2.
41720         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
41721         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
41722         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
41723         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
41724         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
41725         unistr/u8-cmp.
41726         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
41727         unistr/u16-cmp.
41728         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
41729         unistr/u32-cmp.
41730
41731         New module 'unistr/u32-cmp2'.
41732         * lib/unistr/u32-cmp2.c: New file.
41733         * modules/unistr/u32-cmp2: New file.
41734
41735         New module 'unistr/u16-cmp2'.
41736         * lib/unistr/u16-cmp2.c: New file.
41737         * modules/unistr/u16-cmp2: New file.
41738
41739         New module 'unistr/u8-cmp2'.
41740         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
41741         * lib/unistr/u8-cmp2.c: New file.
41742         * lib/unistr/u-cmp2.h: New file.
41743         * modules/unistr/u8-cmp2: New file.
41744
41745 2009-04-05  Bruno Haible  <bruno@clisp.org>
41746
41747         * lib/unictype.h (uc_property_is_valid): New macro.
41748         * tests/unictype/test-pr_byname.c (main): Use it.
41749
41750         * lib/unistr.h: Doc fixes.
41751         * lib/uniconv.h: Doc fixes.
41752         * lib/unictype.h: Doc fixes.
41753
41754 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
41755
41756         Port coreutils 7.2 to Solaris 8.
41757
41758         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
41759         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
41760         for Solaris 8.  This is a bit of a hack, as it means it's the
41761         caller's responsibility to add -lnsl if needed, but most likely it
41762         won't be needed since only getaddrinfo uses this and getaddrinfo
41763         isn't needed on Solaris 8.
41764
41765         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
41766         problem to Solaris 8 encountered with coreutils 7.2, which
41767         resulted in a message "fnmatch.c:292: warning: passing argument 4
41768         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
41769         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
41770
41771 2009-04-03  Simon Josefsson  <simon@josefsson.org>
41772
41773         * m4/ld-version-script.m4: Add FIXME comment.
41774
41775 2009-04-02  Simon Josefsson  <simon@josefsson.org>
41776
41777         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
41778         SOVERSION variable.
41779
41780 2009-04-02  Bruno Haible  <bruno@clisp.org>
41781
41782         * Makefile (info, html, dvi, pdf): Combine the rules.
41783         Suggested by Jim Meyering.
41784
41785 2009-04-01  Bruno Haible  <bruno@clisp.org>
41786
41787         * Makefile (info, html, dvi, pdf): New targets.
41788         Reported by Reuben Thomas <rrt@sc3d.org>.
41789
41790 2009-04-01  Bruno Haible  <bruno@clisp.org>
41791
41792         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
41793         can be put into PATH.
41794         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
41795
41796 2009-04-01  Bruno Haible  <bruno@clisp.org>
41797
41798         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
41799
41800 2009-04-01  Bruno Haible  <bruno@clisp.org>
41801
41802         Rename module 'visibility'.
41803         * modules/lib-symbol-visibility: Renamed from modules/visibility.
41804         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
41805         * doc/gnulib.texi: Update.
41806         * MODULES.html.sh (Misc): Update.
41807         * NEWS: Mention the change.
41808
41809 2009-04-01  Simon Josefsson  <simon@josefsson.org>
41810
41811         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
41812         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
41813         Eric Blake <ebb9@byu.net> for review.
41814         * MODULES.html.sh: Add lib-msvc-compat.
41815         * doc/gnulib.texi: Link to new section.
41816         * m4/ld-output-def.m4: New file.
41817         * doc/ld-output-def.texi: New file.
41818
41819 2009-04-01  Simon Josefsson  <simon@josefsson.org>
41820
41821         Rename ld-version-script to lib-symbol-versions.  Suggested by
41822         Bruno Haible <bruno@clisp.org>.
41823         * modules/ld-version-script: Renamed to lib-symbol-versions.
41824         * doc/ld-version-script.texi: Fix module name.
41825         * MODULES.html.sh: Add lib-symbol-versions.
41826
41827 2009-03-31  Simon Josefsson  <simon@josefsson.org>
41828
41829         * modules/u64-tests: New file.
41830         * tests/test-u64.c: New file.
41831
41832 2009-03-04  Simon Josefsson  <simon@josefsson.org>
41833
41834         * MODULES.html.sh: Mention u64.
41835         * modules/u64: New module.
41836         * modules/crypto/sha512: Depend on u64 module instead of providing
41837         u64.h.
41838
41839 2009-03-27  Eric Blake  <ebb9@byu.net>
41840
41841         test-strerror: make debugging EAI_SYSTEM easier
41842         * modules/getaddrinfo-tests (Depends-on): Add strerror.
41843         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
41844         failure was EAI_SYSTEM.
41845
41846 2009-03-25  Bruno Haible  <bruno@clisp.org>
41847
41848         Fix a problem with --enable-relocatable on Solaris 7.
41849         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
41850         since 2008-02-24.
41851
41852 2009-03-25  Eric Blake  <ebb9@byu.net>
41853
41854         test-sockets: avoid gcc warning
41855         * tests/test-sockets.c (main): Silence compiler warning.
41856
41857 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
41858
41859         New modules nproc, pthread, contributed by Glen Lenker.
41860
41861         * MODULES.html.sh: Add pthread, nproc.
41862         * lib/nproc.c: New file.
41863         * lib/nproc.h: New file.
41864         * lib/pthread.in.h: New file.
41865         * m4/pthread.m4: New file.
41866         * modules/nproc: New file.
41867         * modules/pthread: New file.
41868
41869 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41870
41871         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
41872         New variable.
41873
41874 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
41875
41876         filevercmp: handle simple~ and numbered.~3~ backup suffixes
41877         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
41878         * tests/test-filevercmp.c: Add tests for backup suffixes.
41879
41880 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41881
41882         * modules/stdlib (Depends-on): Add stdint, needed when defining
41883         struct random_data on, for example, HP-UX 10.20.  Reported by
41884         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41885
41886 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41887
41888         * lib/readline.c (readline): Call fflush on stdout after printing
41889         prompt.
41890
41891 2009-03-20  Bruno Haible  <bruno@clisp.org>
41892
41893         Remove dependency from 'close' module to -lws2_32 on native Windows.
41894         * lib/close-hook.h: New file.
41895         * lib/close-hook.c: New file.
41896         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
41897         w32sock.h.
41898         (_gl_close_fd_maybe_socket): Remove function.
41899         (rpl_close): Invoke execute_all_close_hooks instead of
41900         _gl_close_fd_maybe_socket.
41901         * lib/sockets.c: Include close-hook.h, w32sock.h.
41902         (close_fd_maybe_socket): New function, essentially from lib/close.c.
41903         (close_sockets_hook): New variable.
41904         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
41905         (gl_sockets_cleanup): Unregister it.
41906         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
41907         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
41908         * modules/close-hook: New file.
41909         * modules/close (Files): Remove lib/w32sock.h.
41910         (Depends-on): Add close-hook.
41911         (Link): Remove section.
41912         * modules/sockets (Files): Add lib/w32sock.h.
41913         (Depends-on): Add close-hook.
41914         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
41915         invocation.
41916         * NEWS: Mention that LIB_CLOSE is gone.
41917
41918 2009-03-23  Eric Blake  <ebb9@byu.net>
41919
41920         signal-tests: test previous patch
41921         * tests/test-signal.c: New file.
41922         * modules/signal-tests: Likewise.
41923
41924         signal.h: always support 'volatile sig_atomic_t'
41925         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
41926         (gl_SIGNAL_H_DEFAULTS): Add a default.
41927         * modules/signal (Makefile.am): Substitute if needed.
41928         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
41929         users can blindly add volatile.
41930         * doc/posix-headers/signal.texi (signal.h): Document it.
41931         Reported by Matthew Woehlke.
41932
41933 2009-03-23  Jim Meyering  <meyering@redhat.com>
41934
41935         pathmax: PATH_MAX: use pathconf only when available
41936         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
41937         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
41938         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
41939         This avoids a link failure in a PSP cross-compilation environment
41940         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
41941
41942         * lib/vasnprintf.c (divide): Fix typo in comment.
41943
41944 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41945
41946         * gnulib-tool (func_filter_filelist): Fix comment.
41947
41948 2009-03-20  Bruno Haible  <bruno@clisp.org>
41949
41950         Make sockets.h self-contained.
41951         * lib/sockets.c: Include sockets.h first.
41952         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
41953
41954 2009-03-19  Eric Blake  <ebb9@byu.net>
41955
41956         doc: mention more functions added in cygwin 1.7.0
41957         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
41958         addition.
41959         * doc/posix-functions/log2f.texi: Likewise.
41960
41961 2009-03-19  Jim Meyering  <meyering@redhat.com>
41962
41963         fsusage: avoid syntax error due to statement-before-declaration
41964         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
41965         after all declarations.  Reported by Matthew Woehlke in
41966         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
41967
41968 2009-03-18  Eric Blake  <ebb9@byu.net>
41969
41970         build-aux/compile: sync from automake
41971         * build-aux/compile: New file, from automake.
41972         * config/srclist.txt: Mention build-aux/compile.
41973
41974 2009-03-17  Bruno Haible  <bruno@clisp.org>
41975
41976         * lib/git-merge-changelog.c: Fix typo in comment.
41977         Reported by Reuben Thomas <rrt@sc3d.org>.
41978
41979 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
41980
41981         * m4/regex.m4: update and improve help for
41982         --without-included-regex.
41983
41984 2009-03-17  Simon Josefsson  <simon@josefsson.org>
41985
41986         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
41987         failure on missing include files.
41988
41989 2009-03-17  Eric Blake  <ebb9@byu.net>
41990
41991         doc: mention more functions added in cygwin 1.7.0
41992         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
41993         addition.
41994         * doc/posix-functions/fwscanf.texi: Likewise.
41995         * doc/posix-functions/swprintf.texi: Likewise.
41996         * doc/posix-functions/swscanf.texi: Likewise.
41997         * doc/posix-functions/vfwprintf.texi: Likewise.
41998         * doc/posix-functions/vfwscanf.texi: Likewise.
41999         * doc/posix-functions/vswprintf.texi: Likewise.
42000         * doc/posix-functions/vswscanf.texi: Likewise.
42001         * doc/posix-functions/vwprintf.texi: Likewise.
42002         * doc/posix-functions/vwscanf.texi: Likewise.
42003         * doc/posix-functions/wcscasecmp.texi: Likewise.
42004         * doc/posix-functions/wcsdup.texi: Likewise.
42005         * doc/posix-functions/wcsftime.texi: Likewise.
42006         * doc/posix-functions/wcsncasecmp.texi: Likewise.
42007         * doc/posix-functions/wprintf.texi: Likewise.
42008         * doc/posix-functions/wscanf.texi: Likewise.
42009         * doc/glibc-functions/gethostbyname2.texi: Likewise.
42010
42011 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42012
42013         maint.mk: really add $(AM_MAKEFLAGS)
42014         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
42015         was inadvertently omitted in the last commit.
42016         Spotted by Bruno Haible.
42017
42018         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
42019         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
42020         $(AM_MAKEFLAGS)' rather than plain `make'.
42021
42022         gnulib-tool: execute $MAKE not make
42023         * gnulib-tool: Default $MAKE to 'make'.
42024         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
42025         than make.  Initialize $MAKE in the do-autobuild script.
42026
42027         gnulib-tool: use $MAKE not make in generated files
42028         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
42029         make, in generated files.  Initialize $MAKE in the do-autobuild
42030         script.
42031
42032         * top/GNUmakefile (_have-git-version-gen): Fix typo.
42033
42034         GNUmakefile: disable parallelism only for multiple, recursive targets
42035         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
42036         additions in the Makefile.
42037         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
42038         by Automake.
42039         (.NOTPARALLEL): Only disable parallel builds if multiple targets
42040         are listed on the command line and at least one of them is
42041         listed in $(ALL_RECURSIVE_TARGETS).
42042
42043 2009-03-14  Bruno Haible  <bruno@clisp.org>
42044
42045         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
42046         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
42047         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
42048         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
42049         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
42050         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
42051         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
42052         unistr/u8-uctomb.
42053         * modules/unistr/u8-strchr (Depends-on): Likewise.
42054         * modules/unistr/u8-strrchr (Depends-on): Likewise.
42055         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
42056         unistr/u16-uctomb.
42057         * modules/unistr/u16-strchr (Depends-on): Likewise.
42058         * modules/unistr/u16-strrchr (Depends-on): Likewise.
42059
42060 2009-03-12  Bruno Haible  <bruno@clisp.org>
42061
42062         Work around select() bug on Interix 3.5.
42063         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
42064         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
42065         * m4/select.m4: New file.
42066         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
42067         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
42068         * modules/select (Files): Add m4/select.m4.
42069         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
42070         * modules/nanosleep (Depends-on): Add select.
42071         * modules/poll (Depends-on): Likewise.
42072         * doc/posix-functions/select.texi: Mention the Interix bug.
42073         Reported by Markus Duft <mduft@gentoo.org>.
42074
42075         * lib/select.c: Renamed from lib/winsock-select.c.
42076         * modules/select (Files): Add lib/select.c, remove
42077         lib/winsock-select.c.
42078         (configure.ac): Update.
42079
42080 2009-03-12  Jim Meyering  <meyering@redhat.com>
42081
42082         avoid gcc warnings about unused macro definitions
42083         * lib/readtokens.c (STREQ): Remove unused definition.
42084         * lib/xmalloc.c (SIZE_MAX): Likewise.
42085         * lib/openat-die.c (N_): Likewise.
42086         * lib/mountlist.c (SIZE_MAX): Remove definition.
42087         Instead, include <stdint.h>.
42088         * lib/readutmp.c: Likewise.
42089         * modules/readutmp (Depends-on): Add stdint.
42090         * modules/mountlist (Depends-on): Add stdint.
42091         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
42092
42093 2009-03-10  Bruno Haible  <bruno@clisp.org>
42094
42095         Tests for module 'mbmemcasecoll'.
42096         * modules/mbmemcasecoll-tests: New file.
42097         * tests/test-mbmemcasecoll1.sh: New file.
42098         * tests/test-mbmemcasecoll2.sh: New file.
42099         * tests/test-mbmemcasecoll3.sh: New file.
42100         * tests/test-mbmemcasecoll.c: New file.
42101
42102         New module 'mbmemcasecoll'.
42103         * lib/mbmemcasecoll.h: New file.
42104         * lib/mbmemcasecoll.c: New file.
42105         * modules/mbmemcasecoll: New file.
42106
42107         * tests/test-mbmemcasecmp.h: New file, extracted from
42108         tests/test-mbmemcasecmp.c.
42109         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
42110         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
42111         (main): Update.
42112         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
42113
42114 2009-03-09  Bruno Haible  <bruno@clisp.org>
42115
42116         Tests for module 'mbmemcasecmp'.
42117         * modules/mbmemcasecmp-tests: New file.
42118         * tests/test-mbmemcasecmp1.sh: New file.
42119         * tests/test-mbmemcasecmp2.sh: New file.
42120         * tests/test-mbmemcasecmp3.sh: New file.
42121         * tests/test-mbmemcasecmp.c: New file.
42122
42123         New module 'mbmemcasecmp'.
42124         * lib/mbmemcasecmp.h: New file.
42125         * lib/mbmemcasecmp.c: New file.
42126         * modules/mbmemcasecmp: New file.
42127
42128 2009-03-09  Bruno Haible  <bruno@clisp.org>
42129
42130         Tests for module 'unicase/ulc-casecoll'.
42131         * modules/unicase/ulc-casecoll-tests: New file.
42132         * tests/unicase/test-ulc-casecoll1.sh: New file.
42133         * tests/unicase/test-ulc-casecoll2.sh: New file.
42134         * tests/unicase/test-ulc-casecoll.c: New file.
42135
42136         New module 'unicase/ulc-casecoll'.
42137         * lib/unicase.h (ulc_casecoll): New declaration.
42138         * lib/unicase/ulc-casecoll.c: New file.
42139         * modules/unicase/ulc-casecoll: New file.
42140
42141         New module 'unicase/ulc-casexfrm'.
42142         * lib/unicase.h (ulc_casexfrm): New declaration.
42143         * lib/unicase/ulc-casexfrm.c: New file.
42144         * modules/unicase/ulc-casexfrm: New file.
42145
42146 2009-03-09  Bruno Haible  <bruno@clisp.org>
42147
42148         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
42149         invocations.
42150
42151         * m4/mbscasecmp.m4: Remove file.
42152         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
42153         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
42154
42155         * m4/mbscasestr.m4: Remove file.
42156         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
42157         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
42158
42159         * m4/mbschr.m4: Remove file.
42160         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
42161         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
42162
42163         * m4/mbscspn.m4: Remove file.
42164         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
42165         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
42166
42167         * m4/mbslen.m4: Remove file.
42168         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
42169         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
42170
42171         * m4/mbsncasecmp.m4: Remove file.
42172         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
42173         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
42174
42175         * m4/mbsnlen.m4: Remove file.
42176         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
42177         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
42178
42179         * m4/mbspbrk.m4: Remove file.
42180         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
42181         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
42182
42183         * m4/mbspcasecmp.m4: Remove file.
42184         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
42185         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
42186
42187         * m4/mbsrchr.m4: Remove file.
42188         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
42189         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
42190
42191         * m4/mbssep.m4: Remove file.
42192         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
42193         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
42194
42195         * m4/mbsspn.m4: Remove file.
42196         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
42197         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
42198
42199         * m4/mbsstr.m4: Remove file.
42200         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
42201         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
42202
42203         * m4/mbstok_r.m4: Remove file.
42204         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
42205         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
42206
42207         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
42208
42209         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
42210         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
42211
42212         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
42213
42214 2009-03-08  Bruno Haible  <bruno@clisp.org>
42215
42216         Tests for module 'unicase/ulc-casecmp'.
42217         * modules/unicase/ulc-casecmp-tests: New file.
42218         * tests/unicase/test-ulc-casecmp1.sh: New file.
42219         * tests/unicase/test-ulc-casecmp2.sh: New file.
42220         * tests/unicase/test-ulc-casecmp.c: New file.
42221
42222         New module 'unicase/ulc-casecmp'.
42223         * lib/unicase.h (ulc_casecmp): New declaration.
42224         * lib/unicase/ulc-casecmp.c: New file.
42225         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
42226         'const SRC_UNIT *'.
42227         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
42228         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
42229         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
42230         * modules/unicase/ulc-casecmp: New file.
42231
42232         Tests for module 'unicase/u32-is-cased'.
42233         * modules/unicase/u32-is-cased-tests: New file.
42234         * tests/unicase/test-u32-is-cased.c: New file.
42235
42236         Tests for module 'unicase/u16-is-cased'.
42237         * modules/unicase/u16-is-cased-tests: New file.
42238         * tests/unicase/test-u16-is-cased.c: New file.
42239
42240         Tests for module 'unicase/u8-is-cased'.
42241         * modules/unicase/u8-is-cased-tests: New file.
42242         * tests/unicase/test-u8-is-cased.c: New file.
42243         * tests/unicase/test-is-cased.h: New file.
42244
42245         New module 'unicase/u32-is-cased'.
42246         * lib/unicase/u32-is-cased.c: New file.
42247         * modules/unicase/u32-is-cased: New file.
42248
42249         New module 'unicase/u16-is-cased'.
42250         * lib/unicase/u16-is-cased.c: New file.
42251         * modules/unicase/u16-is-cased: New file.
42252
42253         New module 'unicase/u8-is-cased'.
42254         * lib/unicase/u8-is-cased.c: New file.
42255         * lib/unicase/u-is-cased.h: New file.
42256         * modules/unicase/u8-is-cased: New file.
42257
42258         Tests for module 'unicase/u32-is-casefolded'.
42259         * modules/unicase/u32-is-casefolded-tests: New file.
42260         * tests/unicase/test-u32-is-casefolded.c: New file.
42261
42262         Tests for module 'unicase/u16-is-casefolded'.
42263         * modules/unicase/u16-is-casefolded-tests: New file.
42264         * tests/unicase/test-u16-is-casefolded.c: New file.
42265
42266         Tests for module 'unicase/u8-is-casefolded'.
42267         * modules/unicase/u8-is-casefolded-tests: New file.
42268         * tests/unicase/test-u8-is-casefolded.c: New file.
42269         * tests/unicase/test-is-casefolded.h: New file.
42270
42271         New module 'unicase/u32-is-casefolded'.
42272         * lib/unicase/u32-is-casefolded.c: New file.
42273         * modules/unicase/u32-is-casefolded: New file.
42274
42275         New module 'unicase/u16-is-casefolded'.
42276         * lib/unicase/u16-is-casefolded.c: New file.
42277         * modules/unicase/u16-is-casefolded: New file.
42278
42279         New module 'unicase/u8-is-casefolded'.
42280         * lib/unicase/u8-is-casefolded.c: New file.
42281         * modules/unicase/u8-is-casefolded: New file.
42282
42283         Tests for module 'unicase/u32-is-titlecase'.
42284         * modules/unicase/u32-is-titlecase-tests: New file.
42285         * tests/unicase/test-u32-is-titlecase.c: New file.
42286
42287         Tests for module 'unicase/u16-is-titlecase'.
42288         * modules/unicase/u16-is-titlecase-tests: New file.
42289         * tests/unicase/test-u16-is-titlecase.c: New file.
42290
42291         Tests for module 'unicase/u8-is-titlecase'.
42292         * modules/unicase/u8-is-titlecase-tests: New file.
42293         * tests/unicase/test-u8-is-titlecase.c: New file.
42294         * tests/unicase/test-is-titlecase.h: New file.
42295
42296         New module 'unicase/u32-is-titlecase'.
42297         * lib/unicase/u32-is-titlecase.c: New file.
42298         * modules/unicase/u32-is-titlecase: New file.
42299
42300         New module 'unicase/u16-is-titlecase'.
42301         * lib/unicase/u16-is-titlecase.c: New file.
42302         * modules/unicase/u16-is-titlecase: New file.
42303
42304         New module 'unicase/u8-is-titlecase'.
42305         * lib/unicase/u8-is-titlecase.c: New file.
42306         * modules/unicase/u8-is-titlecase: New file.
42307
42308         Tests for module 'unicase/u32-is-lowercase'.
42309         * modules/unicase/u32-is-lowercase-tests: New file.
42310         * tests/unicase/test-u32-is-lowercase.c: New file.
42311
42312         Tests for module 'unicase/u16-is-lowercase'.
42313         * modules/unicase/u16-is-lowercase-tests: New file.
42314         * tests/unicase/test-u16-is-lowercase.c: New file.
42315
42316         Tests for module 'unicase/u8-is-lowercase'.
42317         * modules/unicase/u8-is-lowercase-tests: New file.
42318         * tests/unicase/test-u8-is-lowercase.c: New file.
42319         * tests/unicase/test-is-lowercase.h: New file.
42320
42321         New module 'unicase/u32-is-lowercase'.
42322         * lib/unicase/u32-is-lowercase.c: New file.
42323         * modules/unicase/u32-is-lowercase: New file.
42324
42325         New module 'unicase/u16-is-lowercase'.
42326         * lib/unicase/u16-is-lowercase.c: New file.
42327         * modules/unicase/u16-is-lowercase: New file.
42328
42329         New module 'unicase/u8-is-lowercase'.
42330         * lib/unicase/u8-is-lowercase.c: New file.
42331         * modules/unicase/u8-is-lowercase: New file.
42332
42333         Tests for module 'unicase/u32-is-uppercase'.
42334         * modules/unicase/u32-is-uppercase-tests: New file.
42335         * tests/unicase/test-u32-is-uppercase.c: New file.
42336
42337         Tests for module 'unicase/u16-is-uppercase'.
42338         * modules/unicase/u16-is-uppercase-tests: New file.
42339         * tests/unicase/test-u16-is-uppercase.c: New file.
42340
42341         Tests for module 'unicase/u8-is-uppercase'.
42342         * modules/unicase/u8-is-uppercase-tests: New file.
42343         * tests/unicase/test-u8-is-uppercase.c: New file.
42344         * tests/unicase/test-is-uppercase.h: New file.
42345
42346         New module 'unicase/u32-is-uppercase'.
42347         * lib/unicase/u32-is-uppercase.c: New file.
42348         * modules/unicase/u32-is-uppercase: New file.
42349
42350         New module 'unicase/u16-is-uppercase'.
42351         * lib/unicase/u16-is-uppercase.c: New file.
42352         * modules/unicase/u16-is-uppercase: New file.
42353
42354         New module 'unicase/u8-is-uppercase'.
42355         * lib/unicase/u8-is-uppercase.c: New file.
42356         * modules/unicase/u8-is-uppercase: New file.
42357
42358         New module 'unicase/u32-is-invariant'.
42359         * lib/unicase/u32-is-invariant.c: New file.
42360         * modules/unicase/u32-is-invariant: New file.
42361
42362         New module 'unicase/u16-is-invariant'.
42363         * lib/unicase/u16-is-invariant.c: New file.
42364         * modules/unicase/u16-is-invariant: New file.
42365
42366         New module 'unicase/u8-is-invariant'.
42367         * lib/unicase/u8-is-invariant.c: New file.
42368         * lib/unicase/invariant.h: New file.
42369         * lib/unicase/u-is-invariant.h: New file.
42370         * modules/unicase/u8-is-invariant: New file.
42371
42372         Tests for module 'unicase/u32-casecoll'.
42373         * modules/unicase/u32-casecoll-tests: New file.
42374         * tests/unicase/test-u32-casecoll.c: New file.
42375
42376         Tests for module 'unicase/u16-casecoll'.
42377         * modules/unicase/u16-casecoll-tests: New file.
42378         * tests/unicase/test-u16-casecoll.c: New file.
42379
42380         Tests for module 'unicase/u8-casecoll'.
42381         * modules/unicase/u8-casecoll-tests: New file.
42382         * tests/unicase/test-u8-casecoll.c: New file.
42383
42384         New module 'unicase/u32-casecoll'.
42385         * lib/unicase/u32-casecoll.c: New file.
42386         * modules/unicase/u32-casecoll: New file.
42387
42388         New module 'unicase/u16-casecoll'.
42389         * lib/unicase/u16-casecoll.c: New file.
42390         * modules/unicase/u16-casecoll: New file.
42391
42392         New module 'unicase/u8-casecoll'.
42393         * lib/unicase/u8-casecoll.c: New file.
42394         * lib/unicase/u-casecoll.h: New file.
42395         * modules/unicase/u8-casecoll: New file.
42396
42397         New module 'unicase/u32-casexfrm'.
42398         * lib/unicase/u32-casexfrm.c: New file.
42399         * modules/unicase/u32-casexfrm: New file.
42400
42401         New module 'unicase/u16-casexfrm'.
42402         * lib/unicase/u16-casexfrm.c: New file.
42403         * modules/unicase/u16-casexfrm: New file.
42404
42405         New module 'unicase/u8-casexfrm'.
42406         * lib/unicase/u8-casexfrm.c: New file.
42407         * lib/unicase/u-casexfrm.h: New file.
42408         * modules/unicase/u8-casexfrm: New file.
42409
42410         Tests for module 'unicase/u32-casecmp'.
42411         * modules/unicase/u32-casecmp-tests: New file.
42412         * tests/unicase/test-u32-casecmp.c: New file.
42413
42414         Tests for module 'unicase/u16-casecmp'.
42415         * modules/unicase/u16-casecmp-tests: New file.
42416         * tests/unicase/test-u16-casecmp.c: New file.
42417
42418         Tests for module 'unicase/u8-casecmp'.
42419         * modules/unicase/u8-casecmp-tests: New file.
42420         * tests/unicase/test-u8-casecmp.c: New file.
42421         * tests/unicase/test-casecmp.h: New file.
42422
42423         New module 'unicase/u32-casecmp'.
42424         * lib/unicase/u32-casecmp.c: New file.
42425         * modules/unicase/u32-casecmp: New file.
42426
42427         New module 'unicase/u16-casecmp'.
42428         * lib/unicase/u16-casecmp.c: New file.
42429         * modules/unicase/u16-casecmp: New file.
42430
42431         New module 'unicase/u8-casecmp'.
42432         * lib/unicase/u8-casecmp.c: New file.
42433         * lib/unicase/u-casecmp.h: New file.
42434         * modules/unicase/u8-casecmp: New file.
42435
42436         Tests for module 'unicase/u32-casefold'.
42437         * modules/unicase/u32-casefold-tests: New file.
42438         * tests/unicase/test-u32-casefold.c: New file.
42439
42440         Tests for module 'unicase/u16-casefold'.
42441         * modules/unicase/u16-casefold-tests: New file.
42442         * tests/unicase/test-u16-casefold.c: New file.
42443
42444         Tests for module 'unicase/u8-casefold'.
42445         * modules/unicase/u8-casefold-tests: New file.
42446         * tests/unicase/test-u8-casefold.c: New file.
42447
42448         New module 'unicase/u32-casefold'.
42449         * lib/unicase/u32-casefold.c: New file.
42450         * modules/unicase/u32-casefold: New file.
42451
42452         New module 'unicase/u16-casefold'.
42453         * lib/unicase/u16-casefold.c: New file.
42454         * modules/unicase/u16-casefold: New file.
42455
42456         New module 'unicase/u8-casefold'.
42457         * lib/unicase/u8-casefold.c: New file.
42458         * lib/unicase/u-casefold.h: New file.
42459         * modules/unicase/u8-casefold: New file.
42460
42461         New module 'unicase/tocasefold'.
42462         * lib/unicase/casefold.h: New file.
42463         * lib/unicase/tocasefold.c: New file.
42464         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
42465         * modules/unicase/tocasefold: New file.
42466
42467         Tests for module 'unicase/u32-totitle'.
42468         * modules/unicase/u32-totitle-tests: New file.
42469         * tests/unicase/test-u32-totitle.c: New file.
42470
42471         Tests for module 'unicase/u16-totitle'.
42472         * modules/unicase/u16-totitle-tests: New file.
42473         * tests/unicase/test-u16-totitle.c: New file.
42474
42475         Tests for module 'unicase/u8-totitle'.
42476         * modules/unicase/u8-totitle-tests: New file.
42477         * tests/unicase/test-u8-totitle.c: New file.
42478
42479         New module 'unicase/u32-totitle'.
42480         * lib/unicase/u32-totitle.c: New file.
42481         * modules/unicase/u32-totitle: New file.
42482
42483         New module 'unicase/u16-totitle'.
42484         * lib/unicase/u16-totitle.c: New file.
42485         * modules/unicase/u16-totitle: New file.
42486
42487         New module 'unicase/u8-totitle'.
42488         * lib/unicase/u8-totitle.c: New file.
42489         * lib/unicase/u-totitle.h: New file.
42490         * modules/unicase/u8-totitle: New file.
42491
42492         Tests for module 'unicase/u32-tolower'.
42493         * modules/unicase/u32-tolower-tests: New file.
42494         * tests/unicase/test-u32-tolower.c: New file.
42495
42496         Tests for module 'unicase/u16-tolower'.
42497         * modules/unicase/u16-tolower-tests: New file.
42498         * tests/unicase/test-u16-tolower.c: New file.
42499
42500         Tests for module 'unicase/u8-tolower'.
42501         * modules/unicase/u8-tolower-tests: New file.
42502         * tests/unicase/test-u8-tolower.c: New file.
42503
42504         New module 'unicase/u32-tolower'.
42505         * lib/unicase/u32-tolower.c: New file.
42506         * modules/unicase/u32-tolower: New file.
42507
42508         New module 'unicase/u16-tolower'.
42509         * lib/unicase/u16-tolower.c: New file.
42510         * modules/unicase/u16-tolower: New file.
42511
42512         New module 'unicase/u8-tolower'.
42513         * lib/unicase/u8-tolower.c: New file.
42514         * modules/unicase/u8-tolower: New file.
42515
42516         Tests for module 'unicase/u32-toupper'.
42517         * modules/unicase/u32-toupper-tests: New file.
42518         * tests/unicase/test-u32-toupper.c: New file.
42519
42520         Tests for module 'unicase/u16-toupper'.
42521         * modules/unicase/u16-toupper-tests: New file.
42522         * tests/unicase/test-u16-toupper.c: New file.
42523
42524         Tests for module 'unicase/u8-toupper'.
42525         * modules/unicase/u8-toupper-tests: New file.
42526         * tests/unicase/test-u8-toupper.c: New file.
42527
42528         New module 'unicase/u32-toupper'.
42529         * lib/unicase/u32-toupper.c: New file.
42530         * modules/unicase/u32-toupper: New file.
42531
42532         New module 'unicase/u16-toupper'.
42533         * lib/unicase/u16-toupper.c: New file.
42534         * modules/unicase/u16-toupper: New file.
42535
42536         New module 'unicase/u8-toupper'.
42537         * lib/unicase/u8-toupper.c: New file.
42538         * modules/unicase/u8-toupper: New file.
42539
42540         New module 'unicase/u32-casemap'.
42541         * lib/unicase/u32-casemap.c: New file.
42542         * modules/unicase/u32-casemap: New file.
42543
42544         New module 'unicase/u16-casemap'.
42545         * lib/unicase/u16-casemap.c: New file.
42546         * modules/unicase/u16-casemap: New file.
42547
42548         New module 'unicase/u8-casemap'.
42549         * lib/unicase/unicasemap.h: New file.
42550         * lib/unicase/u8-casemap.c: New file.
42551         * lib/unicase/u-casemap.h: New file.
42552         * modules/unicase/u8-casemap: New file.
42553
42554         New module 'unicase/special-casing'.
42555         * lib/unicase/special-casing.h: New file.
42556         * lib/unicase/special-casing.c: New file.
42557         * lib/unicase/special-casing-table.gperf: New file, generated by
42558         gen-uni-tables.c.
42559         * modules/unicase/special-casing: New file.
42560
42561         Tests for module 'unicase/locale-language'.
42562         * modules/unicase/locale-language-tests: New file.
42563         * tests/unicase/test-locale-language.sh: New file.
42564         * tests/unicase/test-locale-language.c: New file.
42565
42566         New module 'unicase/locale-language'.
42567         * lib/unicase/locale-language.c: New file.
42568         * lib/unicase/locale-languages.gperf: New file.
42569         * modules/unicase/locale-language: New file.
42570
42571         Generate more tables for case conversion and case folding.
42572         * lib/gen-uni-tables.c (SCC_*): New enum items.
42573         (struct special_casing_rule): New type.
42574         (casing_rules, num_casing_rules, allocated_casing_rules): New
42575         variables.
42576         (add_casing_rule, fill_casing_rules): New functions.
42577         (struct casefold_rule): New type.
42578         (casefolding_rules, num_casefolding_rules,
42579         allocated_casefolding_rules): New variables.
42580         (fill_casefolding_rules): New function.
42581         (unicode_casefold): New variable.
42582         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
42583         sort_casing_rules, output_casing_rules): New functions.
42584         (main): Accept to more arguments: SpecialCasing.txt and
42585         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
42586         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
42587         Output mapping for casefolding.
42588
42589         * lib/unicase.h: Include stdbool.h, uninorm.h.
42590         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
42591         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
42592         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
42593         arguments.
42594         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
42595         resultp arguments.
42596         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
42597         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
42598         resultp arguments.
42599         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
42600         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
42601         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
42602         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
42603         declarations.
42604         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
42605
42606 2009-03-08  Bruno Haible  <bruno@clisp.org>
42607
42608         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
42609         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
42610         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
42611         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
42612
42613 2009-03-07  Bruno Haible  <bruno@clisp.org>
42614
42615         Adjust u*_normcmp, u*_normcoll API.
42616         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
42617         u16_normcoll, u32_normcoll): Change failure conventions.
42618         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
42619         errno and return -1.
42620         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
42621
42622 2009-03-07  Bruno Haible  <bruno@clisp.org>
42623
42624         Tests for module 'uninorm/u32-normcoll'.
42625         * modules/uninorm/u32-normcoll-tests: New file.
42626         * tests/uninorm/test-u32-normcoll.c: New file.
42627
42628         Tests for module 'uninorm/u16-normcoll'.
42629         * modules/uninorm/u16-normcoll-tests: New file.
42630         * tests/uninorm/test-u16-normcoll.c: New file.
42631
42632         Tests for module 'uninorm/u8-normcoll'.
42633         * modules/uninorm/u8-normcoll-tests: New file.
42634         * tests/uninorm/test-u8-normcoll.c: New file.
42635
42636 2009-03-07  Bruno Haible  <bruno@clisp.org>
42637
42638         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
42639         tests/uninorm/test-u32-normcmp.c.
42640         * tests/uninorm/test-u32-normcmp.c: Include it.
42641         (test_nonascii): New function, extracted from main. Add some more
42642         tests.
42643         (main): Invoke test_ascii and test_nonascii.
42644         * modules/uninorm/u32-normcmp-tests (Files): Add
42645         tests/uninorm/test-u32-normcmp.h.
42646         (Depends-on): Remove uninorm/u32-normcmp.
42647
42648         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
42649         tests/uninorm/test-u16-normcmp.c.
42650         * tests/uninorm/test-u16-normcmp.c: Include it.
42651         (test_nonascii): New function, extracted from main. Add some more
42652         tests.
42653         (main): Invoke test_ascii and test_nonascii.
42654         * modules/uninorm/u16-normcmp-tests (Files): Add
42655         tests/uninorm/test-u16-normcmp.h.
42656         (Depends-on): Remove uninorm/u16-normcmp.
42657
42658         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
42659         tests/uninorm/test-u8-normcmp.c.
42660         * tests/uninorm/test-u8-normcmp.c: Include it.
42661         (test_nonascii): New function, extracted from main. Add some more
42662         tests.
42663         (main): Invoke test_ascii and test_nonascii.
42664         * modules/uninorm/u8-normcmp-tests (Files): Add
42665         tests/uninorm/test-u8-normcmp.h.
42666         (Depends-on): Remove uninorm/u8-normcmp.
42667
42668 2009-03-07  Bruno Haible  <bruno@clisp.org>
42669
42670         New module 'uninorm/u32-normcoll'.
42671         * lib/uninorm/u32-normcoll.c: New file.
42672         * modules/uninorm/u32-normcoll: New file.
42673
42674         New module 'uninorm/u16-normcoll'.
42675         * lib/uninorm/u16-normcoll.c: New file.
42676         * modules/uninorm/u16-normcoll: New file.
42677
42678         New module 'uninorm/u8-normcoll'.
42679         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
42680         declarations.
42681         * lib/uninorm/u8-normcoll.c: New file.
42682         * lib/uninorm/u-normcoll.h: New file.
42683         * modules/uninorm/u8-normcoll: New file.
42684
42685         New module 'uninorm/u32-normxfrm'.
42686         * lib/uninorm/u32-normxfrm.c: New file.
42687         * modules/uninorm/u32-normxfrm: New file.
42688
42689         New module 'uninorm/u16-normxfrm'.
42690         * lib/uninorm/u16-normxfrm.c: New file.
42691         * modules/uninorm/u16-normxfrm: New file.
42692
42693         New module 'uninorm/u8-normxfrm'.
42694         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
42695         declarations.
42696         * lib/uninorm/u8-normxfrm.c: New file.
42697         * lib/uninorm/u-normxfrm.h: New file.
42698         * modules/uninorm/u8-normxfrm: New file.
42699
42700 2009-03-07  Bruno Haible  <bruno@clisp.org>
42701
42702         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
42703         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
42704         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
42705
42706 2009-03-07  Bruno Haible  <bruno@clisp.org>
42707
42708         New module 'memxfrm'.
42709         * lib/memxfrm.h: New file.
42710         * lib/memxfrm.c: New file.
42711         * modules/memxfrm: New file.
42712
42713 2009-03-07  Bruno Haible  <bruno@clisp.org>
42714
42715         New module 'memcmp2'.
42716         * lib/memcmp2.h: New file.
42717         * lib/memcmp2.c: New file.
42718         * modules/memcmp2: New file.
42719
42720 2009-03-07  Bruno Haible  <bruno@clisp.org>
42721
42722         Tests for module 'uninorm/decomposing-form'.
42723         * modules/uninorm/decomposing-form-tests: New file.
42724         * tests/uninorm/test-decomposing-form.c: New file.
42725
42726         New module 'uninorm/decomposing-form'.
42727         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
42728         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
42729         Add 'decomposing_variant' field.
42730         * lib/uninorm/decomposing-form.c: New file.
42731         * lib/uninorm/nfc.c (uninorm_nfc): Update.
42732         * lib/uninorm/nfd.c (uninorm_nfd): Update.
42733         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
42734         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
42735         * modules/uninorm/decomposing-form: New file.
42736         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
42737         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
42738
42739 2009-03-07  Bruno Haible  <bruno@clisp.org>
42740
42741         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
42742         strings.
42743
42744 2009-03-06  Bruno Haible  <bruno@clisp.org>
42745
42746         Tests for module 'uninorm/u32-normcmp'.
42747         * tests/uninorm/test-u32-normcmp.c: New file.
42748         * modules/uninorm/u32-normcmp-tests: New file.
42749
42750         Tests for module 'uninorm/u16-normcmp'.
42751         * tests/uninorm/test-u16-normcmp.c: New file.
42752         * modules/uninorm/u16-normcmp-tests: New file.
42753
42754         Tests for module 'uninorm/u8-normcmp'.
42755         * tests/uninorm/test-u8-normcmp.c: New file.
42756         * modules/uninorm/u8-normcmp-tests: New file.
42757
42758         New module 'uninorm/u32-normcmp'.
42759         * lib/uninorm/u32-normcmp.c: New file.
42760         * modules/uninorm/u32-normcmp: New file.
42761
42762         New module 'uninorm/u16-normcmp'.
42763         * lib/uninorm/u16-normcmp.c: New file.
42764         * modules/uninorm/u16-normcmp: New file.
42765
42766         New module 'uninorm/u8-normcmp'.
42767         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
42768         declarations.
42769         * lib/uninorm/u8-normcmp.c: New file.
42770         * lib/uninorm/u-normcmp.h: New file.
42771         * modules/uninorm/u8-normcmp: New file.
42772
42773 2009-03-06  Bruno Haible  <bruno@clisp.org>
42774
42775         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
42776         Reported by Eric Blake.
42777
42778 2009-03-06  Eric Blake  <ebb9@byu.net>
42779             Bruno Haible  <bruno@clisp.org>
42780
42781         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
42782         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
42783         condition.
42784         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
42785         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
42786         condition.
42787         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
42788
42789 2009-03-06  Eric Blake  <ebb9@byu.net>
42790
42791         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
42792         to avoid compiler warnings.
42793         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
42794
42795 2009-03-05  Bruno Haible  <bruno@clisp.org>
42796
42797         * tests/test-ftell.c (main): Disable test beyond end of file on
42798         FreeMiNT.
42799         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
42800
42801 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
42802
42803         * lib/filevercmp.c: Move hidden files up in ordering.
42804         * tests/test-filevercmp.c: Add tests for hidden files.
42805
42806 2009-03-04  Bruno Haible  <bruno@clisp.org>
42807
42808         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
42809         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
42810         AM_CFLAGS.
42811         Reported by Simon Josefsson.
42812
42813 2009-03-03  Bruno Haible  <bruno@clisp.org>
42814
42815         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
42816         Reported by Simon Josefsson.
42817
42818         * doc/ld-version-script.texi: Update node reference.
42819
42820 2009-03-03  Bruno Haible  <bruno@clisp.org>
42821
42822         * modules/visibility (License): Change to 'unlimited'.
42823         Suggested by Simon Josefsson.
42824
42825 2009-03-03  Jim Meyering  <meyering@redhat.com>
42826
42827         unlinkdir: cannot_unlink_dir may modify process state
42828         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
42829         it's neither thread-safe nor appropriate for use in a library.
42830
42831 2009-03-03  Eric Blake  <ebb9@byu.net>
42832
42833         test-closein: silence test under Darwin
42834         * tests/test-closein.sh: Ignore stderr from cat, since we don't
42835         care if it dies from EPIPE or EBADF.
42836
42837 2009-03-03  Bruno Haible  <bruno@clisp.org>
42838
42839         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
42840         earlier.
42841         * doc/visibility.texi: Fix @node and @section.
42842
42843 2009-03-03  Simon Josefsson  <simon@josefsson.org>
42844
42845         * doc/gnulib.texi: Link to sections for ld version script and
42846         visibility.
42847         * doc/visibility.texi: Add @node and @section.
42848         * modules/ld-version-script: New module.
42849         * m4/ld-version-script.m4: New file.
42850         * doc/ld-version-script.texi: New file.
42851
42852 2009-03-02  David Lutterkort  <lutter@redhat.com>
42853
42854         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
42855         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42856
42857 2009-03-02  Bruno Haible  <bruno@clisp.org>
42858
42859         * doc/visibility.texi: Mention libtool's -export-symbols option.
42860
42861 2009-03-02  Jim Meyering  <meyering@redhat.com>
42862
42863         announce-gen: new option: --no-print-checksums
42864         * build-aux/announce-gen (usage): Describe it.
42865         (print_checksums): Print a newline here, not in the [*] footnote.
42866         (main): Honor it.
42867
42868 2009-03-01  Bruno Haible  <bruno@clisp.org>
42869
42870         Use socklen_t in the native Windows replacements prototypes.
42871         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
42872         instead of 'int'.
42873         * lib/getsockopt.c (rpl_getsockopt): Likewise.
42874         * lib/setsockopt.c (rpl_setsockopt): Likewise.
42875         * modules/getsockopt (Depends-on): Add socklen.
42876         * modules/setsockopt (Depends-on): Add socklen.
42877
42878 2009-03-01  Bruno Haible  <bruno@clisp.org>
42879
42880         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
42881         least 4.2.
42882
42883 2009-03-01  Eric Blake  <ebb9@byu.net>
42884             Bruno Haible  <bruno@clisp.org>
42885
42886         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
42887         error messages.
42888         * lib/wait-process.c (wait_subprocess): Omit error message about
42889         deadly signal sent to the child of termsigp != NULL.
42890
42891 2009-03-01  Eric Blake  <ebb9@byu.net>
42892
42893         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
42894
42895 2009-03-01  Bruno Haible  <bruno@clisp.org>
42896
42897         Avoid a gcc warning.
42898         * tests/test-sched.c (b): Make global.
42899         Reported by Eric Blake.
42900
42901 2009-01-19  Martin Lambers  <marlam@marlam.de>
42902
42903         Provide POSIX semantics for socket timeout options on W32.
42904         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
42905         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
42906         * modules/setsockopt: Depend on sys_time module for struct timeval.
42907         * modules/getsockopt: Depend on sys_time module for struct timeval.
42908
42909 2009-03-01  Simon Josefsson  <simon@josefsson.org>
42910
42911         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
42912         __USE_GNU, for consistency with netdb.in.h.
42913         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42914
42915 2009-03-01  Bruno Haible  <bruno@clisp.org>
42916
42917         More support for FreeMiNT.
42918         * lib/fseeko.c (rpl_fseeko): Complete last commit.
42919         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42920
42921 2009-03-01  Bruno Haible  <bruno@clisp.org>
42922
42923         More support for FreeMiNT.
42924         * lib/fpurge.c (fpurge): Correct last commit.
42925         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42926
42927 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42928
42929         Fix unportable awk script in vc-list-files.
42930         * build-aux/vc-list-files: In the replacement awk script, use
42931         substr with a second argument of 1, not zero.
42932         Report by Simon Josefsson.
42933
42934 2009-02-28  Bruno Haible  <bruno@clisp.org>
42935
42936         More support for FreeMiNT.
42937         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
42938         to FreeMiNT today.
42939         * lib/fwriting.c (fwriting): Likewise.
42940         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
42941
42942 2009-02-28  Bruno Haible  <bruno@clisp.org>
42943
42944         * tests/test-freadseek.c (main): Disable test beyond end of file on
42945         FreeMiNT.
42946         * tests/test-ftello.c (main): Likewise.
42947         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
42948
42949 2009-02-28  Bruno Haible  <bruno@clisp.org>
42950
42951         Add tentative support for FreeMiNT.
42952         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
42953         * lib/fpurge.c (fpurge): Likewise.
42954         * lib/freadable.c (freadable): Likewise.
42955         * lib/freading.c (freading): Likewise.
42956         * lib/freadptr.c (freadptr): Likewise.
42957         * lib/freadseek.c (freadptrinc): Likewise.
42958         * lib/fseeko.c (rpl_fseeko): Likewise.
42959         * lib/fseterr.c (fseterr): Likewise.
42960         * lib/fwritable.c (fwritable): Likewise.
42961         * lib/fwriting.c (fwriting): Likewise.
42962         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
42963         Hourihane.
42964         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42965
42966 2009-02-28  Bruno Haible  <bruno@clisp.org>
42967
42968         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
42969         SIGCHLD.
42970         Reported by Jim Meyering.
42971
42972 2009-02-28  Bruno Haible  <bruno@clisp.org>
42973
42974         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
42975         Mention the results of these tests on various platforms.
42976         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
42977         order.
42978         * doc/posix-functions/printf.texi: Likewise.
42979         * doc/posix-functions/snprintf.texi: Likewise.
42980         * doc/posix-functions/sprintf.texi: Likewise.
42981         * doc/posix-functions/vfprintf.texi: Likewise.
42982         * doc/posix-functions/vprintf.texi: Likewise.
42983         * doc/posix-functions/vsnprintf.texi: Likewise.
42984         * doc/posix-functions/vsprintf.texi: Likewise.
42985         * doc/glibc-functions/obstack_printf.texi: Likewise.
42986         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
42987
42988 2009-02-28  Bruno Haible  <bruno@clisp.org>
42989
42990         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
42991         Reported by Loïc Minier <lool@dooz.org>.
42992
42993 2009-02-27  Bruno Haible  <bruno@clisp.org>
42994
42995         * gnulib-tool (func_import): Make the sed expression used to create the
42996         sed script for updating the .gitignore file POSIX compliant.
42997         Reported by Eric Blake.
42998
42999 2009-02-27  Bruno Haible  <bruno@clisp.org>
43000
43001         * gnulib-tool (sed): Don't alias as "sed --posix".
43002         Reported by Eric Blake.
43003
43004 2009-02-27  Bruno Haible  <bruno@clisp.org>
43005
43006         Avoid test link errors.
43007         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
43008         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
43009         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
43010         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
43011         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43012
43013 2009-02-27  Bruno Haible  <bruno@clisp.org>
43014
43015         Avoid spurious "(cached)" in configure output.
43016         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
43017         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
43018         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
43019         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
43020         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
43021         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
43022         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
43023         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
43024         Reported by Eric Blake.
43025
43026 2009-02-27  Eric Blake  <ebb9@byu.net>
43027
43028         printf: fix regression in previous patch
43029         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
43030
43031 2009-02-27  Bruno Haible  <bruno@clisp.org>
43032
43033         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
43034         value.
43035         * lib/stdint.in.h: Likewise.
43036         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
43037
43038 2009-02-27  Eric Blake  <ebb9@byu.net>
43039
43040         doc: mention more functions added in cygwin 1.7.0
43041         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
43042         addition.
43043         * doc/posix-functions/open_wmemstream.texi: Likewise.
43044         * doc/posix-functions/wcsnlen.texi: Likewise.
43045         * doc/posix-functions/wcsnrtombs.texi: Likewise.
43046         * doc/posix-functions/wcstod.texi: Likewise.
43047         * doc/posix-functions/wcstof.texi: Likewise.
43048         * doc/posix-functions/wcstoimax.texi: Likewise.
43049         * doc/posix-functions/wcstok.texi: Likewise.
43050         * doc/posix-functions/wcstoumax.texi: Likewise.
43051
43052         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
43053         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
43054         * doc/posix-functions/fprintf.texi: Update.
43055         * doc/posix-functions/printf.texi: Update.
43056         * doc/posix-functions/snprintf.texi: Update.
43057         * doc/posix-functions/sprintf.texi: Update.
43058         * doc/posix-functions/vfprintf.texi: Update.
43059         * doc/posix-functions/vprintf.texi: Update.
43060         * doc/posix-functions/vsnprintf.texi: Update.
43061         * doc/posix-functions/vsprintf.texi: Update.
43062         * doc/glibc-functions/obstack_printf.texi: Update.
43063         * doc/glibc-functions/obstack_vprintf.texi: Update.
43064
43065 2009-02-26  Eric Blake  <ebb9@byu.net>
43066
43067         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
43068         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
43069         compilation bug by using runtime conversion.
43070         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
43071         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
43072         * modules/ceill-tests (Files): Use nan.h.
43073         * modules/floorl-tests (Files): Likewise.
43074         * modules/frexpl-tests (Files): Likewise.
43075         * modules/isnanl-tests (Files): Likewise.
43076         * modules/ldexpl-tests (Files): Likewise.
43077         * modules/roundl-tests (Files): Likewise.
43078         * modules/truncl-tests (Files): Likewise.
43079         * tests/test-ceill.c (main): Use a working NaN.
43080         * tests/test-floorl.c (main): Likewise.
43081         * tests/test-frexpl.c (main): Likewise.
43082         * tests/test-isnan.c (test_long_double): Likewise.
43083         * tests/test-isnanl.h (main): Likewise.
43084         * tests/test-ldexpl.h (main): Likewise.
43085         * tests/test-roundl.h (main): Likewise.
43086         * tests/test-truncl.h (main): Likewise.
43087         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
43088
43089 2009-02-26  Eric Blake  <ebb9@byu.net>
43090             Bruno Haible  <bruno@clisp.org>
43091
43092         Work around a *printf bug with %ls on Solaris.
43093         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
43094         precision is specified, sprintf stops converting the wide string
43095         argument when the number of bytes that have been produced by this
43096         conversion equals or exceeds the precision.
43097         * doc/posix-functions/fprintf.texi: Update.
43098         * doc/posix-functions/printf.texi: Update.
43099         * doc/posix-functions/snprintf.texi: Update.
43100         * doc/posix-functions/sprintf.texi: Update.
43101         * doc/posix-functions/vfprintf.texi: Update.
43102         * doc/posix-functions/vprintf.texi: Update.
43103         * doc/posix-functions/vsnprintf.texi: Update.
43104         * doc/posix-functions/vsprintf.texi: Update.
43105         * doc/glibc-functions/obstack_printf.texi: Update.
43106         * doc/glibc-functions/obstack_vprintf.texi: Update.
43107
43108 2009-02-26  Eric Blake  <ebb9@byu.net>
43109
43110         stdlib: favor compiler check of random.h
43111         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
43112         to avoid an ObjC random.h installed by Swarm.
43113
43114 2009-02-26  Bruno Haible  <bruno@clisp.org>
43115
43116         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
43117         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
43118         Reported by Gary V. Vaughan <gary@gnu.org>.
43119
43120 2009-02-26  Bruno Haible  <bruno@clisp.org>
43121
43122         Fix *printf behaviour regarding the %ls directive.
43123         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
43124         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
43125         NEED_PRINTF_DIRECTIVE_LS.
43126         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
43127         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43128         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43129         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
43130         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
43131         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
43132         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
43133         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43134         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43135         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43136         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43137         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
43138         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43139         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43140         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43141         * doc/posix-functions/fprintf.texi: Update.
43142         * doc/posix-functions/printf.texi: Update.
43143         * doc/posix-functions/snprintf.texi: Update.
43144         * doc/posix-functions/sprintf.texi: Update.
43145         * doc/posix-functions/vfprintf.texi: Update.
43146         * doc/posix-functions/vprintf.texi: Update.
43147         * doc/posix-functions/vsnprintf.texi: Update.
43148         * doc/posix-functions/vsprintf.texi: Update.
43149         * doc/glibc-functions/obstack_printf.texi: Update.
43150         * doc/glibc-functions/obstack_vprintf.texi: Update.
43151         Reported by Eric Blake.
43152
43153 2009-02-25  Bruno Haible  <bruno@clisp.org>
43154
43155         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
43156         with known value.
43157         Reported by Gary V. Vaughan <gary@gnu.org>.
43158
43159 2009-02-25  Bruno Haible  <bruno@clisp.org>
43160
43161         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
43162         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
43163         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
43164         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
43165         Reported by Gary V. Vaughan <gary@gnu.org>.
43166
43167 2009-02-25  Bruno Haible  <bruno@clisp.org>
43168
43169         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
43170         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
43171         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
43172         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
43173         Reported by Gary V. Vaughan <gary@gnu.org>.
43174
43175 2009-02-25  Eric Blake  <ebb9@byu.net>
43176
43177         tests: skip fseek/ftell tests if ungetc is broken
43178         * m4/ungetc.m4: New file.
43179         * modules/fseek-tests: Split test, so ungetc dependency is
43180         separate from rest of test.
43181         * modules/fseeko-tests: Likewise.
43182         * modules/ftell-tests: Likewise.
43183         * modules/ftello-tests: Likewise.
43184         * tests/test-fseek.c (main): Isolate ungetc dependency.
43185         * tests/test-fseeko.c (main): Likewise.
43186         * tests/test-ftell.c (main): Likewise.
43187         * tests/test-ftello.c (main): Likewise.
43188         * tests/test-fseek2.sh: New file.
43189         * tests/test-fseeko2.sh: Likewise.
43190         * tests/test-ftell2.sh: Likewise.
43191         * tests/test-ftello2.sh: Likewise.
43192
43193 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
43194
43195         test-getaddrinfo: fix usage of skip return code 77
43196         * tests/test-gettaddrinfo.c: Return skip code 77 only
43197         for first occurance of skip (4x77 is not 77)
43198
43199 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
43200
43201         strtod: avoid C99 decl-after-statement
43202         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
43203
43204 2009-02-24  Eric Blake  <ebb9@byu.net>
43205
43206         strtod: detect HP-UX 11.31 bug
43207         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
43208         Reported by Gary V. Vaughan.
43209
43210 2009-02-23  Bruno Haible  <bruno@clisp.org>
43211
43212         Fix invalid read past end of memory block.
43213         * lib/vasnprintf.c (DCHAR_SET): Define.
43214         (local_wcslen): Define only when needed.
43215         (local_strnlen, local_wcsnlen): New functions.
43216         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
43217         directives that involve a conversion ourselves.
43218         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
43219         wcsnlen, mbrtowc, wcrtomb.
43220         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
43221         * tests/test-vasprintf-posix.c (test_function): Likewise.
43222         * tests/test-snprintf-posix.h (test_function): Likewise.
43223         * tests/test-sprintf-posix.h (test_function): Likewise.
43224         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43225
43226 2009-02-22  Bruno Haible  <bruno@clisp.org>
43227
43228         Implement new clarified decomposition of Hangul syllables.
43229         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
43230         of type LTV, return only a pairwise decomposition.
43231         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
43232         Likewise.
43233         * tests/uninorm/test-decomposition.c (main): Updated expected result.
43234         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
43235         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
43236
43237 2009-02-22  Bruno Haible  <bruno@clisp.org>
43238
43239         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
43240         zero-length results and shrink excess allocated memory.
43241         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
43242         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
43243         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
43244         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
43245         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
43246         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
43247         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
43248         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
43249         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
43250         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
43251         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
43252         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
43253
43254 2009-02-21  Bruno Haible  <bruno@clisp.org>
43255
43256         * doc/gnulib.texi: Include safe-alloc.texi earlier.
43257         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
43258         spaces after a period. Put a space between a macro name and its
43259         argument list. Trivial rewordings.
43260         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
43261         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
43262         (main): Return 0 explicitly.
43263
43264 2009-02-21  Bruno Haible  <bruno@clisp.org>
43265
43266         Tests for module 'uninorm/filter'.
43267         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
43268         * modules/uninorm/filter-tests: New file.
43269
43270         New module 'uninorm/filter'.
43271         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
43272         uninorm_filter_flush, uninorm_filter_free): New declarations.
43273         * lib/uninorm/uninorm-filter.c: New file.
43274         * modules/uninorm/filter: New file.
43275
43276 2009-02-21  Bruno Haible  <bruno@clisp.org>
43277
43278         Tests for module 'uninorm/nfkc'.
43279         * tests/uninorm/test-nfkc.c: New file.
43280         * tests/uninorm/test-u8-nfkc.c: New file.
43281         * tests/uninorm/test-u16-nfkc.c: New file.
43282         * tests/uninorm/test-u32-nfkc.c: New file.
43283         * tests/uninorm/test-u32-nfkc-big.sh: New file.
43284         * tests/uninorm/test-u32-nfkc-big.c: New file.
43285         * modules/uninorm/nfkc-tests: New file.
43286
43287         New module 'uninorm/nfkc'.
43288         * lib/uninorm/nfkc.c: New file.
43289         * modules/uninorm/nfkc: New file.
43290
43291         Tests for module 'uninorm/nfkd'.
43292         * tests/uninorm/test-nfkd.c: New file.
43293         * tests/uninorm/test-u8-nfkd.c: New file.
43294         * tests/uninorm/test-u16-nfkd.c: New file.
43295         * tests/uninorm/test-u32-nfkd.c: New file.
43296         * tests/uninorm/test-u32-nfkd-big.sh: New file.
43297         * tests/uninorm/test-u32-nfkd-big.c: New file.
43298         * modules/uninorm/nfkd-tests: New file.
43299
43300         New module 'uninorm/nfkd'.
43301         * lib/uninorm/nfkd.c: New file.
43302         * modules/uninorm/nfkd: New file.
43303
43304         Tests for module 'uninorm/nfc'.
43305         * tests/uninorm/test-nfc.c: New file.
43306         * tests/uninorm/test-u8-nfc.c: New file.
43307         * tests/uninorm/test-u16-nfc.c: New file.
43308         * tests/uninorm/test-u32-nfc.c: New file.
43309         * tests/uninorm/test-u32-nfc-big.sh: New file.
43310         * tests/uninorm/test-u32-nfc-big.c: New file.
43311         * modules/uninorm/nfc-tests: New file.
43312
43313         New module 'uninorm/nfc'.
43314         * lib/uninorm/nfc.c: New file.
43315         * modules/uninorm/nfc: New file.
43316
43317         Tests for module 'uninorm/nfd'.
43318         * tests/uninorm/test-nfd.c: New file.
43319         * tests/uninorm/test-u8-nfd.c: New file.
43320         * tests/uninorm/test-u16-nfd.c: New file.
43321         * tests/uninorm/test-u32-nfd.c: New file.
43322         * tests/uninorm/test-u32-nfd-big.sh: New file.
43323         * tests/uninorm/test-u32-nfd-big.c: New file.
43324         * tests/uninorm/test-u32-normalize-big.h: New file.
43325         * tests/uninorm/test-u32-normalize-big.c: New file.
43326         * tests/uninorm/NormalizationTest.txt: New file, created from
43327         Unicode 5.1.0 NormalizationTest.txt.
43328         * modules/uninorm/nfd-tests: New file.
43329
43330         New module 'uninorm/nfd'.
43331         * lib/uninorm/nfd.c: New file.
43332         * modules/uninorm/nfd: New file.
43333
43334         New module 'uninorm/u32-normalize'.
43335         * lib/uninorm/u32-normalize.c: New file.
43336         * modules/uninorm/u32-normalize: New file.
43337
43338         New module 'uninorm/u16-normalize'.
43339         * lib/uninorm/u16-normalize.c: New file.
43340         * modules/uninorm/u16-normalize: New file.
43341
43342         New module 'uninorm/u8-normalize'.
43343         * lib/uninorm/u8-normalize.c: New file.
43344         * lib/uninorm/normalize-internal.h: New file.
43345         * lib/uninorm/u-normalize-internal.h: New file.
43346         * modules/uninorm/u8-normalize: New file.
43347
43348         New module 'uninorm/decompose-internal'.
43349         * lib/uninorm/decompose-internal.c: New file.
43350         * modules/uninorm/decompose-internal: New file.
43351
43352         Tests for module 'uninorm/composition'.
43353         * tests/uninorm/test-composition.c: New file.
43354         * modules/uninorm/composition-tests: New file.
43355
43356         New module 'uninorm/composition'.
43357         * lib/uninorm/composition.c: New file.
43358         * lib/uninorm/composition-table.gperf: New file, generated by
43359         gen-uni-tables.
43360         * modules/uninorm/composition: New file.
43361
43362         Tests for module 'uninorm/compat-decomposition'.
43363         * tests/uninorm/test-compat-decomposition.c: New file.
43364         * modules/uninorm/compat-decomposition-tests: New file.
43365
43366         New module 'uninorm/compat-decomposition'.
43367         * lib/uninorm/decompose-internal.h: New file.
43368         * lib/uninorm/compat-decomposition.c: New file.
43369         * modules/uninorm/compat-decomposition: New file.
43370
43371         Tests for module 'uninorm/canonical-decomposition'.
43372         * tests/uninorm/test-canonical-decomposition.c: New file.
43373         * modules/uninorm/canonical-decomposition-tests: New file.
43374
43375         New module 'uninorm/canonical-decomposition'.
43376         * lib/uninorm/canonical-decomposition.c: New file.
43377         * modules/uninorm/canonical-decomposition: New file.
43378
43379         Tests for module 'uninorm/decomposition'.
43380         * tests/uninorm/test-decomposition.c: New file.
43381         * modules/uninorm/decomposition-tests: New file.
43382
43383         New module 'uninorm/decomposition'.
43384         * lib/uninorm/decomposition.c: New file.
43385         * modules/uninorm/decomposition: New file.
43386
43387         New module 'uninorm/decomposition-table'.
43388         * lib/uninorm/decomposition-table.h: New file.
43389         * lib/uninorm/decomposition-table.c: New file.
43390         * lib/uninorm/decomposition-table1.h: New file, generated by
43391         gen-uni-tables.
43392         * lib/uninorm/decomposition-table2.h: New file, generated by
43393         gen-uni-tables.
43394         * modules/uninorm/decomposition-table: New file.
43395
43396         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
43397         (UC_DECOMP_*): New enumeration items.
43398         (get_decomposition): New function.
43399         (struct decomp_table): New type.
43400         (output_decomposition, output_decomposition_tables): New functions.
43401         (unicode_composition_exclusions): New variable.
43402         (fill_composition_exclusions, debug_output_composition_tables): New
43403         functions.
43404         (main): Accept one more argument. Invoke fill_composition_exclusions.
43405         Output decomposition and composition tables.
43406
43407         New module 'uninorm/base'.
43408         * lib/uninorm.h: New file.
43409         * lib/unictype.h: Update comment.
43410         * modules/uninorm/base: New file.
43411
43412 2009-02-21  David Lutterkort  <lutter@redhat.com>
43413
43414         Tests for module 'safe-alloc'.
43415         * tests/test-safe-alloc.c: New file.
43416         * modules/safe-alloc-tests: New file.
43417
43418         New module 'safe-alloc'.
43419         * lib/safe-alloc.h: New file.
43420         * lib/safe-alloc.c: New file.
43421         * m4/safe-alloc.m4: New file.
43422         * modules/safe-alloc: New file.
43423         * doc/safe-alloc.texi: New file.
43424         * doc/gnulib.texi: Include it.
43425         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
43426         safe-alloc.
43427
43428 2009-02-18  Bruno Haible  <bruno@clisp.org>
43429
43430         Fix link error on non-glibc systems.
43431         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
43432         variable.
43433         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43434
43435 2009-02-18  Jim Meyering  <meyering@redhat.com>
43436
43437         fts: avoid used-uninitialized error due to recent change
43438         * lib/fts.c (fts_read): Guard uses of the new member,
43439         parent->fts_n_dirs_remaining, since it's not relevant for
43440         the parent of a directory specified on the command-line.
43441
43442 2009-02-17  James Youngman  <jay@gnu.org>
43443             Bruno Haible  <bruno@clisp.org>
43444
43445         * m4/include_next.m4: Reformulate comment.
43446
43447 2009-02-16  Jim Meyering  <meyering@redhat.com>
43448
43449         fts: add #if guards so that the fts_lgpl module still builds
43450         * lib/fts.c: Guard just-added hash-table-using parts with
43451         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
43452         Reported by Simon Josefsson.
43453
43454 2009-02-15  Bruno Haible  <bruno@clisp.org>
43455
43456         * modules/array-mergesort-tests: New file.
43457         * tests/test-array-mergesort.c: New file.
43458
43459         New module 'array-mergesort'.
43460         * modules/array-mergesort: New file.
43461         * lib/array-mergesort.h: New file.
43462
43463 2009-02-15  Bruno Haible  <bruno@clisp.org>
43464
43465         Fix 2009-02-07 commit.
43466         * lib/gen-uni-tables.c (output_predicate, output_category,
43467         output_combclass, output_bidi_category, output_decimal_digit,
43468         output_digit, output_numeric, output_mirror, output_scripts,
43469         output_ident_category, output_simple_mapping): Fix format directives.
43470         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
43471
43472 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
43473
43474         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
43475         fixes are available from IBM.
43476
43477 2009-02-13  Jim Meyering  <meyering@redhat.com>
43478
43479         fts: arrange not to stat non-directories in more cases
43480         This makes GNU find (when it doesn't need to stat each file)
43481         *much* more efficient at traversing reiserfs file systems.
43482         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
43483         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
43484         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
43485         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
43486         (leaf_optimization_applies): New function.
43487         (LCO_hash, LCO_compare): New helper functions.
43488         (link_count_optimize_ok): New function.
43489         (fts_stat): Initialize new member (if dir).
43490         (fts_read): Decrement parent's fts_n_dirs_remaining count if
43491         we've just stat'ed a directory.  Skip the stat call when possible.
43492         ---
43493         Note this AFS-related exchange:
43494         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
43495         and note find's pioctl call in find/fstype.c.
43496         But that is necessary only if you want to enable the
43497         optimization for AFS, and for now, I don't.
43498
43499         fts: move a function definition "up" (no semantic change)
43500         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
43501         "up" to precede upcoming use of a related function.
43502
43503 2009-02-11  Jim Meyering  <meyering@redhat.com>
43504
43505         fts: correct internal computation of nlinks (optimization-related)
43506         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
43507         whether the current entry is a directory, so don't test it.
43508
43509 2009-02-10  Bruno Haible  <bruno@clisp.org>
43510
43511         Tests for module 'uniwbrk/ulc-wordbreaks'.
43512         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
43513         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
43514         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
43515
43516         Tests for module 'uniwbrk/u32-wordbreaks'.
43517         * modules/uniwbrk/u32-wordbreaks-tests: New file.
43518         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
43519
43520         Tests for module 'uniwbrk/u16-wordbreaks'.
43521         * modules/uniwbrk/u16-wordbreaks-tests: New file.
43522         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
43523
43524         Tests for module 'uniwbrk/u8-wordbreaks'.
43525         * modules/uniwbrk/u8-wordbreaks-tests: New file.
43526         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
43527
43528 2009-02-10  Bruno Haible  <bruno@clisp.org>
43529
43530         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
43531         property.
43532         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
43533         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
43534         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
43535
43536 2009-02-10  Simon Josefsson  <simon@josefsson.org>
43537
43538         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
43539         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
43540
43541 2009-02-10  Bruno Haible  <bruno@clisp.org>
43542
43543         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
43544         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
43545         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
43546         * lib/unilbrk/u8-possible-linebreaks.c: Update.
43547         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
43548         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
43549
43550 2009-02-09  Simon Josefsson  <simon@josefsson.org>
43551
43552         * lib/sockets.h (gl_fd_to_handle): New function.
43553
43554         * tests/test-sockets.c: Call gl_fd_to_handle.
43555
43556 2009-02-09  Bruno Haible  <bruno@clisp.org>
43557
43558         * doc/havelib.texi: Document the conventions on bi-arch systems.
43559
43560 2009-02-08  Bruno Haible  <bruno@clisp.org>
43561
43562         Document the AC_LIB_LINKFLAGS macro.
43563         * doc/havelib.texi: New file, mostly written on 2005-05-24.
43564         * doc/gnulib.texi: Include it.
43565
43566 2009-02-08  Bruno Haible  <bruno@clisp.org>
43567
43568         Fix wrong order of sections, compared to TOC.
43569         * doc/gnulib.texi: Include relocatable-maint.texi after the
43570         "Regular expressions" node, not before.
43571
43572 2009-02-08  Bruno Haible  <bruno@clisp.org>
43573
43574         Tests for module 'unicase/totitle'.
43575         * modules/unicase/totitle-tests: New file.
43576
43577         Tests for module 'unicase/tolower'.
43578         * modules/unicase/tolower-tests: New file.
43579
43580         Tests for module 'unicase/toupper'.
43581         * modules/unicase/toupper-tests: New file.
43582         * tests/unicase/test-mapping-part1.h: New file.
43583         * tests/unicase/test-mapping-part2.h: New file.
43584
43585         New module 'unicase/totitle'.
43586         * modules/unicase/totitle: New file.
43587         * lib/unicase/totitle.c: New file.
43588
43589         New module 'unicase/tolower'.
43590         * modules/unicase/tolower: New file.
43591         * lib/unicase/tolower.c: New file.
43592
43593         New module 'unicase/toupper'.
43594         * modules/unicase/toupper: New file.
43595         * lib/unicase/toupper.c: New file.
43596         * lib/unicase/simple-mapping.h: New file.
43597
43598         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
43599         (mapping_table): New structure.
43600         (output_simple_mapping): New function.
43601         (main): Invoke output_simple_mapping_test and output_simple_mapping.
43602         * modules/gen-uni-tables (Description): Update.
43603         * lib/unicase/toupper.h: New file, automatically generated by
43604         gen-uni-tables.
43605         * lib/unicase/tolower.h: New file, automatically generated by
43606         gen-uni-tables.
43607         * lib/unicase/totitle.h: New file, automatically generated by
43608         gen-uni-tables.
43609         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
43610         gen-uni-tables.
43611         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
43612         gen-uni-tables.
43613         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
43614         gen-uni-tables.
43615
43616         New module 'unicase/base'.
43617         * modules/unicase/base: New file.
43618         * lib/unicase.h: New file.
43619
43620 2009-02-08  Bruno Haible  <bruno@clisp.org>
43621
43622         New module 'uniwbrk/ulc-wordbreaks'.
43623         * modules/uniwbrk/ulc-wordbreaks: New file.
43624         * lib/uniwbrk/ulc-wordbreaks.c: New file.
43625
43626         New module 'uniwbrk/u32-wordbreaks'.
43627         * modules/uniwbrk/u32-wordbreaks: New file.
43628         * lib/uniwbrk/u32-wordbreaks.c: New file.
43629
43630         New module 'uniwbrk/u16-wordbreaks'.
43631         * modules/uniwbrk/u16-wordbreaks: New file.
43632         * lib/uniwbrk/u16-wordbreaks.c: New file.
43633
43634         New module 'uniwbrk/u8-wordbreaks'.
43635         * modules/uniwbrk/u8-wordbreaks: New file.
43636         * lib/uniwbrk/u8-wordbreaks.c: New file.
43637         * lib/uniwbrk/u-wordbreaks.h: New file.
43638
43639         New module 'uniwbrk/table'.
43640         * modules/uniwbrk/table: New file.
43641         * lib/uniwbrk/wbrktable.h: New file.
43642         * lib/uniwbrk/wbrktable.c: New file.
43643
43644         New module 'uniwbrk/wordbreak-property'.
43645         * modules/uniwbrk/wordbreak-property: New file.
43646         * lib/uniwbrk/wordbreak-property.c: New file.
43647
43648         * lib/gen-uni-tables.c (WBP_*): New enum items.
43649         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
43650         (unicode_org_wbp): New variable.
43651         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
43652         New functions.
43653         (wbp_table): New structure.
43654         (output_wbp, output_wbrk_tables): New functions.
43655         (main): Accept additional argument. Invoke fill_org_wbp,
43656         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
43657         output_wbrk_tables.
43658         * modules/gen-uni-tables (Description): Update.
43659         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
43660         gen-uni-tables.
43661
43662         New module 'uniwbrk/base'.
43663         * modules/uniwbrk/base: New file.
43664         * lib/uniwbrk.h: New file.
43665
43666 2009-02-08  Bruno Haible  <bruno@clisp.org>
43667
43668         Update to Unicode 5.1.0.
43669         * lib/gen-uni-tables.c (is_property_alphabetic): Include
43670         U+2185..U+2188.
43671         (is_property_default_ignorable_code_point): Don't include characters
43672         of category Cc or Cs and not-a-characters.
43673         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
43674         U+0D79, U+109E, U+109F, U+A60C.
43675         * lib/unictype/bidi_of.h: Regenerated.
43676         * lib/unictype/blocks.h: Regenerated.
43677         * lib/unictype/categ_C.h: Regenerated.
43678         * lib/unictype/categ_Cf.h: Regenerated.
43679         * lib/unictype/categ_Cn.h: Regenerated.
43680         * lib/unictype/categ_L.h: Regenerated.
43681         * lib/unictype/categ_Ll.h: Regenerated.
43682         * lib/unictype/categ_Lm.h: Regenerated.
43683         * lib/unictype/categ_Lo.h: Regenerated.
43684         * lib/unictype/categ_Lu.h: Regenerated.
43685         * lib/unictype/categ_M.h: Regenerated.
43686         * lib/unictype/categ_Mc.h: Regenerated.
43687         * lib/unictype/categ_Me.h: Regenerated.
43688         * lib/unictype/categ_Mn.h: Regenerated.
43689         * lib/unictype/categ_N.h: Regenerated.
43690         * lib/unictype/categ_Nd.h: Regenerated.
43691         * lib/unictype/categ_Nl.h: Regenerated.
43692         * lib/unictype/categ_No.h: Regenerated.
43693         * lib/unictype/categ_P.h: Regenerated.
43694         * lib/unictype/categ_Pd.h: Regenerated.
43695         * lib/unictype/categ_Pe.h: Regenerated.
43696         * lib/unictype/categ_Pf.h: Regenerated.
43697         * lib/unictype/categ_Pi.h: Regenerated.
43698         * lib/unictype/categ_Po.h: Regenerated.
43699         * lib/unictype/categ_Ps.h: Regenerated.
43700         * lib/unictype/categ_S.h: Regenerated.
43701         * lib/unictype/categ_Sk.h: Regenerated.
43702         * lib/unictype/categ_Sm.h: Regenerated.
43703         * lib/unictype/categ_So.h: Regenerated.
43704         * lib/unictype/categ_of.h: Regenerated.
43705         * lib/unictype/combining.h: Regenerated.
43706         * lib/unictype/ctype_alnum.h: Regenerated.
43707         * lib/unictype/ctype_alpha.h: Regenerated.
43708         * lib/unictype/ctype_graph.h: Regenerated.
43709         * lib/unictype/ctype_lower.h: Regenerated.
43710         * lib/unictype/ctype_print.h: Regenerated.
43711         * lib/unictype/ctype_punct.h: Regenerated.
43712         * lib/unictype/ctype_upper.h: Regenerated.
43713         * lib/unictype/decdigit.h: Regenerated.
43714         * lib/unictype/digit.h: Regenerated.
43715         * lib/unictype/mirror.h: Regenerated.
43716         * lib/unictype/numeric.h: Regenerated.
43717         * lib/unictype/pr_alphabetic.h: Regenerated.
43718         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
43719         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
43720         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
43721         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
43722         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
43723         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
43724         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
43725         * lib/unictype/pr_combining.h: Regenerated.
43726         * lib/unictype/pr_dash.h: Regenerated.
43727         * lib/unictype/pr_decimal_digit.h: Regenerated.
43728         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
43729         * lib/unictype/pr_deprecated.h: Regenerated.
43730         * lib/unictype/pr_diacritic.h: Regenerated.
43731         * lib/unictype/pr_extender.h: Regenerated.
43732         * lib/unictype/pr_format_control.h: Regenerated.
43733         * lib/unictype/pr_grapheme_base.h: Regenerated.
43734         * lib/unictype/pr_grapheme_extend.h: Regenerated.
43735         * lib/unictype/pr_grapheme_link.h: Regenerated.
43736         * lib/unictype/pr_id_continue.h: Regenerated.
43737         * lib/unictype/pr_id_start.h: Regenerated.
43738         * lib/unictype/pr_ideographic.h: Regenerated.
43739         * lib/unictype/pr_ignorable_control.h: Regenerated.
43740         * lib/unictype/pr_lowercase.h: Regenerated.
43741         * lib/unictype/pr_math.h: Regenerated.
43742         * lib/unictype/pr_numeric.h: Regenerated.
43743         * lib/unictype/pr_other_alphabetic.h: Regenerated.
43744         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
43745         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
43746         * lib/unictype/pr_other_id_continue.h: Regenerated.
43747         * lib/unictype/pr_other_lowercase.h: Regenerated.
43748         * lib/unictype/pr_other_math.h: Regenerated.
43749         * lib/unictype/pr_punctuation.h: Regenerated.
43750         * lib/unictype/pr_sentence_terminal.h: Regenerated.
43751         * lib/unictype/pr_soft_dotted.h: Regenerated.
43752         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
43753         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
43754         * lib/unictype/pr_unified_ideograph.h: Regenerated.
43755         * lib/unictype/pr_uppercase.h: Regenerated.
43756         * lib/unictype/pr_xid_continue.h: Regenerated.
43757         * lib/unictype/pr_xid_start.h: Regenerated.
43758         * lib/unictype/pr_zero_width.h: Regenerated.
43759         * lib/unictype/scripts.h: Regenerated.
43760         * lib/unictype/scripts_byname.gperf: Regenerated.
43761         * lib/unictype/sy_java_ident.h: Regenerated.
43762         * lib/unilbrk/lbrkprop1.h: Regenerated.
43763         * lib/unilbrk/lbrkprop2.h: Regenerated.
43764         * tests/unictype/test-categ_C.c: Regenerated.
43765         * tests/unictype/test-categ_Cf.c: Regenerated.
43766         * tests/unictype/test-categ_Cn.c: Regenerated.
43767         * tests/unictype/test-categ_L.c: Regenerated.
43768         * tests/unictype/test-categ_Ll.c: Regenerated.
43769         * tests/unictype/test-categ_Lm.c: Regenerated.
43770         * tests/unictype/test-categ_Lo.c: Regenerated.
43771         * tests/unictype/test-categ_Lu.c: Regenerated.
43772         * tests/unictype/test-categ_M.c: Regenerated.
43773         * tests/unictype/test-categ_Mc.c: Regenerated.
43774         * tests/unictype/test-categ_Me.c: Regenerated.
43775         * tests/unictype/test-categ_Mn.c: Regenerated.
43776         * tests/unictype/test-categ_N.c: Regenerated.
43777         * tests/unictype/test-categ_Nd.c: Regenerated.
43778         * tests/unictype/test-categ_Nl.c: Regenerated.
43779         * tests/unictype/test-categ_No.c: Regenerated.
43780         * tests/unictype/test-categ_P.c: Regenerated.
43781         * tests/unictype/test-categ_Pd.c: Regenerated.
43782         * tests/unictype/test-categ_Pe.c: Regenerated.
43783         * tests/unictype/test-categ_Pf.c: Regenerated.
43784         * tests/unictype/test-categ_Pi.c: Regenerated.
43785         * tests/unictype/test-categ_Po.c: Regenerated.
43786         * tests/unictype/test-categ_Ps.c: Regenerated.
43787         * tests/unictype/test-categ_S.c: Regenerated.
43788         * tests/unictype/test-categ_Sk.c: Regenerated.
43789         * tests/unictype/test-categ_Sm.c: Regenerated.
43790         * tests/unictype/test-categ_So.c: Regenerated.
43791         * tests/unictype/test-ctype_alnum.c: Regenerated.
43792         * tests/unictype/test-ctype_alpha.c: Regenerated.
43793         * tests/unictype/test-ctype_graph.c: Regenerated.
43794         * tests/unictype/test-ctype_lower.c: Regenerated.
43795         * tests/unictype/test-ctype_print.c: Regenerated.
43796         * tests/unictype/test-ctype_punct.c: Regenerated.
43797         * tests/unictype/test-ctype_upper.c: Regenerated.
43798         * tests/unictype/test-decdigit.h: Regenerated.
43799         * tests/unictype/test-digit.h: Regenerated.
43800         * tests/unictype/test-numeric.h: Regenerated.
43801         * tests/unictype/test-pr_alphabetic.c: Regenerated.
43802         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
43803         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
43804         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
43805         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
43806         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
43807         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
43808         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
43809         * tests/unictype/test-pr_combining.c: Regenerated.
43810         * tests/unictype/test-pr_dash.c: Regenerated.
43811         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
43812         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
43813         * tests/unictype/test-pr_deprecated.c: Regenerated.
43814         * tests/unictype/test-pr_diacritic.c: Regenerated.
43815         * tests/unictype/test-pr_extender.c: Regenerated.
43816         * tests/unictype/test-pr_format_control.c: Regenerated.
43817         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
43818         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
43819         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
43820         * tests/unictype/test-pr_id_continue.c: Regenerated.
43821         * tests/unictype/test-pr_id_start.c: Regenerated.
43822         * tests/unictype/test-pr_ideographic.c: Regenerated.
43823         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
43824         * tests/unictype/test-pr_lowercase.c: Regenerated.
43825         * tests/unictype/test-pr_math.c: Regenerated.
43826         * tests/unictype/test-pr_numeric.c: Regenerated.
43827         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
43828         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
43829         Regenerated.
43830         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
43831         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
43832         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
43833         * tests/unictype/test-pr_other_math.c: Regenerated.
43834         * tests/unictype/test-pr_punctuation.c: Regenerated.
43835         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
43836         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
43837         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
43838         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
43839         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
43840         * tests/unictype/test-pr_uppercase.c: Regenerated.
43841         * tests/unictype/test-pr_xid_continue.c: Regenerated.
43842         * tests/unictype/test-pr_xid_start.c: Regenerated.
43843         * tests/unictype/test-pr_zero_width.c: Regenerated.
43844
43845         Update to Unicode 5.1.0.
43846         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
43847         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
43848         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
43849         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
43850         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
43851         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
43852         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
43853         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
43854         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
43855         (nonspacing_table_ind): Update.
43856         * tests/uniwidth/test-uc_width2.sh: Update expected result.
43857
43858         Update to Unicode 5.1.0.
43859         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
43860         code transform.
43861         * lib/uniname/uniname.c (unicode_character_name,
43862         unicode_name_character): Add the range 0x1Fxxx to the code transform.
43863         * lib/uniname/uninames.h: Regenerated.
43864         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
43865
43866 2009-02-07  Bruno Haible  <bruno@clisp.org>
43867
43868         Merge gen-ctype and gen-lbrk into a single program.
43869         * lib/gen-uni-tables.c: New file, incorporating
43870         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
43871         Add directory prefixes to the names of the generated files.
43872         * lib/unictype/gen-ctype.c: Remove file.
43873         * lib/unilbrk/gen-lbrk.c: Remove file.
43874         * modules/gen-uni-tables: New file.
43875         * modules/unictype/gen-ctype: Remove file.
43876         * modules/unilbrk/gen-lbrk: Remove file.
43877
43878 2009-02-07  Bruno Haible  <bruno@clisp.org>
43879
43880         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
43881
43882         New module 'unistr/u32-strcoll'.
43883         * modules/unistr/u32-strcoll: New file.
43884         * lib/unistr/u32-strcoll.c: New file.
43885
43886         New module 'unistr/u16-strcoll'.
43887         * modules/unistr/u16-strcoll: New file.
43888         * lib/unistr/u16-strcoll.c: New file.
43889
43890         New module 'unistr/u8-strcoll'.
43891         * modules/unistr/u8-strcoll: New file.
43892         * lib/unistr/u8-strcoll.c: New file.
43893         * lib/unistr/u-strcoll.h: New file.
43894
43895 2009-02-07  Bruno Haible  <bruno@clisp.org>
43896
43897         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
43898         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
43899         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
43900         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
43901         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
43902         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
43903
43904 2009-02-07  Bruno Haible  <bruno@clisp.org>
43905
43906         Make 64-bit clean.
43907         * lib/unictype/gen-ctype.c (output_predicate, output_category,
43908         output_combclass, output_bidi_category, output_decimal_digit,
43909         output_digit, output_numeric, output_mirror, output_scripts,
43910         output_ident_category): Use proper width specifier in format strings.
43911
43912 2009-02-07  Bruno Haible  <bruno@clisp.org>
43913
43914         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
43915         failure behaviour.
43916
43917 2009-02-07  Jim Meyering  <meyering@redhat.com>
43918
43919         regex: avoid compilation failure with upcoming gcc-4.4
43920         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
43921         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
43922         "... error: integer overflow in preprocessor expression".
43923
43924 2009-02-05  Ben Pfaff  <blp@gnu.org>
43925
43926         Fix link errors on Windows when close module is used.
43927         * modules/close: Add $(LIB_CLOSE) to Link section.
43928         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
43929         $(LIB_CLOSE) on Windows.
43930
43931 2009-02-05  Jim Meyering  <meyering@redhat.com>
43932
43933         still avoid unused-parameter warnings, but do it cleanly
43934         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
43935         (get_fs_usage): Cast to void instead.
43936         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
43937         (dev_from_mount_options, read_file_system_list): Cast to void.
43938         Prompted by Bruno Haible.
43939
43940 2009-02-04  Jim Meyering  <meyering@redhat.com>
43941
43942         fsusage.c: correct copyright year
43943         * lib/fsusage.c: Reflect year in which the change is pushed into
43944
43945         avoid misc. warnings
43946         * lib/fsusage.c (UNUSED_PARAM): Define.
43947         (get_fs_usage): Mark parameter "disk" as unused.
43948         * lib/getugroups.c (getgrent): Use "void" in prototype.
43949         * lib/mountlist.c: Mark unused parameters.
43950         (read_file_system_list): Declare a local with "const".
43951         * lib/nanosleep.c (getnow): Declare static.
43952         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
43953
43954         dirfd: set errno upon failure
43955         * lib/dirfd.c: Include <errno.h>.
43956         Set errno to ENOTSUP when returning -1.
43957         * modules/dirfd (Depends-on): Add errno.
43958         Suggested by John Kodis <kodis@comcast.net>.
43959
43960 2009-02-01  Bruno Haible  <bruno@clisp.org>
43961
43962         Don't assume sizeof (long) >= sizeof (void *).
43963         * lib/memcmp.c: Include stdint.h.
43964         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
43965         srcp2 to 'const byte *'.
43966         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
43967         types to uintptr_t.
43968         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
43969         * modules/memcmp (Depends-on): Add stdint.
43970         Reported by Ozkan Sezer <sezeroz@gmail.com>.
43971
43972 2009-01-30  Eric Blake  <ebb9@byu.net>
43973
43974         fix more require-before-expand issues
43975         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
43976         expand, AC_PROG_AWK.
43977         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
43978
43979 2009-01-28  Eric Blake  <ebb9@byu.net>
43980
43981         version-etc: use consistent URL formatting
43982         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
43983         Improve formatting.  Use fputs for string without %.
43984
43985 2009-01-28  Jim Meyering  <meyering@redhat.com>
43986
43987         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
43988         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
43989         "underquoted definition of NAME" from autoconf-2.59.
43990
43991 2009-01-28  Bruno Haible  <bruno@clisp.org>
43992
43993         * doc/gnulib.texi: Add "Obsolete modules" to index.
43994
43995 2009-01-28  Jim Meyering  <meyering@redhat.com>
43996
43997         useless-if-before-free: recognize more variants
43998         * build-aux/useless-if-before-free: Also recognize e.g.,
43999         if (NULL != p) free (p);
44000
44001 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
44002
44003         test-getaddrinfo: skip (don't fail) this test when there's no network
44004         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
44005         on the presumption that it means you lack network access.
44006
44007 2009-01-26  Jim Meyering  <meyering@redhat.com>
44008
44009         fflush: avoid warnings on modern systems
44010         * lib/fflush.c (rpl_fflush): Move declarations of locals,
44011         pos and result, into scopes where they're used.
44012
44013 2009-01-26  Eric Blake  <ebb9@byu.net>
44014
44015         Silence warning reintroduced by recent extensions patch.
44016         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
44017         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
44018         autoconf.
44019
44020         Backport improved autoconf semantics of AC_DEFUN_ONCE.
44021         * m4/00gnulib.m4: New file.
44022         * gnulib-tool (func_get_filelist): Always use it.
44023         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
44024         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
44025
44026 2009-01-25  Bruno Haible  <bruno@clisp.org>
44027
44028         Make test-quotearg work on MacOS X and AIX.
44029         * tests/test-quotearg.sh: New file.
44030         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
44031         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
44032         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
44033         include <libintl.h>.
44034         (fake_locale): Remove variable.
44035         (gettext, dgettext, dcgettext): Remove functions.
44036         (main): Instead of setting a fake locale, set a real locale. Call
44037         textdomain and bindtextdomain.
44038         * modules/quotearg-tests (Files): Add the new files.
44039         (Depends-on): Add gettext, setenv, unsetenv.
44040         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
44041         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
44042         Augment TESTS_ENVIRONMENT.
44043
44044 2009-01-25  Bruno Haible  <bruno@clisp.org>
44045
44046         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
44047         fr_FR.ISO8859-1 locale on MacOS X.
44048         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
44049         ja_JP.eucJP locale on MacOS X.
44050         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
44051         zh_CN.GB18030 locale on MacOS X.
44052
44053 2009-01-25  Bruno Haible  <bruno@clisp.org>
44054
44055         Avoid link errors on MacOS X 10.3.
44056         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
44057         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44058
44059 2009-01-25  Bruno Haible  <bruno@clisp.org>
44060
44061         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
44062         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
44063         * modules/pipe (Files): Remove m4/posix_spawn.m4.
44064         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
44065         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
44066         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
44067         posix_spawnattr_init, posix_spawnattr_setsigmask,
44068         posix_spawnattr_setflags, posix_spawnattr_destroy.
44069
44070         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
44071         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
44072         * modules/execute (Files): Remove m4/posix_spawn.m4.
44073         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
44074         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
44075         posix_spawnattr_init, posix_spawnattr_setsigmask,
44076         posix_spawnattr_setflags, posix_spawnattr_destroy.
44077
44078 2009-01-25  Bruno Haible  <bruno@clisp.org>
44079
44080         * lib/glthread/threadlib.c: Include <stdlib.h>.
44081
44082 2009-01-25  Bruno Haible  <bruno@clisp.org>
44083
44084         * lib/glthread/threadlib.c (dummy): New declaration.
44085
44086 2009-01-25  Bruno Haible  <bruno@clisp.org>
44087
44088         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
44089         multibyte characters also for the GB18030 encoding. Don't crash when
44090         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
44091
44092 2009-01-25  Bruno Haible  <bruno@clisp.org>
44093
44094         Avoid redefining 'struct random_data' on OSF/1 5.1.
44095         * lib/stdlib.in.h: Include <random.h> if it exists.
44096         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
44097         HAVE_RANDOM_H. Include <random.h> when testing whether
44098         'struct random_data' exists.
44099         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
44100
44101 2009-01-25  Bruno Haible  <bruno@clisp.org>
44102
44103         Don't install charset.alias on MacOS X >= 10.3.
44104         * lib/localcharset.c (DARWIN7): New macro.
44105         (get_charset_aliases): Hardcode the result for Darwin7.
44106         * modules/localcharset (install-exec-local): Don't install
44107         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
44108
44109 2009-01-25  Bruno Haible  <bruno@clisp.org>
44110
44111         Don't install charset.alias on mingw and Cygwin.
44112         * modules/localcharset (install-exec-local): Don't install
44113         charset.alias on mingw and Cygwin, if the file does not yet exist.
44114         The result for these platforms is hardcoded in localcharset.c.
44115
44116 2009-01-25  Bruno Haible  <bruno@clisp.org>
44117
44118         Make it possible again to use AC_GNU_SOURCE together with gnulib.
44119         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
44120         before requiring AC_USE_SYSTEM_EXTENSIONS.
44121
44122 2009-01-25  Jim Meyering  <meyering@redhat.com>
44123
44124         c-strtod: avoid warnings
44125         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
44126         "assignment discards qualifiers from pointer target type" warnings.
44127
44128 2009-01-24  Bruno Haible  <bruno@clisp.org>
44129
44130         Add support for non-UTF-8 locales on MacOS X.
44131         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
44132         canonical encodings. For Darwin 7 and newer, don't map traditional
44133         encodings to UTF-8.
44134         Reported by Vincent Lefevre <vincent@vinc17.org>
44135         at <http://savannah.gnu.org/bugs/?25235>.
44136
44137 2009-01-24  Bruno Haible  <bruno@clisp.org>
44138
44139         * doc/gnulib.texi (Obsolete modules): New section.
44140         Reported by Mike Frysinger <vapier@gentoo.org>.
44141
44142 2009-01-24  Bruno Haible  <bruno@clisp.org>
44143
44144         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
44145         (%.dvi): New rule.
44146
44147 2009-01-24  Bruno Haible  <bruno@clisp.org>
44148
44149         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
44150         Reported by Eric Blake.
44151
44152 2009-01-24  Bruno Haible  <bruno@clisp.org>
44153
44154         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
44155         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
44156         Reported by Gary V. Vaughan <gary@gnu.org>.
44157
44158 2009-01-24  Bruno Haible  <bruno@clisp.org>
44159
44160         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
44161
44162 2009-01-23  Bruno Haible  <bruno@clisp.org>
44163
44164         Make c-strtod, c-strtold usable in libraries.
44165         * lib/c-strtod.c: Include string.h instead of xalloc.h.
44166         (C_STRTOD): Call strdup instead of xstrdup.
44167         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
44168         * modules/c-strtold (Depends-on): Likewise.
44169         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
44170         * NEWS: Mention the change.
44171         Reported by Michael Gold <mgold@ncf.ca>.
44172
44173 2009-01-23  Jim Meyering  <meyering@redhat.com>
44174
44175         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
44176         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
44177         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
44178
44179 2009-01-23  Simon Josefsson  <simon@josefsson.org>
44180
44181         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
44182         GNU CoreUtils.
44183         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
44184         * modules/version-etc (Description): Update.
44185
44186 2009-01-22  Bruno Haible  <bruno@clisp.org>
44187
44188         Cache the C locale object.
44189         * lib/c-strtod.c (c_locale_cache): New variable.
44190         (c_locale): New function.
44191         (C_STRTOD): Use it, and don't call freelocale.
44192         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
44193         Suggested by Paolo Bonzini.
44194
44195 2009-01-21  Bruno Haible  <bruno@clisp.org>
44196
44197         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
44198         conditions other than overflow.
44199
44200 2009-01-21  Bruno Haible  <bruno@clisp.org>
44201
44202         * lib/c-strtod.c: Include errno.h.
44203         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
44204         value from STRTOD_L and STRTOD.
44205
44206 2009-01-21  Bruno Haible  <bruno@clisp.org>
44207         and Jim Meyering  <meyering@redhat.com>
44208
44209         nanosleep: skip configure test (fail it) for apple universal builds
44210         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
44211         universal builds, assume that nanosleep does not work.
44212         * modules/nanosleep (Depends-on): Add multiarch.
44213
44214         mktime: skip configure test (fail it) for apple universal builds
44215         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
44216         universal builds, assume that mktime does not work.
44217         * modules/mktime (Depends-on): Add multiarch.
44218
44219 2009-01-21  Eric Blake  <ebb9@byu.net>
44220
44221         multiarch: avoid expand-before-require warning
44222         * modules/multiarch (configure.ac): Require, rather than expand,
44223         gl_MULTIARCH.
44224         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
44225         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
44226         enforce that all clients require it.  Partial reversion of
44227         2008-12-29 patch.
44228
44229         error: avoid expand-before-require warning
44230         * modules/errno (configure.ac): Require, rather than expand,
44231         gl_HEADER_ERRNO_H.
44232         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
44233         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
44234         enforce that all clients require it.
44235
44236         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
44237         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
44238         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
44239         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
44240
44241 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
44242
44243         Revert:
44244         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
44245
44246         regex: do not depend on obsolete modules.
44247         * modules/regex: Remove memcmp and memmove.
44248
44249 2009-01-20  Bruno Haible  <bruno@clisp.org>
44250
44251         Make the 'link' module link on Windows NT 4.
44252         * lib/link.c (_WIN32_WINNT): Don't define.
44253         (CreateHardLinkFuncType): New type.
44254         (CreateHardLinkFunc, initialized): New variables.
44255         (initialize): New function.
44256         (link): Invoke CreateHardLink indirectly through the function pointer.
44257
44258 2009-01-20  Bruno Haible  <bruno@clisp.org>
44259
44260         Fix compilation failure on mingw.
44261         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
44262
44263 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
44264
44265         * doc/c-strtod.texi: Mention a couple of restrictions.
44266
44267 2009-01-20  Jim Meyering  <meyering@redhat.com>
44268
44269         gettimeofday: move more declarations out of functions
44270         * lib/gettimeofday.c: Move extern declarations of tzset and
44271         gmtime out of containing functions.  Prompted by Bruno Haible.
44272
44273 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
44274
44275         regex: do not depend on obsolete modules.
44276         * modules/regex: Remove memcmp and memmove.
44277
44278 2009-01-19  Bruno Haible  <bruno@clisp.org>
44279
44280         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
44281         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
44282         gl_BIGENDIAN, not AC_C_BIGENDIAN.
44283         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
44284         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
44285
44286 2009-01-19  Bruno Haible  <bruno@clisp.org>
44287
44288         * tests/test-link.c: Include <errno.h>.
44289         (main): Exit with code 77 when a hard link cannot be created due to
44290         the file system.
44291         * tests/test-link.sh: Skip test when a hard link cannot be created due
44292         to the file system.
44293         Suggested by Eric Blake.
44294
44295 2009-01-19  Martin Lambers  <marlam@marlam.de>
44296
44297         * modules/link-tests: New file.
44298         * tests/test-link.sh: New file.
44299         * tests/test-link.c: New file.
44300
44301 2009-01-19  Eric Blake  <ebb9@byu.net>
44302
44303         doc: mention another function added in cygwin 1.7.0
44304         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
44305         Another new function in cygwin 1.7.
44306
44307 2009-01-19  Bruno Haible  <bruno@clisp.org>
44308
44309         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
44310         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
44311         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
44312         gl_BIGENDIAN, not AC_C_BIGENDIAN.
44313         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44314         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
44315         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
44316         * m4/md4.m4 (gl_MD4): Likewise.
44317         * m4/md5.m4 (gl_MD5): Likewise.
44318         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
44319         * m4/sha1.m4 (gl_SHA1): Likewise.
44320         * m4/sha256.m4 (gl_SHA256): Likewise.
44321         * m4/sha512.m4 (gl_SHA512): Likewise.
44322
44323 2009-01-19  Bruno Haible  <bruno@clisp.org>
44324
44325         * modules/uniname/uniname-tests (Depends-on): Add progname.
44326         * tests/uniname/test-uninames.c: Include progname.h.
44327         (main): Call set_program_name.
44328
44329         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
44330         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
44331         (main): Call set_program_name.
44332
44333         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
44334         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
44335         (main): Call set_program_name.
44336
44337         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
44338         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
44339         (main): Call set_program_name.
44340
44341         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
44342         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
44343         (main): Call set_program_name.
44344
44345         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
44346         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
44347         (main): Call set_program_name.
44348
44349         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
44350         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
44351         (main): Call set_program_name.
44352
44353         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
44354         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
44355         (main): Call set_program_name.
44356
44357         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
44358         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
44359         (main): Call set_program_name.
44360
44361 2009-01-19  Eric Blake  <ebb9@byu.net>
44362
44363         test-unistd: test previous patch
44364         * tests/test-unistd.c: Test *_FILENO macros.
44365
44366         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
44367         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44368         Guarantee a definition.
44369         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
44370         * modules/unistd-safer (Depends-on): Add dependency on unistd.
44371         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
44372         * lib/dup-safer.c (STDERR_FILENO): Likewise.
44373         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44374         Likewise.
44375         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
44376         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
44377         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44378         Likewise.
44379         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
44380         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
44381         (STDERR_FILENO): Likewise.
44382         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
44383         (STDERR_FILENO): Likewise.
44384         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
44385         (STDERR_FILENO): Likewise.
44386         Reported by Elbert Pol.
44387
44388 2009-01-19  Eric Blake  <ebb9@byu.net>
44389
44390         doc: mention more functions added in cygwin 1.7.0
44391         * doc/posix-functions/abort.texi (abort): Update wording related
44392         to cygwin.
44393         * doc/posix-functions/daylight.texi (daylight): Likewise.
44394         * doc/posix-functions/optarg.texi (optarg): Likewise.
44395         * doc/posix-functions/optarg.texi (opterr): Likewise.
44396         * doc/posix-functions/optarg.texi (optind): Likewise.
44397         * doc/posix-functions/optarg.texi (optopt): Likewise.
44398         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
44399         worked in 1.5.x, and was withdrawn in 1.7.
44400         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
44401         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
44402         cygwin versions.
44403         * doc/posix-functions/perror.texi (perror): Likewise.
44404         * doc/posix-functions/printf.texi (printf): Likewise.
44405         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
44406         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
44407         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
44408         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
44409         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
44410         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
44411         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44412         Likewise.
44413         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44414         Likewise.
44415         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
44416         this function.
44417         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
44418         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
44419         Likewise.
44420         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
44421         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
44422         * doc/posix-functions/confstr.texi (confstr): Likewise.
44423         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
44424         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
44425         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
44426         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
44427         * doc/posix-functions/fputws.texi (fputws): Likewise.
44428         * doc/posix-functions/fwide.texi (fwide): Likewise.
44429         * doc/posix-functions/getwc.texi (getwc): Likewise.
44430         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
44431         * doc/posix-functions/putwc.texi (putwc): Likewise.
44432         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
44433         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
44434         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
44435         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
44436         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
44437         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
44438         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
44439         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
44440         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
44441         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
44442         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
44443
44444 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
44445
44446         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
44447         * lib/ioctl.c: Include <sys/ioctl.h>.
44448
44449 2009-01-19  Simon Josefsson  <simon@josefsson.org>
44450
44451         * modules/getdate-tests (Depends-on): Add progname.
44452         * tests/test-getdate.c: Use progname module, to avoid link errors
44453         on non-glibc systems.
44454
44455 2009-01-18  Simon Josefsson  <simon@josefsson.org>
44456
44457         * modules/filenamecat-tests (Depends-on): Add progname.
44458         * modules/fstrcmp-tests (Depends-on): Likewise.
44459
44460         * tests/test-filenamecat.c: Use progname module, to avoid link
44461         errors on non-glibc systems.
44462         * tests/test-fstrcmp.c: Likewise.
44463
44464 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
44465
44466         gettimeofday: avoid warning: nested extern declaration of 'localtime'
44467         * lib/gettimeofday.c: Move extern declaration out of function.
44468
44469 2009-01-18  Bruno Haible  <bruno@clisp.org>
44470
44471         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
44472         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
44473         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
44474
44475 2009-01-18  Bruno Haible  <bruno@clisp.org>
44476
44477         * lib/strftime.c (MEMPCPY): Remove unused macro.
44478         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
44479
44480 2009-01-18  Martin Lambers  <marlam@marlam.de>
44481
44482         New module 'link'.
44483         * lib/unistd.in.h (link): New declaration.
44484         * lib/link.c: New file.
44485         * m4/link.m4: New file.
44486         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
44487         HAVE_LINK.
44488         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
44489         * modules/link: New file.
44490         * doc/posix-functions/link.texi: Mention the new module.
44491
44492 2009-01-18  Bruno Haible  <bruno@clisp.org>
44493
44494         * tests/test-avltree_list.c (main): Call set_program_name.
44495         * tests/test-avltree_oset.c (main): Likewise.
44496         * tests/test-obstack-printf.c: Include progname.h.
44497         (main): Call set_program_name.
44498         * tests/test-quotearg.c: Include progname.h.
44499         (main): Call set_program_name.
44500         * tests/test-xmemdup0.c: Include progname.h.
44501         (main): Call set_program_name.
44502
44503 2009-01-18  Bruno Haible  <bruno@clisp.org>
44504
44505         New module 'alphasort'.
44506         * lib/dirent.in.h (alphasort): New declaration.
44507         * lib/alphasort.c: New file, from glibc with modifications.
44508         * m4/alphasort.m4: New file.
44509         * modules/alphasort: New file.
44510         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
44511         HAVE_ALPHASORT.
44512         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
44513         HAVE_ALPHASORT.
44514         * doc/posix-functions/alphasort.texi: Mention the new module and the
44515         portability problems.
44516
44517 2009-01-18  Bruno Haible  <bruno@clisp.org>
44518
44519         New module 'scandir'.
44520         * lib/dirent.in.h (scandir): New declaration.
44521         * lib/scandir.c: New file, from glibc with modifications.
44522         * m4/scandir.m4: New file.
44523         * modules/scandir: New file.
44524         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
44525         HAVE_SCANDIR.
44526         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
44527         HAVE_SCANDIR.
44528         * doc/posix-functions/scandir.texi: Mention the new module and the
44529         portability problems.
44530
44531 2009-01-17  Bruno Haible  <bruno@clisp.org>
44532
44533         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
44534         Update documentation.
44535         (func_remove_suffix): Escape all dots in the suffix. Update
44536         documentation.
44537         (func_filter_filelist): Update documentation.
44538         Reported by Ralf Wildenhues.
44539
44540 2009-01-17  Bruno Haible  <bruno@clisp.org>
44541
44542         * modules/dprintf-posix-tests: New file.
44543         * tests/test-dprintf-posix.sh: New file.
44544         * tests/test-dprintf-posix.c: New file.
44545
44546         New modules 'dprintf', 'dprintf-posix'.
44547         * lib/stdio.in.h (dprintf): New declaration.
44548         * lib/dprintf.c: New file.
44549         * m4/dprintf.m4: New file.
44550         * m4/dprintf-posix.m4: New file.
44551         * modules/dprintf: New file.
44552         * modules/dprintf-posix: New file.
44553         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
44554         HAVE_DPRINTF, REPLACE_DPRINTF.
44555         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
44556         HAVE_DPRINTF, REPLACE_DPRINTF.
44557         * doc/posix-functions/dprintf.texi: Mention the new modules.
44558
44559 2009-01-17  Bruno Haible  <bruno@clisp.org>
44560
44561         * modules/vdprintf-posix-tests: New file.
44562         * tests/test-vdprintf-posix.sh: New file.
44563         * tests/test-vdprintf-posix.c: New file.
44564
44565         New modules 'vdprintf', 'vdprintf-posix'.
44566         * lib/stdio.in.h (vdprintf): New declaration.
44567         * lib/vdprintf.c: New file.
44568         * m4/vdprintf.m4: New file.
44569         * m4/vdprintf-posix.m4: New file.
44570         * modules/vdprintf: New file.
44571         * modules/vdprintf-posix: New file.
44572         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
44573         HAVE_VDPRINTF, REPLACE_VDPRINTF.
44574         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
44575         HAVE_VDPRINTF, REPLACE_VDPRINTF.
44576         * doc/posix-functions/vdprintf.texi: Mention the new modules.
44577
44578 2009-01-17  Bruno Haible  <bruno@clisp.org>
44579
44580         Fix replacement of fopen on mingw.
44581         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
44582         mingw.
44583
44584 2009-01-17  Bruno Haible  <bruno@clisp.org>
44585
44586         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
44587         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
44588
44589 2009-01-17  Bruno Haible  <bruno@clisp.org>
44590
44591         Avoid test-fflush2.sh failure on mingw.
44592         * tests/test-fflush2.c: Include binary-io.h.
44593         (main): Put standard input into binary mode.
44594         * modules/fflush-tests (Depends-on): Add binary-io.
44595
44596 2009-01-17  Bruno Haible  <bruno@clisp.org>
44597
44598         * lib/wchar.in.h: In another particular situation, include only the
44599         system's <wchar.h> file.
44600         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
44601         Reported by Albert Chin-A-Young <china@thewrittenword.com>
44602         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
44603
44604 2009-01-17  Bruno Haible  <bruno@clisp.org>
44605
44606         Support for stripping executables in --enable-relocatable.
44607         * build-aux/install-reloc: Expect one more argument, or an environment
44608         variable RELOC_STRIP_PROG. If set, strip the destination program and
44609         its wrapper.
44610         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
44611         RELOC_STRIP_PROG.
44612         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
44613         to set RELOCATABLE_STRIP.
44614         * NEWS: Mention the new Makefile requirement.
44615
44616 2009-01-17  Bruno Haible  <bruno@clisp.org>
44617
44618         * build-aux/install-reloc: Remove debugging information left over by
44619         C compiler on MacOS X.
44620
44621 2009-01-17  Bruno Haible  <bruno@clisp.org>
44622
44623         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
44624         * lib/progreloc.c (find_executable): Fix type of pointer passed to
44625         _NSGetExecutablePath.
44626
44627 2009-01-16  Jim Meyering  <meyering@redhat.com>
44628
44629         strerror: avoid warnings about discarding "const"
44630         * lib/strerror.c (rpl_strerror): Instead of returning a const
44631         string from each and every "case", use a variable, and add a single
44632         cast after the switch.
44633
44634 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
44635
44636         * lib/arpa_inet.in.h: Add extern "C" block for C++.
44637
44638 2009-01-16  Bruno Haible  <bruno@clisp.org>
44639
44640         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
44641         array initializer syntax that also works in C++ mode.
44642         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44643
44644 2009-01-16  Jim Meyering  <meyering@redhat.com>
44645
44646         poll: suppress a warning
44647         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
44648         to ignore "...unsigned expression < 0 is always false" warnings.
44649
44650 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
44651
44652         poll: remove declarations of unused variables
44653         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
44654         sockbuf and optlen.
44655
44656 2009-01-15  Bruno Haible  <bruno@clisp.org>
44657
44658         Make fflush-after-ungetc POSIX compliant on BSD systems.
44659         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
44660         (clear_ungetc_buffer): Implement also for other systems.
44661         (rpl_fflush): On glibc systems, invoke
44662         clear_ungetc_buffer_preserving_position. Otherwise, invoke
44663         clear_ungetc_buffer after fetching the stream's position, not before.
44664
44665 2009-01-15  Bruno Haible  <bruno@clisp.org>
44666
44667         Make fflush-after-ungetc POSIX compliant on glibc systems.
44668         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
44669         after ungetc.
44670         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
44671         (rpl_fflush): On glibc systems, simply call the system's fflush
44672         function after clearing the ungetc buffer.
44673         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
44674         Instead, lseek only to the end of file, then use the system's fseeko
44675         for the rest. On glibc systems, reset the EOF indicator bit.
44676
44677 2009-01-15  Jim Meyering  <meyering@redhat.com>
44678
44679         openmp.m4: revert quote-adding change, for portability to older autoconf
44680         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
44681         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
44682         Simon Josefsson noticed the problem when using autoconf-2.61.
44683
44684 2009-01-15  Bruno Haible  <bruno@clisp.org>
44685
44686         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
44687         * tests/test-fflush2.c (ASSERT): Always fail.
44688         (main): Add two tests for fflush() after ungetc(), taking into account
44689         the Austin Group's clarification.
44690         Suggested by Eric Blake.
44691
44692 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
44693
44694         mktime.m4: remove K&R-style function prototypes
44695         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
44696         for the Sun C++ compiler.
44697
44698 2009-01-14  Bruno Haible  <bruno@clisp.org>
44699
44700         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
44701         while including <wchar.h>.
44702         * lib/wchar.in.h: In two particular situations on HP-UX, include only
44703         the system's <wchar.h> file.
44704         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44705
44706 2009-01-14  Bruno Haible  <bruno@clisp.org>
44707
44708         * m4/csharp.m4: Don't mention gettext on the serial number line.
44709         * m4/csharpexec.m4: Likewise.
44710         * m4/eaccess.m4: Likewise.
44711         * m4/javaexec.m4: Likewise.
44712         * m4/sig_atomic_t.m4: Likewise.
44713         * m4/tmpdir.m4: Likewise.
44714         * m4/intldir.m4: Bump gettext version.
44715         * m4/lib-ld.m4: Likewise.
44716
44717 2009-01-14  Bruno Haible  <bruno@clisp.org>
44718
44719         * lib/progname.c (set_program_name): Add more comments.
44720         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
44721
44722 2009-01-14  Simon Josefsson  <simon@josefsson.org>
44723
44724         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
44725         were sys/stat.h does not define it.
44726
44727 2009-01-14  Jim Meyering  <meyering@redhat.com>
44728
44729         many *.m4 files: improve m4 quoting
44730         99% of this change was performed by running the following commands:
44731         git ls-files | grep '\.m4$' | xargs perl -pi \
44732           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
44733           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
44734           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
44735           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
44736         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
44737         The remainder were to add Copyright dates, increment serial numbers,
44738         undo some changes in comments, exclude m4/intl.m4, and add quotes
44739         around the "1" in ",1" where the unusual spacing prohibited the
44740         above regexps from doing the job.  For more details, see
44741         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
44742         * m4/acl.m4: Modified.
44743         * m4/afs.m4: Likewise.
44744         * m4/alloca.m4: Likewise.
44745         * m4/argp.m4: Likewise.
44746         * m4/argz.m4: Likewise.
44747         * m4/atexit.m4: Likewise.
44748         * m4/bison-i18n.m4: Likewise.
44749         * m4/bison.m4: Likewise.
44750         * m4/byteswap.m4: Likewise.
44751         * m4/c-stack.m4: Likewise.
44752         * m4/c-strtod.m4: Likewise.
44753         * m4/calloc.m4: Likewise.
44754         * m4/canonicalize-lgpl.m4: Likewise.
44755         * m4/chown.m4: Likewise.
44756         * m4/clock_time.m4: Likewise.
44757         * m4/codeset.m4: Likewise.
44758         * m4/copy-file.m4: Likewise.
44759         * m4/csharp.m4: Likewise.
44760         * m4/csharpcomp.m4: Likewise.
44761         * m4/csharpexec.m4: Likewise.
44762         * m4/d-ino.m4: Likewise.
44763         * m4/d-type.m4: Likewise.
44764         * m4/dirfd.m4: Likewise.
44765         * m4/double-slash-root.m4: Likewise.
44766         * m4/eaccess.m4: Likewise.
44767         * m4/eealloc.m4: Likewise.
44768         * m4/environ.m4: Likewise.
44769         * m4/errno_h.m4: Likewise.
44770         * m4/euidaccess.m4: Likewise.
44771         * m4/execute.m4: Likewise.
44772         * m4/fatal-signal.m4: Likewise.
44773         * m4/fchdir.m4: Likewise.
44774         * m4/fcntl_h.m4: Likewise.
44775         * m4/fileblocks.m4: Likewise.
44776         * m4/filenamecat.m4: Likewise.
44777         * m4/findprog.m4: Likewise.
44778         * m4/flexmember.m4: Likewise.
44779         * m4/fnmatch.m4: Likewise.
44780         * m4/fopen.m4: Likewise.
44781         * m4/fpending.m4: Likewise.
44782         * m4/fprintf-posix.m4: Likewise.
44783         * m4/free.m4: Likewise.
44784         * m4/frexp.m4: Likewise.
44785         * m4/frexpl.m4: Likewise.
44786         * m4/fsusage.m4: Likewise.
44787         * m4/ftruncate.m4: Likewise.
44788         * m4/gc-camellia.m4: Likewise.
44789         * m4/gc-random.m4: Likewise.
44790         * m4/gc.m4: Likewise.
44791         * m4/getaddrinfo.m4: Likewise.
44792         * m4/getcwd-abort-bug.m4: Likewise.
44793         * m4/getcwd-path-max.m4: Likewise.
44794         * m4/getdate.m4: Likewise.
44795         * m4/getdomainname.m4: Likewise.
44796         * m4/getgroups.m4: Likewise.
44797         * m4/gethostname.m4: Likewise.
44798         * m4/gethrxtime.m4: Likewise.
44799         * m4/getline.m4: Likewise.
44800         * m4/getloadavg.m4: Likewise.
44801         * m4/getndelim2.m4: Likewise.
44802         * m4/getpass.m4: Likewise.
44803         * m4/gettext.m4: Likewise.
44804         * m4/gettime.m4: Likewise.
44805         * m4/gettimeofday.m4: Likewise.
44806         * m4/gnulib-common.m4: Likewise.
44807         * m4/group-member.m4: Likewise.
44808         * m4/host-os.m4: Likewise.
44809         * m4/iconv.m4: Likewise.
44810         * m4/iconv_open.m4: Likewise.
44811         * m4/inet_ntop.m4: Likewise.
44812         * m4/inet_pton.m4: Likewise.
44813         * m4/inline.m4: Likewise.
44814         * m4/intldir.m4: Likewise.
44815         * m4/intlmacosx.m4: Likewise.
44816         * m4/intmax.m4: Likewise.
44817         * m4/intmax_t.m4: Likewise.
44818         * m4/inttypes.m4: Likewise.
44819         * m4/inttypes_h.m4: Likewise.
44820         * m4/inttypes-pri.m4: Likewise.
44821         * m4/isapipe.m4: Likewise.
44822         * m4/isnand.m4: Likewise.
44823         * m4/isnanf.m4: Likewise.
44824         * m4/isnanl.m4: Likewise.
44825         * m4/javacomp.m4: Likewise.
44826         * m4/javaexec.m4: Likewise.
44827         * m4/jm-winsz1.m4: Likewise.
44828         * m4/jm-winsz2.m4: Likewise.
44829         * m4/lchown.m4: Likewise.
44830         * m4/lcmessage.m4: Likewise.
44831         * m4/ldexpl.m4: Likewise.
44832         * m4/lib-ld.m4: Likewise.
44833         * m4/lib-link.m4: Likewise.
44834         * m4/libsigsegv.m4: Likewise.
44835         * m4/link-follow.m4: Likewise.
44836         * m4/localcharset.m4: Likewise.
44837         * m4/locale-fr.m4: Likewise.
44838         * m4/locale-ja.m4: Likewise.
44839         * m4/locale-tr.m4: Likewise.
44840         * m4/locale-zh.m4: Likewise.
44841         * m4/lock.m4: Likewise.
44842         * m4/longlong.m4: Likewise.
44843         * m4/ls-mntd-fs.m4: Likewise.
44844         * m4/lstat.m4: Likewise.
44845         * m4/malloc.m4: Likewise.
44846         * m4/mathl.m4: Likewise.
44847         * m4/mbrtowc.m4: Likewise.
44848         * m4/mbstate_t.m4: Likewise.
44849         * m4/mbswidth.m4: Likewise.
44850         * m4/memchr.m4: Likewise.
44851         * m4/memcmp.m4: Likewise.
44852         * m4/memcpy.m4: Likewise.
44853         * m4/memmem.m4: Likewise.
44854         * m4/memmove.m4: Likewise.
44855         * m4/mempcpy.m4: Likewise.
44856         * m4/memrchr.m4: Likewise.
44857         * m4/memset.m4: Likewise.
44858         * m4/minmax.m4: Likewise.
44859         * m4/mkdir-slash.m4: Likewise.
44860         * m4/mkdtemp.m4: Likewise.
44861         * m4/mktime.m4: Likewise.
44862         * m4/mmap-anon.m4: Likewise.
44863         * m4/mountlist.m4: Likewise.
44864         * m4/nanosleep.m4: Likewise.
44865         * m4/nls.m4: Likewise.
44866         * m4/nocrash.m4: Likewise.
44867         * m4/open.m4: Likewise.
44868         * m4/openat.m4: Likewise.
44869         * m4/openmp.m4: Likewise.
44870         * m4/pathmax.m4: Likewise.
44871         * m4/perl.m4: Likewise.
44872         * m4/physmem.m4: Likewise.
44873         * m4/pipe.m4: Likewise.
44874         * m4/po.m4: Likewise.
44875         * m4/poll.m4: Likewise.
44876         * m4/posixtm.m4: Likewise.
44877         * m4/posixver.m4: Likewise.
44878         * m4/printf-frexp.m4: Likewise.
44879         * m4/printf-frexpl.m4: Likewise.
44880         * m4/printf-posix.m4: Likewise.
44881         * m4/printf-posix-rpl.m4: Likewise.
44882         * m4/printf.m4: Likewise.
44883         * m4/progtest.m4: Likewise.
44884         * m4/putenv.m4: Likewise.
44885         * m4/readline.m4: Likewise.
44886         * m4/readlink.m4: Likewise.
44887         * m4/readutmp.m4: Likewise.
44888         * m4/realloc.m4: Likewise.
44889         * m4/regex.m4: Likewise.
44890         * m4/relocatable.m4: Likewise.
44891         * m4/relocatable-lib.m4: Likewise.
44892         * m4/rename-dest-slash.m4: Likewise.
44893         * m4/rename.m4: Likewise.
44894         * m4/rmdir-errno.m4: Likewise.
44895         * m4/rmdir.m4: Likewise.
44896         * m4/roundf.m4: Likewise.
44897         * m4/roundl.m4: Likewise.
44898         * m4/rpmatch.m4: Likewise.
44899         * m4/save-cwd.m4: Likewise.
44900         * m4/selinux-selinux-h.m4: Likewise.
44901         * m4/setenv.m4: Likewise.
44902         * m4/settime.m4: Likewise.
44903         * m4/sig2str.m4: Likewise.
44904         * m4/sig_atomic_t.m4: Likewise.
44905         * m4/signalblocking.m4: Likewise.
44906         * m4/signbit.m4: Likewise.
44907         * m4/sigpipe.m4: Likewise.
44908         * m4/sockets.m4: Likewise.
44909         * m4/sockpfaf.m4: Likewise.
44910         * m4/st_dm_mode.m4: Likewise.
44911         * m4/stat-time.m4: Likewise.
44912         * m4/stdbool.m4: Likewise.
44913         * m4/stdint.m4: Likewise.
44914         * m4/stdint_h.m4: Likewise.
44915         * m4/stpcpy.m4: Likewise.
44916         * m4/stpncpy.m4: Likewise.
44917         * m4/strcase.m4: Likewise.
44918         * m4/strchrnul.m4: Likewise.
44919         * m4/strcspn.m4: Likewise.
44920         * m4/strdup.m4: Likewise.
44921         * m4/strftime.m4: Likewise.
44922         * m4/strndup.m4: Likewise.
44923         * m4/strnlen.m4: Likewise.
44924         * m4/strpbrk.m4: Likewise.
44925         * m4/strptime.m4: Likewise.
44926         * m4/strsep.m4: Likewise.
44927         * m4/strtod.m4: Likewise.
44928         * m4/strtoimax.m4: Likewise.
44929         * m4/strtok_r.m4: Likewise.
44930         * m4/strtol.m4: Likewise.
44931         * m4/strtoll.m4: Likewise.
44932         * m4/strtoul.m4: Likewise.
44933         * m4/strtoull.m4: Likewise.
44934         * m4/strtoumax.m4: Likewise.
44935         * m4/strverscmp.m4: Likewise.
44936         * m4/threadlib.m4: Likewise.
44937         * m4/timegm.m4: Likewise.
44938         * m4/tm_gmtoff.m4: Likewise.
44939         * m4/tmpdir.m4: Likewise.
44940         * m4/tmpfile.m4: Likewise.
44941         * m4/tzset.m4: Likewise.
44942         * m4/uintmax_t.m4: Likewise.
44943         * m4/unlinkdir.m4: Likewise.
44944         * m4/unlocked-io.m4: Likewise.
44945         * m4/uptime.m4: Likewise.
44946         * m4/userspec.m4: Likewise.
44947         * m4/utimbuf.m4: Likewise.
44948         * m4/utime.m4: Likewise.
44949         * m4/utimes-null.m4: Likewise.
44950         * m4/utimes.m4: Likewise.
44951         * m4/vararrays.m4: Likewise.
44952         * m4/vasnprintf.m4: Likewise.
44953         * m4/vfprintf-posix.m4: Likewise.
44954         * m4/vprintf-posix.m4: Likewise.
44955         * m4/wait-process.m4: Likewise.
44956         * m4/wchar_t.m4: Likewise.
44957         * m4/wint_t.m4: Likewise.
44958         * m4/write-any-file.m4: Likewise.
44959         * m4/yield.m4: Likewise.
44960
44961 2009-01-13  Bruno Haible  <bruno@clisp.org>
44962
44963         Avoid test-copy-file.sh failures when ACL support insufficient.
44964         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
44965         TESTS_ENVIRONMENT.
44966         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
44967         Reported by Jim Meyering.
44968
44969 2009-01-13  Bruno Haible  <bruno@clisp.org>
44970
44971         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
44972         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
44973         * modules/unistdio/u8-printf-parse (Files): Likewise.
44974         * modules/unistdio/u32-printf-parse (Files): Likewise.
44975         * modules/unistdio/ulc-printf-parse (Files): Likewise.
44976
44977 2009-01-13  Simon Josefsson  <simon@josefsson.org>
44978
44979         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
44980         and m4/inttypes_h.m4 too.
44981
44982 2009-01-12  Eric Blake  <ebb9@byu.net>
44983
44984         tests: IRIX 6.2 cc can't compile -0.0 into .data
44985         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
44986         rather than at compile-time.
44987         * tests/test-floorl.c (minus_zero): Likewise.
44988         * tests/test-frexpl.c (minus_zero): Likewise.
44989         * tests/test-isnan.c (minus_zerol): Likewise.
44990         * tests/test-isnanl.h (minus_zero): Likewise.
44991         * tests/test-ldexpl.c (minus_zero): Likewise.
44992         * tests/test-roundl.c (minus_zero): Likewise.
44993         * tests/test-signbit.c (minus_zerol): Likewise.
44994         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
44995         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
44996         * tests/test-truncl.c (minus_zero): Likewise.
44997         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
44998         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
44999         Reported by Tom G. Christensen and Nelson H. F. Beebe.
45000
45001 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45002
45003         regex: fix glibc bug 9697
45004         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
45005         handling.
45006
45007 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45008
45009         regex: fix glibc bug 697
45010         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
45011         being NULL also if there are no backreferences.
45012
45013 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
45014
45015         regex: merge glibc changes
45016         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
45017         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
45018         re_string_skip_chars, re_string_reconstruct): Likewise.
45019         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
45020
45021 2009-01-07  Jim Meyering  <meyering@redhat.com>
45022
45023         poll: filter through cppi
45024         * lib/poll.c: Indent cpp directives to reflect nesting.
45025
45026 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
45027
45028         poll: don't return uninitialized
45029         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
45030
45031 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
45032
45033         avoid compile failure on AIX 6.1
45034         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
45035         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
45036
45037 2009-01-04  Jim Meyering  <meyering@redhat.com>
45038
45039         remove duplicate inclusion of <stdio.h>
45040         * tests/test-fprintf-posix.c: Likewise.
45041         * tests/test-printf-posix.c: Likewise.
45042         * tests/test-snprintf-posix.c: Likewise.
45043         * tests/test-sprintf-posix.c: Likewise.
45044         * tests/test-vasprintf-posix.c: Likewise.
45045         * tests/test-vfprintf-posix.c: Likewise.
45046         * tests/test-vprintf-posix.c: Likewise.
45047         * tests/test-vsnprintf-posix.c: Likewise.
45048         * tests/test-vsprintf-posix.c: Likewise.
45049
45050 2009-01-03  Jim Meyering  <meyering@redhat.com>
45051
45052         gnulib-tool: fix sed-based filtering
45053         * gnulib-tool (func_filter_filelist): Remove extra backslash
45054         in sed_fff_filter definition.
45055
45056 2009-01-02  Jim Meyering  <meyering@redhat.com>
45057
45058         strftime: avoid compilation failure on Solaris 2.6
45059         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
45060         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
45061         Don't #define mbrlen or mbsinit, since now they're guaranteed to
45062         be available.  Reported by Tom G. Christensen.  Details in
45063         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
45064
45065 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45066             Bruno Haible  <bruno@clisp.org>
45067
45068         Speed up gnulib-tool by doing more string processing through shell
45069         built-ins.
45070         * gnulib-tool (fast_func_append): New variable.
45071         (func_remove_prefix, func_remove_suffix): New functions.
45072         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
45073         (func_filter_filelist): New function.
45074         (func_get_dependencies): Use func_remove_suffix instead of sed.
45075         (func_get_automake_snippet): Use func_filter_filelist instead of a
45076         subshell and sed invocation.
45077
45078 2009-01-01  Bruno Haible  <bruno@clisp.org>
45079
45080         Fix a security bug.
45081         * gnulib-tool (func_import, import, update): Don't allow the characters
45082         '"', '$', '`', '\' in macro arguments that become part of commands that
45083         are evaluated.
45084
45085 2009-01-01  Bruno Haible  <bruno@clisp.org>
45086
45087         * gnulib-tool (func_reset_sigpipe): Add more comments.
45088
45089 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45090
45091         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
45092         func_emit_tests_Makefile_am, func_import): Abort loops early if we
45093         already know the answer.
45094
45095 2009-01-01  Jim Meyering  <meyering@redhat.com>
45096
45097         * lib/version-etc.c (version_etc_va): Update copyright year.
45098
45099 2008-12-30  Bruno Haible  <bruno@clisp.org>
45100
45101         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
45102         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
45103         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
45104
45105 2008-12-29  Eric Blake  <ebb9@byu.net>
45106
45107         multiarch: avoid autoconf AC_REQUIRE bug
45108         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
45109         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
45110         2.63 and older.
45111         Reported by Bruno Haible, and analyzed in
45112         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
45113
45114 2008-12-29  Bruno Haible  <bruno@clisp.org>
45115
45116         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
45117         files in subdirectories correctly.
45118         Reported by Ralf Wildenhues.
45119
45120 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45121
45122         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
45123         rather than 'join FILE -', for Solaris join.
45124
45125 2008-12-29  Bruno Haible  <bruno@clisp.org>
45126
45127         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
45128         quoting.
45129         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
45130         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
45131         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
45132         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
45133         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
45134         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
45135         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
45136         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
45137         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
45138         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
45139         * m4/nls.m4 (AM_NLS): Likewise.
45140         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
45141         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
45142         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
45143         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
45144         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
45145         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
45146         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
45147         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
45148         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
45149         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
45150         * m4/xsize.m4 (gl_XSIZE): Likewise.
45151         Suggested by Jim Meyering.
45152
45153 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45154
45155         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
45156         * lib/parse-duration.c: use a switch instead of cascading if's.
45157
45158 2008-12-29  Eric Blake  <ebb9@byu.net>
45159
45160         wchar.h: supply WEOF on Irix 5.3
45161         * lib/wchar.in.h (wint_t): Also supply WEOF.
45162         * lib/wctype.in.h (wint_t): Likewise.
45163         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
45164         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
45165         Reported by Tom G. Christensen.
45166
45167 2008-12-26  Bruno Haible  <bruno@clisp.org>
45168
45169         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
45170         i486, i586, i686.
45171
45172 2008-12-26  Bruno Haible  <bruno@clisp.org>
45173
45174         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
45175
45176 2008-12-26  Bruno Haible  <bruno@clisp.org>
45177
45178         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
45179         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
45180         not __STDC_CONSTANT_MACROS.
45181         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
45182
45183 2008-12-25  Bruno Haible  <bruno@clisp.org>
45184
45185         Add support for universal builds to vasnprintf.
45186         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
45187         universal builds, guess no.
45188         * modules/vasnprintf-posix (Depends-on): Add multiarch.
45189         * modules/vasprintf-posix (Depends-on): Likewise.
45190         * modules/fprintf-posix (Depends-on): Likewise.
45191         * modules/vfprintf-posix (Depends-on): Likewise.
45192         * modules/snprintf-posix (Depends-on): Likewise.
45193         * modules/vsnprintf-posix (Depends-on): Likewise.
45194         * modules/sprintf-posix (Depends-on): Likewise.
45195         * modules/vsprintf-posix (Depends-on): Likewise.
45196         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45197         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45198         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45199         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45200         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45201         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45202         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45203
45204         Add support for universal builds to <inttypes.h>.
45205         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
45206         _SCNu64_PREFIX): In Apple
45207         universal builds, define directly, using _LP64.
45208         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
45209         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
45210         * modules/inttypes (Depends-on): Add multiarch.
45211         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
45212
45213         Add support for universal builds to <stdint.h>.
45214         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
45215         universal builds, define directly, using _LP64.
45216         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
45217         Apple universal builds, don't test for the size and suffix of ptrdiff_t
45218         and size_t.
45219         * modules/stdint (Depends-on): Add multiarch.
45220         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
45221
45222         New module 'multiarch'.
45223         * modules/multiarch: New file.
45224         * m4/multiarch.m4: New file.
45225
45226 2008-12-25  Bruno Haible  <bruno@clisp.org>
45227
45228         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
45229
45230 2008-12-25  Bruno Haible  <bruno@clisp.org>
45231
45232         * modules/btowc (License): Relicense under LGPLv2+.
45233         * modules/mbsinit (License): Likewise.
45234         * modules/mbrtowc (License): Likewise.
45235         * modules/wcrtomb (License): Likewise.
45236         * modules/streq (License): Likewise.
45237         Reported by David Lutterkort <lutter@redhat.com>.
45238
45239 2008-12-23  Bruno Haible  <bruno@clisp.org>
45240
45241         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
45242
45243 2008-12-23  Bruno Haible  <bruno@clisp.org>
45244
45245         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
45246         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
45247         GETADDRINFO_LIB, not in LIBS.
45248         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
45249         * modules/canon-host (Link): Likewise.
45250         * NEWS: Mention the change.
45251         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
45252         GETADDRINFO_LIB.
45253
45254 2008-12-22  Bruno Haible  <bruno@clisp.org>
45255
45256         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
45257         * doc/posix-functions/iswalpha_l.texi: Likewise.
45258         * doc/posix-functions/iswblank_l.texi: Likewise.
45259         * doc/posix-functions/iswcntrl_l.texi: Likewise.
45260         * doc/posix-functions/iswctype_l.texi: Likewise.
45261         * doc/posix-functions/iswdigit_l.texi: Likewise.
45262         * doc/posix-functions/iswgraph_l.texi: Likewise.
45263         * doc/posix-functions/iswlower_l.texi: Likewise.
45264         * doc/posix-functions/iswprint_l.texi: Likewise.
45265         * doc/posix-functions/iswpunct_l.texi: Likewise.
45266         * doc/posix-functions/iswspace_l.texi: Likewise.
45267         * doc/posix-functions/iswupper_l.texi: Likewise.
45268         * doc/posix-functions/iswxdigit_l.texi: Likewise.
45269         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
45270         * doc/posix-functions/open_wmemstream.texi: Likewise.
45271         * doc/posix-functions/swscanf.texi: Likewise.
45272         * doc/posix-functions/towctrans_l.texi: Likewise.
45273         * doc/posix-functions/towlower.texi: Likewise.
45274         * doc/posix-functions/towlower_l.texi: Likewise.
45275         * doc/posix-functions/towupper.texi: Likewise.
45276         * doc/posix-functions/towupper_l.texi: Likewise.
45277         * doc/posix-functions/vfwprintf.texi: Likewise.
45278         * doc/posix-functions/vfwscanf.texi: Likewise.
45279         * doc/posix-functions/vswscanf.texi: Likewise.
45280         * doc/posix-functions/vwprintf.texi: Likewise.
45281         * doc/posix-functions/vwscanf.texi: Likewise.
45282         * doc/posix-functions/wcpcpy.texi: Likewise.
45283         * doc/posix-functions/wcpncpy.texi: Likewise.
45284         * doc/posix-functions/wcscasecmp.texi: Likewise.
45285         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
45286         * doc/posix-functions/wcscoll_l.texi: Likewise.
45287         * doc/posix-functions/wcsdup.texi: Likewise.
45288         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45289         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
45290         * doc/posix-functions/wcsnlen.texi: Likewise.
45291         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45292         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
45293         * doc/posix-functions/wctrans_l.texi: Likewise.
45294         * doc/posix-functions/wctype_l.texi: Likewise.
45295         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
45296         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
45297         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
45298         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
45299         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
45300         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
45301         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
45302         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
45303         * doc/glibc-functions/wcschrnul.texi: Likewise.
45304         * doc/glibc-functions/wcsftime_l.texi: Likewise.
45305         * doc/glibc-functions/wcstod_l.texi: Likewise.
45306         * doc/glibc-functions/wcstof_l.texi: Likewise.
45307         * doc/glibc-functions/wcstol_l.texi: Likewise.
45308         * doc/glibc-functions/wcstold_l.texi: Likewise.
45309         * doc/glibc-functions/wcstoll_l.texi: Likewise.
45310         * doc/glibc-functions/wcstoq.texi: Likewise.
45311         * doc/glibc-functions/wcstoul_l.texi: Likewise.
45312         * doc/glibc-functions/wcstoull_l.texi: Likewise.
45313         * doc/glibc-functions/wcstouq.texi: Likewise.
45314         * doc/glibc-functions/wmempcpy.texi: Likewise.
45315
45316 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
45317             Eric Blake  <ebb9@byu.net>
45318             Paolo Bonzini  <bonzini@gnu.org>
45319             Bruno Haible  <bruno@clisp.org>
45320
45321         Make c-stack work on Haiku.
45322         * lib/c-stack.c (SA_ONSTACK): Define fallback.
45323         (c_stack_action): Use SA_ONSTACK flag.
45324
45325 2008-12-22  Bruno Haible  <bruno@clisp.org>
45326
45327         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
45328
45329 2008-12-22  Bruno Haible  <bruno@clisp.org>
45330
45331         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
45332         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
45333         being overridden.
45334         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
45335         New macros.
45336         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
45337         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
45338         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
45339         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
45340
45341 2008-12-22  Bruno Haible  <bruno@clisp.org>
45342
45343         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
45344         from test code.
45345
45346 2008-12-22  Eric Blake  <ebb9@byu.net>
45347
45348         Avoid gcc warnings on cygwin.
45349         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
45350         Avoid unused variable.
45351         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
45352         Likewise.
45353
45354 2008-12-22  Bruno Haible  <bruno@clisp.org>
45355
45356         Remove HAVE_MBRTOWC conditionals.
45357         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
45358         (mbscasecmp): Assume mbrtowc function.
45359         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
45360         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
45361         * lib/mbschr.c: Include mbuiter.h unconditionally.
45362         (mbschr): Assume mbrtowc function.
45363         * lib/mbscspn.c: Include mbuiter.h unconditionally.
45364         (mbscspn): Assume mbrtowc function.
45365         * lib/mbslen.c: Include mbuiter.h unconditionally.
45366         (mbslen): Assume mbrtowc function.
45367         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
45368         (mbsncasecmp): Assume mbrtowc function.
45369         * lib/mbsnlen.c: Include mbiter.h unconditionally.
45370         (mbsnlen): Assume mbrtowc function.
45371         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
45372         (mbspbrk): Assume mbrtowc function.
45373         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
45374         (mbspcasecmp): Assume mbrtowc function.
45375         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
45376         (mbsrchr): Assume mbrtowc function.
45377         * lib/mbssep.c: Include mbuiter.h unconditionally.
45378         (mbssep): Assume mbrtowc function.
45379         * lib/mbsspn.c: Include mbuiter.h unconditionally.
45380         (mbsspn): Assume mbrtowc function.
45381         * lib/mbsstr.c: Include mbuiter.h unconditionally.
45382         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
45383         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
45384         (mbstok_r): Assume mbrtowc function.
45385         * lib/propername.c: Include mbuiter.h unconditionally.
45386         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
45387         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
45388         (trim2): Assume mbrtowc function.
45389         * lib/mbswidth.c (mbsinit): Remove fallback definition.
45390         (mbsnwidth): Assume mbrtowc function.
45391         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
45392         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
45393         fallback definitions.
45394         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
45395
45396 2008-12-22  Bruno Haible  <bruno@clisp.org>
45397
45398         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
45399
45400 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
45401
45402         * modules/regex: Request emulations for the mb*/wc* functions we need.
45403         * m4/regex.m4: Don't look for those functions here.
45404         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
45405
45406 2008-12-22  Bruno Haible  <bruno@clisp.org>
45407
45408         * modules/fnmatch (Depends-on): Remove duplicated dependency.
45409
45410 2008-12-21  Bruno Haible  <bruno@clisp.org>
45411
45412         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
45413         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
45414         (Include): Remove conditionalization.
45415         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
45416         (Include): Remove conditionalization.
45417         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
45418         (Include): Remove conditionalization.
45419         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
45420         * m4/mbfile.m4 (gl_MBFILE): Likewise.
45421         * NEWS: Mention the change.
45422         Reported by Alan Hourihane <alanh@fairlite.co.uk>
45423         via Sergey Poznyakoff <gray@gnu.org.ua>.
45424
45425 2008-12-21  Bruno Haible  <bruno@clisp.org>
45426
45427         * MODULES.html.sh (Extended multibyte and wide character utilities
45428         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
45429         wcrtomb, wcsrtombs.
45430         (Support for systems lacking POSIX:2008): Add accept, bind, close,
45431         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
45432         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
45433         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
45434
45435 2008-12-21  Bruno Haible  <bruno@clisp.org>
45436
45437         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
45438
45439 2008-12-21  Bruno Haible  <bruno@clisp.org>
45440
45441         * modules/wcsnrtombs-tests: New file.
45442         * tests/test-wcsnrtombs1.sh: New file.
45443         * tests/test-wcsnrtombs2.sh: New file.
45444         * tests/test-wcsnrtombs3.sh: New file.
45445         * tests/test-wcsnrtombs4.sh: New file.
45446         * tests/test-wcsnrtombs.c: New file.
45447
45448         New module 'wcsnrtombs'.
45449         * lib/wchar.in.h (wcsnrtombs): New declaration.
45450         * lib/wcsnrtombs.c: New file.
45451         * lib/wcsrtombs-state.c: New file.
45452         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
45453         (internal_state): Remove variable.
45454         * m4/wcsnrtombs.m4: New file.
45455         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
45456         compilation units.
45457         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
45458         HAVE_WCSNRTOMBS.
45459         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
45460         HAVE_WCSNRTOMBS.
45461         * modules/wcsnrtombs: New file.
45462         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
45463         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
45464
45465 2008-12-21  Bruno Haible  <bruno@clisp.org>
45466
45467         * modules/wcsrtombs-tests: New file.
45468         * tests/test-wcsrtombs1.sh: New file.
45469         * tests/test-wcsrtombs2.sh: New file.
45470         * tests/test-wcsrtombs3.sh: New file.
45471         * tests/test-wcsrtombs4.sh: New file.
45472         * tests/test-wcsrtombs.c: New file.
45473
45474         New module 'wcsrtombs'.
45475         * lib/wchar.in.h (wcsrtombs): New declaration.
45476         * lib/wcsrtombs.c: New file.
45477         * m4/wcsrtombs.m4: New file.
45478         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
45479         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
45480         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
45481         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
45482         * modules/wcsrtombs: New file.
45483         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
45484         bugs.
45485
45486 2008-12-21  Bruno Haible  <bruno@clisp.org>
45487
45488         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
45489         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
45490         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
45491         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
45492         if not correct.
45493         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
45494         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
45495         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45496         m4/locale-zh.m4, m4/codeset.m4.
45497         * doc/posix-functions/wcrtomb.texi: Document the bug.
45498
45499 2008-12-21  Bruno Haible  <bruno@clisp.org>
45500
45501         Work around a btowc() bug on IRIX 6.5.
45502         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
45503         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
45504         REPLACE_WTOBC if not.
45505         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
45506         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
45507         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
45508
45509 2008-12-21  Bruno Haible  <bruno@clisp.org>
45510
45511         * modules/wcrtomb-tests: New file.
45512         * tests/test-wcrtomb.sh: New file.
45513         * tests/test-wcrtomb.c: New file.
45514
45515         New module 'wcrtomb'.
45516         * lib/wchar.in.h (wcrtomb): New declaration.
45517         * lib/wcrtomb.c: New file.
45518         * m4/wcrtomb.m4: New file.
45519         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
45520         HAVE_WCRTOMB.
45521         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
45522         HAVE_WCRTOMB.
45523         * modules/wcrtomb: New file.
45524         * doc/posix-functions/wcrtomb.texi: Mention the new module.
45525
45526 2008-12-21  Bruno Haible  <bruno@clisp.org>
45527
45528         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
45529         * modules/mbsrtowcs (Files): Likewise.
45530         * modules/wctob (Files): Likewise.
45531         * modules/c-strcase-tests (Files): Likewise.
45532         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
45533         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
45534         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
45535         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
45536         * modules/vasnprintf-posix-tests (Files): Likewise.
45537
45538 2008-12-21  William Pursell  <bill.pursell@gmail.com>
45539
45540         gitlog-to-changelog: pass all command-line arguments to git-log
45541         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
45542         it is sometimes convenient to filter the commits in various ways.
45543         gitlog-to-changelog only allows --since to specify a start date,
45544         but git-log itself supports many other filtering mechanisms.
45545         At the moment, I want to filter by branch name.  Rather than
45546         adding a --branch option to gitlog-to-changelog, it seems more
45547         flexible to simply pass all options directly to git-log and let
45548         git do the work.  Notice that this effectively makes --since a
45549         redundant option for gitlog-to-changelog, but removing it would
45550         require current usage to change since calls would then require
45551         an additional '--'.
45552
45553 2008-12-21  Bruno Haible  <bruno@clisp.org>
45554
45555         * modules/mbsnrtowcs-tests: New file.
45556         * tests/test-mbsnrtowcs1.sh: New file.
45557         * tests/test-mbsnrtowcs2.sh: New file.
45558         * tests/test-mbsnrtowcs3.sh: New file.
45559         * tests/test-mbsnrtowcs4.sh: New file.
45560         * tests/test-mbsnrtowcs.c: New file.
45561
45562         New module 'mbsnrtowcs'.
45563         * lib/wchar.in.h (mbsnrtowcs): New declaration.
45564         * lib/mbsnrtowcs.c: New file.
45565         * lib/mbsrtowcs-state.c: New file.
45566         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
45567         (internal_state): Remove variable.
45568         * m4/mbsnrtowcs.m4: New file.
45569         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
45570         compilation units.
45571         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
45572         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
45573         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
45574         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
45575         * modules/mbsnrtowcs: New file.
45576         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
45577         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
45578         portability problem.
45579
45580 2008-12-21  Bruno Haible  <bruno@clisp.org>
45581
45582         Work around mbsrtowcs bug.
45583         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
45584         (gl_FUNC_MBSRTOWCS): Invoke it.
45585         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45586         m4/locale-zh.m4.
45587         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
45588
45589 2008-12-21  Bruno Haible  <bruno@clisp.org>
45590
45591         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
45592
45593 2008-12-21  Bruno Haible  <bruno@clisp.org>
45594
45595         Update doc for AIX.
45596         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
45597         16-bit wchar_t type.
45598         * doc/posix-functions/btowc.texi: Likewise.
45599         * doc/posix-functions/fgetwc.texi: Likewise.
45600         * doc/posix-functions/fgetws.texi: Likewise.
45601         * doc/posix-functions/fputwc.texi: Likewise.
45602         * doc/posix-functions/fputws.texi: Likewise.
45603         * doc/posix-functions/fwide.texi: Likewise.
45604         * doc/posix-functions/fwprintf.texi: Likewise.
45605         * doc/posix-functions/fwscanf.texi: Likewise.
45606         * doc/posix-functions/getwchar.texi: Likewise.
45607         * doc/posix-functions/getwc.texi: Likewise.
45608         * doc/posix-functions/iswalnum.texi: Likewise.
45609         * doc/posix-functions/iswalpha.texi: Likewise.
45610         * doc/posix-functions/iswblank.texi: Likewise.
45611         * doc/posix-functions/iswcntrl.texi: Likewise.
45612         * doc/posix-functions/iswctype.texi: Likewise.
45613         * doc/posix-functions/iswdigit.texi: Likewise.
45614         * doc/posix-functions/iswgraph.texi: Likewise.
45615         * doc/posix-functions/iswlower.texi: Likewise.
45616         * doc/posix-functions/iswprint.texi: Likewise.
45617         * doc/posix-functions/iswpunct.texi: Likewise.
45618         * doc/posix-functions/iswspace.texi: Likewise.
45619         * doc/posix-functions/iswupper.texi: Likewise.
45620         * doc/posix-functions/iswxdigit.texi: Likewise.
45621         * doc/posix-functions/mbrtowc.texi: Likewise.
45622         * doc/posix-functions/mbsrtowcs.texi: Likewise.
45623         * doc/posix-functions/mbstowcs.texi: Likewise.
45624         * doc/posix-functions/mbtowc.texi: Likewise.
45625         * doc/posix-functions/putwchar.texi: Likewise.
45626         * doc/posix-functions/putwc.texi: Likewise.
45627         * doc/posix-functions/swprintf.texi: Likewise.
45628         * doc/posix-functions/tolower.texi: Likewise.
45629         * doc/posix-functions/toupper.texi: Likewise.
45630         * doc/posix-functions/towctrans.texi: Likewise.
45631         * doc/posix-functions/ungetwc.texi: Likewise.
45632         * doc/posix-functions/vswprintf.texi: Likewise.
45633         * doc/posix-functions/wcrtomb.texi: Likewise.
45634         * doc/posix-functions/wcscat.texi: Likewise.
45635         * doc/posix-functions/wcschr.texi: Likewise.
45636         * doc/posix-functions/wcscmp.texi: Likewise.
45637         * doc/posix-functions/wcscoll.texi: Likewise.
45638         * doc/posix-functions/wcscpy.texi: Likewise.
45639         * doc/posix-functions/wcscspn.texi: Likewise.
45640         * doc/posix-functions/wcsftime.texi: Likewise.
45641         * doc/posix-functions/wcslen.texi: Likewise.
45642         * doc/posix-functions/wcsncat.texi: Likewise.
45643         * doc/posix-functions/wcsncmp.texi: Likewise.
45644         * doc/posix-functions/wcsncpy.texi: Likewise.
45645         * doc/posix-functions/wcspbrk.texi: Likewise.
45646         * doc/posix-functions/wcsrchr.texi: Likewise.
45647         * doc/posix-functions/wcsrtombs.texi: Likewise.
45648         * doc/posix-functions/wcsspn.texi: Likewise.
45649         * doc/posix-functions/wcsstr.texi: Likewise.
45650         * doc/posix-functions/wcstod.texi: Likewise.
45651         * doc/posix-functions/wcstof.texi: Likewise.
45652         * doc/posix-functions/wcstoimax.texi: Likewise.
45653         * doc/posix-functions/wcstok.texi: Likewise.
45654         * doc/posix-functions/wcstold.texi: Likewise.
45655         * doc/posix-functions/wcstoll.texi: Likewise.
45656         * doc/posix-functions/wcstol.texi: Likewise.
45657         * doc/posix-functions/wcstombs.texi: Likewise.
45658         * doc/posix-functions/wcstoull.texi: Likewise.
45659         * doc/posix-functions/wcstoul.texi: Likewise.
45660         * doc/posix-functions/wcstoumax.texi: Likewise.
45661         * doc/posix-functions/wcswidth.texi: Likewise.
45662         * doc/posix-functions/wcsxfrm.texi: Likewise.
45663         * doc/posix-functions/wctob.texi: Likewise.
45664         * doc/posix-functions/wctomb.texi: Likewise.
45665         * doc/posix-functions/wctrans.texi: Likewise.
45666         * doc/posix-functions/wctype.texi: Likewise.
45667         * doc/posix-functions/wcwidth.texi: Likewise.
45668         * doc/posix-functions/wmemchr.texi: Likewise.
45669         * doc/posix-functions/wmemcmp.texi: Likewise.
45670         * doc/posix-functions/wmemcpy.texi: Likewise.
45671         * doc/posix-functions/wmemmove.texi: Likewise.
45672         * doc/posix-functions/wmemset.texi: Likewise.
45673         * doc/posix-functions/wprintf.texi: Likewise.
45674         * doc/posix-functions/wscanf.texi: Likewise.
45675
45676 2008-12-21  Bruno Haible  <bruno@clisp.org>
45677
45678         Update doc for HP-UX 11.11.
45679         * doc/posix-functions/btowc.texi: Clarify that the function is missing
45680         in HP-UX version 11.00, not in all versions of HP-UX 11.
45681         * doc/posix-functions/fwide.texi: Likewise.
45682         * doc/posix-functions/fwprintf.texi: Likewise.
45683         * doc/posix-functions/fwscanf.texi: Likewise.
45684         * doc/posix-functions/inet_ntop.texi: Likewise.
45685         * doc/posix-functions/inet_pton.texi: Likewise.
45686         * doc/posix-functions/mbrlen.texi: Likewise.
45687         * doc/posix-functions/mbrtowc.texi: Likewise.
45688         * doc/posix-functions/mbsinit.texi: Likewise.
45689         * doc/posix-functions/mbsrtowcs.texi: Likewise.
45690         * doc/posix-functions/swprintf.texi: Likewise.
45691         * doc/posix-functions/swscanf.texi: Likewise.
45692         * doc/posix-functions/towctrans.texi: Likewise.
45693         * doc/posix-functions/vfwprintf.texi: Likewise.
45694         * doc/posix-functions/vswprintf.texi: Likewise.
45695         * doc/posix-functions/vwprintf.texi: Likewise.
45696         * doc/posix-functions/wcrtomb.texi: Likewise.
45697         * doc/posix-functions/wcsrtombs.texi: Likewise.
45698         * doc/posix-functions/wcsstr.texi: Likewise.
45699         * doc/posix-functions/wctob.texi: Likewise.
45700         * doc/posix-functions/wctrans.texi: Likewise.
45701         * doc/posix-functions/wmemchr.texi: Likewise.
45702         * doc/posix-functions/wmemcmp.texi: Likewise.
45703         * doc/posix-functions/wmemcpy.texi: Likewise.
45704         * doc/posix-functions/wmemmove.texi: Likewise.
45705         * doc/posix-functions/wmemset.texi: Likewise.
45706         * doc/posix-functions/wprintf.texi: Likewise.
45707         * doc/posix-functions/wscanf.texi: Likewise.
45708
45709 2008-12-21  Bruno Haible  <bruno@clisp.org>
45710
45711         Work around a portability problem.
45712         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
45713         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
45714
45715 2008-12-20  Bruno Haible  <bruno@clisp.org>
45716
45717         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
45718         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
45719         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
45720         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
45721         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
45722
45723         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
45724         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
45725         set.
45726         (GNULIB_defined_mbstate_t): New macro.
45727         (mbsinit): Redefine if REPLACE_MBSINIT is set.
45728         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
45729         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
45730         reuses the system's mbrtowc function but works around the bugs.
45731         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
45732         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
45733         macros.
45734         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
45735         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
45736         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
45737         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
45738         REPLACE_MBSINIT if mbsinit needs to be overridden.
45739         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
45740         REPLACE_MBSINIT, REPLACE_MBRTOWC.
45741         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
45742         REPLACE_MBSINIT, REPLACE_MBRTOWC.
45743         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45744         m4/locale-zh.m4.
45745         (Depends): Add mbsinit.
45746         * modules/mbsinit (Depends): Add mbrtowc.
45747         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
45748
45749 2008-12-20  Bruno Haible  <bruno@clisp.org>
45750
45751         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
45752         so that there are no conversion errors on AIX.
45753         * tests/test-mbsrtowcs.c (main): LIkewise.
45754
45755 2008-12-20  Bruno Haible  <bruno@clisp.org>
45756
45757         Work around wctob bug on Solaris <= 9.
45758         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
45759         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
45760         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
45761         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
45762         * modules/wctob (Files): Add m4/locale-fr.m4.
45763         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
45764
45765 2008-12-20  Bruno Haible  <bruno@clisp.org>
45766
45767         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
45768         /dev/null.
45769         * tests/test-select-in.sh: Likewise.
45770         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45771
45772 2008-12-20  Bruno Haible  <bruno@clisp.org>
45773
45774         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
45775         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
45776         Cygwin 1.5.x.
45777
45778 2008-12-20  Bruno Haible  <bruno@clisp.org>
45779
45780         Ensure mbstate_t is defined on HP-UX 11.11.
45781         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
45782         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
45783         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
45784         AC_USE_SYSTEM_EXTENSIONS.
45785         * modules/fnmatch (Depends-on): Add extensions.
45786         * modules/mbrlen (Depends-on): Likewise.
45787         * modules/mbrtowc (Depends-on): Likewise.
45788         * modules/mbsinit (Depends-on): Likewise.
45789         * modules/mbsrtowcs (Depends-on): Likewise.
45790         * modules/mbswidth (Depends-on): Likewise.
45791         * modules/quotearg (Depends-on): Likewise.
45792         * modules/strftime (Depends-on): Likewise.
45793
45794 2008-12-20  Bruno Haible  <bruno@clisp.org>
45795
45796         Ensure wctob is declared on IRIX 6.5.
45797         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
45798         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
45799         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
45800         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
45801         of HAVE_WCTOB.
45802         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
45803         HAVE_WCTOB.
45804         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
45805
45806 2008-12-19  Bruno Haible  <bruno@clisp.org>
45807
45808         * modules/mbsrtowcs-tests: New file.
45809         * tests/test-mbsrtowcs1.sh: New file.
45810         * tests/test-mbsrtowcs2.sh: New file.
45811         * tests/test-mbsrtowcs3.sh: New file.
45812         * tests/test-mbsrtowcs4.sh: New file.
45813         * tests/test-mbsrtowcs.c: New file.
45814
45815         New module 'mbsrtowcs'.
45816         * lib/wchar.in.h (mbsrtowcs): New declaration.
45817         * lib/mbsrtowcs.c: New file.
45818         * m4/mbsrtowcs.m4: New file.
45819         * modules/mbsrtowcs: New file.
45820         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
45821         HAVE_MBSRTOWCS.
45822         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
45823         HAVE_MBSRTOWCS.
45824         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
45825
45826 2008-12-19  Bruno Haible  <bruno@clisp.org>
45827
45828         New module 'mbrlen'.
45829         * lib/wchar.in.h (mbrlen): New declaration.
45830         * lib/mbrlen.c: New file.
45831         * m4/mbrlen.m4: New file.
45832         * modules/mbrlen: New file.
45833         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
45834         HAVE_MBRLEN.
45835         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
45836         HAVE_MBRLEN.
45837         * doc/posix-functions/mbrlen.texi: Document the new module.
45838
45839 2008-12-19  Bruno Haible  <bruno@clisp.org>
45840
45841         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
45842         * modules/mbrtowc (Depends-on): Add verify.
45843         Suggested by Paul Eggert.
45844
45845 2008-12-18  Bruno Haible  <bruno@clisp.org>
45846
45847         * modules/mbsinit-tests: New file.
45848         * tests/test-mbsinit.sh: New file.
45849         * tests/test-mbsinit.c: New file.
45850
45851 2008-12-18  Bruno Haible  <bruno@clisp.org>
45852
45853         * modules/mbrtowc-tests: New file.
45854         * tests/test-mbrtowc1.sh: New file.
45855         * tests/test-mbrtowc2.sh: New file.
45856         * tests/test-mbrtowc3.sh: New file.
45857         * tests/test-mbrtowc4.sh: New file.
45858         * tests/test-mbrtowc.c: New file.
45859
45860         New module 'mbrtowc'.
45861         * lib/wchar.in.h (mbstate_t): Override when the system does not have
45862         mbsinit and mbrtowc.
45863         (mbrtowc): New declaration.
45864         * lib/mbrtowc.c: New file.
45865         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
45866         * modules/mbrtowc: New file.
45867         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
45868         HAVE_MBRTOWC.
45869         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
45870         HAVE_MBRTOWC.
45871         * doc/posix-functions/mbrtowc.texi: Document the new module.
45872
45873 2008-12-18  Bruno Haible  <bruno@clisp.org>
45874
45875         New module 'wctob'.
45876         * lib/wchar.in.h (wctob): New declaration.
45877         * lib/wctob.c: New file.
45878         * m4/wctob.m4: New file.
45879         * modules/wctob: New file.
45880         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
45881         HAVE_WCTOB.
45882         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
45883         * doc/posix-functions/wctob.texi: Document the new module.
45884
45885 2008-12-18  Bruno Haible  <bruno@clisp.org>
45886
45887         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
45888         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
45889
45890 2008-12-18  Simon Josefsson  <simon@josefsson.org>
45891
45892         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
45893         G. Christensen" <tgc@jupiterrise.com>.
45894
45895         * lib/flock.c: Need to include errno.h.  Reported by "Tom
45896         G. Christensen" <tgc@jupiterrise.com>.
45897
45898         * lib/flock.c: Need to include string.h.  Reported by "Tom
45899         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
45900         <ebb9@byu.net>.
45901
45902 2008-12-18  Bruno Haible  <bruno@clisp.org>
45903
45904         * m4/locale-ja.m4: New file, from GNU gettext.
45905
45906 2008-12-17  Bruno Haible  <bruno@clisp.org>
45907
45908         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
45909         Suggested by Eric Blake.
45910
45911 2008-12-17  Bruno Haible  <bruno@clisp.org>
45912
45913         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
45914
45915 2008-12-17  Bruno Haible  <bruno@clisp.org>
45916
45917         * lib/mbsinit.c: Include verify.h. Verify an assumption.
45918         * modules/mbsinit (Depends-on): Add verify.
45919         Suggested by Paul Eggert.
45920
45921 2008-12-17  Bruno Haible  <bruno@clisp.org>
45922
45923         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
45924         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
45925         gl_FUNC_MBRTOWC.
45926         * m4/mbiter.m4 (gl_MBITER): LIkewise.
45927         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
45928         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
45929         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
45930         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
45931         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
45932         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
45933         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
45934         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
45935         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
45936         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
45937         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
45938         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
45939         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
45940         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
45941         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45942         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
45943         * modules/trim (configure.ac): Likewise.
45944
45945 2008-12-17  Bruno Haible  <bruno@clisp.org>
45946
45947         * modules/btowc-tests: New file.
45948         * tests/test-btowc1.sh: New file.
45949         * tests/test-btowc2.sh: New file.
45950         * tests/test-btowc.c: New file.
45951
45952         New module 'btowc'.
45953         * lib/wchar.in.h (btowc): New declaration.
45954         * lib/btowc.c: New file.
45955         * m4/btowc.m4: New file.
45956         * modules/btowc: New file.
45957         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
45958         HAVE_BTOWC.
45959         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
45960         * doc/posix-functions/btowc.texi: Document the new module.
45961
45962 2008-12-17  Bruno Haible  <bruno@clisp.org>
45963
45964         New module 'mbsinit'.
45965         * lib/wchar.in.h (mbsinit): New declaration.
45966         * lib/mbsinit.c: New file.
45967         * m4/mbsinit.m4: New file.
45968         * modules/mbsinit: New file.
45969         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
45970         HAVE_MBSINIT.
45971         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
45972         HAVE_MBSINIT.
45973         * doc/posix-functions/mbsinit.texi: Document the new module.
45974
45975 2008-12-16  Bruno Haible  <bruno@clisp.org>
45976
45977         * lib/unistd.in.h: Add comment.
45978         * tests/test-environ.c: Don't include <stdlib.h>.
45979
45980 2008-12-16  Bruno Haible  <bruno@clisp.org>
45981
45982         * lib/parse-duration.h (parse_duration): Document return value
45983         convention.
45984         * lib/parse-duration.c: Include specification header first. Add
45985         comments.
45986         (_): Remove macro.
45987         (parse_year_month_day, parse_hour_minute_second): Move side effects
45988         outside of strchr call.
45989         (parse_non_iso8601): Move side effects outside of isspace call.
45990         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
45991         call.
45992
45993 2008-12-16  Bruno Haible  <bruno@clisp.org>
45994
45995         * tests/test-parse-duration.sh: Produce no output when the test
45996         succeeds.
45997
45998 2008-12-16  Bruno Haible  <bruno@clisp.org>
45999
46000         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
46001         expressions.
46002
46003 2008-12-15  Bruno Haible  <bruno@clisp.org>
46004
46005         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
46006         * doc/glibc-functions/flistxattr.texi: Likewise.
46007         * doc/glibc-functions/fopencookie.texi: Likewise.
46008         * doc/glibc-functions/fremovexattr.texi: Likewise.
46009         * doc/glibc-functions/fsetxattr.texi: Likewise.
46010         * doc/glibc-functions/getxattr.texi: Likewise.
46011         * doc/glibc-functions/lgetxattr.texi: Likewise.
46012         * doc/glibc-functions/listxattr.texi: Likewise.
46013         * doc/glibc-functions/llistxattr.texi: Likewise.
46014         * doc/glibc-functions/lremovexattr.texi: Likewise.
46015         * doc/glibc-functions/lsetxattr.texi: Likewise.
46016         * doc/glibc-functions/removexattr.texi: Likewise.
46017         * doc/glibc-functions/setxattr.texi: Likewise.
46018         * doc/posix-functions/open_memstream.texi: Likewise.
46019
46020 2008-12-15  Eric Blake  <ebb9@byu.net>
46021
46022         Update doc for cygwin 1.7.
46023         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
46024         functions.
46025         * doc/posix-functions/fchmodat.texi: Likewise.
46026         * doc/posix-functions/fchownat.texi: Likewise.
46027         * doc/posix-functions/fdopendir.texi: Likewise.
46028         * doc/posix-functions/fmemopen.texi: Likewise.
46029         * doc/posix-functions/freeaddrinfo.texi: Likewise.
46030         * doc/posix-functions/fstatat.texi: Likewise.
46031         * doc/posix-functions/futimens.texi: Likewise.
46032         * doc/posix-functions/gai_strerror.texi: Likewise.
46033         * doc/posix-functions/getaddrinfo.texi: Likewise.
46034         * doc/posix-functions/getnameinfo.texi: Likewise.
46035         * doc/posix-functions/if_freenameindex.texi: Likewise.
46036         * doc/posix-functions/if_indextoname.texi: Likewise.
46037         * doc/posix-functions/if_nameindex.texi: Likewise.
46038         * doc/posix-functions/if_nametoindex.texi: Likewise.
46039         * doc/posix-functions/insque.texi: Likewise.
46040         * doc/posix-functions/linkat.texi: Likewise.
46041         * doc/posix-functions/llrint.texi: Likewise.
46042         * doc/posix-functions/llrintf.texi: Likewise.
46043         * doc/posix-functions/llrintl.texi: Likewise.
46044         * doc/posix-functions/lockf.texi: Likewise.
46045         * doc/posix-functions/lrintl.texi: Likewise.
46046         * doc/posix-functions/mkdirat.texi: Likewise.
46047         * doc/posix-functions/mkfifoat.texi: Likewise.
46048         * doc/posix-functions/mknodat.texi: Likewise.
46049         * doc/posix-functions/mq_close.texi: Likewise.
46050         * doc/posix-functions/mq_getattr.texi: Likewise.
46051         * doc/posix-functions/mq_notify.texi: Likewise.
46052         * doc/posix-functions/mq_open.texi: Likewise.
46053         * doc/posix-functions/mq_receive.texi: Likewise.
46054         * doc/posix-functions/mq_send.texi: Likewise.
46055         * doc/posix-functions/mq_setattr.texi: Likewise.
46056         * doc/posix-functions/mq_timedreceive.texi: Likewise.
46057         * doc/posix-functions/mq_timedsend.texi: Likewise.
46058         * doc/posix-functions/mq_unlink.texi: Likewise.
46059         * doc/posix-functions/open_memstream.texi: Likewise.
46060         * doc/posix-functions/openat.texi: Likewise.
46061         * doc/posix-functions/posix_fadvise.texi: Likewise.
46062         * doc/posix-functions/posix_fallocate.texi: Likewise.
46063         * doc/posix-functions/posix_madvise.texi: Likewise.
46064         * doc/posix-functions/posix_memalign.texi: Likewise.
46065         * doc/posix-functions/posix_openpt.texi: Likewise.
46066         * doc/posix-functions/readlinkat.texi: Likewise.
46067         * doc/posix-functions/remque.texi: Likewise.
46068         * doc/posix-functions/renameat.texi: Likewise.
46069         * doc/posix-functions/rintl.texi: Likewise.
46070         * doc/posix-functions/sem_unlink.texi: Likewise.
46071         * doc/posix-functions/shm_open.texi: Likewise.
46072         * doc/posix-functions/shm_unlink.texi: Likewise.
46073         * doc/posix-functions/signgam.texi: Likewise.
46074         * doc/posix-functions/sigset.texi: Likewise.
46075         * doc/posix-functions/stpcpy.texi: Likewise.
46076         * doc/posix-functions/stpncpy.texi: Likewise.
46077         * doc/posix-functions/strerror.texi: Likewise.
46078         * doc/posix-functions/strtod.texi: Likewise.
46079         * doc/posix-functions/symlinkat.texi: Likewise.
46080         * doc/posix-functions/unlinkat.texi: Likewise.
46081         * doc/posix-functions/utimensat.texi: Likewise.
46082         * doc/glibc-functions/bindresvport.texi: Likewise.
46083         * doc/glibc-functions/dn_expand.texi: Likewise.
46084         * doc/glibc-functions/exp10.texi: Likewise.
46085         * doc/glibc-functions/exp10f.texi: Likewise.
46086         * doc/glibc-functions/fgetxattr.texi: Likewise.
46087         * doc/glibc-functions/flistxattr.texi: Likewise.
46088         * doc/glibc-functions/fopencookie.texi: Likewise.
46089         * doc/glibc-functions/freeifaddrs.texi: Likewise.
46090         * doc/glibc-functions/fremovexattr.texi: Likewise.
46091         * doc/glibc-functions/fsetxattr.texi: Likewise.
46092         * doc/glibc-functions/getifaddrs.texi: Likewise.
46093         * doc/glibc-functions/getxattr.texi: Likewise.
46094         * doc/glibc-functions/lgetxattr.texi: Likewise.
46095         * doc/glibc-functions/listxattr.texi: Likewise.
46096         * doc/glibc-functions/llistxattr.texi: Likewise.
46097         * doc/glibc-functions/lremovexattr.texi: Likewise.
46098         * doc/glibc-functions/lsetxattr.texi: Likewise.
46099         * doc/glibc-functions/pow10.texi: Likewise.
46100         * doc/glibc-functions/pow10f.texi: Likewise.
46101         * doc/glibc-functions/rcmd_af.texi: Likewise.
46102         * doc/glibc-functions/removexattr.texi: Likewise.
46103         * doc/glibc-functions/res_init.texi: Likewise.
46104         * doc/glibc-functions/res_mkquery.texi: Likewise.
46105         * doc/glibc-functions/res_query.texi: Likewise.
46106         * doc/glibc-functions/res_querydomain.texi: Likewise.
46107         * doc/glibc-functions/res_send.texi: Likewise.
46108         * doc/glibc-functions/rresvport_af.texi: Likewise.
46109         * doc/glibc-functions/setxattr.texi: Likewise.
46110         * doc/glibc-functions/strcasestr.texi: Likewise.
46111
46112 2008-12-15  Bruno Haible  <bruno@clisp.org>
46113
46114         Fix compilation error on OSF/1 4.0.
46115         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
46116         <sys/time.h>, simply delegate to the system header.
46117         Reported by Daniel Richard G. <oss@teragram.com>.
46118
46119 2008-12-15  Bruno Haible  <bruno@clisp.org>
46120
46121         * doc/posix-functions/openat.texi: Mention the 'openat' module.
46122         * doc/posix-functions/fchmodat.texi: Likewise.
46123         * doc/posix-functions/fchownat.texi: Likewise.
46124         * doc/posix-functions/fdopendir.texi: Likewise.
46125         * doc/posix-functions/fstatat.texi: Likewise.
46126         * doc/posix-functions/mkdirat.texi: Likewise.
46127         * doc/posix-functions/unlinkat.texi: Likewise.
46128
46129 2008-12-14  Bruno Haible  <bruno@clisp.org>
46130
46131         Update doc for POSIX:2008.
46132         * doc/posix-functions/faccessat.texi: New file.
46133         * doc/posix-functions/fchmodat.texi: New file.
46134         * doc/posix-functions/fchownat.texi: New file.
46135         * doc/posix-functions/fdopendir.texi: New file.
46136         * doc/posix-functions/fstatat.texi: New file.
46137         * doc/posix-functions/futimens.texi: New file.
46138         * doc/posix-functions/linkat.texi: New file.
46139         * doc/posix-functions/mkdirat.texi: New file.
46140         * doc/posix-functions/mkfifoat.texi: New file.
46141         * doc/posix-functions/mknodat.texi: New file.
46142         * doc/posix-functions/open_wmemstream.texi: New file.
46143         * doc/posix-functions/openat.texi: New file.
46144         * doc/posix-functions/psiginfo.texi: New file.
46145         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
46146         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
46147         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
46148         * doc/posix-functions/readlinkat.texi: New file.
46149         * doc/posix-functions/renameat.texi: New file.
46150         * doc/posix-functions/strerror_l.texi: New file.
46151         * doc/posix-functions/symlinkat.texi: New file.
46152         * doc/posix-functions/unlinkat.texi: New file.
46153         * doc/posix-functions/utimensat.texi: New file.
46154         * doc/gnulib.texi (Function Substitutes): Add these subsections.
46155
46156 2008-12-14  Bruno Haible  <bruno@clisp.org>
46157
46158         Update doc for POSIX:2008.
46159         * doc/posix-functions/alphasort.texi: Renamed from
46160         doc/glibc-functions/alphasort.texi.
46161         * doc/posix-functions/dirfd.texi: Renamed from
46162         doc/glibc-functions/dirfd.texi.
46163         * doc/posix-functions/dprintf.texi: Renamed from
46164         doc/glibc-functions/dprintf.texi.
46165         * doc/posix-functions/duplocale.texi: Renamed from
46166         doc/glibc-functions/duplocale.texi.
46167         * doc/posix-functions/fexecve.texi: Renamed from
46168         doc/glibc-functions/fexecve.texi.
46169         * doc/posix-functions/fmemopen.texi: Renamed from
46170         doc/glibc-functions/fmemopen.texi.
46171         * doc/posix-functions/freelocale.texi: Renamed from
46172         doc/glibc-functions/freelocale.texi.
46173         * doc/posix-functions/getdate_err.texi: Renamed from
46174         doc/glibc-functions/getdate_err.texi.
46175         * doc/posix-functions/isalnum_l.texi: Renamed from
46176         doc/glibc-functions/isalnum_l.texi.
46177         * doc/posix-functions/isalpha_l.texi: Renamed from
46178         doc/glibc-functions/isalpha_l.texi.
46179         * doc/posix-functions/isblank_l.texi: Renamed from
46180         doc/glibc-functions/isblank_l.texi.
46181         * doc/posix-functions/iscntrl_l.texi: Renamed from
46182         doc/glibc-functions/iscntrl_l.texi.
46183         * doc/posix-functions/isdigit_l.texi: Renamed from
46184         doc/glibc-functions/isdigit_l.texi.
46185         * doc/posix-functions/isgraph_l.texi: Renamed from
46186         doc/glibc-functions/isgraph_l.texi.
46187         * doc/posix-functions/islower_l.texi: Renamed from
46188         doc/glibc-functions/islower_l.texi.
46189         * doc/posix-functions/isprint_l.texi: Renamed from
46190         doc/glibc-functions/isprint_l.texi.
46191         * doc/posix-functions/ispunct_l.texi: Renamed from
46192         doc/glibc-functions/ispunct_l.texi.
46193         * doc/posix-functions/isspace_l.texi: Renamed from
46194         doc/glibc-functions/isspace_l.texi.
46195         * doc/posix-functions/isupper_l.texi: Renamed from
46196         doc/glibc-functions/isupper_l.texi.
46197         * doc/posix-functions/iswalnum_l.texi: Renamed from
46198         doc/glibc-functions/iswalnum_l.texi.
46199         * doc/posix-functions/iswalpha_l.texi: Renamed from
46200         doc/glibc-functions/iswalpha_l.texi.
46201         * doc/posix-functions/iswblank_l.texi: Renamed from
46202         doc/glibc-functions/iswblank_l.texi.
46203         * doc/posix-functions/iswcntrl_l.texi: Renamed from
46204         doc/glibc-functions/iswcntrl_l.texi.
46205         * doc/posix-functions/iswctype_l.texi: Renamed from
46206         doc/glibc-functions/iswctype_l.texi.
46207         * doc/posix-functions/iswdigit_l.texi: Renamed from
46208         doc/glibc-functions/iswdigit_l.texi.
46209         * doc/posix-functions/iswgraph_l.texi: Renamed from
46210         doc/glibc-functions/iswgraph_l.texi.
46211         * doc/posix-functions/iswlower_l.texi: Renamed from
46212         doc/glibc-functions/iswlower_l.texi.
46213         * doc/posix-functions/iswprint_l.texi: Renamed from
46214         doc/glibc-functions/iswprint_l.texi.
46215         * doc/posix-functions/iswpunct_l.texi: Renamed from
46216         doc/glibc-functions/iswpunct_l.texi.
46217         * doc/posix-functions/iswspace_l.texi: Renamed from
46218         doc/glibc-functions/iswspace_l.texi.
46219         * doc/posix-functions/iswupper_l.texi: Renamed from
46220         doc/glibc-functions/iswupper_l.texi.
46221         * doc/posix-functions/iswxdigit_l.texi: Renamed from
46222         doc/glibc-functions/iswxdigit_l.texi.
46223         * doc/posix-functions/isxdigit_l.texi: Renamed from
46224         doc/glibc-functions/isxdigit_l.texi.
46225         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
46226         doc/glibc-functions/mbsnrtowcs.texi.
46227         * doc/posix-functions/mkdtemp.texi: Renamed from
46228         doc/glibc-functions/mkdtemp.texi.
46229         * doc/posix-functions/newlocale.texi: Renamed from
46230         doc/glibc-functions/newlocale.texi.
46231         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
46232         doc/glibc-functions/nl_langinfo_l.texi.
46233         * doc/posix-functions/open_memstream.texi: Renamed from
46234         doc/glibc-functions/open_memstream.texi.
46235         * doc/posix-functions/opterr.texi: Renamed from
46236         doc/glibc-functions/opterr.texi.
46237         * doc/posix-functions/optind.texi: Renamed from
46238         doc/glibc-functions/optind.texi.
46239         * doc/posix-functions/optopt.texi: Renamed from
46240         doc/glibc-functions/optopt.texi.
46241         * doc/posix-functions/psignal.texi: Renamed from
46242         doc/glibc-functions/psignal.texi.
46243         * doc/posix-functions/scandir.texi: Renamed from
46244         doc/glibc-functions/scandir.texi.
46245         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
46246         doc/glibc-functions/sched_get_priority_min.texi.
46247         * doc/posix-functions/signgam.texi: Renamed from
46248         doc/glibc-functions/signgam.texi.
46249         * doc/posix-functions/stpcpy.texi: Renamed from
46250         doc/glibc-functions/stpcpy.texi.
46251         * doc/posix-functions/stpncpy.texi: Renamed from
46252         doc/glibc-functions/stpncpy.texi.
46253         * doc/posix-functions/strcasecmp_l.texi: Renamed from
46254         doc/glibc-functions/strcasecmp_l.texi.
46255         * doc/posix-functions/strcoll_l.texi: Renamed from
46256         doc/glibc-functions/strcoll_l.texi.
46257         * doc/posix-functions/strfmon_l.texi: Renamed from
46258         doc/glibc-functions/strfmon_l.texi.
46259         * doc/posix-functions/strftime_l.texi: Renamed from
46260         doc/glibc-functions/strftime_l.texi.
46261         * doc/posix-functions/strncasecmp_l.texi: Renamed from
46262         doc/glibc-functions/strncasecmp_l.texi.
46263         * doc/posix-functions/strndup.texi: Renamed from
46264         doc/glibc-functions/strndup.texi.
46265         * doc/posix-functions/strnlen.texi: Renamed from
46266         doc/glibc-functions/strnlen.texi.
46267         * doc/posix-functions/strsignal.texi: Renamed from
46268         doc/glibc-functions/strsignal.texi.
46269         * doc/posix-functions/strxfrm_l.texi: Renamed from
46270         doc/glibc-functions/strxfrm_l.texi.
46271         * doc/posix-functions/timer_gettime.texi: Renamed from
46272         doc/glibc-functions/timer_gettime.texi.
46273         * doc/posix-functions/tolower_l.texi: Renamed from
46274         doc/glibc-functions/tolower_l.texi.
46275         * doc/posix-functions/toupper_l.texi: Renamed from
46276         doc/glibc-functions/toupper_l.texi.
46277         * doc/posix-functions/towctrans_l.texi: Renamed from
46278         doc/glibc-functions/towctrans_l.texi.
46279         * doc/posix-functions/towlower_l.texi: Renamed from
46280         doc/glibc-functions/towlower_l.texi.
46281         * doc/posix-functions/towupper_l.texi: Renamed from
46282         doc/glibc-functions/towupper_l.texi.
46283         * doc/posix-functions/uselocale.texi: Renamed from
46284         doc/glibc-functions/uselocale.texi.
46285         * doc/posix-functions/vdprintf.texi: Renamed from
46286         doc/glibc-functions/vdprintf.texi.
46287         * doc/posix-functions/wcpcpy.texi:
46288         Renamed from doc/glibc-functions/wcpcpy.texi.
46289         * doc/posix-functions/wcpncpy.texi: Renamed from
46290         doc/glibc-functions/wcpncpy.texi.
46291         * doc/posix-functions/wcscasecmp.texi: Renamed from
46292         doc/glibc-functions/wcscasecmp.texi.
46293         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
46294         doc/glibc-functions/wcscasecmp_l.texi.
46295         * doc/posix-functions/wcscoll_l.texi: Renamed from
46296         doc/glibc-functions/wcscoll_l.texi.
46297         * doc/posix-functions/wcsdup.texi: Renamed from
46298         doc/glibc-functions/wcsdup.texi.
46299         * doc/posix-functions/wcsncasecmp.texi: Renamed from
46300         doc/glibc-functions/wcsncasecmp.texi.
46301         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
46302         doc/glibc-functions/wcsncasecmp_l.texi.
46303         * doc/posix-functions/wcsnlen.texi: Renamed from
46304         doc/glibc-functions/wcsnlen.texi.
46305         * doc/posix-functions/wcsnrtombs.texi: Renamed from
46306         doc/glibc-functions/wcsnrtombs.texi.
46307         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
46308         doc/glibc-functions/wcsxfrm_l.texi.
46309         * doc/posix-functions/wctrans_l.texi: Renamed from
46310         doc/glibc-functions/wctrans_l.texi.
46311         * doc/posix-functions/wctype_l.texi: Renamed from
46312         doc/glibc-functions/wctype_l.texi.
46313         * doc/gnulib.texi (Function Substitutes): Add these subsections.
46314         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
46315         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
46316         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
46317         these subsections.
46318         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
46319         Remove sections.
46320
46321 2008-12-14  Bruno Haible  <bruno@clisp.org>
46322
46323         Update doc for POSIX:2008.
46324         * doc/posix-functions/*.texi: Update URL of POSIX specification.
46325
46326 2008-12-14  Bruno Haible  <bruno@clisp.org>
46327
46328         Update doc for POSIX:2008.
46329         * doc/pastposix-functions/bcmp.texi: Renamed from
46330         doc/posix-functions/bcmp.texi.
46331         * doc/pastposix-functions/bcopy.texi: Renamed from
46332         doc/posix-functions/bcopy.texi.
46333         * doc/pastposix-functions/bsd_signal.texi: Renamed from
46334         doc/posix-functions/bsd_signal.texi.
46335         * doc/pastposix-functions/bzero.texi: Renamed from
46336         doc/posix-functions/bzero.texi.
46337         * doc/pastposix-functions/ecvt.texi: Renamed from
46338         doc/posix-functions/ecvt.texi.
46339         * doc/pastposix-functions/fcvt.texi: Renamed from
46340         doc/posix-functions/fcvt.texi.
46341         * doc/pastposix-functions/ftime.texi: Renamed from
46342         doc/posix-functions/ftime.texi.
46343         * doc/pastposix-functions/gcvt.texi: Renamed from
46344         doc/posix-functions/gcvt.texi.
46345         * doc/pastposix-functions/getcontext.texi: Renamed from
46346         doc/posix-functions/getcontext.texi.
46347         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
46348         doc/posix-functions/gethostbyaddr.texi.
46349         * doc/pastposix-functions/gethostbyname.texi: Renamed from
46350         doc/posix-functions/gethostbyname.texi.
46351         * doc/pastposix-functions/getwd.texi: Renamed from
46352         doc/posix-functions/getwd.texi.
46353         * doc/pastposix-functions/h_errno.texi: Renamed from
46354         doc/posix-functions/h_errno.texi.
46355         * doc/pastposix-functions/index.texi: Renamed from
46356         doc/posix-functions/index.texi.
46357         * doc/pastposix-functions/makecontext.texi: Renamed from
46358         doc/posix-functions/makecontext.texi.
46359         * doc/pastposix-functions/mktemp.texi: Renamed from
46360         doc/posix-functions/mktemp.texi.
46361         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
46362         doc/posix-functions/pthread_attr_getstackaddr.texi.
46363         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
46364         doc/posix-functions/pthread_attr_setstackaddr.texi.
46365         * doc/pastposix-functions/rindex.texi: Renamed from
46366         doc/posix-functions/rindex.texi.
46367         * doc/pastposix-functions/scalb.texi: Renamed from
46368         doc/posix-functions/scalb.texi.
46369         * doc/pastposix-functions/setcontext.texi: Renamed from
46370         doc/posix-functions/setcontext.texi.
46371         * doc/pastposix-functions/swapcontext.texi: Renamed from
46372         doc/posix-functions/swapcontext.texi.
46373         * doc/pastposix-functions/ualarm.texi: Renamed from
46374         doc/posix-functions/ualarm.texi.
46375         * doc/pastposix-functions/usleep.texi: Renamed from
46376         doc/posix-functions/usleep.texi.
46377         * doc/pastposix-functions/vfork.texi: Renamed from
46378         doc/posix-functions/vfork.texi.
46379         * doc/pastposix-functions/wcswcs.texi: Renamed from
46380         doc/posix-functions/wcswcs.texi.
46381         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
46382         (Function Substitutes): Update.
46383
46384 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46385
46386         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
46387         m4/strerror.m4.
46388
46389 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46390             Bruno Haible  <bruno@clisp.org>
46391
46392         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
46393
46394 2008-12-13  Bruno Haible  <bruno@clisp.org>
46395
46396         * modules/strtoull (Depends-on): Remove unistd.
46397
46398 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46399
46400         * modules/strtoull (Depends-on): Add stdlib.
46401
46402 2008-12-11  Simon Josefsson  <simon@josefsson.org>
46403
46404         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
46405
46406 2008-12-10  Jim Meyering  <meyering@redhat.com>
46407
46408         gl_ASSERT: don't say assertions are disabled when they're not
46409         * m4/assert.m4 (gl_ASSERT): Do not make configure report
46410         "checking whether to enable assertions... no", when they are in
46411         fact enabled.  This is solely a bug in the output of configure.
46412         In spite of saying "no", NDEBUG was not defined in that case.
46413         Also, as noted by Eric Blake, leave assertions enabled upon
46414         --enable-assert=INVALID.
46415
46416 2008-12-10  Bruno Haible  <bruno@clisp.org>
46417
46418         Change MODULES.html to refer to POSIX:2008 where possible.
46419         * MODULES.html.sh (POSIX2008_URL): New variable.
46420         (posix_headers): Remove sys/timeb, ucontext.
46421         (posix2001_headers): New variable.
46422         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
46423         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
46424         index, makecontext, mktemp, pthread_attr_getstackaddr,
46425         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
46426         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
46427         (posix2001_functions): New variable.
46428         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
46429         otherwise.
46430
46431 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46432
46433         add missing include to parse-duration.c
46434         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
46435         * modules/parse-duration (Depends-on): Add xalloc.
46436
46437         fix sed script reading maint.mk
46438         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
46439         (syntax-check-rules): Use it.
46440
46441 2008-12-09  Bruno Haible  <bruno@clisp.org>
46442
46443         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
46444         MacOS X 10.4/PowerPC.
46445         Reported by Simon Josefsson.
46446
46447 2008-12-08  Jim Meyering  <meyering@redhat.com>
46448
46449         work around mingw's lack of some S_IF definitions
46450         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
46451         Reported by Simon Josefsson.
46452
46453 2008-12-08  Bruno Haible  <bruno@clisp.org>
46454
46455         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
46456         applied to variables. Needed on MacOS X 10.4/PowerPC.
46457         Reported by Simon Josefsson.
46458
46459 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
46460         and Eric Blake  <ebb9@byu.net>
46461
46462         assert: honor --enable-assert
46463         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
46464         order to honor --enable-assert, rather than treating it as a
46465         synonym for --disable-assert.
46466
46467 2008-12-08  Jim Meyering  <meyering@redhat.com>
46468
46469         * lib/posixtm.c: Remove now-useless declaration of mktime.
46470
46471         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
46472
46473 2008-12-07  Bruno Haible  <bruno@clisp.org>
46474
46475         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
46476         test_once): Mark functions as static.
46477         * tests/test-tls.c (test_tls): Likewise.
46478
46479 2008-12-07  Bruno Haible  <bruno@clisp.org>
46480
46481         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
46482         iconv_register_autodetect.
46483
46484 2008-12-07  Jim Meyering  <meyering@redhat.com>
46485
46486         posixtm.c: avoid a warning
46487         * lib/posixtm.c (posixtime): Don't initialize tm0.
46488         It's no longer needed to placate gcc4's -Wuninitialized,
46489         and the attempt to placate would elicit a new warning.
46490
46491         unicodeio.c: mark unused parameters
46492         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
46493         (fallback_failure_callback): Likewise.
46494
46495 2008-12-07  Bruno Haible  <bruno@clisp.org>
46496
46497         * gnulib-tool (func_create_testdir): When building the tests
46498         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
46499         Reported by Simon Josefsson.
46500
46501 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46502
46503         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
46504
46505 2008-12-06  Bruno Haible  <bruno@clisp.org>
46506
46507         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
46508         Suggested by Eric Blake.
46509
46510 2008-12-06  Bruno Haible  <bruno@clisp.org>
46511
46512         Fix a c-stack test failure on MacOS X.
46513         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
46514         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
46515         handler for SIGBUS as well.
46516         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
46517         install a signal handler for SIGBUS as well.
46518         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
46519
46520 2008-12-06  Bruno Haible  <bruno@clisp.org>
46521
46522         Advocacy documentation.
46523         * doc/gnulib-intro.texi (Benefits): New section.
46524         * doc/gnulib.texi: Update.
46525
46526 2008-12-06  Bruno Haible  <bruno@clisp.org>
46527
46528         Document the 'manywarnings' module.
46529         * doc/manywarnings.texi: New file.
46530         * doc/gnulib.texi: Include it.
46531
46532 2008-12-05  Eric Blake  <ebb9@byu.net>
46533
46534         tests: silence some gcc warnings
46535         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
46536         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
46537         type mismatches.
46538
46539 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46540             Bruno Haible  <bruno@clisp.org>
46541
46542         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
46543
46544 2008-11-29  Jim Meyering  <meyering@redhat.com>
46545
46546         unicodeio.c: mark unused parameters
46547         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
46548         (fallback_failure_callback): Likewise.
46549
46550         fts: fix a thinko
46551         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
46552         (set_stat_type): Return S_IF*-valued "type" directly.
46553         Prompted by James Youngman's spotting a related bug.
46554         Confirmed by further testing through find.
46555
46556         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
46557         * lib/fts.c (D_TYPE): Define.
46558         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
46559         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
46560         (s_ifmt_shift_bits): New function.
46561         (set_stat_type): New function.
46562         (fts_build): When not calling fts_stat, call set_stat_type
46563         to propagate dirent.d_type info to fts_read caller.
46564         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
46565         fts_statp->st_mode type information may be valid.
46566
46567 2008-11-28  Simon Josefsson  <simon@josefsson.org>
46568
46569         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
46570         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
46571         <sds@gnu.org>.
46572
46573 2008-11-20  Bruno Haible  <bruno@clisp.org>
46574
46575         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
46576         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
46577         INCLUDE_NEXT.
46578         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
46579         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
46580         * modules/math (Makefile.am): Substitute
46581         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
46582         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46583
46584 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
46585             Bruno Haible  <bruno@clisp.org>
46586
46587         * lib/stdint.in.h: Define all type macros so that their expansion is
46588         a single typedef'ed token. Fixes a compilation failure in Boost which
46589         does "using ::int8_t;".
46590
46591 2008-11-18  Simon Josefsson  <simon@josefsson.org>
46592
46593         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
46594         gl_MANYWARN_ALL_GCC.
46595         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
46596         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
46597         * modules/manywarnings: New file.
46598         * MODULES.html.sh: Mention manywarnings module.
46599
46600 2008-11-18  Bruno Haible  <bruno@clisp.org>
46601
46602         * doc/gnulib-tool.texi (Unit tests): New section.
46603
46604 2008-11-18  Simon Josefsson  <simon@josefsson.org>
46605
46606         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
46607         paths like 'lib/po/foo.po'.
46608
46609 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46610
46611         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
46612         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
46613
46614 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46615
46616         * m4/warnings.m4: Use CPPFLAGS to really check whether the
46617         parameter works.
46618
46619 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46620
46621         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
46622
46623 2008-11-17  Bruce Korb  <bkorb@gnu.org>
46624
46625         * modules/parse-duration-tests: New file.
46626         * tests/test-parse-duration.sh: New file.
46627         * tests/test-parse-duration.c: New file.
46628
46629         New module 'parse-duration'.
46630         * lib/parse-duration.h: New file.
46631         * lib/parse-duration.c: New file.
46632         * modules/parse-duration: New file.
46633
46634 2008-11-17  Bruno Haible  <bruno@clisp.org>
46635
46636         * tests/test-select-out.sh: Comment out the first pipe test.
46637         Reported by Simon Josefsson.
46638
46639 2008-11-17  Bruno Haible  <bruno@clisp.org>
46640
46641         * modules/getaddrinfo (Depends-on): Add servent, hostent.
46642         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
46643         gl_HOSTENT.
46644
46645 2008-11-17  Bruno Haible  <bruno@clisp.org>
46646
46647         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
46648         -lnetwork and -lnet. Needed for Haiku and BeOS.
46649
46650 2008-11-16  Bruno Haible  <bruno@clisp.org>
46651
46652         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
46653
46654 2008-11-16  Bruno Haible  <bruno@clisp.org>
46655
46656         Avoid test failure on Haiku.
46657         * tests/test-fsync.c: Include <errno.h>.
46658         (main): Don't require that fsync (0) fails.
46659
46660 2008-11-15  Bruno Haible  <bruno@clisp.org>
46661
46662         New module 'hostent'.
46663         * modules/hostent: New file.
46664         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
46665
46666 2008-11-15  Bruno Haible  <bruno@clisp.org>
46667
46668         New module 'servent'.
46669         * modules/servent: New file.
46670         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
46671
46672 2008-11-15  Bruno Haible  <bruno@clisp.org>
46673
46674         Avoid generating same test program with two different rules.
46675         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
46676         test-frexp to test-frexp-nolibm.
46677         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
46678         test-frexpl to test-frexpl-nolibm.
46679
46680 2008-11-15  Bruno Haible  <bruno@clisp.org>
46681
46682         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
46683         $(FREXPL_LIBM).
46684
46685 2008-11-15  Bruno Haible  <bruno@clisp.org>
46686
46687         * lib/netdb.in.h: Activate the definitions also when the system's
46688         <netdb.h> has 'struct addrinfo'.
46689         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
46690         EAI_OVERFLOW or AI_NUMERICSERV.
46691         * doc/posix-headers/netdb.texi: Document the problem.
46692
46693 2008-11-15  Bruno Haible  <bruno@clisp.org>
46694
46695         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
46696
46697         Make the 'sched' module work on platforms where <sched.h> exists but
46698         is incomplete (such as Haiku).
46699         * lib/sched.in.h; Include the system's <sched.h> if it exists.
46700         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
46701         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
46702         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
46703         HAVE_STRUCT_SCHED_PARAM.
46704         * modules/sched (Depends-on): Add include_next.
46705         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
46706         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
46707         * doc/posix-headers/sched.texi: Document the issue.
46708
46709 2008-11-13  Jim Meyering  <meyering@redhat.com>
46710
46711         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
46712         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
46713         test would fail due to the difference in the Report bugs to ...
46714         line.  The expected address is empty, "<>", while the actual
46715         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
46716
46717 2008-11-12  Bruno Haible  <bruno@clisp.org>
46718
46719         lstat: don't compile lstat.c on systems lacking lstat
46720         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
46721         which don't have lstat; this is handled by lib/sys_stat.in.h already.
46722         Reported by Daniel P. Berrange via Jim Meyering.
46723
46724 2008-11-12  Jim Meyering  <meyering@redhat.com>
46725
46726         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
46727
46728 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46729
46730         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
46731         instead.
46732
46733 2008-11-12  Bruno Haible  <bruno@clisp.org>
46734
46735         * lib/unicodeio.c: Include unistr.h.
46736         (utf8_wctomb): Remove function.
46737         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
46738
46739 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46740
46741         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
46742         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
46743         <bruno@clisp.org>.
46744         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
46745
46746 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46747
46748         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
46749         * doc/gnulib.texi: Add section for warnings.
46750
46751 2008-11-11  Bruno Haible  <bruno@clisp.org>
46752
46753         * lib/sockets.h: Add a comment.
46754
46755 2008-11-11  Karl Berry  <karl@gnu.org>
46756
46757         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
46758
46759 2008-11-11  Eric Blake  <ebb9@byu.net>
46760
46761         fdl.texi: avoid git symlinks
46762         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
46763
46764 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46765
46766         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
46767
46768 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46769
46770         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
46771         (gl_WARN_ADD): Substitute $2 if literal.
46772
46773 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46774
46775         * m4/warning.m4: Remove.
46776
46777 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46778
46779         * m4/warnings.m4: Almost complete rewrite. :-)
46780
46781 2008-11-10  Simon Josefsson  <simon@josefsson.org>
46782
46783         * modules/warnings: New module.
46784         * m4/warnings.m4: New file.
46785         * MODULES.html.sh: Mention warnings module.
46786         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
46787         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46788
46789 2008-11-10  Eric Blake  <ebb9@byu.net>
46790
46791         fdl.texi: make a symlink to the latest version
46792         * doc/standards.texi: Revert today's earlier change.
46793         * doc/fdl-1.2.texi: Rename from old fdl.texi...
46794         * doc/fdl.texi: ...and replace this with a symlink to the newer
46795         fdl-1.3.texi.
46796
46797 2008-11-10  Bruno Haible  <bruno@clisp.org>
46798
46799         * tests/test-select-fd.c (main): Accept the result file name as fourth
46800         argument.
46801         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
46802         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
46803
46804 2008-11-10  Bruno Haible  <bruno@clisp.org>
46805
46806         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
46807         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
46808         as autoconf-substituted macros.
46809         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
46810         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
46811         gl_NETDB_H_DEFAULTS. Set these variables.
46812         * modules/netdb (Makefile.am): Substitute these variables.
46813
46814 2008-11-10  Eric Blake  <ebb9@byu.net>
46815
46816         standards.texi: include correct file for FDL 1.3
46817         * doc/standards.texi (GNU Free Documentation License): Change
46818         include file to pull in FDL 1.3, not 1.2.
46819
46820         fdl.texi: revert accidental change to license
46821         * doc/fdl.texi: This is FDL 1.2, not 1.3.
46822
46823 2008-11-10  Bruno Haible  <bruno@clisp.org>
46824
46825         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
46826         cross-compiling guesses also when the native compile gives no result.
46827
46828 2008-11-10  Bruno Haible  <bruno@clisp.org>
46829
46830         * lib/spawni.c (__spawni): Force variable into the stack.
46831
46832 2008-11-10  Bruno Haible  <bruno@clisp.org>
46833
46834         Add support for Haiku.
46835         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
46836         glibc and BeOS, but also on Haiku.
46837         * lib/fpurge.c (fpurge): Likewise.
46838         * lib/freadable.c (freadable): Likewise.
46839         * lib/freadahead.c (freadahead): Likewise.
46840         * lib/freading.c (freading): Likewise.
46841         * lib/freadptr.c (freadptr): Likewise.
46842         * lib/freadseek.c (freadptrinc): Likewise.
46843         * lib/fseeko.c (rpl_fseeko): Likewise.
46844         * lib/fseterr.c (fseterr): Likewise.
46845         * lib/fwritable.c (fwritable): Likewise.
46846         * lib/fwriting.c (fwriting): Likewise.
46847         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
46848
46849 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
46850
46851         * lib/config.charset: Treat Haiku like BeOS.
46852
46853 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
46854
46855         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
46856         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
46857
46858 2008-11-08  Bruno Haible  <bruno@clisp.org>
46859
46860         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
46861         AC_CACHE_CHECK.
46862
46863 2008-11-08  Bruno Haible  <bruno@clisp.org>
46864
46865         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
46866
46867 2008-11-08  Bruno Haible  <bruno@clisp.org>
46868
46869         * tests/test-select-fd.c: New file.
46870         * tests/test-select-in.sh: New file.
46871         * tests/test-select-out.sh: New file.
46872         * tests/test-select-stdin.c: New file.
46873         * modules/select-tests (Files): Add the new files.
46874         (Depends-on): Add gettimeofday.
46875         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
46876         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
46877         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
46878
46879 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
46880             Bruno Haible  <bruno@clisp.org>
46881
46882         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
46883
46884 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
46885
46886         * build-aux/pmccabe2html: Added support for C++ source files.
46887
46888 2008-11-05  Ben Pfaff  <blp@gnu.org>
46889
46890         Fix lib/close.c build on Windows.
46891         * modules/close (Files): Add lib/w32sock.h.
46892
46893 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
46894
46895         Accept Bison's NEWS format.
46896         * build-aux/announce-gen (print_news_deltas): Tweak
46897         $re_prefix.
46898
46899 2008-11-04  Bruno Haible  <bruno@clisp.org>
46900
46901         * modules/random_r (Maintainer): Add glibc.
46902
46903 2008-11-04  Simon Josefsson  <simon@josefsson.org>
46904
46905         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
46906         by karl@freefriends.org (Karl Berry).
46907         * doc/alloca.texi: Likewise.
46908         * doc/c-ctype.texi: Likewise.
46909         * doc/c-strcase.texi: Likewise.
46910         * doc/c-strcaseeq.texi: Likewise.
46911         * doc/c-strcasestr.texi: Likewise.
46912         * doc/c-strstr.texi: Likewise.
46913         * doc/c-strtod.texi: Likewise.
46914         * doc/c-strtold.texi: Likewise.
46915         * doc/ctime.texi: Likewise.
46916         * doc/error.texi: Likewise.
46917         * doc/fdl.texi: Likewise.
46918         * doc/gcd.texi: Likewise.
46919         * doc/getdate.texi: Likewise.
46920         * doc/gnulib-intro.texi: Likewise.
46921         * doc/gnulib-tool.texi: Likewise.
46922         * doc/gnulib.texi: Likewise.
46923         * doc/inet_ntoa.texi: Likewise.
46924         * doc/maintain.texi: Likewise.
46925         * doc/make-stds.texi: Likewise.
46926         * doc/quote.texi: Likewise.
46927         * doc/regexprops-generic.texi: Likewise.
46928         * doc/standards.texi: Likewise.
46929         * doc/verify.texi: Likewise.
46930         * doc/visibility.texi: Likewise.
46931         * doc/gnulib.texi (GNU Free Documentation License): Include
46932         fdl-1.3.texi instead of fdl.texi.
46933
46934 2008-11-04  Simon Josefsson  <simon@josefsson.org>
46935
46936         * doc/fdl-1.3.texi: New file, from
46937         <http://www.gnu.org/licenses/fdl-1.3.texi>.
46938         * modules/fdl-1.3: Add.
46939         * MODULES.html.sh: Add fdl-1.3.
46940
46941 2008-11-03  Bruno Haible  <bruno@clisp.org>
46942
46943         Make determination of absolute name of header file work with AIX xlc.
46944         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
46945         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
46946         preprocessing.
46947         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46948         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
46949
46950 2008-11-03  Simon Josefsson  <simon@josefsson.org>
46951
46952         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
46953         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
46954         <ludo@gnu.org>.
46955
46956 2008-11-02  Bruno Haible  <bruno@clisp.org>
46957
46958         Mark 'strpbrk' obsolete.
46959         * modules/strpbrk (Status, Notice): New sections.
46960         * modules/strtok_r (Depends-on): Add strpbrk.
46961
46962 2008-11-02  Bruno Haible  <bruno@clisp.org>
46963
46964         Mark 'strdup' obsolete.
46965         * modules/strdup (Status, Notice): New sections.
46966         * modules/findprog (Depends-on): Add strdup.
46967         * modules/getaddrinfo (Depends-on): Likewise.
46968         * modules/localename (Depends-on): Likewise.
46969         * modules/relocatable-lib (Depends-on): Likewise.
46970         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
46971         * modules/relocatable-prog (Depends-on): Likewise.
46972         * modules/trim (Depends-on): Likewise.
46973         * modules/unictype/gen-ctype (Depends-on): Likewise.
46974         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
46975
46976 2008-11-02  Bruno Haible  <bruno@clisp.org>
46977
46978         Mark 'strcspn' obsolete.
46979         * modules/strcspn (Status, Notice): New sections.
46980
46981 2008-11-02  Bruno Haible  <bruno@clisp.org>
46982
46983         Mark 'rmdir' obsolete.
46984         * modules/rmdir (Status, Notice): New sections.
46985         * modules/clean-temp (Depends-on): Add rmdir.
46986         * modules/openat (Depends-on): Likewise.
46987
46988 2008-11-02  Bruno Haible  <bruno@clisp.org>
46989
46990         Mark 'raise' obsolete.
46991         * modules/raise (Status, Notice): New sections.
46992         (Include): Specify <signal.h>.
46993         * modules/stdio (Depends-on): Add raise.
46994         * modules/write (Depends-on): Likewise.
46995
46996 2008-11-02  Bruno Haible  <bruno@clisp.org>
46997
46998         Mark 'memset' obsolete.
46999         * modules/memset (Status, Notice): New sections.
47000
47001 2008-11-02  Bruno Haible  <bruno@clisp.org>
47002
47003         Mark 'memmove' obsolete.
47004         * modules/memmove (Status, Notice): New sections.
47005         * modules/argp (Depends-on): Add memmove.
47006         * modules/argz (Depends-on): Likewise.
47007         * modules/canonicalize (Depends-on): Likewise.
47008         * modules/canonicalize-lgpl (Depends-on): Likewise.
47009         * modules/fts (Depends-on): Likewise.
47010         * modules/getcwd (Depends-on): Likewise.
47011         * modules/human (Depends-on): Likewise.
47012         * modules/regex (Depends-on): Likewise.
47013         * modules/striconveh (Depends-on): Likewise.
47014         * modules/trim (Depends-on): Likewise.
47015         * modules/unistr/u8-move (Depends-on): Likewise.
47016         * modules/unistr/u16-move (Depends-on): Likewise.
47017         * modules/unistr/u32-move (Depends-on): Likewise.
47018
47019 2008-11-02  Bruno Haible  <bruno@clisp.org>
47020
47021         Mark 'memcpy' obsolete.
47022         * modules/memcpy (Status, Notice): New sections.
47023
47024 2008-11-02  Bruno Haible  <bruno@clisp.org>
47025
47026         Mark 'memcmp' obsolete.
47027         * modules/memcmp (Status, Notice): New sections.
47028         * modules/argmatch (Depends-on): Add memchr.
47029         * modules/backupfile (Depends-on): Likewise.
47030         * modules/c-strcasestr (Depends-on): Likewise.
47031         * modules/crypto/des (Depends-on): Likewise.
47032         * modules/csharpcomp (Depends-on): Likewise.
47033         * modules/fnmatch (Depends-on): Likewise.
47034         * modules/git-merge-changelog (Depends-on): Likewise.
47035         * modules/isnand (Depends-on): Likewise.
47036         * modules/isnand-nolibm (Depends-on): Likewise.
47037         * modules/isnanf (Depends-on): Likewise.
47038         * modules/isnanf-nolibm (Depends-on): Likewise.
47039         * modules/isnanl (Depends-on): Likewise.
47040         * modules/isnanl-nolibm (Depends-on): Likewise.
47041         * modules/mbchar (Depends-on): Likewise.
47042         * modules/memcoll (Depends-on): Likewise.
47043         * modules/quotearg (Depends-on): Likewise.
47044         * modules/regex (Depends-on): Likewise.
47045         * modules/relocatable-prog (Depends-on): Likewise.
47046         * modules/same (Depends-on): Likewise.
47047         * modules/signbit (Depends-on): Likewise.
47048         * modules/strcasestr-simple (Depends-on): Likewise.
47049         * modules/unictype/gen-ctype (Depends-on): Likewise.
47050         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
47051         * modules/uniname/uniname (Depends-on): Likewise.
47052         * modules/unistr/u8-cmp (Depends-on): Likewise.
47053
47054 2008-11-02  Bruno Haible  <bruno@clisp.org>
47055
47056         Mark 'memchr' obsolete.
47057         * modules/memchr (Status, Notice): New sections.
47058         * modules/argp (Depends-on): Add memchr.
47059         * modules/base64 (Depends-on): Likewise.
47060         * modules/c-strcasestr (Depends-on): Likewise.
47061         * modules/chdir-long (Depends-on): Likewise.
47062         * modules/fnmatch (Depends-on): Likewise.
47063         * modules/getsubopt (Depends-on): Likewise.
47064         * modules/git-merge-changelog (Depends-on): Likewise.
47065         * modules/glob (Depends-on): Likewise.
47066         * modules/strcasestr-simple (Depends-on): Likewise.
47067         * modules/strnlen (Depends-on): Likewise.
47068
47069 2008-11-02  Bruno Haible  <bruno@clisp.org>
47070
47071         Mark 'atexit' obsolete.
47072         * modules/atexit (Status, Notice): New sections.
47073         * modules/chdir-long (Depends-on): Add atexit.
47074         * modules/wait-process (Depends-on): Likewise.
47075
47076 2008-11-02  Bruno Haible  <bruno@clisp.org>
47077
47078         * gnulib-tool: New option --with-obsolete.
47079         (func_usage): Document it.
47080         (func_modules_transitive_closure): Drop obsolete dependencies if
47081         incobsolete is not true.
47082         (func_import): Read and save the incobsolete variable to the cache.
47083
47084 2008-11-02  Bruno Haible  <bruno@clisp.org>
47085
47086         * modules/TEMPLATE-EXTENDED: New field 'Status'.
47087         * gnulib-tool: New option --extract-status.
47088         (func_usage): Document it.
47089         (sed_extract_prog): Recognize it.
47090         (func_get_status): New function.
47091
47092 2008-10-30  Simon Josefsson  <simon@josefsson.org>
47093
47094         * modules/sockets (License): Change from LGPL to LGPLv2+.
47095
47096 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47097
47098         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
47099
47100 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47101
47102         * MODULES.html.sh (Support for systems lacking POSIX:2001):
47103         Mention times and sys_times.
47104         * modules/sys_times, modules/sys_times-tests: New modules.
47105         * modules/times, modules/times-tests: Likewise
47106         * m4/sys_times_h.m4: New file.
47107         * lib/sys_times.in.h: Likewise
47108         * lib/times.c: Likewise.
47109         * tests/test-sys_times.c: Likewise.
47110         * tests/test-times.c: Likewise.
47111         * doc/posix-headers/sys_times.texi: Update.
47112         * doc/posix-functions/times.texi: Update.
47113
47114 2008-10-28  Jim Meyering  <meyering@redhat.com>
47115
47116         * modules/tempname (Depends-on): Add lstat.
47117
47118         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
47119
47120 2008-10-28  Simon Josefsson  <simon@josefsson.org>
47121
47122         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
47123         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
47124         using idiom used elsewhere in gnulib.
47125
47126 2008-10-27  Jim Meyering  <meyering@redhat.com>
47127
47128         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
47129
47130 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47131
47132         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
47133         TESTS_ENVIRONMENT, for shell scripts that needs to call built
47134         programs.
47135         * tests/test-argp-2.sh: Use $EXEEXT when needed.
47136
47137 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47138
47139         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
47140
47141 2008-10-27  Bruno Haible  <bruno@clisp.org>
47142
47143         * tests/test-lstat.c: Include <stdio.h>.
47144
47145 2008-10-27  Simon Josefsson  <simon@josefsson.org>
47146
47147         * modules/lstat-tests: New module.
47148         * tests/test-lstat.c: New file.
47149
47150 2008-10-26  Jim Meyering  <meyering@redhat.com>
47151
47152         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
47153
47154 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47155             Bruno Haible  <bruno@clisp.org>
47156
47157         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
47158         * modules/configmake (Include): Add a note that the include must come
47159         after all system headers.
47160         * lib/javaversion.c: Include configmake.h after all other includes.
47161
47162 2008-10-26  Bruno Haible  <bruno@clisp.org>
47163
47164         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
47165         HAVE_STRUCT_RANDOM_DATA to 1.
47166         (gl_STDLIB_H): Simplify.
47167
47168 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47169
47170         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
47171         substitute HAVE_STRUCT_RANDOM_DATA.
47172         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
47173         random_data.
47174         * modules/stdlib (Makefile.am): Substitute
47175         HAVE_STRUCT_RANDOM_DATA.
47176
47177 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47178
47179         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
47180         * doc/gnulib-intro.texi (Copyright): Likewise.
47181
47182 2008-10-26  Simon Josefsson  <simon@josefsson.org>
47183
47184         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
47185         findings.
47186
47187 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
47188             Bruno Haible  <bruno@clisp.org>
47189
47190         * lib/unistd.in.h: Include <winsock2.h>.
47191         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
47192         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
47193         Provide dummy declarations.
47194         (gethostname): Override.
47195         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
47196         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
47197         gl_PREREQ_SYS_H_WINSOCK2.
47198         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
47199         * doc/posix-functions/gethostname.texi: More details.
47200
47201 2008-10-25  Bruno Haible  <bruno@clisp.org>
47202
47203         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
47204         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
47205         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
47206
47207         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
47208         here ...
47209         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
47210         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
47211         gl_UNISTD_H_DEFAULTS.
47212
47213 2008-10-25  Eric Blake  <ebb9@byu.net>
47214
47215         signbit: avoid spurious compiler failure
47216         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
47217         declarations inside function.
47218
47219 2008-10-24  Simon Josefsson  <simon@josefsson.org>
47220             Bruno Haible  <bruno@clisp.org>
47221
47222         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
47223         * modules/random_r (Depends-on): Add stdint.
47224
47225 2008-10-24  Bruno Haible  <bruno@clisp.org>
47226
47227         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
47228         Eggert.
47229         * modules/strerror (License): Likewise.
47230
47231 2008-10-24  Jim Meyering  <meyering@redhat.com>
47232
47233         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
47234         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
47235
47236 2008-10-24  Eric Blake  <ebb9@byu.net>
47237
47238         getgroups: fix compilation when getgroups is available
47239         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
47240         but with <config.h> override of getgroups disabled.
47241
47242 2008-10-24  Simon Josefsson  <simon@josefsson.org>
47243
47244         * doc/gnulib.texi (Header files): Add note about C++ problems.
47245         Explained by Bruno Haible <bruno@clisp.org>.
47246
47247 2008-10-23  Bruno Haible  <bruno@clisp.org>
47248
47249         Define a dummy SA_NODEFER macro on Interix.
47250         * lib/signal.in.h (SA_NODEFER): Define fallback.
47251         Reported by Aleksey Cheusov <cheusov@tut.by> via
47252         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
47253
47254 2008-10-23  Bruno Haible  <bruno@clisp.org>
47255
47256         * modules/freadahead (License): Change to LGPLv2+.
47257         Suggested by Simon Josefsson.
47258
47259 2008-10-23  Jim Meyering  <meyering@redhat.com>
47260
47261         random_r: new module
47262         * modules/random_r: New file.
47263         * m4/random_r.m4: New file.
47264         * lib/random_r.c: New file, from glibc.
47265         * modules/random_r-tests: New file.
47266         * tests/test-random_r.c: New file.
47267         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
47268          Declare.
47269         (RAND_MAX): Define.
47270         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
47271         * modules/stdlib: Substitute them, too.
47272         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
47273         * doc/glibc-functions/initstate_r.texi: Mention the new module.
47274         * doc/glibc-functions/random_r.texi: Likewise.
47275         * doc/glibc-functions/setstate_r.texi: Likewise.
47276         * doc/glibc-functions/srandom_r.texi: Likewise.
47277         * config/srclist.txt: Mention it.
47278
47279 2008-10-23  David Lutterkort  <lutter@redhat.com>
47280
47281         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
47282         link requirement
47283
47284 2008-10-23  Jim Meyering  <meyering@redhat.com>
47285
47286         selinux-h: mark parameters of stub functions as intentionally unused
47287         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
47288         * lib/se-context.in.h: Likewise.
47289
47290 2008-10-22  Simon Josefsson  <simon@josefsson.org>
47291
47292         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
47293
47294 2008-10-22  Simon Josefsson  <simon@josefsson.org>
47295
47296         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
47297
47298 2008-10-22  Eric Blake  <ebb9@byu.net>
47299
47300         glthread/thread: avoid compiler warning
47301         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
47302         Add unreachable abort to silence compiler.
47303
47304 2008-10-22  Eric Blake  <ebb9@byu.net>
47305
47306         netdb: also supply struct addrinfo for cygwin 1.5.x
47307         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
47308         older cygwin.
47309         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
47310         cygwin.
47311         * doc/posix-headers/netdb.texi (netdb.h): Document this.
47312
47313 2008-10-22  Bruno Haible  <bruno@clisp.org>
47314
47315         * users.txt: Update entry about pspp.
47316
47317 2008-10-21  Bruno Haible  <bruno@clisp.org>
47318
47319         Simplification.
47320         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
47321         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
47322
47323         Simplification.
47324         * lib/ioctl.c (ioctl): Don't undefine.
47325         * lib/socket.c (socket): Don't undefine.
47326
47327         Remove unused module indicator macros.
47328         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
47329         GNULIB_$1 as a C macro.
47330
47331         * doc/posix-functions/close.texi: Undo last change.
47332         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
47333         Windows platforms.
47334
47335 2008-10-21  Bruno Haible  <bruno@clisp.org>
47336
47337         Add gethostname() declaration to <unistd.h>.
47338         * lib/unistd.in.h (gethostname): New declaration.
47339         * lib/gethostname.c: Include <unistd.h>.
47340         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
47341         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
47342         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
47343         and HAVE_GETHOSTNAME.
47344         * modules/gethostname (Depends-on): Add unistd.
47345         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47346         (Include): Specify <unistd.h>.
47347         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
47348         HAVE_GETHOSTNAME.
47349         * tests/test-gethostname.c: Include <unistd.h> first.
47350
47351 2008-10-21  Bruno Haible  <bruno@clisp.org>
47352
47353         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
47354         * modules/select-tests (Depends-on): Likewise.
47355         Reported by Simon Josefsson.
47356
47357 2008-10-21  Simon Josefsson  <simon@josefsson.org>
47358
47359         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
47360         * lib/accept.c: New file, based on winsock.c.
47361         * lib/bind.c: New file, based on winsock.c.
47362         * lib/connect.c: New file, based on winsock.c.
47363         * lib/getpeername.c: New file, based on winsock.c.
47364         * lib/getsockname.c: New file, based on winsock.c.
47365         * lib/getsockopt.c: New file, based on winsock.c.
47366         * lib/ioctl.c: New file, based on winsock.c.
47367         * lib/listen.c: New file, based on winsock.c.
47368         * lib/recv.c: New file, based on winsock.c.
47369         * lib/recvfrom.c: New file, based on winsock.c.
47370         * lib/send.c: New file, based on winsock.c.
47371         * lib/sendto.c: New file, based on winsock.c.
47372         * lib/setsockopt.c: New file, based on winsock.c.
47373         * lib/shutdown.c: New file, based on winsock.c.
47374         * lib/socket.c: New file, based on winsock.c.
47375         * lib/w32sock.h: New file, based on winsock.c.
47376         * lib/winsock.c: Remove file.
47377         * modules/accept: Likewise.
47378         * modules/bind: Likewise.
47379         * modules/connect: Likewise.
47380         * modules/getpeername: Likewise.
47381         * modules/getsockname: Likewise.
47382         * modules/getsockopt: Likewise.
47383         * modules/ioctl: Likewise.
47384         * modules/listen: Likewise.
47385         * modules/recv: Likewise.
47386         * modules/recvfrom: Likewise.
47387         * modules/send: Likewise.
47388         * modules/sendto: Likewise.
47389         * modules/setsockopt: Likewise.
47390         * modules/shutdown: Likewise.
47391         * modules/socket: Use socket.c instead of winsock.c.
47392         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
47393         * doc/posix-functions/accept.texi: Doc fix.
47394         * doc/posix-functions/bind.texi: Doc fix.
47395         * doc/posix-functions/close.texi: Doc fix.
47396         * doc/posix-functions/connect.texi: Doc fix.
47397         * doc/posix-functions/getpeername.texi: Doc fix.
47398         * doc/posix-functions/getsockname.texi: Doc fix.
47399         * doc/posix-functions/getsockopt.texi: Doc fix.
47400         * doc/posix-functions/ioctl.texi: Doc fix.
47401         * doc/posix-functions/listen.texi: Doc fix.
47402         * doc/posix-functions/recv.texi: Doc fix.
47403         * doc/posix-functions/recvfrom.texi: Doc fix.
47404         * doc/posix-functions/send.texi: Doc fix.
47405         * doc/posix-functions/sendto.texi: Doc fix.
47406         * doc/posix-functions/setsockopt.texi: Doc fix.
47407         * doc/posix-functions/shutdown.texi: Doc fix.
47408         * doc/posix-functions/socket.texi: Doc fix.
47409
47410 2008-10-20  Bruno Haible  <bruno@clisp.org>
47411
47412         Take into account the role of SIGABRT_COMPAT on Windows 2008.
47413         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
47414         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
47415         as an alias for SIGABRT.
47416         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
47417         (sigaction): Map it to SIGABRT.
47418         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
47419
47420 2008-10-20  Bruno Haible  <bruno@clisp.org>
47421
47422         * lib/fts.c: Don't include lstat.h.
47423         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
47424
47425         Move the lstat() declaration to <sys/stat.h>.
47426         * lib/lstat.h: Remove file.
47427         * lib/sys_stat.in.h: Add special invocation convention.
47428         (lstat): New declaration.
47429         * lib/lstat.c (orig_lstat): New function.
47430         (rpl_lstat): Use orig_lstat instead of lstat.
47431         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
47432         AC_C_INLINE. Set REPLACE_LSTAT.
47433         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
47434         and REPLACE_LSTAT.
47435         * modules/lstat (Files): Remove lib/lstat.h.
47436         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
47437         (Include): Specify <sys/stat.h> instead of lstat.h.
47438         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
47439         REPLACE_LSTAT.
47440         * NEWS: Mention the change.
47441
47442 2008-10-20  Bruno Haible  <bruno@clisp.org>
47443
47444         * modules/posix_spawn-tests: New file.
47445         * tests/test-posix_spawn3.c: New file.
47446
47447 2008-10-20  Bruno Haible  <bruno@clisp.org>
47448
47449         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
47450         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
47451         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
47452         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
47453         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
47454
47455 2008-10-20  Bruno Haible  <bruno@clisp.org>
47456
47457         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
47458         of posix_spawn on AIX 5.3.
47459
47460 2008-10-20  Bruno Haible  <bruno@clisp.org>
47461
47462         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
47463
47464 2008-10-20  Bruno Haible  <bruno@clisp.org>
47465
47466         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
47467         of AC_LANG_PROGRAM.
47468
47469 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47470
47471         * lib/netdb.in.h: Don't define GNU specific constants until they
47472         are supported or needed.  Reported by Bruno Haible
47473         <bruno@clisp.org>.
47474
47475 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47476
47477         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
47478
47479 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47480
47481         * lib/getaddrinfo.h: Remove file.
47482         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
47483         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
47484         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
47485         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
47486         * modules/netdb: Substitute GNULIB_GETADDRINFO.
47487         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
47488         * tests/test-getaddrinfo.c: Likewise.
47489         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
47490         * NEWS: Mention change.
47491
47492 2008-10-19  Bruno Haible  <bruno@clisp.org>
47493
47494         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
47495
47496 2008-10-19  Bruno Haible  <bruno@clisp.org>
47497
47498         * lib/wait-process.c: Include simply <sys/wait.h>.
47499         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
47500         WIFSTOPPED): Remove fallback definitions.
47501         * modules/wait-process (Depends-on): Add sys_wait.
47502
47503         New module 'sys_wait'.
47504         * modules/sys_wait: New file.
47505         * lib/sys_wait.in.h: New file, partially copied from
47506         lib/wait-process.c.
47507         * m4/sys_wait_h.m4: New file.
47508         * doc/posix-headers/sys_wait.texi: Mention the new module.
47509
47510 2008-10-19  Bruno Haible  <bruno@clisp.org>
47511
47512         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
47513
47514 2008-10-19  Bruno Haible  <bruno@clisp.org>
47515
47516         Assume that waitpid() fills an 'int' status, not a 'union wait'.
47517         * lib/wait-process.c (WAIT_T): Remove type.
47518         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
47519         (wait_subprocess): Update.
47520
47521 2008-10-19  Bruno Haible  <bruno@clisp.org>
47522
47523         New module 'atoll'.
47524         * modules/atoll: New file.
47525         * lib/stdlib.in.h (atoll): New declaration.
47526         * lib/atoll.c: New file, from glibc with modifications.
47527         * m4/atoll.m4: New file.
47528         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
47529         HAVE_ATOLL.
47530         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
47531         * doc/posix-functions/atoll.texi: Mention the new module.
47532
47533 2008-10-19  Bruno Haible  <bruno@clisp.org>
47534
47535         Add strtoull() declaration to <stdlib.h>.
47536         * lib/stdlib.in.h (strtoull): New declaration.
47537         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
47538         Set HAVE_STRTOULL.
47539         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
47540         HAVE_STRTOULL.
47541         * modules/strtoull (Depends-on): Add stdlib.
47542         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47543         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
47544         HAVE_STRTOULL.
47545
47546 2008-10-19  Bruno Haible  <bruno@clisp.org>
47547
47548         Add strtoll() declaration to <stdlib.h>.
47549         * lib/stdlib.in.h (strtoll): New declaration.
47550         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
47551         Set HAVE_STRTOLL.
47552         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
47553         HAVE_STRTOLL.
47554         * modules/strtoll (Depends-on): Add stdlib.
47555         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47556         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
47557
47558 2008-10-19  Bruno Haible  <bruno@clisp.org>
47559
47560         * modules/bcopy (Depends-on): Add strings.
47561         (Include): Specify <strings.h>.
47562
47563 2008-10-19  Bruno Haible  <bruno@clisp.org>
47564
47565         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
47566
47567 2008-10-19  Bruno Haible  <bruno@clisp.org>
47568
47569         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
47570         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
47571         mingw.
47572
47573 2008-10-19  Bruno Haible  <bruno@clisp.org>
47574
47575         * lib/atanl.c: Don't include isnanl.h.
47576         * lib/cosl.c: Likewise.
47577         * lib/ldexpl.c: Likewise.
47578         * lib/logl.c: Likewise.
47579         * lib/sinl.c: Likewise.
47580         * lib/sqrtl.c: Likewise.
47581         * lib/tanl.c: Likewise.
47582
47583         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
47584         * lib/isnanf.h: Remove file.
47585         * lib/isnand.h: Remove file.
47586         * lib/isnanl.h: Remove file.
47587         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
47588         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
47589         macros.
47590         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
47591         HAVE_ISNANF, don't define it as a C macro.
47592         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
47593         HAVE_ISNAND, don't define it as a C macro.
47594         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
47595         HAVE_ISNANL, don't define it as a C macro.
47596         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
47597         HAVE_ISNAN[FDL].
47598         * modules/isnanf (Files): Remove lib/isnanf.h.
47599         (Depends-on): Add math.
47600         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47601         (Include): Specify <math.h> instead of isnanf.h.
47602         * modules/isnand (Files): Remove lib/isnand.h.
47603         (Depends-on): Add math.
47604         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47605         (Include): Specify <math.h> instead of isnand.h.
47606         * modules/isnanl (Files): Remove lib/isnanl.h.
47607         (Depends-on): Add math.
47608         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47609         (Include): Specify <math.h> instead of isnanl.h.
47610         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
47611         HAVE_ISNAN[FDL].
47612         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
47613         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
47614         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
47615         * NEWS: Mention the change.
47616
47617 2008-10-18  Bruno Haible  <bruno@clisp.org>
47618
47619         Add getusershell(), setusershell(), endusershell() declarations to
47620         <unistd.h>.
47621         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
47622         declarations.
47623         * lib/getusershell.c: Include unistd.h.
47624         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
47625         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
47626         HAVE_GETUSERSHELL.
47627         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
47628         and HAVE_GETUSERSHELL.
47629         * modules/getusershell (Depends-on): Add unistd, extensions.
47630         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47631         (Include): Specify <unistd.h>.
47632         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
47633         HAVE_GETUSERSHELL.
47634
47635 2008-10-18  Bruno Haible  <bruno@clisp.org>
47636
47637         Add a getloadavg() declaration to <stdlib.h>.
47638         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
47639         getloadavg declaration.
47640         (getloadavg): New declaration.
47641         * lib/getloadavg.c: Include <stdlib.h> first.
47642         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
47643         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
47644         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
47645         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
47646         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
47647         * modules/getloadavg (Depends-on): Add stdlib, extensions.
47648         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47649         (Include): Specify <stdlib.h>.
47650         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
47651         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
47652
47653 2008-10-18  Bruno Haible  <bruno@clisp.org>
47654
47655         * lib/dirchownmod.c: Don't include lchmod.h.
47656
47657         Move the lchmod() declaration to <sys/stat.h>.
47658         * lib/lchmod.h: Remove file.
47659         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
47660         (lchmod): New declaration, moved here from lib/lchown.h.
47661         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
47662         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
47663         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
47664         and HAVE_LCHMOD.
47665         * modules/lchmod (Files): Remove lib/lchmod.h.
47666         (Depends-on): Add sys_stat, extensions.
47667         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
47668         (Include): Specify <sys/stat.h> instead of lchmod.h.
47669         * modules/sys_stat (Depends-on): Add link-warning.
47670         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
47671         definition of GL_LINK_WARNING.
47672         * NEWS: Mention the change.
47673
47674 2008-10-18  Bruno Haible  <bruno@clisp.org>
47675
47676         * lib/fchdir.c: Don't include dirfd.h.
47677         * lib/fts.c: Likewise.
47678         * lib/getcwd.c: Likewise.
47679         * lib/glob.c: Likewise.
47680
47681         Move the dirfd() declaration to <dirent.h>.
47682         * lib/dirfd.h: Remove file.
47683         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
47684         (dirfd): New declaration.
47685         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
47686         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
47687         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
47688         HAVE_DECL_DIRFD.
47689         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
47690         HAVE_DECL_DIRFD.
47691         * modules/dirfd (Files): Remove lib/dirfd.h.
47692         (Depends-on): Add dirent, extensions.
47693         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
47694         (Include): Specify <dirent.h> instead of dirfd.h.
47695         * modules/dirent (Depends-on): Add link-warning.
47696         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
47697         definition of GL_LINK_WARNING.
47698         * NEWS: Mention the change.
47699
47700 2008-10-18  Bruno Haible  <bruno@clisp.org>
47701
47702         Move the euidaccess() declaration to <unistd.h>.
47703         * lib/euidaccess.h: Remove file.
47704         * lib/unistd.in.h (euidaccess): New declaration.
47705         * lib/euidaccess.c: Don't include euidaccess.h.
47706         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
47707         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
47708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
47709         and HAVE_EUIDACCESS.
47710         * modules/euidaccess (Files): Remove lib/euidaccess.h.
47711         (Depends-on): Add unistd.
47712         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47713         (Include): Specify <unistd.h> instead of euidaccess.h.
47714         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
47715         HAVE_EUIDACCESS.
47716         * NEWS: Mention the change.
47717
47718 2008-10-18  Bruno Haible  <bruno@clisp.org>
47719
47720         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
47721
47722         Move the getdomainname() declaration to <unistd.h>.
47723         * lib/getdomainname.h: Remove file.
47724         * lib/unistd.in.h (getdomainname): New declaration.
47725         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
47726         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
47727         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
47728         HAVE_GETDOMAINNAME.
47729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47730         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
47731         * modules/getdomainname (Files): Remove lib/getdomainname.h.
47732         (Depends-on): Add unistd, extensions.
47733         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47734         (Includes): Specify <unistd.h> instead of getdomainname.h.
47735         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
47736         HAVE_GETDOMAINNAME.
47737         * NEWS: Mention the change.
47738
47739 2008-10-18  Bruno Haible  <bruno@clisp.org>
47740
47741         * modules/dirent: New file.
47742         * m4/dirent_h.m4: New file.
47743         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
47744         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
47745         * modules/fchdir (Files): Remove lib/dirent.in.h.
47746         (Depends-on): Add dirent.
47747         (Makefile.am): Move rules to modules/dirent.
47748         * doc/posix-headers/dirent.texi: Mention the new module.
47749
47750 2008-10-18  Bruno Haible  <bruno@clisp.org>
47751
47752         Avoid -Wunused-parameter warnings in public gnulib header files.
47753         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
47754         macro.
47755         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
47756
47757 2008-10-18  Bruno Haible  <bruno@clisp.org>
47758
47759         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
47760         * doc/glibc-functions/error.texi: Mention the module 'error'.
47761         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
47762         * doc/glibc-functions/getdomainname.texi: Mention the module
47763         'getdomainname'.
47764         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
47765         * doc/glibc-functions/getpagesize.texi: Mention the module
47766         'getpagesize'.
47767         * doc/glibc-functions/getusershell.texi: Mention the module
47768         'getusershell'.
47769         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
47770         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
47771         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
47772         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
47773         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
47774         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
47775         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
47776         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
47777         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
47778         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
47779         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
47780         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
47781         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
47782         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
47783
47784 2008-10-17  Bruno Haible  <bruno@clisp.org>
47785
47786         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
47787         HP-UX and IRIX, use -0.0L.
47788         * tests/test-ceill.c (minus_zero): Likewise.
47789         * tests/test-floorl.c (minus_zero): Likewise.
47790         * tests/test-frexpl.c (minus_zero): Likewise.
47791         * tests/test-isnan.c (minus_zerol): Likewise.
47792         * tests/test-isnanl.h (minus_zero): Likewise.
47793         * tests/test-ldexpl.c (minus_zero): Likewise.
47794         * tests/test-roundl.c (minus_zero): Likewise.
47795         * tests/test-signbit.c (minus_zerol): Likewise.
47796         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47797         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47798         * tests/test-truncl.c (minus_zero): Likewise.
47799         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47800         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47801         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
47802         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47803
47804 2008-10-17  Bruno Haible  <bruno@clisp.org>
47805
47806         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
47807         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
47808         that it gets activated only for gcc >= 3.0.
47809         * lib/dirent.in.h: Likewise.
47810         * lib/errno.in.h: Likewise.
47811         * lib/fcntl.in.h: Likewise.
47812         * lib/float.in.h: Likewise.
47813         * lib/iconv.in.h: Likewise.
47814         * lib/inttypes.in.h: Likewise.
47815         * lib/locale.in.h: Likewise.
47816         * lib/math.in.h: Likewise.
47817         * lib/netdb.in.h: Likewise.
47818         * lib/netinet_in.in.h: Likewise.
47819         * lib/search.in.h: Likewise.
47820         * lib/signal.in.h: Likewise.
47821         * lib/spawn.in.h: Likewise.
47822         * lib/stdarg.in.h: Likewise.
47823         * lib/stdint.in.h: Likewise.
47824         * lib/stdio.in.h: Likewise.
47825         * lib/stdlib.in.h: Likewise.
47826         * lib/string.in.h: Likewise.
47827         * lib/strings.in.h: Likewise.
47828         * lib/sys_file.in.h: Likewise.
47829         * lib/sys_ioctl.in.h: Likewise.
47830         * lib/sys_select.in.h: Likewise.
47831         * lib/sys_socket.in.h: Likewise.
47832         * lib/sys_stat.in.h: Likewise.
47833         * lib/sys_time.in.h: Likewise.
47834         * lib/sysexits.in.h: Likewise.
47835         * lib/time.in.h: Likewise.
47836         * lib/unistd.in.h: Likewise.
47837         * lib/wchar.in.h: Likewise.
47838         * lib/wctype.in.h: Likewise.
47839         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47840
47841 2008-10-17  Jim Meyering  <meyering@redhat.com>
47842
47843         ignore-value: don't depend on inline module
47844         * modules/ignore-value (Depends-on): Remove 'inline'.
47845         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
47846         Suggestion from Bruno Haible.
47847
47848 2008-10-17  Bruno Haible  <bruno@clisp.org>
47849
47850         New implementation of condition variables for Win32.
47851         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
47852         (gl_linked_waitqueue_t): New type.
47853         (gl_cond_t): Use it.
47854         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
47855         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
47856         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
47857         (glthread_cond_init_func, glthread_cond_wait_func,
47858         glthread_cond_timedwait_func, glthread_cond_signal_func,
47859         glthread_cond_broadcast_func, glthread_cond_destroy_func):
47860         Reimplemented on the basis of gl_linked_waitqueue_t.
47861         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
47862         gl_waitqueue_t.
47863         (gl_rwlock_t): Update.
47864         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
47865
47866 2008-10-17  Simon Josefsson  <simon@josefsson.org>
47867
47868         * modules/recvfrom (Depends-on): Add dependency on getpeername.
47869         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47870
47871 2008-10-17  Jim Meyering  <meyering@redhat.com>
47872
47873         ignore-value: new module
47874         * modules/ignore-value: New file.
47875         * lib/ignore-value.h: New file.
47876         * MODULES.html.sh (Compiler warning management): New section,
47877         just for this module.  More to come.
47878
47879 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47880
47881         open-safer.c: avoid 'signed and unsigned in conditional...' warning
47882         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
47883         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
47884
47885 2008-10-16  Jim Meyering  <meyering@redhat.com>
47886
47887         openat-die.c: avoid 'no previous prototype' warning
47888         * lib/openat-die.c: Include "openat.h".
47889         Reported by Reuben Thomas <rrt@sc3d.org>.
47890
47891 2008-10-16  Simon Josefsson  <simon@josefsson.org>
47892
47893         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
47894         * lib/netdb.in.h: Fix typo.
47895         Reported by Bruno Haible  <bruno@clisp.org>
47896
47897         * lib/netdb.in.h: Include sys/socket.h for platforms without
47898         netdb.h, to get structures like hostent on MinGW.
47899         * modules/netdb (Depends-on): Add sys_socket.
47900
47901 2008-10-15  Simon Josefsson  <simon@josefsson.org>
47902
47903         * modules/netdb, modules/netdb-tests: New file.
47904         * m4/netdb_h.m4: New file.
47905         * lib/netdb.in.h: Add, currently just an empty file pending
47906         definitions.
47907         * tests/test-netdb.c: New file.
47908         * doc/posix-headers/netdb.texi: Mention that we replace it if
47909         needed.
47910         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47911         netdb.
47912
47913 2008-10-15  Simon Josefsson  <simon@josefsson.org>
47914
47915         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
47916         with code.
47917
47918 2008-10-13  Bruno Haible  <bruno@clisp.org>
47919
47920         * lib/glthread/cond.c (glthread_cond_wait_func,
47921         glthread_cond_timedwait_func): Add a comment.
47922
47923 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47924
47925         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
47926         * tests/test-select.c: Likewise,
47927
47928 2008-10-13  Bruno Haible  <bruno@clisp.org>
47929
47930         * lib/glthread/cond.c (glthread_cond_wait_func,
47931         glthread_cond_timedwait_func): Fix variable name.
47932         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47933
47934 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
47935
47936         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
47937         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
47938         struct sockaddr.sa_len.
47939         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
47940
47941 2008-10-13  Simon Josefsson  <simon@josefsson.org>
47942
47943         * build-aux/pmccabe2html: Add css and css_url parameters.
47944
47945 2008-10-12  Bruno Haible  <bruno@clisp.org>
47946
47947         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
47948         calling aclx_get.
47949         Reported by Rainer Tammer <tammer@tammer.net>.
47950
47951 2008-10-12  Bruno Haible  <bruno@clisp.org>
47952
47953         Use msvcrt aware primitives for creation/termination of Win32 threads.
47954         * lib/glthread/thread.c: Include <process.h>.
47955         (glthread_create_func): Use _beginthreadex instead of CreateThread.
47956         (wrapper_func): Update signature.
47957         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
47958
47959 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47960             Bruno Haible  <bruno@clisp.org>
47961
47962         Provide a Win32 implementation of the 'cond' module.
47963         * lib/glthread/cond.h [USE_WIN32]: New implementation.
47964         * lib/glthread/cond.c (glthread_cond_init_func,
47965         glthread_cond_wait_func, glthread_cond_timedwait_func,
47966         glthread_cond_signal_func, glthread_cond_broadcast_func,
47967         glthread_cond_destroy_func) [USE_WIN32]: New functions.
47968         * modules/cond (Dependencies): Add gettimeofday.
47969
47970 2008-10-11  Bruno Haible  <bruno@clisp.org>
47971
47972         Make sleep work on older versions of mingw.
47973         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
47974         only whether it exists.
47975         * doc/posix-functions/sleep.texi: Mention the problem with older
47976         versions of mingw.
47977
47978 2008-10-11  Bruno Haible  <bruno@clisp.org>
47979
47980         New module 'shutdown'.
47981         * modules/shutdown: New file.
47982         * lib/sys_socket.in.h (shutdown): New declaration.
47983         * lib/winsock.c (shutdown): New function.
47984         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47985         GNULIB_SHUTDOWN.
47986         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
47987         * doc/posix-functions/shutdown.texi: Document the new module.
47988
47989 2008-10-11  Jim Meyering  <meyering@redhat.com>
47990
47991         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
47992
47993 2008-10-11  Bruno Haible  <bruno@clisp.org>
47994
47995         New module 'fclose'.
47996         * modules/fclose: New file.
47997         * lib/stdio.in.h (fclose): New declaration.
47998         * lib/fclose.c: New file.
47999         * m4/fclose.m4: New file.
48000         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
48001         REPLACE_FCLOSE.
48002         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
48003         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
48004         REPLACE_FCLOSE.
48005         * modules/close (Depends-on): fclose.
48006         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
48007
48008 2008-10-11  Bruno Haible  <bruno@clisp.org>
48009
48010         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
48011         set errno and don't call _close.
48012
48013 2008-10-10  Bruno Haible  <bruno@clisp.org>
48014
48015         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
48016         ACL, not afterwards. Fixes test failure on Cygwin.
48017
48018 2008-10-09  Ben Pfaff  <blp@gnu.org>
48019
48020         * build-aux/announce-gen: Fix gnulib version related part of usage
48021         message.  Die with a useful error message if no tarballs are
48022         found.
48023
48024 2008-10-10  Jim Meyering  <meyering@redhat.com>
48025
48026         bootstrap: use git's --depth=N option only if it's supported
48027         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
48028         recognize the --depth option.  Reported by Pádraig Brady.
48029
48030 2008-10-09  Bruno Haible  <bruno@clisp.org>
48031
48032         New module 'ioctl'.
48033         * modules/ioctl: New file.
48034         * lib/sys_socket.in.h (ioctl): Remove declaration.
48035         * lib/winsock.c: Include <sys/ioctl.h>.
48036         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
48037         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
48038         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
48039         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
48040         * doc/posix-functions/ioctl.texi: Mention the new module.
48041
48042 2008-10-09  Bruno Haible  <bruno@clisp.org>
48043
48044         New module 'sys_ioctl'.
48045         * lib/sys_ioctl.in.h: New file.
48046         * m4/sys_ioctl_h.m4: New file.
48047         * modules/sys_ioctl: New file.
48048         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
48049
48050 2008-10-09  Bruno Haible  <bruno@clisp.org>
48051
48052         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
48053         * lib/winsock.c: Include <stdarg.h>.
48054         (rpl_ioctl): Change to second argument 'int' and then varargs.
48055
48056 2008-10-09  Bruno Haible  <bruno@clisp.org>
48057
48058         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
48059         when the sys_socket module is present and the system has <winsock2.h>.
48060
48061 2008-10-09  Bruno Haible  <bruno@clisp.org>
48062
48063         * doc/posix-functions/close.texi: Mention module 'close' instead of
48064         module 'sys_socket'.
48065
48066 2008-10-09  Bruno Haible  <bruno@clisp.org>
48067
48068         * doc/glibc-headers/sys_ioctl.texi: New file.
48069         * doc/gnulib.texi: Include it.
48070
48071 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48072             Bruno Haible  <bruno@clisp.org>
48073
48074         Combine the two replacements of 'close'.
48075         * lib/sys_socket.in.h (close): Define to a reminder to include
48076         <unistd.h>.
48077         (_gl_close_fd_maybe_socket): New declaration.
48078         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
48079         * lib/winsock.c (close): Remove undefinition.
48080         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
48081         needed for the gnulib module 'close'.
48082         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
48083         define to an error symbol or to a warning, if suitable.
48084         * lib/close.c: Include <sys/socket.h>.
48085         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
48086         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
48087         UNISTD_H_HAVE_WINSOCK2_H.
48088         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
48089         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48090         UNISTD_H_HAVE_WINSOCK2_H.
48091         * modules/sys_socket (Files): Add m4/unistd_h.m4.
48092         (configure.ac): Set a module indicator.
48093         (Makefile.am): Substitute GNULIB_CLOSE.
48094         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
48095         * modules/poll-tests (Depends-on): Add close.
48096         * modules/select-tests (Depends-on): Likewise.
48097
48098 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48099             Bruno Haible  <bruno@clisp.org>
48100
48101         New module 'close'.
48102         * modules/close: New file.
48103         * lib/unistd.in.h (close): Move declaration out of the
48104         FCHDIR_REPLACEMENT scope.
48105         (_gl_unregister_fd): New declaration.
48106         * lib/close.c: New file.
48107         * lib/fchdir.c (rpl_close): Remove function.
48108         * m4/close.m4: New file.
48109         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
48110         close.
48111         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
48112         REPLACE_CLOSE.
48113         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
48114         REPLACE_CLOSE.
48115         * modules/fchdir (Depends-on): Add close.
48116
48117 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48118             Bruno Haible  <bruno@clisp.org>
48119
48120         * lib/fcntl.in.h (open): Simplify conditionals.
48121         (_gl_register_fd): New declaration.
48122         * lib/fchdir.c (rpl_open): Remove function.
48123         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
48124         also.
48125         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
48126         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
48127         open.
48128
48129 2008-10-09  Jim Meyering  <meyering@redhat.com>
48130
48131         GNUmakefile: use the more name-space-friendly "_version"
48132         * top/GNUmakefile (_dummy): Update.
48133         (_version): Rename from "version".
48134
48135 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48136             Bruno Haible  <bruno@clisp.org>
48137
48138         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
48139         rpl_close.
48140         (_gl_register_fd): New function, extracted from rpl_open.
48141         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
48142         (rpl_open, rpl_opendir): Use _gl_register_fd.
48143
48144 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
48145
48146         Fix organization of 'open' replacement.
48147         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
48148         (gl_FUNC_OPEN): Use it.
48149         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
48150
48151 2008-10-08  Bruno Haible  <bruno@clisp.org>
48152
48153         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
48154
48155 2008-10-08  Simon Josefsson  <simon@josefsson.org>
48156
48157         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
48158         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
48159         listen).
48160
48161 2008-10-08  Eric Blake  <ebb9@byu.net>
48162
48163         GNUmakefile: add 'make version' target
48164         * top/GNUmakefile (_curr-ver): Split version update rules...
48165         (version): ...into a target.
48166
48167 2008-10-07  Bruno Haible  <bruno@clisp.org>
48168
48169         Use a more portable replacement expression for -0.0L.
48170         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
48171         instead of -0.0L. Fix m4 quotation.
48172
48173         * tests/test-signbit.c: Include <float.h>.
48174         (minus_zero): New variable.
48175         (test_signbitl): Use minus_zero instead of -zero.
48176         * modules/signbit-tests (Depends-on): Add float.
48177
48178         * tests/test-ceill.c: Include <float.h>.
48179         (zero): Remove variable.
48180         (minus_zero): New variable.
48181         (main): Use minus_zero instead of -zero.
48182         * modules/ceill-tests (Depends-on): Add float.
48183
48184         * tests/test-floorl.c: Include <float.h>.
48185         (zero): Remove variable.
48186         (minus_zero): New variable.
48187         (main): Use minus_zero instead of -zero.
48188         * modules/floorl-tests (Depends-on): Add float.
48189
48190         * tests/test-roundl.c: Include <float.h>.
48191         (zero): Remove variable.
48192         (minus_zero): New variable.
48193         (main): Use minus_zero instead of -zero.
48194         * modules/roundl-tests (Depends-on): Add float.
48195
48196         * tests/test-truncl.c: Include <float.h>.
48197         (zero): Remove variable.
48198         (minus_zero): New variable.
48199         (main): Use minus_zero instead of -zero.
48200         * modules/truncl-tests (Depends-on): Add float.
48201
48202         * tests/test-frexpl.c (zero): Remove variable.
48203         (minus_zero): New variable.
48204         (main): Use minus_zero instead of -zero.
48205         * modules/frexpl-tests (Depends-on): Add float.
48206
48207         * tests/test-isnan.c (zerol): Remove variable.
48208         (minus_zerol): New variable.
48209         (test_long_double): Use minus_zerol instead of -zerol.
48210         * modules/isnan-tests (Depends-on): Add float.
48211
48212         * tests/test-isnanl.h (zero): Remove variable.
48213         (minus_zero): New variable.
48214         (main): Use minus_zero instead of -zero.
48215         * modules/isnanl-nolibm-tests (Depends-on): Add float.
48216         * modules/isnanl-tests (Depends-on): Add float.
48217
48218         * tests/test-ldexpl.c (zero): Remove variable.
48219         (minus_zero): New variable.
48220         (main): Use minus_zero instead of -zero.
48221         * modules/ldexpl-tests (Depends-on): Add float.
48222
48223         * tests/test-snprintf-posix.h (zerol): Remove variable.
48224         (minus_zerol): New variable.
48225         (test_function): Use minus_zerol instead of -zerol.
48226         * modules/snprintf-posix-tests (Depends-on): Add float.
48227         * modules/vsnprintf-posix-tests (Depends-on): Add float.
48228
48229         * tests/test-sprintf-posix.h (zerol): Remove variable.
48230         (minus_zerol): New variable.
48231         (test_function): Use minus_zerol instead of -zerol.
48232         * modules/sprintf-posix-tests (Depends-on): Add float.
48233         * modules/vsprintf-posix-tests (Depends-on): Add float.
48234
48235         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
48236         (minus_zerol): New variable.
48237         (test_function): Use minus_zerol instead of -zerol.
48238         * modules/vasnprintf-posix-tests (Depends-on): Add float.
48239
48240         * tests/test-vasprintf-posix.c (zerol): Remove variable.
48241         (minus_zerol): New variable.
48242         (test_function): Use minus_zerol instead of -zerol.
48243         * modules/vasprintf-posix-tests (Depends-on): Add float.
48244
48245 2008-10-07  Simon Josefsson  <simon@josefsson.org>
48246
48247         * MODULES.html.sh (Support for building documentation): Mention
48248         pmccabe2html.  Sort entries.
48249
48250         Add pmccabe2html module, from gnupdf.
48251         * build-aux/pmccabe.css: New file.
48252         * build-aux/pmccabe2html: New file.
48253         * m4/pmccabe2html.m4: New file.
48254         * modules/pmccabe2html: New file.
48255
48256 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
48257
48258         flock: new module
48259         * MODULES.html.sh: Add to list of modules.
48260         * lib/flock.c: flock implementation for Windows and Unix systems
48261         which have fcntl.
48262         * doc/glibc-functions/flock.texi: Update documentation.
48263         * lib/sys_file.in.h: <sys/file.h> header file.
48264         * m4/flock.m4: M4 macros.
48265         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
48266         * modules/flock: flock module.
48267         * modules/flock-tests: flock tests module.
48268         * modules/sys_file: sys/file.h module.
48269         * tests/test-flock.c: test suite for flock.
48270
48271 2008-10-06  Jim Meyering  <meyering@redhat.com>
48272
48273         bootstrap: check for LT_INIT more portably still ;-)
48274         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
48275         Spotted by Bruno Haible.
48276
48277 2008-10-06  Eric Blake  <ebb9@byu.net>
48278
48279         test-signbit: avoid tripping Irix cc bug on -0.0L
48280         * tests/test-signbit.c (minus_zerol): Delete, and replace with
48281         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
48282         entire testsuite consistent and avoids an Irix 6.2 bug.
48283
48284 2008-10-05  Bruno Haible  <bruno@clisp.org>
48285             Jim Meyering  <jim@meyering.net>
48286
48287         Add an option for ignoring EPIPE during close_stdout.
48288         * lib/closeout.h: Include <stdbool.h>.
48289         (close_stdout_set_ignore_EPIPE): New declaration.
48290         * lib/closeout.c: Include <stdbool.h>.
48291         (ignore_EPIPE): New variable.
48292         (close_stdout_set_ignore_EPIPE): New function.
48293         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
48294         * lib/close-stream.c (close_stream): Mention the possible EPIPE
48295         failure.
48296         * modules/closeout (Depends-on): Add stdbool.
48297
48298 2008-10-05  Bruno Haible  <bruno@clisp.org>
48299
48300         * modules/accept: New file.
48301         * modules/bind: New file.
48302         * modules/connect: New file.
48303         * modules/getpeername: New file.
48304         * modules/getsockname: New file.
48305         * modules/getsockopt: New file.
48306         * modules/listen: New file.
48307         * modules/recv: New file.
48308         * modules/recvfrom: New file.
48309         * modules/send: New file.
48310         * modules/sendto: New file.
48311         * modules/setsockopt: New file.
48312         * modules/socket: New file.
48313         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
48314         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
48315         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
48316         the particular module is requested. Add a link warning when the
48317         particular module is not requested.
48318         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
48319         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
48320         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
48321         the particular module is requested.
48322         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
48323         gl_SYS_SOCKET_H_DEFAULTS): New macros.
48324         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
48325         * modules/sys_socket (Depends-on): Add link-warning.
48326         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
48327         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
48328         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
48329         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
48330         GL_LINK_WARNING.
48331         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
48332         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
48333         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
48334         * doc/posix-functions/getpeername.texi: Mention the new module
48335         'getpeername'.
48336         * doc/posix-functions/getsockname.texi: Mention the new module
48337         'getsockname'.
48338         * doc/posix-functions/getsockopt.texi: Mention the new module
48339         'getsockopt'.
48340         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
48341         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
48342         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
48343         * doc/posix-functions/send.texi: Mention the new module 'send'.
48344         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
48345         * doc/posix-functions/setsockopt.texi: Mention the new module
48346         'setsockopt'.
48347         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
48348         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
48349         listen, connect, accept.
48350         * modules/select-tests (Depends-on): Likewise.
48351
48352 2008-10-05  Bruno Haible  <bruno@clisp.org>
48353
48354         * lib/winsock.c (strerror): Remove unused #undef.
48355         (rpl_close): Remove unused local variable.
48356
48357         * modules/sys_socket (Depends-on); Add errno.
48358
48359 2008-10-05  Bruno Haible  <bruno@clisp.org>
48360
48361         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
48362         (select): Add a link warning when the 'select' module is not used.
48363         * modules/sys_select (Depends-on): Add link-warning.
48364         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
48365         Suggested by Paolo Bonzini.
48366
48367 2008-10-05  Jim Meyering  <meyering@redhat.com>
48368
48369         bootstrap: check for LT_INIT more portably
48370         * build-aux/bootstrap: Avoid using grep -E, since it's not
48371         portable enough.  Suggestion from Bruno Haible.
48372
48373 2008-10-05  Bruno Haible  <bruno@clisp.org>
48374
48375         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
48376         as being fixed by gnulib.
48377
48378 2008-10-05  Bruno Haible  <bruno@clisp.org>
48379
48380         * modules/select-tests: New file, mostly copied from
48381         modules/sys_select-tests.
48382         * tests/test-select.c: New file, mostly copied from
48383         tests/test-sys_select.c.
48384         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
48385         * modules/sys_select-tests (Depends-on): Remove all dependencies.
48386         (Makefile.am): Remove test_sys_select_LDADD.
48387
48388         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
48389         to an undefined symbol, for an error message.
48390         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
48391         (gl_SYS_SELECT_H_DEFAULTS): New macro.
48392         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
48393         winsock-select.c here.
48394         * modules/sys_select (Files): Remove lib/winsock-select.c.
48395         (Depends-on): Remove alloca.
48396         (Makefile.am): Substitute GNULIB_SELECT.
48397         * modules/select: New file.
48398         * doc/posix-functions/select.texi: Update.
48399
48400 2008-10-05  Bruno Haible  <bruno@clisp.org>
48401
48402         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
48403         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
48404         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
48405         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
48406         getdtablesize.
48407         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
48408         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
48409
48410 2008-10-05  Bruno Haible  <bruno@clisp.org>
48411
48412         * modules/getdtablesize-tests: New file.
48413         * tests/test-getdtablesize.c: New file.
48414
48415         New module 'getdtablesize'.
48416         * lib/unistd.in.h (getdtablesize): New declaration.
48417         * lib/getdtablesize.c: New file.
48418         * m4/getdtablesize.m4: New file.
48419         * modules/getdtablesize: New file.
48420         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48421         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
48422         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
48423         HAVE_GETDTABLESIZE.
48424         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
48425
48426 2008-10-05  Bruno Haible  <bruno@clisp.org>
48427
48428         * modules/sched (Makefile.am): Fix typo.
48429         Reported by Simon Josefsson.
48430
48431 2008-10-05  Jim Meyering  <meyering@redhat.com>
48432
48433         bootstrap: check for LT_INIT, too
48434         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
48435         are deprecated.  Suggestion from Ralf Wildenhues.
48436
48437 2008-10-05  Bruno Haible  <bruno@clisp.org>
48438
48439         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
48440         overriding them by ours.
48441         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
48442
48443 2008-10-05  Jim Meyering  <meyering@redhat.com>
48444
48445         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
48446         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
48447         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
48448
48449 2008-10-04  Bruno Haible  <bruno@clisp.org>
48450
48451         * modules/dup2 (License): Change to LGPLv2+.
48452         * modules/sleep (License): Likewise.
48453         * modules/perror (License): Likewise.
48454         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
48455         Blake.
48456         * modules/signal (License): Likewise.
48457         * modules/sigprocmask (License): Likewise.
48458         * modules/raise (License): Change to LGPLv2+, with approval by Jim
48459         Meyering.
48460
48461 2008-10-04  Bruno Haible  <bruno@clisp.org>
48462
48463         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
48464         Reported by Rainer Tammer <tammer@tammer.net>.
48465
48466 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
48467             Bruno Haible  <bruno@clisp.org>
48468
48469         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
48470         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
48471         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
48472
48473 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
48474
48475         filevercmp: new module
48476         * lib/filevercmp.h: New function filevercmp comparing version strings.
48477         * lib/filevercmp.c: Implementation of filevercmp function.
48478         * modules/filevercmp: Module metadata.
48479         * tests/test-filevercmp.c: Unit test for new module.
48480         * modules/filevercmp-tests: Unit test metadata.
48481         * MODULES.html.sh: Add filevercmp module.
48482
48483 2008-10-03  Bruno Haible  <bruno@clisp.org>
48484
48485         * lib/c-ctype.h: Add comment.
48486         Reported by Jim Meyering.
48487
48488 2008-10-02  Bruno Haible  <bruno@clisp.org>
48489
48490         * modules/posix_spawn-internal (Depends-on): Add 'open'.
48491
48492 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48493
48494         * build-aux/bootstrap: Allow renaming bootstrap, and change the
48495         name of bootstrap.conf accordingly.
48496
48497 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48498
48499         * build-aux/bootstrap: Install git-merge-changelog configuration
48500         items into .gitconfig if needed.
48501
48502 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48503
48504         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
48505         git repository, and initialize/update it accordingly.
48506
48507 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
48508
48509         * modules/fsync-tests: New file.
48510         * tests/test-fsync.c: New file.
48511
48512         New module 'fsync'.
48513         * lib/fsync.c: New file.
48514         * m4/fsync.m4: New file.
48515         * modules/fsync: New file.
48516         * lib/unistd.in.h (fsync): New declaration.
48517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
48518         GNULIB_FSYNC and HAVE_FSYNC.
48519         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
48520         * MODULES.html.sh (posix_functions): Add fsync.
48521         * doc/posix-functions/fsync.texi: Mention the new module.
48522
48523 2008-10-02  Jim Meyering  <meyering@redhat.com>
48524
48525         fts.c: sync with similar code from coreutils' remove.c
48526         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
48527         Guard also with "#if defined __linux__", since for now at least,
48528         this code is Linux-kernel-specific.
48529
48530 2008-10-02  Jim Meyering  <meyering@redhat.com>
48531
48532         fts: bug fixes
48533         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
48534         Include <sys/vfs.h>, not <sys/statfs.h>.
48535
48536         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
48537         Include <sys/vfs.h>, not <sys/statfs.h>.
48538
48539 2008-10-01  Bruno Haible  <bruno@clisp.org>
48540
48541         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
48542         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
48543         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
48544         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
48545         * doc/posix-functions/posix_spawnp.texi: Likewise.
48546         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
48547         whether posix_spawn actually works.
48548         * m4/pipe.m4 (gl_PIPE): Likewise.
48549         * modules/execute (Files): Add m4/posix_spawn.m4.
48550         * modules/pipe (Files): Add m4/posix_spawn.m4.
48551         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
48552
48553 2008-10-01  Jim Meyering  <meyering@redhat.com>
48554
48555         remove trailing spaces
48556         * NEWS: Likewise.
48557         * lib/poll.c (poll): Likewise.
48558         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
48559         * lib/winsock.c (rpl_close): Likewise.
48560         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
48561         * modules/yield: Likewise.
48562         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
48563         * tests/test-sys_select.c (connect_to_socket): Likewise.
48564
48565         fts.c: adjust a new interface to be more generally useful
48566         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
48567         (fts_build): Adjust caller.
48568
48569 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48570
48571         * modules/cond-tests: New file.
48572         * tests/test-cond.c: New file.
48573
48574 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48575             Bruno Haible  <bruno@clisp.org>
48576
48577         * modules/cond (Dependencies): Add errno, time.
48578         * lib/glthread/cond.h: Include <time.h>.
48579         (gl_cond_define, gl_cond_define_initialized): Use the same definition
48580         across platforms.
48581
48582 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48583             Bruno Haible  <bruno@clisp.org>
48584
48585         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
48586
48587 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48588             Bruno Haible  <bruno@clisp.org>
48589
48590         * modules/tls-tests (Depends-on): Add thread, yield.
48591         (configure.ac): Remove all checks.
48592         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
48593         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
48594         gl_thread_self): Remove definitions. Include glthread/thread.h and
48595         glthread/yield.h instead.
48596         (test_tls): Pass an additional NULL argument to gl_thread_join.
48597
48598 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48599             Bruno Haible  <bruno@clisp.org>
48600
48601         * modules/lock-tests (Depends-on): Add thread, yield.
48602         (configure.ac): Remove all checks.
48603         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
48604         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
48605         gl_thread_self): Remove definitions. Include glthread/thread.h and
48606         glthread/yield.h instead.
48607         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
48608         additional NULL argument to gl_thread_join.
48609
48610 2008-09-30  Bruno Haible  <bruno@clisp.org>
48611
48612         Fix the Win32 implementation of the 'thread' module.
48613         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
48614         pointer type.
48615         (gl_thread_self): Invoke gl_thread_self_func.
48616         (gl_thread_self_func): New declaration.
48617         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
48618         (do_init_self_key, init_self_key): New functions.
48619         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
48620         Remove some fields.
48621         (running_threads, running_lock): Remove variables.
48622         (get_current_thread_handle): New function.
48623         (gl_thread_self_func, wrapper_func, glthread_create_func,
48624         glthread_join_func, gl_thread_exit_func): Largely rewritten and
48625         simplified.
48626
48627 2008-09-30  Bruno Haible  <bruno@clisp.org>
48628
48629         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
48630         files.
48631
48632 2008-09-30  Jim Meyering  <meyering@redhat.com>
48633
48634         fts.m4: correct the test for statfs.f_type
48635         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
48636         when checking for statfs.f_type.
48637
48638 2008-09-15  Simon Josefsson  <simon@josefsson.org>
48639
48640         tests: avoid some compiler warnings
48641         * tests/test-memchr.c (main): Pass NULL indirectly.
48642         * tests/test-getdate.c (main): Remove unused variable 'ret'.
48643
48644 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
48645
48646         getdate.y: disallow countable dayshifts like "4 yesterday ago"
48647         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
48648         exactly specified dayshifts.
48649         (dayshift): New rule.
48650         (rel): Add dayshift.
48651         (relative_time_table) [tomorrow, yesterday, today, now]:
48652         Use tDAY_SHIFT in place of tDAY_UNIT.
48653         * tests/test-getdate.c: Add tests for now-disallowed countable
48654         dayshifts, e.g., "4 yesterday ago".
48655
48656 2008-09-29  Bruno Haible  <bruno@clisp.org>
48657
48658         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
48659         * tests/test-posix_spawn1.in.sh: Renamed from
48660         tests/test-posix_spawn.in.sh.
48661         * tests/test-posix_spawn2.c: New file.
48662         * tests/test-posix_spawn2.in.sh: New file.
48663         * modules/posix_spawnp-tests (Files): Update.
48664         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
48665
48666 2008-09-29  Bruno Haible  <bruno@clisp.org>
48667
48668         Propagate effects of putenv/setenv/unsetenv to child processes.
48669         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
48670         * lib/pipe.c (create_pipe): Likewise.
48671
48672 2008-09-29  Bruno Haible  <bruno@clisp.org>
48673
48674         Enable use of shell scripts as executables in mingw.
48675         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
48676         run the program as a shell script.
48677         * lib/pipe.c (create_pipe): Likewise.
48678         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
48679         resulting array.
48680
48681 2008-09-29  Eric Blake  <ebb9@byu.net>
48682
48683         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
48684
48685 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
48686
48687         * doc/posix-functions/accept.texi: Update mingw problems.
48688         * doc/posix-functions/bind.texi: Update mingw problems.
48689         * doc/posix-functions/close.texi: Update mingw problems.
48690         * doc/posix-functions/connect.texi: Update mingw problems.
48691         * doc/posix-functions/getpeername.texi: Update mingw problems.
48692         * doc/posix-functions/getsockname.texi: Update mingw problems.
48693         * doc/posix-functions/getsockopt.texi: Update mingw problems.
48694         * doc/posix-functions/ioctl.texi: Update mingw problems.
48695         * doc/posix-functions/listen.texi: Update mingw problems.
48696         * doc/posix-functions/recv.texi: Update mingw problems.
48697         * doc/posix-functions/recvfrom.texi: Update mingw problems.
48698         * doc/posix-functions/select.texi: Update mingw problems.
48699         * doc/posix-functions/send.texi: Update mingw problems.
48700         * doc/posix-functions/sendto.texi: Update mingw problems.
48701         * doc/posix-functions/setsockopt.texi: Update mingw problems.
48702         * doc/posix-functions/socket.texi: Update mingw problems.
48703
48704 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
48705             Bruno Haible  <bruno@clisp.org>
48706
48707         * lib/sys_select.in.h: Include sys/time.h.
48708         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
48709         * modules/sys_select: Depend on sys_time.
48710         * tests/test-sys_select.c: Test that sys/select.h defines struct
48711         timeval fully.
48712
48713 2008-09-29  Bruno Haible  <bruno@clisp.org>
48714
48715         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
48716         * lib/sys_select.in.h: Likewise.
48717
48718 2008-09-29  Bruno Haible  <bruno@clisp.org>
48719
48720         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
48721
48722 2008-09-29  Bruno Haible  <bruno@clisp.org>
48723
48724         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
48725         Set LIBSOCKET instead of augmenting LIBS.
48726         * modules/sockets (Link): New section.
48727         * modules/sockets-tests (test_sockets_LDADD): New variable.
48728         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
48729         * modules/poll-tests (test_poll_LDADD): New variable.
48730         * NEWS: Document the change.
48731
48732 2008-09-29  Bruno Haible  <bruno@clisp.org>
48733
48734         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
48735         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
48736         ARPA_INET_H directly.
48737         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48738
48739 2008-09-28  Bruno Haible  <bruno@clisp.org>
48740
48741         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
48742         from gl_HEADER_SYS_SOCKET.
48743         (gl_HEADER_SYS_SOCKET): Invoke it.
48744         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48745
48746 2008-09-28  Bruno Haible  <bruno@clisp.org>
48747
48748         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
48749         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
48750         Needed on OSF/1 4.0.
48751
48752 2008-09-28  Bruno Haible  <bruno@clisp.org>
48753
48754         Override open more carefully.
48755         * lib/open.c (orig_open): New function.
48756         (rpl_open): Use orig_open instead of open.
48757         * lib/fcntl.in.h: Add special invocation convention.
48758         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
48759         (gl_FUNC_OPEN): Invoke it.
48760
48761         Override freopen more carefully.
48762         * lib/freopen.c (orig_freopen): New function.
48763         (rpl_freopen): Use orig_freopen instead of freopen.
48764         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
48765         (gl_FUNC_FREOPEN): Invoke it.
48766
48767         Override fopen more carefully.
48768         * lib/fopen.c (orig_fopen): New function.
48769         (rpl_fopen): Use orig_fopen instead of fopen.
48770         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
48771         (gl_FUNC_FOPEN): Invoke it.
48772         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
48773
48774 2008-09-28  Bruno Haible  <bruno@clisp.org>
48775
48776         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
48777         SIGPIPE.
48778
48779 2008-09-28  Bruno Haible  <bruno@clisp.org>
48780
48781         * tests/test-sigaction.c (handler, main): Disable the check whether
48782         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
48783         glibc systems with LinuxThreads.
48784
48785 2008-09-28  Bruno Haible  <bruno@clisp.org>
48786
48787         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
48788
48789         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
48790         with AIX xlc.
48791         * lib/fcntl.in.h (open): Likewise.
48792         Reported by Rainer Tammer <tammer@tammer.net>.
48793
48794 2008-09-28  Bruno Haible  <bruno@clisp.org>
48795
48796         * modules/posix_spawnp-tests: New file.
48797         * tests/test-posix_spawn.c: New file.
48798         * tests/test-posix_spawn.in.sh: New file.
48799
48800         New module 'posix_spawnp'.
48801         * modules/posix_spawnp: New file.
48802         * lib/spawnp.c: New file, from GNU libc with modifications.
48803         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
48804
48805         New module 'posix_spawn'.
48806         * modules/posix_spawn: New file.
48807         * lib/spawn.c: New file, from GNU libc with modifications.
48808         * doc/posix-functions/posix_spawn.texi: Mention the new module.
48809
48810         New module 'posix_spawnattr_destroy'.
48811         * modules/posix_spawnattr_destroy: New file.
48812         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
48813         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
48814         module.
48815
48816         New module 'posix_spawnattr_setsigmask'.
48817         * modules/posix_spawnattr_setsigmask: New file.
48818         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
48819         modifications.
48820         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
48821         new module.
48822
48823         New module 'posix_spawnattr_getsigmask'.
48824         * modules/posix_spawnattr_getsigmask: New file.
48825         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
48826         modifications.
48827         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
48828         new module.
48829
48830         New module 'posix_spawnattr_setsigdefault'.
48831         * modules/posix_spawnattr_setsigdefault: New file.
48832         * lib/spawnattr_setdefault.c: New file, from GNU libc with
48833         modifications.
48834         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
48835         new module.
48836
48837         New module 'posix_spawnattr_getsigdefault'.
48838         * modules/posix_spawnattr_getsigdefault: New file.
48839         * lib/spawnattr_getdefault.c: New file, from GNU libc with
48840         modifications.
48841         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
48842         new module.
48843
48844         New module 'posix_spawnattr_setschedpolicy'.
48845         * modules/posix_spawnattr_setschedpolicy: New file.
48846         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
48847         modifications.
48848         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
48849         new module.
48850
48851         New module 'posix_spawnattr_getschedpolicy'.
48852         * modules/posix_spawnattr_getschedpolicy: New file.
48853         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
48854         modifications.
48855         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
48856         new module.
48857
48858         New module 'posix_spawnattr_setschedparam'.
48859         * modules/posix_spawnattr_setschedparam: New file.
48860         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
48861         modifications.
48862         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
48863         new module.
48864
48865         New module 'posix_spawnattr_getschedparam'.
48866         * modules/posix_spawnattr_getschedparam: New file.
48867         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
48868         modifications.
48869         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
48870         new module.
48871
48872         New module 'posix_spawnattr_setpgroup'.
48873         * modules/posix_spawnattr_setpgroup: New file.
48874         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
48875         modifications.
48876         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
48877         module.
48878
48879         New module 'posix_spawnattr_getpgroup'.
48880         * modules/posix_spawnattr_getpgroup: New file.
48881         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
48882         modifications.
48883         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
48884         module.
48885
48886         New module 'posix_spawnattr_setflags'.
48887         * modules/posix_spawnattr_setflags: New file.
48888         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
48889         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
48890         module.
48891
48892         New module 'posix_spawnattr_getflags'.
48893         * modules/posix_spawnattr_getflags: New file.
48894         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
48895         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
48896         module.
48897
48898         New module 'posix_spawnattr_init'.
48899         * modules/posix_spawnattr_init: New file.
48900         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
48901         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
48902         module.
48903
48904         New module 'posix_spawn_file_actions_destroy'.
48905         * modules/posix_spawn_file_actions_destroy: New file.
48906         * lib/spawn_faction_destroy.c: New file, from GNU libc with
48907         modifications.
48908         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
48909         the new module.
48910
48911         New module 'posix_spawn_file_actions_addopen'.
48912         * modules/posix_spawn_file_actions_addopen: New file.
48913         * lib/spawn_faction_addopen.c: New file, from GNU libc with
48914         modifications.
48915         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
48916         the new module.
48917
48918         New module 'posix_spawn_file_actions_adddup2'.
48919         * modules/posix_spawn_file_actions_adddup2: New file.
48920         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
48921         modifications.
48922         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
48923         the new module.
48924
48925         New module 'posix_spawn_file_actions_addclose'.
48926         * modules/posix_spawn_file_actions_addclose: New file.
48927         * lib/spawn_faction_addclose.c: New file, from GNU libc with
48928         modifications.
48929         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
48930         the new module.
48931
48932         New module 'posix_spawn_file_actions_init'.
48933         * modules/posix_spawn_file_actions_init: New file.
48934         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
48935         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
48936         new module.
48937
48938         New module 'posix_spawn-internal'.
48939         * modules/posix_spawn-internal: New file.
48940         * lib/spawn_int.h: New file, from GNU libc with modifications.
48941         * lib/spawni.c: New file, from GNU libc with modifications.
48942         * m4/posix_spawn.m4: New file.
48943
48944         New module 'spawn'.
48945         * modules/spawn: New file.
48946         * lib/spawn.in.h: New file, from GNU libc with modifications.
48947         * m4/spawn_h.m4: New file.
48948         * doc/posix-headers/spawn.texi: Mention the new module.
48949
48950 2008-09-28  Bruno Haible  <bruno@clisp.org>
48951
48952         * modules/sched-tests: New file.
48953         * tests/test-sched.c: New file.
48954
48955         New module 'sched'.
48956         * modules/sched: New file.
48957         * lib/sched.in.h: New file.
48958         * m4/sched_h.m4: New file.
48959         * doc/posix-headers/sched.texi: Mention the new module.
48960
48961 2008-09-27  Eric Blake  <ebb9@byu.net>
48962
48963         Fix previous patch, and tweak references to $0.
48964         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
48965         (func_version, func_gnulib_dir): Don't call this program
48966         gnulib-tool.
48967         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
48968         with using $0 in function.
48969         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
48970         (func_fatal_error): Reuse the name the user invoked us with.
48971
48972 2008-09-27  Bruno Haible  <bruno@clisp.org>
48973
48974         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
48975         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
48976         (gl_ICONV_H): Not here.
48977         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
48978         instead of assigning ICONV_H directly.
48979
48980         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
48981         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
48982         WCHAR_H directly.
48983
48984 2008-09-27  Bruno Haible  <bruno@clisp.org>
48985
48986         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
48987         * modules/arpa_inet (Depends-on): Add link-warning.
48988         (Makefile.am): Insert the definition of GL_LINK-WARNING.
48989         * modules/unistd (Makefile.am): Likewise.
48990
48991 2008-09-26  Bruno Haible  <bruno@clisp.org>
48992
48993         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
48994         variables.
48995         (func_version): Essentially copied from gnulib-tool.
48996         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
48997         func_readlink): Copied from gnulib-tool.
48998
48999 2008-09-26  Bruno Haible  <bruno@clisp.org>
49000
49001         * gnulib-tool (func_version): Change directory to $gnulib_dir before
49002         invoking git-version-gen.
49003
49004 2008-09-26  Bruno Haible  <bruno@clisp.org>
49005
49006         * posix-modules: Update to directory names changed on 2008-01-19.
49007         Remove commas in output before splitting into words. No more need to
49008         avoid 'ftruncate' since 2007-02-19.
49009
49010 2008-09-26  Bruno Haible  <bruno@clisp.org>
49011
49012         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
49013
49014 2008-09-26  Bruno Haible  <bruno@clisp.org>
49015
49016         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
49017         * modules/fwriteerror (Depends-on): Add errno.
49018
49019 2008-09-26  Bruno Haible  <bruno@clisp.org>
49020
49021         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
49022         * tests/test-vc-list-files-cvs.sh: Likewise.
49023
49024 2008-09-26  Bruno Haible  <bruno@clisp.org>
49025
49026         * doc/posix-headers/sys_resource.texi: Reorder items.
49027
49028 2008-09-26  Jim Meyering  <meyering@redhat.com>
49029
49030         fts: tweak inode comparison function
49031         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
49032         inode numbers, as documented.
49033
49034         fts: sort dirent entries on inode number before traversing
49035         This avoids a quadratic, seek-related performance penalty when
49036         operating on a directory containing many entries (measurable at 10k;
49037         3.5 hours at 2 million entries with a cold cache) on certain types
49038         of file systems, including ext3 and ext4, but not tmpfs.
49039         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
49040         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
49041         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
49042         (fs_handles_readdir_ordered_dirents_efficiently): New function.
49043         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
49044         (fts_build): Set the stat.st_ino member from D_INO.
49045         If it is likely to be useful, sort dirent entries on inode number.
49046
49047         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
49048         and the struct statfs.f_type member.
49049         * modules/fts (Depends-on): Add d-ino.
49050
49051 2008-09-26  Bruno Haible  <bruno@clisp.org>
49052
49053         * modules/sigpipe-die (Depends-on): Add sigpipe.
49054
49055         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
49056         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
49057         and GNULIB_STDIO_H_SIGPIPE are set.
49058         * lib/stdio-write.c: New file.
49059         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
49060         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49061         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49062         REPLACE_STDIO_WRITE_FUNCS.
49063         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
49064         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49065         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49066         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
49067         * modules/stdio (Files): Add lib/stdio-write.c.
49068         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
49069         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
49070         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
49071         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
49072         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
49073         REPLACE_FPRINTF_POSIX.
49074         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
49075         REPLACE_PRINTF_POSIX.
49076         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
49077         REPLACE_VFPRINTF_POSIX.
49078         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
49079         REPLACE_VPRINTF_POSIX.
49080         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
49081         SIGPIPE issue.
49082         * doc/posix-functions/fputc.texi: Likewise.
49083         * doc/posix-functions/fputs.texi: Likewise.
49084         * doc/posix-functions/fwrite.texi: Likewise.
49085         * doc/posix-functions/printf.texi: Likewise.
49086         * doc/posix-functions/putc.texi: Likewise.
49087         * doc/posix-functions/putchar.texi: Likewise.
49088         * doc/posix-functions/puts.texi: Likewise.
49089         * doc/posix-functions/vfprintf.texi: Likewise.
49090         * doc/posix-functions/vprintf.texi: Likewise.
49091
49092         * modules/safe-write (Depends-on): Add write.
49093
49094         * modules/sigpipe-tests: New file.
49095         * tests/test-sigpipe.c: New file.
49096         * tests/test-sigpipe.sh: New file.
49097
49098         * modules/write: New file.
49099         * lib/unistd.in.h: Include <sys/types.h>.
49100         (write): New declaration.
49101         * lib/write.c: New file.
49102         * m4/write.m4: New file.
49103         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49104         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
49105         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
49106         GNULIB_WRITE, REPLACE_WRITE.
49107         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
49108         and the SIGPIPE issue.
49109
49110         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
49111         (raise): New declaration.
49112         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
49113         (ext_signal): New function.
49114         (rpl_raise): New function.
49115         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
49116         GNULIB_SIGNAL_H_SIGPIPE.
49117         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
49118         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
49119
49120         * modules/sigpipe: New file.
49121         * m4/sigpipe.m4: New file.
49122
49123 2008-09-25  Derek Price  <derek@ximbiot.com>
49124             Bruno Haible  <bruno@clisp.org>
49125
49126         * gnulib-tool (func_import): Report all license incompatibilities, not
49127         just the first one.
49128
49129 2008-09-25  Bruno Haible  <bruno@clisp.org>
49130
49131         * gnulib-tool (func_import): When computing the edits, consider not
49132         only the Makefile.ams that exist but also those that will be generated.
49133
49134 2008-09-25  Simon Josefsson  <simon@josefsson.org>
49135
49136         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
49137         fixes gnulib-tool --test warning about duplicate dependency.
49138
49139 2008-09-25  Bruno Haible  <bruno@clisp.org>
49140
49141         * gnulib-tool: Don't ask the user to perform edits in the generated
49142         Makefile.ams.
49143         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
49144         apply to the Makefile.am being generated.
49145         (func_emit_tests_Makefile_am): Execute edits that apply to the
49146         Makefile.am being generated.
49147         (func_import): Setup list of Makefile.am edits before emitting the
49148         Makefile.ams, not at the end.
49149         (func_create_testdir): Update.
49150         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49151
49152 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49153
49154         * gnulib-tool (func_import): Store the --tests-base option in the
49155         comment in gnulib-cache.m4.
49156
49157 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
49158
49159         * NEWS: Document increased portability that sys_select now provides.
49160
49161         * lib/sys_select.in.h: Install select wrapper.
49162         * lib/sys_socket.in.h: Use more descriptive name when there is no
49163         select wrapper.
49164         * lib/winsock-select.c: New.
49165         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
49166         Require gl_HEADER_SYS_SOCKET.
49167         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
49168         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
49169         * tests/test-sys_select.c: Add functional tests.
49170
49171 2008-09-24  Eric Blake  <ebb9@byu.net>
49172
49173         open, fopen: close fd leak in last patch
49174         * lib/open.c (rpl_open): Close fd before returning error.
49175         * lib/fopen.c (rpl_fopen): Close fd before returning error.
49176         * doc/posix-functions/open.texi (open): Document that Irix also
49177         has the bug.
49178         * doc/posix-functions/fopen.texi (fopen): Likewise.
49179         Reported by Paolo Bonzini.
49180
49181 2008-09-24  Bruno Haible  <bruno@clisp.org>
49182
49183         Ensure that a filename ending in a slash cannot be used to access a
49184         non-directory.
49185         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
49186         to check whether it's really a directory.
49187         * lib/fopen.c: Include fcntl.h, unistd.h.
49188         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
49189         and fdopen().
49190         * modules/fopen (Depends-on): Add unistd.
49191         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
49192         * tests/test-fopen.c (main): Likewise.
49193         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
49194         * doc/posix-functions/fopen.texi: Likewise.
49195         Reported by Eric Blake.
49196
49197 2008-09-23  Eric Blake  <ebb9@byu.net>
49198
49199         c-stack: avoid compiler optimizations when provoking overflow
49200         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
49201         recursion harder to optimize, to ensure a stack overflow occurs.
49202         * tests/test-c-stack.c (recurse): Likewise.
49203         Borrowed from libsigsegv.
49204
49205         c-stack: work around Irix sigaltstack bug
49206         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
49207         whether sigaltstack uses wrong end of stack_t (copied in part from
49208         libsigsegv).
49209         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
49210         Irix bug, without requiring an over-allocation.
49211         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
49212         bug.
49213
49214         fopen: document mingw bug on directories
49215         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
49216         not allowing a stream visiting a directory, even though reading
49217         from such a stream is not portable.
49218
49219 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49220
49221         * lib/poll.c: Rewrite.
49222         * modules/poll: Depend on alloca.
49223
49224 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49225
49226         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
49227         instead define prototypes for a full set of wrappers.  Ensure
49228         that Cygwin does not use the compatibility code, which is only
49229         for MinGW.
49230         * lib/winsock.c: New.
49231         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
49232         * modules/sys_socket: Add lib/winsock.c.
49233
49234         * modules/poll-tests: Add errno and perror.
49235         * tests/test-poll.c: Use ioctl, not ioctlsocket.
49236
49237 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
49238
49239         * tests/test-poll.c: Downgrade minimum needed Winsock version.
49240
49241 2008-09-23  Bruno Haible  <bruno@clisp.org>
49242
49243         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
49244         * doc/glibc-functions/*: Likewise.
49245
49246 2008-09-23  Simon Josefsson  <simon@josefsson.org>
49247
49248         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
49249         success.
49250
49251 2008-09-22  Eric Blake  <ebb9@byu.net>
49252             Bruno Haible  <bruno@clisp.org>
49253
49254         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
49255         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
49256         supply %A but mishandle pseudo-NaN.
49257         Reported by Simon Josefsson.
49258
49259 2008-09-21  Bruno Haible  <bruno@clisp.org>
49260
49261         * tests/test-lock.c (main): Tweak skip message.
49262         * tests/test-tls.c (main): Likewise.
49263
49264 2008-09-21  Bruno Haible  <bruno@clisp.org>
49265
49266         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
49267         whether 'struct sigaction' has sa_sigaction here...
49268         (gl_PREREQ_SIG_HANDLER_H): ... not here.
49269         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
49270
49271 2008-09-21  Bruno Haible  <bruno@clisp.org>
49272
49273         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
49274         section.
49275         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
49276         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
49277         the new section.
49278         (Support for obsolete systems lacking POSIX:2001): New section.
49279         (String handling <string.h>): Move strdup to the new section.
49280         Suggested by Simon Josefsson and Paolo Bonzini.
49281
49282 2008-09-21  Bruno Haible  <bruno@clisp.org>
49283
49284         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
49285         exponents in %e and %g results on 'long double'. Needed for mingw's
49286         improved *printf functions.
49287         * tests/test-vasprintf-posix.c (test_function): Likewise.
49288         * tests/test-snprintf-posix.h (test_function): Likewise.
49289         * tests/test-sprintf-posix.h (test_function): Likewise.
49290         Reported by Eric Blake.
49291
49292 2008-09-21  Bruno Haible  <bruno@clisp.org>
49293
49294         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
49295         * tests/test-sprintf-posix.h (test_function): Likewise.
49296
49297 2008-09-21  Bruno Haible  <bruno@clisp.org>
49298
49299         * modules/getpass (Depends-on): Add strdup-posix.
49300
49301         New module 'strdup-posix'.
49302         * modules/strdup-posix: New file.
49303         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
49304         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
49305         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49306         REPLACE_STRDUP.
49307         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
49308         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
49309         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49310         strdup-posix.
49311
49312         * modules/strdup (Depends-on): Remove malloc-posix.
49313
49314 2008-09-20  Bruno Haible  <bruno@clisp.org>
49315
49316         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
49317         Wildenhues.
49318
49319 2008-09-20  Bruno Haible  <bruno@clisp.org>
49320
49321         Ensure that wint_t gets defined on IRIX 5.3.
49322         * lib/wchar.in.h (wint_t): Define if not defined by the system.
49323         * lib/wctype.in.h (wint_t): Likewise.
49324         (__wctype_wint_t): Remove type.
49325         (isw*): Use wint_t instead of __wctype_wint_t.
49326         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
49327         * modules/wchar (Files): Add m4/wint_t.m4.
49328         (Makefile.am): Substitute HAVE_WINT_T.
49329         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
49330         * tests/test-wctype.c: Check that wint_t is defined.
49331         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
49332         * doc/posix-headers/wctype.texi: Likewise.
49333         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49334
49335 2008-09-18  Bruno Haible  <bruno@clisp.org>
49336
49337         * gnulib-tool (func_exit): Update comment.
49338
49339 2008-09-18  Simon Josefsson  <simon@josefsson.org>
49340
49341         * modules/getaddrinfo (Depends-on): Remove strdup, this module
49342         assumes strdup exists and does not depend on strdup to return
49343         ENOMEM on out of memory conditions.
49344
49345 2008-09-18  Bruno Haible  <bruno@clisp.org>
49346
49347         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
49348         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
49349         digits for the exponent.
49350
49351 2008-09-18  Jim Meyering  <meyering@redhat.com>
49352             Bruno Haible  <bruno@clisp.org>
49353
49354         * lib/vasnprintf.c (decimal_point_char): Define also if
49355         NEED_PRINTF_INFINITE_LONG_DOUBLE.
49356
49357 2008-09-16  Bruno Haible  <bruno@clisp.org>
49358         and Eric Blake  <ebb9@byu.net>
49359
49360         vasnprintf: support Irix 5.3
49361         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
49362         that mishandle long double infinity.
49363         Reported by Tom G. Christensen.
49364
49365 2008-09-16  Bruno Haible  <bruno@clisp.org>
49366
49367         * doc/glibc-functions/scandir.texi: Mention the function is missing on
49368         Solaris 9.
49369         * doc/glibc-functions/alphasort.texi: Likewise.
49370         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
49371
49372 2008-09-16  Jim Meyering  <meyering@redhat.com>
49373
49374         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
49375         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
49376         a umask modification leak out of a subshell.  Otherwise, the
49377         opensolaris /bin/sh would be accepted and thus cause unwarranted
49378         failures in the coreutils test suite.
49379
49380 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
49381
49382         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
49383         to succeed.
49384
49385 2008-09-16  Jim Meyering  <meyering@redhat.com>
49386
49387         avoid spurious test failure when library is built without ACL support
49388         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
49389         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
49390         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
49391         * tests/test-copy-acl.sh: Likewise.
49392
49393 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49394
49395         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
49396         based on character occurrence counts.
49397
49398 2008-09-15  Eric Blake  <ebb9@byu.net>
49399
49400         tests: avoid some compiler warnings
49401         * tests/test-memchr.c (main): Pass NULL indirectly.
49402         * tests/test-closein.c (main): Avoid unused variable.
49403
49404 2008-09-15  Bruno Haible  <bruno@clisp.org>
49405
49406         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
49407         are missing on OpenBSD 4.0 individually.
49408         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49409
49410 2008-09-15  Bruno Haible  <bruno@clisp.org>
49411
49412         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
49413         * doc/posix-functions/strerror.texi: Mention also Cygwin.
49414         * doc/posix-functions/perror.texi: Likewise.
49415         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
49416         is missing.
49417         Reported by Eric Blake.
49418
49419         * lib/errno.in.h: Use replacement values >= 2000.
49420         Reported by Eric Blake.
49421
49422 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49423
49424         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
49425         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
49426         limit.
49427         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
49428         compareseq was aborted.
49429
49430 2008-09-14  Bruno Haible  <bruno@clisp.org>
49431
49432         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
49433         yvec_edit_count.
49434         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
49435         (fstrcmp_bounded): Simplify result computation accordingly.
49436
49437 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49438
49439         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
49440         (fstrcmp): Define in terms of fstrcmp_bounded.
49441         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
49442         lower_bound argument.
49443         Return quickly if the result is certainly < lower_bound.
49444         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
49445
49446 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49447
49448         * lib/diffseq.h (EARLY_ABORT): New macro.
49449         (compareseq): Change return type to bool. Return true when EARLY_ABORT
49450         evaluates to true.
49451
49452 2008-09-14  Bruno Haible  <bruno@clisp.org>
49453
49454         * modules/perror-tests: New file.
49455         * tests/test-perror.sh: New file.
49456         * tests/test-perror.c: New file.
49457
49458         New module 'perror'.
49459         * lib/stdio.in.h (perror): New declaration.
49460         * lib/perror.c: New file.
49461         * m4/perror.m4: New file.
49462         * modules/perror: New file.
49463         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
49464         * doc/posix-functions/perror.texi: Mention the perror module.
49465         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
49466         REPLACE_PERROR.
49467         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
49468         REPLACE_PERROR.
49469
49470 2008-09-14  Bruno Haible  <bruno@clisp.org>
49471
49472         * modules/stdio (Makefile.am): Reorder to match the order in
49473         lib/stdio.in.h.
49474         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49475
49476 2008-09-13  Bruno Haible  <bruno@clisp.org>
49477
49478         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
49479
49480 2008-09-13  Bruno Haible  <bruno@clisp.org>
49481
49482         Extend strerror to cover the added errno values.
49483         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
49484         (rpl_strerror): Provide error messages for the added errno values and
49485         for the WSA* values.
49486         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
49487         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
49488         strerror.
49489         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
49490         * modules/strerror (Depends-on): Add errno.
49491         * doc/posix-functions/strerror.texi: Document the change.
49492         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
49493         and EOVERFLOW.
49494
49495 2008-09-13  Bruno Haible  <bruno@clisp.org>
49496
49497         * modules/EOVERFLOW: Remove file.
49498         * m4/eoverflow.m4: Remove file.
49499         * modules/EOVERFLOW-tests: Remove file.
49500         * tests/test-EOVERFLOW.c: Remove file.
49501         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
49502         * modules/ftell (Depends-on): Likewise.
49503         * modules/getdelim (Depends-on): Likewise.
49504         * modules/getugroups (Depends-on): Likewise.
49505         * modules/poll (Depends-on): Likewise.
49506         * modules/snprintf (Depends-on): Likewise.
49507         * modules/sprintf-posix (Depends-on): Likewise.
49508         * modules/vasnprintf (Depends-on): Likewise.
49509         * modules/vasprintf (Depends-on): Likewise.
49510         * modules/vfprintf-posix (Depends-on): Likewise.
49511         * modules/vsnprintf (Depends-on): Likewise.
49512         * modules/vsprintf-posix (Depends-on): Likewise.
49513         * modules/xvasprintf (Depends-on): Likewise.
49514         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49515         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
49516         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
49517         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
49518         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49519         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
49520         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
49521         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
49522         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49523         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
49524         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
49525         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
49526         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49527         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
49528         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
49529         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
49530         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49531         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
49532         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
49533         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
49534         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49535         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
49536         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
49537         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
49538         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
49539         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49540         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
49541         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
49542         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
49543         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
49544         * MODULES.html.sh: Remove EOVERFLOW.
49545         * NEWS: Mention the change.
49546
49547 2008-09-13  Bruno Haible  <bruno@clisp.org>
49548
49549         * modules/errno-tests: New file.
49550         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
49551
49552         * lib/errno.in.h: New file.
49553         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
49554         * modules/errno: New file.
49555         * doc/posix-headers/errno.texi: Update documentation.
49556         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
49557
49558 2008-09-13  Bruno Haible  <bruno@clisp.org>
49559
49560         * tests/test-poll.c: Use #if for native Windows, rather than testing
49561         __MSVCRT__.
49562
49563 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49564             Bruno Haible  <bruno@clisp.org>
49565
49566         * lib/glob.c: Don't include <pwd.h> on native Windows.
49567         (WINDOWS32): New macro.
49568         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
49569
49570 2008-09-13  Bruno Haible  <bruno@clisp.org>
49571
49572         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
49573         (ETIMEDOUT): Remove macro.
49574         (glthread_cond_timedwait_multithreaded): New declaration.
49575         (glthread_cond_timedwait): Use it.
49576         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
49577         (glthread_cond_timedwait_multithreaded): New function.
49578
49579 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49580
49581         * modules/poll-tests: Do not check for io.h.
49582         * tests/test-poll.c: Check for __MSVCRT__ instead.
49583
49584 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49585
49586         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
49587         * modules/poll-tests: Add inet_pton, stdbool, sockets.
49588         * tests/test-poll.c: Use them.  Use _pipe on Windows.
49589
49590 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49591
49592         * modules/poll-tests: New.
49593         * tests/test-poll.c: New.
49594
49595 2008-09-12  Eric Blake  <ebb9@byu.net>
49596
49597         frexp: test for NetBSD failure on -0.0
49598         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
49599         not all, bugs from NetBSD 3.0 have been fixed.
49600         * doc/posix-functions/frexp.texi (frexp): Document bug.
49601         Reported by Thomas Klausner.
49602
49603         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
49604         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
49605         literal -0.0.
49606         Reported by Jonathan C. Patschke <jp@centtech.com>.
49607
49608 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49609
49610         * lib/glthread/cond.h: Use dummy implementation also if
49611         USE_WIN32_THREADS.
49612
49613 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49614
49615         * modules/fnmatch-posix (License): Change to LGPLv2+.
49616         * modules/fnmatch-gnu (License): Likewise.
49617
49618 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49619
49620         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
49621
49622 2008-09-11  Jim Meyering  <meyering@redhat.com>
49623
49624         * users.txt: Add gtk-vnc.
49625
49626 2008-09-08  Simon Josefsson  <simon@josefsson.org>
49627
49628         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
49629         rotate amounts.
49630
49631         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
49632         required for 16-bit and 8-bit rotates.
49633         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
49634         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
49635         UINT8_MAX instead of hard-coded constants.
49636         Suggested by Paul Eggert.
49637
49638 2008-09-07  Bruno Haible  <bruno@clisp.org>
49639
49640         * tests/test-striconveh.c (main): Check behaviour when converting from
49641         UTF-7.
49642
49643         Make striconveh work better with stateful encodings.
49644         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
49645         that iconv does not increment the inptr when returning -1/EINVAL.
49646
49647 2008-09-07  Bruno Haible  <bruno@clisp.org>
49648
49649         * build-aux/config.rpath: Update according to libtool-2.2.6.
49650         * build-aux/config.libpath: Likewise.
49651
49652 2008-09-06  Bruno Haible  <bruno@clisp.org>
49653
49654         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
49655         * lib/freadptr.c (freadptr): Likewise.
49656         * lib/freadseek.c (freadptrinc): Likewise.
49657         Reported by Simon Josefsson.
49658
49659 2008-09-06  Bruno Haible  <bruno@clisp.org>
49660
49661         * modules/freadptr (License): Change to LGPLv2+.
49662         * modules/freadseek (License): Likewise.
49663         Suggested by Eric Blake.
49664
49665         * modules/memchr2 (License): Change to LGPLv2+.
49666         Approved by Eric Blake.
49667
49668 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49669             Bruno Haible  <bruno@clisp.org>
49670
49671         Make gnulib-tool work with native 'sed' on AIX.
49672         * gnulib-tool (sed_noop): New variable.
49673         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
49674         func_add_or_update, func_create_testdir): Use it to initialize sed
49675         script variables.
49676         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49677
49678 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
49679             Bruno Haible  <bruno@clisp.org>
49680
49681         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
49682         also works after #include directives.
49683
49684 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
49685
49686         getdate.y: reject an out-of-range timezone value
49687         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
49688         the range [-24...+24].  When specified with only one or two digits,
49689         * tests/test-getdate.c: Tests for the fix.
49690         * doc/getdate.texi: Document this change.
49691
49692 2008-09-03  Bruno Haible  <bruno@clisp.org>
49693
49694         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
49695
49696 2008-09-02  Simon Josefsson  <simon@josefsson.org>
49697
49698         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
49699         <bruce.korb@gmail.com> with ideas from Ben Pfaff
49700         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
49701         Blake <ebb9@byu.net>.
49702
49703         * tests/test-bitrotate.c: Add more test vectors.
49704
49705 2008-09-02  Eric Blake  <ebb9@byu.net>
49706
49707         vasnprintf-posix: handle large precision via %.*d
49708         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
49709         when handling it ourselves.
49710         * tests/test-vasnprintf-posix.c (test_function): Add test.
49711         * tests/test-snprintf-posix.h (test_function): Likewise.
49712         * tests/test-sprintf-posix.h (test_function): Likewise.
49713         * tests/test-vasprintf-posix.c (test_function): Likewise.
49714         Reported by Alain Guibert.
49715
49716 2008-09-01  Eric Blake  <ebb9@byu.net>
49717
49718         c-stack: make configure-time check more robust
49719         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
49720         successful sigaction call.
49721         Reported by Tom G. Christensen.
49722
49723 2008-09-01  Bruno Haible  <bruno@clisp.org>
49724
49725         New module 'findprog-lgpl'.
49726         * modules/findprog-lgpl: New file.
49727         * lib/findprog-lgpl.c: New file.
49728         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
49729         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
49730         to decide whether to use strdup or xstrdup, concatenated_filename or
49731         xconcatenated_filename.
49732
49733 2008-09-01  Bruno Haible  <bruno@clisp.org>
49734
49735         Split module 'concat-filename' into 'concat-filename' (LGPL) and
49736         'xconcat-filename' (GPL).
49737         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
49738         (License): Change to LGPLv2+.
49739         * modules/xconcat-filename: New file.
49740         * lib/concat-filename.h (concatenated_filename): Change specification.
49741         (xconcatenated_filename): New declaration.
49742         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
49743         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
49744         memory situations.
49745         * lib/xconcat-filename.c: New file.
49746         * NEWS: Mention the change.
49747         * lib/findprog.c: Include concat-filename.h, not filename.h.
49748         (find_in_path): Use xconcatenated_filename instead of
49749         concatenated_filename.
49750         * lib/javacomp.c: Include concat-filename.h, not filename.h.
49751         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
49752         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
49753         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
49754         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
49755         instead of concatenated_filename.
49756         * lib/javaexec.c: Include concat-filename.h, not filename.h.
49757         (execute_java_class): Use xconcatenated_filename instead of
49758         concatenated_filename.
49759         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
49760         * modules/javacomp (Depends-on): Likewise.
49761         * modules/javaexec (Depends-on): Likewise.
49762
49763 2008-09-01  Bruno Haible  <bruno@clisp.org>
49764
49765         Split module 'filename' into 'filename' and 'concat-filename'.
49766         * modules/filename: Keep only lib/filename.h.
49767         (License): Change to LGPLv2+.
49768         * modules/concat-filename: New file, extracted from modules/filename.
49769         * lib/filename.h (concatenated_filename): Remove declaration.
49770         * lib/concat-filename.h: New file, extracted from lib/filename.h.
49771         * lib/concat-filename.c: Include concat-filename.h.
49772         * NEWS: Mention the change.
49773
49774 2008-09-01  Simon Josefsson  <simon@josefsson.org>
49775
49776         * lib/bitrotate.h (rotl8, rotr8): Add.
49777
49778         * modules/bitrotate (configure.ac): Need
49779         AC_REQUIRE([AC_C_INLINE]).
49780         (Description): Mention stdint.h.  Reported by Bruno Haible
49781         <bruno@clisp.org>.
49782
49783         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
49784         Paolo Bonzini <bonzini@gnu.org>.
49785
49786 2008-08-31  Bruno Haible  <bruno@clisp.org>
49787
49788         Assume Solaris specific bi-arch conventions on Solaris systems.
49789         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
49790         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
49791         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
49792         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
49793         like acl_libdirstem.
49794         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
49795         acl_libdirstem.
49796         * NEWS: Mention the change.
49797         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
49798
49799 2008-08-31  Jim Meyering  <meyering@redhat.com>
49800
49801         * lib/strftime.h: Add comments describing the two added arguments.
49802
49803         remove duplicate #include directives
49804         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
49805         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
49806
49807 2008-08-31  Bruno Haible  <bruno@clisp.org>
49808
49809         New module 'sigpipe-die'.
49810         * modules/sigpipe-die: New file.
49811         * lib/sigpipe-die.h: New file.
49812         * lib/sigpipe-die.c: New file.
49813         * MODULES.html.sh (Signal handling): Add sigpipe-die.
49814
49815 2008-08-31  Bruno Haible  <bruno@clisp.org>
49816
49817         Don't override previously installed signal handlers.
49818         * lib/fatal-signal.c (saved_sigactions): New variable.
49819         (uninstall_handlers): Reset the signal to the saved handler, not
49820         to SIG_DFL (except when ignored).
49821         (install_handlers): Save the previous handlers.
49822
49823 2008-08-30  Bruno Haible  <bruno@clisp.org>
49824
49825         * gnulib-tool (func_reset_sigpipe): New function.
49826         (func_get_automake_snippet, func_modules_transitive_closure,
49827         func_import): Invoke it before a join command that reads from stdin,
49828         to avoid "echo: write error: Broken pipe" error messages on stderr.
49829         Reported by Sam Steingold <sds@gnu.org>.
49830
49831 2008-08-30  Bruno Haible  <bruno@clisp.org>
49832
49833         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
49834         Code copied from m4/open.m4.
49835         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
49836         access and the filename ends in a slash. Code copied from lib/open.c.
49837         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
49838         * tests/test-fopen.c (main): Check against bug with trailing slash.
49839
49840 2008-08-29  Bruno Haible  <bruno@clisp.org>
49841
49842         Avoid some "gcc -pedantic" warnings.
49843         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
49844         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
49845         * lib/dirent.in.h: Likewise.
49846         * lib/fcntl.in.h: Likewise.
49847         * lib/float.in.h: Likewise.
49848         * lib/iconv.in.h: Likewise.
49849         * lib/inttypes.in.h: Likewise.
49850         * lib/locale.in.h: Likewise.
49851         * lib/math.in.h: Likewise.
49852         * lib/netinet_in.in.h: Likewise.
49853         * lib/search.in.h: Likewise.
49854         * lib/signal.in.h: Likewise.
49855         * lib/stdarg.in.h: Likewise.
49856         * lib/stdint.in.h: Likewise.
49857         * lib/stdio.in.h: Likewise.
49858         * lib/stdlib.in.h: Likewise.
49859         * lib/string.in.h: Likewise.
49860         * lib/strings.in.h: Likewise.
49861         * lib/sys_select.in.h: Likewise.
49862         * lib/sys_socket.in.h: Likewise.
49863         * lib/sys_stat.in.h: Likewise.
49864         * lib/sys_time.in.h: Likewise.
49865         * lib/sysexits.in.h: Likewise.
49866         * lib/time.in.h: Likewise.
49867         * lib/unistd.in.h: Likewise.
49868         * lib/wchar.in.h: Likewise.
49869         * lib/wctype.in.h: Likewise.
49870         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
49871         * modules/fchdir (Makefile.am): Likewise.
49872         * modules/fcntl (Makefile.am): Likewise.
49873         * modules/float (Makefile.am): Likewise.
49874         * modules/iconv_open (Makefile.am): Likewise.
49875         * modules/inttypes (Makefile.am): Likewise.
49876         * modules/locale (Makefile.am): Likewise.
49877         * modules/math (Makefile.am): Likewise.
49878         * modules/netinet_in (Makefile.am): Likewise.
49879         * modules/search (Makefile.am): Likewise.
49880         * modules/signal (Makefile.am): Likewise.
49881         * modules/stdarg (Makefile.am): Likewise.
49882         * modules/stdint (Makefile.am): Likewise.
49883         * modules/stdio (Makefile.am): Likewise.
49884         * modules/stdlib (Makefile.am): Likewise.
49885         * modules/string (Makefile.am): Likewise.
49886         * modules/strings (Makefile.am): Likewise.
49887         * modules/sys_select (Makefile.am): Likewise.
49888         * modules/sys_socket (Makefile.am): Likewise.
49889         * modules/sys_stat (Makefile.am): Likewise.
49890         * modules/sys_time (Makefile.am): Likewise.
49891         * modules/sysexits (Makefile.am): Likewise.
49892         * modules/time (Makefile.am): Likewise.
49893         * modules/unistd (Makefile.am): Likewise.
49894         * modules/wchar (Makefile.am): Likewise.
49895         * modules/wctype (Makefile.am): Likewise.
49896         Reported by Reuben Thomas <rrt@sc3d.org>.
49897
49898 2008-08-29  Bruno Haible  <bruno@clisp.org>
49899
49900         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
49901         any more.
49902
49903 2008-08-29  Simon Josefsson  <simon@josefsson.org>
49904
49905         * MODULES.html.sh (Misc): Add bitrotate.
49906
49907         * modules/bitrotate: New file.
49908
49909         * lib/bitrotate.h: New file.
49910
49911         * modules/bitrotate-tests: New file.
49912
49913         * tests/test-bitrotate.c: New file.
49914
49915         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
49916         on the bitrotate module.
49917
49918         * lib/arctwo.c: Use new bitrotate module.
49919
49920 2008-08-29  Jim Meyering  <meyering@redhat.com>
49921
49922         bootstrap: merge changes from coreutils
49923         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
49924         of copied files.  Remove a kludge, now that this is fixed.
49925         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
49926         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
49927         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
49928
49929 2008-08-29  Bruno Haible  <bruno@clisp.org>
49930
49931         * MODULES.html.sh: Remove --cvs-urls option.
49932
49933 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
49934
49935         maint.mk: adjust to file name change
49936         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
49937
49938 2008-08-28  Jim Meyering  <meyering@redhat.com>
49939
49940         * modules/getndelim2 (License): Relicense to LGPLv2+.
49941         Approved by Richard Stallman for the version of 1995, and by
49942         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
49943
49944 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
49945
49946         * lib/getdelim.c (flockfile, funlockfile): Make all of them
49947         dummy if one is not available.  Do not touch them if
49948         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
49949         (getc_maybe_unlocked): New.
49950         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
49951
49952 2008-08-26  Eric Blake  <ebb9@byu.net>
49953
49954         doc/INSTALL: resync from autoconf
49955         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
49956         (INSTALL_PRELUDE): Delete; this is done more efficiently by
49957         moving...
49958         * install.texi [!autoconf]: ...here.  Resync from autoconf.
49959         * INSTALL: Regenerate.
49960         * INSTALL.ISO: New file.
49961         * INSTALL.UTF-8: Likewise.
49962
49963 2008-08-26  Jim Meyering  <meyering@redhat.com>
49964
49965         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
49966         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
49967         these definitions conditional, so that they may be overridden, too.
49968
49969 2008-08-26  Bruno Haible  <bruno@clisp.org>
49970
49971         Generate INSTALL file variants with prettier quotes.
49972         * doc/Makefile (INSTALL_PRELUDE): New macro.
49973         (INSTALL): Use it.
49974         (INSTALL.ISO, INSTALL.UTF-8): New rules.
49975
49976 2008-08-26  Bruno Haible  <bruno@clisp.org>
49977
49978         Run makeinfo in an English locale.
49979         * doc/Makefile (MAKEINFO): New variable.
49980
49981 2008-08-26  Bruno Haible  <bruno@clisp.org>
49982
49983         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
49984         Suggested by Eric Blake.
49985
49986 2008-08-25  Bruno Haible  <bruno@clisp.org>
49987
49988         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
49989
49990 2008-08-25  Eric Blake  <ebb9@byu.net>
49991
49992         c-stack: test that stack overflow can be caught
49993         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
49994         that platform allows handling stack overflow; at least OS/2 EMX
49995         has sigaltstack, but crashes before transferring control to
49996         handler on stack overflow.
49997         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
49998         check for HAVE_STACK_OVERFLOW_HANDLING.
49999         Reported by Elbert Pol.
50000
50001 2008-08-25  Bruno Haible  <bruno@clisp.org>
50002
50003         * doc/posix-functions/strftime.texi: Fix description of strftime
50004         module.
50005
50006 2008-08-24  Bruno Haible  <bruno@clisp.org>
50007
50008         * tests/uniwidth/test-uc_width2.c: New file.
50009         * tests/uniwidth/test-uc_width2.sh: New file.
50010         * modules/uniwidth/width-tests (Files): Add the new files.
50011         (TESTS): Add uniwidth/test-uc_width2.sh.
50012         (TESTS_ENVIRONMENT): New variable.
50013         (check_PROGRAMS): Add test-uc_width2.
50014         (test_uc_width2_SOURCES): New variable.
50015
50016         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
50017         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
50018         not 0x00AB.
50019         Reported by Alexander V. Lukyanov <lav@netis.ru>.
50020
50021 2008-08-22  Eric Blake  <ebb9@byu.net>
50022
50023         test-lock, test-tls: mention why a test is skipped
50024         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
50025         skipped.
50026         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
50027
50028         count-one-bits: relax license
50029         * modules/count-one-bits (License): Relicense to LGPLv2+.
50030         Suggested by Ludovic Courtès, approved by Ben Pfaff.
50031
50032 2008-08-22  Andreas Schwab  <schwab@suse.de>
50033
50034         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
50035         Remove spurious space in assignment.
50036
50037 2008-08-21  Simon Josefsson  <simon@josefsson.org>
50038
50039         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
50040         Paul Eggert <eggert@CS.UCLA.EDU>.
50041
50042 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
50043
50044         * modules/gettext: Add m4/threadlib.m4.
50045
50046 2008-08-19  Eric Blake  <ebb9@byu.net>
50047
50048         test-c-stack: fix compilation failure on FreeBSD 5.0
50049         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
50050         headers before <sys/resource.h>.
50051         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
50052         the bug.
50053         Reported by Nelson H. F. Beebe.
50054
50055         strverscmp: migrate from "strverscmp.h" to <string.h>
50056         * modules/string (Makefile.am): Add new hooks.
50057         * modules/strverscmp (Files): Remove strverscmp.h.
50058         (Depends-on): Add string.
50059         (configure.ac): Add indicator.
50060         (Include): Mention new header.
50061         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
50062         defaults.
50063         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
50064         results.
50065         * lib/strverscmp.h: Delete.
50066         * lib/string.in.h (strverscmp): Provide declaration, when needed.
50067         * tests/test-strverscmp.c (includes): Adjust client.
50068         * lib/check-version.c (includes): Likewise.
50069         * NEWS: Document the change.
50070
50071         strverscmp: add unit test
50072         * modules/strverscmp-tests: New file.
50073         * tests/test-strverscmp.c: Likewise.
50074
50075 2008-08-19  Simon Josefsson  <simon@josefsson.org>
50076
50077         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
50078         regarding Windows crypto stuff, from Mono.
50079
50080 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
50081
50082         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
50083         if present, for intel RND.  Return error on failures.
50084
50085 2008-08-18  Ben Pfaff  <blp@gnu.org>
50086
50087         gitlog-to-changelog: give better diagnostic for failed pipe-open
50088         * build-aux/gitlog-to-changelog: Improve error message: suggest
50089         that the version of Git may be too old.
50090
50091 2008-08-18  Simon Josefsson  <simon@josefsson.org>
50092
50093         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
50094         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
50095
50096 2008-08-18  Bruno Haible  <bruno@clisp.org>
50097
50098         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
50099         pthread_in_use().
50100
50101 2008-08-18  Bruno Haible  <bruno@clisp.org>
50102
50103         * lib/glthread/threadlib.c: Include <pthread.h>.
50104
50105 2008-08-18  Bruno Haible  <bruno@clisp.org>
50106
50107         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
50108         glthread_recursive_lock_* macros.
50109         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
50110         Fix syntax error.
50111
50112 2008-08-18  Bruno Haible  <bruno@clisp.org>
50113
50114         * lib/glthread/thread.c: Avoid forcing a context switch right after
50115         thread creation.
50116
50117 2008-08-17  Bruno Haible  <bruno@clisp.org>
50118
50119         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
50120         * lib/glthread/thread.h: Provide Win32 specific implementation.
50121         * modules/thread (Files): Add lib/glthread/thread.c.
50122         (Depends-on): Add lock.
50123         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
50124
50125 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50126
50127         New module 'yield'.
50128         * modules/yield: New file.
50129         * lib/glthread/yield.h: New file.
50130         * m4/yield.m4: New file.
50131         * MODULES.html.sh (Multithreading): Add yield.
50132
50133 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50134
50135         New module 'thread'.
50136         * modules/thread: New file.
50137         * lib/glthread/thread.h: New file.
50138         * m4/thread.m4: New file.
50139         * MODULES.html.sh (Multithreading): Add thread.
50140
50141 2008-08-17  Bruno Haible  <bruno@clisp.org>
50142
50143         * lib/glthread/lock.h: Include <stdlib.h> always.
50144         * lib/glthread/tls.h: Likewise.
50145         * lib/glthread/cond.h: Likewise.
50146
50147 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50148
50149         New module 'cond'.
50150         * modules/cond: New file.
50151         * lib/glthread/cond.h: New file.
50152         * lib/glthread/cond.c: New file.
50153         * m4/cond.m4: New file.
50154         * MODULES.html.sh (Multithreading): Add cond.
50155
50156 2008-08-16  Eric Blake  <ebb9@byu.net>
50157
50158         c-stack: fix regression on Irix 5.3 from 2008-06-21
50159         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
50160         sa_sigaction...
50161         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
50162         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
50163         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
50164         * modules/signal (Makefile.am): Use the value.
50165         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
50166         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
50167         * doc/posix-headers/signal.texi (signal.h): Document this
50168         portability issue.
50169         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
50170         Reported by Tom G. Christensen.
50171
50172 2008-08-17  Bruno Haible  <bruno@clisp.org>
50173
50174         New module 'threadlib'.
50175         * modules/threadlib: New file.
50176         * lib/glthread/threadlib.c: New file, extracted from
50177         lib/glthread/lock.c.
50178         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
50179         functions.
50180         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
50181         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
50182         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
50183         macros.
50184         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
50185         (gl_DISABLE_THREADS): Remove macro.
50186         * modules/lock (Files): Remove build-aux/config.rpath.
50187         (Depends-on): Remove havelib. Add threadlib.
50188         (configure.ac-early): Remove section.
50189         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
50190         * modules/tls (Depends-on): Remove lock. Add threadlib.
50191         (Link): New section, copied from threadlib.
50192         * MODULES.html.sh (Multithreading): Add threadlib.
50193
50194 2008-08-14  Bruno Haible  <bruno@clisp.org>
50195
50196         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
50197         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
50198         glthread_rwlock_unlock, glthread_rwlock_destroy,
50199         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
50200         glthread_recursive_lock_destroy): Define as macros always.
50201         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
50202         glthread_lock_lock.
50203         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
50204         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
50205         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
50206         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
50207         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
50208         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
50209         (glthread_recursive_lock_lock_func): Renamed from
50210         glthread_recursive_lock_lock.
50211         (glthread_recursive_lock_unlock_func): Renamed from
50212         glthread_recursive_lock_unlock.
50213         (glthread_recursive_lock_destroy_func): Renamed from
50214         glthread_recursive_lock_destroy.
50215
50216 2008-08-14  Bruno Haible  <bruno@clisp.org>
50217
50218         * lib/glthread/lock.h: Renamed from lib/lock.h.
50219         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
50220         * lib/glthread/tls.h: Renamed from lib/tls.h.
50221         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
50222         * lib/fstrcmp.c: Update includes.
50223         * lib/strsignal.c: Update includes.
50224         * modules/lock (Files, Makefile.am): Update.
50225         (Include): Change to "glthread/lock.h".
50226         * modules/tls (Files, Makefile.am): Update.
50227         (Include): Change to "glthread/tls.h".
50228         * tests/test-lock.c: Update includes.
50229         * tests/test-tls.c: Update includes.
50230         * NEWS: Mention the renamed header files.
50231
50232 2008-08-11  Jim Meyering  <meyering@redhat.com>
50233
50234         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
50235
50236 2008-08-11  Eric Blake  <ebb9@byu.net>
50237
50238         test-c-stack: avoid C99-ism
50239         * tests/test-c-stack.c (main): Fix whitespace, move declaration
50240         before statement.
50241         Reported by Alain Guibert.
50242
50243 2008-08-10  Jim Meyering  <meyering@redhat.com>
50244
50245         ensure that return value of uinttostr et al are not ignored
50246         * lib/inttostr.h (__GNUC_PREREQ): Define.
50247         (__attribute_warn_unused_result__): Define.
50248         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
50249
50250 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
50251
50252         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
50253         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
50254
50255 2008-08-07  Jim Meyering  <meyering@redhat.com>
50256
50257         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
50258
50259         * modules/mkstemp (License): Relicense under LGPLv2+.
50260         * modules/tempname (License): Likewise.
50261
50262 2008-08-06  Bruno Haible  <bruno@clisp.org>
50263
50264         * lib/poll.c (poll): Further micro-optimization.
50265
50266 2008-08-06  Jim Meyering  <meyering@redhat.com>
50267
50268         inet_pton.c: use locale-independent tolower
50269         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
50270         (inet_pton6): Use c_tolower rather than tolower.
50271         * modules/inet_pton (Depends-on): Add c-ctype.
50272
50273 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
50274
50275         * lib/poll.c (poll): Avoid division when timeout is 0, cache
50276         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
50277
50278 2008-08-06  Jim Meyering  <meyering@redhat.com>
50279
50280         * modules/inet_pton (License): Relicense under LGPLv2+.
50281
50282 2008-08-03  Bruno Haible  <bruno@clisp.org>
50283
50284         Additional non-aborting API for lock and tls.
50285         * lib/lock.h: Include <errno.h>.
50286         (glthread_lock_init): New macro/function.
50287         (gl_lock_init): Define as wrapper around glthread_lock_init.
50288         (glthread_lock_lock): New macro/function.
50289         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
50290         (glthread_lock_unlock): New macro/function.
50291         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
50292         (glthread_lock_destroy): New macro/function.
50293         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
50294         (glthread_rwlock_init): New macro/function.
50295         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
50296         (glthread_rwlock_rdlock): New macro/function.
50297         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
50298         (glthread_rwlock_wrlock): New macro/function.
50299         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
50300         (glthread_rwlock_unlock): New macro/function.
50301         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
50302         (glthread_rwlock_destroy): New macro/function.
50303         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
50304         (glthread_recursive_lock_init): New macro/function.
50305         (gl_recursive_lock_init): Define as wrapper around
50306         glthread_recursive_lock_init.
50307         (glthread_recursive_lock_lock): New macro/function.
50308         (gl_recursive_lock_lock): Define as wrapper around
50309         glthread_recursive_lock_lock.
50310         (glthread_recursive_lock_unlock): New macro/function.
50311         (gl_recursive_lock_unlock): Define as wrapper around
50312         glthread_recursive_lock_unlock.
50313         (glthread_recursive_lock_destroy): New macro/function.
50314         (gl_recursive_lock_destroy): Define as wrapper around
50315         glthread_recursive_lock_destroy.
50316         (glthread_once): New macro/function.
50317         (gl_once): Define as wrapper around glthread_once.
50318         Update function declarations.
50319         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
50320         glthread_rwlock_init. Return error code.
50321         (glthread_rwlock_rdlock_multithreaded): Renamed from
50322         glthread_rwlock_rdlock. Return error code.
50323         (glthread_rwlock_wrlock_multithreaded): Renamed from
50324         glthread_rwlock_wrlock. Return error code.
50325         (glthread_rwlock_unlock_multithreaded): Renamed from
50326         glthread_rwlock_unlock. Return error code.
50327         (glthread_rwlock_destroy_multithreaded): Renamed from
50328         glthread_rwlock_destroy. Return error code.
50329         (glthread_recursive_lock_init_multithreaded): Renamed from
50330         glthread_recursive_lock_init. Return error code.
50331         (glthread_recursive_lock_lock_multithreaded): Renamed from
50332         glthread_recursive_lock_lock. Return error code.
50333         (glthread_recursive_lock_unlock_multithreaded): Renamed from
50334         glthread_recursive_lock_unlock. Return error code.
50335         (glthread_recursive_lock_destroy_multithreaded): Renamed from
50336         glthread_recursive_lock_destroy. Return error code.
50337         (glthread_once_call): Make static.
50338         (glthread_once_multithreaded): Renamed from glthread_once.
50339         * lib/tls.h: Include <errno.h>.
50340         (glthread_tls_key_init): New macro/function.
50341         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
50342         (glthread_tls_set): New macro/function.
50343         (gl_tls_set): Define as wrapper around glthread_tls_set.
50344         (glthread_tls_key_destroy): New macro/function.
50345         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
50346         Update function declarations.
50347         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
50348         glthread_tls_get.
50349         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50350
50351 2008-08-04  Eric Blake  <ebb9@byu.net>
50352
50353         gnumakefile: use space, not TAB, outside of targets
50354         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
50355
50356 2008-08-02  Jim Meyering  <meyering@redhat.com>
50357
50358         getdate.y: avoid locale-dependent date parsing failure
50359         In Turkish locales, getdate would fail to recognize keywords
50360         containing a lowercase "i".  The solution is not to rely on
50361         locale-sensitive case-conversion.
50362         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
50363         (lookup_word): Use c_toupper in place of toupper.
50364         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
50365         Reported by Vefa Bicakci <bicave@superonline.com> in
50366         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
50367         * modules/getdate (Depends-on): Add c-ctype.
50368
50369 2008-08-02  Bruno Haible  <bruno@clisp.org>
50370
50371         * gnulib-tool (func_import): When updating or creating a .gitignore
50372         file, prepend each added line with a slash, and ignore leading slashes
50373         from the existing lines.
50374         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50375
50376 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50377
50378         Portability fix for GNU make 3.79.1.
50379         * top/GNUmakefile: Avoid 'else COND', which older GNU make
50380         versions do not understand.
50381
50382 2008-08-01  Bruno Haible  <bruno@clisp.org>
50383
50384         Work around bug of HP-UX 10.20 cc with -0.0 literal.
50385         * tests/test-isnanf.h (zero): New variable.
50386         (main): Avoid literal -0.0f.
50387         * tests/test-isnand.h (zero): New variable.
50388         (main): Avoid literal -0.0.
50389         * tests/test-isnanl.h (zero): New variable.
50390         (main): Avoid literal -0.0L.
50391         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
50392         (test_float, test_double, test_long_double): Avoid literals -0.0f,
50393         -0.0, -0.0L.
50394         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
50395         (test_signbitd): Avoid literal -0.0.
50396         (test_signbitl): Avoid literal -0.0L.
50397         * tests/test-ceilf1.c (zero): New variable.
50398         (main): Avoid literal -0.0f.
50399         * tests/test-ceill.c (zero): New variable.
50400         (main): Avoid literal -0.0L.
50401         * tests/test-floorf1.c (zero): New variable.
50402         (main): Avoid literal -0.0f.
50403         * tests/test-floorl.c (zero): New variable.
50404         (main): Avoid literal -0.0L.
50405         * tests/test-roundf1.c (zero): New variable.
50406         (main): Avoid literal -0.0f.
50407         * tests/test-round1.c (zero): New variable.
50408         (main): Avoid literal -0.0.
50409         * tests/test-roundl.c (zero): New variable.
50410         (main): Avoid literal -0.0L.
50411         * tests/test-truncf1.c (zero): New variable.
50412         (main): Avoid literal -0.0f.
50413         * tests/test-trunc1.c (zero): New variable.
50414         (main): Avoid literal -0.0.
50415         * tests/test-truncl.c (zero): New variable.
50416         (main): Avoid literal -0.0L.
50417         * tests/test-frexp.c (zero): New variable.
50418         (main): Avoid literal -0.0.
50419         * tests/test-frexpl.c (zero): New variable.
50420         (main): Avoid literal -0.0L.
50421         * tests/test-ldexpl.c (zero): New variable.
50422         (main): Avoid literal -0.0L.
50423         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
50424         (zerod, zerol): New variables.
50425         (test_function): Avoid literals -0.0, -0.0L.
50426         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
50427         (zerod, zerol): New variables.
50428         (test_function): Avoid literals -0.0, -0.0L.
50429         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
50430         (zerod, zerol): New variables.
50431         (test_function): Avoid literals -0.0, -0.0L.
50432         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
50433         (zerod, zerol): New variables.
50434         (test_function): Avoid literals -0.0, -0.0L.
50435         * tests/test-strtod.c (zero): New variable.
50436         (main): Avoid literal -0.0.
50437         Reported by Jonathan C. Patschke <jp@centtech.com>.
50438
50439 2008-07-31  Jim Meyering  <meyering@redhat.com>
50440
50441         sha256.h: correct definition of SHA224_DIGEST_SIZE
50442         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
50443         Reported by Paulie Pena IV <paulie4@gmail.com>.
50444         Define as 224 / 8, rather than as a literal.
50445         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
50446         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
50447         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
50448
50449 2008-07-31  Bruno Haible  <bruno@clisp.org>
50450
50451         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
50452         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
50453         Reported by Jonathan Patschke <jp@centtech.com>.
50454
50455 2008-07-31  Bruno Haible  <bruno@clisp.org>
50456
50457         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
50458         Reported by Paolo Bonzini <bonzini@gnu.org>.
50459
50460 2008-07-30  Eric Blake  <ebb9@byu.net>
50461
50462         test-strtod: allow compilation without -lm
50463         * tests/test-strtod.c (main): Avoid link dependence on fabs.
50464         Reported by Dennis Clarke <blastwave@gmail.com>.
50465
50466 2008-07-28  Jim Meyering  <meyering@redhat.com>
50467
50468         bootstrap: work also when there are no .po files in po/
50469         * build-aux/bootstrap (update_po_files): Complete the change
50470         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
50471
50472 2008-07-27  Jim Meyering  <meyering@redhat.com>
50473
50474         * users.txt: Add zile.
50475
50476 2008-07-26  Ben Pfaff  <blp@gnu.org>
50477
50478         Add missing dependencies on new m4/exponent[fdl].m4 files.
50479         * modules/isnanf-nolibm: Add m4/exponentf.m4.
50480         * modules/isnand-nolibm: Add m4/exponentd.m4.
50481         * modules/isnanl-nolibm: Add m4/exponentl.m4.
50482         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
50483         m4/isnan[fdl].m4, because the macros actually used moved.
50484         Reported by Jim Meyering.
50485
50486 2008-07-14  Ben Pfaff  <blp@gnu.org>
50487
50488         Add isinf module.
50489         * lib/isinf.c: New file.
50490         * lib/math.in.h: Define isinf macro if we have decided to replace
50491         it.
50492         * m4/isinf.m4: New file.
50493         * m4/math_h.m4: Initialize and substitute variables for isinf
50494         module.
50495         * modules/isinf: New file.
50496         * modules/isinf-tests: New file.
50497         * modules/math: Add substitutions for new module.
50498         * tests/test-isinf.c: New file.
50499         * doc/posix-functions/isinf.texi: Mention new module.
50500         * MODULES.html.sh: Mention new module.
50501
50502 2008-07-14  Ben Pfaff  <blp@gnu.org>
50503
50504         Factor out some macros for use by additional modules.
50505         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
50506         exponentf.m4.
50507         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
50508         exponentd.m4.
50509         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
50510         file exponentl.m4.
50511         * m4/exponentf.m4: New file.
50512         * m4/exponentd.m4: New file.
50513         * m4/exponentl.m4: New file.
50514         * modules/isnanf: Use new file m4/exponentf.m4.
50515         * modules/isnand: Use new file m4/exponentd.m4.
50516         * modules/isnanl: Use new file m4/exponentl.m4.
50517
50518 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
50519
50520         mktime.c: normalize tp->tm_isdst value to -1/0/1.
50521         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
50522         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
50523         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
50524
50525         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
50526         readlink on platforms without PATH_MAX.
50527
50528 2008-07-21  Eric Blake  <ebb9@byu.net>
50529
50530         Warn, not fail, on stale version.
50531         * top/GNUmakefile (_curr-ver): Tone down previous patch.
50532
50533         Don't allow installation with stale devel version number.
50534         * top/GNUmakefile (_is-install-target): New macro.
50535         (_curr-ver): Forbid installation with stale version number.
50536
50537 2008-07-20  Bruno Haible  <bruno@clisp.org>
50538
50539         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
50540         TESTS_ENVIRONMENT.
50541         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
50542
50543 2008-07-20  Bruno Haible  <bruno@clisp.org>
50544
50545         * lib/c-stack.h (c_stack_action): Add documentation.
50546         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
50547
50548 2008-07-20  Bruno Haible  <bruno@clisp.org>
50549
50550         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
50551         * modules/readlink (License): Likewise.
50552
50553 2008-07-17  Eric Blake  <ebb9@byu.net>
50554
50555         * modules/c-stack (Link): Fix typo.
50556
50557         Make c-stack use libsigsegv, when available.
50558         * modules/c-stack (Depends-on): Add libsigsegv.
50559         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
50560         needed.
50561         * lib/c-stack.c (SIGSTKSZ): Define fallback.
50562         (segv_handler, overflow_handler, c_stack_action)
50563         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
50564         implementation when libsigsegv is available, but only when using
50565         the library is necessary.
50566         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
50567         comment, explaining why XSI check fails on Linux.
50568         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
50569         * tests/test-c-stack2.sh: Tweak skip message.
50570         * NEWS: Document new link-time requirements.
50571
50572 2008-07-16  Eric Blake  <ebb9@byu.net>
50573
50574         c-stack: Expose false positives when not using libsigsegv.
50575         * modules/c-stack-tests (Files): Expand test.
50576         * tests/test-c-stack.c (main): Add means to conditionally trigger
50577         non-overflow SIGSEGV.
50578         * tests/test-c-stack2.sh: New file.
50579
50580 2008-07-14  Bruno Haible  <bruno@clisp.org>
50581
50582         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
50583         Reported by Eric Blake.
50584
50585 2008-07-14  Sam Steingold  <sds@gnu.org>
50586             Bruno Haible  <bruno@clisp.org>
50587
50588         New module libsigsegv.
50589         * modules/libsigsegv: New file.
50590         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
50591         modifications.
50592         * MODULES.html.sh (Signal handling): New section.
50593
50594 2008-07-14  Bruno Haible  <bruno@clisp.org>
50595
50596         * modules/unictype/ctype-* (Description): Add the word "function".
50597         Improves the resulting doc in MODULES.html.
50598
50599 2008-07-12  Ben Pfaff  <blp@gnu.org>
50600
50601         Add longlong module.
50602         * modules/longlong: New file.
50603
50604 2008-07-12  Bruno Haible  <bruno@clisp.org>
50605
50606         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
50607         to empty.
50608
50609 2008-07-10  Ben Pfaff  <blp@gnu.org>
50610
50611         Add isnan module.
50612         * doc/posix-functions/isnan.texi: Mention new module.
50613         * lib/math.in.h: Define isnan macro if we have decided to replace
50614         it.
50615         * m4/isnan.m4: New file.
50616         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
50617         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
50618         also.
50619         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
50620         redundancy.
50621         * m4/math_h.m4: Initialize and substitute variables for isnan
50622         module.
50623         * modules/isnan: New file.
50624         * modules/isnan-tests: New file.
50625         * modules/math: Add substitutions for new module.
50626         * tests/test-isnan.c: New file.
50627         * MODULES.html.sh: Mention new module.
50628
50629 2008-07-10  Ben Pfaff  <blp@gnu.org>
50630
50631         Add isnanf module.
50632         * lib/isnanf.m4: New file.
50633         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
50634         (gl_HAVE_ISNANF_IN_LIBM): New macro.
50635         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
50636         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
50637         * modules/isnanf: New file.
50638         * modules/isnanf-tests: New file.
50639         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
50640         files.
50641         * tests/test-isnanf-nolibm.c: factored most of its contents into
50642         new file tests/test-isnanf.h.
50643         * tests/test-isnanf.h: New file.
50644         * tests/test-isnanf.c: New file.
50645         * MODULES.html.sh: Mention new module.
50646         * doc/glibc-functions/isnanf.texi: Mention new module.
50647
50648 2008-07-10  Ben Pfaff  <blp@gnu.org>
50649
50650         Add isnand module.
50651         * lib/isnand.h: New file.
50652         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
50653         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
50654         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
50655         functionality also.
50656         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
50657         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
50658         (gl_HAVE_ISNAND_IN_LIBM): New macro.
50659         * modules/isnand: New file.
50660         * modules/isnand-tests: New file.
50661         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
50662         files.
50663         * tests/test-isnand-nolibm.c: factored most of its contents into
50664         new file tests/test-isnand.h.
50665         * tests/test-isnand.h: New file.
50666         * tests/test-isnand.c: New file.
50667         * MODULES.html.sh: Mention new module.
50668
50669 2008-07-10  Ben Pfaff  <blp@gnu.org>
50670
50671         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
50672         * lib/isnand.h: Rename lib/isnand-nolibm.h.
50673         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
50674         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
50675         * modules/isnanf-nolibm: Update references to renamed files.
50676         * modules/isnand-nolibm: Likewise.
50677         * modules/isnanf-nolibm-tests: Likewise.
50678         * modules/isnand-nolibm-tests: Likewise.
50679         * lib/frexp.c: Likewise.
50680         * lib/isfinite.c: Likewise.
50681         * lib/signbitd.c: Likewise.
50682         * lib/signbitf.c: Likewise.
50683         * lib/vasnprintf.c: Likewise.
50684         * tests/test-ceilf1.c: Likewise.
50685         * tests/test-ceilf2.c: Likewise.
50686         * tests/test-floorf1.c: Likewise.
50687         * tests/test-floorf2.c: Likewise.
50688         * tests/test-frexp.c: Likewise.
50689         * tests/test-round1.c: Likewise.
50690         * tests/test-round2.c: Likewise.
50691         * tests/test-roundf1.c: Likewise.
50692         * tests/test-strtod.c: Likewise.
50693         * tests/test-trunc1.c: Likewise.
50694         * tests/test-trunc2.c: Likewise.
50695         * tests/test-truncf1.c: Likewise.
50696         * tests/test-truncf2.c: Likewise.
50697         * NEWS: Mention the renamed header files.
50698
50699 2008-07-11  Jim Meyering  <meyering@redhat.com>
50700
50701         vc-list-files: make the last-resort awk code more portable
50702         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
50703         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
50704         does not support it.
50705
50706 2008-07-10  Eric Blake  <ebb9@byu.net>
50707
50708         Work with tar's bootstrap.
50709         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
50710         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
50711         an m4 comment.
50712
50713 2008-07-09  Jim Meyering  <meyering@redhat.com>
50714
50715         posix-shell.m4: fix typo that made this test malfunction
50716         * m4/posix-shell.m4: Remove capitalization in variable name.
50717
50718 2008-07-08  Bruno Haible  <bruno@clisp.org>
50719
50720         * m4/onceonly.m4: Update comments.
50721         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50722
50723 2008-07-04  Jim Meyering  <meyering@redhat.com>
50724
50725         * users.txt: Add vc-dwim.
50726         (bison, coreutils): Use the gitweb URL.
50727
50728 2008-07-03  Jim Meyering  <meyering@redhat.com>
50729
50730         * users.txt: Add libffcall.  From Sam Steingold.
50731
50732 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
50733
50734         getdate.y: do not ignore TZ with relative day, month or year offset
50735         * lib/getdate.y (get_date): Move the tz-handling block to follow the
50736         relative-date-handling, since otherwise, the latter would clobber the
50737         sole output (an updated Start value) of the tz-handling block.
50738         * tests/test-getdate.c: Tests for the fix
50739
50740 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50741
50742         Recognize 'foo_LIBRARIES += libgnu.a'.
50743         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
50744         makefile snippet has already specified an installation location,
50745         also using '+='.
50746
50747 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
50748
50749         getdate.y: factor out common actions
50750         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
50751         Use them in place of open-coded actions.
50752
50753 2008-07-01  Simon Josefsson  <simon@josefsson.org>
50754
50755         Add self-test for getdate module.
50756         * modules/getdate-tests: New file.
50757         * tests/test-getdate.c: New file.
50758
50759 2008-06-29  Bruno Haible  <bruno@clisp.org>
50760
50761         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
50762         .gitignore.
50763         Reported by Sylvain Beucler <beuc@beuc.net>.
50764
50765 2008-06-29  Bruno Haible  <bruno@clisp.org>
50766
50767         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
50768         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
50769
50770 2008-06-29  Bruno Haible  <bruno@clisp.org>
50771
50772         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
50773         EXTRA_DIST.
50774         Reported by Sylvain Beucler <beuc@beuc.net>.
50775
50776 2008-06-26  Jim Meyering  <meyering@redhat.com>
50777
50778         make several modules depend on the "open" module
50779         This provides slightly increased consistency when opening-for-write
50780         the name of a non-directory spelled with a trailing slash.
50781         * modules/chdir-safer: Likewise.
50782         * modules/chown: Likewise.
50783         * modules/clean-temp: Likewise.
50784         * modules/copy-file: Likewise.
50785         * modules/fchdir: Likewise.
50786         * modules/fcntl-safer: Likewise.
50787         * modules/pipe: Likewise.
50788         * modules/utime: Likewise.
50789         Prompted by Eric Blake and Bruno Haible.
50790
50791 2008-06-24  Andreas Schwab  <schwab@suse.de>
50792
50793         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
50794         literals can be used as initializers for global variables.
50795
50796 2008-06-23  Eric Blake  <ebb9@byu.net>
50797
50798         Make gnulib-cache.m4 easier to diff.
50799         * gnulib-tool (func_import): Allow newlines when reading cached
50800         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
50801
50802 2008-06-23  Bruno Haible  <bruno@clisp.org>
50803
50804         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
50805         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
50806         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
50807         m4/signalblocking.m4.
50808         (gl_PREREQ_SIGACTION): Don't invoke it.
50809         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
50810         gl_PREREQ_SIG_HANDLER_H.
50811         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
50812         Don't check for sigaction here.
50813
50814 2008-06-23  Bruno Haible  <bruno@clisp.org>
50815
50816         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
50817         (install_handlers): Don't set the SA_RESETHAND flag.
50818
50819 2008-06-23  Bruno Haible  <bruno@clisp.org>
50820
50821         * m4/sigaction.m4: Comment fixes.
50822         * lib/signal.in.h: Likewise.
50823
50824 2008-06-23  Eric Blake  <ebb9@byu.net>
50825
50826         Fix typo.
50827         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
50828
50829         Avoid SA_ namespace.
50830         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
50831         Reported by Ralf Wildenhues.
50832
50833         Avoid test failure due to SA_RESTORER.
50834         * tests/test-sigaction.c (SA_MASK): New macro.
50835         (main): Avoid failing due to extension flags being set.
50836         Reported by Jim Meyering.
50837
50838         Revert use of sig-handler.h in sigprocmask.c.
50839         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
50840         it requires the existence of struct sigaction.
50841         * lib/sigprocmask.c (handler_t): Restore typedef.
50842         (rpl_signal, old_handlers): Use local type.
50843
50844 2008-06-22  Bruno Haible  <bruno@clisp.org>
50845
50846         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
50847         conditionally.
50848         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50849
50850 2008-06-22  Bruno Haible  <bruno@clisp.org>
50851
50852         * doc/posix-functions/siginterrupt.texi: Move note.
50853
50854         * lib/signal.in.h (SA_RESTART): New macro.
50855         * lib/sigaction.c: Update comment.
50856
50857         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
50858
50859         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
50860         (gl_PREREQ_SIGPROCMASK): Invoke it.
50861         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
50862
50863         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
50864
50865         * lib/sigprocmask.c: Update a comment.
50866
50867 2008-06-21  Eric Blake  <ebb9@byu.net>
50868
50869         Use sigaction module rather than signal().
50870         * modules/c-stack (Depends-on): Add sigaction.
50871         * modules/fatal-signal (Depends-on): Likewise.
50872         * modules/nanosleep (Depends-on): Likewise.
50873         * modules/sigprocmask (Files): Add sig-handler.h.
50874         * modules/sigaction (Files): Likewise.
50875         * lib/sig-handler.h (get_handler): New file, suggested by Paul
50876         Eggert.
50877         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
50878         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
50879         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
50880         (init_fatal_signals): Likewise.
50881         * lib/nanosleep.c (rpl_nanosleep): Likewise.
50882         (siginterrupt): Delete fallback.
50883         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
50884         instead.
50885         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
50886         siginterrupt.
50887
50888         New module sigaction, for mingw.
50889         * modules/sigaction: New module...
50890         * modules/sigaction-tests: ...and its test.
50891         * m4/sigaction.m4: New file.
50892         * lib/sigaction.c: Likewise.
50893         * tests/test-sigaction.c: Likewise.
50894         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
50895         * modules/signal (Makefile.am): Likewise.
50896         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
50897         needed.
50898         * doc/posix-headers/signal.texi (signal.h): Mention provided
50899         types.
50900         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
50901         that sigaction is preferable.
50902         * doc/posix-functions/sigaction.texi (sigaction): Mention new
50903         module.
50904         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50905         sigaction.
50906
50907         Improve robustness of sigprocmask by overriding signal.
50908         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
50909         is in use.
50910         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
50911         (SIGKILL, SIGSTOP): Provide fallbacks.
50912         (rpl_signal): Implement.
50913         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
50914         signal can be called inside handlers.
50915
50916         Fix nanosleep module on mingw.
50917         * modules/nanosleep (Depends-on): Add sys_select.
50918         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
50919
50920         Fix licensing of sigprocmask.
50921         * modules/raise (License): Relicense as LGPL.
50922
50923 2008-06-21  Bruno Haible  <bruno@clisp.org>
50924
50925         * lib/propername.c (proper_name_utf8): Don't use the transliterated
50926         result if it contains question marks.
50927         Reported by Michael Geng <linux@michaelgeng.de>.
50928
50929 2008-06-19  Bruno Haible  <bruno@clisp.org>
50930
50931         Fix CVS-ism.
50932         * doc/gnulib.texi: Include updated-stamp.texi.
50933         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
50934         (updated-stamp.texi): New rule.
50935         (gnulib.info): Depend on it.
50936         * doc/.gitignore: Add updated-stamp.texi.
50937         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
50938
50939 2008-06-19  Bruno Haible  <bruno@clisp.org>
50940
50941         * doc/Makefile (gnulib.info): Update and simplify dependencies.
50942         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50943
50944 2008-06-19  Eric Blake  <ebb9@byu.net>
50945
50946         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
50947         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
50948         Reported by Stepan Kasal.
50949
50950 2008-06-18  Bruno Haible  <bruno@clisp.org>
50951
50952         * lib/fatal-signal.c (init_fatal_signals): Add comment.
50953         Reported by Eric Blake.
50954
50955 2008-06-18  Eric Blake  <ebb9@byu.net>
50956
50957         Work around cygwin 1.5.25 strsignal bug.
50958         * tests/test-strsignal.c: Allow for const char *.
50959         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
50960
50961 2008-06-18  Simon Josefsson  <simon@josefsson.org>
50962
50963         * users.txt: Update URL to article and add author/date
50964         information.
50965
50966 2008-06-17  Bruno Haible  <bruno@clisp.org>
50967
50968         New macro gl_DISABLE_THREADS.
50969         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
50970         if the user did not pass --enable-threads or --disable-threads option.
50971         (gl_DISABLE_THREADS): New macro.
50972         Reported by Eric Blake <ebb9@byu.net>.
50973
50974 2008-06-17  Bruno Haible  <bruno@clisp.org>
50975
50976         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
50977         when the macro ignores it.
50978         Based on a patch by Eric Blake <ebb9@byu.net>.
50979
50980 2008-06-17  Bruno Haible  <bruno@clisp.org>
50981
50982         * modules/tls (License): Change to LGPLv2+.
50983         Reported by Eric Blake.
50984
50985 2008-06-17  Eric Blake  <ebb9@byu.net>
50986
50987         Simplify c-stack prerequisites.
50988         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
50989         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
50990         no longer requires <ucontext.h> to exist.  Optimize setrlimit
50991         check.
50992         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
50993         <sys/resource.h>.
50994
50995         Move c-stack test into testsuite.
50996         * modules/c-stack-tests: New file.
50997         * lib/c-stack.c [DEBUG]: Move test program...
50998         * tests/test-c-stack.c: ...into this new file.  Skip rather than
50999         fail test if sigaltstack is lacking.
51000         * tests/test-c-stack.sh: New driver file.
51001
51002 2008-06-16  Eric Blake  <ebb9@byu.net>
51003
51004         Use raise module consistently.
51005         * modules/fatal-signal (Depends-on): Add raise.
51006         * modules/sigprocmask (Depends-on): Likewise.
51007         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
51008         * lib/sigprocmask.c (sigprocmask): Likewise.
51009         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
51010         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
51011
51012         Fix compliance bug in sigpending.
51013         * lib/sigprocmask.c (sigpending): Return pending array via
51014         parameter, not return value.
51015
51016 2008-06-14  Eric Blake  <ebb9@byu.net>
51017
51018         Improve obstack-printf test code.
51019         * tests/test-obstack-printf.c (test_function): Fix comment, and
51020         simplify usage of obstack_* in macros.  Add a test for coverage.
51021         Reported by Bruno Haible.
51022
51023 2008-06-14  Bruno Haible  <bruno@clisp.org>
51024
51025         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
51026         array size as a constant, not as a const variable.
51027         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
51028         AC_USE_SYSTEM_EXTENSIONS.
51029         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
51030         Test whether the obstack_printf function actually exists.
51031         * modules/obstack-printf (Depends-on): Add extensions.
51032         (Include): Remove obstack.h.
51033         * modules/obstack-printf-posix (Depends-on): Add extensions.
51034         (Include): Remove obstack.h.
51035
51036 2008-06-13  Eric Blake  <ebb9@byu.net>
51037
51038         Add obstack-printf and obstack-printf-posix modules.
51039         * modules/obstack-printf: New file.
51040         * modules/obstack-printf-posix: Likewise.
51041         * MODULES.html.sh (Misc): Mention them.
51042         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
51043         Likewise.
51044         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
51045         Likewise.
51046         * modules/stdio (Makefile.am): Accomodate new modules.
51047         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51048         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
51049         Declare.
51050         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
51051         functions.
51052         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
51053         (gl_REPLACE_OBSTACK_PRINTF): New macros
51054         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
51055         * tests/test-obstack-printf.c: New file.
51056         * modules/obstack-printf-tests: Likewise.
51057         * modules/obstack-printf-posix-tests: Likewise.
51058
51059 2008-06-11  Bruno Haible  <bruno@clisp.org>
51060
51061         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
51062         * lib/open.c: Include errno.h.
51063         (open): Fail when attempting to write to a file that has a trailing
51064         slash.
51065         * tests/test-open.c (main): Test against trailing slash bug.
51066         * doc/posix-functions/open.texi: Mention the trailing slash bug.
51067
51068 2008-06-10  Bruno Haible  <bruno@clisp.org>
51069
51070         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
51071         for $? to work inside the trap command, with various /bin/sh-s.
51072         * tests/test-vc-list-files-cvs.sh: Likewise.
51073
51074 2008-06-10  Bruno Haible  <bruno@clisp.org>
51075
51076         * lib/acl-internal.h: Don't include gettext.h here.
51077         * lib/set-mode-acl.c: Include gettext.h here.
51078         * lib/copy-acl.c: Likewise.
51079
51080 2008-06-10  Bruno Haible  <bruno@clisp.org>
51081
51082         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
51083         * lib/wait-process.c (wait_subprocess): Likewise.
51084         * lib/execute.h (execute): Add termsigp argument.
51085         * lib/execute.c (execute): Likewise.
51086         * lib/csharpcomp.c (compile_csharp_using_pnet,
51087         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
51088         * lib/csharpexec.c (execute_csharp_using_pnet,
51089         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
51090         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
51091         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
51092         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
51093         is_jikes_present): Update.
51094         * lib/javaexec.c (execute_java_class): Update.
51095         * lib/javaversion.c (execute_and_read_line): Update.
51096         * NEWS: Document the changes.
51097         Reported by Eric Blake.
51098
51099 2008-06-10  Eric Blake  <ebb9@byu.net>
51100
51101         Add missing include.
51102         * tests/test-strstr.c (includes): Add <signal.h>.
51103         * tests/test-strcasestr.c (includes): Likewise.
51104         * tests/test-memmem.c (includes): Likewise.
51105
51106 2008-06-10  Bruno Haible  <bruno@clisp.org>
51107
51108         * lib/wait-process.c (wait_subprocess): Add an assertion.
51109
51110 2008-06-10  Bruno Haible  <bruno@clisp.org>
51111
51112         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
51113
51114 2008-06-10  Bruno Haible  <bruno@clisp.org>
51115
51116         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
51117         using alarm().
51118         * tests/test-strcasestr.c (main): Likewise.
51119         * tests/test-strstr.c (main): Likewise.
51120
51121 2008-06-09  Bruno Haible  <bruno@clisp.org>
51122
51123         Work around the Solaris 10 ACE ACLs ABI change.
51124         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
51125         declare if ACL_NO_TRIVIAL is present.
51126         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
51127         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
51128         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
51129         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
51130         define if ACL_NO_TRIVIAL is present.
51131         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
51132         and use the current ABI.
51133         (file_has_acl): Use same #if condition as elsewhere.
51134         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
51135         in use, and use the current ABI.
51136         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
51137         Reported by Jim Meyering.
51138
51139 2008-06-09  Eric Blake  <ebb9@byu.net>
51140
51141         Work around environments that (stupidly) ignore SIGALRM.
51142         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
51143         before using alarm().
51144         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51145         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51146         Reported by Ian Beckwith <ianb@erislabs.net>.
51147
51148         Produce autobuild blurb earlier in log.
51149         * modules/autobuild (configure.ac-early): Move AB_INIT here.
51150
51151 2008-06-09  Jim Meyering  <meyering@redhat.com>
51152         and OndÅ™ej Vašík  <ovasik@redhat.com>
51153
51154         utimens.c: correct kernel bug work-around
51155         OndÅ™ej Vašík found that the invalid return value of 280 indicates
51156         failure, not success, and the kernel bug we're trying to work
51157         around affects not just the utimensat call, but also the fallback
51158         futimens call.
51159         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
51160         not success.
51161         [HAVE_FUTIMENS]: Use the same work-around, here.
51162
51163 2008-06-09  Jim Meyering  <meyering@redhat.com>
51164
51165         add more guards around definition of ACE_-related code
51166         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
51167         ALLOW and ACE_OWNER are also defined.
51168
51169 2008-06-08  Bruno Haible  <bruno@clisp.org>
51170
51171         * lib/acl-internal.h: Add me as co-author.
51172         * lib/file-has-acl.c: Likewise.
51173         * lib/set-mode-acl.c: Likewise.
51174         * lib/copy-acl.c: Likewise.
51175
51176 2008-06-08  Bruno Haible  <bruno@clisp.org>
51177
51178         Add support for AIX ACLs.
51179         * lib/acl-internal.h (acl_nontrivial): New declaration.
51180         * lib/file-has-acl.c (acl_nontrivial): New function.
51181         (file_has_acl): Add implementation using AIX 4 ACL API.
51182         * lib/set-mode-acl.c (qset_acl): Likewise.
51183         * lib/copy-acl.c (qcopy_acl): Likewise.
51184
51185 2008-06-08  Bruno Haible  <bruno@clisp.org>
51186
51187         Add support for HP-UX ACLs.
51188         * lib/acl-internal.h (acl_nontrivial): New declaration.
51189         * lib/file-has-acl.c (acl_nontrivial): New function.
51190         (file_has_acl): Add implementation using HP-UX 11 ACL API.
51191         * lib/set-mode-acl.c (qset_acl): Likewise.
51192         * lib/copy-acl.c (qcopy_acl): Likewise.
51193
51194 2008-06-08  Bruno Haible  <bruno@clisp.org>
51195
51196         Add support for Cygwin ACLs.
51197         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
51198         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
51199         the chmod_or_fchmod call.
51200         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
51201
51202 2008-06-08  Bruno Haible  <bruno@clisp.org>
51203
51204         Fix bug with setuid modes in Solaris 10+ code.
51205         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
51206         succeeded, when the mode contains some special bits.
51207
51208 2008-06-08  Bruno Haible  <bruno@clisp.org>
51209
51210         Add support for Solaris 7..10 ACLs.
51211         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
51212         declarations.
51213         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
51214         functions.
51215         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
51216         * lib/set-mode-acl.c (qset_acl): Likewise.
51217         * lib/copy-acl.c (qcopy_acl): Likewise.
51218
51219 2008-06-08  Bruno Haible  <bruno@clisp.org>
51220
51221         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
51222         declaration.
51223         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
51224         (acl_access_nontrivial): Remove MacOS X case.
51225         (file_has_acl): Use acl_extended_nontrivial.
51226         * lib/copy-acl.c (qcopy_acl): Likewise.
51227
51228 2008-06-08  Bruno Haible  <bruno@clisp.org>
51229
51230         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
51231
51232 2008-06-08  Jim Meyering  <meyering@redhat.com>
51233
51234         * modules/acl (Maintainer): Add Bruno Haible.
51235
51236 2008-06-07  Bruno Haible  <bruno@clisp.org>
51237
51238         Improve support for Tru64 ACLs.
51239         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
51240         ACL on OSF/1.
51241
51242 2008-06-07  Bruno Haible  <bruno@clisp.org>
51243
51244         Add support for MacOS X ACLs.
51245         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
51246         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
51247         * lib/set-mode-acl.c (qset_acl): Likewise.
51248         * lib/copy-acl.c (qcopy_acl): Likewise.
51249
51250 2008-06-07  Bruno Haible  <bruno@clisp.org>
51251
51252         Fix memory leak introduced on 2008-05-22.
51253         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
51254         use.
51255
51256 2008-06-07  Bruno Haible  <bruno@clisp.org>
51257
51258         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
51259         to construct an empty ACL.
51260
51261 2008-06-07  Bruno Haible  <bruno@clisp.org>
51262
51263         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
51264         precisely.
51265         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
51266
51267 2008-06-07  Bruno Haible  <bruno@clisp.org>
51268
51269         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
51270         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
51271
51272 2008-06-07  Bruno Haible  <bruno@clisp.org>
51273
51274         * doc/posix-functions/_setjmp.texi: Explain the use of this function
51275         regardless of POSIX.
51276         * doc/posix-functions/_longjmp.texi: Likewise.
51277         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
51278         SystemV platform in this case.
51279
51280 2008-06-06  Eric Blake  <ebb9@byu.net>
51281
51282         Document abort() bugs.
51283         * doc/posix-functions/abort.texi (abort): Mention anomalies.
51284
51285         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
51286         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
51287         sigsetjmp.
51288         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
51289         siglongjmp, but only as a macro.
51290         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
51291         is obsolete.
51292         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
51293
51294         Tweak documentation to cover cygwin argz bugs.
51295         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
51296         argz bug fix; no code change needed since no cygwin releases
51297         occurred between the last fix and the bug being tested.
51298         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
51299         module and recently fixed cygwin bugs.
51300         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
51301         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
51302         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
51303         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
51304         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
51305         Likewise.
51306         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
51307         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
51308         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
51309         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
51310         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
51311         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
51312         Likewise.
51313
51314         Avoid gcc warning on cygwin.
51315         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
51316         !ACL_NO_TRIVIAL]: Avoid unused variable.
51317
51318 2008-06-05  Eric Blake  <ebb9@byu.net>
51319
51320         Be tolerant of UNKNOWN version in gnulib-tool test dir.
51321         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
51322         git-version-gen fails to come up with a version.
51323         Reported by Simon Josefsson.
51324
51325 2008-06-05  Jim Meyering  <meyering@redhat.com>
51326             Paul Eggert  <eggert@cs.ucla.edu>
51327
51328         utimens.c: work around a probable Linux kernel bug
51329         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
51330         appears to be a kernel bug that causes utimensat to return 280
51331         instead of 0, indicating success.
51332
51333 2008-06-04  Bruno Haible  <bruno@clisp.org>
51334
51335         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
51336         2008-06-01 commit.
51337
51338 2008-06-04  Bruno Haible  <bruno@clisp.org>
51339
51340         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
51341         * lib/file-has-acl.c (acl_access_nontrivial): New function.
51342         (file_has_acl): Use it. Save errno afterwards.
51343         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
51344
51345 2008-06-03  Bruno Haible  <bruno@clisp.org>
51346
51347         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
51348         draft code. Simplify #ifs.
51349         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
51350         Put Solaris code after POSIX-draft code. Fix comments regarding
51351         Solaris 10, HP-UX. Mention Cygwin.
51352         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
51353
51354 2008-06-03  Eric Blake  <ebb9@byu.net>
51355
51356         Provide fallback for older kernels.
51357         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
51358         Provide runtime fallback if kernel lacks support.
51359         Reported by Mike Frysinger.
51360
51361 2008-06-02  Bruno Haible  <bruno@clisp.org>
51362
51363         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
51364         it exists.
51365
51366 2008-06-02  Bruno Haible  <bruno@clisp.org>
51367
51368         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
51369         * lib/copy-acl.c (qcopy_acl): Update comment.
51370
51371 2008-06-02  Bruno Haible  <bruno@clisp.org>
51372
51373         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
51374         like ACL APIs.
51375
51376 2008-06-02  Bruno Haible  <bruno@clisp.org>
51377
51378         * tests/test-file-has-acl.sh: Use different code for Cygwin.
51379         * tests/test-set-mode-acl.sh: Likewise.
51380         * tests/test-copy-acl.sh: Likewise.
51381         * tests/test-copy-file.sh: Likewise.
51382
51383 2008-06-02  Bruno Haible  <bruno@clisp.org>
51384
51385         * tests/test-file-has-acl.sh: Remove unused code.
51386
51387 2008-06-01  Bruno Haible  <bruno@clisp.org>
51388
51389         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
51390         (copy_acl): Just a wrapper around qcopy_acl that emits the error
51391         messages.
51392         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
51393
51394 2008-06-01  Bruno Haible  <bruno@clisp.org>
51395
51396         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
51397         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
51398         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
51399         APIs.
51400         * modules/acl-tests (configure.ac): Remove tests now contained in
51401         m4/acl.m4.
51402
51403 2008-06-02  Jim Meyering  <meyering@redhat.com>
51404
51405         announce-gen: use a better key-server host name
51406         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
51407         it may be more consistently reliable.  Suggested by Werner Koch
51408         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
51409
51410 2008-06-01  Bruno Haible  <bruno@clisp.org>
51411
51412         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
51413         Reported by Voroskoi Andras <voroskoi@gmail.com>.
51414
51415 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
51416
51417         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
51418
51419 2008-06-01  Bruno Haible  <bruno@clisp.org>
51420
51421         New ACL tests.
51422         * tests/test-file-has-acl.sh: New file.
51423         * tests/test-file-has-acl.c: New file.
51424         * tests/test-set-mode-acl.sh: New file.
51425         * tests/test-set-mode-acl.c: New file.
51426         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
51427         * tests/test-copy-acl.c: New file.
51428         * modules/acl-tests: New file, based on modules/copy-file-tests.
51429         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
51430         (Depends-on): Add acl-tests.
51431         (configure.ac): Remove checks.
51432         (Makefile.am): Don't create test-sameacls program here any more.
51433
51434 2008-06-01  Bruno Haible  <bruno@clisp.org>
51435
51436         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
51437         * tests/test-sameacls.c: Include progname.h.
51438         (main): Invoke set_program_name. Portability fixes for MacOS X,
51439         Solaris, HP-UX.
51440
51441 2008-06-01  Bruno Haible  <bruno@clisp.org>
51442
51443         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
51444         function.
51445         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
51446
51447 2008-06-01  Bruno Haible  <bruno@clisp.org>
51448
51449         * modules/rpmatch (Depends-on): Add strdup.
51450
51451 2008-06-01  Bruno Haible  <bruno@clisp.org>
51452
51453         * lib/pipe.c: Include unistd-safer.h.
51454         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
51455         * modules/pipe (Depends-on): Add unistd-safer.
51456
51457 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51458
51459         * modules/autobuild (configure.ac): Call AB_INIT.
51460
51461 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51462
51463         * tests/test-getaddrinfo.c: Don't print debug messages by default.
51464         Suggested by Bruno Haible <bruno@clisp.org>.
51465
51466 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51467
51468         * tests/test-base64.c: Cast size_t to unsigned long when invoking
51469         printf.  Use %lu instead of %d.  Reported by Bruno Haible
51470         <bruno@clisp.org>.
51471
51472 2008-05-29  Eric Blake  <ebb9@byu.net>
51473
51474         Prefer new POSIX 200x interfaces over futimesat.
51475         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
51476         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
51477         when available.
51478         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
51479
51480 2008-05-28  Bruno Haible  <bruno@clisp.org>
51481
51482         * modules/stpcpy (License): Change to LGPLv2+.
51483         Requested by David Lutterkort <dlutter@redhat.com>.
51484
51485 2008-05-27  Bruno Haible  <bruno@clisp.org>
51486
51487         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
51488         current mingw.
51489         Reported by Jose E. Marchesi <jemarch@gnu.org>.
51490
51491 2008-05-27  Bruno Haible  <bruno@clisp.org>
51492
51493         * modules/iconv_open (Link): New section, from module 'iconv'.
51494         * modules/striconv (Link): Likewise.
51495         * modules/striconveh (Link): Likewise.
51496         * modules/xstriconv (Link): Likewise.
51497         * modules/unicodeio (Link): Likewise.
51498         * modules/propername (Link): Likewise.
51499         Reported by Jim Meyering.
51500
51501 2008-05-26  Jim Meyering  <meyering@redhat.com>
51502
51503         sha256: do not artificially restrict buffer length to be < 2^32
51504         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
51505         uint32_t to size_t.
51506         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
51507         to match.
51508
51509         avoid unaligned access errors, e.g., on sparc
51510         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
51511         direct access through a possibly-unaligned uint64* pointer.
51512         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
51513         direct access through a possibly-unaligned uint32* pointer.
51514         Prompted by this patch from Tom "spot" Callaway:
51515         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
51516
51517         sha512.c: fix typo in comment
51518         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
51519
51520 2008-05-25  Bruno Haible  <bruno@clisp.org>
51521
51522         * lib/set-mode-acl.c: Renamed from lib/acl.c.
51523         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
51524         (Makefile.am): Update lib_SOURCES.
51525
51526 2008-05-25  Bruno Haible  <bruno@clisp.org>
51527
51528         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
51529
51530 2008-05-25  Jim Meyering  <meyering@redhat.com>
51531
51532         useless-if-before-free: freed expr may have white-space differences
51533         * build-aux/useless-if-before-free: Recognize cases in which the
51534         freed expression differs from the tested one in embedded white
51535         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
51536         $1 was used, so we can't make any regexp shy.  Improved tests now
51537         detect this.
51538
51539         useless-if-before-free: accept white space in the expression.
51540         * build-aux/useless-if-before-free: For now, any white space
51541         in the expression must be identical in the free argument.
51542
51543         useless-if-before-free: efficiency tweak
51544         * build-aux/useless-if-before-free: Make the expression-matching
51545         regexp "shy".
51546         Make the *outer* regexp shy, not the expr-matching one.
51547
51548         update code-in-comment to accept cast of free arg
51549         * build-aux/useless-if-before-free: Update regexp.
51550
51551 2008-05-25  Bruno Haible  <bruno@clisp.org>
51552
51553         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
51554         * modules/copy-file-tests (Files, Makefile.am): Update.
51555         * tests/test-copy-file.c (func_test_copy): Update.
51556
51557 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
51558
51559         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
51560
51561 2008-05-23  Bruno Haible  <bruno@clisp.org>
51562
51563         Improve support for ACLs on OSF/1.
51564         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
51565         Remove fallback for unknown flavors of ACLs.
51566
51567 2008-05-22  Bruno Haible  <bruno@clisp.org>
51568
51569         Add support for ACLs on OSF/1.
51570         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
51571         replacements.
51572         (acl_free_text): New macro fallback.
51573         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
51574         acl_free.
51575         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
51576         acl_free_text function. Require AC_C_INLINE.
51577
51578 2008-05-22  Bruno Haible  <bruno@clisp.org>
51579
51580         Make copy_acl work on MacOS X 10.5.
51581         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
51582         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
51583         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
51584         If MODE_INSIDE_ACL, don't assume that every system has the same text
51585         representation for ACLs as FreeBSD.
51586         * lib/copy-acl.c (copy_acl): Add support for platforms with
51587         !MODE_INSIDE_ACL.
51588         * lib/file-has-acl.c (file_has_acl): Likewise.
51589         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
51590         FreeBSD, MacOS X, or IRIX, respectively.
51591
51592 2008-05-22  Bruno Haible  <bruno@clisp.org>
51593
51594         * lib/acl.h: Don't include <sys/acl.h>.
51595         (GETACLCNT): Move fallback to lib/acl-internal.h.
51596         * lib/acl-internal.h: Include <sys/acl.h> here.
51597         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
51598
51599 2008-05-22  Bruno Haible  <bruno@clisp.org>
51600
51601         Split off copy_acl function to separate file.
51602         * lib/copy-acl.c: New file, extracted from lib/acl.c.
51603         * lib/acl.c (copy_acl): Moved function to separate file.
51604         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
51605         * modules/acl (Files): Add lib/copy-acl.c.
51606         (Makefiles.am): Augment lib_SOURCES.
51607
51608 2008-05-22  Bruno Haible  <bruno@clisp.org>
51609
51610         * modules/copy-file-tests: New file.
51611         * tests/test-copy-file.sh: New file.
51612         * tests/test-copy-file.c: New file.
51613         * tests/test-copy-file-sameacls.c: New file.
51614
51615 2008-05-22  Eric Blake  <ebb9@byu.net>
51616
51617         Avoid gcc warning.
51618         * tests/test-memcmp.c (main): Pass NULL indirectly.
51619
51620 2008-05-21  Bruno Haible  <bruno@clisp.org>
51621
51622         Add reference doc about ACLs.
51623         * doc/acl-resources.txt: New file.
51624         * doc/acl-cygwin.txt: New file.
51625
51626 2008-05-21  Bruno Haible  <bruno@clisp.org>
51627
51628         Avoid one more warning from gcc.
51629         * lib/vasnprintf.c (IF_LINT): Update comments.
51630         (VASNPRINTF): Use it also for the 'prefix' array initializer.
51631
51632 2008-05-21  Jim Meyering  <meyering@redhat.com>
51633
51634         avoid a warning from gcc
51635         * lib/vasnprintf.c (IF_LINT): Define.
51636         (scale10_round_decimal_long_double):
51637         Use it to avoid a "may be used uninitialized" warning.
51638         (scale10_round_decimal_double): Likewise.
51639
51640 2008-05-21  Simon Josefsson  <simon@josefsson.org>
51641
51642         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
51643         declared.
51644
51645 2008-05-20  Bruno Haible  <bruno@clisp.org>
51646
51647         * tests/test-memcmp.c (main): Test also the sign of the result. Test
51648         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
51649
51650 2008-05-20  Simon Josefsson  <simon@josefsson.org>
51651
51652         * modules/memcmp-tests: New file.
51653         * tests/test-memcmp.c: New file.
51654
51655 2008-05-19  Bruno Haible  <bruno@clisp.org>
51656
51657         * modules/propername (Notice, configure.ac): Put quoted "..." into
51658         --keyword option.
51659         * lib/propername.h: Update comments accordingly.
51660         Reported by Eric Blake.
51661
51662 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
51663
51664         * modules/getpass-gnu (Depends-on): Add fseeko.
51665
51666 2008-05-19  Simon Josefsson  <simon@josefsson.org>
51667
51668         * modules/base64-tests: New file.
51669
51670 2008-05-19  Bo Borgerson <gigabo@gmail.com>
51671
51672         * lib/base64.c (base64_decode_ctx): If a decode context structure
51673         was passed in use it to ignore newlines.  If a context structure
51674         was _not_ passed in, continue to treat newlines as garbage (this
51675         is the historical behavior).  Formerly base64_decode.
51676         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
51677         takes a decode context structure.
51678         * lib/base64.h (base64_decode): Macro for four-argument calls.
51679         (base64_decode_alloc): Likewise.
51680         * lib/base64.c (base64_decode_ctx): If a decode context structure
51681         was passed in use it to ignore newlines.  If a context structure
51682         was _not_ passed in, continue to treat newlines as garbage (this
51683         is the historical behavior).  Formerly base64_decode.
51684         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
51685         takes a decode context structure.
51686         * lib/base64.h (base64_decode): Macro for four-argument calls.
51687         (base64_decode_alloc): Likewise.
51688
51689 2008-05-19  Jim Meyering  <meyering@redhat.com>
51690
51691         avoid a warning from gcc
51692         * lib/trim.c (IF_LINT): Define.
51693         (trim2): Use it to avoid a "may be used uninitialized" warning.
51694
51695         Fix doc typo.
51696         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
51697
51698 2008-05-19  Bruno Haible  <bruno@clisp.org>
51699
51700         * doc/glibc-functions/getpass.texi: Document limits of other
51701         implementations.
51702
51703 2008-05-19  Simon Josefsson  <simon@josefsson.org>
51704             Bruno Haible <bruno@clisp.org>
51705
51706         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
51707
51708 2008-05-18  Bruno Haible  <bruno@clisp.org>
51709
51710         * modules/propername: New file, from GNU gettext.
51711         * lib/propername.h: New file, from GNU gettext.
51712         * lib/propername.c: New file, from GNU gettext.
51713         * MODULES.html.sh (Internationalization functions): Add propername.
51714
51715 2008-05-16  Jim Meyering  <meyering@redhat.com>
51716             Bruno Haible  <bruno@clisp.org>
51717
51718         Avoid some warnings from "gcc -Wshadow".
51719         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
51720
51721 2008-05-15  Eric Blake  <ebb9@byu.net>
51722
51723         Extend previous patch to cygwin 1.7.0.
51724         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
51725         fast implementation in cygwin >= 1.7.0.
51726         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51727         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51728
51729 2008-05-15  Bruno Haible  <bruno@clisp.org>
51730
51731         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
51732         implementation in glibc >= 2.9.
51733         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51734         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51735
51736 2008-05-15  Bruno Haible  <bruno@clisp.org>
51737
51738         * MODULES.html.sh (Internationalization functions): Remove linebreak.
51739         (Unicode string functions): Add unilbrk/*.
51740         Reported by Karl Berry.
51741
51742 2008-05-15  Eric Blake  <ebb9@byu.net>
51743
51744         Fix violation of <stdbool.h> replacement in regex.
51745         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
51746         * lib/regexec.c (re_search_internal): Likewise.
51747         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
51748
51749 2008-05-15  Jim Meyering  <meyering@redhat.com>
51750
51751         avoid distracting test output when git or cvs is not found
51752         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
51753         * tests/test-vc-list-files-git.sh: Likewise.
51754
51755 2008-05-15  Eric Blake  <ebb9@byu.net>
51756
51757         Glibc finally accepted the memmem speedup code, bugzilla #5514.
51758         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
51759         glibc version.
51760         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
51761         * doc/posix-functions/strstr.texi (strstr): Likewise.
51762         * lib/str-two-way.h (MAX): Sychronize with glibc.
51763
51764 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
51765
51766         * lib/regcomp.c (optimize_utf8): Add a note on why we test
51767         opr.ctx_type.
51768         (calc_first): Initialize constraint field.
51769         (duplicate_node_closure): Use it instead of special casing ANCHORS.
51770         Fix grammar.
51771         (duplicate_node): Merge constraint field for all node types.
51772         (calc_eclosure_iter): Look at constraint field for all node types.
51773         * lib/regex_internal.c (create_cd_newstate): Don't look at
51774         opr.ctx_type.
51775
51776 2008-05-14  Bruno Haible  <bruno@clisp.org>
51777
51778         Help GCC to do better code generation.
51779         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
51780         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
51781         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
51782         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
51783         Declare with attribute 'malloc' if supported.
51784
51785 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
51786
51787         use "echo STR|wc -c" rather than unportable "expr length STR"
51788         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
51789         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
51790
51791 2008-05-14  Jim Meyering  <meyering@redhat.com>
51792
51793         use dd ibs=$n count=1 ... rather than less-portable head -c$n
51794         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
51795         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
51796         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
51797         via Collin Lasse.
51798
51799 2008-05-14  Eric Blake  <ebb9@byu.net>
51800
51801         Avoid quadratic growth in gl_LIBSOURCES.
51802         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
51803         Suggested by Bruno Haible.
51804
51805         Test xmemdup0.
51806         * modules/xmemdup0-tests: New file.
51807         * tests/test-xmemdup0.c: Likewise.
51808
51809 2008-05-13  Eric Blake  <ebb9@byu.net>
51810
51811         Split xmemdup0 into its own module.
51812         * modules/xmemdup0: New file.
51813         * lib/xmemdup0.h: Likewise.
51814         * lib/xmemdup0.c: Likewise.
51815         * MODULES.html.sh (Memory management functions): Add xmemdup0.
51816         * lib/xalloc.h (xmemdup0): Remove.
51817         * lib/xmalloc.c (xmemdup0): Likewise.
51818
51819 2008-05-13  Eric Blake  <ebb9@byu.net>
51820             Bruno Haible  <bruno@clisp.org>
51821
51822         Reduce number of forks required during autoconf.
51823         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
51824         and gl_LIBSOURCES_DIR.
51825         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
51826         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
51827         m4_syscmd per file.
51828         <m4_foreach_w>: Move...
51829         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
51830
51831 2008-05-13  Eric Blake  <ebb9@byu.net>
51832
51833         * gnulib-tool: Fix various comment typos.
51834
51835 2008-05-12  Bruno Haible  <bruno@clisp.org>
51836
51837         Tailor the linebreaking algorithm.
51838         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
51839
51840 2008-05-12  Bruno Haible  <bruno@clisp.org>
51841
51842         Update to Unicode 5.0.0.
51843         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
51844         LBP_JV, LBP_JT. Redistribute values.
51845         (unilbrk_table): Change size.
51846         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
51847         Unicode TR#14 rev. 22.
51848         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
51849         LBP_JV, LBP_JT. Redistribute values.
51850         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
51851         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
51852         Update.
51853         * lib/unilbrk/lbrkprop1.h: Regenerated.
51854         * lib/unilbrk/lbrkprop2.h: Regenerated.
51855         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
51856         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
51857         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
51858         Likewise.
51859         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
51860         Likewise.
51861         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
51862         result.
51863         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
51864         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
51865         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
51866         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
51867         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
51868         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
51869
51870 2008-05-11  Bruno Haible  <bruno@clisp.org>
51871
51872         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
51873
51874 2008-05-11  Bruno Haible  <bruno@clisp.org>
51875
51876         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
51877         * modules/unilbrk/gen-lbrk: New file.
51878
51879 2008-05-11  Bruno Haible  <bruno@clisp.org>
51880
51881         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
51882         * m4/sha512.m4 (gl_SHA512): Likewise.
51883
51884 2008-05-11  Jim Meyering  <meyering@redhat.com>
51885
51886         New modules: crypto/sha256, crypto/sha512 (from coreutils)
51887         * modules/crypto/sha256: New file.
51888         * modules/crypto/sha512: Likewise.
51889         * lib/sha256.c: Likewise.
51890         * lib/sha256.h: Likewise.
51891         * lib/sha512.c: Likewise.
51892         * lib/sha512.h: Likewise.
51893         * lib/u64.h: Likewise.
51894         * m4/sha256.m4: Likewise.
51895         * m4/sha512.m4: Likewise.
51896         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
51897
51898 2008-05-10  Bruno Haible  <bruno@clisp.org>
51899
51900         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
51901         (Input/Output <stdio.h>): Add xprintf.
51902         (Signal handling <signal.h>): Add strsignal.
51903         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
51904         (Core language properties): Add func.
51905         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
51906         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
51907         strings.
51908         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
51909         (Input/output): New section.
51910         (File system functions): Add openat-die, stat-macros.
51911         (Networking functions): Add sockets.
51912         (Unicode string functions): Add unictype/*.
51913         (Support for building libraries and executables): Add gperf.
51914         (Support for building documentation): Add agpl-3.0.
51915         (Misc): Add nocrash.
51916
51917 2008-05-10  Bruno Haible  <bruno@clisp.org>
51918
51919         * modules/unictype/gen-ctype: New file.
51920
51921 2008-05-10  Jim Meyering  <meyering@redhat.com>
51922
51923         Make chdir-safer.c more efficient on a system with no symlinks.
51924         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
51925         also if ELOOP is zero.  Suggested by Bruno Haible.
51926
51927         Make chdir-safer.c slightly safer.
51928         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
51929         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
51930
51931         Avoid compile failure on systems without ELOOP (like mingw).
51932         * lib/chdir-safer.c (ELOOP): Define if not already defined.
51933         Reported by Bruno Haible.
51934
51935 2008-05-10  Bruno Haible  <bruno@clisp.org>
51936
51937         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
51938         (is_utf8_encoding): Use a case-insensitive comparison.
51939         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
51940         streq.
51941
51942 2008-05-10  Bruno Haible  <bruno@clisp.org>
51943
51944         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
51945         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
51946         * lib/unilbrk/ulc-common.h (iconv_string_length,
51947         iconv_string_keeping_offsets): Remove declarations.
51948         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
51949         Don't include <iconv.h>, streq.h, xsize.h.
51950         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
51951         conversion.
51952         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
51953         <iconv.h>, streq.h, xsize.h.
51954         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
51955         conversion.
51956         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
51957         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
51958         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
51959         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
51960
51961 2008-05-10  Bruno Haible  <bruno@clisp.org>
51962
51963         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
51964         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
51965
51966         * modules/unilbrk/u32-width-linebreaks-tests: New file.
51967         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
51968
51969         * modules/unilbrk/u16-width-linebreaks-tests: New file.
51970         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
51971
51972         * modules/unilbrk/u8-width-linebreaks-tests: New file.
51973         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
51974
51975         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
51976         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
51977
51978         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
51979         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
51980
51981         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
51982         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
51983
51984         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
51985         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
51986
51987 2008-05-10  Bruno Haible  <bruno@clisp.org>
51988
51989         Split up 'linebreak' module.
51990         * lib/unilbrk.h: New file, based on lib/linebreak.h.
51991         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
51992         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
51993         modifications.
51994         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
51995         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
51996         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
51997         lib/linebreak.c.
51998         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
51999         lib/linebreak.c.
52000         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
52001         lib/linebreak.c.
52002         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
52003         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
52004         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
52005         lib/linebreak.c.
52006         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
52007         lib/linebreak.c.
52008         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
52009         lib/linebreak.c.
52010         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
52011         lib/linebreak.c.
52012         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
52013         lib/linebreak.c.
52014         * modules/unilbrk/base: New file.
52015         * modules/unilbrk/tables: New file.
52016         * modules/unilbrk/u8-possible-linebreaks: New file.
52017         * modules/unilbrk/u16-possible-linebreaks: New file.
52018         * modules/unilbrk/u32-possible-linebreaks: New file.
52019         * modules/unilbrk/ulc-common: New file.
52020         * modules/unilbrk/ulc-possible-linebreaks: New file.
52021         * modules/unilbrk/u8-width-linebreaks: New file.
52022         * modules/unilbrk/u16-width-linebreaks: New file.
52023         * modules/unilbrk/u32-width-linebreaks: New file.
52024         * modules/unilbrk/ulc-width-linebreaks: New file.
52025         * lib/linebreak.h: Remove file.
52026         * lib/linebreak.c: Remove file.
52027         * m4/linebreak.m4: Remove file.
52028         * modules/linebreak: Remove file.
52029         * NEWS: Mention the changes.
52030
52031 2008-05-09  Eric Blake  <ebb9@byu.net>
52032
52033         Add xmemdup0.
52034         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
52035         implementation.
52036         * lib/xmalloc.c (xmemdup0): New C implementation.
52037
52038 2008-05-08  Bruno Haible  <bruno@clisp.org>
52039
52040         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
52041
52042 2008-05-07  Eric Blake  <ebb9@byu.net>
52043
52044         Support cross-compilation of <wctype.h>.
52045         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
52046         AC_CACHE_CHECK.
52047
52048 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
52049
52050         * build-aux/vc-list-files: Add support for bzr.
52051
52052 2008-05-03  Jim Meyering  <meyering@redhat.com>
52053
52054         avoid failed assertion with tight malloc
52055         * tests/test-getndelim2.c: Correct an off-by-one assertion.
52056
52057 2008-05-03  Simon Josefsson  <simon@josefsson.org>
52058
52059         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
52060         are needed from arpa/inet.h.
52061         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
52062         Reported by Bruno Haible.
52063
52064 2008-05-02  Jim Meyering  <meyering@redhat.com>
52065
52066         avoid compilation error on FreeBSD 6
52067         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
52068
52069 2008-05-01  Jim Meyering  <meyering@redhat.com>
52070
52071         useless-if-before-free: correct --help's exit status description
52072         * build-aux/useless-if-before-free (usage): Like grep, exit 0
52073         for one or more matches, etc.  Reported by Bruno Haible.
52074
52075         vc-list-files: make the stand-alone gnulib test work
52076         * modules/vc-list-files-tests (configure.ac):
52077         Define and AC_SUBST abs_aux_dir.
52078         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
52079         $(abs_top_srcdir) to each script and having each of them
52080         duplicate the work of setting PATH, set PATH here, using
52081         the new variable, abs_aux_dir instead.
52082         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
52083         * tests/test-vc-list-files-git.sh: Likewise.
52084         Reported by Bruno Haible.
52085
52086 2008-05-01  Bruno Haible  <bruno@clisp.org>
52087
52088         * lib/getndelim2.c (getndelim2): Fix newsize computation during
52089         reallocation. Rename 'done' to 'found_delimiter'.
52090
52091 2008-05-01  Jim Meyering  <meyering@redhat.com>
52092
52093         vc-list-files: accommodate /bin/sh like the one from Solaris 10
52094         * build-aux/vc-list-files: Use `...`, not $(...).
52095
52096 2008-04-30  Jim Meyering  <meyering@redhat.com>
52097
52098         add tests for vc-list-files
52099         * modules/vc-list-files-tests: New module.
52100         * tests/test-vc-list-files-cvs.sh: New file.
52101         * tests/test-vc-list-files-git.sh: New file.
52102
52103         avoid a warning from gcc
52104         * lib/getndelim2.c (IF_LINT): Define.
52105         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
52106
52107         vc-list-files: work properly with build-aux/cvsu, too
52108         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
52109         to all cvs-based clauses.
52110
52111         vc-list-files: work properly in the CVS+awk case, too
52112         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
52113
52114         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
52115         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
52116         take more than one file argument, so .  Add quotes, just in case $dir
52117         ever contains a shell meta-character.  Prompted by Soren Hansen in
52118         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
52119
52120 2008-04-29  Eric Blake  <ebb9@byu.net>
52121
52122         Optimize getndelim2 to use block operations when possible.
52123         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
52124         freadseek, and memchr2.
52125         * lib/getndelim2.c (getndelim2): Use them for block reads.
52126
52127 2008-04-29  Bruno Haible  <bruno@clisp.org>
52128
52129         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
52130         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52131         * modules/inet_ntop (Depends-on): Add extensions.
52132         * modules/inet_pton (Depends-on): Likewise.
52133         Reported by Simon Josefsson.
52134
52135 2008-04-29  Jim Meyering  <meyering@redhat.com>
52136
52137         When the is more than one match in a block, match all of them.
52138         * build-aux/useless-if-before-free: Iterate through each block
52139         until there are no more matches.
52140
52141         Fix broken useless-if-before-free script.
52142         * build-aux/useless-if-before-free: Fix typo: missing "?" after
52143         the expression to match cast of argument to free-like function.
52144
52145 2008-04-29  Eric Blake  <ebb9@byu.net>
52146
52147         Use new header.
52148         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
52149
52150 2008-04-29  Jim Meyering  <meyering@redhat.com>
52151
52152         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
52153         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
52154         by gnulib to exist and to declare e.g., inet_ntop.
52155         Don't include "inet_ntop.h", now removed.
52156
52157         * m4/arpa_inet_h.m4: Remove trailing blanks.
52158
52159 2008-04-29  Eric Blake  <ebb9@byu.net>
52160
52161         Silence valgrind on safe reads beyond potential array bounds.
52162         * lib/rawmemchr.valgrind: New file.
52163         * lib/strchrnul.valgrind: Likewise.
52164         * modules/rawmemchr (Files): Distribute new file.
52165         * modules/strchrnul (Files): Likewise.
52166         Suggested by Bruno Haible.
52167
52168 2008-04-29  Bruno Haible  <bruno@clisp.org>
52169
52170         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
52171         (inet_ntop, inet_pton): Change portability warning's wording.
52172         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
52173         Invoke gl_CHECK_NEXT_HEADERS.
52174         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
52175         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
52176         set ARPA_INET_H.
52177         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
52178         * modules/arpa_inet (Description): No longer only for systems that
52179         lack it.
52180         (Depends-on): Add include_next.
52181         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
52182         HAVE_ARPA_INET_H.
52183
52184 2008-04-29  Jim Meyering  <meyering@redhat.com>
52185
52186         * modules/mkdir (License): Re-license as LGPLv2+.
52187
52188 2008-04-29  Bruno Haible  <bruno@clisp.org>
52189
52190         * modules/rawmemchr (Maintainer): Set to Eric.
52191         * modules/strchrnul (Maintainer): Likewise.
52192
52193 2008-04-29  Simon Josefsson  <simon@josefsson.org>
52194
52195         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
52196         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
52197
52198         * modules/arpa_inet (arpa/inet.h): Use them.
52199
52200 2008-04-28  Eric Blake  <ebb9@byu.net>
52201
52202         Test getndelim2.
52203         * modules/getndelim2-tests: New file.
52204         * tests/test-getndelim2.c: Likewise.
52205         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
52206         stream.
52207         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
52208
52209         * MODULES.html.sh: Document new module.
52210
52211 2008-04-20  Bruno Haible  <bruno@clisp.org>
52212
52213         * lib/c-stack.c (die): Use raise.
52214         * modules/c-stack (Depends-on): Add raise.
52215
52216 2008-04-28  Bruno Haible  <bruno@clisp.org>
52217
52218         Expect rpmatch to be declared.
52219         * lib/yesno.c (rpmatch): Remove declaration.
52220
52221         Declare rpmatch.
52222         * lib/stdlib.in.h (rpmatch): New declaration.
52223         * lib/rpmatch.c: Include <stdlib.h> first.
52224         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
52225         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
52226         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
52227         HAVE_RPMATCH.
52228         * modules/rpmatch (Depends-on): Add stdlib, extensions.
52229         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52230         (Include): Set to <stdlib.h>.
52231         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
52232         HAVE_RPMATCH.
52233         * NEWS: Document the change.
52234
52235 2008-04-28  Bruno Haible  <bruno@clisp.org>
52236
52237         Change rpmatch to use nl_langinfo when appropriate.
52238         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
52239         (N_): New macro.
52240         (localized_pattern): New function/macro.
52241         (try): Remove match, nomatch arguments. Copy the pattern into safe
52242         memory before caching it.
52243         (rpmatch): Use localized_pattern. Add translator comments.
52244         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
52245         Suggested by Eric Blake.
52246         * modules/rpmatch (Depends-on): Add stdbool.
52247
52248 2008-04-28  Eric Blake  <ebb9@byu.net>
52249
52250         Add rawmemchr module, matching glibc.
52251         * modules/string (Makefile.am): New indicator.
52252         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
52253         * lib/string.in.h (rawmemchr): Declare when appropriate.
52254         * modules/rawmemchr: New file.
52255         * m4/rawmemchr.m4: Likewise.
52256         * lib/rawmemchr.c: Likewise.
52257         * modules/rawmemchr-tests: Likewise.
52258         * tests/test-rawmemchr.c: Likewise.
52259         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
52260         module.
52261         * modules/strchrnul (Depends-on): Add rawmemchr.
52262         * lib/strchrnul.c (strchrnul): Optimize a corner case.
52263
52264         Whitespace cleanup.
52265         * tests/test-strchrnul.c: Reindent.
52266         * lib/strchrnul.c: Likewise.
52267
52268         Optimize and test strchrnul.
52269         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
52270         * modules/strchrnul-tests: New file.
52271         * tests/test-strchrnul.c: Likewise.
52272
52273         Remove intprops dependency.
52274         * modules/memchr (Depends-on): Remove intprops.
52275         * modules/memrchr (Depends-on): Likewise.
52276         * modules/memchr2 (Depends-on): Likewise.
52277         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
52278         * lib/memrchr.c (__memrchr): Likewise.
52279         * lib/memrchr2.c (memchr2): Likewise.
52280         Reported by Simon Josefsson.
52281
52282 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52283
52284         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
52285         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52286
52287 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52288
52289         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
52290
52291         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
52292
52293         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
52294
52295         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
52296         declarations.
52297         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
52298
52299         * m4/inet_pton.m4: Don't check for header files.
52300
52301         * m4/inet_ntop.m4: Don't check for header files.
52302
52303 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52304
52305         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
52306         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
52307         trigger for cygwin).
52308         Reported by Bruno Haible  <bruno@clisp.org>.
52309
52310 2008-04-28  Bruno Haible  <bruno@clisp.org>
52311
52312         * doc/posix-functions/strdup.texi: Mention mingw problem.
52313
52314 2008-04-27  Bruno Haible  <bruno@clisp.org>
52315
52316         * modules/stat-time-tests (Depends-on): Add sleep.
52317         * tests/test-stat-time.c (force_unlink): New function.
52318         (cleanup): Use it.
52319         (test_mtime): Remove the ctime related tests.
52320         (test_ctime): New function, containing the ctime related tests.
52321         (main): Call test_ctime, except on native Windows platforms.
52322
52323 2008-04-27  Bruno Haible  <bruno@clisp.org>
52324
52325         * lib/rpmatch.c (rpmatch): Add some comments.
52326         Reported by James Youngman <jay@gnu.org>.
52327
52328 2008-04-27  Bruno Haible  <bruno@clisp.org>
52329
52330         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
52331         quiet NaNs.
52332
52333 2008-04-27  Bruno Haible  <bruno@clisp.org>
52334
52335         Make test-yesno.sh work on mingw.
52336         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
52337         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
52338         (main): Set stdin to binary mode.
52339         * modules/yesno-tests (Depends-on): Add binary-io.
52340
52341 2008-04-27  Bruno Haible  <bruno@clisp.org>
52342
52343         Fix 'isfinite' on x86, x86_64, ia64 platforms.
52344         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
52345         argument that lie outside the IEEE 854 domain.
52346         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
52347         (gl_ISFINITE): Use it.
52348         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
52349
52350 2008-04-27  Bruno Haible  <bruno@clisp.org>
52351
52352         Allow local renaming in config.h.
52353         * lib/memrchr.c (memrchr): Don't undefine outside libc.
52354
52355 2008-04-27  Bruno Haible  <bruno@clisp.org>
52356
52357         * lib/memchr.c (__memchr): Change type of 'i'.
52358         * lib/memchr2.c (memchr2): Likewise.
52359
52360 2008-04-26  Eric Blake  <ebb9@byu.net>
52361         and Bruno Haible  <bruno@clisp.org>
52362
52363         Optimize and test memrchr.
52364         * modules/memrchr (Depends-on): Add intprops.
52365         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
52366         * modules/memrchr-tests: New file.
52367         * tests/test-memrchr.c: New file.
52368
52369 2008-04-26  Bruno Haible  <bruno@clisp.org>
52370
52371         Add tentative support for DragonFly BSD.
52372         * lib/stdio-impl.h: Add macros for DragonFly BSD.
52373         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
52374         fp.
52375         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
52376         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
52377         * lib/fpurge.c (fpurge): Likewise.
52378         * lib/freadable.c (freaadable): Likewise.
52379         * lib/freadahead.c (freadahead): Likewise.
52380         * lib/freading.c (freading): Likewise.
52381         * lib/freadptr.c (freadptr): Likewise.
52382         * lib/freadseek.c (freadptrinc): Likewise.
52383         * lib/fseeko.c (fseeko): Likewise.
52384         * lib/fseterr.c (fseterr): Likewise.
52385         * lib/fwritable.c (fwritable): Likewise.
52386         * lib/fwriting.c (fwriting): Likewise.
52387
52388 2008-04-26  Bruno Haible  <bruno@clisp.org>
52389
52390         * lib/stdio-impl.h: New file.
52391         * lib/fbufmode.c: Include stdio-impl.h.
52392         (fbufmode): Use fp_, remove redundant #defines.
52393         * lib/fflush.c: Include stdio-impl.h.
52394         (clear_ungetc_buffer): Remove redundant #defines.
52395         * lib/fpurge.c: Include stdio-impl.h.
52396         (fpurge): Remove redundant #defines.
52397         * lib/freadable.c: Include stdio-impl.h.
52398         (freadable): Remove redundant #defines.
52399         * lib/freadahead.c: Include stdio-impl.h.
52400         (freadahead): Remove redundant #defines.
52401         * lib/freading.c: Include stdio-impl.h.
52402         (freading): Remove redundant #defines.
52403         * lib/freadptr.c: Include stdio-impl.h.
52404         (freadptr): Remove redundant #defines.
52405         * lib/freadseek.c: Include stdio-impl.h.
52406         (freadptrinc): Remove redundant #defines.
52407         * lib/fseeko.c: Include stdio-impl.h.
52408         (rpl_fseeko): Remove redundant #defines.
52409         * lib/fseterr.c: Include stdio-impl.h.
52410         (fseterr): Remove redundant #defines.
52411         * lib/fwritable.c: Include stdio-impl.h.
52412         (fwritable: Remove redundant #defines.
52413         * lib/fwriting.c: Include stdio-impl.h.
52414         (fwriting): Remove redundant #defines.
52415         * modules/fbufmode (Files): Add lib/stdio-impl.h.
52416         * modules/fflush (Files): Likewise.
52417         * modules/fpurge (Files): Likewise.
52418         * modules/freadable (Files): Likewise.
52419         * modules/freadahead (Files): Likewise.
52420         * modules/freading (Files): Likewise.
52421         * modules/freadptr (Files): Likewise.
52422         * modules/freadseek (Files): Likewise.
52423         * modules/fseeko (Files): Likewise.
52424         * modules/fseterr (Files): Likewise.
52425         * modules/fwritable (Files): Likewise.
52426         * modules/fwriting (Files): Likewise.
52427
52428 2008-04-26  Bruno Haible  <bruno@clisp.org>
52429
52430         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
52431         restore_seek_optimization, update_fpos_cache): New functions, extracted
52432         from rpl_fflush.
52433         (rpl_fflush): Use them.
52434         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
52435         (gl_REPLACE_FFLUSH): Use it.
52436
52437 2008-04-26  Bruno Haible  <bruno@clisp.org>
52438
52439         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
52440         on Solaris.
52441         * tests/test-xstrtoimax.sh: Likewise.
52442         * tests/test-xstrtoumax.sh: Likewise.
52443         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52444
52445 2008-04-26  Bruno Haible  <bruno@clisp.org>
52446
52447         * modules/memchr-tests: New file.
52448         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
52449
52450 2008-04-26  Eric Blake  <ebb9@byu.net>
52451             Bruno Haible  <bruno@clisp.org>
52452
52453         * lib/memchr.c: Include intprops.h.
52454         (__memchr): Optimize parallel detection of matching bytes. Rename local
52455         variables. Add explanatory comments.
52456
52457 2008-04-26  Bruno Haible  <bruno@clisp.org>
52458
52459         Fix module 'memchr', broken since 2000-10-28.
52460         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
52461
52462 2008-04-26  Bruno Haible  <bruno@clisp.org>
52463
52464         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
52465         comments.
52466
52467 2008-04-25  Eric Blake  <ebb9@byu.net>
52468
52469         Use native fstatat on cygwin 1.7.0.
52470         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
52471         first.
52472
52473 2008-04-23  Eric Blake  <ebb9@byu.net>
52474
52475         Improve memchr2 performance.
52476         * lib/memchr2.c (memchr2): Further optimize parallel detection of
52477         NUL bytes.
52478         * modules/memchr2 (Depends-on): Use intprops.h.
52479
52480 2008-04-23  Simon Josefsson  <simon@josefsson.org>
52481
52482         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
52483         an inline function instead of a CPP macro.  Patch by Ben Pfaff
52484         <blp@cs.stanford.edu>.
52485
52486 2008-04-23  Simon Josefsson  <simon@josefsson.org>
52487
52488         * lib/arpa_inet.in.h: New file.
52489
52490         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
52491         (Makefile.am): Sed in substitute header file.
52492
52493         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
52494         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
52495
52496         * modules/inet_ntop (configure.ac): Use
52497         gl_ARPA_INET_MODULE_INDICATOR.
52498
52499         * modules/inet_pton (configure.ac): Use
52500         gl_ARPA_INET_MODULE_INDICATOR.
52501
52502 2008-04-22  Jim Meyering  <meyering@redhat.com>
52503
52504         * modules/verify (License): Re-license as LGPLv2+.
52505
52506 2008-04-22  Simon Josefsson  <simon@josefsson.org>
52507
52508         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
52509         parameter to void* as per POSIX standard (MinGW uses char*).
52510
52511 2008-04-21  Bruno Haible  <bruno@clisp.org>
52512
52513         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
52514         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
52515         Define to replacements if REPLACE_ISWCNTRL is 1.
52516         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
52517         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
52518         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
52519         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
52520         what it fixes.
52521         * doc/posix-functions/iswalpha.texi: Likewise.
52522         * doc/posix-functions/iswblank.texi: Likewise.
52523         * doc/posix-functions/iswcntrl.texi: Likewise.
52524         * doc/posix-functions/iswdigit.texi: Likewise.
52525         * doc/posix-functions/iswgraph.texi: Likewise.
52526         * doc/posix-functions/iswlower.texi: Likewise.
52527         * doc/posix-functions/iswprint.texi: Likewise.
52528         * doc/posix-functions/iswpunct.texi: Likewise.
52529         * doc/posix-functions/iswspace.texi: Likewise.
52530         * doc/posix-functions/iswupper.texi: Likewise.
52531         * doc/posix-functions/iswxdigit.texi: Likewise.
52532         Reported by Alain Guibert.
52533
52534 2008-04-21  Bruno Haible  <bruno@clisp.org>
52535
52536         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
52537         Patch by Alain Guibert.
52538
52539 2008-04-21  Bruno Haible  <bruno@clisp.org>
52540
52541         Fix test failures on mingw.
52542         * tests/test-xstrtol.c (print_no_progname): New function.
52543         (main): Install it in error_print_progname hook.
52544         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
52545         * tests/test-xstrtoimax.sh: Likewise.
52546         * tests/test-xstrtoumax.sh: Likewise.
52547
52548 2008-04-21  Bruno Haible  <bruno@clisp.org>
52549
52550         Fix test failure on mingw.
52551         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
52552
52553 2008-04-21  Bruno Haible  <bruno@clisp.org>
52554
52555         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
52556         Actually assign a value.
52557
52558 2008-04-20  Bruno Haible  <bruno@clisp.org>
52559
52560         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
52561         take 2.
52562         * lib/canonicalize.c (canonicalize_file_name): Elide if the
52563         'canonicalize-lgpl' module is also used.
52564         * lib/canonicalize-lgpl.c: Undo last change.
52565         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
52566
52567 2008-04-20  Bruno Haible  <bruno@clisp.org>
52568
52569         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
52570         config.h. Provide _mkdir based fallback for mingw.
52571         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
52572         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
52573         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
52574         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
52575         rather than defining mkdir in config.h.
52576         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
52577         (gl_SYS_STAT_H_DEFAULTS): New macro.
52578         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
52579         HAVE_IO_H any more.
52580         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
52581         HAVE_DECL_MKDIR and HAVE_IO_H.
52582
52583 2008-04-20  Bruno Haible  <bruno@clisp.org>
52584
52585         * lib/isapipe.c: Port to native Windows platforms.
52586
52587 2008-04-20  Bruno Haible  <bruno@clisp.org>
52588
52589         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
52590
52591 2008-04-21  Eric Blake  <ebb9@byu.net>
52592
52593         Work around preprocessors that don't handle UINTMAX_MAX.
52594         * lib/memchr2.c (memchr2): Avoid embedded #if.
52595         Reported by Alain Guibert, fix suggested by Bruno Haible.
52596
52597 2008-04-21  Simon Josefsson  <simon@josefsson.org>
52598
52599         * doc/posix-functions/strftime.texi (strftime): Explain better
52600         Windows incompatibility.  Suggested by Micah Cowan
52601         <micah@cowan.name>.
52602
52603 2008-04-20  Bruno Haible  <bruno@clisp.org>
52604
52605         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
52606         unistr/u8-mblen.
52607
52608 2008-04-20  Bruno Haible  <bruno@clisp.org>
52609
52610         Fix test failure on platforms with non-GNU iconv.
52611         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
52612         (U_TO_U8): Use it, rather than u16_to_u8.
52613         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
52614         units at the end of the input string.
52615         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
52616
52617 2008-04-20  Bruno Haible  <bruno@clisp.org>
52618
52619         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
52620         when the resulting length is 0.
52621         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
52622
52623 2008-04-20  Bruno Haible  <bruno@clisp.org>
52624
52625         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
52626         works.
52627         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
52628
52629 2008-04-20  Bruno Haible  <bruno@clisp.org>
52630
52631         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
52632         * modules/tsearch-tests (configure.ac): Test for initstate function.
52633
52634 2008-04-20  Bruno Haible  <bruno@clisp.org>
52635
52636         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
52637         for nlink_t if missing.
52638         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
52639
52640 2008-04-19  Bruno Haible  <bruno@clisp.org>
52641
52642         Work around snprintf bug on Linux libc5.
52643         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
52644         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52645         gl_SNPRINTF_SIZE1.
52646         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52647         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
52648         that test failed.
52649         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
52650         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
52651         * modules/snprintf (Files): Add m4/printf.m4.
52652         * modules/vsnprintf (Files): Likewise.
52653         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
52654         * doc/posix-functions/vsnprintf.texi: Likewise.
52655
52656 2008-04-19  Bruno Haible  <bruno@clisp.org>
52657
52658         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
52659         from 0.0058 to less than 10^-7.
52660
52661 2008-04-19  Bruno Haible  <bruno@clisp.org>
52662
52663         Fix rounding when a precision is given.
52664         * lib/vasnprintf.c (is_borderline): New function.
52665         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
52666         9...9x.
52667         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
52668         %e, %g.
52669         * tests/test-vasprintf-posix.c (test_function): Likewise.
52670         * tests/test-snprintf-posix.h (test_function): Likewise.
52671         * tests/test-sprintf-posix.h (test_function): Likewise.
52672         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
52673         * tests/test-printf-posix.h (test_function): Likewise.
52674         * tests/test-printf-posix.output: Update.
52675         Reported by John Darrington <john@darrington.wattle.id.au> via
52676         Ben Pfaff <blp@cs.stanford.edu>.
52677
52678 2008-04-18  Simon Josefsson  <simon@josefsson.org>
52679
52680         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
52681         Suggested by Bruno Haible <bruno@clisp.org>.
52682
52683 2008-04-17  Bruno Haible  <bruno@clisp.org>
52684
52685         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
52686         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
52687         implementation.
52688         Patch by Bruce Merry <bmerry@gmail.com>.
52689
52690 2008-04-17  Simon Josefsson  <simon@josefsson.org>
52691
52692         * doc/posix-functions/strftime.texi (strftime): Mention that %e
52693         doesn't work under Windows.
52694
52695 2008-04-16  Bruno Haible  <bruno@clisp.org>
52696
52697         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
52698         New macros.
52699         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
52700         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
52701         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
52702         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
52703         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
52704         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
52705         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
52706         macros.
52707         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
52708         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
52709         Northern Sotho, Uighur.
52710
52711 2008-04-16  Bruno Haible  <bruno@clisp.org>
52712
52713         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
52714         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
52715         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
52716         Reported by Daniel Bergström <daniel@octocode.com>.
52717
52718 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
52719             Bruno Haible  <bruno@clisp.org>
52720
52721         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
52722         function.
52723         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
52724         New functions, mostly extracted from gl_locale_name_default.
52725         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
52726
52727 2008-04-16  Eric Blake  <ebb9@byu.net>
52728
52729         Adjust strtod detection to catch glibc 2.7 bug.
52730         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
52731         Reported by John Gatewood Ham.
52732
52733 2008-04-16  Bruno Haible  <bruno@clisp.org>
52734
52735         Add tentative support for Linux libc5.
52736         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
52737         * lib/fpurge.c (fpurge): Likewise.
52738         * lib/freadable.c (freadable): Likewise.
52739         * lib/freadahead.c (freadahead): Likewise.
52740         * lib/freading.c (freading): Likewise.
52741         * lib/freadptr.c (freadptr): Likewise.
52742         * lib/freadseek.c (freadptrinc): Likewise.
52743         * lib/fseeko.c (rpl_fseeko): Likewise.
52744         * lib/fseterr.c (fseterr): Likewise.
52745         * lib/fwritable.c (fwritable): Likewise.
52746         * lib/fwriting.c (fwriting): Likewise.
52747         Reported by Alain Guibert <alguibert+bts@free.fr>.
52748
52749 2008-04-15  Bruno Haible  <bruno@clisp.org>
52750
52751         * modules/mathl (configure.ac): Define module indicator.
52752
52753 2008-04-15  Bruno Haible  <bruno@clisp.org>
52754
52755         * lib/logl.c (logl): Remove unused variables.
52756
52757 2008-04-15  Bruno Haible  <bruno@clisp.org>
52758
52759         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
52760         fails.
52761
52762 2008-04-15  Bruno Haible  <bruno@clisp.org>
52763
52764         * lib/trim.c (trim2): Fix argument of isspace() macro.
52765
52766 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
52767
52768         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
52769         to 0.
52770         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
52771
52772 2008-04-14  Bruno Haible  <bruno@clisp.org>
52773
52774         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
52775         AC_LANG_PROGRAM argument.
52776         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
52777         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
52778         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
52779         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52780         * m4/math_h.m4 (gl_MATH_H): Likewise.
52781         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
52782         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
52783         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
52784         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
52785         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
52786         * m4/regex.m4 (gl_REGEX): Likewise.
52787         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
52788         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
52789         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52790         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
52791         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52792         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52793         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52794         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52795
52796 2008-04-14  Jim Meyering  <meyering@redhat.com>
52797
52798         test-strtod: fix typos: s/abs/fabs/
52799         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
52800
52801 2008-04-13  Bruno Haible  <bruno@clisp.org>
52802
52803         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
52804         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
52805         module is also used and while not building the reloc-wrapper.
52806
52807 2008-04-13  Bruno Haible  <bruno@clisp.org>
52808
52809         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
52810
52811 2008-04-13  Bruno Haible  <bruno@clisp.org>
52812
52813         Fix AIX compilation failure introduced on 2008-04-02.
52814         * tests/test-frexp.c (exp): Undefine before redefining.
52815         * tests/test-frexpl.c (exp): Likewise.
52816
52817 2008-04-13  Bruno Haible  <bruno@clisp.org>
52818
52819         Work around a HP-UX stdio bug.
52820         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
52821         * tests/test-ftello.c (main): Likewise.
52822         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
52823         * doc/posix-functions/ftello.texi: Likewise.
52824
52825 2008-04-13  Bruno Haible  <bruno@clisp.org>
52826
52827         Make test-signbit pass on HP-UX/hppa.
52828         * tests/test-signbit.c (minus_zerol): New variable.
52829         (test_signbitl): Use it.
52830
52831 2008-04-13  Bruno Haible  <bruno@clisp.org>
52832
52833         Make truncl work on OSF/1 4.0.
52834         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
52835         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
52836         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
52837         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
52838         HAVE_DECL_TRUNCL.
52839         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
52840         HAVE_DECL_TRUNCL.
52841         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
52842
52843 2008-04-13  Bruno Haible  <bruno@clisp.org>
52844
52845         * lib/unictype.h: Remove trailing comma from enumeration definitions.
52846
52847 2008-04-13  Bruno Haible  <bruno@clisp.org>
52848
52849         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
52850         expression, so as to avoid HP-UX 11 cc compiler bug.
52851
52852 2008-04-13  Bruno Haible  <bruno@clisp.org>
52853
52854         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
52855
52856 2008-04-13  Bruno Haible  <bruno@clisp.org>
52857
52858         * lib/git-merge-changelog.c: Remove empty declaration outside of
52859         functions.
52860
52861 2008-04-13  Bruno Haible  <bruno@clisp.org>
52862
52863         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
52864
52865 2008-04-13  Bruno Haible  <bruno@clisp.org>
52866
52867         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
52868         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
52869         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
52870         also if it exists but lacks definitions of the SHUT_* macros.
52871         * modules/sys_socket (Description): Update.
52872         Reported by Elbert Pol <e.pol@chello.nl>.
52873
52874 2008-04-13  Bruno Haible  <bruno@clisp.org>
52875
52876         * lib/localcharset.c (OS2): Don't redefine if already defined.
52877         Reported by Elbert Pol <e.pol@chello.nl>.
52878
52879 2008-04-13  Bruno Haible  <bruno@clisp.org>
52880
52881         * lib/binary-io.h [__EMX__]: Include <io.h>.
52882         Reported by Elbert Pol <e.pol@chello.nl>.
52883
52884 2008-04-12  Bruno Haible  <bruno@clisp.org>
52885
52886         * lib/fpucw.h: Enable the definitions also for x86_64.
52887         Needed for NetBSD/x86_64.
52888         Reported by Thomas Klausner <tk@giga.or.at>.
52889
52890 2008-04-12  Bruno Haible  <bruno@clisp.org>
52891
52892         * tests/test-strtod.c: Include isnand.h.
52893         (main): Use isnand instead of isnan.
52894         Reported by Jim Meyering.
52895
52896 2008-04-12  Bruno Haible  <bruno@clisp.org>
52897
52898         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
52899         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
52900
52901 2008-04-12  Jim Meyering  <meyering@redhat.com>
52902
52903         * m4/math_h.m4 (gl_MATH_H): Fix typos.
52904
52905 2008-04-12  Bruno Haible  <bruno@clisp.org>
52906
52907         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
52908         Reported by Elbert Pol <e.pol@chello.nl>.
52909
52910 2008-04-12  Eric Blake  <ebb9@byu.net>
52911
52912         Work around Solaris 10 math.h bug.
52913         * m4/math_h.m4 (gl_MATH_H): Check for bug.
52914         (gl_MATH_H_DEFAULTS): Set up default.
52915         * modules/math (Makefile.am): Replace new indicators.
52916         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
52917         * tests/test-math.c (main): Test this.
52918         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
52919         * doc/posix-headers/math.texi (math.h): Mention bug.
52920         Reported by Nelson H. F. Beebe and Jim Meyering.
52921
52922 2008-04-11  Bruno Haible  <bruno@clisp.org>
52923
52924         Adapt to future versions of Apple GCC.
52925         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
52926         Reported by Peter O'Gorman <peter@pogma.com>.
52927
52928 2008-04-11  Bruno Haible  <bruno@clisp.org>
52929
52930         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
52931
52932 2008-04-11  Bruno Haible  <bruno@clisp.org>
52933
52934         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
52935
52936         * modules/getaddrinfo-tests (Makefile.am): Define
52937         test_getaddrinfo_LDADD.
52938
52939 2008-04-11  Bruno Haible  <bruno@clisp.org>
52940
52941         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
52942         (init): Fix syntax error.
52943         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
52944         is declared.
52945
52946 2008-04-11  Bruno Haible  <bruno@clisp.org>
52947
52948         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
52949         * modules/glob (Depends-on): Add stdbool.
52950
52951 2008-04-11  Bruno Haible  <bruno@clisp.org>
52952
52953         * lib/trim.c: Include <string.h>.
52954
52955 2008-04-11  Eric Blake  <ebb9@byu.net>
52956
52957         Avoid compile failure on OS/2.
52958         * lib/regex_internal.h (internal_function): Disable optimization
52959         on OS/2 (__EMX__), where it caused compiler error.
52960         Reported by Elbert Pol.
52961
52962 2008-04-11  Bruno Haible  <bruno@clisp.org>
52963
52964         Flush the standard error stream before aborting. Needed on mingw.
52965         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
52966         * tests/test-array_list.c (ASSERT): Likewise.
52967         * tests/test-array_oset.c (ASSERT): Likewise.
52968         * tests/test-avltree_list.c (ASSERT): Likewise.
52969         * tests/test-avltree_oset.c (ASSERT): Likewise.
52970         * tests/test-avltreehash_list.c (ASSERT): Likewise.
52971         * tests/test-binary-io.c (ASSERT): Likewise.
52972         * tests/test-byteswap.c (ASSERT): Likewise.
52973         * tests/test-c-ctype.c (ASSERT): Likewise.
52974         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
52975         * tests/test-c-strcasestr.c (ASSERT): Likewise.
52976         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
52977         * tests/test-c-strstr.c (ASSERT): Likewise.
52978         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
52979         * tests/test-canonicalize.c (ASSERT): Likewise.
52980         * tests/test-carray_list.c (ASSERT): Likewise.
52981         * tests/test-ceilf1.c (ASSERT): Likewise.
52982         * tests/test-ceilf2.c (ASSERT): Likewise.
52983         * tests/test-ceill.c (ASSERT): Likewise.
52984         * tests/test-count-one-bits.c (ASSERT): Likewise.
52985         * tests/test-fbufmode.c (ASSERT): Likewise.
52986         * tests/test-fflush2.c (ASSERT): Likewise.
52987         * tests/test-floorf1.c (ASSERT): Likewise.
52988         * tests/test-floorf2.c (ASSERT): Likewise.
52989         * tests/test-floorl.c (ASSERT): Likewise.
52990         * tests/test-fopen.c (ASSERT): Likewise.
52991         * tests/test-fpending.c (ASSERT): Likewise.
52992         * tests/test-fprintf-posix.c (ASSERT): Likewise.
52993         * tests/test-fpurge.c (ASSERT): Likewise.
52994         * tests/test-freadable.c (ASSERT): Likewise.
52995         * tests/test-freadahead.c (ASSERT): Likewise.
52996         * tests/test-freading.c (ASSERT): Likewise.
52997         * tests/test-freadptr.c (ASSERT): Likewise.
52998         * tests/test-freadptr2.c (ASSERT): Likewise.
52999         * tests/test-freadseek.c (ASSERT): Likewise.
53000         * tests/test-freopen.c (ASSERT): Likewise.
53001         * tests/test-frexp.c (ASSERT): Likewise.
53002         * tests/test-frexpl.c (ASSERT): Likewise.
53003         * tests/test-fseek.c (ASSERT): Likewise.
53004         * tests/test-fseeko.c (ASSERT): Likewise.
53005         * tests/test-fstrcmp.c (ASSERT): Likewise.
53006         * tests/test-ftell.c (ASSERT): Likewise.
53007         * tests/test-ftello.c (ASSERT): Likewise.
53008         * tests/test-func.c (ASSERT): Likewise.
53009         * tests/test-fwritable.c (ASSERT): Likewise.
53010         * tests/test-fwriting.c (ASSERT): Likewise.
53011         * tests/test-getdelim.c (ASSERT): Likewise.
53012         * tests/test-getline.c (ASSERT): Likewise.
53013         * tests/test-i-ring.c (ASSERT): Likewise.
53014         * tests/test-iconv-utf.c (ASSERT): Likewise.
53015         * tests/test-iconv.c (ASSERT): Likewise.
53016         * tests/test-isfinite.c (ASSERT): Likewise.
53017         * tests/test-isnand.c (ASSERT): Likewise.
53018         * tests/test-isnanf.c (ASSERT): Likewise.
53019         * tests/test-isnanl.h (ASSERT): Likewise.
53020         * tests/test-ldexpl.c (ASSERT): Likewise.
53021         * tests/test-linked_list.c (ASSERT): Likewise.
53022         * tests/test-linkedhash_list.c (ASSERT): Likewise.
53023         * tests/test-localename.c (ASSERT): Likewise.
53024         * tests/test-lseek.c (ASSERT): Likewise.
53025         * tests/test-mbscasecmp.c (ASSERT): Likewise.
53026         * tests/test-mbscasestr1.c (ASSERT): Likewise.
53027         * tests/test-mbscasestr2.c (ASSERT): Likewise.
53028         * tests/test-mbscasestr3.c (ASSERT): Likewise.
53029         * tests/test-mbscasestr4.c (ASSERT): Likewise.
53030         * tests/test-mbschr.c (ASSERT): Likewise.
53031         * tests/test-mbscspn.c (ASSERT): Likewise.
53032         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
53033         * tests/test-mbspbrk.c (ASSERT): Likewise.
53034         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
53035         * tests/test-mbsrchr.c (ASSERT): Likewise.
53036         * tests/test-mbsspn.c (ASSERT): Likewise.
53037         * tests/test-mbsstr1.c (ASSERT): Likewise.
53038         * tests/test-mbsstr2.c (ASSERT): Likewise.
53039         * tests/test-mbsstr3.c (ASSERT): Likewise.
53040         * tests/test-memchr2.c (ASSERT): Likewise.
53041         * tests/test-memmem.c (ASSERT): Likewise.
53042         * tests/test-open.c (ASSERT): Likewise.
53043         * tests/test-printf-frexp.c (ASSERT): Likewise.
53044         * tests/test-printf-frexpl.c (ASSERT): Likewise.
53045         * tests/test-printf-posix.c (ASSERT): Likewise.
53046         * tests/test-quotearg.c (ASSERT): Likewise.
53047         * tests/test-rbtree_list.c (ASSERT): Likewise.
53048         * tests/test-rbtree_oset.c (ASSERT): Likewise.
53049         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
53050         * tests/test-round1.c (ASSERT): Likewise.
53051         * tests/test-roundf1.c (ASSERT): Likewise.
53052         * tests/test-roundl.c (ASSERT): Likewise.
53053         * tests/test-signbit.c (ASSERT): Likewise.
53054         * tests/test-sleep.c (ASSERT): Likewise.
53055         * tests/test-snprintf-posix.c (ASSERT): Likewise.
53056         * tests/test-snprintf.c (ASSERT): Likewise.
53057         * tests/test-sprintf-posix.c (ASSERT): Likewise.
53058         * tests/test-stat-time.c (ASSERT): Likewise.
53059         * tests/test-strcasestr.c (ASSERT): Likewise.
53060         * tests/test-strerror.c (ASSERT): Likewise.
53061         * tests/test-striconv.c (ASSERT): Likewise.
53062         * tests/test-striconveh.c (ASSERT): Likewise.
53063         * tests/test-striconveha.c (ASSERT): Likewise.
53064         * tests/test-strsignal.c (ASSERT): Likewise.
53065         * tests/test-strstr.c (ASSERT): Likewise.
53066         * tests/test-strtod.c (ASSERT): Likewise.
53067         * tests/test-trunc1.c (ASSERT): Likewise.
53068         * tests/test-trunc2.c (ASSERT): Likewise.
53069         * tests/test-truncf1.c (ASSERT): Likewise.
53070         * tests/test-truncf2.c (ASSERT): Likewise.
53071         * tests/test-truncl.c (ASSERT): Likewise.
53072         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
53073         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
53074         * tests/test-vasnprintf.c (ASSERT): Likewise.
53075         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
53076         * tests/test-vasprintf.c (ASSERT): Likewise.
53077         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
53078         * tests/test-vprintf-posix.c (ASSERT): Likewise.
53079         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
53080         * tests/test-vsnprintf.c (ASSERT): Likewise.
53081         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
53082         * tests/test-wcwidth.c (ASSERT): Likewise.
53083         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
53084         * tests/test-xprintf-posix.c (ASSERT): Likewise.
53085         * tests/test-xvasprintf.c (ASSERT): Likewise.
53086         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
53087         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
53088         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
53089         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
53090         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
53091         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
53092         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
53093         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
53094         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
53095         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
53096         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
53097         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
53098         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
53099         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
53100         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
53101         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
53102         * tests/unictype/test-block_list.c (ASSERT): Likewise.
53103         * tests/unictype/test-block_of.c (ASSERT): Likewise.
53104         * tests/unictype/test-block_test.c (ASSERT): Likewise.
53105         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
53106         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
53107         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
53108         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
53109         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
53110         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
53111         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
53112         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
53113         * tests/unictype/test-combining.c (ASSERT): Likewise.
53114         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
53115         * tests/unictype/test-digit.c (ASSERT): Likewise.
53116         * tests/unictype/test-mirror.c (ASSERT): Likewise.
53117         * tests/unictype/test-numeric.c (ASSERT): Likewise.
53118         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
53119         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
53120         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
53121         * tests/unictype/test-scripts.c (ASSERT): Likewise.
53122         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
53123         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
53124         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
53125         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
53126         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
53127         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
53128         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
53129         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
53130         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
53131         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
53132         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
53133         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
53134         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
53135         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
53136         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
53137         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
53138         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
53139         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
53140         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
53141         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
53142         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
53143         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
53144         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
53145         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
53146         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
53147         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
53148         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
53149         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
53150         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
53151         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
53152         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
53153         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
53154         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
53155         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
53156         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
53157         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
53158         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
53159         Reported by Eric Blake.
53160
53161 2008-04-11  Bruno Haible  <bruno@clisp.org>
53162
53163         * lib/wchar.in.h: Tweak comment.
53164
53165 2008-04-11  Bruno Haible  <bruno@clisp.org>
53166
53167         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
53168         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
53169         gl_COMMON.
53170         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
53171
53172 2008-04-11  Bruno Haible  <bruno@clisp.org>
53173
53174         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
53175
53176 2008-04-11  Simon Josefsson  <simon@josefsson.org>
53177
53178         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
53179         of attempting to use non-existing /dev/*random.  Based on patch
53180         from Adam Strzelecki <ono@java.pl> in
53181         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
53182
53183 2008-04-08  Bruno Haible  <bruno@clisp.org>
53184
53185         Add tentative support for emx+gcc.
53186         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
53187         * lib/fpurge.c (fpurge): Likewise.
53188         * lib/freadable.c (freadable): Likewise.
53189         * lib/freadahead.c (freadahead): Likewise.
53190         * lib/freading.c (freading): Likewise.
53191         * lib/freadptr.c (freadptr): Likewise.
53192         * lib/freadseek.c (freadptrinc): Likewise.
53193         * lib/fseeko.c (rpl_fseeko): Likewise.
53194         * lib/fseterr.c (fseterr): Likewise.
53195         * lib/fwritable.c (fwritable): Likewise.
53196         * lib/fwriting.c (fwriting): Likewise.
53197         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
53198
53199 2008-04-09  Eric Blake  <ebb9@byu.net>
53200
53201         Avoid some autoconf warnings.
53202         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
53203         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
53204         * m4/afs.m4 (gl_AFS): Likewise.
53205         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
53206         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
53207         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53208         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
53209         (gl_INTEGER_TYPE_SUFFIX): Likewise.
53210         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
53211         (AC_CHECK_DECLS_ONCE): Likewise.
53212         Rename file...
53213         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
53214         gnulib-tool requires autoconf 2.59 or better.
53215         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
53216
53217 2008-04-08  Eric Blake  <ebb9@byu.net>
53218
53219         Use 'git describe --match' if present (added in git 1.5.5).
53220         * build-aux/git-version-gen: Limit result to tags that match 'v*'
53221         if possible.
53222
53223 2008-04-08  Bruno Haible  <bruno@clisp.org>
53224
53225         Add tentative support for OpenServer.
53226         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
53227         _ptr, _cnt.
53228         * lib/fpurge.c (fpurge): Likewise.
53229         * lib/freadable.c (freadable): Likewise.
53230         * lib/freadahead.c (freadahead): Likewise.
53231         * lib/freading.c (freading): Likewise.
53232         * lib/freadptr.c (freadptr): Likewise.
53233         * lib/freadseek.c (freadptrinc): Likewise.
53234         * lib/fseeko.c (rpl_fseeko): Likewise.
53235         * lib/fseterr.c (fseterr): Likewise.
53236         * lib/fwritable.c (fwritable): Likewise.
53237         * lib/fwriting.c (fwriting): Likewise.
53238         Reported by Roger Cornelius <rac@tenzing.org> and
53239         Brian K. White <brian@aljex.com>.
53240
53241 2008-04-06  Jim Meyering  <meyering@redhat.com>
53242
53243         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
53244
53245 2008-04-06  Bruno Haible  <bruno@clisp.org>
53246
53247         Avoid possible error with non-ASCII bytes in UTF-8 locales.
53248         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
53249         * tests/test-printf-posix.sh: Likewise.
53250         * tests/test-vfprintf-posix.sh: Likewise.
53251         * tests/test-vprintf-posix.sh: Likewise.
53252         * tests/test-xprintf-posix.sh: Likewise.
53253
53254 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53255
53256         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
53257         hide error from 'ls', needed on OS/2.
53258         Report by Elbert Pol <elbert.pol@gmail.com>.
53259
53260 2008-04-04  Eric Blake  <ebb9@byu.net>
53261
53262         Make test-fseeko.c failures meaningful.
53263         * tests/test-fseeko.c: Print line number on failure.
53264         * tests/test-fseek.c: Likewise.
53265         Reported by Nelson H. F. Beebe.
53266
53267         Improve strtod bug detection check.
53268         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
53269         required for Solaris 10.
53270         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
53271
53272 2008-04-04  Bruno Haible  <bruno@clisp.org>
53273
53274         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
53275         by m4/setenv.m4.
53276
53277 2008-04-03  Eric Blake  <ebb9@byu.net>
53278
53279         Ensure sane .version contents.
53280         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
53281         version string.
53282         * build-aux/git-version-gen: Improve documentation.
53283
53284         Make GNU make output nicer.
53285         * top/GNUmakefile [!_have-Makefile]: Add dependency on
53286         MAKECMDGOALS to enforce message for all command line targets.  Set
53287         srcdir for use in maint.mk.
53288
53289         Another maintainer tweak.
53290         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
53291         a target that regenerates version.
53292
53293 2008-04-03  Jim Meyering  <meyering@redhat.com>
53294
53295         vc-list-files: don't cause coreutils "make po-check" failure
53296         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
53297
53298 2008-04-03  Eric Blake  <ebb9@byu.net>
53299
53300         Allow VPATH usage of vc-list-files.
53301         * build-aux/vc-list-files (scriptversion): Add timestamp.
53302         (options): Add --help, --version, -C.
53303         (CVS): Support installed cvsu.
53304
53305 2008-04-02  Bruno Haible  <bruno@clisp.org>
53306
53307         Avoid some "statement with no effect" warnings from gcc.
53308         * tests/test-wctype.c (main): Explicitly ignore unused values.
53309         Reported by Jim Meyering.
53310
53311 2008-04-02  Jim Meyering  <meyering@redhat.com>
53312
53313         Avoid some warnings from "gcc -Wshadow".
53314         * tests/test-frexp.c (exp): Define to a different identifier.
53315         * tests/test-frexpl.c (exp): Likewise.
53316
53317 2008-04-03  Jim Meyering  <meyering@redhat.com>
53318
53319         bootstrap: remove dangling *.[ch] symlinks from lib
53320         * build-aux/bootstrap [dangling symlink removal]: Move find's
53321         -depth option to precede all others, to avoid a warning.
53322         Remove *.[ch] files too, and from "$source_base" (usually lib/).
53323
53324 2008-04-02  Bruno Haible  <bruno@clisp.org>
53325
53326         Avoid some warnings from "gcc -Wshadow".
53327         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
53328         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
53329         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
53330         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
53331         Reported by Jim Meyering.
53332
53333 2008-04-01  Bruno Haible  <bruno@clisp.org>
53334
53335         Fix test to work on IRIX 6.5 with cc.
53336         * tests/test-math.c (numeric_equal): New function.
53337         (main): Use it.
53338
53339 2008-04-01  Bruno Haible  <bruno@clisp.org>
53340
53341         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
53342
53343 2008-04-01  Bruno Haible  <bruno@clisp.org>
53344
53345         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
53346         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53347         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
53348         (Depends-on): Remove math.
53349
53350         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
53351         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53352         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
53353         (Depends-on): Remove math.
53354
53355         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
53356         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53357         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
53358         (Depends-on): Remove math.
53359         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
53360         (Depends-on): Remove math.
53361
53362         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
53363         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53364         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
53365         (Depends-on): Remove math.
53366         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
53367         (Depends-on): Remove math.
53368
53369         * tests/test-round1.c: Include nan.h.
53370         (main): Use NaNd instead of NAN.
53371         * modules/round-tests (Files): Add tests/nan.h.
53372
53373         * tests/test-trunc1.c: Include nan.h.
53374         (main): Use NaNd instead of NAN.
53375         * modules/trunc-tests (Files): Add tests/nan.h.
53376
53377         * tests/test-roundf1.c: Include nan.h.
53378         (main): Use NaNf instead of NAN.
53379         * modules/roundf-tests (Files): Add tests/nan.h.
53380
53381         * tests/test-truncf1.c: Include nan.h.
53382         (main): Use NaNf instead of NAN.
53383         * modules/truncf-tests (Files): Add tests/nan.h.
53384
53385         * tests/test-ceilf1.c: Include nan.h.
53386         (main): Use NaNf instead of NAN.
53387         * modules/ceilf-tests (Files): Add tests/nan.h.
53388
53389         * tests/test-floorf1.c: Include nan.h.
53390         (main): Use NaNf instead of NAN.
53391         * modules/floorf-tests (Files): Add tests/nan.h.
53392
53393         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
53394         (main): Use NaNf instead of NAN.
53395         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
53396
53397         * tests/test-isnand.c: Include nan.h instead of <math.h>.
53398         (main): Use NaNd instead of NAN.
53399         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
53400
53401         * tests/test-frexp.c: Include nan.h.
53402         (main): Use NaNd instead of NAN.
53403         * modules/frexp-tests (Files): Add tests/nan.h.
53404
53405         * lib/isnan.c: Don't include <math.h>.
53406         (FUNC): Don't use NAN macro.
53407         * modules/isnand-nolibm (Depends-on): Remove math.
53408         * modules/isnanf-nolibm (Depends-on): Remove math.
53409         * modules/isnanl (Depends-on): Remove math.
53410         * modules/isnanl-nolibm (Depends-on): Remove math.
53411
53412         * tests/nan.h: New file.
53413
53414 2008-04-01  Eric Blake  <ebb9@byu.net>
53415
53416         Fix typos.
53417         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
53418         values to be the right type.
53419
53420         For now, cater to gnulib strtod inaccuracies.
53421         * tests/test-strtod.c (main): Allow 1-ulp error on expected
53422         fractional results.  While not as nice from a QoI perspective, it
53423         is a quicker patch than correctly implementing decimal to binary
53424         rounding.
53425
53426 2008-03-31  Eric Blake  <ebb9@byu.net>
53427
53428         Guarantee a definition of NAN.
53429         * lib/math.in.h (NAN): Define if missing.
53430         * tests/test-math.c (main): Test it.
53431         * doc/posix-headers/math.texi (math.h): Document this.
53432         * lib/isnan.c (rpl_isnand): Use it.
53433         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
53434         * tests/test-floorf1.c (NaN): Likewise.
53435         * tests/test-frexp.c (NaN): Likewise.
53436         * tests/test-isnand.c (NaN): Likewise.
53437         * tests/test-isnanf.c (NaN): Likewise.
53438         * tests/test-round1.c (NaN): Likewise.
53439         * tests/test-roundf1.c (NaN): Likewise.
53440         * tests/test-snprintf-posix.h (NaN): Likewise.
53441         * tests/test-sprintf-posix.h (NaN): Likewise.
53442         * tests/test-trunc1.c (NaN): Likewise.
53443         * tests/test-truncf1.c (NaN): Likewise.
53444         * tests/test-vasnprintf-posix.c (NaN): Likewise.
53445         * tests/test-vasprintf-posix.c (NaN): Likewise.
53446         * modules/isnand-nolibm (Depends-on): Add math.
53447         * modules/isnanf-nolibm (Depends-on): Likewise.
53448         * modules/isnanl (Depends-on): Likewise.
53449         * modules/isnanl-nolibm (Depends-on): Likewise.
53450         * modules/snprintf-posix-tests (Depends-on): Likewise.
53451         * modules/sprintf-posix-tests (Depends-on): Likewise.
53452         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
53453         * modules/vsprintf-posix-tests (Depends-on): Likewise.
53454         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
53455         * modules/vasprintf-posix-tests (Depends-on): Likewise.
53456
53457 2008-03-31  Bruno Haible  <bruno@clisp.org>
53458
53459         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
53460         * doc/posix-functions/strtod.texi: Likewise.
53461
53462 2008-03-31  Bruno Haible  <bruno@clisp.org>
53463
53464         * tests/test-strtod.c (main): Don't use C99 syntax.
53465
53466 2008-03-31  Bruno Haible  <bruno@clisp.org>
53467
53468         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
53469         Reported by Eric Blake.
53470
53471 2008-03-31  Jim Meyering  <meyering@redhat.com>
53472
53473         Don't compare actual signbit return values.
53474         * tests/test-strtod.c (main): Rather, compare only their
53475         zero/non-zero nature.
53476
53477 2008-03-31  Eric Blake  <ebb9@byu.net>
53478
53479         More strtod documentation.
53480         * doc/posix-functions/strtod.texi (strtod): Interpret more test
53481         failures as distinct bugs.
53482
53483 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
53484
53485         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
53486         Problem reported by Erik Benada in
53487         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
53488
53489 2008-03-30  Bruno Haible  <bruno@clisp.org>
53490
53491         * tests/test-strtod.c: Add comments about which assertion fails on which
53492         platform.
53493         * doc/posix-functions/strtod.texi: Add info about many more platforms.
53494
53495 2008-03-30  Eric Blake  <ebb9@byu.net>
53496
53497         Test signbit behavior on zeros.
53498         * tests/test-signbit.c (test_signbitf): Add tests for zero.
53499         (test_signbitd, test_signbitl): Likewise.
53500
53501         More strtod touchups.
53502         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
53503         sign of negative underflow, for now.  Use .5, not .1.
53504         * doc/posix-functions/strtod.texi (strtod): Mention these
53505         limitations.
53506         Reported by Jim Meyering.
53507
53508 2008-03-30  Bruno Haible  <bruno@clisp.org>
53509
53510         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
53511         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
53512
53513 2008-03-30  Bruno Haible  <bruno@clisp.org>
53514
53515         Avoid failure when attempting to return empty iconv results on some
53516         platforms.
53517         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
53518         allocation, don't report ENOMEM when the resulting string is empty.
53519
53520 2008-03-30  Bruno Haible  <bruno@clisp.org>
53521
53522         Fix buffer overrun.
53523         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
53524         Don't consider the width for tmp_length. Check count against tmp_length
53525         before doing the padding. Ensure enough allocation during padding.
53526
53527 2008-03-30  Eric Blake  <ebb9@byu.net>
53528
53529         strtod touchups.
53530         * lib/strtod.c (strtod): Avoid compiler warnings.
53531         Reported by Jim Meyering.
53532
53533 2008-03-30  Bruno Haible  <bruno@clisp.org>
53534
53535         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
53536         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
53537         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
53538         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
53539         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
53540         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
53541         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
53542         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
53543
53544         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
53545         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
53546         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
53547         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
53548         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
53549         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
53550         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
53551         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
53552
53553         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
53554         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
53555         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
53556         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
53557         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
53558         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
53559         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
53560         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
53561
53562         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
53563         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
53564
53565         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
53566         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
53567
53568         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
53569         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
53570
53571         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
53572         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
53573         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
53574
53575         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
53576         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
53577         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
53578
53579         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
53580         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
53581         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
53582
53583         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
53584         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
53585         * modules/vasprintf (Depends-on): Add EOVERFLOW.
53586
53587         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
53588         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
53589         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
53590         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
53591         (Depends-on): Add EOVERFLOW.
53592         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
53593         (Depends-on): Add EOVERFLOW.
53594         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
53595         (Depends-on): Add EOVERFLOW.
53596         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
53597         (Depends-on): Add EOVERFLOW.
53598         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
53599         (Depends-on): Add EOVERFLOW.
53600         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
53601         (Depends-on): Add EOVERFLOW.
53602         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
53603         (Depends-on): Add EOVERFLOW.
53604         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
53605         (Depends-on): Add EOVERFLOW.
53606
53607         * lib/sprintf.c (EOVERFLOW): Remove fallback.
53608         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
53609         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
53610
53611         * lib/snprintf.c (EOVERFLOW): Remove fallback.
53612         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
53613         * modules/snprintf (Depends-on): Add EOVERFLOW.
53614
53615         * lib/poll.c (EOVERFLOW): Remove fallback.
53616         * modules/poll (Depends-on): Add EOVERFLOW.
53617
53618         * lib/getugroups.c (EOVERFLOW): Remove fallback.
53619         * modules/getugroups (Depends-on): Add EOVERFLOW.
53620
53621         * lib/getdelim.c (EOVERFLOW): Remove fallback.
53622         * modules/getdelim (Depends-on): Add EOVERFLOW.
53623
53624         * lib/ftell.c (EOVERFLOW): Remove fallback.
53625         * modules/ftell (Depends-on): Add EOVERFLOW.
53626
53627         * lib/fprintf.c (EOVERFLOW): Remove fallback.
53628         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
53629         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
53630
53631         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
53632
53633         * modules/EOVERFLOW-tests: New file.
53634         * tests/test-EOVERFLOW.c: New file.
53635
53636         * modules/EOVERFLOW: New file.
53637         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
53638
53639 2008-03-30  Bruno Haible  <bruno@clisp.org>
53640
53641         Fix bug introduced on 2007-06-10.
53642         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
53643         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
53644
53645 2008-03-30  Bruno Haible  <bruno@clisp.org>
53646
53647         Improve freadseek's efficiency after ungetc.
53648         * lib/freadseek.c: Include freadahead.h.
53649         (freadptrinc): New function, extracted from freadseek.
53650         (freadseek): Use it in a loop. Use freadahead to determine the number
53651         of loop iterations.
53652         * modules/freadseek (Depends-on): Add freadahead.
53653         (configure.ac): Require AC_C_INLINE.
53654
53655 2008-03-30  Bruno Haible  <bruno@clisp.org>
53656
53657         * lib/freadseek.c (freadseek): Don't ignore the return value of
53658         freadptr.
53659
53660 2008-03-29  Eric Blake  <ebb9@byu.net>
53661
53662         Add hex float support.
53663         * modules/strtod (Depends-on): Add c-ctype.
53664         (Link): Mention POW_LIB.
53665         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
53666         whitespace between 'e' and exponent.
53667         * tests/test-strtod.c (main): Enable hex float tests.
53668         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
53669         now provides.
53670
53671         Document various strtod bugs, with some fixes.
53672         * doc/posix-functions/strtod.texi (strtod): Document bugs with
53673         "-0x", "inf", "nan", and hex constants.
53674         * doc/posix-functions/atof.texi (atof): Likewise.
53675         * modules/stdlib (Makefile.am): Support strtod.
53676         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
53677         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
53678         detect additional strtod bugs.
53679         * lib/stdlib.in.h (rpl_strtod): Add declarations.
53680         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
53681         bool where appropriate.  Parse 'inf' and 'nan'.
53682         * tests/test-strtod.c: New file.
53683         * modules/strtod (Depends-on): Add stdbool, stdlib.
53684         (configure.ac): Turn on module indicator.
53685         * modules/strtod-tests: New module.
53686
53687 2008-03-29  Eric Blake  <ebb9@byu.net>
53688
53689         Fix ftell on mingw.
53690         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
53691         * modules/ftell-tests (Depends-on): Add binary-io.
53692         * modules/ftello-tests (Depends-on): Likewise.
53693         * tests/test-ftell.c (main): Enhance test to cover behavior after
53694         ungetc.  Enforce binary mode.
53695         * tests/test-ftello.c (main): Likewise.
53696
53697         Pass test-freadseek on cygwin.
53698         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
53699         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
53700         ungetc buffer.
53701
53702         * tests/test-fflush2.c (main): Fix typo.
53703
53704 2008-03-29  Bruno Haible  <bruno@clisp.org>
53705
53706         * tests/test-fflush2.c (main): Temporarily disable the contents of
53707         this test.
53708         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
53709         Reported by Eric Blake.
53710
53711 2008-03-28  Simon Josefsson  <simon@josefsson.org>
53712
53713         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
53714         (GC_SHA224_DIGEST_SIZE): Add.
53715
53716         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
53717         (gc_hash_digest_length): Likewise.
53718         (gc_hash_buffer): Likewise.
53719
53720 2008-03-25  Bruno Haible  <bruno@clisp.org>
53721
53722         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
53723         detail which gettext release to use.
53724         Reported by Simon Josefsson.
53725
53726 2008-03-26  Jim Meyering  <meyering@redhat.com>
53727
53728         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
53729         * modules/gnumakefile (clean-GNUmakefile): Also, use
53730         test ... && ... || : syntax rather than if-then ... fi.
53731
53732         gnumakefile: Don't double-quote-expand $(VPATH) value.
53733         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
53734
53735 2008-03-24  Eric Blake  <ebb9@byu.net>
53736
53737         Alter GNUmakefile to install into top directory.
53738         * modules/maintainer-makefile: Split, and add dependency...
53739         * modules/gnumakefile: to this new module.
53740         * build-aux/GNUmakefile: Move...
53741         * top/GNUmakefile: ...here.
53742         * build-aux/maint.mk: Move...
53743         * top/maint.mk: ...here.
53744         * MODULES.html.sh (Support for maintaining...): Document new
53745         module.
53746
53747 2008-03-23  Bruno Haible  <bruno@clisp.org>
53748
53749         * gnulib-tool: New options --vc-files, --no-vc-files.
53750         (func_usage): Document them.
53751         (vc_files): New variable.
53752         (func_import): Consider vc_files.
53753         (func_create_testdir): Set vc_files to empty.
53754         Suggested by Jim Meyering and Karl Berry.
53755
53756 2008-03-23  Bruno Haible  <bruno@clisp.org>
53757
53758         Fix regex compilation error on HP-UX 11.
53759         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
53760         * modules/regex (Files): Add m4/mbstate_t.m4.
53761         Reported by Ton Voon <ton.voon@altinity.com>.
53762
53763 2008-03-23  Bruno Haible  <bruno@clisp.org>
53764
53765         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
53766
53767 2008-03-23  Eric Blake  <ebb9@byu.net>
53768             Bruno Haible  <bruno@clisp.org>
53769
53770         Install files from top/ in the destination directory.
53771         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53772         augmentation also for the files from top/.
53773         (func_import, func_create_testdir): Rewrite file names:
53774         top/filename -> filename.
53775
53776 2008-03-23  Bruno Haible  <bruno@clisp.org>
53777
53778         Tweak "gnulib --version" output.
53779         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
53780
53781 2008-03-23  Bruno Haible  <bruno@clisp.org>
53782
53783         Tweak "gnulib --version" output.
53784         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
53785         rather than contents of ChangeLog, when possible.
53786
53787 2008-03-21  Eric Blake  <ebb9@byu.net>
53788
53789         More --version tweaks.
53790         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
53791         date of last ChangeLog entry.
53792
53793 2008-03-21  Jim Meyering  <meyering@redhat.com>
53794
53795         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
53796
53797 2008-03-20  Eric Blake  <ebb9@byu.net>
53798
53799         VPATH fix.
53800         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
53801
53802 2008-03-20  Simon Josefsson  <simon@josefsson.org>
53803
53804         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
53805         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
53806
53807 2008-03-20  Eric Blake  <ebb9@byu.net>
53808
53809         Sync GNUmakefile with coreutils.
53810         * build-aux/GNUmakefile (have-Makefile): Rename...
53811         (_have-Makefile): ...to this, for namespace consideration.
53812         (GNUmakefile.cfg): Include, if present.
53813         (_autoreconf): Define a default.
53814         (_is-dist-target): New rule for rebuilds to pick up intra-release
53815         version.
53816         (maint-cfg.mk): Rename...
53817         (cfg.mk): ...to this.
53818
53819 2008-03-18  Jim Meyering  <meyering@redhat.com>
53820
53821         New script and module: mktempd
53822         * MODULES.html.sh (maint+release support): Add mktempd.
53823         * build-aux/mktempd: New file.
53824         * modules/mktempd: New file.
53825
53826 2008-03-15  Jim Meyering  <meyering@redhat.com>
53827
53828         Undo last change.
53829         * lib/sha1.c, lib/md5.c: 63 != ~63.
53830         Reported by Andreas Schwab.
53831
53832         sha1.c, md5.c: Hoist a redundant expression.
53833         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
53834         "ctx->buflen" only once, before calling *_process_block.
53835         * lib/md5.c (md5_process_bytes): Likewise.
53836
53837 2008-03-14  Eric Blake  <ebb9@byu.net>
53838
53839         Bump copyright year in files generated by gnulib-tool.
53840         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
53841         gnulib-tool, rather than hard-coding it.
53842
53843         Fix 'gnulib-tool --version' output to work with git.
53844         * gnulib-tool (func_gnulib_dir): New function, extracted from...
53845         (startup): ...here.
53846         (func_version): Use it to invoke git-version-gen, rather than
53847         relying on CVS keyword expansion.  Modernize wording.
53848         (cvsdatestamp, last_checkin_date, version): Kill unused
53849         variables.
53850
53851 2008-03-12  Jim Meyering  <meyering@redhat.com>
53852
53853         Recognize optional cast of the argument to free.
53854         * build-aux/useless-if-before-free: Update regexps.
53855
53856         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
53857
53858 2008-03-11  Bruno Haible  <bruno@clisp.org>
53859
53860         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
53861         by a single package.
53862         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
53863         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
53864         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
53865         Reported by Sam Steingold <sds@gnu.org>.
53866
53867 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53868
53869         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
53870         repositories.
53871
53872 2008-03-11  Bruno Haible  <bruno@clisp.org>
53873
53874         Avoid conflicts between local macro definitions.
53875         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
53876         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
53877
53878 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
53879             Bruno Haible  <bruno@clisp.org>
53880
53881         Make va_copy work with some version of xlc on AIX 5.1.
53882         * lib/stdarg.in.h: New file.
53883         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
53884         On AIX, use a <stdarg.h> file substitute.
53885         * modules/stdarg (Files): Add lib/stdarg.in.h.
53886         (Depends-on): Add include_next.
53887         (Makefile.am): Build a stdarg.h substitute if requested.
53888         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
53889
53890 2008-03-10  Bruno Haible  <bruno@clisp.org>
53891
53892         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
53893         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53894         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
53895
53896 2008-03-10  Bruno Haible  <bruno@clisp.org>
53897
53898         * modules/stdlib (Depends-on): Add include_next, remove
53899         absolute-header.
53900
53901 2008-03-09  Bruno Haible  <bruno@clisp.org>
53902
53903         * lib/freadahead.h (freadahead): Document more precisely.
53904         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
53905         the sum of both buffer sizes.
53906         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
53907         * NEWS: Document the change.
53908
53909 2008-03-09  Bruno Haible  <bruno@clisp.org>
53910
53911         Extend freadptr to return also the buffer size.
53912         * lib/freadptr.h (freadptr): Add sizep argument.
53913         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
53914         (freadptr): Add sizep argument. Determine buffer size like freadahead
53915         does.
53916         * tests/test-freadptr.c: Don't include freadahead.h.
53917         (main): Adapt for new calling convention of freadptr.
53918         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
53919         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
53920         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
53921         tests/test-freadptr2.sh.
53922         (Depends): Remove freadahead.
53923         (TESTS): Add test-freadptr2.sh.
53924         (check_PROGRAMS): Add test-freadptr2.
53925
53926 2008-03-09  Bruno Haible  <bruno@clisp.org>
53927
53928         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
53929         Report and solution by Simon Josefsson.
53930
53931 2008-03-06  Bruno Haible  <bruno@clisp.org>
53932
53933         Make fflush after ungetc work on BSD platforms.
53934         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
53935         * tests/test-fflush2.c: New file.
53936         * tests/test-fflush2.sh: New file.
53937         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
53938         tests/test-fflush2.c.
53939         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
53940         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
53941
53942 2008-03-06  Eric Blake  <ebb9@byu.net>
53943
53944         Likewise for ftello.
53945         * modules/ftello (Dependencies): Add extensions.
53946         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
53947
53948 2008-03-06  Bruno Haible  <bruno@clisp.org>
53949
53950         * modules/fseeko (Dependencies): Add extensions.
53951         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
53952         Needed on glibc systems.
53953
53954 2008-03-06  Bruno Haible  <bruno@clisp.org>
53955
53956         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
53957         email address.
53958         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53959
53960 2008-03-06  Bruno Haible  <bruno@clisp.org>
53961
53962         * users.txt: Add libgnupdf.
53963
53964 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
53965
53966         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
53967         (Header File Substitutes, Function Substitutes,
53968         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
53969         (Build robot for gnulib): Fix typo.
53970
53971 2008-03-06  Bruno Haible  <bruno@clisp.org>
53972
53973         * doc/gnulib-tool.texi (VCS Issues): Small updates.
53974         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53975
53976 2008-03-06  Bruno Haible  <bruno@clisp.org>
53977
53978         * doc/func.texi: New file, extracted from doc/gnulib.texi.
53979         * doc/gnulib.texi: Include it.
53980
53981 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53982
53983         * modules/func (License): Change license to unlimited; there was
53984         no LGPL parts in the module anyway.
53985
53986 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53987
53988         * modules/__func__: Renamed to modules/func.
53989         * modules/__func__-tests: Renamed to modules/func-tests.
53990         * tests/test-__func__.c: Renamed to tests/test-func.c.
53991         * m4/__func__.m4: Renamed to m4/func.m4.
53992         * doc/gnulib.texi (__func__): Section renamed to func.
53993         Suggested by Eric Blake <ebb9@byu.net>.
53994
53995 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53996
53997         * doc/gnulib.texi (__func__): Use C99 terminology when talking
53998         about __func__.  Make example self-contained.  Suggested by Eric
53999         Blake <ebb9@byu.net>.
54000
54001         * tests/test-__func__.c (main): Avoid extraneous () around __func.
54002         Suggested by Eric Blake <ebb9@byu.net>.
54003
54004 2008-03-06  Simon Josefsson  <simon@josefsson.org>
54005
54006         * modules/__func__: New file.
54007         * modules/__func__-tests: New file.
54008         * tests/test-__func__.c: New file.
54009         * m4/__func__.m4: New file.
54010         * doc/gnulib.texi (__func__): Document __func__ module.
54011
54012 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54013
54014         * modules/byteswap (License): Re-license as LGPLv2+.
54015
54016 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54017
54018         * doc/Makefile: Add pdf target.
54019
54020 2008-03-05  Simon Josefsson  <simon@josefsson.org>
54021
54022         * modules/inline (License): Use 'unlimited', since there are only
54023         *.m4 files in this module.
54024
54025 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
54026             Bruno Haible  <bruno@clisp.org>
54027
54028         Add support for HP C 7.1 on OpenVMS 8.3.
54029         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
54030
54031 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
54032
54033         Update VMS specifics.
54034         * lib/getopt.c [VMS]: Remove include of unixlib.h.
54035
54036 2008-03-02  Jim Meyering  <meyering@redhat.com>
54037
54038         Remove the last dependency on the "free" module.
54039         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
54040         Reported by Bob Proulx.
54041
54042         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
54043
54044         Remove useless "if" tests before free.  Deprecate "free" module.
54045         * doc/posix-functions/free.texi: Mention that this
54046         module is no longer useful.
54047         * modules/free (Notice): Say this module is obsolete.
54048         * modules/readutmp (Depends-on): Remove free.
54049         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
54050         * lib/putenv.c (putenv): Likewise.
54051         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
54052         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
54053         * tests/test-c-strcasestr.c (main): Likewise.
54054         * tests/test-c-strstr.c (main): Likewise.
54055         * tests/test-mbscasestr1.c (main): Likewise.
54056         * tests/test-mbscasestr2.c (main): Likewise.
54057         * tests/test-mbsstr1.c (main): Likewise.
54058         * tests/test-mbsstr2.c (main): Likewise.
54059         * tests/test-memmem.c (main): Likewise.
54060         * tests/test-strcasestr.c (main): Likewise.
54061         * tests/test-striconv.c (main): Likewise.
54062         * tests/test-striconveh.c (main): Likewise.
54063         * tests/test-striconveha.c (main): Likewise.
54064         * tests/test-strstr.c (main): Likewise.
54065
54066         * build-aux/git-version-gen: Adjust a comment and the Usage string.
54067
54068         bootstrap: sync from coreutils again
54069         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
54070
54071 2008-03-01  Jim Meyering  <meyering@redhat.com>
54072
54073         bootstrap: sync from coreutils
54074         * build-aux/bootstrap (update_po_files): Copy a .po file into place
54075         also when the target doesn't exist.
54076
54077 2008-03-01  Eric Blake  <ebb9@byu.net>
54078
54079         Fix bugs in last patch.
54080         * lib/memchr2.c (memchr2): Fix typo.
54081         * tests/test-memchr2.c: Test previous bug, and don't use GNU
54082         extension.
54083         Reported by Bruce Korb.
54084
54085         New module 'memchr2'.
54086         * modules/memchr2: New file.
54087         * modules/memchr2-tests: Likewise.
54088         * lib/memchr2.h: Likewise.
54089         * lib/memchr2.c: Likewise, based on memchr.c.
54090         * tests/test-memchr2.c: New test.
54091         * MODULES.html.sh (String handling): Add memchr2.
54092
54093 2008-02-29  Bruno Haible  <bruno@clisp.org>
54094
54095         * modules/freadseek-tests: New file.
54096         * tests/test-freadseek.sh: New file.
54097         * tests/test-freadseek.c: New file.
54098
54099         New module 'freadseek'.
54100         * modules/freadseek: New file.
54101         * lib/freadseek.h: New file.
54102         * lib/freadseek.c: New file.
54103         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
54104
54105 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
54106
54107         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
54108         wydawca.
54109
54110         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
54111         program_invocation_name and program_invocation_short_name are
54112         present.
54113
54114 2008-02-28  Bruno Haible  <bruno@clisp.org>
54115
54116         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
54117         * tests/test-freadptr.sh: Also test non-seekable stdin.
54118
54119 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
54120
54121         * build-aux/bootstrap (source_base, m4_base)
54122         (doc_base, tests_base): New variables.
54123         (gnulib_tool_options): Do not hardcode base directories, use
54124         the above variables instead.
54125
54126 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
54127
54128         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
54129
54130 2008-02-28  Bruno Haible  <bruno@clisp.org>
54131
54132         * modules/freadptr-tests: New file.
54133         * tests/test-freadptr.sh: New file.
54134         * tests/test-freadptr.c: New file.
54135
54136         New module 'freadptr'.
54137         * modules/freadptr: New file.
54138         * lib/freadptr.h: New file.
54139         * lib/freadptr.c: New file.
54140         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
54141
54142 2008-02-26  Karl Berry  <karl@freefriends.org>
54143
54144         Sync from Libtool:
54145         * libltdl/argz.c (argz_add, argz_count): New functions.
54146         * libltdl/argz.in.h: Declare them.
54147         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
54148
54149 2008-02-22  Bruno Haible  <bruno@clisp.org>
54150
54151         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
54152         is a pointer type.  Needed for HP-UX 10.
54153         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
54154         * doc/posix-functions/gmtime_r.texi: Likewise.
54155         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
54156
54157 2008-02-24  Bruno Haible  <bruno@clisp.org>
54158
54159         * modules/environ-tests: New file.
54160         * tests/test-environ.c: New file.
54161
54162         New module 'environ'.
54163         * modules/environ: New file.
54164         * lib/unistd.in.h (environ): New declaration.
54165         * m4/environ.m4: New file.
54166         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
54167         after use.
54168         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
54169         HAVE_DECL_ENVIRON.
54170         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
54171         HAVE_DECL_ENVIRON.
54172         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
54173         wrong claim that 'environ' is missing on some systems.
54174         * modules/execute (Depends-on): Add environ.
54175         * lib/execute.c (environ): Remove fallback declaration.
54176         * modules/pipe (Depends-on): Add environ.
54177         * lib/pipe.c (environ): Remove fallback declaration.
54178         * modules/setenv (Depends-on): Add environ.
54179         * lib/setenv.c (environ): Remove fallback declaration.
54180         * modules/unsetenv (Depends-on): Add environ.
54181         * lib/unsetenv.c (environ): Remove fallback declaration.
54182         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
54183         m4/environ.m4.
54184         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
54185         (gl_PREREQ_UNSETENV): Likewise.
54186
54187 2008-02-24  Bruno Haible  <bruno@clisp.org>
54188
54189         * doc/posix-functions/environ.texi: Document the MacOS X problem.
54190
54191 2008-02-20  Bob Proulx  <bob@proulx.com>
54192
54193         Enable use of older two part flavor 'git describe'.
54194         * build-aux/git-version-gen: If using the older two part flavor of
54195         git version then recreate the third part now present in the
54196         newer three part flavor of git describe.
54197
54198 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
54199
54200         * lib/fts.c (fts_build): Typo correction to comment.
54201
54202 2008-02-17  Bruno Haible  <bruno@clisp.org>
54203
54204         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
54205         generating no-op conflicts.
54206
54207 2008-02-17  Bruno Haible  <bruno@clisp.org>
54208
54209         Speed up by 10%.
54210         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
54211         result_entries, rather than an index-based loop.
54212
54213 2008-02-17  Bruno Haible  <bruno@clisp.org>
54214
54215         Speed up by 25%.
54216         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
54217         'hashcode_cached'.
54218         (entry_create): New function.
54219         (entry_hashcode): Use the cached hashcode if possible.
54220         (read_changelog_file, try_split_merged_entry): Use entry_create.
54221
54222 2008-02-17  Bruno Haible  <bruno@clisp.org>
54223
54224         Speed up from O(n^2) to O(n) for long ChangeLog files.
54225         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
54226         (read_changelog_file): Change implementation of entries_reversed list
54227         to rbtreehash.
54228         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
54229
54230 2008-02-17  Bruno Haible  <bruno@clisp.org>
54231
54232         New option --split-merged-entry.
54233         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
54234         (find_paragraph_end, try_split_merged_entry): New functions.
54235         (long_options): Add option --split-merged-entry.
54236         (usage): Document option --split-merged-entry.
54237         (main): Implement option --split-merged-entry.
54238         Reported by Eric Blake.
54239
54240 2008-02-17  Bruno Haible  <bruno@clisp.org>
54241
54242         * lib/git-merge-changelog.c: Include c-strstr.h.
54243         (main): Support the "git pull --rebase" situation.
54244         * modules/git-merge-changelog (Depends-on): Add c-strstr.
54245         Reported by Eric Blake.
54246
54247 2008-02-16  Eric Blake  <ebb9@byu.net>
54248
54249         Avoid doubling \ in common case of "c-maybe" quoting style.
54250         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
54251         eliding outer quotes.
54252         * lib/quotearg.h: Document this.
54253         * tests/test-quotearg.c (result_strings, inputs, results_g)
54254         (flag_results, locale_results): Test it by adding a new string to
54255         each test group.
54256         (compare_strings): Test new string.
54257
54258 2008-02-13  Eric Blake  <ebb9@byu.net>
54259
54260         Avoid trigraph quoting in default output.
54261         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
54262         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
54263         unless explicitly requested.
54264         * tests/test-quotearg.c (flag_results, main): Add additional tests.
54265
54266 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
54267
54268         Don't rely on signed integer overflowing to negative value.
54269         * lib/getugroups.c (getugroups): Include <limits.h>.
54270         Instead, compare against INT_MAX, and increment only if the test passes.
54271
54272 2008-02-13  Jim Meyering  <meyering@redhat.com>
54273         and Eric Blake  <ebb9@byu.net>
54274
54275         Avoid shadowing warning and compile errors on Linux.
54276         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
54277         forwarding macros on Linux.
54278         (dcgettext): Define a stub, for Linux.
54279         (results_g, main): Avoid warnings.
54280
54281 2008-02-12  Eric Blake  <ebb9@byu.net>
54282
54283         Silence warning in last patch.
54284         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
54285
54286         Quotearg part 4: add tests, fix c-maybe colon quoting.
54287         * lib/quotearg.h: Improve documentation.
54288         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
54289         escapes when adding outer quotes.  When quoting trigraphs, use
54290         valid C notation.  When quoting NUL, omit extra characters if next
54291         character is not digit.  Alter prototype.
54292         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
54293         callers.
54294         * modules/quotearg-tests: New module.
54295         * tests/test-quotearg.c: New test.
54296
54297 2008-02-07  Eric Blake  <ebb9@byu.net>
54298
54299         Quotearg part 3: add flag to control outer quote elision.
54300         * lib/quotearg.h (c_maybe_quoting_style): New style.
54301         (enum quoting_flags): Better documentation of flags.
54302         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
54303         c-maybe style.
54304         (quotearg_buffer_restyled): Handle new flag to elide outer
54305         quotes.
54306
54307         Quotearg part 2: add flag that can control NUL elision.
54308         * lib/quotearg.h (set_quoting_flags): New prototype.
54309         * lib/quotearg.c (struct quoting_options): Add flag field.
54310         (set_quoting_flags): New function.
54311         (quotearg_buffer_restyled): Add flags parameter.
54312         (quotearg_alloc_mem): Set the flag if length cannot be returned.
54313         (quotearg_n_options): Set the flag, since length cannot be
54314         returned.
54315         (quoting_options_from_style): Default flags correctly.
54316
54317         Quotearg part 1: more wrappers, restore quotearg_char state.
54318         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
54319         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
54320         (quotearg_colon_mem): New wrappers.
54321         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
54322         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
54323         functions.
54324         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
54325         (quotearg_colon_mem): New functions.
54326
54327 2008-02-11  Bruno Haible  <bruno@clisp.org>
54328
54329         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
54330         library in the current directory: it does not work with parallel make.
54331         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54332
54333 2008-02-11  Bruno Haible  <bruno@clisp.org>
54334
54335         * .gitattributes: New file.
54336
54337 2008-02-11  Jim Meyering  <meyering@redhat.com>
54338
54339         useless-if-before-free: Fix reversed exit values.
54340         * build-aux/useless-if-before-free: Use correct values
54341         for EXIT_MATCH and EXIT_NO_MATCH.
54342
54343         * build-aux/useless-if-before-free: Close stdout carefully.
54344
54345 2008-02-10  Bruno Haible  <bruno@clisp.org>
54346
54347         New module 'git-merge-changelog'.
54348         * modules/git-merge-changelog: New file.
54349         * lib/git-merge-changelog.c: New file.
54350
54351 2008-02-10  Jim Meyering  <meyering@redhat.com>
54352
54353         useless-if-before-free: New option: --list (-l).
54354
54355         useless-if-before-free: Don't exit immediately upon open failure.
54356         * build-aux/useless-if-before-free: Exit 2 for errors.
54357         Upon failure to open a file, don't exit immediately.
54358         Rather, just warn and continue with any remaining files.
54359
54360 2008-02-10  Bruno Haible  <bruno@clisp.org>
54361
54362         New abstract list operation 'node_set_value'.
54363         * lib/gl_list.h (gl_list_node_set_value): New function.
54364         (struct gl_list_implementation): New field node_set_value.
54365         * lib/gl_list.c (gl_list_node_set_value): New function.
54366         * lib/gl_array_list.c (gl_array_node_set_value): New function.
54367         (gl_array_list_implementation): Update.
54368         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
54369         (gl_carray_list_implementation): Update.
54370         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
54371         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
54372         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
54373         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
54374         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
54375         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
54376         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
54377         Update.
54378         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
54379         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
54380         (gl_sublist_list_implementation): Update.
54381
54382 2008-02-10  Bruno Haible  <bruno@clisp.org>
54383
54384         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
54385         Needed when ELEMENT is #defined to 'some_type *'.
54386
54387 2008-02-10  Jim Meyering  <meyering@redhat.com>
54388
54389         New script and module: useless-if-before-free
54390         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
54391         * build-aux/useless-if-before-free: New file.
54392         * modules/useless-if-before-free: New file.
54393
54394         * build-aux/gitlog-to-changelog: Use committer date, not author date.
54395
54396         xstrtol_error: Fix typo.
54397         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
54398         s/exit_failure/exit_status/.
54399
54400 2008-02-09  Jim Meyering  <meyering@redhat.com>
54401
54402         New script and module: gitlog-to-changelog
54403         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
54404         * modules/gitlog-to-changelog: New file.
54405         * build-aux/gitlog-to-changelog: New file.
54406
54407 2008-02-08  Jim Meyering  <meyering@redhat.com>
54408
54409         Avoid two "parameter unused" warnings.
54410         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
54411         Mark "st" as used.
54412
54413         Use "git COMMAND", not "git-COMMAND".
54414         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
54415         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
54416         * build-aux/git-version-gen: Use "git status", not "git-status".
54417
54418 2008-02-07  Bruno Haible  <bruno@clisp.org>
54419
54420         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
54421         Avoids a crash on Windows Vista.
54422         Reported by Adam Strzelecki <ono@java.pl> via
54423         Simon Josefsson <simon@josefsson.org>.
54424
54425 2008-02-06  Bruno Haible  <bruno@clisp.org>
54426
54427         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
54428         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
54429         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
54430         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
54431         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54432         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54433         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
54434         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
54435         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54436         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54437         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54438         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54439         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54440         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54441         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54442         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
54443         left-adjust flag.
54444         * tests/test-snprintf-posix.h (test_function): Likewise.
54445         * tests/test-sprintf-posix.h (test_function): Likewise.
54446         * tests/test-vasprintf-posix.c (test_function): Likewise.
54447         * doc/posix-functions/fprintf.texi: Update.
54448         * doc/posix-functions/printf.texi: Update.
54449         * doc/posix-functions/snprintf.texi: Update.
54450         * doc/posix-functions/sprintf.texi: Update.
54451         * doc/posix-functions/vfprintf.texi: Update.
54452         * doc/posix-functions/vprintf.texi: Update.
54453         * doc/posix-functions/vsnprintf.texi: Update.
54454         * doc/posix-functions/vsprintf.texi: Update.
54455         Reported by Peter Fales <psfales@alcatel-lucent.com>.
54456
54457 2008-02-06  Bruno Haible  <bruno@clisp.org>
54458
54459         Fix bug introduced on 2008-01-26.
54460         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
54461
54462 2008-02-06  Bruno Haible  <bruno@clisp.org>
54463
54464         Fix bug introduced on 2007-06-10.
54465         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
54466         !NEED_PRINTF_FLAG_ZERO.
54467
54468 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
54469
54470         getloadavg: use libperfstat on AIX5
54471         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
54472
54473 2008-02-03  Bruno Haible  <bruno@clisp.org>
54474
54475         * lib/diffseq.h: Add comments about required #includes.
54476         Reported by Michael Biggs <gnulib@doubleplum.net>.
54477
54478 2008-02-01  Bruno Haible  <bruno@clisp.org>
54479
54480         * users.txt: Add gnuit.
54481
54482 2008-01-31  Bruno Haible  <bruno@clisp.org>
54483
54484         * lib/md4.c (set_uint32): Mark as inline.
54485         * lib/md5.c (set_uint32): Likewise.
54486         * lib/sha1.c (set_uint32): Likewise.
54487         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
54488         * m4/md5.m4 (gl_MD5): Likewise.
54489         * m4/sha1.m4 (gl_SHA1): Likewise.
54490
54491 2008-01-31  Jim Meyering  <meyering@redhat.com>
54492
54493         Use "sizeof VAR", rather than a literal "4".
54494         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
54495         * lib/md4.c (md4_read_ctx): Likewise.
54496         * lib/sha1.c (sha1_read_ctx): Likewise.
54497
54498 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54499
54500         * tests/test-sha1.c: New file, based on test-md5.c.
54501
54502         * modules/crypto/sha1-tests: New file.
54503
54504 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54505
54506         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
54507
54508 2008-01-31  Jim Meyering  <meyering@redhat.com>
54509
54510         Prefer "sizeof v" over the equivalent "4".
54511         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
54512         * lib/md5.c (set_uint32): Likewise.
54513         * lib/sha1.c (set_uint32): Likewise.
54514
54515 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54516
54517         * lib/sha1.c (set_uint32): Mark function as static.
54518
54519 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54520
54521         md2: clarify comments to say that alignment is not required.
54522         * lib/md2.h: Remove warning about alignment in comment.
54523         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
54524         never been required.
54525
54526 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54527
54528         md4: adapt alignment constraint fix from sha1.
54529         * lib/md4.c (set_uint32): New function, from sha1.c
54530         (md4_read_ctx): Use it.
54531         (md4_finish_ctx): Doc fix.
54532         * lib/md4.h: Doc fix.
54533
54534 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54535
54536         md5: adapt alignment constraint fix from sha1.
54537         * lib/md5.c (set_uint32): New function, from sha1.c
54538         (md5_read_ctx): Use it.
54539         (md5_finish_ctx): Doc fix.
54540         * lib/md5.h: Doc fix.
54541
54542 2008-01-30  Peter Palfrader  <weasel@debian.org>
54543
54544         sha1: remove the result buffer alignment constraint
54545         * lib/sha1.c (set_uint32): New function.
54546         (sha1_read_ctx): Rewrite to remove the result buffer alignment
54547         constraint.
54548         (sha1_finish_ctx): Remove comment warning about alignment constraint.
54549         * lib/sha1.h: Likewise.
54550
54551 2008-01-30  Andreas Schwab  <schwab@suse.de>
54552             Bruno Haible  <bruno@clisp.org>
54553
54554         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
54555         correct definition of LDBL_MIN_EXP.
54556
54557 2008-01-30  Karl Berry  <karl@gnu.org>
54558
54559         * config/srclist-update: try to preserve x bit on updates.
54560         * config/srclistvars.sh: update for karl.
54561
54562 2008-01-29  Jim Meyering  <meyering@redhat.com>
54563
54564         vasnprintf.c: Avoid warning about unused label
54565         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
54566         "overflow" label definition and associated code with the
54567         same cpp condition that guards the sole use of that label.
54568
54569 2008-01-26  Bruno Haible  <bruno@clisp.org>
54570
54571         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
54572         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
54573         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
54574         * lib/isnanl-nolibm.h (isnanl): Likewise.
54575         Reported by Paul Eggert <eggert@cs.ucla.edu>.
54576
54577 2008-01-26  Bruno Haible  <bruno@clisp.org>
54578
54579         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
54580         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
54581
54582 2008-01-26  Bruno Haible  <bruno@clisp.org>
54583
54584         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
54585         GCC >= 4.0 built-in.
54586         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
54587
54588 2008-01-26  Bruno Haible  <bruno@clisp.org>
54589
54590         Rename isnan, applicable to 'double' only, to isnand.
54591         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
54592         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
54593         (configure.ac): Update.
54594         (Include): Replace "isnan.h" with "isnand.h".
54595         * m4/isnand.m4: Renamed from m4/isnan.m4.
54596         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
54597         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
54598         instead of isnan.c.
54599         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
54600         instead of HAVE_ISNAN_IN_LIBC.
54601         (isnand): Renamed from isnan.
54602         * lib/isnand.c: New file.
54603         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
54604         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
54605         (Makefile.am): Update.
54606         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
54607         Include isnand.h instead of isnan.h.
54608         (main): Test isnand instead of isnan.
54609         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
54610         isnan-nolibm.
54611         * modules/frexp (Depends-on): Likewise.
54612         * modules/frexp-tests (Depends-on): Likewise.
54613         * modules/frexp-nolibm (Depends-on): Likewise.
54614         * modules/frexp-nolibm-tests (Depends-on): Likewise.
54615         * modules/isfinite (Depends-on): Likewise.
54616         * modules/round-tests (Depends-on): Likewise.
54617         * modules/signbit (Depends-on): Likewise.
54618         * modules/signbit-tests (Depends-on): Likewise.
54619         * modules/snprintf-posix (Depends-on): Likewise.
54620         * modules/sprintf-posix (Depends-on): Likewise.
54621         * modules/trunc-tests (Depends-on): Likewise.
54622         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54623         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54624         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54625         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54626         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54627         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54628         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54629         * modules/vasnprintf-posix (Depends-on): Likewise.
54630         * modules/vasprintf-posix (Depends-on): Likewise.
54631         * modules/vfprintf-posix (Depends-on): Likewise.
54632         * modules/vsnprintf-posix (Depends-on): Likewise.
54633         * modules/vsprintf-posix (Depends-on): Likewise.
54634         * lib/frexp.c: Include isnand.h instead of isnan.h.
54635         (ISNAN): Set to isnand instead of isnan.
54636         * lib/isfinite.c: Include isnand.h instead of isnan.h.
54637         (gl_isfinited): Use isnand instead of isnan.
54638         * lib/signbitd.c: Include isnand.h instead of isnan.h.
54639         (gl_signbitd): Use isnand instead of isnan.
54640         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
54641         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
54642         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
54643         (main): Use isnand instead of isnan.
54644         * tests/test-round1.c: Include isnand.h.
54645         (main): Use isnand instead of isnan.
54646         * tests/test-round2.c: Include isnand.h instead of isnan.h.
54647         (ISNAN): Set to isnand instead of isnan.
54648         * tests/test-trunc1.c: Include isnand.h.
54649         (main): Use isnand instead of isnan.
54650         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
54651         (equal): Use isnand instead of isnan.
54652         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
54653         isnand-nolibm.
54654         * NEWS: Mention the change.
54655
54656 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
54657             Bruno Haible  <bruno@clisp.org>
54658
54659         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
54660         the GCC builtins for signbits are present and set
54661         REPLACE_SIGNBIT_USING_GCC if so.
54662         * lib/math.in.h (signbit): Define using GCC builtins if
54663         REPLACE_SIGNBIT_USING_GCC is set.
54664         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
54665         REPLACE_SIGNBIT_USING_GCC.
54666         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
54667
54668 2008-01-25  Jim Meyering  <meyering@redhat.com>
54669
54670         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
54671         * lib/poll.c: Include <config.h>, not "config.h".
54672         * tests/test-getaddrinfo.c: Likewise.
54673
54674 2008-01-25  Simon Josefsson  <simon@josefsson.org>
54675
54676         * modules/sockets-tests: New file.
54677
54678 2008-01-24  Simon Josefsson  <simon@josefsson.org>
54679
54680         * modules/sockets: New module, can be used to call WSA_Startup and
54681         WSA_Cleanup when needed.
54682
54683         * lib/sockets.h, lib/sockets.c: New files.
54684
54685         * m4/sockets.m4: New file.
54686
54687         * tests/test-sockets.c: New file.
54688
54689 2008-01-19  Bruno Haible  <bruno@clisp.org>
54690
54691         * doc/posix-headers: Renamed from doc/headers.
54692         * doc/posix-functions: Renamed from doc/functions.
54693         * doc/gnulib.texi: Update.
54694
54695 2008-01-19  Bruno Haible  <bruno@clisp.org>
54696
54697         * doc/glibc-functions/strcasestr.texi: Include contents of
54698         doc/functions/strcasestr.texi, fixing the list of platforms.
54699         * doc/functions/strcasestr.texi: Remove file.
54700
54701 2008-01-19  Bruno Haible  <bruno@clisp.org>
54702
54703         * doc/glibc-functions/memmem.texi: Include contents of
54704         doc/functions/memmem.texi.
54705         * doc/functions/memmem.texi: Remove file.
54706
54707 2008-01-18  Bruno Haible  <bruno@clisp.org>
54708
54709         * doc/glibc-functions/*.texi: New files.
54710         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
54711         to use the new files.
54712
54713 2008-01-17  Bruno Haible  <bruno@clisp.org>
54714
54715         * tests/test-gethostname.c (main): Fix printf statement.
54716
54717 2008-01-17  Simon Josefsson  <simon@josefsson.org>
54718
54719         * modules/gethostname-tests: New file.
54720
54721         * tests/test-gethostname.c: New file.
54722
54723 2008-01-17  Simon Josefsson  <simon@josefsson.org>
54724
54725         * lib/gethostname.c: Include string.h unconditionally, strncpy is
54726         used by the UNAME case.  Reported by Bruno Haible
54727         <bruno@clisp.org>.
54728
54729 2008-01-17  Eric Blake  <ebb9@byu.net>
54730
54731         Convert c-strcasestr to be more efficient.
54732         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
54733         (Depends-on): Add c-strcase, remove malloca, strnlen.
54734         * tests/test-c-strcasestr.c (main): Enhance test.
54735         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
54736
54737 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
54738
54739         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
54740         Use it in creating po/Makevars.
54741
54742 2008-01-15  Simon Josefsson  <simon@josefsson.org>
54743
54744         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
54745         Applications that requires it should initialize libgcrypt
54746         manually.
54747
54748 2008-01-16  Simon Josefsson  <simon@josefsson.org>
54749
54750         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
54751
54752 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
54753
54754         Fix problem with getdate on mingw32 reported by Simon Josefsson
54755         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
54756         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
54757         tzname", when deciding whether to declare tzname.
54758         * lib/strftime.c (tzname): Likewise.
54759
54760 2008-01-15  Bruno Haible  <bruno@clisp.org>
54761
54762         Work around a MacOS X 10.5 bug in frexpl().
54763         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
54764         * doc/functions/frexpl.texi: Document the bug.
54765         Reported by Elias Pipping <pipping@gentoo.org>.
54766
54767 2008-01-14  Eric Blake  <ebb9@byu.net>
54768
54769         Touch up previous patch.
54770         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
54771         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
54772
54773         Convert strcasestr module to use Two-Way algorithm.
54774         * modules/strcasestr-simple: New module, based on the old
54775         strcasestr, but with Two-Way rather than KMP.
54776         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
54777         * lib/string.in.h (rpl_strcasestr): Declare.
54778         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
54779         performance.
54780         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
54781         * modules/string (Makefile.am): Support strcasestr.
54782         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
54783         * modules/strcasestr-tests (Depends-on): Check for alarm.
54784         * tests/test-strcasestr.c: Augment test.
54785         * lib/str-two-way.h: Clean up stray macro.
54786         * NEWS: Document new module.
54787         * MODULES.html.sh (string handling): Likewise.
54788         * doc/functions/strcasestr.texi: New file.
54789         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
54790         here, since it is not a POSIX function.
54791
54792 2008-01-14  Colin Watson  <cjwatson@debian.org>
54793             Bruno Haible  <bruno@clisp.org>
54794
54795         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
54796         works fine; if not, set REPLACE_STRSIGNAL.
54797         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
54798         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54799         REPLACE_STRSIGNAL.
54800         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
54801         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
54802         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
54803
54804 2008-01-14  Bruno Haible  <bruno@clisp.org>
54805
54806         * modules/strsignal (Include): Change to <string.h>.
54807
54808 2008-01-14  Colin Watson  <cjwatson@debian.org>
54809
54810         * modules/argp (Notice): Add a notice recommending to change
54811         XGETTEXT_OPTIONS.
54812         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
54813
54814 2008-01-13  Colin Watson  <cjwatson@debian.org>
54815
54816         * modules/strsignal-tests: New file.
54817         * tests/test-strsignal.c: New file.
54818
54819         * lib/strsignal.c: New file, from glibc with modifications.
54820         * lib/siglist.h: New file, from glibc with modifications.
54821         * lib/string.in.h (strsignal): New declaration.
54822         * m4/strsignal.m4: New file.
54823         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54824         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
54825         * modules/strsignal: New file.
54826         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
54827         HAVE_DECL_STRSIGNAL.
54828
54829 2008-01-13  Bruno Haible  <bruno@clisp.org>
54830
54831         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
54832         locale encoding is not ASCII. Needed for OpenBSD 4.0.
54833         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54834         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54835
54836 2008-01-13  Bruno Haible  <bruno@clisp.org>
54837
54838         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
54839         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
54840         * lib/argp.h (__attribute__): Likewise.
54841         * lib/c-stack.c (__attribute__): Likewise.
54842         * lib/error.h (__attribute__): Likewise.
54843         * lib/fts.c (__attribute__): Likewise.
54844         * lib/openat.h (__attribute__): Likewise.
54845         * lib/stdio.in.h (__attribute__): Likewise.
54846         * lib/string.in.h (__attribute__): Likewise.
54847         * lib/utimens.c (__attribute__): Likewise.
54848         * lib/vasnprintf.h (__attribute__): Likewise.
54849         * lib/xalloc.h (__attribute__): Likewise.
54850         * lib/xprintf.h (__attribute__): Likewise.
54851         * lib/xstrtol.h (__attribute__): Likewise.
54852         * lib/xvasprintf.h (__attribute__): Likewise.
54853
54854 2008-01-12  Bruno Haible  <bruno@clisp.org>
54855
54856         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
54857         * doc/glibc-headers/a.out.texi: New file.
54858         * doc/glibc-headers/aliases.texi: New file.
54859         * doc/glibc-headers/alloca.texi: New file.
54860         * doc/glibc-headers/ar.texi: New file.
54861         * doc/glibc-headers/argp.texi: New file.
54862         * doc/glibc-headers/argz.texi: New file.
54863         * doc/glibc-headers/byteswap.texi: New file.
54864         * doc/glibc-headers/crypt.texi: New file.
54865         * doc/glibc-headers/endian.texi: New file.
54866         * doc/glibc-headers/envz.texi: New file.
54867         * doc/glibc-headers/err.texi: New file.
54868         * doc/glibc-headers/error.texi: New file.
54869         * doc/glibc-headers/execinfo.texi: New file.
54870         * doc/glibc-headers/fpu_control.texi: New file.
54871         * doc/glibc-headers/fstab.texi: New file.
54872         * doc/glibc-headers/fts.texi: New file.
54873         * doc/glibc-headers/getopt.texi: New file.
54874         * doc/glibc-headers/ieee754.texi: New file.
54875         * doc/glibc-headers/ifaddrs.texi: New file.
54876         * doc/glibc-headers/libintl.texi: New file.
54877         * doc/glibc-headers/mcheck.texi: New file.
54878         * doc/glibc-headers/mntent.texi: New file.
54879         * doc/glibc-headers/obstack.texi: New file.
54880         * doc/glibc-headers/paths.texi: New file.
54881         * doc/glibc-headers/printf.texi: New file.
54882         * doc/glibc-headers/pty.texi: New file.
54883         * doc/glibc-headers/resolv.texi: New file.
54884         * doc/glibc-headers/shadow.texi: New file.
54885         * doc/glibc-headers/sysexits.texi: New file.
54886         * doc/glibc-headers/ttyent.texi: New file.
54887
54888 2008-01-12  Jim Meyering  <meyering@redhat.com>
54889
54890         announce-gen: emit Gnulib's git-based version string.
54891         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
54892         New option --gnulib-version=V, where V is expected to be
54893         the output of running git describe in the gnulib directory.
54894         (get_tool_versions): Request feedback on xdelta.  I suspect it's
54895         not useful, and plan to stop publishing an xdelta file with each
54896         coreutils release.
54897
54898         * build-aux/announce-gen: Also check for lzma-compressed files.
54899
54900 2008-01-11  Bruno Haible  <bruno@clisp.org>
54901
54902         * tests/test-memmem.c (main): Increase maximum allowed time.
54903         * tests/test-strstr.c (main): Likewise.
54904
54905 2008-01-11  Bruno Haible  <bruno@clisp.org>
54906
54907         * doc/functions/memmem.texi: Add more precisions about platforms.
54908         * doc/functions/strstr.texi: Likewise.
54909
54910 2008-01-10  Eric Blake  <ebb9@byu.net>
54911
54912         * m4/strstr.m4: Delete cruft from copy-n-paste.
54913         Reported by Bruno Haible.
54914
54915 2008-01-10  Bruno Haible  <bruno@clisp.org>
54916
54917         Make c-strstr rely on strstr.
54918         * lib/c-strstr.c: Don't include str-kmp.h.
54919         (c_strstr): Define in terms of strstr.
54920         * modules/c-strstr (Files): Remove lib/str-kmp.h.
54921         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
54922
54923 2008-01-10  Bruno Haible  <bruno@clisp.org>
54924
54925         * doc/gnulib.texi (String Functions in C Locale): New section.
54926         * doc/c-ctype.texi: New file.
54927         * doc/c-strcase.texi: New file.
54928         * doc/c-strcaseeq.texi: New file.
54929         * doc/c-strcasestr.texi: New file.
54930         * doc/c-strstr.texi: New file.
54931         * doc/c-strtod.texi: New file.
54932         * doc/c-strtold.texi: New file.
54933
54934 2008-01-10  Eric Blake  <ebb9@byu.net>
54935
54936         * lib/relocatable.h: Fix a comment.
54937
54938 2008-01-10  Eric Blake  <ebb9@byu.net>
54939
54940         Share two-way algorithm.
54941         * lib/str-two-way.h: New file, merged from...
54942         * lib/memmem.c: ...here...
54943         * lib/strstr.c: ...and here.
54944         * modules/memmem (Files): Use it.
54945         * modules/strstr (Files): Likewise.
54946
54947         Avoid quadratic strstr implementations.
54948         * lib/strstr.c: New file.
54949         * m4/strstr.m4: Likewise.
54950         * modules/strstr: Likewise.
54951         * modules/strstr-tests: Likewise.
54952         * tests/test-strstr.c: Likewise.
54953         * lib/string.in.h (rpl_strstr): Declare.
54954         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
54955         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
54956         * modules/string (Makefile.am): Likewise.
54957         * MODULES.html.sh (string handling): Mention new module.
54958         * doc/functions/strstr.texi (strstr): Document the bug.
54959
54960 2008-01-10  Bruno Haible  <bruno@clisp.org>
54961
54962         * lib/relocatable.h (relocate): State whether result is freshly
54963         allocated or not.
54964         * lib/relocatable.c (relocate): Return a freshly allocated string
54965         instead of a pointer to a privately held string.
54966         Reported by Sylvain Beucler <beuc@gnu.org>.
54967
54968 2008-01-10  Colin Watson  <cjwatson@debian.org>
54969
54970         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
54971         s/S_ISNLK/S_ISLNK/.
54972
54973 2008-01-09  Bruno Haible  <bruno@clisp.org>
54974
54975         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
54976         and other files.
54977         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
54978         if it's only a guess.
54979         * modules/memmem: Simplify by depending on memmem-simple.
54980
54981 2008-01-09  Bruno Haible  <bruno@clisp.org>
54982
54983         Work around OpenBSD 4.0 tdelete() bug.
54984         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
54985         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
54986         macros and don't redefine the enum values.
54987         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
54988         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
54989         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
54990
54991 2008-01-09  Bruno Haible  <bruno@clisp.org>
54992
54993         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
54994         (main): Don't perform the tests if setlocale did not install a UTF-8
54995         locale. Needed on OpenBSD 4.0.
54996         * modules/wcwidth-tests (Depends-on): Add localcharset.
54997
54998 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54999
55000         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
55001         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
55002         * NEWS: announce this.
55003         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
55004
55005 2008-01-09  Simon Josefsson  <simon@josefsson.org>
55006         and Eric Blake  <ebb9@byu.net>
55007
55008         Add memmem-simple module.
55009         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
55010         (gl_FUNC_MEMMEM): Separate performance from presence checks.
55011         * modules/memmem-simple: New file.
55012         * modules/memmem (Description): Tweak.
55013         * MODULES.html.sh (string handling): Mention new module.
55014         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
55015         addressed by memmem-simple.
55016         * NEWS: Document the difference.
55017
55018 2008-01-09  Eric Blake  <ebb9@byu.net>
55019
55020         Give gcc some memmem optimization hints.
55021         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
55022         (strcasestr): Declare as pure.
55023         * modules/memmem (Maintainer): Claim my implementation.
55024
55025 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55026
55027         Support AIX 6.1 and higher.
55028         * build-aux/config.libpath: Likewise.
55029         * build-aux/config.rpath: Likewise.
55030
55031 2008-01-08  Jim Meyering  <meyering@redhat.com>
55032             Bruno Haible  <bruno@clisp.org>
55033
55034         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
55035         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
55036         Reported by Peter Fales in
55037         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
55038
55039 2008-01-08  Bruno Haible  <bruno@clisp.org>
55040
55041         * modules/unictype/category-of (Depends-on): Add
55042         unictype/category-none.
55043         * modules/unictype/category-and-tests (Depends-on): Add
55044         unictype/category-{L,N,Lu,Nd}.
55045         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
55046         * modules/unictype/category-or-tests (Depends-on): Add
55047         unictype/category-{L,N}.
55048         * modules/unictype/category-name-tests (Depends-on): Add
55049         unictype/category-{Z,Nl}.
55050         Reported by Simon Josefsson.
55051
55052 2008-01-08  Bruno Haible  <bruno@clisp.org>
55053
55054         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
55055         convention better.
55056         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
55057         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
55058         Reported by Peter Miller <millerp@canb.auug.org.au>.
55059
55060 2008-01-08  Eric Blake  <ebb9@byu.net>
55061
55062         Rewrite memmem to guarantee linear complexity without malloc.
55063         * lib/memmem.c (memmem): Use Two-Way rather than
55064         Knuth-Morris-Pratt, to allow O(1) space usage.
55065         (critical_factorization, two_way_short_needle)
55066         (two_way_long_needle): New functions.
55067         (knuth_morris_pratt): Delete.
55068         * modules/memmem (Depends-on): No longer need malloca or stdbool.
55069         Add stdint.
55070         * tests/test-memmem.c (main): Add tests for periodic needle and
55071         sublinear performance.
55072         * doc/functions/memmem.texi (memmem): Document other deficiencies
55073         in cygwin and older glibc.
55074
55075 2008-01-08  Bruno Haible  <bruno@clisp.org>
55076
55077         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
55078         augmentation.
55079
55080 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
55081
55082         Add a configure time option: --disable-acl.
55083         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
55084         AC_ARG_ENABLE(acl).
55085
55086 2008-01-06  Simon Josefsson  <simon@josefsson.org>
55087
55088         * tests/test-localename.c: Don't include obsolete "setenv.h".
55089
55090         * modules/localename-tests (Depends-on): Need unsetenv.
55091
55092 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55093
55094         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
55095
55096 2008-01-06  Colin Watson  <cjwatson@debian.org>
55097
55098         * users.txt: Add man-db.
55099
55100 2008-01-07  Bruno Haible  <bruno@clisp.org>
55101
55102         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
55103         previous section name.
55104
55105 2008-01-07  Bruno Haible  <bruno@clisp.org>
55106
55107         * lib/progname.c (set_program_name): Don't strip off a leading
55108         "lt-" prefix outside a .libs directory.
55109         Suggested by Paul Eggert.
55110
55111 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
55112             Bruno Haible  <bruno@clisp.org>
55113
55114         Improve memory cleanup in 'relocatable' module.
55115         * lib/relocatable.h (compute_curr_prefix): Change return type to
55116         'char *'.
55117         * lib/relocatable.c (compute_curr_prefix): Change return type to
55118         'char *'. Free curr_installdir after use.
55119         (relocate): Free curr_prefix_better after use.
55120         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
55121
55122 2008-01-01  Bruno Haible  <bruno@clisp.org>
55123
55124         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
55125         failure on older glibc systems.
55126         Reported by Peter Fales <psfales@alcatel-lucent.com>.
55127
55128 2008-01-05  Eric Blake  <ebb9@byu.net>
55129
55130         Avoid quadratic system memmem.
55131         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
55132         Reported by Ralf Wildenhues.
55133
55134         Fix memmem test for mingw.
55135         * modules/memmem-tests (configure.ac): Check for alarm.
55136         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
55137         it.
55138         * doc/functions/memmem.texi: New file.
55139         * doc/gnulib.texi (Function Substitutes): Add memmem.
55140         Reported by Bruno Haible.
55141
55142 2008-01-04  Bruno Haible  <bruno@clisp.org>
55143
55144         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
55145         Require gl_HEADER_STRINGS_H_DEFAULTS, not
55146         gl_HEADER_STRING_H_DEFAULTS.
55147
55148 2008-01-04  Eric Blake  <ebb9@byu.net>
55149
55150         Shorten duration of memmem test.
55151         * tests/test-memmem.c (main): Use alarm to declare failure if test
55152         is taking too long.
55153         Reported by Ralf Wildenhues.
55154
55155 2007-12-21  Simon Josefsson  <simon@josefsson.org>
55156
55157         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
55158         string, needed by strerror.
55159
55160 2008-01-03  Colin Watson  <cjwatson@debian.org>
55161             Bruno Haible  <bruno@clisp.org>
55162
55163         * doc/gnulib-tool.texi (Localization): New section.
55164
55165 2008-01-02  Bruno Haible  <bruno@clisp.org>
55166
55167         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
55168         variables to 'unsigned char *' type.
55169         Reported by Paul Eggert.
55170
55171 2008-01-02  Jim Meyering  <jim@meyering.net>
55172
55173         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
55174
55175 2007-12-31  Jim Meyering  <jim@meyering.net>
55176
55177         Avoid use of private FTS type name.
55178         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
55179
55180 2007-12-30  Karl Berry  <karl@gnu.org>
55181
55182         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
55183         work around defect in Texinfo and/or the standalone Info browser.
55184
55185 2007-12-30  Bruno Haible  <bruno@clisp.org>
55186
55187         Unify 5 copies of the KMP code.
55188         * lib/str-kmp.h: New file.
55189         * lib/c-strcasestr.c: Include str-kmp.h.
55190         (knuth_morris_pratt): Remove function.
55191         (c_strcasestr): Update.
55192         * lib/c-strstr.c: Include str-kmp.h.
55193         (knuth_morris_pratt): Remove function.
55194         (c_strcasestr): Update.
55195         * lib/mbscasestr.c: Include str-kmp.h.
55196         (knuth_morris_pratt_unibyte): Remove function.
55197         * lib/mbsstr.c: Include str-kmp.h.
55198         (knuth_morris_pratt_unibyte): Remove function.
55199         * lib/strcasestr.c: Include str-kmp.h.
55200         (knuth_morris_pratt): Remove function.
55201         (strcasestr): Update.
55202         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
55203         * modules/c-strstr (Files): Likewise.
55204         * modules/mbscasestr (Files): Likewise.
55205         * modules/mbsstr (Files): Likewise.
55206         * modules/strcasestr (Files): Likewise.
55207         Suggested by Paul Eggert.
55208
55209 2007-12-30  Bruno Haible  <bruno@clisp.org>
55210
55211         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
55212         defined.
55213
55214 2007-12-30  Bruno Haible  <bruno@clisp.org>
55215
55216         * lib/xmalloca.h: Include xalloc.h.
55217         (xnmalloca): New macro.
55218
55219 2007-12-30  Bruno Haible  <bruno@clisp.org>
55220
55221         * lib/malloca.h (nmalloca): New macro.
55222         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
55223         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
55224         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
55225         knuth_morris_pratt_multibyte): Likewise.
55226         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
55227         knuth_morris_pratt_multibyte): Likewise.
55228         * lib/memmem.c (knuth_morris_pratt): Likewise.
55229         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
55230
55231 2007-12-25  Bruno Haible  <bruno@clisp.org>
55232
55233         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
55234         * lib/glob.c: Don't include openat.h.
55235         (link_exists2_p): Add back the code that deals with the
55236         !GLOB_ALTDIRFUNC case.
55237         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
55238         let it do the filename concatenation.
55239         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
55240         * modules/glob (Depends-on): Remove openat.
55241
55242 2007-12-31  Bruno Haible  <bruno@clisp.org>
55243
55244         * modules/dirfd (License): Change to LGPLv2+.
55245         Approved by Jim Meyering.
55246
55247 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
55248
55249         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
55250         when multiplying M by sizeof (size_t).
55251
55252 2007-12-10  Martin Lambers  <marlam@marlam.de>
55253
55254         Override getpagesize on mingw.
55255         * lib/getpagesize.c: New file.
55256         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
55257         * modules/getpagesize (Files): Add lib/getpagesize.c.
55258         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
55259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55260         REPLACE_GETPAGESIZE.
55261         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
55262
55263 2007-12-25  Bruno Haible  <bruno@clisp.org>
55264
55265         * modules/localcharset (Notice): New field.
55266         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
55267         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
55268
55269 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
55270             Bruno Haible  <bruno@clisp.org>
55271
55272         Avoid using the syntax symbol() in formatted documentation.
55273         * MODULES.html.sh (func_module): When replacing symbol() with a
55274         hyperlink, remove the parentheses. Show an error if some remain.
55275         Recognize and render the '...' syntax.
55276         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
55277         Rework. Add paragraph about GCC's inlining.
55278         * doc/alloca.texi: Likewise.
55279         * doc/error.texi: Remove parentheses from symbol reference.
55280         * doc/gnulib-intro.texi: Likewise.
55281         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
55282         * modules/fnmatch (Description): Reword to say "the ... function".
55283         * modules/full-read (Description): Likewise.
55284         * modules/full-write (Description): Likewise.
55285         * modules/safe-read (Description): Likewise.
55286         * modules/safe-write (Description): Likewise.
55287         * modules/strchrnul (Description): Likewise.
55288         * modules/trim (Description): Likewise.
55289         * modules/error (Description): Remove parentheses from symbol
55290         references.
55291         * modules/verror (Description): Likewise.
55292         Reported by Karl Berry.
55293
55294 2007-12-25  Bruno Haible  <bruno@clisp.org>
55295
55296         Fixup after 2007-10-16 commit.
55297         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
55298
55299 2007-12-24  Bruno Haible  <bruno@clisp.org>
55300
55301         Make --enable-relocatable work with DESTDIR.
55302         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
55303         to compute installdir from destprog.
55304         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
55305         also set the RELOC_DESTDIR variable.
55306         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55307
55308 2007-12-24  Bruno Haible  <bruno@clisp.org>
55309
55310         Fix link error due to xalloc_die().
55311         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
55312         of xreadlink.
55313         * lib/relocwrapper.c: Update comments.
55314         * build-aux/install-reloc: Remove xreadlink.c from file list.
55315         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
55316         xreadlink.c.
55317         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55318
55319 2007-12-24  Bruno Haible  <bruno@clisp.org>
55320
55321         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
55322         * lib/setenv.h: Remove file.
55323         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
55324         lib/setenv.h.
55325         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
55326         (Depends-on): Add stdlib.
55327         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
55328         gl_FUNC_UNSETENV.
55329         (Include): Replace setenv.h with <stdlib.h>.
55330         * modules/unsetenv: New file.
55331         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
55332         * lib/unsetenv.c: Include <stdlib.h> first.
55333         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
55334         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
55335         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
55336         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
55337         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
55338         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
55339         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
55340         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
55341         * doc/functions/unsetenv.texi: Update.
55342         * modules/xsetenv (Depends-on): Add unsetenv.
55343         * modules/getdate (Depends-on): Likewise.
55344         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
55345         * lib/xsetenv.c: Don't include setenv.h.
55346         * lib/getdate.y: Likewise.
55347         * lib/relocwrapper.c: Likewise.
55348         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
55349         (Depends-on): Add stdlib.
55350         * NEWS: Mention the changes.
55351         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55352
55353 2007-12-23  Bruno Haible  <bruno@clisp.org>
55354
55355         * lib/memmem.c (memmem): Use lowercase variable names. Tab
55356         indentation.
55357
55358 2007-12-23  Bruno Haible  <bruno@clisp.org>
55359
55360         * lib/c-strcasestr.c: Add more comments.
55361         * lib/c-strstr.c: Likewise.
55362         * lib/mbscasestr.c: Likewise.
55363         * lib/mbsstr.c: Likewise.
55364         * lib/strcasestr.c: Likewise.
55365         * lib/memmem.c: Likewise.
55366
55367 2007-12-23  Bruno Haible  <bruno@clisp.org>
55368
55369         * tests/test-memmem.c: Include <string.h> first.
55370
55371 2007-12-22  Bruno Haible  <bruno@clisp.org>
55372
55373         * gnulib-tool (func_create_testdir): Change $auxdir while generating
55374         the contents of $testsbase.
55375         Reported by Ralf Wildenhues.
55376
55377 2007-12-22  Bruno Haible  <bruno@clisp.org>
55378
55379         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
55380         two variables local_ldadd_before, local_ldadd_last.
55381
55382 2007-12-20  Eric Blake  <ebb9@byu.net>
55383
55384         Work around circular library issue when cross-compiling.
55385         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
55386         that progname.o does not need to pull in rpl_memcmp.
55387
55388 2007-12-19  Eric Blake  <ebb9@byu.net>
55389
55390         Fix memmem to avoid O(n^2) worst-case complexity.
55391         * lib/memmem.c (knuth_morris_pratt): New function.
55392         (memmem): Use it if first few naive iterations fail.
55393         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
55394         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
55395         * modules/memchr (License): Likewise.
55396         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
55397         malloca.
55398         * tests/test-memmem.c: Rewrite, borrowing ideas from
55399         test-mbsstr1.c; the old version wouldn't even compile!
55400         * modules/memmem-tests: New file.
55401         * lib/string.in.h (rpl_memmem): Add declaration.
55402         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
55403         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
55404         REPLACE_MEMMEM.
55405
55406 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55407
55408         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
55409         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
55410         before any system include files, and undef after them all.  This
55411         should fix a problem on VMS reported by John E. Malmberg in
55412         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
55413
55414 2007-12-17  Eric Blake  <ebb9@byu.net>
55415
55416         Revert addition of verify, for BSD/OS.
55417         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
55418         can't handle large files, for the sake of obsolete platforms.
55419         * modules/fseeko (Depends-on): Remove verify.
55420         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
55421         * doc/functions/ftello.texi (ftello): Likewise.
55422         * doc/functions/fgetpos.texi (fgetpos): Likewise.
55423         Reported by Larry Jones.
55424
55425 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
55426
55427         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
55428         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
55429
55430 2007-12-17  Jim Meyering  <meyering@redhat.com>
55431
55432         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
55433         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
55434         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
55435         * modules/getcwd (Depends-on): Add openat.
55436         Reported by Petr Salinger.
55437
55438 2007-12-17  Bruno Haible  <bruno@clisp.org>
55439
55440         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
55441         avoid a segmentation fault of the configure test on x86_64 systems.
55442
55443 2007-12-15  Jim Meyering  <meyering@redhat.com>
55444
55445         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
55446
55447 2007-12-13  Eric Blake  <ebb9@byu.net>
55448
55449         Another fseek test.
55450         * tests/test-fseek.c (main): Also test ungetc handling.
55451         * tests/test-fseeko.c (main): Likewise.
55452         * modules/fseeko (Depends-on): Add verify.
55453         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
55454         large.
55455         Reported by Larry Jones.
55456
55457         Fix fseeko on mingw.
55458         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
55459         seek.
55460
55461         Beef up fseek tests.
55462         * tests/test-fseek.c (main): Also test eof handling.
55463         * tests/test-fseeko.c (main): Likewise.
55464         Reported by Larry Jones.
55465
55466 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
55467
55468         Fix fseeko on BSD-based platforms.
55469         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
55470         successful seek.
55471
55472 2007-12-12  Eric Blake  <ebb9@byu.net>
55473
55474         Allow circular dependency of separate libtests.a
55475         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
55476         when use_libtests.
55477
55478 2007-12-11  Eric Blake  <ebb9@byu.net>
55479
55480         Fix bug with -0.0L in previous patch.
55481         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
55482         * tests/test-isnan.c (main): Also test on zeroes.
55483         * tests/test-isnanf.c (main): Likewise.
55484         * tests/test-isnanl.h (main): Likewise.
55485
55486         Detect pseudo-denormals on x86 even when cross-compiling.
55487         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
55488         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
55489         invalid bit patterns that happen to satisfy ==.
55490
55491         Avoid link failures with separate libtests.a.
55492         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
55493         last, to satisfy circular dependencies.
55494
55495 2007-12-11  Eric Blake  <ebb9@byu.net>
55496         and Bruno Haible  <bruno@clisp.org>
55497
55498         Fix OpenBSD 4.0 <float.h> handling of long double.
55499         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
55500         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
55501         * doc/headers/float.texi (float.h): Document OpenBSD bug.
55502
55503 2007-12-11  Jim Meyering  <meyering@redhat.com>
55504
55505         * users.txt: Add libvirt.
55506
55507         Support versions of autoconf prior to 2.59c.
55508         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
55509         if it is not already defined.
55510
55511 2007-12-09  Bruno Haible  <bruno@clisp.org>
55512
55513         Let 'gnulib-tool --import' collect sources needed for the tests in
55514         tests/ rather than in lib/.
55515         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
55516         argument. If true, add rules to generate libtests.a, and put libtests.a
55517         into $(LDADD). Consider source files in subdirectories and set
55518         uses_subdirs.
55519         (func_emit_initmacro_start, func_emit_initmacro_end,
55520         func_emit_initmacro_done): Pass all arguments explicitly.
55521         (func_import): Determine two module lists main_modules,
55522         testsrelated_modules. Determine use_libtests. Determine two variables
55523         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
55524         instead of just sed_transform_lib_file. Determine two variables
55525         main_files and testsrelated_files. Compute 'files' as the union of
55526         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
55527         func_add_or_update. In the generated gnulib-comp.m4, collect the
55528         object files for tests/ in different variables than those for lib/.
55529         Substitute LIBTESTS_LIBDEPS.
55530         (func_create_testdir): Combine the uses_subdirs results from
55531         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
55532
55533 2007-12-09  Bruno Haible  <bruno@clisp.org>
55534
55535         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
55536         the build-aux directory.
55537
55538 2007-12-09  Bruno Haible  <bruno@clisp.org>
55539
55540         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
55541         introduced on 2006-09-09.
55542
55543 2007-12-07  Jim Meyering  <meyering@redhat.com>
55544
55545         Let these macros work also with autoconf-2.59.
55546         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
55547         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
55548         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
55549
55550 2007-12-06  Jim Meyering  <meyering@redhat.com>
55551
55552         Avoid a configure-time syntax error in gl_FUNC_ACL.
55553         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
55554         function in each branch, before testing the cache variable.
55555
55556 2007-12-04  Eric Blake  <ebb9@byu.net>
55557
55558         Make scripts executable.
55559         * build-aux/config.guess: Add execute permissions.
55560         * build-aux/config.sub: Likewise.
55561         * build-aux/gendocs.sh: Likewise.
55562
55563         Fix frexp on mingw.
55564         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
55565         cross-compiling.
55566         * doc/functions/frexp.texi (frexp): Document the bug.
55567
55568         Make cygwin fseeko check more reliable.
55569         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
55570         version numbers, rather than unrelated feature check.
55571         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
55572         * doc/functions/ftello.texi (ftello): Likewise.
55573         Reported by Bruno Haible.
55574
55575         * m4/strerror.m4: Bump version number.
55576
55577 2007-12-03  Bruno Haible  <bruno@clisp.org>
55578
55579         * doc/functions/mprotect.texi: Mention the mingw problem.
55580
55581 2007-12-03  Eric Blake  <ebb9@byu.net>
55582
55583         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
55584         REPLACE_STRERROR is initialized before this macro.
55585
55586 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
55587
55588         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
55589         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
55590         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
55591         put -lsec in even for programs other than 'ls'.  This fixes a problem
55592         for gettext reported by Bruno Haible in
55593         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
55594         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
55595         Add support for Solaris 10.  This isn't efficient, but should get the
55596         job done for now.
55597
55598 2007-12-03  James Youngman  <jay@gnu.org>
55599
55600         * doc/regexprops-generic.texi: change "an close-group" to "a
55601         close-group" and "illegal" to "not allowed".
55602
55603 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55604
55605         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
55606         pr_byname.h. Needed for the rare case when the maintainer has done
55607         "make maintainer-clean" in the source directory and then attempts a
55608         build outside the source directory.
55609         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
55610         scripts_byname.h.
55611
55612 2007-12-02  Martin Lambers <marlam@marlam.de>
55613             Bruno Haible  <bruno@clisp.org>
55614
55615         * lib/getpagesize.h: Remove file.
55616         * lib/unistd.in.h: Include declaration of getpagesize here.
55617         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
55618         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
55619         HAVE_SYS_PARAM_H.
55620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
55621         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
55622         * modules/getpagesize (Files): Remove lib/getpagesize.h.
55623         (Depends-on): Add unistd.
55624         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55625         (Include): Use <unistd.h> instead of getpagesize.h.
55626         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
55627         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
55628         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
55629         gl_GETPAGESIZE invocation, already handled by module dependency.
55630         * lib/pagealign_alloc.c: Don't include getpagesize.h.
55631
55632 2007-12-02  Bruno Haible  <bruno@clisp.org>
55633
55634         * modules/strings-tests: New file.
55635         * tests/test-strings.c: New file.
55636
55637         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
55638         * lib/strings.in.h: New file.
55639         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
55640         * m4/strings_h.m4: New file.
55641         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
55642         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
55643         * modules/strings: New file.
55644         * modules/string (Makefile.am): Update.
55645         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
55646         Reported by Karl Berry.
55647
55648 2007-12-01  Eric Blake  <ebb9@byu.net>
55649
55650         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
55651         accomodate fix in cygwin 1.5.25.
55652
55653 2007-12-01  Jim Meyering  <meyering@redhat.com>
55654
55655         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
55656         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
55657         that would inhibit utf8-optimization of a regexp containing line-
55658         or buffer-anchors, e.g., `^', `$'.
55659
55660 2007-11-30  Bruno Haible  <bruno@clisp.org>
55661
55662         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
55663         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
55664         glthread_recursive_lock_init.
55665         * lib/lock.c (glthread_recursive_lock_init)
55666         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
55667         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55668
55669 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
55670
55671         New function qset_acl, like set_acl but with syscall semantics.
55672         * lib/acl.h (qset_acl): New decl.
55673         * lib/acl.c (qset_acl): New function.
55674         (set_acl): Use new function.  Use more-consistent diagnostics.
55675
55676 2007-11-28  Jim Meyering  <meyering@redhat.com>
55677
55678         * modules/physmem (License): Change from GPL to LGPLv2+.
55679
55680 2007-11-26  Bruno Haible  <bruno@clisp.org>
55681
55682         * lib/vasnprintf.c (decode_long_double): Don't abort if the
55683         'long double' type has excess precision.
55684         Reported by Jim Meyering in
55685         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
55686
55687 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55688
55689         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
55690         Sync from <http://gnu.org/licenses>.
55691         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
55692         with license text from same location.
55693         * doc/maintain.texi, doc/standards.texi:  Sync from
55694         <http://savannah.gnu.org/projects/gnustandards>.
55695
55696 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
55697         and Jim Meyering  <meyering@redhat.com>
55698
55699         Adjust getdate' grammar to accept a slightly more regular language.
55700         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
55701         Before, the former was rejected.
55702         * lib/getdate.y (digits_to_date_time): New function, factored
55703         out of ...
55704         (number): ...here.  Just call digits_to_date_time.
55705         (hybrid): New non-terminal to handle an <unsigned number,
55706         signed relative offset> sequence consistently.
55707
55708 2007-11-18  Jim Meyering  <meyering@redhat.com>
55709
55710         Pull my changes from coreutils:
55711         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
55712         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
55713         use of $gnulib_tool_option_extras, so that it's separated from the
55714         preceding argument.
55715
55716         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
55717         * build-aux/bootstrap (cp_mark_as_generated): Create any required
55718         parent destination directories before copying a file into place.
55719
55720 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
55721
55722         bootstrap: work also with 4-argument variant of AC_INIT
55723         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
55724
55725 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55726
55727         Port test-getaddrinfo to Solaris.
55728         Problem reported by Bruno Haible in
55729         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
55730         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
55731         explanation of setting 'hints'.
55732         Don't reject an implementation merely because it returns EAI_SERVICE.
55733         (EAI_SERVICE): Define to 0 if not defined.
55734
55735 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
55736
55737         The license of gnu-make and posix-shell is now "GPLed build tool".
55738         * modules/gnu-make (License): Likewise.
55739         * modules/posix-shell (License): Likewise.
55740
55741         New module posix-shell, for determining a POSIX shell
55742         or perhaps something that is close enough to a POSIX shell.
55743         * m4/posix-shell.m4: New file.
55744         * modules/posix-shell: New file.
55745
55746         * MODULES.html.sh: Mention new module.
55747
55748         New module gnu-make, for determining whether we're using GNU Make.
55749         * m4/gnu-make.m4: New file.
55750         * modules/gnu-make: New file.
55751         * MODULES.html.sh: Mention new module.
55752
55753 2007-11-14  Jim Meyering  <meyering@redhat.com>
55754
55755         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
55756         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
55757         use this macro to create a function _definition_.
55758         Remove useless "#undef ARGMATCH_DIE".
55759
55760 2007-11-14  Bruno Haible  <bruno@clisp.org>
55761
55762         * lib/config.charset: Update for OpenBSD 4.1.
55763         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
55764
55765 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
55766
55767         Document 64-bit #if problems in stdint.texi.
55768         * doc/headers/stdint.texi (stdint.h): Mention problems with
55769         64-bit-#if, and how to work around them.
55770
55771         Don't insist on 'long long int' support in the preprocessor.  It
55772         breaks too many things.  For example, PRIdMAX still uses a 'long
55773         long int' format with the latest Sun compiler, even though
55774         HAVE_LONG_LONG_INT isn't defined due to that compiler's
55775         preprocessor problem.  This causes the latest coreutils to dump
55776         core on Solaris 10 sparc with the Sun C compiler.
55777         Instead, fix the 2007-10-16 problem in a different way, by evaluating
55778         the troublesome expressions at configure-time, not at #if-time.
55779         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
55780         preprocessor.
55781         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
55782         compile-time C checks, done at 'configure'-time.
55783         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
55784         * modules/inttypes (Makefile): Substitute the new symbols that
55785         gl_INTTYPES_H now generates.
55786         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
55787
55788 2007-11-12  Bruno Haible  <bruno@clisp.org>
55789
55790         Tests for Unicode character classification functions.
55791
55792         * modules/unictype/bidicategory-byname-tests: New file.
55793         * modules/unictype/bidicategory-name-tests: New file.
55794         * modules/unictype/bidicategory-of-tests: New file.
55795         * modules/unictype/bidicategory-test-tests: New file.
55796         * modules/unictype/block-list-tests: New file.
55797         * modules/unictype/block-of-tests: New file.
55798         * modules/unictype/block-test-tests: New file.
55799         * modules/unictype/category-C-tests: New file.
55800         * modules/unictype/category-Cc-tests: New file.
55801         * modules/unictype/category-Cf-tests: New file.
55802         * modules/unictype/category-Cn-tests: New file.
55803         * modules/unictype/category-Co-tests: New file.
55804         * modules/unictype/category-Cs-tests: New file.
55805         * modules/unictype/category-L-tests: New file.
55806         * modules/unictype/category-Ll-tests: New file.
55807         * modules/unictype/category-Lm-tests: New file.
55808         * modules/unictype/category-Lo-tests: New file.
55809         * modules/unictype/category-Lt-tests: New file.
55810         * modules/unictype/category-Lu-tests: New file.
55811         * modules/unictype/category-M-tests: New file.
55812         * modules/unictype/category-Mc-tests: New file.
55813         * modules/unictype/category-Me-tests: New file.
55814         * modules/unictype/category-Mn-tests: New file.
55815         * modules/unictype/category-N-tests: New file.
55816         * modules/unictype/category-Nd-tests: New file.
55817         * modules/unictype/category-Nl-tests: New file.
55818         * modules/unictype/category-No-tests: New file.
55819         * modules/unictype/category-P-tests: New file.
55820         * modules/unictype/category-Pc-tests: New file.
55821         * modules/unictype/category-Pd-tests: New file.
55822         * modules/unictype/category-Pe-tests: New file.
55823         * modules/unictype/category-Pf-tests: New file.
55824         * modules/unictype/category-Pi-tests: New file.
55825         * modules/unictype/category-Po-tests: New file.
55826         * modules/unictype/category-Ps-tests: New file.
55827         * modules/unictype/category-S-tests: New file.
55828         * modules/unictype/category-Sc-tests: New file.
55829         * modules/unictype/category-Sk-tests: New file.
55830         * modules/unictype/category-Sm-tests: New file.
55831         * modules/unictype/category-So-tests: New file.
55832         * modules/unictype/category-Z-tests: New file.
55833         * modules/unictype/category-Zl-tests: New file.
55834         * modules/unictype/category-Zp-tests: New file.
55835         * modules/unictype/category-Zs-tests: New file.
55836         * modules/unictype/category-and-not-tests: New file.
55837         * modules/unictype/category-and-tests: New file.
55838         * modules/unictype/category-byname-tests: New file.
55839         * modules/unictype/category-name-tests: New file.
55840         * modules/unictype/category-none-tests: New file.
55841         * modules/unictype/category-of-tests: New file.
55842         * modules/unictype/category-or-tests: New file.
55843         * modules/unictype/category-test-withtable-tests: New file.
55844         * modules/unictype/combining-class-tests: New file.
55845         * modules/unictype/ctype-alnum-tests: New file.
55846         * modules/unictype/ctype-alpha-tests: New file.
55847         * modules/unictype/ctype-blank-tests: New file.
55848         * modules/unictype/ctype-cntrl-tests: New file.
55849         * modules/unictype/ctype-digit-tests: New file.
55850         * modules/unictype/ctype-graph-tests: New file.
55851         * modules/unictype/ctype-lower-tests: New file.
55852         * modules/unictype/ctype-print-tests: New file.
55853         * modules/unictype/ctype-punct-tests: New file.
55854         * modules/unictype/ctype-space-tests: New file.
55855         * modules/unictype/ctype-upper-tests: New file.
55856         * modules/unictype/ctype-xdigit-tests: New file.
55857         * modules/unictype/decimal-digit-tests: New file.
55858         * modules/unictype/digit-tests: New file.
55859         * modules/unictype/mirror-tests: New file.
55860         * modules/unictype/numeric-tests: New file.
55861         * modules/unictype/property-alphabetic-tests: New file.
55862         * modules/unictype/property-ascii-hex-digit-tests: New file.
55863         * modules/unictype/property-bidi-arabic-digit-tests: New file.
55864         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
55865         * modules/unictype/property-bidi-block-separator-tests: New file.
55866         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
55867         * modules/unictype/property-bidi-common-separator-tests: New file.
55868         * modules/unictype/property-bidi-control-tests: New file.
55869         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
55870         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
55871         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
55872         * modules/unictype/property-bidi-european-digit-tests: New file.
55873         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
55874         * modules/unictype/property-bidi-left-to-right-tests: New file.
55875         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
55876         * modules/unictype/property-bidi-other-neutral-tests: New file.
55877         * modules/unictype/property-bidi-pdf-tests: New file.
55878         * modules/unictype/property-bidi-segment-separator-tests: New file.
55879         * modules/unictype/property-bidi-whitespace-tests: New file.
55880         * modules/unictype/property-byname-tests: New file.
55881         * modules/unictype/property-combining-tests: New file.
55882         * modules/unictype/property-composite-tests: New file.
55883         * modules/unictype/property-currency-symbol-tests: New file.
55884         * modules/unictype/property-dash-tests: New file.
55885         * modules/unictype/property-decimal-digit-tests: New file.
55886         * modules/unictype/property-default-ignorable-code-point-tests: New file.
55887         * modules/unictype/property-deprecated-tests: New file.
55888         * modules/unictype/property-diacritic-tests: New file.
55889         * modules/unictype/property-extender-tests: New file.
55890         * modules/unictype/property-format-control-tests: New file.
55891         * modules/unictype/property-grapheme-base-tests: New file.
55892         * modules/unictype/property-grapheme-extend-tests: New file.
55893         * modules/unictype/property-grapheme-link-tests: New file.
55894         * modules/unictype/property-hex-digit-tests: New file.
55895         * modules/unictype/property-hyphen-tests: New file.
55896         * modules/unictype/property-id-continue-tests: New file.
55897         * modules/unictype/property-id-start-tests: New file.
55898         * modules/unictype/property-ideographic-tests: New file.
55899         * modules/unictype/property-ids-binary-operator-tests: New file.
55900         * modules/unictype/property-ids-trinary-operator-tests: New file.
55901         * modules/unictype/property-ignorable-control-tests: New file.
55902         * modules/unictype/property-iso-control-tests: New file.
55903         * modules/unictype/property-join-control-tests: New file.
55904         * modules/unictype/property-left-of-pair-tests: New file.
55905         * modules/unictype/property-line-separator-tests: New file.
55906         * modules/unictype/property-logical-order-exception-tests: New file.
55907         * modules/unictype/property-lowercase-tests: New file.
55908         * modules/unictype/property-math-tests: New file.
55909         * modules/unictype/property-non-break-tests: New file.
55910         * modules/unictype/property-not-a-character-tests: New file.
55911         * modules/unictype/property-numeric-tests: New file.
55912         * modules/unictype/property-other-alphabetic-tests: New file.
55913         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
55914         * modules/unictype/property-other-grapheme-extend-tests: New file.
55915         * modules/unictype/property-other-id-continue-tests: New file.
55916         * modules/unictype/property-other-id-start-tests: New file.
55917         * modules/unictype/property-other-lowercase-tests: New file.
55918         * modules/unictype/property-other-math-tests: New file.
55919         * modules/unictype/property-other-uppercase-tests: New file.
55920         * modules/unictype/property-paired-punctuation-tests: New file.
55921         * modules/unictype/property-paragraph-separator-tests: New file.
55922         * modules/unictype/property-pattern-syntax-tests: New file.
55923         * modules/unictype/property-pattern-white-space-tests: New file.
55924         * modules/unictype/property-private-use-tests: New file.
55925         * modules/unictype/property-punctuation-tests: New file.
55926         * modules/unictype/property-quotation-mark-tests: New file.
55927         * modules/unictype/property-radical-tests: New file.
55928         * modules/unictype/property-sentence-terminal-tests: New file.
55929         * modules/unictype/property-soft-dotted-tests: New file.
55930         * modules/unictype/property-space-tests: New file.
55931         * modules/unictype/property-terminal-punctuation-tests: New file.
55932         * modules/unictype/property-test-tests: New file.
55933         * modules/unictype/property-titlecase-tests: New file.
55934         * modules/unictype/property-unassigned-code-value-tests: New file.
55935         * modules/unictype/property-unified-ideograph-tests: New file.
55936         * modules/unictype/property-uppercase-tests: New file.
55937         * modules/unictype/property-variation-selector-tests: New file.
55938         * modules/unictype/property-white-space-tests: New file.
55939         * modules/unictype/property-xid-continue-tests: New file.
55940         * modules/unictype/property-xid-start-tests: New file.
55941         * modules/unictype/property-zero-width-tests: New file.
55942         * modules/unictype/scripts-tests: New file.
55943         * modules/unictype/syntax-c-ident-tests: New file.
55944         * modules/unictype/syntax-c-whitespace-tests: New file.
55945         * modules/unictype/syntax-java-ident-tests: New file.
55946         * modules/unictype/syntax-java-whitespace-tests: New file.
55947         * tests/unictype/test-bidi_byname.c: New file.
55948         * tests/unictype/test-bidi_name.c: New file.
55949         * tests/unictype/test-bidi_of.c: New file.
55950         * tests/unictype/test-bidi_test.c: New file.
55951         * tests/unictype/test-block_list.c: New file.
55952         * tests/unictype/test-block_of.c: New file.
55953         * tests/unictype/test-block_test.c: New file.
55954         * tests/unictype/test-categ_and.c: New file.
55955         * tests/unictype/test-categ_and_not.c: New file.
55956         * tests/unictype/test-categ_byname.c: New file.
55957         * tests/unictype/test-categ_name.c: New file.
55958         * tests/unictype/test-categ_none.c: New file.
55959         * tests/unictype/test-categ_of.c: New file.
55960         * tests/unictype/test-categ_or.c: New file.
55961         * tests/unictype/test-categ_test_withtable.c: New file.
55962         * tests/unictype/test-combining.c: New file.
55963         * tests/unictype/test-decdigit.c: New file.
55964         * tests/unictype/test-digit.c: New file.
55965         * tests/unictype/test-mirror.c: New file.
55966         * tests/unictype/test-numeric.c: New file.
55967         * tests/unictype/test-pr_byname.c: New file.
55968         * tests/unictype/test-pr_test.c: New file.
55969         * tests/unictype/test-predicate-part1.h: New file.
55970         * tests/unictype/test-predicate-part2.h: New file.
55971         * tests/unictype/test-scripts.c: New file.
55972         * tests/unictype/test-sy_c_ident.c: New file.
55973         * tests/unictype/test-sy_java_ident.c: New file.
55974
55975         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
55976         for Unicode 5.0.0.
55977         * tests/unictype/test-categ_Cc.c: Likewise.
55978         * tests/unictype/test-categ_Cf.c: Likewise.
55979         * tests/unictype/test-categ_Cn.c: Likewise.
55980         * tests/unictype/test-categ_Co.c: Likewise.
55981         * tests/unictype/test-categ_Cs.c: Likewise.
55982         * tests/unictype/test-categ_L.c: Likewise.
55983         * tests/unictype/test-categ_Ll.c: Likewise.
55984         * tests/unictype/test-categ_Lm.c: Likewise.
55985         * tests/unictype/test-categ_Lo.c: Likewise.
55986         * tests/unictype/test-categ_Lt.c: Likewise.
55987         * tests/unictype/test-categ_Lu.c: Likewise.
55988         * tests/unictype/test-categ_M.c: Likewise.
55989         * tests/unictype/test-categ_Mc.c: Likewise.
55990         * tests/unictype/test-categ_Me.c: Likewise.
55991         * tests/unictype/test-categ_Mn.c: Likewise.
55992         * tests/unictype/test-categ_N.c: Likewise.
55993         * tests/unictype/test-categ_Nd.c: Likewise.
55994         * tests/unictype/test-categ_Nl.c: Likewise.
55995         * tests/unictype/test-categ_No.c: Likewise.
55996         * tests/unictype/test-categ_P.c: Likewise.
55997         * tests/unictype/test-categ_Pc.c: Likewise.
55998         * tests/unictype/test-categ_Pd.c: Likewise.
55999         * tests/unictype/test-categ_Pe.c: Likewise.
56000         * tests/unictype/test-categ_Pf.c: Likewise.
56001         * tests/unictype/test-categ_Pi.c: Likewise.
56002         * tests/unictype/test-categ_Po.c: Likewise.
56003         * tests/unictype/test-categ_Ps.c: Likewise.
56004         * tests/unictype/test-categ_S.c: Likewise.
56005         * tests/unictype/test-categ_Sc.c: Likewise.
56006         * tests/unictype/test-categ_Sk.c: Likewise.
56007         * tests/unictype/test-categ_Sm.c: Likewise.
56008         * tests/unictype/test-categ_So.c: Likewise.
56009         * tests/unictype/test-categ_Z.c: Likewise.
56010         * tests/unictype/test-categ_Zl.c: Likewise.
56011         * tests/unictype/test-categ_Zp.c: Likewise.
56012         * tests/unictype/test-categ_Zs.c: Likewise.
56013         * tests/unictype/test-ctype_alnum.c: Likewise.
56014         * tests/unictype/test-ctype_alpha.c: Likewise.
56015         * tests/unictype/test-ctype_blank.c: Likewise.
56016         * tests/unictype/test-ctype_cntrl.c: Likewise.
56017         * tests/unictype/test-ctype_digit.c: Likewise.
56018         * tests/unictype/test-ctype_graph.c: Likewise.
56019         * tests/unictype/test-ctype_lower.c: Likewise.
56020         * tests/unictype/test-ctype_print.c: Likewise.
56021         * tests/unictype/test-ctype_punct.c: Likewise.
56022         * tests/unictype/test-ctype_space.c: Likewise.
56023         * tests/unictype/test-ctype_upper.c: Likewise.
56024         * tests/unictype/test-ctype_xdigit.c: Likewise.
56025         * tests/unictype/test-decdigit.h: Likewise.
56026         * tests/unictype/test-digit.h: Likewise.
56027         * tests/unictype/test-numeric.h: Likewise.
56028         * tests/unictype/test-pr_alphabetic.c: Likewise.
56029         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
56030         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
56031         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
56032         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
56033         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
56034         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
56035         * tests/unictype/test-pr_bidi_control.c: Likewise.
56036         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
56037         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
56038         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
56039         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
56040         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
56041         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
56042         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
56043         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
56044         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
56045         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
56046         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
56047         * tests/unictype/test-pr_combining.c: Likewise.
56048         * tests/unictype/test-pr_composite.c: Likewise.
56049         * tests/unictype/test-pr_currency_symbol.c: Likewise.
56050         * tests/unictype/test-pr_dash.c: Likewise.
56051         * tests/unictype/test-pr_decimal_digit.c: Likewise.
56052         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
56053         * tests/unictype/test-pr_deprecated.c: Likewise.
56054         * tests/unictype/test-pr_diacritic.c: Likewise.
56055         * tests/unictype/test-pr_extender.c: Likewise.
56056         * tests/unictype/test-pr_format_control.c: Likewise.
56057         * tests/unictype/test-pr_grapheme_base.c: Likewise.
56058         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
56059         * tests/unictype/test-pr_grapheme_link.c: Likewise.
56060         * tests/unictype/test-pr_hex_digit.c: Likewise.
56061         * tests/unictype/test-pr_hyphen.c: Likewise.
56062         * tests/unictype/test-pr_id_continue.c: Likewise.
56063         * tests/unictype/test-pr_id_start.c: Likewise.
56064         * tests/unictype/test-pr_ideographic.c: Likewise.
56065         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
56066         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
56067         * tests/unictype/test-pr_ignorable_control.c: Likewise.
56068         * tests/unictype/test-pr_iso_control.c: Likewise.
56069         * tests/unictype/test-pr_join_control.c: Likewise.
56070         * tests/unictype/test-pr_left_of_pair.c: Likewise.
56071         * tests/unictype/test-pr_line_separator.c: Likewise.
56072         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
56073         * tests/unictype/test-pr_lowercase.c: Likewise.
56074         * tests/unictype/test-pr_math.c: Likewise.
56075         * tests/unictype/test-pr_non_break.c: Likewise.
56076         * tests/unictype/test-pr_not_a_character.c: Likewise.
56077         * tests/unictype/test-pr_numeric.c: Likewise.
56078         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
56079         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
56080         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
56081         * tests/unictype/test-pr_other_id_continue.c: Likewise.
56082         * tests/unictype/test-pr_other_id_start.c: Likewise.
56083         * tests/unictype/test-pr_other_lowercase.c: Likewise.
56084         * tests/unictype/test-pr_other_math.c: Likewise.
56085         * tests/unictype/test-pr_other_uppercase.c: Likewise.
56086         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
56087         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
56088         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
56089         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
56090         * tests/unictype/test-pr_private_use.c: Likewise.
56091         * tests/unictype/test-pr_punctuation.c: Likewise.
56092         * tests/unictype/test-pr_quotation_mark.c: Likewise.
56093         * tests/unictype/test-pr_radical.c: Likewise.
56094         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
56095         * tests/unictype/test-pr_soft_dotted.c: Likewise.
56096         * tests/unictype/test-pr_space.c: Likewise.
56097         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
56098         * tests/unictype/test-pr_titlecase.c: Likewise.
56099         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
56100         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
56101         * tests/unictype/test-pr_uppercase.c: Likewise.
56102         * tests/unictype/test-pr_variation_selector.c: Likewise.
56103         * tests/unictype/test-pr_white_space.c: Likewise.
56104         * tests/unictype/test-pr_xid_continue.c: Likewise.
56105         * tests/unictype/test-pr_xid_start.c: Likewise.
56106         * tests/unictype/test-pr_zero_width.c: Likewise.
56107         * tests/unictype/test-sy_c_whitespace.c: Likewise.
56108         * tests/unictype/test-sy_java_whitespace.c: Likewise.
56109
56110 2007-11-12  Bruno Haible  <bruno@clisp.org>
56111
56112         Unicode character classification functions.
56113         * lib/unictype.h: New file.
56114         * modules/unictype/base: New file.
56115         * modules/unictype/category-L: New file.
56116         * modules/unictype/category-Lu: New file.
56117         * modules/unictype/category-Ll: New file.
56118         * modules/unictype/category-Lt: New file.
56119         * modules/unictype/category-Lm: New file.
56120         * modules/unictype/category-Lo: New file.
56121         * modules/unictype/category-M: New file.
56122         * modules/unictype/category-Mn: New file.
56123         * modules/unictype/category-Mc: New file.
56124         * modules/unictype/category-Me: New file.
56125         * modules/unictype/category-N: New file.
56126         * modules/unictype/category-Nd: New file.
56127         * modules/unictype/category-Nl: New file.
56128         * modules/unictype/category-No: New file.
56129         * modules/unictype/category-P: New file.
56130         * modules/unictype/category-Pc: New file.
56131         * modules/unictype/category-Pd: New file.
56132         * modules/unictype/category-Ps: New file.
56133         * modules/unictype/category-Pe: New file.
56134         * modules/unictype/category-Pi: New file.
56135         * modules/unictype/category-Pf: New file.
56136         * modules/unictype/category-Po: New file.
56137         * modules/unictype/category-S: New file.
56138         * modules/unictype/category-Sm: New file.
56139         * modules/unictype/category-Sc: New file.
56140         * modules/unictype/category-Sk: New file.
56141         * modules/unictype/category-So: New file.
56142         * modules/unictype/category-Z: New file.
56143         * modules/unictype/category-Zs: New file.
56144         * modules/unictype/category-Zl: New file.
56145         * modules/unictype/category-Zp: New file.
56146         * modules/unictype/category-C: New file.
56147         * modules/unictype/category-Cc: New file.
56148         * modules/unictype/category-Cf: New file.
56149         * modules/unictype/category-Cs: New file.
56150         * modules/unictype/category-Co: New file.
56151         * modules/unictype/category-Cn: New file.
56152         * modules/unictype/category-or: New file.
56153         * modules/unictype/category-of: New file.
56154         * modules/unictype/category-test: New file.
56155         * modules/unictype/category-test-withtable: New file.
56156         * modules/unictype/category-byname: New file.
56157         * modules/unictype/category-none: New file.
56158         * modules/unictype/category-and: New file.
56159         * modules/unictype/category-and-not: New file.
56160         * modules/unictype/category-name: New file.
56161         * modules/unictype/combining-class: New file.
56162         * modules/unictype/category-all: New file.
56163         * modules/unictype/bidicategory-all: New file.
56164         * modules/unictype/bidicategory-byname: New file.
56165         * modules/unictype/bidicategory-name: New file.
56166         * modules/unictype/bidicategory-of: New file.
56167         * modules/unictype/bidicategory-test: New file.
56168         * modules/unictype/decimal-digit: New file.
56169         * modules/unictype/digit: New file.
56170         * modules/unictype/numeric: New file.
56171         * modules/unictype/mirror: New file.
56172         * modules/unictype/property-white-space: New file.
56173         * modules/unictype/property-alphabetic: New file.
56174         * modules/unictype/property-other-alphabetic: New file.
56175         * modules/unictype/property-not-a-character: New file.
56176         * modules/unictype/property-default-ignorable-code-point: New file.
56177         * modules/unictype/property-other-default-ignorable-code-point: New
56178         file.
56179         * modules/unictype/property-deprecated: New file.
56180         * modules/unictype/property-logical-order-exception: New file.
56181         * modules/unictype/property-variation-selector: New file.
56182         * modules/unictype/property-private-use: New file.
56183         * modules/unictype/property-unassigned-code-value: New file.
56184         * modules/unictype/property-uppercase: New file.
56185         * modules/unictype/property-other-uppercase: New file.
56186         * modules/unictype/property-lowercase: New file.
56187         * modules/unictype/property-other-lowercase: New file.
56188         * modules/unictype/property-titlecase: New file.
56189         * modules/unictype/property-soft-dotted: New file.
56190         * modules/unictype/property-id-start: New file.
56191         * modules/unictype/property-other-id-start: New file.
56192         * modules/unictype/property-id-continue: New file.
56193         * modules/unictype/property-other-id-continue: New file.
56194         * modules/unictype/property-xid-start: New file.
56195         * modules/unictype/property-xid-continue: New file.
56196         * modules/unictype/property-pattern-white-space: New file.
56197         * modules/unictype/property-pattern-syntax: New file.
56198         * modules/unictype/property-join-control: New file.
56199         * modules/unictype/property-grapheme-base: New file.
56200         * modules/unictype/property-grapheme-extend: New file.
56201         * modules/unictype/property-other-grapheme-extend: New file.
56202         * modules/unictype/property-grapheme-link: New file.
56203         * modules/unictype/property-bidi-control: New file.
56204         * modules/unictype/property-bidi-left-to-right: New file.
56205         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
56206         * modules/unictype/property-bidi-arabic-right-to-left: New file.
56207         * modules/unictype/property-bidi-european-digit: New file.
56208         * modules/unictype/property-bidi-eur-num-separator: New file.
56209         * modules/unictype/property-bidi-eur-num-terminator: New file.
56210         * modules/unictype/property-bidi-arabic-digit: New file.
56211         * modules/unictype/property-bidi-common-separator: New file.
56212         * modules/unictype/property-bidi-block-separator: New file.
56213         * modules/unictype/property-bidi-segment-separator: New file.
56214         * modules/unictype/property-bidi-whitespace: New file.
56215         * modules/unictype/property-bidi-non-spacing-mark: New file.
56216         * modules/unictype/property-bidi-boundary-neutral: New file.
56217         * modules/unictype/property-bidi-pdf: New file.
56218         * modules/unictype/property-bidi-embedding-or-override: New file.
56219         * modules/unictype/property-bidi-other-neutral: New file.
56220         * modules/unictype/property-hex-digit: New file.
56221         * modules/unictype/property-ascii-hex-digit: New file.
56222         * modules/unictype/property-ideographic: New file.
56223         * modules/unictype/property-unified-ideograph: New file.
56224         * modules/unictype/property-radical: New file.
56225         * modules/unictype/property-ids-binary-operator: New file.
56226         * modules/unictype/property-ids-trinary-operator: New file.
56227         * modules/unictype/property-zero-width: New file.
56228         * modules/unictype/property-space: New file.
56229         * modules/unictype/property-non-break: New file.
56230         * modules/unictype/property-iso-control: New file.
56231         * modules/unictype/property-format-control: New file.
56232         * modules/unictype/property-dash: New file.
56233         * modules/unictype/property-hyphen: New file.
56234         * modules/unictype/property-punctuation: New file.
56235         * modules/unictype/property-line-separator: New file.
56236         * modules/unictype/property-paragraph-separator: New file.
56237         * modules/unictype/property-quotation-mark: New file.
56238         * modules/unictype/property-sentence-terminal: New file.
56239         * modules/unictype/property-terminal-punctuation: New file.
56240         * modules/unictype/property-currency-symbol: New file.
56241         * modules/unictype/property-math: New file.
56242         * modules/unictype/property-other-math: New file.
56243         * modules/unictype/property-paired-punctuation: New file.
56244         * modules/unictype/property-left-of-pair: New file.
56245         * modules/unictype/property-combining: New file.
56246         * modules/unictype/property-composite: New file.
56247         * modules/unictype/property-decimal-digit: New file.
56248         * modules/unictype/property-numeric: New file.
56249         * modules/unictype/property-diacritic: New file.
56250         * modules/unictype/property-extender: New file.
56251         * modules/unictype/property-ignorable-control: New file.
56252         * modules/unictype/property-test: New file.
56253         * modules/unictype/property-byname: New file.
56254         * modules/unictype/property-all: New file.
56255         * modules/unictype/scripts: New file.
56256         * modules/unictype/scripts-all: New file.
56257         * modules/unictype/block-of: New file.
56258         * modules/unictype/block-test: New file.
56259         * modules/unictype/block-list: New file.
56260         * modules/unictype/block-all: New file.
56261         * modules/unictype/syntax-c-whitespace: New file.
56262         * modules/unictype/syntax-java-whitespace: New file.
56263         * modules/unictype/syntax-c-ident: New file.
56264         * modules/unictype/syntax-java-ident: New file.
56265         * modules/unictype/ctype-alnum: New file.
56266         * modules/unictype/ctype-alpha: New file.
56267         * modules/unictype/ctype-cntrl: New file.
56268         * modules/unictype/ctype-digit: New file.
56269         * modules/unictype/ctype-graph: New file.
56270         * modules/unictype/ctype-lower: New file.
56271         * modules/unictype/ctype-print: New file.
56272         * modules/unictype/ctype-punct: New file.
56273         * modules/unictype/ctype-space: New file.
56274         * modules/unictype/ctype-upper: New file.
56275         * modules/unictype/ctype-xdigit: New file.
56276         * modules/unictype/ctype-blank: New file.
56277         * lib/unictype/bidi_byname.c: New file.
56278         * lib/unictype/bidi_name.c: New file.
56279         * lib/unictype/bidi_of.c: New file.
56280         * lib/unictype/bidi_test.c: New file.
56281         * lib/unictype/bitmap.h: New file.
56282         * lib/unictype/block_test.c: New file.
56283         * lib/unictype/blocks.c: New file.
56284         * lib/unictype/categ_C.c: New file.
56285         * lib/unictype/categ_Cc.c: New file.
56286         * lib/unictype/categ_Cf.c: New file.
56287         * lib/unictype/categ_Cn.c: New file.
56288         * lib/unictype/categ_Co.c: New file.
56289         * lib/unictype/categ_Cs.c: New file.
56290         * lib/unictype/categ_L.c: New file.
56291         * lib/unictype/categ_Ll.c: New file.
56292         * lib/unictype/categ_Lm.c: New file.
56293         * lib/unictype/categ_Lo.c: New file.
56294         * lib/unictype/categ_Lt.c: New file.
56295         * lib/unictype/categ_Lu.c: New file.
56296         * lib/unictype/categ_M.c: New file.
56297         * lib/unictype/categ_Mc.c: New file.
56298         * lib/unictype/categ_Me.c: New file.
56299         * lib/unictype/categ_Mn.c: New file.
56300         * lib/unictype/categ_N.c: New file.
56301         * lib/unictype/categ_Nd.c: New file.
56302         * lib/unictype/categ_Nl.c: New file.
56303         * lib/unictype/categ_No.c: New file.
56304         * lib/unictype/categ_P.c: New file.
56305         * lib/unictype/categ_Pc.c: New file.
56306         * lib/unictype/categ_Pd.c: New file.
56307         * lib/unictype/categ_Pe.c: New file.
56308         * lib/unictype/categ_Pf.c: New file.
56309         * lib/unictype/categ_Pi.c: New file.
56310         * lib/unictype/categ_Po.c: New file.
56311         * lib/unictype/categ_Ps.c: New file.
56312         * lib/unictype/categ_S.c: New file.
56313         * lib/unictype/categ_Sc.c: New file.
56314         * lib/unictype/categ_Sk.c: New file.
56315         * lib/unictype/categ_Sm.c: New file.
56316         * lib/unictype/categ_So.c: New file.
56317         * lib/unictype/categ_Z.c: New file.
56318         * lib/unictype/categ_Zl.c: New file.
56319         * lib/unictype/categ_Zp.c: New file.
56320         * lib/unictype/categ_Zs.c: New file.
56321         * lib/unictype/categ_and.c: New file.
56322         * lib/unictype/categ_and_not.c: New file.
56323         * lib/unictype/categ_byname.c: New file.
56324         * lib/unictype/categ_name.c: New file.
56325         * lib/unictype/categ_none.c: New file.
56326         * lib/unictype/categ_of.c: New file.
56327         * lib/unictype/categ_or.c: New file.
56328         * lib/unictype/categ_test.c: New file.
56329         * lib/unictype/combining.c: New file.
56330         * lib/unictype/ctype_alnum.c: New file.
56331         * lib/unictype/ctype_alpha.c: New file.
56332         * lib/unictype/ctype_blank.c: New file.
56333         * lib/unictype/ctype_cntrl.c: New file.
56334         * lib/unictype/ctype_digit.c: New file.
56335         * lib/unictype/ctype_graph.c: New file.
56336         * lib/unictype/ctype_lower.c: New file.
56337         * lib/unictype/ctype_print.c: New file.
56338         * lib/unictype/ctype_punct.c: New file.
56339         * lib/unictype/ctype_space.c: New file.
56340         * lib/unictype/ctype_upper.c: New file.
56341         * lib/unictype/ctype_xdigit.c: New file.
56342         * lib/unictype/decdigit.c: New file.
56343         * lib/unictype/digit.c: New file.
56344         * lib/unictype/identsyntaxmap.h: New file.
56345         * lib/unictype/mirror.c: New file.
56346         * lib/unictype/numeric.c: New file.
56347         * lib/unictype/pr_alphabetic.c: New file.
56348         * lib/unictype/pr_ascii_hex_digit.c: New file.
56349         * lib/unictype/pr_bidi_arabic_digit.c: New file.
56350         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
56351         * lib/unictype/pr_bidi_block_separator.c: New file.
56352         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
56353         * lib/unictype/pr_bidi_common_separator.c: New file.
56354         * lib/unictype/pr_bidi_control.c: New file.
56355         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
56356         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
56357         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
56358         * lib/unictype/pr_bidi_european_digit.c: New file.
56359         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
56360         * lib/unictype/pr_bidi_left_to_right.c: New file.
56361         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
56362         * lib/unictype/pr_bidi_other_neutral.c: New file.
56363         * lib/unictype/pr_bidi_pdf.c: New file.
56364         * lib/unictype/pr_bidi_segment_separator.c: New file.
56365         * lib/unictype/pr_bidi_whitespace.c: New file.
56366         * lib/unictype/pr_byname.c: New file.
56367         * lib/unictype/pr_byname.gperf: New file.
56368         * lib/unictype/pr_combining.c: New file.
56369         * lib/unictype/pr_composite.c: New file.
56370         * lib/unictype/pr_currency_symbol.c: New file.
56371         * lib/unictype/pr_dash.c: New file.
56372         * lib/unictype/pr_decimal_digit.c: New file.
56373         * lib/unictype/pr_default_ignorable_code_point.c: New file.
56374         * lib/unictype/pr_deprecated.c: New file.
56375         * lib/unictype/pr_diacritic.c: New file.
56376         * lib/unictype/pr_extender.c: New file.
56377         * lib/unictype/pr_format_control.c: New file.
56378         * lib/unictype/pr_grapheme_base.c: New file.
56379         * lib/unictype/pr_grapheme_extend.c: New file.
56380         * lib/unictype/pr_grapheme_link.c: New file.
56381         * lib/unictype/pr_hex_digit.c: New file.
56382         * lib/unictype/pr_hyphen.c: New file.
56383         * lib/unictype/pr_id_continue.c: New file.
56384         * lib/unictype/pr_id_start.c: New file.
56385         * lib/unictype/pr_ideographic.c: New file.
56386         * lib/unictype/pr_ids_binary_operator.c: New file.
56387         * lib/unictype/pr_ids_trinary_operator.c: New file.
56388         * lib/unictype/pr_ignorable_control.c: New file.
56389         * lib/unictype/pr_iso_control.c: New file.
56390         * lib/unictype/pr_join_control.c: New file.
56391         * lib/unictype/pr_left_of_pair.c: New file.
56392         * lib/unictype/pr_line_separator.c: New file.
56393         * lib/unictype/pr_logical_order_exception.c: New file.
56394         * lib/unictype/pr_lowercase.c: New file.
56395         * lib/unictype/pr_math.c: New file.
56396         * lib/unictype/pr_non_break.c: New file.
56397         * lib/unictype/pr_not_a_character.c: New file.
56398         * lib/unictype/pr_numeric.c: New file.
56399         * lib/unictype/pr_other_alphabetic.c: New file.
56400         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
56401         * lib/unictype/pr_other_grapheme_extend.c: New file.
56402         * lib/unictype/pr_other_id_continue.c: New file.
56403         * lib/unictype/pr_other_id_start.c: New file.
56404         * lib/unictype/pr_other_lowercase.c: New file.
56405         * lib/unictype/pr_other_math.c: New file.
56406         * lib/unictype/pr_other_uppercase.c: New file.
56407         * lib/unictype/pr_paired_punctuation.c: New file.
56408         * lib/unictype/pr_paragraph_separator.c: New file.
56409         * lib/unictype/pr_pattern_syntax.c: New file.
56410         * lib/unictype/pr_pattern_white_space.c: New file.
56411         * lib/unictype/pr_private_use.c: New file.
56412         * lib/unictype/pr_punctuation.c: New file.
56413         * lib/unictype/pr_quotation_mark.c: New file.
56414         * lib/unictype/pr_radical.c: New file.
56415         * lib/unictype/pr_sentence_terminal.c: New file.
56416         * lib/unictype/pr_soft_dotted.c: New file.
56417         * lib/unictype/pr_space.c: New file.
56418         * lib/unictype/pr_terminal_punctuation.c: New file.
56419         * lib/unictype/pr_test.c: New file.
56420         * lib/unictype/pr_titlecase.c: New file.
56421         * lib/unictype/pr_unassigned_code_value.c: New file.
56422         * lib/unictype/pr_unified_ideograph.c: New file.
56423         * lib/unictype/pr_uppercase.c: New file.
56424         * lib/unictype/pr_variation_selector.c: New file.
56425         * lib/unictype/pr_white_space.c: New file.
56426         * lib/unictype/pr_xid_continue.c: New file.
56427         * lib/unictype/pr_xid_start.c: New file.
56428         * lib/unictype/pr_zero_width.c: New file.
56429         * lib/unictype/scripts.c: New file.
56430         * lib/unictype/sy_c_ident.c: New file.
56431         * lib/unictype/sy_c_whitespace.c: New file.
56432         * lib/unictype/sy_java_ident.c: New file.
56433         * lib/unictype/sy_java_whitespace.c: New file.
56434
56435         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
56436         Unicode 5.0.0.
56437         * lib/unictype/blocks.h: Likewise.
56438         * lib/unictype/categ_C.h: Likewise.
56439         * lib/unictype/categ_Cc.h: Likewise.
56440         * lib/unictype/categ_Cf.h: Likewise.
56441         * lib/unictype/categ_Cn.h: Likewise.
56442         * lib/unictype/categ_Co.h: Likewise.
56443         * lib/unictype/categ_Cs.h: Likewise.
56444         * lib/unictype/categ_L.h: Likewise.
56445         * lib/unictype/categ_Ll.h: Likewise.
56446         * lib/unictype/categ_Lm.h: Likewise.
56447         * lib/unictype/categ_Lo.h: Likewise.
56448         * lib/unictype/categ_Lt.h: Likewise.
56449         * lib/unictype/categ_Lu.h: Likewise.
56450         * lib/unictype/categ_M.h: Likewise.
56451         * lib/unictype/categ_Mc.h: Likewise.
56452         * lib/unictype/categ_Me.h: Likewise.
56453         * lib/unictype/categ_Mn.h: Likewise.
56454         * lib/unictype/categ_N.h: Likewise.
56455         * lib/unictype/categ_Nd.h: Likewise.
56456         * lib/unictype/categ_Nl.h: Likewise.
56457         * lib/unictype/categ_No.h: Likewise.
56458         * lib/unictype/categ_P.h: Likewise.
56459         * lib/unictype/categ_Pc.h: Likewise.
56460         * lib/unictype/categ_Pd.h: Likewise.
56461         * lib/unictype/categ_Pe.h: Likewise.
56462         * lib/unictype/categ_Pf.h: Likewise.
56463         * lib/unictype/categ_Pi.h: Likewise.
56464         * lib/unictype/categ_Po.h: Likewise.
56465         * lib/unictype/categ_Ps.h: Likewise.
56466         * lib/unictype/categ_S.h: Likewise.
56467         * lib/unictype/categ_Sc.h: Likewise.
56468         * lib/unictype/categ_Sk.h: Likewise.
56469         * lib/unictype/categ_Sm.h: Likewise.
56470         * lib/unictype/categ_So.h: Likewise.
56471         * lib/unictype/categ_Z.h: Likewise.
56472         * lib/unictype/categ_Zl.h: Likewise.
56473         * lib/unictype/categ_Zp.h: Likewise.
56474         * lib/unictype/categ_Zs.h: Likewise.
56475         * lib/unictype/categ_of.h: Likewise.
56476         * lib/unictype/combining.h: Likewise.
56477         * lib/unictype/ctype_alnum.h: Likewise.
56478         * lib/unictype/ctype_alpha.h: Likewise.
56479         * lib/unictype/ctype_blank.h: Likewise.
56480         * lib/unictype/ctype_cntrl.h: Likewise.
56481         * lib/unictype/ctype_digit.h: Likewise.
56482         * lib/unictype/ctype_graph.h: Likewise.
56483         * lib/unictype/ctype_lower.h: Likewise.
56484         * lib/unictype/ctype_print.h: Likewise.
56485         * lib/unictype/ctype_punct.h: Likewise.
56486         * lib/unictype/ctype_space.h: Likewise.
56487         * lib/unictype/ctype_upper.h: Likewise.
56488         * lib/unictype/ctype_xdigit.h: Likewise.
56489         * lib/unictype/decdigit.h: Likewise.
56490         * lib/unictype/digit.h: Likewise.
56491         * lib/unictype/mirror.h: Likewise.
56492         * lib/unictype/numeric.h: Likewise.
56493         * lib/unictype/pr_alphabetic.h: Likewise.
56494         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
56495         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
56496         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
56497         * lib/unictype/pr_bidi_block_separator.h: Likewise.
56498         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
56499         * lib/unictype/pr_bidi_common_separator.h: Likewise.
56500         * lib/unictype/pr_bidi_control.h: Likewise.
56501         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
56502         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
56503         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
56504         * lib/unictype/pr_bidi_european_digit.h: Likewise.
56505         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
56506         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
56507         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
56508         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
56509         * lib/unictype/pr_bidi_pdf.h: Likewise.
56510         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
56511         * lib/unictype/pr_bidi_whitespace.h: Likewise.
56512         * lib/unictype/pr_combining.h: Likewise.
56513         * lib/unictype/pr_composite.h: Likewise.
56514         * lib/unictype/pr_currency_symbol.h: Likewise.
56515         * lib/unictype/pr_dash.h: Likewise.
56516         * lib/unictype/pr_decimal_digit.h: Likewise.
56517         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
56518         * lib/unictype/pr_deprecated.h: Likewise.
56519         * lib/unictype/pr_diacritic.h: Likewise.
56520         * lib/unictype/pr_extender.h: Likewise.
56521         * lib/unictype/pr_format_control.h: Likewise.
56522         * lib/unictype/pr_grapheme_base.h: Likewise.
56523         * lib/unictype/pr_grapheme_extend.h: Likewise.
56524         * lib/unictype/pr_grapheme_link.h: Likewise.
56525         * lib/unictype/pr_hex_digit.h: Likewise.
56526         * lib/unictype/pr_hyphen.h: Likewise.
56527         * lib/unictype/pr_id_continue.h: Likewise.
56528         * lib/unictype/pr_id_start.h: Likewise.
56529         * lib/unictype/pr_ideographic.h: Likewise.
56530         * lib/unictype/pr_ids_binary_operator.h: Likewise.
56531         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
56532         * lib/unictype/pr_ignorable_control.h: Likewise.
56533         * lib/unictype/pr_iso_control.h: Likewise.
56534         * lib/unictype/pr_join_control.h: Likewise.
56535         * lib/unictype/pr_left_of_pair.h: Likewise.
56536         * lib/unictype/pr_line_separator.h: Likewise.
56537         * lib/unictype/pr_logical_order_exception.h: Likewise.
56538         * lib/unictype/pr_lowercase.h: Likewise.
56539         * lib/unictype/pr_math.h: Likewise.
56540         * lib/unictype/pr_non_break.h: Likewise.
56541         * lib/unictype/pr_not_a_character.h: Likewise.
56542         * lib/unictype/pr_numeric.h: Likewise.
56543         * lib/unictype/pr_other_alphabetic.h: Likewise.
56544         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
56545         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
56546         * lib/unictype/pr_other_id_continue.h: Likewise.
56547         * lib/unictype/pr_other_id_start.h: Likewise.
56548         * lib/unictype/pr_other_lowercase.h: Likewise.
56549         * lib/unictype/pr_other_math.h: Likewise.
56550         * lib/unictype/pr_other_uppercase.h: Likewise.
56551         * lib/unictype/pr_paired_punctuation.h: Likewise.
56552         * lib/unictype/pr_paragraph_separator.h: Likewise.
56553         * lib/unictype/pr_pattern_syntax.h: Likewise.
56554         * lib/unictype/pr_pattern_white_space.h: Likewise.
56555         * lib/unictype/pr_private_use.h: Likewise.
56556         * lib/unictype/pr_punctuation.h: Likewise.
56557         * lib/unictype/pr_quotation_mark.h: Likewise.
56558         * lib/unictype/pr_radical.h: Likewise.
56559         * lib/unictype/pr_sentence_terminal.h: Likewise.
56560         * lib/unictype/pr_soft_dotted.h: Likewise.
56561         * lib/unictype/pr_space.h: Likewise.
56562         * lib/unictype/pr_terminal_punctuation.h: Likewise.
56563         * lib/unictype/pr_titlecase.h: Likewise.
56564         * lib/unictype/pr_unassigned_code_value.h: Likewise.
56565         * lib/unictype/pr_unified_ideograph.h: Likewise.
56566         * lib/unictype/pr_uppercase.h: Likewise.
56567         * lib/unictype/pr_variation_selector.h: Likewise.
56568         * lib/unictype/pr_white_space.h: Likewise.
56569         * lib/unictype/pr_xid_continue.h: Likewise.
56570         * lib/unictype/pr_xid_start.h: Likewise.
56571         * lib/unictype/pr_zero_width.h: Likewise.
56572         * lib/unictype/scripts.h: Likewise.
56573         * lib/unictype/scripts_byname.gperf: Likewise.
56574         * lib/unictype/sy_c_ident.h: Likewise.
56575         * lib/unictype/sy_c_whitespace.h: Likewise.
56576         * lib/unictype/sy_java_ident.h: Likewise.
56577         * lib/unictype/sy_java_whitespace.h: Likewise.
56578
56579         * lib/unictype/Makefile: New file.
56580         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
56581         glibc.
56582         * lib/unictype/3level.h: New file, copied from glibc.
56583         * lib/unictype/3levelbit.h: New file.
56584
56585 2007-11-11  Bruno Haible  <bruno@clisp.org>
56586
56587         * modules/gperf: New file.
56588         * modules/iconv_open (Depends-on): Add it.
56589         (Makefile.am): Remove the GPERF definition.
56590
56591 2007-11-11  Bruno Haible  <bruno@clisp.org>
56592
56593         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
56594         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
56595
56596 2007-11-11  Bruno Haible  <bruno@clisp.org>
56597
56598         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
56599         (usage): Remove function.
56600
56601 2007-11-11  Bruno Haible  <bruno@clisp.org>
56602
56603         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
56604         gl_FUNC_CEILF_LIBS.
56605         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
56606         gl_FUNC_CEIL_LIBS.
56607         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
56608         gl_FUNC_CEILL_LIBS.
56609         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
56610         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
56611         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
56612
56613 2007-11-11  Bruno Haible  <bruno@clisp.org>
56614
56615         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
56616         roundf were declared but do not exist on functions.
56617         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
56618         roundl were declared but do not exist on functions.
56619         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
56620         HAVE_FLOORL_AND_CEILL, respectively.
56621         Needed for Sun C on Solaris 10.
56622
56623 2007-11-11  Bruno Haible  <bruno@clisp.org>
56624
56625         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
56626         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
56627         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
56628         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
56629         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
56630         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
56631         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
56632         HAVE_DECL_ROUNDF.
56633         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
56634         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
56635         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
56636         of HAVE_DECL_ROUND*.
56637         * modules/math (Makefile.am): Update.
56638
56639 2007-11-10  Bruno Haible  <bruno@clisp.org>
56640
56641         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
56642         ptrdiff_t as m4/intl.m4.
56643
56644 2007-11-10  Jim Meyering  <meyering@redhat.com>
56645
56646         Avoid link failure for the argmatch test.
56647         * tests/test-argmatch.c (usage): Define function to avoid a link
56648         failure: argmatch_die requires a usage function.
56649
56650 2007-11-09  Bruno Haible  <bruno@clisp.org>
56651
56652         * doc/functions/snprintf.texi: Mention BeOS deficiency.
56653         * doc/functions/vsnprintf.texi: Likewise.
56654         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
56655         with a size argument < 2.
56656
56657 2007-11-09  Bruno Haible  <bruno@clisp.org>
56658
56659         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
56660         buffer. Fixes an inefficiency introduced on 2007-11-03.
56661
56662 2007-11-09  Bruno Haible  <bruno@clisp.org>
56663
56664         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
56665         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
56666
56667 2007-11-08  Jim Meyering  <meyering@redhat.com>
56668
56669         Change cache variable name prefix "jm_" to "gl_" everywhere.
56670         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
56671         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
56672         * m4/uptime.m4: s/gl_/jm_/
56673
56674 2007-11-07  Bruno Haible  <bruno@clisp.org>
56675
56676         Update to GNU gettext 0.17.
56677         * m4/intl.m4: Update to GNU gettext 0.17.
56678         * m4/po.m4: Likewise.
56679         * modules/gettext (Files): Remove m4/ulonglong.m4.
56680         (configure.ac): Require gettext infrastructure from version 0.17.
56681
56682 2007-11-06  Bruno Haible  <bruno@clisp.org>
56683
56684         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
56685         symbolic values are not defined in a public header.
56686         * lib/freadable.c (freadable) [QNX]: Likewise.
56687         * lib/freadahead.c (freadahead) [QNX]: Likewise.
56688         * lib/freading.c (freading) [QNX]: Likewise.
56689         * lib/fseterr.c (fseterr) [QNX]: Likewise.
56690         * lib/fwritable.c (fwritable) [QNX]: Likewise.
56691         * lib/fwriting.c (fwriting) [QNX]: Likewise.
56692         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
56693         Reported by Alain Magloire.
56694
56695         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
56696
56697 2007-11-05  Bruno Haible  <bruno@clisp.org>
56698
56699         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
56700         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
56701         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
56702         Reported by Eric Blake.
56703
56704 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56705             Bruno Haible  <bruno@clisp.org>
56706
56707         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
56708         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
56709         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
56710         (malloc): Undefine also before including <stdlib.h>.
56711         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
56712         Needed on OSF/1 4.0.
56713
56714 2007-11-05  Jim Meyering  <meyering@redhat.com>
56715
56716         git-version-gen: sync from coreutils.
56717         * build-aux/git-version-gen: Add comments.
56718         Change the first '-' to '.' in the snapshot version string,
56719         e.g., 6.9-377-08144 -> 6.9.377-08144
56720         Remove first parameter.
56721         Don't declare a version "-dirty" merely because a time
56722         stamp has changed.
56723
56724 2007-11-04  Bruno Haible  <bruno@clisp.org>
56725
56726         * lib/lock.h: Protect all macro definitions containing an 'if'
56727         statement through a "do { ... } while (0)".
56728         * lib/tls.h: Likewise.
56729
56730 2007-11-04  Bruno Haible  <bruno@clisp.org>
56731
56732         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
56733
56734 2007-11-04  Bruno Haible  <bruno@clisp.org>
56735
56736         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
56737         * modules/fprintf-posix (Depends-on): Add nocrash.
56738         * modules/snprintf-posix (Depends-on): Likewise.
56739         * modules/sprintf-posix (Depends-on): Likewise.
56740         * modules/vasnprintf-posix (Depends-on): Likewise.
56741         * modules/vasprintf-posix (Depends-on): Likewise.
56742         * modules/vfprintf-posix (Depends-on): Likewise.
56743         * modules/vsnprintf-posix (Depends-on): Likewise.
56744         * modules/vsprintf-posix (Depends-on): Likewise.
56745         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56746         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56747         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56748         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56749         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56750         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56751         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56752
56753 2007-11-04  Bruno Haible  <bruno@clisp.org>
56754
56755         * modules/nocrash: New file.
56756         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
56757         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
56758
56759 2007-11-04  Bruno Haible  <bruno@clisp.org>
56760
56761         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
56762         precision handling.
56763         * tests/test-vasprintf-posix.c (test_function): Likewise.
56764         * tests/test-snprintf-posix.h (test_function): Likewise.
56765         * tests/test-sprintf-posix.h (test_function): Likewise.
56766
56767         Fix *printf behaviour for large precisions on mingw and BeOS.
56768         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
56769         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
56770         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
56771         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56772         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56773         gl_PRINTF_PRECISION and test its result. Invoke
56774         gl_PREREQ_VASNPRINTF_PRECISION.
56775         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56776         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56777         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56778         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56779         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56780         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56781         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56782         * doc/functions/fprintf.texi: Update.
56783         * doc/functions/printf.texi: Update.
56784         * doc/functions/snprintf.texi: Update.
56785         * doc/functions/sprintf.texi: Update.
56786         * doc/functions/vfprintf.texi: Update.
56787         * doc/functions/vprintf.texi: Update.
56788         * doc/functions/vsnprintf.texi: Update.
56789         * doc/functions/vsprintf.texi: Update.
56790
56791 2007-11-04  Bruno Haible  <bruno@clisp.org>
56792
56793         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
56794
56795 2007-11-04  Bruno Haible  <bruno@clisp.org>
56796
56797         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
56798         Reported by Sylvain Beucler <beuc@gnu.org>.
56799
56800 2007-11-03  Bruno Haible  <bruno@clisp.org>
56801
56802         * tests/test-fprintf-posix2.sh: New file.
56803         * tests/test-fprintf-posix2.c: New file.
56804         * modules/fprintf-posix-tests (Files): Add them.
56805         (TESTS): Add test-fprintf-posix2.sh.
56806         (configure.ac): Check for getrlimit and setrlimit.
56807         (check_PROGRAMS): Add test-fprintf-posix2.
56808
56809         * tests/test-printf-posix2.sh: New file.
56810         * tests/test-printf-posix2.c: New file.
56811         * modules/printf-posix-tests (Files): Add them.
56812         (TESTS): Add test-printf-posix2.sh.
56813         (configure.ac): Check for getrlimit and setrlimit.
56814         (check_PROGRAMS): Add test-printf-posix2.
56815
56816         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
56817         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
56818         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
56819         (decode_double): New function, copied from decode_long_double.
56820         (scale10_round_decimal_decoded): New function, extracted from
56821         scale10_round_decimal_long_double.
56822         (scale10_round_decimal_long_double): Use it.
56823         (scale10_round_decimal_double): New function.
56824         (floorlog10): New function.
56825         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
56826         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
56827         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56828         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56829         gl_PRINTF_ENOMEM and test its result. Invoke
56830         gl_PREREQ_VASNPRINTF_ENOMEM.
56831         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56832         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56833         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56834         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56835         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56836         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56837         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56838         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
56839         * modules/snprintf-posix (Depends-on): Likewise.
56840         * modules/sprintf-posix (Depends-on): Likewise.
56841         * modules/vasnprintf-posix (Depends-on): Likewise.
56842         * modules/vasprintf-posix (Depends-on): Likewise.
56843         * modules/vfprintf-posix (Depends-on): Likewise.
56844         * modules/vsnprintf-posix (Depends-on): Likewise.
56845         * modules/vsprintf-posix (Depends-on): Likewise.
56846         * doc/functions/fprintf.texi: Update.
56847         * doc/functions/printf.texi: Update.
56848         * doc/functions/snprintf.texi: Update.
56849         * doc/functions/sprintf.texi: Update.
56850         * doc/functions/vfprintf.texi: Update.
56851         * doc/functions/vprintf.texi: Update.
56852         * doc/functions/vsnprintf.texi: Update.
56853         * doc/functions/vsprintf.texi: Update.
56854
56855 2007-11-03  Bruno Haible  <bruno@clisp.org>
56856
56857         * modules/frexp-nolibm-tests: New file.
56858
56859         * modules/frexp-nolibm: New file.
56860         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
56861
56862 2007-11-03  Bruno Haible  <bruno@clisp.org>
56863
56864         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
56865         value is C99 compliant.
56866         Needed for OSF/1 5.1.
56867
56868 2007-11-03  Bruno Haible  <bruno@clisp.org>
56869
56870         Fix out-of-memory handling of vasnprintf.
56871         * lib/printf-parse.c: Include <errno.h>.
56872         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
56873         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
56874         is already set.
56875
56876 2007-11-02  Eric Blake  <ebb9@byu.net>
56877
56878         Fix tests on cygwin.
56879         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
56880
56881 2007-11-01  Bruno Haible  <bruno@clisp.org>
56882
56883         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
56884         warning.
56885         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
56886         needed for POSIX compatibility.
56887
56888 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
56889
56890         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
56891         for compatibility with GNU.
56892
56893 2007-11-01  Bruno Haible  <bruno@clisp.org>
56894
56895         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
56896         (putenv): Renamed from rpl_putenv. Change argument type from
56897         'const char *' to 'char *'.
56898         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
56899         of defining putenv in config.h, just set REPLACE_PUTENV.
56900         * modules/putenv (Depends-on): Add stdlib.
56901         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56902         (Include): Use <stdlib.h>.
56903         * lib/stdlib.in.h (putenv): New declaration.
56904         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
56905         REPLACE_PUTENV.
56906         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
56907         REPLACE_PUTENV.
56908         Needed for MacOS X 10.5.0.
56909         Reported by Peter O'Gorman <peter@pogma.com>.
56910
56911 2007-11-01  Jim Meyering  <meyering@redhat.com>
56912
56913         Treat an empty date string exactly like "0".
56914         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
56915         if the remaining date string (to be parsed) is empty, use "0".
56916         Reported by Mischa Molhoek and discussed in this thread:
56917         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
56918
56919 2007-10-31  Bruno Haible  <bruno@clisp.org>
56920
56921         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
56922         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
56923         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
56924         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
56925         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
56926         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
56927
56928 2007-10-31  Bruno Haible  <bruno@clisp.org>
56929
56930         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
56931         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
56932         (AC_TYPE_LONG_LONG_INT): Use it.
56933         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
56934         it as well.
56935         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
56936         to m4/longlong.m4.
56937         * modules/stdint (Files): Remove m4/ulonglong.m4.
56938         * modules/strtoull (Files): Use m4/longlong.m4 instead of
56939         m4/ulonglong.m4.
56940         * modules/strtoumax (Files): Likewise.
56941
56942 2007-10-30  Bruno Haible  <bruno@clisp.org>
56943
56944         * modules/xvasprintf-posix: New file.
56945         Suggested by Eric Blake.
56946
56947 2007-10-30  Bruno Haible  <bruno@clisp.org>
56948
56949         * modules/xprintf-posix-tests: New file.
56950         * tests/test-xprintf-posix.sh: New file.
56951         * tests/test-xprintf-posix.c: New file.
56952         * tests/test-xfprintf-posix.c: New file.
56953
56954         * modules/xprintf-posix: New file.
56955
56956 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56957
56958         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
56959         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
56960         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
56961
56962 2007-10-29  Bruno Haible  <bruno@clisp.org>
56963
56964         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
56965         contain the special marker '_cv_'.
56966         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
56967         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
56968         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
56969         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
56970         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
56971         Reported by Ralf Wildenhues.
56972
56973 2007-10-29  Bruno Haible  <bruno@clisp.org>
56974
56975         * gnulib-tool (func_import): When --lgpl is not specified, set
56976         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
56977         GPLv3.
56978         Reported by Simon Josefsson.
56979
56980 2007-10-28  Bruno Haible  <bruno@clisp.org>
56981
56982         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
56983         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
56984         HAVE_DECL_ISFINITE.
56985         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
56986         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
56987         HAVE_DECL_ISFINITE.
56988
56989 2007-10-28  Bruno Haible  <bruno@clisp.org>
56990
56991         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
56992         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
56993
56994 2007-10-28  Bruno Haible  <bruno@clisp.org>
56995
56996         Fix link errors with Sun C 5.0 on Solaris 10.
56997         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
56998         function is declared but not present in the compiler's libm.
56999         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
57000         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
57001         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
57002         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
57003         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
57004         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
57005         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
57006         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
57007         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
57008         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
57009         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
57010         HAVE_DECL_FLOORL.
57011
57012 2007-10-28  Bruno Haible  <bruno@clisp.org>
57013
57014         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
57015         gl_FUNC_FLOORL. Cache the result.
57016         (gl_FUNC_FLOORL): Use it.
57017         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
57018         gl_FUNC_CEILL. Cache the result.
57019         (gl_FUNC_CEILL): Use it.
57020
57021         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
57022         gl_FUNC_FLOOR. Cache the result.
57023         (gl_FUNC_FLOOR): Use it.
57024         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
57025         gl_FUNC_CEIL. Cache the result.
57026         (gl_FUNC_CEIL): Use it.
57027
57028         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
57029         gl_FUNC_FLOORF. Cache the result.
57030         (gl_FUNC_FLOORF): Use it.
57031         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
57032         gl_FUNC_CEILF. Cache the result.
57033         (gl_FUNC_CEILF): Use it.
57034
57035 2007-10-28  Bruno Haible  <bruno@clisp.org>
57036
57037         * gnulib-tool: Allow specifying the LGPL version number through
57038         --lgpl=2 or --lgpl=3.
57039         (func_usage): Document --lgpl with argument.
57040         Handle --lgpl=... arguments.
57041         (func_import): Recognize also gl_LGPL calls with an argument. When
57042         --lgpl=2 is used and the module's license is just LGPL, report an
57043         error. Set sed_transform_lib_file according to the lgpl variable. In
57044         the generated files, use --lgpl or gl_LGPL invocations with argument,
57045         if necessary.
57046         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
57047         an LGPv2+ license.
57048         * doc/gnulib-tool.texi (Modified imports): Update explanation of
57049         gl_LGPL macro.
57050
57051 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57052             Bruno Haible  <bruno@clisp.org>
57053
57054         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
57055         (u16_uctomb_aux): Likewise.
57056         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
57057         !HAVE_INLINE.
57058         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
57059
57060 2007-10-28  Bruno Haible  <bruno@clisp.org>
57061
57062         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
57063         Invoke AM_GETTEXT_OPTION if it exists.
57064         * modules/vasprintf: Likewise.
57065         * modules/verror: Likewise.
57066         * modules/xprintf: Likewise.
57067         * modules/xvasprintf: Likewise.
57068
57069 2007-10-27  Ben Pfaff  <blp@gnu.org>
57070
57071         * lib/math.in.h: Define isfinite macro and prototypes for
57072         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
57073         implementations.
57074         * m4/math_h.m4: New substitutions for isfinite module.
57075         * lib/isfinite.c: New file.
57076         * m4/isfinite.m4: New file.
57077         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
57078         * modules/isfinite: New file.
57079         * modules/isfinite-tests: New file.
57080         * tests/tests-isfinite.c: New file.
57081         * doc/functions/isfinite.texi: Mention isfinite module.
57082         * MODULES.html.sh: Mention new module.
57083
57084 2007-10-27  Ben Pfaff  <blp@gnu.org>
57085
57086         Ralf Wildenhues reported that Tru64 4.0D declares the round
57087         functions but does not have definitions.
57088         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
57089         cannot be found in any library, set the output variable to
57090         "missing" instead of "".
57091         * m4/round.m4: Also use our substitute if we cannot find round in
57092         any library, even if it is declared.
57093         * m4/roundf.m4: Likewise for roundf.
57094         * m4/roundl.m4: Likewise for roundl.
57095         * lib/math.in.h: Undefine roundf, round, roundl before defining
57096         their replacements, to allow for hypothetical systems where these
57097         may be defined as macros but not available in libraries.
57098
57099 2007-10-27  Bruno Haible  <bruno@clisp.org>
57100
57101         * doc/gnulib.texi: Invoke @firstparagraphindent.
57102         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
57103         changes in gnulib.
57104         (Source changes): New section.
57105
57106 2007-10-26  Bruno Haible  <bruno@clisp.org>
57107
57108         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
57109         borrowed from autoconf.
57110
57111 2007-10-26  Bruno Haible  <bruno@clisp.org>
57112
57113         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
57114         strerror returned the empty string. Needed on HP-UX 11.00.
57115
57116 2007-10-24  Micah Cowan  <micah@cowan.name>
57117
57118         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
57119         * build-aux/bootstrap: Remove support for now-unnecessary option,
57120         --cvs-user, and envvars CVS_USER, CVS_RSH.
57121
57122 2007-10-24  Jim Meyering  <meyering@redhat.com>
57123
57124         Avoid diagnostics from sha1sum when there is no cached checksum.
57125         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
57126         if the po.s1 file hasn't been created yet.
57127
57128         * build-aux/bootstrap: Sync from coreutils:
57129         2007-10-24  Jim Meyering  <meyering@redhat.com>
57130         Get gnulib from the git repository, not from an obsolete cvs one.
57131         * build-aux/bootstrap: Suggestion from Micah Cowan.
57132         2007-10-04  Jim Meyering  <jim@meyering.net>
57133         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
57134         (update_po_files): Work also when there are no .po files in po/.
57135
57136 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57137
57138         * README: Append ".git" to git and cg examples.
57139         Problem reported by Benoit Sigoure.
57140
57141 2007-10-23  Micah Cowan  <micah@cowan.name>
57142
57143         * users.txt: Add wget.
57144
57145 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57146
57147         Fix linking of some unistdio tests on FreeBSD.
57148         * modules/unistdio/u16-vsnprintf-tests
57149         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
57150         * modules/unistdio/u16-vsprintf-tests
57151         (test_u16_vsnprintf1_LDADD): Likewise.
57152         * modules/unistdio/u32-vsnprintf-tests
57153         (test_u32_vsnprintf1_LDADD): Likewise.
57154         * modules/unistdio/u32-vsprintf-tests
57155         (test_u32_vsprintf1_LDADD): Likewise.
57156         * modules/unistdio/u8-vsnprintf-tests
57157         (test_u8_vsnprintf1_LDADD): Likewise.
57158         * modules/unistdio/u8-vsprintf-tests
57159         (test_u8_vsprintf1_LDADD): Likewise.
57160         * modules/unistdio/ulc-vsnprintf-tests
57161         (test_ulc_vsnprintf1_LDADD): Likewise.
57162         * modules/unistdio/ulc-vsprintf-tests
57163         (test_ulc_vsprintf1_LDADD): Likewise.
57164
57165         Fix linking of some uniconv tests on FreeBSD.
57166         * modules/uniconv/u16-conv-from-enc-tests
57167         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
57168         * modules/uniconv/u16-conv-to-enc-tests
57169         (test_u16_conv_to_enc_LDADD): Likewise.
57170         * modules/uniconv/u16-strconv-from-enc-tests
57171         (test_u16_strconv_from_enc_LDADD): Likewise.
57172         * modules/uniconv/u16-strconv-to-enc-tests
57173         (test_u16_strconv_to_enc_LDADD): Likewise.
57174         * modules/uniconv/u32-conv-from-enc-tests
57175         (test_u32_conv_from_enc_LDADD): Likewise.
57176         * modules/uniconv/u32-conv-to-enc-tests
57177         (test_u32_conv_to_enc_LDADD): Likewise.
57178         * modules/uniconv/u32-strconv-from-enc-tests
57179         (test_u32_strconv_from_enc_LDADD): Likewise.
57180         * modules/uniconv/u32-strconv-to-enc-tests
57181         (test_u32_strconv_to_enc_LDADD): Likewise.
57182         * modules/uniconv/u8-conv-from-enc-tests
57183         (test_u8_conv_from_enc_LDADD): Likewise.
57184         * modules/uniconv/u8-conv-to-enc-tests
57185         (test_u8_conv_to_enc_LDADD): Likewise.
57186         * modules/uniconv/u8-strconv-from-enc-tests
57187         (test_u8_strconv_from_enc_LDADD): Likewise.
57188         * modules/uniconv/u8-strconv-to-enc-tests
57189         (test_u8_strconv_to_enc_LDADD): Likewise.
57190
57191 2007-10-22  Bruno Haible  <bruno@clisp.org>
57192
57193         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
57194         size.
57195
57196 2007-10-22  Eric Blake  <ebb9@byu.net>
57197
57198         Tweak x*printf documentation.
57199         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
57200         variable name and comments.
57201         Suggested by Bruno Haible.
57202
57203 2007-10-22  Bruno Haible  <bruno@clisp.org>
57204
57205         * lib/acl.c (copy_acl): Fix file name in comment.
57206
57207 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57208
57209         Fix Tru64 problem with stdbool.h.
57210         * lib/stdbool.in.h (false, true):
57211         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
57212         Don't declare as an enum in this situation; it runs afoul of Tru64.
57213         Problem reported by Steven M. Schweda in
57214         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
57215
57216 2007-10-22  Eric Blake  <ebb9@byu.net>
57217
57218         Also wrap vf?printf.
57219         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
57220         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
57221         (xvprintf, xvfprintf): New functions.
57222
57223 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57224
57225         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
57226         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
57227
57228         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
57229         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
57230
57231 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
57232
57233         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
57234         by Bruno Haible.
57235
57236 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57237
57238         * lib/getloadavg.c
57239         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
57240         Undef `sys' after including sys/table.h, for Tru64 4.0D.
57241
57242         * tests/test-i-ring.c: Work for C89.
57243
57244 2007-10-22  Bruno Haible  <bruno@clisp.org>
57245
57246         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
57247         -1u, in preprocessor expression, so that we don't test for the bug
57248         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
57249         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
57250
57251 2007-10-22  Eric Blake  <ebb9@byu.net>
57252
57253         * tests/test-yesno.sh: Silence stderr during test.
57254
57255 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57256
57257         * modules/crypto/gc-camellia: New file.
57258
57259         * m4/gc-camellia.m4: New file.
57260
57261         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
57262
57263         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
57264
57265 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57266
57267         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
57268         --help to stdout.  Reported by sms@antinode.org (Steven
57269         M. Schweda).
57270
57271 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57272
57273         * users.txt: Fix link to libksba.
57274
57275 2007-10-21  Ben Pfaff  <blp@gnu.org>
57276
57277         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
57278         round.c roundf implementation that depends on floorf and ceilf to
57279         be tested unconditionally.
57280
57281 2007-10-21  Ben Pfaff  <blp@gnu.org>
57282
57283         * m4/check-libm-func.m4: Removed.
57284         * m4/check-math-lib.m4: New file.
57285         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
57286         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
57287         definition and lack of AC_LIBOBJ([roundf]).
57288         * m4/roundl.m4: Ditto, and similarly for roundl.
57289         * modules/round: Reference new m4 file.
57290         * modules/roundf: Ditto.
57291         * modules/roundl: Ditto.
57292         * tests/test-round2.c (main): Use ROUND instead of round.
57293         Bug report from Bruno Haible.
57294
57295 2007-10-21  Bruno Haible  <bruno@clisp.org>
57296
57297         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
57298         context.
57299
57300 2007-10-21  Bruno Haible  <bruno@clisp.org>
57301
57302         * tests/test-wcwidth.c (main): Allow negative result for some control
57303         characters.
57304
57305         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
57306         Needed on OSF/1 5.1.
57307
57308 2007-10-21  Bruno Haible  <bruno@clisp.org>
57309
57310         * tests/test-floorf1.c: Include isnanf.h.
57311         (main): Use isnanf() instead of isnan().
57312         * tests/test-ceilf1.c: Include isnanf.h.
57313         (main): Use isnanf() instead of isnan().
57314         * tests/test-truncf1.c: Include isnanf.h.
57315         (main): Use isnanf() instead of isnan().
57316         * tests/test-roundf1.c: Include isnanf.h.
57317         (main): Use isnanf() instead of isnan().
57318
57319 2007-10-21  Eric Blake  <ebb9@byu.net>
57320
57321         * users.txt: Update URL for m4.
57322
57323 2007-10-21  Bruno Haible  <bruno@clisp.org>
57324
57325         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
57326
57327 2007-10-21  Bruno Haible  <bruno@clisp.org>
57328
57329         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
57330         Git's management files if the CVS files are not present.
57331
57332 2007-10-20  Bruno Haible  <bruno@clisp.org>
57333
57334         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
57335         gcc-3.4.x.
57336
57337 2007-10-20  Ben Pfaff  <blp@gnu.org>
57338
57339         * lib/math.in.h: Declare round, roundf, roundl if we are providing
57340         implementations.
57341         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
57342         * lib/round.c: New file.
57343         * lib/roundf.c: New file.
57344         * lib/roundl.c: New file.
57345         * m4/round.m4: New file.
57346         * m4/roundf.m4: New file.
57347         * m4/roundl.m4: New file.
57348         * m4/check-libm-func-m4: New file.
57349         * modules/math: Replace round, roundf, roundl related @VARS@ in
57350         math.in.h.
57351         * modules/round: New file.
57352         * modules/round-tests: New file.
57353         * modules/roundf: New file.
57354         * modules/roundf-tests: New file.
57355         * modules/roundl: New file.
57356         * modules/roundl-tests: New file.
57357         * tests/test-round1.c: New file.
57358         * tests/test-round2.c: New file.
57359         * tests/test-roundf1.c: New file.
57360         * tests/test-roundf2.c: New file.
57361         * tests/test-roundl.c: New file.
57362         * doc/functions/round.texi: Mention round module.
57363         * doc/functions/roundf.texi: Mention roundf module.
57364         * doc/functions/roundl.texi: Mention roundl module.
57365         * MODULES.html.sh: Mention new modules.
57366         Thanks to Bruno Haible for suggestions.
57367
57368 2007-10-20  Jim Meyering  <meyering@redhat.com>
57369
57370         * lib/xprintf.c: Include <config.h> unconditionally.
57371
57372         Change xprintf's license to GPL.
57373         * modules/xprintf (License): s/LGPL/GPL/, since this module
57374         depends on modules (exit and exitfail) which are GPL.
57375         Suggestion from Bruno Haible.
57376
57377         xprintf fixes.
57378         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
57379         Use a clearer diagnostic.
57380         Patch from Bruno Haible.
57381
57382 2007-10-20  Bruno Haible  <bruno@clisp.org>
57383
57384         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
57385         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
57386         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57387
57388 2007-10-20  Bruno Haible  <bruno@clisp.org>
57389
57390         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
57391         precision in the comparison result > x - 1 or similar.
57392         * tests/test-ceilf2.c (correct_result_p): Likewise.
57393         * tests/test-truncf2.c (correct_result_p): Likewise.
57394         * tests/test-trunc2.c (correct_result_p): Likewise.
57395         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57396
57397 2007-10-20  Bruno Haible  <bruno@clisp.org>
57398
57399         * modules/ceil: New file.
57400         * m4/ceil.m4: New file.
57401         * doc/functions/ceil.texi: Mention the 'ceil' module.
57402
57403 2007-10-20  Bruno Haible  <bruno@clisp.org>
57404
57405         * modules/floor: New file.
57406         * m4/floor.m4: New file.
57407         * doc/functions/floor.texi: Mention the 'floor' module.
57408
57409 2007-10-20  Bruno Haible  <bruno@clisp.org>
57410
57411         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
57412         of %a.
57413         * modules/floorf-tests (Depends-on): Likewise.
57414         * modules/truncf-tests (Depends-on): Likewise.
57415         * modules/trunc-tests (Depends-on): Likewise.
57416         Reported by Ben Pfaff.
57417
57418 2007-10-19  Jim Meyering  <meyering@redhat.com>
57419
57420         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
57421         Don't bother testing specific errno values.  Just test ferror.
57422
57423         New module: xprintf
57424         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
57425
57426 2007-10-19  Bruno Haible  <bruno@clisp.org>
57427
57428         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
57429         syntax.
57430         * modules/javaexec (Makefile.am): Likewise.
57431         * modules/relocatable-prog (Makefile.am): Likewise.
57432         Suggested by Jim Meyering.
57433
57434 2007-10-18  Bruno Haible  <bruno@clisp.org>
57435
57436         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
57437         Reported by Jim Meyering.
57438
57439 2007-10-18  Eric Blake  <ebb9@byu.net>
57440
57441         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
57442
57443 2007-10-18  Bruno Haible  <bruno@clisp.org>
57444
57445         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
57446         the format string into writable memory. Needed in Fortify conditions.
57447
57448 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
57449             Bruno Haible  <bruno@clisp.org>
57450
57451         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
57452         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
57453         * modules/trim (Depends-on): Add mbchar.
57454         (configure.ac): Add gl_FUNC_MBRTOWC.
57455         (Makefile.am): Augment lib_SOURCES.
57456
57457 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57458
57459         Modify glob.c to use fstatat and dirfd, to simplify it.
57460         Suggested by Eric Blake.
57461         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
57462         Don't include <stdbool.h>; not used.
57463         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
57464         (link_exists_p): Simplify implementation, since we can now assume
57465         dirfd and fstatat.
57466         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
57467
57468 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57469
57470         * gnulib-tool (func_get_dependencies): Fix sed script to
57471         match only tests.
57472
57473 2007-10-17  Bruno Haible  <bruno@clisp.org>
57474
57475         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
57476         allow locale names without encoding suffix.
57477         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57478         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57479
57480 2007-10-16  Bruno Haible  <bruno@clisp.org>
57481
57482         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
57483         * lib/getgroups.c (getgroups): Likewise.
57484         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
57485
57486 2007-10-16  Bruno Haible  <bruno@clisp.org>
57487
57488         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
57489         * modules/malloc-posix (License): Likewise.
57490         * modules/realloc-posix (License): Likewise.
57491         * modules/calloc-posix (License): Likewise.
57492         * modules/intprops (License): Change from GPL to LGPL, with
57493         Paul Eggert's approval.
57494
57495 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57496
57497         Merge glibc changes into lib/glob.c.
57498
57499         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
57500         2007-10-15 04:59:03 UTC.  Here are the changes:
57501
57502         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
57503
57504         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
57505
57506         * lib/glob.c: Add some branch prediction throughout.
57507
57508         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
57509
57510         [BZ #5103]
57511         * lib/glob.c (glob): Recognize patterns starting \/.
57512
57513         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
57514
57515         [BZ #3996]
57516         * lib/glob.c (attribute_hidden): Define if not defined.
57517         (glob): Unescape dirname, filename or username when needed and not
57518         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
57519         is NULL.  Handle unescaped [ in pattern without closing ].
57520         Don't pass GLOB_CHECK down to recursive glob for directories.
57521         (__glob_pattern_type): New function.
57522         (__glob_pattern_p): Implement using __glob_pattern_type.
57523         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
57524         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
57525         Remove unreachable code.
57526
57527         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
57528
57529         * lib/glob.c (glob_in_dir): Add some comments and asserts to
57530         explain why there are no leaks.
57531
57532         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
57533
57534         [BZ #3253]
57535         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
57536         time, rather allocate increasingly bigger arrays of pointers, if
57537         possible with alloca, if too large with malloc.
57538
57539 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57540
57541         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
57542         Problem reported by H.Merijn Brand in
57543         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
57544         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
57545         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
57546
57547 2007-10-15  Bruno Haible  <bruno@clisp.org>
57548
57549         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
57550         with explicit rpl_ prefix.
57551         * lib/fopen.c (fopen): Likewise.
57552         * lib/freopen.c (freopen): Likewise.
57553         * lib/iconv.c (iconv): Likewise.
57554         * lib/iconv_close.c (iconv_close): Likewise.
57555
57556 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57557
57558         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
57559
57560 2007-10-15  Bruno Haible  <bruno@clisp.org>
57561
57562         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
57563         <stddef.h> instead of <stdlib.h> since we only need NULL.
57564         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57565
57566 2007-10-15  Bruno Haible  <bruno@clisp.org>
57567
57568         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
57569         Replace paragraph talking about LIBOBJS.
57570         Reported by Colin Watson <cjwatson@debian.org>.
57571
57572 2007-10-15  Bruno Haible  <bruno@clisp.org>
57573
57574         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
57575         <stdlib.h> before using NULL.
57576
57577 2007-10-15  Simon Josefsson  <simon@josefsson.org>
57578
57579         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
57580         Reported by Albert Chin <china@thewrittenword.com>.
57581
57582 2007-10-14  Bruno Haible  <bruno@clisp.org>
57583
57584         * modules/iconv_open-utf-tests: New file.
57585         * tests/test-iconv-utf.c: New file.
57586
57587         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
57588         * modules/iconv_open-utf: New file.
57589         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
57590         (iconv, iconv_close): New declarations.
57591         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
57592         be defined.
57593         (iconv_open): Add special handling of conversion between UTF-8 and
57594         UTF-{16,32}{BE,LE}.
57595         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
57596         * lib/iconv_close.c: New file.
57597         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
57598         gl_FUNC_ICONV_OPEN.
57599         (gl_FUNC_ICONV_OPEN): Use it.
57600         (gl_FUNC_ICONV_OPEN_UTF): New macro.
57601         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
57602         and REPLACE_ICONV_UTF.
57603         * modules/iconv_open (Depends-on): Add c-strcase.
57604         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
57605         ICONV_CONST.
57606         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
57607
57608 2007-10-13  Albert Chin  <china@thewrittenword.com>
57609             Bruno Haible  <bruno@clisp.org>
57610
57611         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
57612         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
57613
57614 2007-10-13  Bruno Haible  <bruno@clisp.org>
57615
57616         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
57617         defined, use the ISO C99 inline semantics.
57618         * lib/argp.h (ARGP_EI): Likewise.
57619
57620 2007-10-13  Bruno Haible  <bruno@clisp.org>
57621
57622         Handle 'inline' change in gcc 4.3.0.
57623         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
57624         argp_fmtstream_write, argp_fmtstream_set_lmargin,
57625         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
57626         argp_fmtstream_point): Disable 'extern' declaration if the function
57627         definition is going to be provided inline.
57628         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
57629         semantics, not the ISO C99 inline semantics.
57630         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
57631         'extern' declaration if the function definition is going to be provided
57632         inline.
57633         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
57634         the GNU C inline semantics, not the ISO C99 inline semantics. With
57635         GCC 4.2, avoid a warning.
57636
57637 2007-10-13  Bruno Haible  <bruno@clisp.org>
57638
57639         * lib/freading.h (freading): Enable the use of __freading for
57640         glibc >= 2.7.
57641         * lib/freading.c (freading): Likewise.
57642
57643 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57644
57645         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
57646         "warning: C99 inline functions are not supported; using GNU89".
57647
57648 2007-10-12  Bruno Haible  <bruno@clisp.org>
57649
57650         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
57651         of 2.
57652         * tests/test-ceilf2.c: New file.
57653         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
57654
57655         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
57656         * modules/ceilf-tests: Update.
57657
57658 2007-10-12  Bruno Haible  <bruno@clisp.org>
57659
57660         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
57661         of 2.
57662         * tests/test-floorf2.c: New file.
57663         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
57664
57665         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
57666         * modules/floorf-tests: Update.
57667
57668 2007-10-12  Bruno Haible  <bruno@clisp.org>
57669
57670         * tests/test-trunc2.c: New file.
57671         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
57672
57673         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
57674         * modules/trunc-tests: Update.
57675
57676 2007-10-12  Bruno Haible  <bruno@clisp.org>
57677
57678         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
57679         of 2.
57680         * tests/test-truncf2.c: New file.
57681         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
57682
57683         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
57684         * modules/truncf-tests: Update.
57685
57686 2007-10-11  Eric Blake  <ebb9@byu.net>
57687
57688         Don't claim strerror is broken on Interix.
57689         * doc/functions/strerror.texi (strerror): Known broken systems are
57690         now Solaris 8, and not Interix.
57691         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
57692         Interix on cross-compile.
57693         Reported by Martin Koeppe in
57694         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
57695
57696 2007-10-11  Bruno Haible  <bruno@clisp.org>
57697
57698         * modules/i-ring-tests: New file.
57699         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
57700         instead of assert.
57701
57702 2007-10-11  Bruno Haible  <bruno@clisp.org>
57703
57704         * modules/filenamecat-tests: New file.
57705         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
57706         * lib/filenamecat.c: Remove test code.
57707
57708 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57709
57710         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
57711
57712         * lib/strerror.c: Include <string.h> always, to test interface,
57713         and to remove the need for the dummy.
57714         Include intprops.h to compute width instead of doing it ourselves
57715         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
57716         (strerror): Define it to return NULL if there's no system strerror.
57717         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
57718         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
57719         ancient pre-strerror Unix systems well any more.  Saying "unknown
57720         system error" is enough.
57721         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
57722         simpler strerror.c implementation.
57723         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
57724         Simplify the tests to reflect the simpler strerror implementation.
57725         * modules/strerror (Depends-on): Add intprops.
57726
57727 2007-10-09  Eric Blake  <ebb9@byu.net>
57728
57729         Silence test-fpending.
57730         * modules/fpending-tests (Files): Add wrapper script.
57731         * tests/test-fpending.sh: New file.
57732
57733 2007-10-09  Bruno Haible  <bruno@clisp.org>
57734
57735         * MODULES.html.sh (func_module): Don't create a hyperlink for
57736         function names like 'printf_frexp'.
57737         (Misc): Add crc, memxor.
57738         (Characteristics of floating types): New section.
57739         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
57740         isnanf-nolibm, signbit, trunc, truncf, truncl.
57741         (Enhancements for ISO C 99 functions): New subsection Input/output.
57742         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
57743         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
57744         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
57745         (Compatibility checks for POSIX:2001 functions): Add clock-time.
57746         (Enhancements for POSIX:2001 functions): Add chdir-long.
57747         (File system functions): Add areadlink, chdir-safer, read-file.
57748         Remove cycle-check.
57749         (File system as inode set): New section.
57750         (Date and time): Add gethrxtime.
57751         (Multithreading): Add openmp.
57752         (Internationalization functions): Add localename.
57753         (Unicode string functions): Add unistr/u*-mbsnlen.
57754         (Support for maintaining and releasing projects): Add git-version-gen.
57755         (Lone files): Remove directories.
57756
57757 2007-10-08  Ben Pfaff  <blp@gnu.org>
57758
57759         * lib/xmalloca.h: Fix typo in comment.
57760
57761 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57762
57763         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
57764         when avoiding problems with integer overflow.  Use a portable test
57765         instead.
57766
57767 2007-10-08  Simon Josefsson  <simon@josefsson.org>
57768
57769         * modules/dummy (License): Change to LGPLv2+.
57770         * modules/float (License): Likewise
57771         * modules/realloc (License): Likewise
57772         * modules/stdlib (License): Likewise
57773
57774 2007-10-07  Bruno Haible  <bruno@clisp.org>
57775
57776         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
57777         * floor.c (TWO_MANT_DIG): Likewise.
57778         * ceil.c (TWO_MANT_DIG): Likewise.
57779         Reported by Ben Pfaff.
57780
57781 2007-10-07  Bruno Haible  <bruno@clisp.org>
57782
57783         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
57784         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
57785         * lib/frexp.c (FUNC): Likewise.
57786         * lib/printf-frexp.h (printf_frexp): Likewise.
57787         * lib/printf-frexpl.h (printf_frexpl): Likewise.
57788         * lib/printf-frexp.c (FUNC): Likewise.
57789         Suggested by Jim Meyering.
57790
57791 2007-10-07  Jim Meyering  <meyering@redhat.com>
57792
57793         Make xnanosleep's integer overflow test more robust.
57794         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
57795         so that gcc-4.3.0 doesn't optimize away this test for overflow.
57796
57797 2007-10-07  Bruno Haible  <bruno@clisp.org>
57798
57799         * NEWS: Mention the license change.
57800
57801         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
57802         abbreviations in the modules files.
57803
57804         Change copyright notice from GPLv2+ to GPLv3+.
57805         * README: Change copyright notice.
57806         * MODULES.html.sh: Likewise.
57807         * build-aux/bootstrap.conf: Likewise.
57808         * build-aux/config.libpath: Likewise.
57809         * build-aux/csharpcomp.sh.in: Likewise.
57810         * build-aux/csharpexec.sh.in: Likewise.
57811         * build-aux/install-reloc: Likewise.
57812         * build-aux/javacomp.sh.in: Likewise.
57813         * build-aux/javaexec.sh.in: Likewise.
57814         * build-aux/ldd.sh.in: Likewise.
57815         * build-aux/reloc-ldflags: Likewise.
57816         * build-aux/relocatable.sh.in: Likewise.
57817         * build-aux/x-to-1.in: Likewise.
57818         * check-module: Likewise.
57819         * config/srclistvars.sh: Likewise.
57820         * gnulib-tool: Likewise.
57821         * lib/acl-internal.h: Likewise.
57822         * lib/acl.c: Likewise.
57823         * lib/acl.h: Likewise.
57824         * lib/acl_entries.c: Likewise.
57825         * lib/areadlink-with-size.c: Likewise.
57826         * lib/areadlink.c: Likewise.
57827         * lib/areadlink.h: Likewise.
57828         * lib/argmatch.c: Likewise.
57829         * lib/argmatch.h: Likewise.
57830         * lib/argp-ba.c: Likewise.
57831         * lib/argp-eexst.c: Likewise.
57832         * lib/argp-fmtstream.c: Likewise.
57833         * lib/argp-fmtstream.h: Likewise.
57834         * lib/argp-fs-xinl.c: Likewise.
57835         * lib/argp-help.c: Likewise.
57836         * lib/argp-namefrob.h: Likewise.
57837         * lib/argp-parse.c: Likewise.
57838         * lib/argp-pin.c: Likewise.
57839         * lib/argp-pv.c: Likewise.
57840         * lib/argp-pvh.c: Likewise.
57841         * lib/argp-xinl.c: Likewise.
57842         * lib/argp.h: Likewise.
57843         * lib/at-func.c: Likewise.
57844         * lib/atanl.c: Likewise.
57845         * lib/backupfile.c: Likewise.
57846         * lib/backupfile.h: Likewise.
57847         * lib/basename.c: Likewise.
57848         * lib/binary-io.h: Likewise.
57849         * lib/byteswap.in.h: Likewise.
57850         * lib/c-stack.c: Likewise.
57851         * lib/c-stack.h: Likewise.
57852         * lib/c-strcasestr.c: Likewise.
57853         * lib/c-strcasestr.h: Likewise.
57854         * lib/c-strstr.c: Likewise.
57855         * lib/c-strstr.h: Likewise.
57856         * lib/c-strtod.c: Likewise.
57857         * lib/calloc.c: Likewise.
57858         * lib/canon-host.c: Likewise.
57859         * lib/canon-host.h: Likewise.
57860         * lib/canonicalize-lgpl.c: Likewise.
57861         * lib/canonicalize.c: Likewise.
57862         * lib/canonicalize.h: Likewise.
57863         * lib/ceil.c: Likewise.
57864         * lib/ceilf.c: Likewise.
57865         * lib/ceill.c: Likewise.
57866         * lib/chdir-long.c: Likewise.
57867         * lib/chdir-long.h: Likewise.
57868         * lib/chdir-safer.c: Likewise.
57869         * lib/chdir-safer.h: Likewise.
57870         * lib/chown.c: Likewise.
57871         * lib/classpath.c: Likewise.
57872         * lib/classpath.h: Likewise.
57873         * lib/clean-temp.c: Likewise.
57874         * lib/clean-temp.h: Likewise.
57875         * lib/cloexec.c: Likewise.
57876         * lib/close-stream.c: Likewise.
57877         * lib/closein.c: Likewise.
57878         * lib/closein.h: Likewise.
57879         * lib/closeout.c: Likewise.
57880         * lib/closeout.h: Likewise.
57881         * lib/concat-filename.c: Likewise.
57882         * lib/copy-file.c: Likewise.
57883         * lib/copy-file.h: Likewise.
57884         * lib/count-one-bits.h: Likewise.
57885         * lib/crc.c: Likewise.
57886         * lib/crc.h: Likewise.
57887         * lib/creat-safer.c: Likewise.
57888         * lib/csharpcomp.c: Likewise.
57889         * lib/csharpcomp.h: Likewise.
57890         * lib/csharpexec.c: Likewise.
57891         * lib/csharpexec.h: Likewise.
57892         * lib/cycle-check.c: Likewise.
57893         * lib/cycle-check.h: Likewise.
57894         * lib/diacrit.c: Likewise.
57895         * lib/diacrit.h: Likewise.
57896         * lib/diffseq.h: Likewise.
57897         * lib/dirchownmod.c: Likewise.
57898         * lib/dirent.in.h: Likewise.
57899         * lib/dirfd.c: Likewise.
57900         * lib/dirfd.h: Likewise.
57901         * lib/dirname.c: Likewise.
57902         * lib/dirname.h: Likewise.
57903         * lib/dummy.c: Likewise.
57904         * lib/dup-safer.c: Likewise.
57905         * lib/dup2.c: Likewise.
57906         * lib/eealloc.h: Likewise.
57907         * lib/error.c: Likewise.
57908         * lib/error.h: Likewise.
57909         * lib/euidaccess.c: Likewise.
57910         * lib/exclude.c: Likewise.
57911         * lib/exclude.h: Likewise.
57912         * lib/execute.c: Likewise.
57913         * lib/execute.h: Likewise.
57914         * lib/exitfail.c: Likewise.
57915         * lib/exitfail.h: Likewise.
57916         * lib/expl.c: Likewise.
57917         * lib/fatal-signal.c: Likewise.
57918         * lib/fatal-signal.h: Likewise.
57919         * lib/fbufmode.c: Likewise.
57920         * lib/fbufmode.h: Likewise.
57921         * lib/fchdir.c: Likewise.
57922         * lib/fchmodat.c: Likewise.
57923         * lib/fchownat.c: Likewise.
57924         * lib/fcntl--.h: Likewise.
57925         * lib/fcntl-safer.h: Likewise.
57926         * lib/fcntl.in.h: Likewise.
57927         * lib/fd-safer.c: Likewise.
57928         * lib/fflush.c: Likewise.
57929         * lib/file-has-acl.c: Likewise.
57930         * lib/file-set.c: Likewise.
57931         * lib/file-type.c: Likewise.
57932         * lib/file-type.h: Likewise.
57933         * lib/fileblocks.c: Likewise.
57934         * lib/filemode.c: Likewise.
57935         * lib/filemode.h: Likewise.
57936         * lib/filename.h: Likewise.
57937         * lib/filenamecat.c: Likewise.
57938         * lib/filenamecat.h: Likewise.
57939         * lib/findprog.c: Likewise.
57940         * lib/findprog.h: Likewise.
57941         * lib/float.in.h: Likewise.
57942         * lib/floor.c: Likewise.
57943         * lib/floorf.c: Likewise.
57944         * lib/floorl.c: Likewise.
57945         * lib/fopen-safer.c: Likewise.
57946         * lib/fopen.c: Likewise.
57947         * lib/fpending.c: Likewise.
57948         * lib/fpending.h: Likewise.
57949         * lib/fprintf.c: Likewise.
57950         * lib/fprintftime.h: Likewise.
57951         * lib/fpucw.h: Likewise.
57952         * lib/fpurge.c: Likewise.
57953         * lib/fpurge.h: Likewise.
57954         * lib/freadable.c: Likewise.
57955         * lib/freadable.h: Likewise.
57956         * lib/freadahead.c: Likewise.
57957         * lib/freadahead.h: Likewise.
57958         * lib/freading.c: Likewise.
57959         * lib/freading.h: Likewise.
57960         * lib/free.c: Likewise.
57961         * lib/freopen.c: Likewise.
57962         * lib/frexp.c: Likewise.
57963         * lib/frexpl.c: Likewise.
57964         * lib/fseek.c: Likewise.
57965         * lib/fseterr.c: Likewise.
57966         * lib/fseterr.h: Likewise.
57967         * lib/fstatat.c: Likewise.
57968         * lib/fstrcmp.c: Likewise.
57969         * lib/fstrcmp.h: Likewise.
57970         * lib/fsusage.c: Likewise.
57971         * lib/fsusage.h: Likewise.
57972         * lib/ftell.c: Likewise.
57973         * lib/ftello.c: Likewise.
57974         * lib/fts-cycle.c: Likewise.
57975         * lib/fts.c: Likewise.
57976         * lib/fts_.h: Likewise.
57977         * lib/full-read.c: Likewise.
57978         * lib/full-read.h: Likewise.
57979         * lib/full-write.c: Likewise.
57980         * lib/full-write.h: Likewise.
57981         * lib/fwritable.c: Likewise.
57982         * lib/fwritable.h: Likewise.
57983         * lib/fwriteerror.c: Likewise.
57984         * lib/fwriteerror.h: Likewise.
57985         * lib/fwriting.c: Likewise.
57986         * lib/fwriting.h: Likewise.
57987         * lib/gcd.c: Likewise.
57988         * lib/gcd.h: Likewise.
57989         * lib/getcwd.c: Likewise.
57990         * lib/getdate.h: Likewise.
57991         * lib/getdate.y: Likewise.
57992         * lib/getdomainname.c: Likewise.
57993         * lib/getdomainname.h: Likewise.
57994         * lib/getgroups.c: Likewise.
57995         * lib/gethostname.c: Likewise.
57996         * lib/gethrxtime.c: Likewise.
57997         * lib/gethrxtime.h: Likewise.
57998         * lib/getloadavg.c: Likewise.
57999         * lib/getndelim2.c: Likewise.
58000         * lib/getndelim2.h: Likewise.
58001         * lib/getnline.c: Likewise.
58002         * lib/getnline.h: Likewise.
58003         * lib/getopt.c: Likewise.
58004         * lib/getopt.in.h: Likewise.
58005         * lib/getopt1.c: Likewise.
58006         * lib/getopt_int.h: Likewise.
58007         * lib/getpagesize.h: Likewise.
58008         * lib/getsubopt.c: Likewise.
58009         * lib/gettime.c: Likewise.
58010         * lib/getugroups.c: Likewise.
58011         * lib/getugroups.h: Likewise.
58012         * lib/getusershell.c: Likewise.
58013         * lib/gl_anyavltree_list1.h: Likewise.
58014         * lib/gl_anyavltree_list2.h: Likewise.
58015         * lib/gl_anyhash_list1.h: Likewise.
58016         * lib/gl_anyhash_list2.h: Likewise.
58017         * lib/gl_anylinked_list1.h: Likewise.
58018         * lib/gl_anylinked_list2.h: Likewise.
58019         * lib/gl_anyrbtree_list1.h: Likewise.
58020         * lib/gl_anyrbtree_list2.h: Likewise.
58021         * lib/gl_anytree_list1.h: Likewise.
58022         * lib/gl_anytree_list2.h: Likewise.
58023         * lib/gl_anytree_oset.h: Likewise.
58024         * lib/gl_anytreehash_list1.h: Likewise.
58025         * lib/gl_anytreehash_list2.h: Likewise.
58026         * lib/gl_array_list.c: Likewise.
58027         * lib/gl_array_list.h: Likewise.
58028         * lib/gl_array_oset.c: Likewise.
58029         * lib/gl_array_oset.h: Likewise.
58030         * lib/gl_avltree_list.c: Likewise.
58031         * lib/gl_avltree_list.h: Likewise.
58032         * lib/gl_avltree_oset.c: Likewise.
58033         * lib/gl_avltree_oset.h: Likewise.
58034         * lib/gl_avltreehash_list.c: Likewise.
58035         * lib/gl_avltreehash_list.h: Likewise.
58036         * lib/gl_carray_list.c: Likewise.
58037         * lib/gl_carray_list.h: Likewise.
58038         * lib/gl_linked_list.c: Likewise.
58039         * lib/gl_linked_list.h: Likewise.
58040         * lib/gl_linkedhash_list.c: Likewise.
58041         * lib/gl_linkedhash_list.h: Likewise.
58042         * lib/gl_list.c: Likewise.
58043         * lib/gl_list.h: Likewise.
58044         * lib/gl_oset.c: Likewise.
58045         * lib/gl_oset.h: Likewise.
58046         * lib/gl_rbtree_list.c: Likewise.
58047         * lib/gl_rbtree_list.h: Likewise.
58048         * lib/gl_rbtree_oset.c: Likewise.
58049         * lib/gl_rbtree_oset.h: Likewise.
58050         * lib/gl_rbtreehash_list.c: Likewise.
58051         * lib/gl_rbtreehash_list.h: Likewise.
58052         * lib/gl_sublist.c: Likewise.
58053         * lib/gl_sublist.h: Likewise.
58054         * lib/group-member.c: Likewise.
58055         * lib/group-member.h: Likewise.
58056         * lib/hard-locale.c: Likewise.
58057         * lib/hard-locale.h: Likewise.
58058         * lib/hash-pjw.c: Likewise.
58059         * lib/hash-pjw.h: Likewise.
58060         * lib/hash-triple.c: Likewise.
58061         * lib/hash.c: Likewise.
58062         * lib/hash.h: Likewise.
58063         * lib/human.c: Likewise.
58064         * lib/human.h: Likewise.
58065         * lib/i-ring.c: Likewise.
58066         * lib/i-ring.h: Likewise.
58067         * lib/idcache.c: Likewise.
58068         * lib/imaxabs.c: Likewise.
58069         * lib/imaxdiv.c: Likewise.
58070         * lib/inet_pton.c: Likewise.
58071         * lib/inet_pton.h: Likewise.
58072         * lib/intprops.h: Likewise.
58073         * lib/inttostr.c: Likewise.
58074         * lib/inttostr.h: Likewise.
58075         * lib/inttypes.in.h: Likewise.
58076         * lib/isapipe.c: Likewise.
58077         * lib/isdir.c: Likewise.
58078         * lib/isnan.c: Likewise.
58079         * lib/isnan.h: Likewise.
58080         * lib/isnanf.c: Likewise.
58081         * lib/isnanf.h: Likewise.
58082         * lib/isnanl-nolibm.h: Likewise.
58083         * lib/isnanl.c: Likewise.
58084         * lib/isnanl.h: Likewise.
58085         * lib/javacomp.c: Likewise.
58086         * lib/javacomp.h: Likewise.
58087         * lib/javaexec.c: Likewise.
58088         * lib/javaexec.h: Likewise.
58089         * lib/javaversion.c: Likewise.
58090         * lib/javaversion.h: Likewise.
58091         * lib/javaversion.java: Likewise.
58092         * lib/lbrkprop.h: Likewise.
58093         * lib/lchmod.h: Likewise.
58094         * lib/lchown.c: Likewise.
58095         * lib/ldexpl.c: Likewise.
58096         * lib/linebreak.c: Likewise.
58097         * lib/linebreak.h: Likewise.
58098         * lib/linebuffer.c: Likewise.
58099         * lib/linebuffer.h: Likewise.
58100         * lib/locale.in.h: Likewise.
58101         * lib/logl.c: Likewise.
58102         * lib/long-options.c: Likewise.
58103         * lib/long-options.h: Likewise.
58104         * lib/lstat.c: Likewise.
58105         * lib/lstat.h: Likewise.
58106         * lib/math.in.h: Likewise.
58107         * lib/mbchar.c: Likewise.
58108         * lib/mbchar.h: Likewise.
58109         * lib/mbfile.h: Likewise.
58110         * lib/mbiter.h: Likewise.
58111         * lib/mbscasecmp.c: Likewise.
58112         * lib/mbscasestr.c: Likewise.
58113         * lib/mbschr.c: Likewise.
58114         * lib/mbscspn.c: Likewise.
58115         * lib/mbslen.c: Likewise.
58116         * lib/mbsncasecmp.c: Likewise.
58117         * lib/mbsnlen.c: Likewise.
58118         * lib/mbspbrk.c: Likewise.
58119         * lib/mbspcasecmp.c: Likewise.
58120         * lib/mbsrchr.c: Likewise.
58121         * lib/mbssep.c: Likewise.
58122         * lib/mbsspn.c: Likewise.
58123         * lib/mbsstr.c: Likewise.
58124         * lib/mbstok_r.c: Likewise.
58125         * lib/mbswidth.c: Likewise.
58126         * lib/mbswidth.h: Likewise.
58127         * lib/mbuiter.h: Likewise.
58128         * lib/memcasecmp.c: Likewise.
58129         * lib/memcasecmp.h: Likewise.
58130         * lib/memchr.c: Likewise.
58131         * lib/memcmp.c: Likewise.
58132         * lib/memcoll.c: Likewise.
58133         * lib/memcoll.h: Likewise.
58134         * lib/memcpy.c: Likewise.
58135         * lib/memrchr.c: Likewise.
58136         * lib/mkancesdirs.c: Likewise.
58137         * lib/mkdir-p.c: Likewise.
58138         * lib/mkdir-p.h: Likewise.
58139         * lib/mkdir.c: Likewise.
58140         * lib/mkdirat.c: Likewise.
58141         * lib/mkdtemp.c: Likewise.
58142         * lib/mkstemp-safer.c: Likewise.
58143         * lib/mkstemp.c: Likewise.
58144         * lib/modechange.c: Likewise.
58145         * lib/modechange.h: Likewise.
58146         * lib/mountlist.c: Likewise.
58147         * lib/mountlist.h: Likewise.
58148         * lib/mpsort.c: Likewise.
58149         * lib/nanosleep.c: Likewise.
58150         * lib/obstack.c: Likewise.
58151         * lib/obstack.h: Likewise.
58152         * lib/open-safer.c: Likewise.
58153         * lib/open.c: Likewise.
58154         * lib/openat-die.c: Likewise.
58155         * lib/openat-priv.h: Likewise.
58156         * lib/openat-proc.c: Likewise.
58157         * lib/openat.c: Likewise.
58158         * lib/openat.h: Likewise.
58159         * lib/pagealign_alloc.c: Likewise.
58160         * lib/pagealign_alloc.h: Likewise.
58161         * lib/physmem.c: Likewise.
58162         * lib/physmem.h: Likewise.
58163         * lib/pipe-safer.c: Likewise.
58164         * lib/pipe.c: Likewise.
58165         * lib/pipe.h: Likewise.
58166         * lib/posixtm.c: Likewise.
58167         * lib/posixtm.h: Likewise.
58168         * lib/posixver.c: Likewise.
58169         * lib/printf-frexp.c: Likewise.
58170         * lib/printf-frexp.h: Likewise.
58171         * lib/printf-frexpl.c: Likewise.
58172         * lib/printf-frexpl.h: Likewise.
58173         * lib/printf.c: Likewise.
58174         * lib/progname.c: Likewise.
58175         * lib/progname.h: Likewise.
58176         * lib/progreloc.c: Likewise.
58177         * lib/putenv.c: Likewise.
58178         * lib/quote.c: Likewise.
58179         * lib/quote.h: Likewise.
58180         * lib/quotearg.c: Likewise.
58181         * lib/quotearg.h: Likewise.
58182         * lib/raise.c: Likewise.
58183         * lib/readline.c: Likewise.
58184         * lib/readline.h: Likewise.
58185         * lib/readlink.c: Likewise.
58186         * lib/readtokens.c: Likewise.
58187         * lib/readtokens.h: Likewise.
58188         * lib/readtokens0.c: Likewise.
58189         * lib/readtokens0.h: Likewise.
58190         * lib/readutmp.c: Likewise.
58191         * lib/readutmp.h: Likewise.
58192         * lib/realloc.c: Likewise.
58193         * lib/relocwrapper.c: Likewise.
58194         * lib/rename-dest-slash.c: Likewise.
58195         * lib/rename.c: Likewise.
58196         * lib/rmdir.c: Likewise.
58197         * lib/rpmatch.c: Likewise.
58198         * lib/safe-read.c: Likewise.
58199         * lib/safe-read.h: Likewise.
58200         * lib/safe-write.c: Likewise.
58201         * lib/safe-write.h: Likewise.
58202         * lib/same-inode.h: Likewise.
58203         * lib/same.c: Likewise.
58204         * lib/same.h: Likewise.
58205         * lib/save-cwd.c: Likewise.
58206         * lib/save-cwd.h: Likewise.
58207         * lib/savedir.c: Likewise.
58208         * lib/savedir.h: Likewise.
58209         * lib/savewd.c: Likewise.
58210         * lib/savewd.h: Likewise.
58211         * lib/search.in.h: Likewise.
58212         * lib/setenv.c: Likewise.
58213         * lib/setenv.h: Likewise.
58214         * lib/settime.c: Likewise.
58215         * lib/sh-quote.c: Likewise.
58216         * lib/sh-quote.h: Likewise.
58217         * lib/sig2str.c: Likewise.
58218         * lib/sig2str.h: Likewise.
58219         * lib/signal.in.h: Likewise.
58220         * lib/signbitd.c: Likewise.
58221         * lib/signbitf.c: Likewise.
58222         * lib/signbitl.c: Likewise.
58223         * lib/sigprocmask.c: Likewise.
58224         * lib/sincosl.c: Likewise.
58225         * lib/sleep.c: Likewise.
58226         * lib/sprintf.c: Likewise.
58227         * lib/sqrtl.c: Likewise.
58228         * lib/stat-time.h: Likewise.
58229         * lib/stdio--.h: Likewise.
58230         * lib/stdio-safer.h: Likewise.
58231         * lib/stdlib--.h: Likewise.
58232         * lib/stdlib-safer.h: Likewise.
58233         * lib/stdlib.in.h: Likewise.
58234         * lib/stpcpy.c: Likewise.
58235         * lib/stpncpy.c: Likewise.
58236         * lib/strchrnul.c: Likewise.
58237         * lib/strcspn.c: Likewise.
58238         * lib/strerror.c: Likewise.
58239         * lib/strftime.c: Likewise.
58240         * lib/strftime.h: Likewise.
58241         * lib/striconveh.c: Likewise.
58242         * lib/striconveh.h: Likewise.
58243         * lib/striconveha.c: Likewise.
58244         * lib/striconveha.h: Likewise.
58245         * lib/stripslash.c: Likewise.
58246         * lib/strnlen1.c: Likewise.
58247         * lib/strnlen1.h: Likewise.
58248         * lib/strtod.c: Likewise.
58249         * lib/strtoimax.c: Likewise.
58250         * lib/strtok_r.c: Likewise.
58251         * lib/strtol.c: Likewise.
58252         * lib/strtoll.c: Likewise.
58253         * lib/strtoul.c: Likewise.
58254         * lib/strtoull.c: Likewise.
58255         * lib/sysexits.in.h: Likewise.
58256         * lib/tempname.c: Likewise.
58257         * lib/tempname.h: Likewise.
58258         * lib/timespec.h: Likewise.
58259         * lib/tls.c: Likewise.
58260         * lib/tls.h: Likewise.
58261         * lib/tmpdir.c: Likewise.
58262         * lib/tmpdir.h: Likewise.
58263         * lib/tmpfile-safer.c: Likewise.
58264         * lib/tmpfile.c: Likewise.
58265         * lib/trigl.c: Likewise.
58266         * lib/trigl.h: Likewise.
58267         * lib/trim.c: Likewise.
58268         * lib/trim.h: Likewise.
58269         * lib/trunc.c: Likewise.
58270         * lib/truncf.c: Likewise.
58271         * lib/truncl.c: Likewise.
58272         * lib/tsearch.c: Likewise.
58273         * lib/unicodeio.c: Likewise.
58274         * lib/unicodeio.h: Likewise.
58275         * lib/unistd--.h: Likewise.
58276         * lib/unistd-safer.h: Likewise.
58277         * lib/unistdio/ulc-fprintf.c: Likewise.
58278         * lib/unistdio/ulc-vfprintf.c: Likewise.
58279         * lib/unlinkdir.c: Likewise.
58280         * lib/unlinkdir.h: Likewise.
58281         * lib/unlocked-io.h: Likewise.
58282         * lib/unsetenv.c: Likewise.
58283         * lib/userspec.c: Likewise.
58284         * lib/utime.c: Likewise.
58285         * lib/utimecmp.c: Likewise.
58286         * lib/utimecmp.h: Likewise.
58287         * lib/utimens.c: Likewise.
58288         * lib/verify.h: Likewise.
58289         * lib/verror.c: Likewise.
58290         * lib/verror.h: Likewise.
58291         * lib/version-etc-fsf.c: Likewise.
58292         * lib/version-etc.c: Likewise.
58293         * lib/version-etc.h: Likewise.
58294         * lib/vfprintf.c: Likewise.
58295         * lib/vprintf.c: Likewise.
58296         * lib/vsprintf.c: Likewise.
58297         * lib/w32spawn.h: Likewise.
58298         * lib/wait-process.c: Likewise.
58299         * lib/wait-process.h: Likewise.
58300         * lib/wcwidth.c: Likewise.
58301         * lib/write-any-file.c: Likewise.
58302         * lib/xalloc-die.c: Likewise.
58303         * lib/xalloc.h: Likewise.
58304         * lib/xasprintf.c: Likewise.
58305         * lib/xgetcwd.c: Likewise.
58306         * lib/xgetcwd.h: Likewise.
58307         * lib/xgetdomainname.c: Likewise.
58308         * lib/xgetdomainname.h: Likewise.
58309         * lib/xgethostname.c: Likewise.
58310         * lib/xmalloc.c: Likewise.
58311         * lib/xmalloca.c: Likewise.
58312         * lib/xmalloca.h: Likewise.
58313         * lib/xmemcoll.c: Likewise.
58314         * lib/xnanosleep.c: Likewise.
58315         * lib/xreadlink.c: Likewise.
58316         * lib/xreadlink.h: Likewise.
58317         * lib/xsetenv.c: Likewise.
58318         * lib/xsetenv.h: Likewise.
58319         * lib/xstriconv.c: Likewise.
58320         * lib/xstriconv.h: Likewise.
58321         * lib/xstrndup.c: Likewise.
58322         * lib/xstrndup.h: Likewise.
58323         * lib/xstrtod.c: Likewise.
58324         * lib/xstrtod.h: Likewise.
58325         * lib/xstrtol-error.c: Likewise.
58326         * lib/xstrtol.c: Likewise.
58327         * lib/xstrtol.h: Likewise.
58328         * lib/xtime.h: Likewise.
58329         * lib/xvasprintf.c: Likewise.
58330         * lib/xvasprintf.h: Likewise.
58331         * lib/yesno.c: Likewise.
58332         * lib/yesno.h: Likewise.
58333         * posix-modules: Likewise.
58334         * tests/test-alloca-opt.c: Likewise.
58335         * tests/test-arcfour.c: Likewise.
58336         * tests/test-arctwo.c: Likewise.
58337         * tests/test-argmatch.c: Likewise.
58338         * tests/test-argp-2.sh: Likewise.
58339         * tests/test-argp.c: Likewise.
58340         * tests/test-arpa_inet.c: Likewise.
58341         * tests/test-array_list.c: Likewise.
58342         * tests/test-array_oset.c: Likewise.
58343         * tests/test-atexit.c: Likewise.
58344         * tests/test-avltree_list.c: Likewise.
58345         * tests/test-avltree_oset.c: Likewise.
58346         * tests/test-avltreehash_list.c: Likewise.
58347         * tests/test-base64.c: Likewise.
58348         * tests/test-binary-io.c: Likewise.
58349         * tests/test-byteswap.c: Likewise.
58350         * tests/test-c-ctype.c: Likewise.
58351         * tests/test-c-strcasecmp.c: Likewise.
58352         * tests/test-c-strcasestr.c: Likewise.
58353         * tests/test-c-strncasecmp.c: Likewise.
58354         * tests/test-c-strstr.c: Likewise.
58355         * tests/test-canonicalize-lgpl.c: Likewise.
58356         * tests/test-canonicalize.c: Likewise.
58357         * tests/test-carray_list.c: Likewise.
58358         * tests/test-ceilf.c: Likewise.
58359         * tests/test-ceill.c: Likewise.
58360         * tests/test-count-one-bits.c: Likewise.
58361         * tests/test-crc.c: Likewise.
58362         * tests/test-dirname.c: Likewise.
58363         * tests/test-fbufmode.c: Likewise.
58364         * tests/test-fcntl.c: Likewise.
58365         * tests/test-fflush.c: Likewise.
58366         * tests/test-floorf.c: Likewise.
58367         * tests/test-floorl.c: Likewise.
58368         * tests/test-fopen.c: Likewise.
58369         * tests/test-fprintf-posix.c: Likewise.
58370         * tests/test-fprintf-posix.h: Likewise.
58371         * tests/test-fpurge.c: Likewise.
58372         * tests/test-freadable.c: Likewise.
58373         * tests/test-freadahead.c: Likewise.
58374         * tests/test-freading.c: Likewise.
58375         * tests/test-freopen.c: Likewise.
58376         * tests/test-frexp.c: Likewise.
58377         * tests/test-frexpl.c: Likewise.
58378         * tests/test-fseek.c: Likewise.
58379         * tests/test-fseeko.c: Likewise.
58380         * tests/test-fseterr.c: Likewise.
58381         * tests/test-fstrcmp.c: Likewise.
58382         * tests/test-ftell.c: Likewise.
58383         * tests/test-ftello.c: Likewise.
58384         * tests/test-fwritable.c: Likewise.
58385         * tests/test-fwriting.c: Likewise.
58386         * tests/test-getaddrinfo.c: Likewise.
58387         * tests/test-getpass.c: Likewise.
58388         * tests/test-gettimeofday.c: Likewise.
58389         * tests/test-hmac-md5.c: Likewise.
58390         * tests/test-hmac-sha1.c: Likewise.
58391         * tests/test-iconv.c: Likewise.
58392         * tests/test-iconvme.c: Likewise.
58393         * tests/test-inttypes.c: Likewise.
58394         * tests/test-isnan.c: Likewise.
58395         * tests/test-isnanf.c: Likewise.
58396         * tests/test-isnanl-nolibm.c: Likewise.
58397         * tests/test-isnanl.c: Likewise.
58398         * tests/test-isnanl.h: Likewise.
58399         * tests/test-ldexpl.c: Likewise.
58400         * tests/test-linked_list.c: Likewise.
58401         * tests/test-linkedhash_list.c: Likewise.
58402         * tests/test-locale.c: Likewise.
58403         * tests/test-localename.c: Likewise.
58404         * tests/test-lock.c: Likewise.
58405         * tests/test-lseek.c: Likewise.
58406         * tests/test-malloca.c: Likewise.
58407         * tests/test-math.c: Likewise.
58408         * tests/test-mbscasecmp.c: Likewise.
58409         * tests/test-mbscasestr1.c: Likewise.
58410         * tests/test-mbscasestr2.c: Likewise.
58411         * tests/test-mbscasestr3.c: Likewise.
58412         * tests/test-mbscasestr4.c: Likewise.
58413         * tests/test-mbschr.c: Likewise.
58414         * tests/test-mbscspn.c: Likewise.
58415         * tests/test-mbsncasecmp.c: Likewise.
58416         * tests/test-mbspbrk.c: Likewise.
58417         * tests/test-mbspcasecmp.c: Likewise.
58418         * tests/test-mbsrchr.c: Likewise.
58419         * tests/test-mbsspn.c: Likewise.
58420         * tests/test-mbsstr1.c: Likewise.
58421         * tests/test-mbsstr2.c: Likewise.
58422         * tests/test-mbsstr3.c: Likewise.
58423         * tests/test-md5.c: Likewise.
58424         * tests/test-memmem.c: Likewise.
58425         * tests/test-netinet_in.c: Likewise.
58426         * tests/test-open.c: Likewise.
58427         * tests/test-printf-frexp.c: Likewise.
58428         * tests/test-printf-frexpl.c: Likewise.
58429         * tests/test-printf-posix.c: Likewise.
58430         * tests/test-printf-posix.h: Likewise.
58431         * tests/test-rbtree_list.c: Likewise.
58432         * tests/test-rbtree_oset.c: Likewise.
58433         * tests/test-rbtreehash_list.c: Likewise.
58434         * tests/test-read-file.c: Likewise.
58435         * tests/test-rijndael.c: Likewise.
58436         * tests/test-search.c: Likewise.
58437         * tests/test-signbit.c: Likewise.
58438         * tests/test-sleep.c: Likewise.
58439         * tests/test-snprintf-posix.c: Likewise.
58440         * tests/test-snprintf-posix.h: Likewise.
58441         * tests/test-snprintf.c: Likewise.
58442         * tests/test-sprintf-posix.c: Likewise.
58443         * tests/test-sprintf-posix.h: Likewise.
58444         * tests/test-stat-time.c: Likewise.
58445         * tests/test-stdbool.c: Likewise.
58446         * tests/test-stdint.c: Likewise.
58447         * tests/test-stdio.c: Likewise.
58448         * tests/test-stdlib.c: Likewise.
58449         * tests/test-stpncpy.c: Likewise.
58450         * tests/test-strcasestr.c: Likewise.
58451         * tests/test-striconv.c: Likewise.
58452         * tests/test-striconveh.c: Likewise.
58453         * tests/test-striconveha.c: Likewise.
58454         * tests/test-string.c: Likewise.
58455         * tests/test-sys_select.c: Likewise.
58456         * tests/test-sys_socket.c: Likewise.
58457         * tests/test-sys_stat.c: Likewise.
58458         * tests/test-sys_time.c: Likewise.
58459         * tests/test-sysexits.c: Likewise.
58460         * tests/test-time.c: Likewise.
58461         * tests/test-tls.c: Likewise.
58462         * tests/test-trunc.c: Likewise.
58463         * tests/test-truncf.c: Likewise.
58464         * tests/test-truncl.c: Likewise.
58465         * tests/test-unistd.c: Likewise.
58466         * tests/test-vasnprintf-posix.c: Likewise.
58467         * tests/test-vasnprintf-posix2.c: Likewise.
58468         * tests/test-vasnprintf.c: Likewise.
58469         * tests/test-vasprintf-posix.c: Likewise.
58470         * tests/test-vasprintf.c: Likewise.
58471         * tests/test-verify.c: Likewise.
58472         * tests/test-vfprintf-posix.c: Likewise.
58473         * tests/test-vprintf-posix.c: Likewise.
58474         * tests/test-vsnprintf-posix.c: Likewise.
58475         * tests/test-vsnprintf.c: Likewise.
58476         * tests/test-vsprintf-posix.c: Likewise.
58477         * tests/test-wchar.c: Likewise.
58478         * tests/test-wctype.c: Likewise.
58479         * tests/test-wcwidth.c: Likewise.
58480         * tests/test-xstrtol.c: Likewise.
58481         * tests/test-xvasprintf.c: Likewise.
58482         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
58483         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
58484         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58485         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58486         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58487         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
58488         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58489         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58490         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58491         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
58492         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58493         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58494         * tests/uniname/test-uninames.c: Likewise.
58495         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
58496         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
58497         * tests/unistdio/test-u16-printf1.h: Likewise.
58498         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
58499         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
58500         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
58501         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
58502         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
58503         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
58504         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
58505         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
58506         * tests/unistdio/test-u32-printf1.h: Likewise.
58507         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
58508         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
58509         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
58510         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
58511         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
58512         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
58513         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
58514         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
58515         * tests/unistdio/test-u8-printf1.h: Likewise.
58516         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
58517         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
58518         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
58519         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
58520         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
58521         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
58522         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
58523         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
58524         * tests/unistdio/test-ulc-printf1.h: Likewise.
58525         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
58526         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
58527         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
58528         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
58529         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
58530         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
58531         * tests/uniwidth/test-u16-strwidth.c: Likewise.
58532         * tests/uniwidth/test-u16-width.c: Likewise.
58533         * tests/uniwidth/test-u32-strwidth.c: Likewise.
58534         * tests/uniwidth/test-u32-width.c: Likewise.
58535         * tests/uniwidth/test-u8-strwidth.c: Likewise.
58536         * tests/uniwidth/test-u8-width.c: Likewise.
58537         * tests/uniwidth/test-uc_width.c: Likewise.
58538         * config/srclist-update: Likewise.
58539         (fixlicense): Update to GPLv3+.
58540
58541         Change copyright notice from LGPLv2.1+ to LGPLv3+.
58542         * tests/test-tsearch.c: Change copyright notice.
58543
58544         Change copyright notice from LGPLv2.0+ to LGPLv3+.
58545         * lib/c-strcaseeq.h: Change copyright notice.
58546         * lib/streq.h: Likewise.
58547         * lib/uniconv.h: Likewise.
58548         * lib/uniconv/u-conv-from-enc.h: Likewise.
58549         * lib/uniconv/u-conv-to-enc.h: Likewise.
58550         * lib/uniconv/u-strconv-from-enc.h: Likewise.
58551         * lib/uniconv/u-strconv-to-enc.h: Likewise.
58552         * lib/uniconv/u16-conv-from-enc.c: Likewise.
58553         * lib/uniconv/u16-conv-to-enc.c: Likewise.
58554         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
58555         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
58556         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
58557         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
58558         * lib/uniconv/u32-conv-from-enc.c: Likewise.
58559         * lib/uniconv/u32-conv-to-enc.c: Likewise.
58560         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
58561         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
58562         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
58563         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
58564         * lib/uniconv/u8-conv-from-enc.c: Likewise.
58565         * lib/uniconv/u8-conv-to-enc.c: Likewise.
58566         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
58567         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
58568         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
58569         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
58570         * lib/uniname.h: Likewise.
58571         * lib/uniname/uniname.c: Likewise.
58572         * lib/unistdio.h: Likewise.
58573         * lib/unistdio/u-asnprintf.h: Likewise.
58574         * lib/unistdio/u-asprintf.h: Likewise.
58575         * lib/unistdio/u-printf-args.c: Likewise.
58576         * lib/unistdio/u-printf-args.h: Likewise.
58577         * lib/unistdio/u-printf-parse.h: Likewise.
58578         * lib/unistdio/u-snprintf.h: Likewise.
58579         * lib/unistdio/u-sprintf.h: Likewise.
58580         * lib/unistdio/u-vasprintf.h: Likewise.
58581         * lib/unistdio/u-vsnprintf.h: Likewise.
58582         * lib/unistdio/u-vsprintf.h: Likewise.
58583         * lib/unistdio/u16-asnprintf.c: Likewise.
58584         * lib/unistdio/u16-asprintf.c: Likewise.
58585         * lib/unistdio/u16-printf-parse.c: Likewise.
58586         * lib/unistdio/u16-snprintf.c: Likewise.
58587         * lib/unistdio/u16-sprintf.c: Likewise.
58588         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
58589         * lib/unistdio/u16-u16-asprintf.c: Likewise.
58590         * lib/unistdio/u16-u16-snprintf.c: Likewise.
58591         * lib/unistdio/u16-u16-sprintf.c: Likewise.
58592         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
58593         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
58594         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
58595         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
58596         * lib/unistdio/u16-vasnprintf.c: Likewise.
58597         * lib/unistdio/u16-vasprintf.c: Likewise.
58598         * lib/unistdio/u16-vsnprintf.c: Likewise.
58599         * lib/unistdio/u16-vsprintf.c: Likewise.
58600         * lib/unistdio/u32-asnprintf.c: Likewise.
58601         * lib/unistdio/u32-asprintf.c: Likewise.
58602         * lib/unistdio/u32-printf-parse.c: Likewise.
58603         * lib/unistdio/u32-snprintf.c: Likewise.
58604         * lib/unistdio/u32-sprintf.c: Likewise.
58605         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
58606         * lib/unistdio/u32-u32-asprintf.c: Likewise.
58607         * lib/unistdio/u32-u32-snprintf.c: Likewise.
58608         * lib/unistdio/u32-u32-sprintf.c: Likewise.
58609         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
58610         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
58611         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
58612         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
58613         * lib/unistdio/u32-vasnprintf.c: Likewise.
58614         * lib/unistdio/u32-vasprintf.c: Likewise.
58615         * lib/unistdio/u32-vsnprintf.c: Likewise.
58616         * lib/unistdio/u32-vsprintf.c: Likewise.
58617         * lib/unistdio/u8-asnprintf.c: Likewise.
58618         * lib/unistdio/u8-asprintf.c: Likewise.
58619         * lib/unistdio/u8-printf-parse.c: Likewise.
58620         * lib/unistdio/u8-snprintf.c: Likewise.
58621         * lib/unistdio/u8-sprintf.c: Likewise.
58622         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
58623         * lib/unistdio/u8-u8-asprintf.c: Likewise.
58624         * lib/unistdio/u8-u8-snprintf.c: Likewise.
58625         * lib/unistdio/u8-u8-sprintf.c: Likewise.
58626         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
58627         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
58628         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
58629         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
58630         * lib/unistdio/u8-vasnprintf.c: Likewise.
58631         * lib/unistdio/u8-vasprintf.c: Likewise.
58632         * lib/unistdio/u8-vsnprintf.c: Likewise.
58633         * lib/unistdio/u8-vsprintf.c: Likewise.
58634         * lib/unistdio/ulc-asnprintf.c: Likewise.
58635         * lib/unistdio/ulc-asprintf.c: Likewise.
58636         * lib/unistdio/ulc-printf-parse.c: Likewise.
58637         * lib/unistdio/ulc-snprintf.c: Likewise.
58638         * lib/unistdio/ulc-sprintf.c: Likewise.
58639         * lib/unistdio/ulc-vasnprintf.c: Likewise.
58640         * lib/unistdio/ulc-vasprintf.c: Likewise.
58641         * lib/unistdio/ulc-vsnprintf.c: Likewise.
58642         * lib/unistdio/ulc-vsprintf.c: Likewise.
58643         * lib/unistr.h: Likewise.
58644         * lib/unistr/u-cpy-alloc.h: Likewise.
58645         * lib/unistr/u-cpy.h: Likewise.
58646         * lib/unistr/u-endswith.h: Likewise.
58647         * lib/unistr/u-move.h: Likewise.
58648         * lib/unistr/u-set.h: Likewise.
58649         * lib/unistr/u-startswith.h: Likewise.
58650         * lib/unistr/u-stpcpy.h: Likewise.
58651         * lib/unistr/u-stpncpy.h: Likewise.
58652         * lib/unistr/u-strcat.h: Likewise.
58653         * lib/unistr/u-strcpy.h: Likewise.
58654         * lib/unistr/u-strcspn.h: Likewise.
58655         * lib/unistr/u-strdup.h: Likewise.
58656         * lib/unistr/u-strlen.h: Likewise.
58657         * lib/unistr/u-strncat.h: Likewise.
58658         * lib/unistr/u-strncpy.h: Likewise.
58659         * lib/unistr/u-strnlen.h: Likewise.
58660         * lib/unistr/u-strpbrk.h: Likewise.
58661         * lib/unistr/u-strspn.h: Likewise.
58662         * lib/unistr/u-strstr.h: Likewise.
58663         * lib/unistr/u-strtok.h: Likewise.
58664         * lib/unistr/u16-check.c: Likewise.
58665         * lib/unistr/u16-chr.c: Likewise.
58666         * lib/unistr/u16-cmp.c: Likewise.
58667         * lib/unistr/u16-cpy-alloc.c: Likewise.
58668         * lib/unistr/u16-cpy.c: Likewise.
58669         * lib/unistr/u16-endswith.c: Likewise.
58670         * lib/unistr/u16-mblen.c: Likewise.
58671         * lib/unistr/u16-mbsnlen.c: Likewise.
58672         * lib/unistr/u16-mbtouc-aux.c: Likewise.
58673         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
58674         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
58675         * lib/unistr/u16-mbtouc.c: Likewise.
58676         * lib/unistr/u16-mbtoucr.c: Likewise.
58677         * lib/unistr/u16-move.c: Likewise.
58678         * lib/unistr/u16-next.c: Likewise.
58679         * lib/unistr/u16-prev.c: Likewise.
58680         * lib/unistr/u16-set.c: Likewise.
58681         * lib/unistr/u16-startswith.c: Likewise.
58682         * lib/unistr/u16-stpcpy.c: Likewise.
58683         * lib/unistr/u16-stpncpy.c: Likewise.
58684         * lib/unistr/u16-strcat.c: Likewise.
58685         * lib/unistr/u16-strchr.c: Likewise.
58686         * lib/unistr/u16-strcmp.c: Likewise.
58687         * lib/unistr/u16-strcpy.c: Likewise.
58688         * lib/unistr/u16-strcspn.c: Likewise.
58689         * lib/unistr/u16-strdup.c: Likewise.
58690         * lib/unistr/u16-strlen.c: Likewise.
58691         * lib/unistr/u16-strmblen.c: Likewise.
58692         * lib/unistr/u16-strmbtouc.c: Likewise.
58693         * lib/unistr/u16-strncat.c: Likewise.
58694         * lib/unistr/u16-strncmp.c: Likewise.
58695         * lib/unistr/u16-strncpy.c: Likewise.
58696         * lib/unistr/u16-strnlen.c: Likewise.
58697         * lib/unistr/u16-strpbrk.c: Likewise.
58698         * lib/unistr/u16-strrchr.c: Likewise.
58699         * lib/unistr/u16-strspn.c: Likewise.
58700         * lib/unistr/u16-strstr.c: Likewise.
58701         * lib/unistr/u16-strtok.c: Likewise.
58702         * lib/unistr/u16-to-u32.c: Likewise.
58703         * lib/unistr/u16-to-u8.c: Likewise.
58704         * lib/unistr/u16-uctomb-aux.c: Likewise.
58705         * lib/unistr/u16-uctomb.c: Likewise.
58706         * lib/unistr/u32-check.c: Likewise.
58707         * lib/unistr/u32-chr.c: Likewise.
58708         * lib/unistr/u32-cmp.c: Likewise.
58709         * lib/unistr/u32-cpy-alloc.c: Likewise.
58710         * lib/unistr/u32-cpy.c: Likewise.
58711         * lib/unistr/u32-endswith.c: Likewise.
58712         * lib/unistr/u32-mblen.c: Likewise.
58713         * lib/unistr/u32-mbsnlen.c: Likewise.
58714         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
58715         * lib/unistr/u32-mbtouc.c: Likewise.
58716         * lib/unistr/u32-mbtoucr.c: Likewise.
58717         * lib/unistr/u32-move.c: Likewise.
58718         * lib/unistr/u32-next.c: Likewise.
58719         * lib/unistr/u32-prev.c: Likewise.
58720         * lib/unistr/u32-set.c: Likewise.
58721         * lib/unistr/u32-startswith.c: Likewise.
58722         * lib/unistr/u32-stpcpy.c: Likewise.
58723         * lib/unistr/u32-stpncpy.c: Likewise.
58724         * lib/unistr/u32-strcat.c: Likewise.
58725         * lib/unistr/u32-strchr.c: Likewise.
58726         * lib/unistr/u32-strcmp.c: Likewise.
58727         * lib/unistr/u32-strcpy.c: Likewise.
58728         * lib/unistr/u32-strcspn.c: Likewise.
58729         * lib/unistr/u32-strdup.c: Likewise.
58730         * lib/unistr/u32-strlen.c: Likewise.
58731         * lib/unistr/u32-strmblen.c: Likewise.
58732         * lib/unistr/u32-strmbtouc.c: Likewise.
58733         * lib/unistr/u32-strncat.c: Likewise.
58734         * lib/unistr/u32-strncmp.c: Likewise.
58735         * lib/unistr/u32-strncpy.c: Likewise.
58736         * lib/unistr/u32-strnlen.c: Likewise.
58737         * lib/unistr/u32-strpbrk.c: Likewise.
58738         * lib/unistr/u32-strrchr.c: Likewise.
58739         * lib/unistr/u32-strspn.c: Likewise.
58740         * lib/unistr/u32-strstr.c: Likewise.
58741         * lib/unistr/u32-strtok.c: Likewise.
58742         * lib/unistr/u32-to-u16.c: Likewise.
58743         * lib/unistr/u32-to-u8.c: Likewise.
58744         * lib/unistr/u32-uctomb.c: Likewise.
58745         * lib/unistr/u8-check.c: Likewise.
58746         * lib/unistr/u8-chr.c: Likewise.
58747         * lib/unistr/u8-cmp.c: Likewise.
58748         * lib/unistr/u8-cpy-alloc.c: Likewise.
58749         * lib/unistr/u8-cpy.c: Likewise.
58750         * lib/unistr/u8-endswith.c: Likewise.
58751         * lib/unistr/u8-mblen.c: Likewise.
58752         * lib/unistr/u8-mbsnlen.c: Likewise.
58753         * lib/unistr/u8-mbtouc-aux.c: Likewise.
58754         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
58755         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
58756         * lib/unistr/u8-mbtouc.c: Likewise.
58757         * lib/unistr/u8-mbtoucr.c: Likewise.
58758         * lib/unistr/u8-move.c: Likewise.
58759         * lib/unistr/u8-next.c: Likewise.
58760         * lib/unistr/u8-prev.c: Likewise.
58761         * lib/unistr/u8-set.c: Likewise.
58762         * lib/unistr/u8-startswith.c: Likewise.
58763         * lib/unistr/u8-stpcpy.c: Likewise.
58764         * lib/unistr/u8-stpncpy.c: Likewise.
58765         * lib/unistr/u8-strcat.c: Likewise.
58766         * lib/unistr/u8-strchr.c: Likewise.
58767         * lib/unistr/u8-strcmp.c: Likewise.
58768         * lib/unistr/u8-strcpy.c: Likewise.
58769         * lib/unistr/u8-strcspn.c: Likewise.
58770         * lib/unistr/u8-strdup.c: Likewise.
58771         * lib/unistr/u8-strlen.c: Likewise.
58772         * lib/unistr/u8-strmblen.c: Likewise.
58773         * lib/unistr/u8-strmbtouc.c: Likewise.
58774         * lib/unistr/u8-strncat.c: Likewise.
58775         * lib/unistr/u8-strncmp.c: Likewise.
58776         * lib/unistr/u8-strncpy.c: Likewise.
58777         * lib/unistr/u8-strnlen.c: Likewise.
58778         * lib/unistr/u8-strpbrk.c: Likewise.
58779         * lib/unistr/u8-strrchr.c: Likewise.
58780         * lib/unistr/u8-strspn.c: Likewise.
58781         * lib/unistr/u8-strstr.c: Likewise.
58782         * lib/unistr/u8-strtok.c: Likewise.
58783         * lib/unistr/u8-to-u16.c: Likewise.
58784         * lib/unistr/u8-to-u32.c: Likewise.
58785         * lib/unistr/u8-uctomb-aux.c: Likewise.
58786         * lib/unistr/u8-uctomb.c: Likewise.
58787         * lib/unitypes.h: Likewise.
58788         * lib/uniwidth.h: Likewise.
58789         * lib/uniwidth/cjk.h: Likewise.
58790         * lib/uniwidth/u16-strwidth.c: Likewise.
58791         * lib/uniwidth/u16-width.c: Likewise.
58792         * lib/uniwidth/u32-strwidth.c: Likewise.
58793         * lib/uniwidth/u32-width.c: Likewise.
58794         * lib/uniwidth/u8-strwidth.c: Likewise.
58795         * lib/uniwidth/u8-width.c: Likewise.
58796         * lib/uniwidth/width.c: Likewise.
58797
58798 2007-10-07  Bruno Haible  <bruno@clisp.org>
58799
58800         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
58801         The file is still under LGPL (see modules/inttypes).
58802
58803 2007-10-06  Bruno Haible  <bruno@clisp.org>
58804
58805         * modules/trunc (Dependencies): Add 'extensions'.
58806         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
58807         Reported by Ben Pfaff <blp@gnu.org>.
58808
58809 2007-10-06  Bruno Haible  <bruno@clisp.org>
58810
58811         * modules/freopen-tests: New file.
58812         * tests/test-freopen.c: New file.
58813
58814         * modules/fopen-tests: New file.
58815         * tests/test-fopen.c: New file.
58816
58817         * modules/fopen: New file.
58818         * lib/fopen.c: New file.
58819         * m4/fopen.m4: New file.
58820         * modules/freopen: New file.
58821         * lib/freopen.c: New file.
58822         * m4/freopen.m4: New file.
58823         * lib/stdio.in.h (fopen, freopen): New declarations.
58824         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
58825         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
58826         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
58827         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
58828         * doc/functions/fopen.texi: Mention the 'fopen' module.
58829         * doc/functions/freopen.texi: Mention the 'freopen' module.
58830
58831 2007-10-06  Bruno Haible  <bruno@clisp.org>
58832
58833         * modules/open-tests: New file.
58834         * tests/test-open.c: New file.
58835
58836         * modules/open: New file.
58837         * lib/open.c: New file.
58838         * m4/open.m4: New file.
58839         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
58840         lib/open.c does.
58841         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
58842         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
58843         macros.
58844         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
58845         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
58846         REPLACE_OPEN.
58847         * doc/functions/open.texi: Mention the 'open' module.
58848
58849 2007-10-04  Bruno Haible  <bruno@clisp.org>
58850
58851         * modules/ceill-tests: New file.
58852         * tests/test-ceill.c: New file.
58853
58854         * modules/ceill: New file.
58855         * lib/ceill.c: Replace entire file.
58856         * m4/ceill.m4: New file.
58857         * lib/math.in.h (ceill): Replace declaration.
58858         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
58859         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
58860         * doc/functions/ceill.texi: Mention the 'ceill' module.
58861         * modules/mathl (Files): Remove lib/ceill.c.
58862         (Depends-on): Add ceill.
58863
58864 2007-10-04  Bruno Haible  <bruno@clisp.org>
58865
58866         * modules/ceilf-tests: New file.
58867         * tests/test-ceilf.c: New file.
58868
58869         * modules/ceilf: New file.
58870         * lib/ceil.c: New file.
58871         * lib/ceilf.c: New file.
58872         * m4/ceilf.m4: New file.
58873         * lib/math.in.h (ceilf): New declaration.
58874         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
58875         HAVE_DECL_CEILF.
58876         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
58877         HAVE_DECL_CEILF.
58878         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
58879
58880 2007-10-04  Bruno Haible  <bruno@clisp.org>
58881
58882         * modules/floorl-tests: New file.
58883         * tests/test-floorl.c: New file.
58884
58885         * modules/floorl: New file.
58886         * lib/floorl.c: Replace entire file.
58887         * m4/floorl.m4: New file.
58888         * lib/math.in.h (floorl): Replace declaration.
58889         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
58890         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
58891         * doc/functions/floorl.texi: Mention the 'floorl' module.
58892         * modules/mathl (Files): Remove lib/floorl.c.
58893         (Depends-on): Add floorl.
58894
58895 2007-10-04  Bruno Haible  <bruno@clisp.org>
58896
58897         * modules/floorf-tests: New file.
58898         * tests/test-floorf.c: New file.
58899
58900         * modules/floorf: New file.
58901         * lib/floor.c: New file.
58902         * lib/floorf.c: New file.
58903         * m4/floorf.m4: New file.
58904         * lib/math.in.h (floorf): New declaration.
58905         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
58906         HAVE_DECL_FLOORF.
58907         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
58908         HAVE_DECL_FLOORF.
58909         * doc/functions/floorf.texi: Mention the 'floorf' module.
58910
58911 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
58912             Bruno Haible  <bruno@clisp.org>
58913
58914         Advertise for the Git server instead of the CVS server.
58915         * doc/gnulib-intro.texi (Steady Development): Mention the Git
58916         repository instead of the CVS one.
58917         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
58918         about all VCS systems generically.
58919         * doc/gnulib.texi (Introduction): Capitalize `Git'.
58920
58921 2007-10-04  Bruno Haible  <bruno@clisp.org>
58922
58923         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
58924         means.
58925         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
58926
58927 2007-10-04  Bruno Haible  <bruno@clisp.org>
58928
58929         * modules/truncl-tests: New file.
58930         * tests/test-truncl.c: New file.
58931
58932         * modules/truncl: New file.
58933         * lib/truncl.c: New file.
58934         * m4/truncl.m4: New file.
58935         * lib/math.in.h (truncl): New declaration.
58936         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
58937         HAVE_DECL_TRUNCL.
58938         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
58939         HAVE_DECL_TRUNCL.
58940         * doc/functions/truncl.texi: Mention the 'truncl' module.
58941
58942 2007-10-04  Bruno Haible  <bruno@clisp.org>
58943
58944         * modules/truncf-tests: New file.
58945         * tests/test-truncf.c: New file.
58946
58947         * modules/truncf: New file.
58948         * lib/trunc.c: Make paramerizable through USE_* macros.
58949         * lib/truncf.c: New file.
58950         * m4/truncf.m4: New file.
58951         * lib/math.in.h (truncf): New declaration.
58952         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
58953         HAVE_DECL_TRUNCF.
58954         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
58955         HAVE_DECL_TRUNCF.
58956         * doc/functions/truncf.texi: Mention the 'truncf' module.
58957
58958 2007-10-03  Bruno Haible  <bruno@clisp.org>
58959
58960         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
58961         augmentation also for tests modules.
58962         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
58963         * modules/atexit-tests (Makefile.am): Likewise.
58964         * modules/binary-io-tests (Makefile.am): Likewise.
58965         * modules/c-strcase-tests (Makefile.am): Likewise.
58966         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
58967         * modules/canonicalize-tests (Makefile.am): Likewise.
58968         * modules/closein-tests (Makefile.am): Likewise.
58969         * modules/fprintf-posix-tests (Makefile.am): Likewise.
58970         * modules/freadahead-tests (Makefile.am): Likewise.
58971         * modules/fseek-tests (Makefile.am): Likewise.
58972         * modules/fseeko-tests (Makefile.am): Likewise.
58973         * modules/ftell-tests (Makefile.am): Likewise.
58974         * modules/ftello-tests (Makefile.am): Likewise.
58975         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
58976         * modules/isnanl-tests (Makefile.am): Likewise.
58977         * modules/lseek-tests (Makefile.am): Likewise.
58978         * modules/mbscasecmp-tests (Makefile.am): Likewise.
58979         * modules/mbscasestr-tests (Makefile.am): Likewise.
58980         * modules/mbschr-tests (Makefile.am): Likewise.
58981         * modules/mbscspn-tests (Makefile.am): Likewise.
58982         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
58983         * modules/mbspbrk-tests (Makefile.am): Likewise.
58984         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
58985         * modules/mbsrchr-tests (Makefile.am): Likewise.
58986         * modules/mbsspn-tests (Makefile.am): Likewise.
58987         * modules/mbsstr-tests (Makefile.am): Likewise.
58988         * modules/printf-posix-tests (Makefile.am): Likewise.
58989         * modules/snprintf-posix-tests (Makefile.am): Likewise.
58990         * modules/sprintf-posix-tests (Makefile.am): Likewise.
58991         * modules/tsearch-tests (Makefile.am): Likewise.
58992         * modules/uniname/uniname-tests (Makefile.am): Likewise.
58993         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
58994         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
58995         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
58996         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
58997         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
58998         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
58999         * modules/vprintf-posix-tests (Makefile.am): Likewise.
59000         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
59001         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
59002         * modules/xstrtoimax-tests (Makefile.am): Likewise.
59003         * modules/xstrtol-tests (Makefile.am): Likewise.
59004         * modules/xstrtoumax-tests (Makefile.am): Likewise.
59005         * modules/yesno-tests (Makefile.am): Likewise.
59006
59007 2007-10-03  Bruno Haible  <bruno@clisp.org>
59008
59009         * modules/trunc-tests: New file.
59010         * tests/test-trunc.c: New file.
59011
59012         * modules/trunc: New file.
59013         * lib/trunc.c: New file.
59014         * m4/trunc.m4: New file.
59015         * lib/math.in.h (trunc): New declaration.
59016         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
59017         HAVE_DECL_TRUNC.
59018         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
59019         HAVE_DECL_TRUNC.
59020         * doc/functions/trunc.texi: Mention the 'trunc' module.
59021
59022 2007-10-03  Bruno Haible  <bruno@clisp.org>
59023
59024         * tests/test-fpending.c: New file, mostly copied
59025         from coreutils/lib/t-fpending.c.
59026         * modules/fpending-tests: New file.
59027
59028 2007-10-03  Bruno Haible  <bruno@clisp.org>
59029
59030         Port the stdio extensions to QNX (untested).
59031         * lib/fseterr.c (fseterr): Add support for QNX.
59032         * lib/fbufmode.c (fbufmode): Likewise.
59033         * lib/freadable.c (freadable): Likewise.
59034         * lib/fwritable.c (fwritable): Likewise.
59035         * lib/freading.c (freading): Likewise.
59036         * lib/fwriting.c (fwriting): Likewise.
59037         * lib/freadahead.c (freadahed): Likewise.
59038         * lib/fpurge.c (fpurge): Likewise.
59039         * lib/fseeko.c (rpl_fseeko): Likewise.
59040
59041 2007-10-03  Bruno Haible  <bruno@clisp.org>
59042             Jim Meyering  <jim@meyering.net>
59043             Eric Blake  <ebb9@byu.net>
59044
59045         * doc/relocatable.texi: Use @command instead of @program.
59046
59047 2007-10-02  Jim Meyering  <jim@meyering.net>
59048
59049         Perform one more "_.h" -> ".in.h" substitution.
59050         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
59051         instead of unistd_.h here, too.
59052
59053 2007-10-01  Bruno Haible  <bruno@clisp.org>
59054
59055         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
59056         Needed for the alloca-opt module.
59057
59058 2007-09-30  Bruno Haible  <bruno@clisp.org>
59059
59060         * lib/alloca.in.h: Renamed from lib/alloca_.h.
59061         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
59062         alloca_.h.
59063         * lib/argz.in.h: Renamed from lib/argz_.h.
59064         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
59065         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
59066         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
59067         byteswap_.h.
59068         * lib/dirent.in.h: Renamed from lib/dirent_.h.
59069         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
59070         dirent_.h.
59071         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
59072         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
59073         fcntl_.h.
59074         * lib/float.in.h: Renamed from lib/float_.h.
59075         * modules/float (Files, Makefile.am): Use float.in.h instead of
59076         float_.h.
59077         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
59078         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
59079         fnmatch_.h.
59080         * lib/getopt.in.h: Renamed from lib/getopt_.h.
59081         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
59082         getopt_.h.
59083         * lib/glob.in.h: Renamed from lib/glob_.h.
59084         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
59085         * lib/iconv.in.h: Renamed from lib/iconv_.h.
59086         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
59087         iconv_.h.
59088         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
59089         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
59090         inttypes_.h.
59091         * lib/locale.in.h: Renamed from lib/locale_.h.
59092         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
59093         locale_.h.
59094         * lib/math.in.h: Renamed from lib/math_.h.
59095         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
59096         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
59097         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
59098         of netinet_in_.h. Add dependency.
59099         * lib/poll.in.h: Renamed from lib/poll_.h.
59100         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
59101         * lib/search.in.h: Renamed from lib/search_.h.
59102         * modules/search (Files, Makefile.am): Use search.in.h instead of
59103         search_.h.
59104         * lib/signal.in.h: Renamed from lib/signal_.h.
59105         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
59106         _signal.h.
59107         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
59108         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
59109         stdbool_.h.
59110         * lib/stdint.in.h: Renamed from lib/stdint_.h.
59111         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
59112         stdint_.h.
59113         * lib/stdio.in.h: Renamed from lib/stdio_.h.
59114         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
59115         stdio_.h.
59116         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
59117         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
59118         stdlib_.h.
59119         * lib/string.in.h: Renamed from lib/string_.h.
59120         * modules/string (Files, Makefile.am): Use string.in.h instead of
59121         string_.h.
59122         * doc/gnulib-tool.texi (Initial import): Update.
59123         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
59124         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
59125         of sys_select_.h. Add dependency.
59126         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
59127         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
59128         of sys_socket_.h.
59129         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
59130         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
59131         sys_stat_.h.
59132         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
59133         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
59134         sys_time_.h.
59135         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
59136         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
59137         sysexits_.h.
59138         * lib/time.in.h: Renamed from lib/time_.h.
59139         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
59140         * lib/unistd.in.h: Renamed from lib/unistd_.h.
59141         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
59142         unistd_.h.
59143         * lib/wchar.in.h: Renamed from lib/wchar_.h.
59144         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
59145         wchar_.h.
59146         * lib/wctype.in.h: Renamed from lib/wctype_.h.
59147         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
59148         wctype_.h.
59149         * build-aux/bootstrap (slurp): Update.
59150         * lib/.cppi-disable: Update.
59151
59152 2007-09-30  Bruno Haible  <bruno@clisp.org>
59153
59154         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
59155         Needed on BeOS.
59156
59157 2007-09-30  Bruno Haible  <bruno@clisp.org>
59158
59159         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
59160
59161 2007-09-29  Bruno Haible  <bruno@clisp.org>
59162
59163         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
59164
59165 2007-09-29  Bruno Haible  <bruno@clisp.org>
59166
59167         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
59168         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
59169         * build-aux/install-reloc: Compile also areadlink.c.
59170         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
59171
59172 2007-09-29  Bruno Haible  <bruno@clisp.org>
59173
59174         * gnulib-tool (func_emit_initmacro_done): Indentation.
59175
59176 2007-09-29  Bruno Haible  <bruno@clisp.org>
59177
59178         * README: Add CVS checkout update instructions.
59179         Info from Bob Proulx <bob@proulx.com>.
59180
59181 2007-09-28  Eric Blake  <ebb9@byu.net>
59182
59183         Provide move-if-change.
59184         * build-aux/move-if-change: New file, based on best practice
59185         rather than any canonical upstream location.
59186
59187 2007-09-28  Jim Meyering  <jim@meyering.net>
59188
59189         Fix canonicalize loop-detection corner case.
59190         Do not attempt to stat the symlink values stored via seen_triple.
59191         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
59192         on linux-2.6.18, (but not 2.6.22).
59193         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
59194         triple_compare.  The former compares dev,ino,filename, while the latter
59195         would actually stat dirname(filename) when dev and ino were equal.
59196         * lib/hash-triple.c: Install <string.h>.
59197         (STREQ): Define.
59198         (triple_compare_ino_str): New function.
59199         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
59200
59201 2007-09-28  Eric Blake  <ebb9@byu.net>
59202
59203         Enforce that AC_REPLACE_FUNCS files exist.
59204         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
59205         override check for typos.
59206
59207         Fix test-closein on Solaris 10.
59208         * tests/test-closein.c (main): Don't assume stdin can be inherited
59209         closed on all systems.
59210         * tests/test-closein.sh: Likewise.
59211         Reported by Piotr Tarnowski.
59212
59213 2007-09-28  Jim Meyering  <jim@meyering.net>
59214
59215         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
59216
59217 2007-09-27  Jim Meyering  <jim@meyering.net>
59218
59219         canonicalize: Avoid a false-positive cycle failure.
59220         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
59221         Sort.  Remove cycle-check.
59222         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
59223         not cycle-check.h.
59224         (seen_triple): New function.
59225         (canonicalize_filename_mode): Use it instead of cycle-check.
59226         * tests/test-canonicalize.c: Add a test for this bug.
59227         * tests/test-canonicalize.sh: Set up and run the test.
59228
59229         New module, file-set, from coreutils.
59230         * modules/file-set: Define it.
59231         * lib/file-set.c, lib/file-set.h: Implement.
59232
59233         New module, hash-triple, from coreutils.
59234         * modules/hash-triple: Define it.
59235         * lib/hash-triple.c, lib/hash-triple.h: Implement.
59236
59237 2007-09-25  Eric Blake  <ebb9@byu.net>
59238
59239         Fix strerror on Interix.
59240         * lib/string_.h (strerror): Declare replacement.
59241         * doc/functions/strerror.texi (strerror): Document the Interix
59242         shortcoming.
59243         * modules/string (Makefile.am): Support new hooks.
59244         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
59245         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
59246         gl_FUNC_STRERROR_SEPARATE.
59247         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
59248         * lib/strerror.c (rpl_strerror): Provide replacement.
59249         * modules/strerror (Depends-on): Add string.
59250         (configure.ac): Detect use of module.
59251         * tests/test-strerror.c: New file.
59252         * modules/strerror-tests: New test module.
59253         * modules/argp (Depends-on): Add strerror.
59254         * modules/error (Depends-on): Likewise.
59255         Reported by Martin Koeppe.
59256
59257 2007-09-24  Bruno Haible  <bruno@clisp.org>
59258
59259         * README: Update git instructions.
59260
59261 2007-09-24  Eric Blake  <ebb9@byu.net>
59262
59263         Revert fpending breakage from 2007-09-08.
59264         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
59265         __fpending.c.
59266
59267 2007-09-24  Jim Meyering  <jim@meyering.net>
59268
59269         filenamecat.c: Add a test.
59270         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
59271         showing how the function works when DIR is the empty string.
59272
59273 2007-09-21  Simon Josefsson  <simon@josefsson.org>
59274
59275         * tests/test-canonicalize.sh: Turn on executable bit.
59276
59277 2007-09-19  Eric Blake  <ebb9@byu.net>
59278
59279         * README: Update CVS instructions.
59280
59281 2007-09-18  Bruno Haible  <bruno@clisp.org>
59282
59283         * modules/areadlink: New file.
59284         * lib/areadlink.h (areadlink): New declaration.
59285         * lib/areadlink.c: New file, based on lib/xreadlink.c.
59286
59287 2007-09-17  Jim Meyering  <jim@meyering.net>
59288
59289         * lib/savewd.c (ESTALE) [!defined]: Define.
59290         Reported to be required on Interix by Martin Koeppe.
59291
59292 2007-09-17  Bruno Haible  <bruno@clisp.org>
59293
59294         * gnulib-tool (func_version): Use $version.
59295
59296 2007-09-16  Bruno Haible  <bruno@clisp.org>
59297
59298         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
59299         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
59300         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
59301         Reported by Greg Schafer <gschafer@zip.com.au>.
59302
59303 2007-09-15  Bruno Haible  <bruno@clisp.org>
59304
59305         * gnulib-tool (sed): Try a little harder to make bash understand the
59306         alias.
59307         Reported by Bruce Korb <bruce.korb@gmail.com>.
59308
59309 2007-09-13  Eric Blake  <ebb9@byu.net>
59310
59311         * ChangeLog: Remove conflict markers.
59312
59313 2007-09-13  Simon Josefsson  <simon@josefsson.org>
59314
59315         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
59316         Reported by Bruno Haible <bruno@clisp.org>.
59317
59318 2007-09-12  Bruno Haible  <bruno@clisp.org>
59319
59320         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
59321         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
59322         is not defined.
59323
59324 2007-09-12  Eric Blake  <ebb9@byu.net>
59325
59326         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
59327         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
59328         Autoconf definition.
59329         * modules/euidaccess (Depends-on): Add extensions, for
59330         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
59331         * modules/fnmatch (Depends-on): Likewise.
59332         * modules/getaddrinfo (Depends-on): Likewise.
59333         * modules/getdelim (Depends-on): Likewise.
59334         * modules/getline (Depends-on): Likewise.
59335         * modules/getsubopt (Depends-on): Likewise.
59336         * modules/gettext (Depends-on): Likewise.
59337         * modules/group-member (Depends-on): Likewise.
59338         * modules/mbchar (Depends-on): Likewise.
59339         * modules/memmem (Depends-on): Likewise.
59340         * modules/mempcpy (Depends-on): Likewise.
59341         * modules/memrchr (Depends-on): Likewise.
59342         * modules/pagealign_alloc (Depends-on): Likewise.
59343         * modules/readutmp (Depends-on): Likewise.
59344         * modules/stpcpy (Depends-on): Likewise.
59345         * modules/stpncpy (Depends-on): Likewise.
59346         * modules/strchrnul (Depends-on): Likewise.
59347         * modules/strndup (Depends-on): Likewise.
59348         * modules/strsep (Depends-on): Likewise.
59349         * modules/strverscmp (Depends-on): Likewise.
59350         * modules/vasprintf (Depends-on): Likewise.
59351         * modules/wcwidth (Depends-on): Likewise.
59352         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
59353         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
59354         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
59355         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
59356         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59357         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59358         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
59359         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59360         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
59361         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
59362         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59363         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
59364         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
59365         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
59366         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
59367         * m4/readutmp.m4 (gl_READUTMP): Likewise.
59368         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59369         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
59370         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59371         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
59372         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59373         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
59374         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
59375         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
59376         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
59377         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59378         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
59379         so that lock.m4 can be used in gettext without extensions module.
59380
59381 2007-09-11  Bruno Haible  <bruno@clisp.org>
59382
59383         * m4/isc-posix.m4: Remove file.
59384         Suggested by Eric Blake.
59385
59386 2007-09-11  Eric Blake  <ebb9@byu.net>
59387
59388         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
59389
59390 2007-09-10  Bruno Haible  <bruno@clisp.org>
59391
59392         * posix-modules: Fix typo in error message.
59393         Reported by Matt <mkraai@beckman.com>.
59394
59395 2007-09-09  Bruno Haible  <bruno@clisp.org>
59396
59397         * doc/functions/getdelim.texi: Update list of platforms lacking the
59398         function.
59399         * doc/functions/getline.texi: Likewise.
59400
59401 2007-09-09  Jim Meyering  <jim@meyering.net>
59402
59403         * lib/hash.c (hash_initialize): Detect calloc failure.
59404         Reported by Bruno Haible.
59405
59406 2007-09-09  Bruno Haible  <bruno@clisp.org>
59407
59408         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
59409         malloc or realloc fails.
59410
59411 2007-09-09  Bruno Haible  <bruno@clisp.org>
59412
59413         * modules/getcwd (Depends-on): Add malloc-posix.
59414         * modules/glob (Depends-on): Likewise.
59415         * modules/putenv (Depends-on): Likewise.
59416         * modules/strdup (Depends-on): Likewise.
59417         * modules/getdelim (Depends-on): Add realloc-posix.
59418         * modules/read-file (Depends-on): Likewise.
59419
59420 2007-09-09  Bruno Haible  <bruno@clisp.org>
59421
59422         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
59423         (gl_FUNC_MALLOC_POSIX): Require it.
59424         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
59425         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
59426         * modules/realloc (Files): Add m4/malloc.m4.
59427         * modules/calloc (Files): Likewise.
59428
59429 2007-09-09  Bruno Haible  <bruno@clisp.org>
59430
59431         * modules/malloc-posix: New file.
59432         * modules/malloc (Depends-on): Add malloc-posix.
59433         * lib/malloc.c: Include errno.h.
59434         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
59435         and a POSIX-compatible malloc into a single function. Set ENOMEM
59436         when returning NULL.
59437         * m4/malloc.m4: New file.
59438         * doc/functions/malloc.texi: Mention the malloc-posix module.
59439         * lib/stdlib_.h (malloc): New declaration.
59440         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59441         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
59442         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
59443         and HAVE_MALLOC_POSIX.
59444
59445 2007-09-09  Bruno Haible  <bruno@clisp.org>
59446
59447         * modules/realloc-posix: New file.
59448         * modules/realloc (Depends-on): Add realloc-posix.
59449         * lib/realloc.c: Include errno.h.
59450         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
59451         and a POSIX-compatible realloc into a single function. Set ENOMEM
59452         when returning NULL.
59453         * m4/realloc.m4: New file.
59454         * doc/functions/realloc.texi: Mention the realloc-posix module.
59455         * lib/stdlib_.h (realloc): New declaration.
59456         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59457         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
59458         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
59459         and HAVE_REALLOC_POSIX.
59460
59461 2007-09-09  Bruno Haible  <bruno@clisp.org>
59462
59463         * modules/calloc-posix: New file.
59464         * modules/calloc (Depends-on): Add calloc-posix.
59465         * lib/calloc.c: Include errno.h.
59466         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
59467         and a POSIX-compatible calloc into a single function. Set ENOMEM
59468         when returning NULL.
59469         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
59470         * doc/functions/calloc.texi: Mention the calloc-posix module.
59471         * lib/stdlib_.h (calloc): New declaration.
59472         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59473         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
59474         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
59475         and HAVE_CALLOC_POSIX.
59476
59477 2007-09-09  Bruno Haible  <bruno@clisp.org>
59478
59479         Allow for modules to show an arbitrary notice.
59480         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
59481         * gnulib-tool: New option --extract-notice.
59482         (func_usage): Document it.
59483         (sed_extract_prog): Update.
59484         (func_get_notice): New function.
59485         (func_modules_notice): New function.
59486         (func_import, func_create_testdir): Invoke it.
59487         Suggested by Jim Meyering.
59488
59489 2007-09-09  Bruno Haible  <bruno@clisp.org>
59490
59491         * gnulib-tool: New options --verbose, --quiet.
59492         (func_usage): Document them.
59493         (verbose): New variable.
59494         (func_execute_command): New function.
59495         (func_import): Don't show the module list and the file list if
59496         $verbose < 0.
59497         (func_create_testdir): Likewise. Use func_execute_command.
59498         (func_create_megatestdir): Use func_execute_command.
59499
59500 2007-09-08  Bruno Haible  <bruno@clisp.org>
59501
59502         * gnulib-tool (func_import): Prefer rsync over wget when available,
59503         for fetching the PO files.
59504
59505 2007-09-08  Bruno Haible  <bruno@clisp.org>
59506
59507         * posix-modules: New file. Portions copied from gnulib-tool.
59508         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
59509
59510 2007-09-08  Jim Meyering  <jim@meyering.net>
59511
59512         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
59513         * lib/fpending.h: Rename from __fpending.h.
59514         * lib/fpending.c: Rename from __fpending.c.
59515         Include "fpending.h", not "__fpending.h".
59516         * lib/__fpending.h, lib/__fpending.c: Remove files.
59517         * modules/fpending (Files): Reflect new file names.
59518         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
59519
59520 2007-09-08  Bruno Haible  <bruno@clisp.org>
59521
59522         * m4/inttypes-h.m4: Remove stub file.
59523
59524 2007-09-07  Simon Josefsson  <simon@josefsson.org>
59525
59526         * doc/headers/stdint.texi: Discuss #include_next issue.
59527
59528 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59529
59530         * build-aux/bootstrap: Remove obsolete comment about wget --help.
59531
59532 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59533
59534         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
59535         in variable name.
59536
59537 2007-09-03  Jim Meyering  <jim@meyering.net>
59538
59539         New module: git-version-gen.
59540         * modules/git-version-gen: New file.
59541
59542         Import changes from coreutils for bootstrap script.
59543
59544         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
59545
59546         bootstrap: uses rsync to download the .po files
59547         * build-aux/bootstrap (po_download_command_format): New global.
59548         (download_po_files): Use rsync.
59549         (update_po_files): Don't remove .po files after download,
59550         so future rsync runs can take advantage of the copies.
59551
59552         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
59553
59554         Solve the unnecessary-.po-file-regeneration problem once and for all.
59555         * build-aux/bootstrap (download_po_files): New function, renamed from
59556         get_translations.  Now, downloads, but doesn't update LINGUAS.
59557         (update_po_files): New function.
59558
59559         bootstrap: Ignore more.
59560         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
59561         uniwidth to e.g., lib/.gitignore.
59562         (slurp): Handle the sys_stat_.h -> sys mapping, too.
59563
59564         * build-aux/bootstrap: New setting: vc_ignore.
59565         (insert_sorted_if_absent): Create $file if absent.
59566         Adapt to new, possibly empty, list: $vc_ignore.
59567
59568         bootstrap: generate more ignorable names
59569         * build-aux/bootstrap (slurp): When generating ignorable names,
59570         also map .sin to .sed, .gperf to .c, and .y to .c.
59571
59572 2007-09-03  Jim Meyering  <jim@meyering.net>
59573
59574         * build-aux/git-version-gen: New file, from coreutils.  For details, see
59575         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
59576
59577 2007-09-02  Bruno Haible  <bruno@clisp.org>
59578
59579         Fix mis-recognition of 'mcs' on QNX 6.
59580         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
59581         output contains the string "Mono".
59582         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
59583         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
59584
59585 2007-09-01  Bruno Haible  <bruno@clisp.org>
59586
59587         Fix collision between uniwidth/* and linebreak modules.
59588         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
59589         u32_width): Remove declarations.
59590         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
59591         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
59592         streq3, streq2, streq1, streq0): Remove functions.
59593         (STREQ): Remove macro.
59594         (is_cjk_encoding): Remove function.
59595         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
59596         (uc_width, u8_width, u16_width, u32_width): Remove functions.
59597         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
59598         * NEWS: Document the change.
59599
59600 2007-09-01  Bruno Haible  <bruno@clisp.org>
59601
59602         * lib/streq.h: Add double-inclusion guard.
59603
59604 2007-09-01  Karl Berry  <karl@gnu.org>
59605
59606         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
59607
59608 2007-08-28  Jim Meyering  <jim@meyering.net>
59609
59610         Rename mreadlink_with_size to areadlink_with_size.
59611         * NEWS: Document the change.
59612         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
59613         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
59614         * lib/mreadlink.h: Rename this to...
59615         * lib/areadlink.h: ...this.
59616         * modules/mreadlink-with-size: Rename this to...
59617         * modules/areadlink-with-size: ...this.
59618         * lib/canonicalize.c: Reflect the renaming.
59619         * modules/canonicalize: Likewise.
59620
59621 2007-08-26  Bruno Haible  <bruno@clisp.org>
59622
59623         * gnulib-tool (func_import): When deciding which files to remove,
59624         consider also dangling symbolic links.
59625         Reported by Eric Blake.
59626
59627 2007-08-26  Bruno Haible  <bruno@clisp.org>
59628
59629         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
59630
59631 2007-08-23  Simon Josefsson  <simon@josefsson.org>
59632
59633         * lib/readline.c: Don't include getline.h, the prototype is now
59634         found in stdio.h.
59635
59636 2007-08-23  Jim Meyering  <jim@meyering.net>
59637
59638         Getdelim touchup.
59639         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
59640         around the funlockfile call, since funlockfile never sets errno.
59641         Don't set errno upon failed realloc.
59642
59643 2007-08-22  Eric Blake  <ebb9@byu.net>
59644
59645         Getline touchups.
59646         * lib/getdelim.c (getdelim): Revert regression that required *n to
59647         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
59648         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
59649         getdelim, rather than whether implementation is missing.
59650         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
59651         * lib/stdio_.h (getline): Also declare if replacement is
59652         required.
59653         * doc/functions/getdelim.texi: New file.
59654         * doc/functions/getline.texi: Likewise.
59655         * doc/gnulib.texi (Function Substitutes): Add new files.
59656         Reported by Bruno Haible.
59657
59658 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
59659
59660         * users.txt: Add Guile.
59661
59662 2007-08-22  Eric Blake  <ebb9@byu.net>
59663
59664         * tests/test-getdelim.c (main): Use remove, not unlink.
59665         * tests/test-getline.c (main): Likewise.
59666
59667         Move getline and getdelim into stdio.h, per POSIX 200x.
59668         * modules/getline (Files): Remove getline.h.
59669         (Depends-on): Add stdio.
59670         (configure.ac): Add module indicator.
59671         * modules/getdelim (Files): Remove getdelim.h.
59672         (Depends-on): Add stdio.
59673         (configure.ac): Add module indicator.
59674         * modules/stdio (Makefile.am): Work with new indicators.
59675         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
59676         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
59677         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59678         * lib/getdelim.h: Delete.
59679         * lib/getline.h: Delete.
59680         * lib/stdio_.h (getdelim, getline): Declare.
59681         * modules/getdelim-tests: New module.
59682         * modules/getline-tests: Likewise.
59683         * tests/test-getdelim.c: New file.
59684         * tests/test-getline.c: Likewise.
59685         * NEWS: Document the change.
59686         * lib/getline.c: Update choice of header.
59687         * lib/csharpcomp.c: Likewise.
59688         * lib/getpass.c: Likewise.
59689         * lib/javacomp.c: Likewise.
59690         * lib/javaversion.c: Likewise.
59691         * lib/yesno.c: Likewise.
59692         * lib/getdelim.c: Likewise.
59693         (getdelim): Set errno on failure, and avoid memory leak.
59694
59695 2007-08-19  Bruno Haible  <bruno@clisp.org>
59696
59697         * modules/closein (Depends-on): Add freadahead.
59698         * lib/closein.c: Include freadahead.h.
59699         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
59700         is zero.
59701
59702 2007-08-19  Bruno Haible  <bruno@clisp.org>
59703
59704         * modules/freadahead-tests: New file.
59705         * tests/test-freadahead.sh: New file.
59706         * tests/test-freadahead.c: New file.
59707
59708         * modules/freadahead: New file.
59709         * lib/freadahead.h: New file.
59710         * lib/freadahead.c: New file.
59711         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
59712         fbufmode, fpurge, freadable, fwritable.
59713
59714 2007-08-19  Eric Blake  <ebb9@byu.net>
59715
59716         Test yesno in combination with closein.
59717         * lib/yesno.c (yesno): Document use of stdin.
59718         * modules/yesno-tests (Files): New module.
59719         * tests/test-yesno.c (main): New file.
59720         * tests/test-yesno.sh: Likewise.
59721
59722 2007-08-19  Bruno Haible  <bruno@clisp.org>
59723
59724         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
59725         * lib/fseeko.c (rpl_fseeko): Likewise.
59726         * lib/fseterr.c (fseterr): Likewise.
59727
59728 2007-08-19  Bruno Haible  <bruno@clisp.org>
59729
59730         * tests/test-lseek.c (main): Disable a test for BeOS.
59731         * doc/functions/lseek.texi: Document the BeOS bug.
59732
59733 2007-08-19  Bruno Haible  <bruno@clisp.org>
59734             Eric Blake  <ebb9@byu.net>
59735
59736         * lib/lseek.c: Include <sys/stat.h>.
59737         (rpl_lseek): Add workaround code also for Unix platforms.
59738         Needed for BeOS.
59739         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
59740         * doc/functions/lseek.texi: Document BeOS definiency.
59741
59742 2007-08-18  Bruno Haible  <bruno@clisp.org>
59743
59744         * modules/fstrcmp-tests: New file.
59745         * tests/test-fstrcmp.c: New file.
59746
59747 2007-08-18  Bruno Haible  <bruno@clisp.org>
59748
59749         * modules/fstrcmp: New file, from GNU gettext with modifications.
59750         * lib/fstrcmp.h: New file, from GNU gettext.
59751         * lib/fstrcmp.c: New file, from GNU gettext.
59752         * MODULES.html.sh (String handling): Add fstrcmp.
59753
59754 2007-08-18  Bruno Haible  <bruno@clisp.org>
59755
59756         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
59757         'bool'.
59758         (diag, compareseq): Remove const from the ctxt argument.
59759         (USE_HEURISTIC): Undefine at the end.
59760
59761 2007-08-18  Jim Meyering  <jim@meyering.net>
59762
59763         New file: lib/idcache.h
59764         * NEWS: Mention the addition.
59765         * modules/idcache (Files): Add lib/idcache.h
59766         * lib/idcache.c: Include "idcache.h".
59767         Don't include <sys/types.h>.
59768         Add a FIXME comment.
59769         Move file-scoped "static" declarations to the top.
59770         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
59771
59772 2007-08-17  Bruno Haible  <bruno@clisp.org>
59773         and Paul Eggert  <eggert@cs.ucla.edu>
59774
59775         * MODULES.html.sh: Add diffseq.
59776         * modules/diffseq: New file.
59777         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
59778         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
59779
59780 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59781
59782         Import changes from coreutils for bootstrap script.
59783
59784         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
59785
59786         * build-aux/bootstrap (slurp): Work even in environments where
59787         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
59788         current code does not slurp files whose names start with ".", and
59789         this looks like it might be a troublesome area.
59790
59791         2007-07-11  Jim Meyering  <jim@meyering.net>
59792
59793         If there's a GPL vN copyright comment, require that N == 3.
59794
59795         2007-07-08  Jim Meyering  <jim@meyering.net>
59796
59797         Run the coreutils-specific code only if tests/Makefile.am.in exists.
59798         * build-aux/bootstrap (mam_template): Move definition out of loop.
59799
59800         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
59801
59802         * build-aux/bootstrap (symlink_to_dir): Rename function from
59803         symlink_to_gnulib.  Add a directory parameter.  Update all
59804         callers.
59805         (cp_mark_as_generated): Also check for -- and link to -- files in
59806         gl/.
59807
59808         2007-07-08  Jim Meyering  <jim@meyering.net>
59809
59810         Adapt to deeper hierarchy in gnulib.
59811         * build-aux/bootstrap (symlink_to_dir): If the destination
59812         directory doesn't exist, create it. This is required at least for
59813         "lib/uniwidth/cjk.h".
59814
59815         2007-05-15  Jim Meyering  <jim@meyering.net>
59816
59817         * build-aux/bootstrap: Now that generated Makefile.am files
59818         are no longer under version control, they must be created at
59819         bootstrap time.
59820
59821 2007-08-14  Ben Pfaff  <blp@gnu.org>
59822
59823         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
59824
59825 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59826
59827         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
59828         given the changes below.
59829         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
59830         even on hosts that have padding bits beyond the supported 64.
59831
59832 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59833
59834         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
59835         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
59836         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
59837         depends on it.
59838         (xstrtol_error): Remove.
59839         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
59840         but with a different signature.
59841         (ATTRIBUTE_NORETURN, __attribute__): New macros.
59842         * lib/xstrtol-error.c: Include exitfail.h.
59843         (xstrtol_fatal): New function, with a different signature from the
59844         old xstrtol_error, so that the caller need not worry about passing
59845         in an exit status, or about storage management of the option argument.
59846         (xstrtol_error): Now a static function.  Redo signature to
59847         implement xstrtol_fatal.  Output the correct number of hyphens in
59848         front of the option so that the caller need not worry about
59849         storage management.
59850         (N_): New macro.
59851         (_): Remove; not used now.
59852         * modules/xstrtol: Depend on getopt.
59853         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
59854         of old STRTOL_FATAL_ERROR macro.
59855         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
59856         of test program.
59857         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
59858         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
59859
59860 2007-08-08  Eric Blake  <ebb9@byu.net>
59861
59862         * lib/xstrtol-error.c: Add missing include.
59863
59864         Move xstrtol messages into gnulib domain, when --pobase is used.
59865         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
59866         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
59867         * modules/xstrtol (Files): Distribute new file.
59868         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
59869         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
59870         * tests/test-xstrtol.c: ...into new file.
59871         * tests/test-xstrtoul.c: Also test xstrtoul.
59872         * tests/test-xstrtoimax.c: Also test xstrtoimax.
59873         * tests/test-xstrtoumax.c: Also test xstrtoumax.
59874         * tests/test-xstrtol.sh: Drive the tests.
59875         * tests/test-xstrtoimax.sh: Likewise.
59876         * tests/test-xstrtoumax.sh: Likewise.
59877         * modules/xstrtol-tests: New module.
59878         * modules/xstrtoimax-tests: Likewise.
59879         * modules/xstrtoumax-tests: Likewise.
59880
59881 2007-08-08  Jim Meyering  <jim@meyering.net>
59882
59883         New function: mfile_name_concat.
59884         * lib/filenamecat.c (mfile_name_concat): New function, just like
59885         file_name_concat, but return NULL upon failure rather than exiting
59886         with a diagnostic.
59887         * lib/filenamecat.h: Declare it.
59888
59889 2007-08-07  Bruno Haible  <bruno@clisp.org>
59890
59891         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
59892         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
59893         warning from gcc.
59894         Reported by Eric Blake.
59895
59896 2007-08-07  Simon Josefsson  <simon@josefsson.org>
59897
59898         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
59899         * modules/crypto/arcfour (License): Likewise.
59900         * modules/crypto/des-tests (License): Likewise.
59901         * modules/crypto/gc-arctwo-tests (License): Likewise.
59902         * modules/crypto/gc-des-tests (License): Likewise.
59903         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
59904         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
59905         * modules/crypto/gc-md2-tests (License): Likewise.
59906         * modules/crypto/gc-md4-tests (License): Likewise.
59907         * modules/crypto/gc-md5-tests (License): Likewise.
59908         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
59909         * modules/crypto/gc-rijndael-tests (License): Likewise.
59910         * modules/crypto/gc-sha1-tests (License): Likewise.
59911         * modules/crypto/gc-tests (License): Likewise.
59912         * modules/crypto/hmac-md5 (License): Likewise.
59913         * modules/crypto/hmac-sha1 (License): Likewise.
59914         * modules/crypto/md2-tests (License): Likewise.
59915         * modules/crypto/md4-tests (License): Likewise.
59916         * modules/crypto/md5 (License): Likewise.
59917         * modules/crypto/rijndael (License): Likewise.
59918         * modules/crypto/sha1 (License): Likewise.
59919         * modules/memxor (License): Likewise.
59920
59921 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59922         and Bruno Haible  <bruno@clisp.org>
59923
59924         * NEWS: Describe interface changes to human, xstrtol.
59925         * lib/human.h: Include <xstrtol.h>.
59926         (human_options): Return enum strtol_error, not int.  Remove
59927         bool arg; take int * instead.
59928         * lib/human.c: Don't include "gettext.h".
59929         (_): Remove; no longer used.
59930         Don't include <xstrtol.h>, since human.h does it.
59931         (human_options): Adjust to abovementioned interface changes.
59932         Do not report error to stderr; that's now the caller's
59933         responsibility.
59934         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
59935         interface change.
59936         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
59937         Str, Argument_type_string.  All uses changed.  Put " argument"
59938         in diagnostics to make them clearer.  Change wording of suffix
59939         message for clarity.
59940         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
59941         Argument_type_string.
59942         (STRTOL_FATAL_WARN): Remove; no longer used.
59943         * modules/human (Depends-on): Remove gettext-h.
59944
59945 2007-08-06  Simon Josefsson  <simon@josefsson.org>
59946
59947         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
59948
59949 2007-07-31  Bruno Haible  <bruno@clisp.org>
59950
59951         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
59952         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
59953         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
59954
59955 2007-07-31  Bruno Haible  <bruno@clisp.org>
59956
59957         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
59958         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
59959
59960 2007-07-30  Bruno Haible  <bruno@clisp.org>
59961
59962         * modules/base64 (License): Use the synonymous term "LGPLv2+".
59963         * modules/c-ctype (License): Likewise.
59964         * modules/c-strcase (License): Likewise.
59965         * modules/check-version (License): Likewise.
59966         * modules/iconv (License): Likewise.
59967         * modules/iconv_open (License): Likewise.
59968         * modules/read-file (License): Likewise.
59969         * modules/striconv (License): Likewise.
59970         * modules/strverscmp (License): Likewise.
59971         * modules/vasprintf (License): Likewise.
59972         * modules/crypto/des (License): Likewise.
59973         * modules/crypto/gc (License): Likewise.
59974         * modules/crypto/gc-arcfour (License): Likewise.
59975         * modules/crypto/gc-arctwo (License): Likewise.
59976         * modules/crypto/gc-des (License): Likewise.
59977         * modules/crypto/gc-hmac-md5 (License): Likewise.
59978         * modules/crypto/gc-hmac-sha1 (License): Likewise.
59979         * modules/crypto/gc-md2 (License): Likewise.
59980         * modules/crypto/gc-md4 (License): Likewise.
59981         * modules/crypto/gc-md5 (License): Likewise.
59982         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
59983         * modules/crypto/gc-random (License): Likewise.
59984         * modules/crypto/gc-rijndael (License): Likewise.
59985         * modules/crypto/gc-sha1 (License): Likewise.
59986         * modules/crypto/md2 (License): Likewise.
59987         * modules/crypto/md4 (License): Likewise.
59988
59989 2007-07-30  Jim Meyering  <jim@meyering.net>
59990
59991         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
59992         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
59993         it has valid stat data.  This bug would cause du not to count the
59994         sizes of inaccessible directories.
59995         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
59996         in <http://bugzilla.redhat.com/250077>.
59997
59998 2007-07-25  Peter O'Gorman  <peter@pogma.com>
59999             Bruno Haible  <bruno@clisp.org>
60000
60001         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
60002         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
60003         #include_next, gives a diagnostic about it, but reports no error in
60004         the exit code.
60005         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
60006
60007 2007-07-24  Ben Pfaff  <blp@gnu.org>
60008
60009         Improve name: "count-one-bits" is better than "popcount".
60010         * MODULES.html.sh: Update name.
60011         * lib/popcount.h: Renamed lib/count-one-bits.h.
60012         (popcount): Renamed count_one_bits.
60013         (popcountl): Renamed count_one_bits_l.
60014         (popcountll): Renamed count_one_bits_ll.
60015         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
60016         * modules/popcount: Renamed module/count-one-bits.
60017         * modules/popcount-tests: Renamed module/count-one-bits-tests.
60018         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
60019
60020 2007-07-23  Ben Pfaff  <blp@gnu.org>
60021
60022         * lib/popcount.h (popcount32): Reduce size of constants, to allow
60023         better code generation, and add U to large constants to avoid
60024         warnings, in non-GCC case.
60025         Suggested by Bruno Haible.
60026
60027 2007-07-23  Ben Pfaff  <blp@gnu.org>
60028
60029         * lib/popcount.h: Use verify_true instead of if...abort.
60030         * modules/popcount: Depend on verify module.
60031         Suggested by Jim Meyering.
60032
60033 2007-07-23  Bruno Haible  <bruno@clisp.org>
60034
60035         * gnulib-tool (func_import): Create a .cvsignore file also when the
60036         directory is not yet in CVS but the toplevel directory is. When
60037         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
60038         Reported by Karl Berry.
60039
60040 2007-07-22  Ben Pfaff  <blp@gnu.org>
60041
60042         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
60043         case.
60044         Suggested by Eric Blake.
60045
60046 2007-07-22  Ben Pfaff  <blp@gnu.org>
60047
60048         New module: popcount.
60049         * MODULES.html.sh: Add popcount.
60050         * modules/popcount: New file.
60051         * modules/popcount-tests: New file.
60052         * tests/test-popcount.c: New file.
60053         * lib/popcount.h: New file.
60054         * m4/popcount.m4: New file.
60055
60056 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
60057
60058         * build-aux/announce-gen: Update to GPLv3.
60059
60060         * build-aux/config.guess: Update from config.
60061
60062 2007-07-21  Bruno Haible  <bruno@clisp.org>
60063
60064         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
60065         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
60066
60067 2007-07-20  Jim Meyering  <jim@meyering.net>
60068
60069         * check-module: Diagnose a self-dependency.
60070
60071 2007-07-19  Bruno Haible  <bruno@clisp.org>
60072
60073         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
60074         empty.
60075         Reported by Eric Blake.
60076
60077 2007-07-18  Bruno Haible  <bruno@clisp.org>
60078
60079         * gnulib-tool: New options --po-base, --po-domain.
60080         (func_usage): Document them.
60081         (pobase, po_domain): New variables.
60082         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
60083         DEFAULT_TEXT_DOMAIN.
60084         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
60085         (func_import): Consider pobase and po_domain. Create a po/ directory.
60086         (func_create_testdir): Set pobase and po_domain to empty.
60087         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
60088         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
60089
60090 2007-07-18  Bruno Haible  <bruno@clisp.org>
60091
60092         * gnulib-tool (func_get_automake_snippet): Synthesize also an
60093         EXTRA_DIST augmentation for files in build-aux/.
60094
60095 2007-07-16  Bruno Haible  <bruno@clisp.org>
60096
60097         * modules/lseek (License): Use the synonymous term "LGPLv2+".
60098         * modules/getdelim (License): Likewise.
60099
60100 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60101
60102         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
60103         * modules/d-type (License): Likewise.
60104         * modules/extensions (License): Likewise.
60105         * modules/fnmatch (License): Likewise.
60106         * modules/fseeko (License): Likewise.
60107         * modules/getaddrinfo (License): Likewise.
60108         * modules/getline (License): Likewise.
60109         * modules/getlogin_r (License): Likewise.
60110         * modules/getpass (License): Likewise.
60111         * modules/gettimeofday (License): Likewise.
60112         * modules/glob (License): Likewise.
60113         * modules/inet_ntop (License): Likewise.
60114         * modules/malloc (License): Likewise.
60115         * modules/malloca (License): Likewise.
60116         * modules/memmem (License): Likewise.
60117         * modules/mempcpy (License): Likewise.
60118         * modules/memset (License): Likewise.
60119         * modules/minmax (License): Likewise.
60120         * modules/mktime (License): Likewise.
60121         * modules/netinet_in (License): Likewise.
60122         * modules/pathmax (License): Likewise.
60123         * modules/poll (License): Likewise.
60124         * modules/regex (License): Likewise.
60125         * modules/snprintf (License): Likewise.
60126         * modules/stdbool (License): Likewise.
60127         * modules/stdint (License): Likewise.
60128         * modules/stdio (License): Likewise.
60129         * modules/strcase (License): Likewise.
60130         * modules/strcasestr (License): Likewise.
60131         * modules/strdup (License): Likewise.
60132         * modules/string (License): Likewise.
60133         * modules/strndup (License): Likewise.
60134         * modules/strnlen (License): Likewise.
60135         * modules/strpbrk (License): Likewise.
60136         * modules/strptime (License): Likewise.
60137         * modules/strsep (License): Likewise.
60138         * modules/sys_select (License): Likewise.
60139         * modules/sys_socket (License): Likewise.
60140         * modules/sys_stat (License): Likewise.
60141         * modules/sys_time (License): Likewise.
60142         * modules/time (License): Likewise.
60143         * modules/time_r (License): Likewise.
60144         * modules/timegm (License): Likewise.
60145         * modules/unistd (License): Likewise.
60146         * modules/vsnprintf (License): Likewise.
60147         * modules/wctype (License): Likewise.
60148
60149 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60150
60151         * modules/argz (License): LGPLv2+.
60152
60153 2007-07-15  Karl Berry  <karl@gnu.org>
60154
60155         * doc/gnulib.texi: revise node structure per new fdl.texi.
60156
60157 2007-07-14  Bruno Haible  <bruno@clisp.org>
60158
60159         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
60160         the output file.
60161         * lib/uniname/uninames.h: Regenerated.
60162
60163 2007-07-14  Karl Berry  <karl@gnu.org>
60164
60165         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
60166         omitting sectioning and index commands.
60167
60168 2007-07-13  Bruno Haible  <bruno@clisp.org>
60169
60170         New gnulib-tool option --more-symlinks.
60171         * gnulib-tool (func_usage): Document --more-symlinks.
60172         (do_copyrights): New variable.
60173         Recognize option --more-symlinks.
60174         (func_import): Don't add a copyright notice transform to
60175         sed_transform_lib_file if do_copyrights is empty.
60176
60177 2007-07-13  Bruno Haible  <bruno@clisp.org>
60178
60179         * lib/vasnprintf.c (decimal_point_char): Define also if
60180         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
60181         && !NEED_PRINTF_DIRECTIVE_A.
60182         Reported by Clemens Koller <clemens.koller@anagramm.de> via
60183         Gary V. Vaughan <gary@gnu.org>.
60184
60185 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
60186
60187         * lib/inttypes_.h: Undo previous change, since it was fixed
60188         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
60189
60190 2007-07-13  Bruno Haible  <bruno@clisp.org>
60191
60192         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
60193         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
60194
60195 2007-07-13  Jim Meyering  <jim@meyering.net>
60196
60197         df: Don't fail for Tru64's "file-on-file mount".
60198         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
60199         so we fall through and use statfs instead.  Details here:
60200         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
60201         Reported by Albert Chin.
60202
60203 2007-07-13  Bruno Haible  <bruno@clisp.org>
60204
60205         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
60206         * modules/configmake (License): Likewise.
60207         * modules/gettext (License): Likewise.
60208         * modules/gettext-h (License): Likewise.
60209         * modules/include_next (License): Likewise.
60210         * modules/link-warning (License): Likewise.
60211         * modules/localcharset (License): Likewise.
60212         * modules/localename (License): Likewise.
60213         * modules/lock (License): Likewise.
60214         * modules/relocatable-lib-lgpl (License): Likewise.
60215         * modules/size_max (License): Likewise.
60216         * modules/vasnprintf (License): Likewise.
60217         * modules/wchar (License): Likewise.
60218         * modules/xsize (License): Likewise.
60219
60220 2007-07-13  Bruno Haible  <bruno@clisp.org>
60221
60222         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
60223         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
60224
60225 2007-07-12  Bruno Haible  <bruno@clisp.org>
60226
60227         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
60228         in the modules files.
60229
60230 2007-07-11  Karl Berry  <karl@gnu.org>
60231
60232         * MODULES.html.sh (func_module): use
60233          sed -e '\|^'"${includefile}"'$|d'
60234          instead of /.../d, to avoid errors on $includefile's containing /.
60235
60236 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
60237
60238         * gnulib-tool (func_import): Avoid duplication of --avoid
60239         statements
60240         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
60241         names to `_' in variable names.
60242
60243 2007-07-10  Eric Blake  <ebb9@byu.net>
60244
60245         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
60246         * NEWS: Document this change.
60247
60248 2007-07-08  Bruno Haible  <bruno@clisp.org>
60249
60250         Update to Unicode 5.0.
60251         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
60252         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
60253         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
60254         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
60255         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
60256         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
60257         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
60258         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
60259         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
60260         U+10A3F, U+1D242..U+1D244.
60261         (nonspacing_table_ind): Update.
60262         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
60263         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
60264
60265 2007-07-08  Bruno Haible  <bruno@clisp.org>
60266
60267         Update to Unicode 5.0.
60268         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
60269         code transform. Extend the name index field of unicode_name_to_code and
60270         unicode_code_to_name from 16 to 24 bits.
60271         * lib/uniname/uniname.c (unicode_character_name,
60272         unicode_name_character): Add the range 0x12xxx to the code transform.
60273         * lib/uniname/uninames.h: Regenerated.
60274         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
60275
60276 2007-07-07  Bruno Haible  <bruno@clisp.org>
60277
60278         * modules/wcwidth-tests: New file.
60279         * tests/test-wcwidth.c: New file.
60280
60281         Work around MacOS X wcwidth() bug.
60282         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
60283         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
60284         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
60285         original wcwidth in non-UTF-8 locales.
60286         * modules/wcwidth (Depends-on): Add localcharset, streq,
60287         uniwidth/width.
60288         * doc/functions/wcwidth.texi: Update.
60289
60290 2007-07-07  Bruno Haible  <bruno@clisp.org>
60291
60292         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
60293         (wcwidth): New declaration.
60294         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
60295         macros.
60296         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
60297         here. Prepare for creating <wchar.h> unconditionally.
60298         * modules/wchar (Depends-on): Add link-warning.
60299         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
60300         REPLACE_WCWIDTH, and GL_LINK_WARNING.
60301         * lib/wcwidth.h: Remove file.
60302         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
60303         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
60304         * modules/wcwidth (Files): Remove lib/wcwidth.h.
60305         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
60306         (Include): Replace wcwidth.h with <wchar.h>.
60307         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
60308         * lib/mbchar.h: Don't include wcwidth.h.
60309         * lib/mbswidth.c: Likewise.
60310         * NEWS: Mention the change.
60311
60312 2007-07-07  Bruno Haible  <bruno@clisp.org>
60313
60314         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
60315         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
60316         definition with an external declaration.
60317         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
60318         defined as a function. Remove AC_C_INLINE requirement.
60319         * modules/wcwidth (Files): Add lib/wcwidth.c.
60320         (Makefile.am): Remove redundant statement.
60321
60322 2007-07-07  Bruno Haible  <bruno@clisp.org>
60323
60324         * MODULES.html.sh (Unicode string functions): Add the new modules.
60325
60326         * tests/uniwidth/test-u32-strwidth.c: New file.
60327         * modules/uniwidth/u32-strwidth-tests: New file.
60328
60329         * lib/uniwidth/u32-strwidth.c: New file.
60330         * modules/uniwidth/u32-strwidth: New file.
60331
60332         * tests/uniwidth/test-u16-strwidth.c: New file.
60333         * modules/uniwidth/u16-strwidth-tests: New file.
60334
60335         * lib/uniwidth/u16-strwidth.c: New file.
60336         * modules/uniwidth/u16-strwidth: New file.
60337
60338         * tests/uniwidth/test-u8-strwidth.c: New file.
60339         * modules/uniwidth/u8-strwidth-tests: New file.
60340
60341         * lib/uniwidth/u8-strwidth.c: New file.
60342         * modules/uniwidth/u8-strwidth: New file.
60343
60344         * tests/uniwidth/test-u32-width.c: New file.
60345         * modules/uniwidth/u32-width-tests: New file.
60346
60347         * lib/uniwidth/u32-width.c: New file.
60348         * modules/uniwidth/u32-width: New file.
60349
60350         * tests/uniwidth/test-u16-width.c: New file.
60351         * modules/uniwidth/u16-width-tests: New file.
60352
60353         * lib/uniwidth/u16-width.c: New file.
60354         * modules/uniwidth/u16-width: New file.
60355
60356         * tests/uniwidth/test-u8-width.c: New file.
60357         * modules/uniwidth/u8-width-tests: New file.
60358
60359         * lib/uniwidth/u8-width.c: New file.
60360         * modules/uniwidth/u8-width: New file.
60361
60362         * tests/uniwidth/test-uc_width.c: New file.
60363         * modules/uniwidth/width-tests: New file.
60364
60365         * lib/uniwidth/width.c: New file, from GNU libiconv.
60366         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
60367         * modules/uniwidth/width: New file.
60368
60369         * lib/uniwidth.h: New file, from GNU libiconv.
60370         * modules/uniwidth/base: New file.
60371
60372 2007-07-07  Bruno Haible  <bruno@clisp.org>
60373
60374         * lib/uniname.h: New file, from GNU gettext.
60375         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
60376         * lib/uniname/uninames.h: New file, from GNU gettext.
60377         * lib/uniname/uniname.c: New file, from GNU gettext.
60378         * tests/uniname/test-uninames.sh: New file.
60379         * tests/uniname/test-uninames.c: New file, from GNU gettext.
60380         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
60381         * modules/uniname/base: New file.
60382         * modules/uniname/uniname: New file.
60383         * modules/uniname/uniname-tests: New file.
60384         * MODULES.html.sh (Unicode string functions): Add the new modules.
60385
60386 2007-07-06  Bruno Haible  <bruno@clisp.org>
60387
60388         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
60389
60390 2007-07-06  Bruno Haible  <bruno@clisp.org>
60391
60392         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
60393         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
60394         includes <cygwin/sys_time.h> which includes <sys/select.h> which
60395         include <sys/time.h>.
60396         Reported by Eric Blake.
60397
60398 2007-07-06  Eric Blake  <ebb9@byu.net>
60399
60400         Fix testing canonicalize on cygwin.
60401         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
60402         Revert patch from 2007-06-19.
60403         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
60404         canonicalize module is also in use.
60405         * tests/test-canonicalize.c: New file.
60406         * tests/test-canonicalize.sh: Likewise.
60407         * modules/canonicalize-tests: Likewise.
60408
60409 2007-07-06  Jim Meyering  <jim@meyering.net>
60410
60411         * lib/getugroups.c (getugroups): Detect getgrent failure.
60412         Adjust comment to reflect reality: this function may return -1.
60413
60414 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
60415
60416         * build-aux/bootstrap (TP_URL,get_translations): Update to use
60417         the new TP address.
60418         (usage): Fix typo
60419         (gnulib_mk): New variable.
60420
60421 2007-07-05  Jim Meyering  <jim@meyering.net>
60422
60423         Don't let endgrent clobber errno, no matter how improbable.
60424         * lib/getugroups.c (getugroups): Save and restore errno around
60425         endgrent call.
60426
60427         Close the group DB even when failing with 2^31 or more members.
60428         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
60429
60430 2007-07-04  Jim Meyering  <jim@meyering.net>
60431
60432         * lib/getugroups.h: New file.
60433         * lib/getugroups.c: Include "getugroups.h".
60434         Remove uses of "register" keyword.
60435         Move local variable, "cp", down into scope where used.
60436         Give "username" parameter the "const" attribute.
60437         * modules/getugroups (Files): Add lib/getugroups.h
60438
60439 2007-07-04  Karl Berry  <karl@gnu.org>
60440
60441         * MODULES.html.sh (func_all_modules): Complete rename of
60442         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
60443
60444 2007-07-02  Bruno Haible  <bruno@clisp.org>
60445
60446         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
60447         mode, when inttypes.h comes from gnulib.
60448         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
60449
60450 2007-07-02  Simon Josefsson  <simon@josefsson.org>
60451
60452         * NEWS: Mention lgpl module name change.
60453
60454         * modules/lgpl-2.1: Renamed from lgpl.
60455
60456         * NEWS: Mention gpl module name change.
60457
60458         * modules/gpl-3.0: New file, based on gpl-2.0.
60459
60460         * modules/gpl-2.0: Renamed from gpl.
60461
60462         * modules/gpl: Fix filename, doc/gpl.texi is now found at
60463         doc/gpl-2.0.texi.
60464
60465 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60466
60467         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
60468         #define __STDC_LIMIT_MACROS temporarily while including
60469         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
60470         Problem reported by Joel E. Denny in
60471         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
60472
60473 2007-07-01  Bruno Haible  <bruno@clisp.org>
60474
60475         * lib/unistdio.h: New file.
60476         * lib/unistdio/u-asnprintf.h: New file.
60477         * lib/unistdio/u-asprintf.h: New file.
60478         * lib/unistdio/u-printf-args.c: New file.
60479         * lib/unistdio/u-printf-args.h: New file.
60480         * lib/unistdio/u-printf-parse.h: New file.
60481         * lib/unistdio/u-snprintf.h: New file.
60482         * lib/unistdio/u-sprintf.h: New file.
60483         * lib/unistdio/u-vasprintf.h: New file.
60484         * lib/unistdio/u-vsnprintf.h: New file.
60485         * lib/unistdio/u-vsprintf.h: New file.
60486         * lib/unistdio/ulc-asnprintf.c: New file.
60487         * lib/unistdio/ulc-asprintf.c: New file.
60488         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
60489         * lib/unistdio/ulc-printf-parse.c: New file.
60490         * lib/unistdio/ulc-snprintf.c: New file.
60491         * lib/unistdio/ulc-sprintf.c: New file.
60492         * lib/unistdio/ulc-vasnprintf.c: New file.
60493         * lib/unistdio/ulc-vasprintf.c: New file.
60494         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
60495         * lib/unistdio/ulc-vsnprintf.c: New file.
60496         * lib/unistdio/ulc-vsprintf.c: New file.
60497         * lib/unistdio/u8-asnprintf.c: New file.
60498         * lib/unistdio/u8-asprintf.c: New file.
60499         * lib/unistdio/u8-printf-parse.c: New file.
60500         * lib/unistdio/u8-snprintf.c: New file.
60501         * lib/unistdio/u8-sprintf.c: New file.
60502         * lib/unistdio/u8-vasnprintf.c: New file.
60503         * lib/unistdio/u8-vasprintf.c: New file.
60504         * lib/unistdio/u8-vsnprintf.c: New file.
60505         * lib/unistdio/u8-vsprintf.c: New file.
60506         * lib/unistdio/u8-u8-asnprintf.c: New file.
60507         * lib/unistdio/u8-u8-asprintf.c: New file.
60508         * lib/unistdio/u8-u8-snprintf.c: New file.
60509         * lib/unistdio/u8-u8-sprintf.c: New file.
60510         * lib/unistdio/u8-u8-vasnprintf.c: New file.
60511         * lib/unistdio/u8-u8-vasprintf.c: New file.
60512         * lib/unistdio/u8-u8-vsnprintf.c: New file.
60513         * lib/unistdio/u8-u8-vsprintf.c: New file.
60514         * lib/unistdio/u16-asnprintf.c: New file.
60515         * lib/unistdio/u16-asprintf.c: New file.
60516         * lib/unistdio/u16-printf-parse.c: New file.
60517         * lib/unistdio/u16-snprintf.c: New file.
60518         * lib/unistdio/u16-sprintf.c: New file.
60519         * lib/unistdio/u16-vasnprintf.c: New file.
60520         * lib/unistdio/u16-vasprintf.c: New file.
60521         * lib/unistdio/u16-vsnprintf.c: New file.
60522         * lib/unistdio/u16-vsprintf.c: New file.
60523         * lib/unistdio/u16-u16-asnprintf.c: New file.
60524         * lib/unistdio/u16-u16-asprintf.c: New file.
60525         * lib/unistdio/u16-u16-snprintf.c: New file.
60526         * lib/unistdio/u16-u16-sprintf.c: New file.
60527         * lib/unistdio/u16-u16-vasnprintf.c: New file.
60528         * lib/unistdio/u16-u16-vasprintf.c: New file.
60529         * lib/unistdio/u16-u16-vsnprintf.c: New file.
60530         * lib/unistdio/u16-u16-vsprintf.c: New file.
60531         * lib/unistdio/u32-asnprintf.c: New file.
60532         * lib/unistdio/u32-asprintf.c: New file.
60533         * lib/unistdio/u32-printf-parse.c: New file.
60534         * lib/unistdio/u32-snprintf.c: New file.
60535         * lib/unistdio/u32-sprintf.c: New file.
60536         * lib/unistdio/u32-vasnprintf.c: New file.
60537         * lib/unistdio/u32-vasprintf.c: New file.
60538         * lib/unistdio/u32-vsnprintf.c: New file.
60539         * lib/unistdio/u32-vsprintf.c: New file.
60540         * lib/unistdio/u32-u32-asnprintf.c: New file.
60541         * lib/unistdio/u32-u32-asprintf.c: New file.
60542         * lib/unistdio/u32-u32-snprintf.c: New file.
60543         * lib/unistdio/u32-u32-sprintf.c: New file.
60544         * lib/unistdio/u32-u32-vasnprintf.c: New file.
60545         * lib/unistdio/u32-u32-vasprintf.c: New file.
60546         * lib/unistdio/u32-u32-vsnprintf.c: New file.
60547         * lib/unistdio/u32-u32-vsprintf.c: New file.
60548         * tests/unistdio/test-ulc-asnprintf1.c: New file.
60549         * tests/unistdio/test-ulc-asnprintf1.h: New file.
60550         * tests/unistdio/test-ulc-printf1.h: New file.
60551         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
60552         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
60553         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
60554         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
60555         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
60556         * tests/unistdio/test-ulc-vasprintf1.c: New file.
60557         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
60558         * tests/unistdio/test-ulc-vsprintf1.c: New file.
60559         * tests/unistdio/test-u8-asnprintf1.c: New file.
60560         * tests/unistdio/test-u8-asnprintf1.h: New file.
60561         * tests/unistdio/test-u8-printf1.h: New file.
60562         * tests/unistdio/test-u8-vasnprintf1.c: New file.
60563         * tests/unistdio/test-u8-vasnprintf2.c: New file.
60564         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
60565         * tests/unistdio/test-u8-vasnprintf3.c: New file.
60566         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
60567         * tests/unistdio/test-u8-vasprintf1.c: New file.
60568         * tests/unistdio/test-u8-vsnprintf1.c: New file.
60569         * tests/unistdio/test-u8-vsprintf1.c: New file.
60570         * tests/unistdio/test-u16-asnprintf1.c: New file.
60571         * tests/unistdio/test-u16-asnprintf1.h: New file.
60572         * tests/unistdio/test-u16-printf1.h: New file.
60573         * tests/unistdio/test-u16-vasnprintf1.c: New file.
60574         * tests/unistdio/test-u16-vasnprintf2.c: New file.
60575         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
60576         * tests/unistdio/test-u16-vasnprintf3.c: New file.
60577         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
60578         * tests/unistdio/test-u16-vasprintf1.c: New file.
60579         * tests/unistdio/test-u16-vsnprintf1.c: New file.
60580         * tests/unistdio/test-u16-vsprintf1.c: New file.
60581         * tests/unistdio/test-u32-asnprintf1.c: New file.
60582         * tests/unistdio/test-u32-asnprintf1.h: New file.
60583         * tests/unistdio/test-u32-printf1.h: New file.
60584         * tests/unistdio/test-u32-vasnprintf1.c: New file.
60585         * tests/unistdio/test-u32-vasnprintf2.c: New file.
60586         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
60587         * tests/unistdio/test-u32-vasnprintf3.c: New file.
60588         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
60589         * tests/unistdio/test-u32-vasprintf1.c: New file.
60590         * tests/unistdio/test-u32-vsnprintf1.c: New file.
60591         * tests/unistdio/test-u32-vsprintf1.c: New file.
60592         * modules/unistdio/base: New file.
60593         * modules/unistdio/u-printf-args: New file.
60594         * modules/unistdio/ulc-asnprintf: New file.
60595         * modules/unistdio/ulc-asprintf: New file.
60596         * modules/unistdio/ulc-fprintf: New file.
60597         * modules/unistdio/ulc-printf-parse: New file.
60598         * modules/unistdio/ulc-snprintf: New file.
60599         * modules/unistdio/ulc-sprintf: New file.
60600         * modules/unistdio/ulc-vasnprintf: New file.
60601         * modules/unistdio/ulc-vasprintf: New file.
60602         * modules/unistdio/ulc-vfprintf: New file.
60603         * modules/unistdio/ulc-vsnprintf: New file.
60604         * modules/unistdio/ulc-vsprintf: New file.
60605         * modules/unistdio/u8-asnprintf: New file.
60606         * modules/unistdio/u8-asprintf: New file.
60607         * modules/unistdio/u8-printf-parse: New file.
60608         * modules/unistdio/u8-snprintf: New file.
60609         * modules/unistdio/u8-sprintf: New file.
60610         * modules/unistdio/u8-vasnprintf: New file.
60611         * modules/unistdio/u8-vasprintf: New file.
60612         * modules/unistdio/u8-vsnprintf: New file.
60613         * modules/unistdio/u8-vsprintf: New file.
60614         * modules/unistdio/u8-u8-asnprintf: New file.
60615         * modules/unistdio/u8-u8-asprintf: New file.
60616         * modules/unistdio/u8-u8-snprintf: New file.
60617         * modules/unistdio/u8-u8-sprintf: New file.
60618         * modules/unistdio/u8-u8-vasnprintf: New file.
60619         * modules/unistdio/u8-u8-vasprintf: New file.
60620         * modules/unistdio/u8-u8-vsnprintf: New file.
60621         * modules/unistdio/u8-u8-vsprintf: New file.
60622         * modules/unistdio/u16-asnprintf: New file.
60623         * modules/unistdio/u16-asprintf: New file.
60624         * modules/unistdio/u16-printf-parse: New file.
60625         * modules/unistdio/u16-snprintf: New file.
60626         * modules/unistdio/u16-sprintf: New file.
60627         * modules/unistdio/u16-vasnprintf: New file.
60628         * modules/unistdio/u16-vasprintf: New file.
60629         * modules/unistdio/u16-vsnprintf: New file.
60630         * modules/unistdio/u16-vsprintf: New file.
60631         * modules/unistdio/u16-u16-asnprintf: New file.
60632         * modules/unistdio/u16-u16-asprintf: New file.
60633         * modules/unistdio/u16-u16-snprintf: New file.
60634         * modules/unistdio/u16-u16-sprintf: New file.
60635         * modules/unistdio/u16-u16-vasnprintf: New file.
60636         * modules/unistdio/u16-u16-vasprintf: New file.
60637         * modules/unistdio/u16-u16-vsnprintf: New file.
60638         * modules/unistdio/u16-u16-vsprintf: New file.
60639         * modules/unistdio/u32-asnprintf: New file.
60640         * modules/unistdio/u32-asprintf: New file.
60641         * modules/unistdio/u32-printf-parse: New file.
60642         * modules/unistdio/u32-snprintf: New file.
60643         * modules/unistdio/u32-sprintf: New file.
60644         * modules/unistdio/u32-vasnprintf: New file.
60645         * modules/unistdio/u32-vasprintf: New file.
60646         * modules/unistdio/u32-vsnprintf: New file.
60647         * modules/unistdio/u32-vsprintf: New file.
60648         * modules/unistdio/u32-u32-asnprintf: New file.
60649         * modules/unistdio/u32-u32-asprintf: New file.
60650         * modules/unistdio/u32-u32-snprintf: New file.
60651         * modules/unistdio/u32-u32-sprintf: New file.
60652         * modules/unistdio/u32-u32-vasnprintf: New file.
60653         * modules/unistdio/u32-u32-vasprintf: New file.
60654         * modules/unistdio/u32-u32-vsnprintf: New file.
60655         * modules/unistdio/u32-u32-vsprintf: New file.
60656         * modules/unistdio/ulc-asnprintf-tests: New file.
60657         * modules/unistdio/ulc-vasnprintf-tests: New file.
60658         * modules/unistdio/ulc-vasprintf-tests: New file.
60659         * modules/unistdio/ulc-vsnprintf-tests: New file.
60660         * modules/unistdio/ulc-vsprintf-tests: New file.
60661         * modules/unistdio/u8-asnprintf-tests: New file.
60662         * modules/unistdio/u8-vasnprintf-tests: New file.
60663         * modules/unistdio/u8-vasprintf-tests: New file.
60664         * modules/unistdio/u8-vsnprintf-tests: New file.
60665         * modules/unistdio/u8-vsprintf-tests: New file.
60666         * modules/unistdio/u16-asnprintf-tests: New file.
60667         * modules/unistdio/u16-vasnprintf-tests: New file.
60668         * modules/unistdio/u16-vasprintf-tests: New file.
60669         * modules/unistdio/u16-vsnprintf-tests: New file.
60670         * modules/unistdio/u16-vsprintf-tests: New file.
60671         * modules/unistdio/u32-asnprintf-tests: New file.
60672         * modules/unistdio/u32-vasnprintf-tests: New file.
60673         * modules/unistdio/u32-vasprintf-tests: New file.
60674         * modules/unistdio/u32-vsnprintf-tests: New file.
60675         * modules/unistdio/u32-vsprintf-tests: New file.
60676         * MODULES.html.sh (Unicode string functions): Add the new modules.
60677
60678 2007-07-01  Bruno Haible  <bruno@clisp.org>
60679
60680         * lib/sprintf.c (sprintf): Limit the available length estimation,
60681         to avoid address wraparound.
60682         * lib/vsprintf.c (vsprintf): Likewise.
60683         * modules/sprintf-posix (Dependencies): Add stdint.
60684         * modules/vsprintf-posix (Dependencies): Likewise.
60685
60686 2007-07-01  Bruno Haible  <bruno@clisp.org>
60687
60688         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
60689         Windows PATH as well. Conservative double-quoting. Comments.
60690
60691 2007-07-01  Bruno Haible  <bruno@clisp.org>
60692             Eric Blake  <ebb9@byu.net>
60693             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60694
60695         * gnulib-tool (self_abspathname): Fix algorithm to cope with
60696         empty components in $PATH, denoting '.'.
60697
60698 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60699
60700         * gnulib-tool: Fix indentation.
60701         (func_create_megatestdir): Likewise.
60702         Report by Bruno Haible.
60703
60704 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60705
60706         Sync from Automake.
60707         * build-aux/gnupload: Fix shell portability issues with for loops.
60708         Report by Karl Berry.
60709
60710 2007-06-29  Simon Josefsson  <simon@josefsson.org>
60711
60712         * build-aux/maint.mk (POURL): Use translationproject.org.
60713
60714 2007-06-27  Simon Josefsson  <simon@josefsson.org>
60715             Bruno Haible  <bruno@clisp.org>
60716
60717         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
60718         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
60719         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
60720         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
60721         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
60722
60723 2007-06-27  Bruno Haible  <bruno@clisp.org>
60724
60725         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
60726         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
60727
60728 2007-06-26  Karl Berry  <karl@gnu.org>
60729
60730         * MODULES.html.sh: remove xreadlink-with-size.
60731
60732 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60733
60734         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
60735         method that I hope also handles the double-include problem noted
60736         by Bruno Haible in
60737         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
60738
60739 2007-06-23  Bruno Haible  <bruno@clisp.org>
60740
60741         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60742         Don't let the 'mostlyclean' target fail if the last subdirectory could
60743         not be removed.
60744         Reported by Karl Berry.
60745
60746 2007-06-23  Bruno Haible  <bruno@clisp.org>
60747
60748         * gnulib-tool (echo): Add a speedier workaround for ksh.
60749         * tests/test-echo.sh: Likewise.
60750
60751 2007-06-23  Bruno Haible  <bruno@clisp.org>
60752
60753         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
60754         * tests/test-echo.sh: Likewise.
60755
60756 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60757
60758         * gnulib-tool (IFS): Initialize early, so we don't set it to
60759         empty later.
60760         (self_abspathname): Rewrite algorithm to set it, reindent.
60761         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
60762         (func_create_megatestdir): Merge some sed scripts.
60763
60764 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60765
60766         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
60767         exposed by Sun Studio 11 cc on Solaris 8.
60768
60769 2007-06-22  Bruno Haible  <bruno@clisp.org>
60770
60771         * gnulib-tool (echo): Ensure the echo primitive does not interpret
60772         backslashes.
60773         * tests/test-echo.sh: New file.
60774
60775 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60776
60777         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
60778         simplify `sed_replace_build_aux' scripts, they are portable but
60779         echoing them with `echo' is not.
60780         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
60781
60782 2007-06-21  Karl Berry  <karl@gnu.org>
60783
60784         * config/srclist.txt: guess we can't handle the licenses via
60785         srclist at the moment.
60786
60787 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
60788
60789         * MODULES.html.sh: Add include_next.
60790         * modules/include_next: New file.
60791
60792 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
60793
60794         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
60795         INCLUDE_NEXT.
60796         (gl_CHECK_NEXT_HEADERS): New macro.
60797         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
60798         the obsolescent gl_ABSOLUTE_HEADER.
60799         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
60800         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
60801         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
60802         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
60803         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
60804         * m4/math_h.m4 (gl_MATH_H): Likewise.
60805         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
60806         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
60807         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
60808         * m4/stdint.m4 (gl_STDINT_H): Likewise.
60809         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
60810         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
60811         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
60812         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60813         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60814         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
60815         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
60816         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
60817         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
60818         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
60819         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
60820         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
60821         * m4/inttypes.m4 (gl_INTTYPES_H): Define
60822         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
60823         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
60824         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
60825         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
60826         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
60827         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
60828         * lib/float_.h: Likewise.
60829         * lib/inttypes_.h: Likewise.
60830         * lib/math_.h: Likewise.
60831         * lib/search_.h: Likewise.
60832         * lib/signal_.h: Likewise.
60833         * lib/stdint_.h: Likewise.
60834         * lib/stdio_.h: Likewise.
60835         * lib/stdlib_.h: Likewise.
60836         * lib/string_.h: Likewise.
60837         * lib/sys_stat_.h: Likewise.
60838         * lib/sys_time_.h: Likewise.
60839         * lib/time_.h: Likewise.
60840         * lib/unistd_.h: Likewise.
60841         * lib/wchar_.h: Likewise.
60842         * lib/wctype_.h: Likewise.
60843         * lib/dirent_.h: Likewise.
60844         * lib/iconv_.h: Likewise.
60845         * lib/locale_.h: Likewise.
60846         * lib/netinet_in_.h: Likewise.
60847         * lib/sys_select_.h: Likewise.
60848         * lib/sys_socket_.h: Likewise.
60849         * lib/sysexits_.h: Likewise.
60850         * modules/fcntl (Depends-on): Depend on include_next, not
60851         absolute_header.
60852         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
60853         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
60854         * modules/fchdir: Likewise.
60855         * modules/float: Likewise.
60856         * modules/iconv_open: Likewise.
60857         * modules/inttypes: Likewise.
60858         * modules/locale: Likewise.
60859         * modules/math: Likewise.
60860         * modules/netinet_in: Likewise.
60861         * modules/search: Likewise.
60862         * modules/signal: Likewise.
60863         * modules/stdint: Likewise.
60864         * modules/stdio: Likewise.
60865         * modules/stdlib: Likewise.
60866         * modules/string: Likewise.
60867         * modules/sys_select: Likewise.
60868         * modules/sys_socket: Likewise.
60869         * modules/sys_stat: Likewise.
60870         * modules/sys_time: Likewise.
60871         * modules/sysexits: Likewise.
60872         * modules/time: Likewise.
60873         * modules/unistd: Likewise.
60874         * modules/wchar: Likewise.
60875         * modules/wctype: Likewise.
60876         * modules/sys_stat: Change maintainer to "all".
60877         * modules/unistd: Likewise.
60878
60879 2007-06-20  Karl Berry  <karl@gnu.org>
60880
60881         * config/srclist.txt: track www changes in license files.
60882
60883 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
60884
60885         * build-aux/bootstrap: Remove stray dot.
60886         Make sure build_aux settings are honored when linking
60887         gnulib_extra_files.
60888
60889 2007-06-19  Eric Blake  <ebb9@byu.net>
60890
60891         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
60892         Allow compilation on cygwin.
60893
60894 2007-06-19  Jim Meyering  <jim@meyering.net>
60895
60896         xreadlink-with-size: Remove module.  No longer used.
60897         Ex-callers now use xreadlink or mreadlink-with-size.
60898         * modules/xreadlink-with-size: Remove module.
60899         * lib/xreadlink-with-size.c: Remove file.
60900         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
60901         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
60902         just before the function definition *is* accurate.
60903
60904         Eliminate one way canonicalize_filename_mode could exit.
60905         * lib/canonicalize.c (canonicalize_filename_mode):
60906         Use mreadlink_with_size, not xreadlink_with_size.
60907
60908 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
60909
60910         Detect porting problems to FreeBSD/arm, which has time_t wider than
60911         long int.  Original problem reported for GNU diff by Xin Li in
60912         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
60913         * modules/getdate (Depends-on): Add intprops, verify.
60914         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
60915         is an integer type no wider than long int.
60916
60917 2007-06-18  Jim Meyering  <jim@meyering.net>
60918
60919         New module: mreadlink-with-size.
60920         * MODULES.html.sh: Add mreadlink-with-size.
60921         * modules/mreadlink-with-size: New module
60922         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
60923         not xreadlink-with-size.
60924         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
60925
60926 2007-06-16  Bruno Haible  <bruno@clisp.org>
60927
60928         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
60929         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
60930         Reported by Gary V. Vaughan <gary@gnu.org>.
60931
60932 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
60933
60934         Revamp lchown so that it lives in unistd.h where it belongs.
60935         * lib/lchown.h: Remove.
60936         * lib/dirchownmod.c: Don't include lib/lchown.h.
60937         * lib/fchownat.c: Likewise.
60938         * lib/openat.c: Likewise.
60939         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
60940         does not follow symlinks.
60941         (EOPNOTSUPP): Define if not defined.
60942         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
60943         is defined to 0.
60944         (lchown): New decl.
60945         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
60946         Do not check for lchown decl.
60947         Set REPLACE_LCHOWN.
60948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
60949         REPLACE_LCHOWN.
60950         * modules/chown: Make it clear it follows symlinks.
60951         * modules/lchown: Make it clear it doesn't follow symlinks.
60952         (Files): Remove lib/lchown.h
60953         (Depends-on): Add unistd.
60954         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
60955         (Include): Include <unistd.h>, not "lchown.h".
60956         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
60957         REPLACE_LCHOWN.
60958
60959 2007-06-15  Jim Meyering  <jim@meyering.net>
60960
60961         Change license (GPL to LGPL) of fsusage and dependents.
60962         * modules/fsusage (License): Change to LGPL.
60963         * modules/full-read (License): Likewise.
60964         * modules/full-write (License): Likewise.
60965         * modules/safe-read (License): Likewise.
60966         * modules/safe-write (License): Likewise.
60967
60968 2007-06-14  Ben Pfaff  <blp@gnu.org>
60969
60970         Missing part of allocsa -> malloca transition.
60971         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
60972         gl_MALLOCA.
60973
60974 2007-06-12  Bruno Haible  <bruno@clisp.org>
60975
60976         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
60977         to ia64, x86_64, i386.
60978         Reported by Eric Blake.
60979
60980 2007-06-12  Bruno Haible  <bruno@clisp.org>
60981
60982         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
60983         cross-compiling to x86_64.
60984
60985 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
60986
60987         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
60988         glitch reported by Ralf Wildenhues in
60989         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
60990
60991         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
60992         Vin Shelton.
60993
60994 2007-06-11  Bruno Haible  <bruno@clisp.org>
60995
60996         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
60997         replacement string.
60998         Reported by Eric Blake.
60999
61000 2007-06-10  Bruno Haible  <bruno@clisp.org>
61001
61002         Prepare vasnprintf code for use with Unicode strings.
61003         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
61004         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
61005         TYPE_U32_STRING.
61006         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
61007         a_u32_string variants.
61008         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
61009         * lib/printf-args.c: Don't include config.h and the specification
61010         header if PRINTF_FETCHARGS is already defined.
61011         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
61012         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
61013         TYPE_U16_STRING, TYPE_U32_STRING.
61014         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
61015         u16_directive, u16_directives, u32_directive, u32_directives): New
61016         types.
61017         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
61018         New declarations.
61019         * lib/printf-parse.c: Don't include config.h and the specification
61020         header if PRINTF_PARSE is already defined. Eliminate the set of
61021         parameters for WIDE_CHAR_VERSION; the user of this file must provide
61022         them now. Include c-ctype.h.
61023         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
61024         directive and CHAR_T_ONLY_ASCII.
61025         * lib/vasnprintf.c: Don't include config.h and the specification header
61026         if VASNPRINTF is already defined.
61027         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
61028         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
61029         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
61030         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
61031         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
61032         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
61033         code accordingly.
61034         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
61035         pad_ourselves also in this case, with the 'c' and 's' directives, and
61036         with a different notion of "width".
61037         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
61038
61039 2007-06-10  Bruno Haible  <bruno@clisp.org>
61040
61041         * modules/unistr/u32-mbsnlen: New file.
61042         * lib/unistr/u32-mbsnlen.c: New file.
61043
61044         * modules/unistr/u16-mbsnlen: New file.
61045         * lib/unistr/u16-mbsnlen.c: New file.
61046
61047         * modules/unistr/u8-mbsnlen: New file.
61048         * lib/unistr/u8-mbsnlen.c: New file.
61049
61050         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
61051         declarations.
61052
61053 2007-06-10  Bruno Haible  <bruno@clisp.org>
61054
61055         * lib/string_.h (mbsnlen): New declaration.
61056         * lib/mbsnlen.c: New file.
61057         * m4/mbsnlen.m4: New file.
61058         * modules/mbsnlen: New file.
61059         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
61060         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
61061         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
61062
61063 2007-06-10  Bruno Haible  <bruno@clisp.org>
61064
61065         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
61066
61067 2007-06-10  Bruno Haible  <bruno@clisp.org>
61068
61069         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
61070         * lib/mbuiter.h: Likewise.
61071
61072 2007-06-10  Bruno Haible  <bruno@clisp.org>
61073
61074         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
61075         declaration.
61076
61077 2007-06-10  Karl Berry  <karl@gnu.org>
61078
61079         * config/srclist.txt: remove gettext entries, Bruno prefers
61080         to update individually.
61081
61082 2007-06-10  Bruno Haible  <bruno@clisp.org>
61083
61084         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
61085         'maxlen'. Ensure only length + width bytes are allocated, not
61086         length + 1 + width.
61087
61088 2007-06-09  Bruno Haible  <bruno@clisp.org>
61089
61090         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
61091         (CHAR_T): Remove macro.
61092         (VASNPRINTF): Update.
61093
61094 2007-06-09  Bruno Haible  <bruno@clisp.org>
61095
61096         * MODULES.html.sh (Unicode string functions): Add the new modules.
61097
61098         * modules/uniconv/u32-conv-to-enc: New file.
61099         * lib/uniconv/u32-conv-to-enc.c: New file.
61100         * modules/uniconv/u32-conv-to-enc-tests: New file.
61101         * tests/uniconv/test-u32-conv-to-enc.c: New file.
61102
61103         * modules/uniconv/u16-conv-to-enc: New file.
61104         * lib/uniconv/u16-conv-to-enc.c: New file.
61105         * lib/uniconv/u-conv-to-enc.h: New file.
61106         * modules/uniconv/u16-conv-to-enc-tests: New file.
61107         * tests/uniconv/test-u16-conv-to-enc.c: New file.
61108
61109         * modules/uniconv/u8-conv-to-enc: New file.
61110         * lib/uniconv/u8-conv-to-enc.c: New file.
61111         * modules/uniconv/u8-conv-to-enc-tests: New file.
61112         * tests/uniconv/test-u8-conv-to-enc.c: New file.
61113
61114         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
61115         u32_conv_to_encoding): New declarations.
61116
61117 2007-06-09  Bruno Haible  <bruno@clisp.org>
61118
61119         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
61120
61121 2007-06-09  Bruno Haible  <bruno@clisp.org>
61122
61123         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
61124         * modules/malloca: Renamed from modules/allocsa, updated.
61125         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
61126         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
61127         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
61128         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
61129         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
61130         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
61131         * modules/xmalloca: Renamed from modules/xallocsa, updated.
61132         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
61133         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
61134         * modules/c-strcasestr (Depends-on): Update.
61135         * lib/c-strcasestr.c: Update.
61136         * modules/c-strstr (Depends-on): Update.
61137         * lib/c-strstr.c: Update.
61138         * modules/canonicalize-lgpl (Depends-on): Update.
61139         * lib/canonicalize-lgpl.c: Update.
61140         * modules/clean-temp (Depends-on): Update.
61141         * lib/clean-temp.c: Update.
61142         * modules/csharpcomp (Depends-on): Update.
61143         * lib/csharpcomp.c: Update.
61144         * modules/csharpexec (Depends-on): Update.
61145         * lib/csharpexec.c: Update.
61146         * modules/javacomp (Depends-on): Update.
61147         * lib/javacomp.c: Update.
61148         * modules/javaexec (Depends-on): Update.
61149         * lib/javaexec.c: Update.
61150         * modules/mbscasestr (Depends-on): Update.
61151         * lib/mbscasestr.c: Update.
61152         * modules/mbsstr (Depends-on): Update.
61153         * lib/mbsstr.c: Update.
61154         * modules/setenv (Depends-on): Update.
61155         * lib/setenv.c: Update.
61156         * modules/strcasestr (Depends-on): Update.
61157         * lib/strcasestr.c: Update.
61158         * modules/striconveha (Depends-on): Update.
61159         * lib/striconveha.c: Update.
61160         * modules/relocatable-prog-wrapper (Files): Update.
61161         * lib/relocwrapper.c: Update.
61162         * build-aux/install-reloc: Update.
61163         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
61164
61165 2007-06-08  Bruno Haible  <bruno@clisp.org>
61166
61167         Port to uClibc.
61168         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
61169         * lib/fpurge.c (fpurge): Likewise.
61170         * lib/freading.c (freading): Likewise.
61171         * lib/fseeko.c (rpl_fseeko): Likewise.
61172         * lib/fseterr.c (fseterr): Likewise.
61173         * lib/fwriting.c (fwriting): Likewise.
61174         * tests/test-fflush.c (main): Avoid a failure on uClibc.
61175
61176 2007-06-08  Bruno Haible  <bruno@clisp.org>
61177
61178         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
61179         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
61180         * modules/gettext (Files): Add m4/intlmacosx.m4.
61181
61182 2007-06-07  Bruno Haible  <bruno@clisp.org>
61183
61184         * modules/localename-tests: New file.
61185         * tests/test-localename.c: New file.
61186
61187         New module 'localename'.
61188         * lib/localename.h: New file.
61189         * lib/localename.c: New file, from GNU gettext.
61190         * m4/localename.m4: New file.
61191         * modules/localename: New file.
61192
61193 2007-06-07  Bruno Haible  <bruno@clisp.org>
61194
61195         Work around the lack of <wchar.h> on some builds of uClibc.
61196         * doc/headers/wchar.texi: Update.
61197         * lib/wchar_.h: Include <wchar.h> only if it exists.
61198         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
61199         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
61200         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
61201         doesn't exist.
61202         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
61203         * modules/mbfile (Depends-on): Add wchar.
61204         * modules/mbiter (Depends-on): Likewise.
61205         * modules/mbuiter (Depends-on): Likewise.
61206         Reported by Simon Josefsson.
61207
61208 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
61209
61210         Work around problem reported by Steven M. Schweda in
61211         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
61212         Tru64 5.1B with the Compaq compiler environment installed declares
61213         an 'isblank' function but does not define it in the C library.
61214         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
61215         * lib/regex_internal.h (isblank): Likewise.
61216         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
61217         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61218
61219 2007-06-05  Bruno Haible  <bruno@clisp.org>
61220
61221         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
61222         ia64.
61223         * modules/printf-safe: New file.
61224         * modules/fprintf-posix (Depends-on): Add printf-safe.
61225         * modules/printf-posix (Depends-on): Likewise.
61226         * modules/snprintf-posix (Depends-on): Likewise.
61227         * modules/sprintf-posix (Depends-on): Likewise.
61228         * modules/vasnprintf-posix (Depends-on): Likewise.
61229         * modules/vasprintf-posix (Depends-on): Likewise.
61230         * modules/vfprintf-posix (Depends-on): Likewise.
61231         * modules/vprintf-posix (Depends-on): Likewise.
61232         * modules/vsnprintf-posix (Depends-on): Likewise.
61233         * modules/vsprintf-posix (Depends-on): Likewise.
61234         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
61235         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
61236         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
61237         "no" on i386, x86_64, ia64.
61238         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
61239         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61240         on i386, x86_64, ia64.
61241         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
61242         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61243         on i386, x86_64, ia64.
61244         * tests/test-vasnprintf-posix.c: Include float.h.
61245         (LDBL80_WORDS): New macro.
61246         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61247         on i386, x86_64, ia64.
61248         * tests/test-vasprintf-posix.c: Include float.h.
61249         (LDBL80_WORDS): New macro.
61250         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
61251         on i386, x86_64, ia64.
61252         * tests/test-snprintf-posix.c: Include float.h.
61253         * tests/test-sprintf-posix.c: Likewise.
61254         * tests/test-vsnprintf-posix.c: Likewise.
61255         * tests/test-vsprintf-posix.c: Likewise.
61256
61257 2007-06-05  Bruno Haible  <bruno@clisp.org>
61258
61259         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
61260         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
61261         non-IEEE numbers on i386, x86_64, ia64.
61262         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
61263         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
61264         * tests/test-isnanl.h: Include float.h.
61265         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
61266
61267 2007-06-05  Bruno Haible  <bruno@clisp.org>
61268
61269         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
61270         also the %a / %A. Handle the %a / %A code before this extra handling.
61271
61272 2007-06-05  Bruno Haible  <bruno@clisp.org>
61273
61274         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
61275         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
61276
61277 2007-06-05  Bruno Haible  <bruno@clisp.org>
61278
61279         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
61280         typo in variable name.
61281
61282 2007-06-05  Eric Blake  <ebb9@byu.net>
61283
61284         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
61285         Reported by Simon Josefsson.
61286
61287 2007-06-04  Bruno Haible  <bruno@clisp.org>
61288
61289         Avoid test failures on some PowerPC platforms.
61290         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
61291         Define differently for PowerPC.
61292         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
61293         Reported by Gary V. Vaughan <gary@gnu.org>.
61294
61295 2007-06-02  Bruno Haible  <bruno@clisp.org>
61296
61297         Fix test-stdint failure on FreeBSD/ia64.
61298         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
61299         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
61300         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
61301         * doc/headers/stdint.texi: Update.
61302
61303 2007-06-01  Bruno Haible  <bruno@clisp.org>
61304
61305         * tests/test-binary-io.c (main): Pass a third argument to open().
61306         Reported by Gary V. Vaughan <gary@gnu.org>.
61307
61308 2007-06-01  Bruno Haible  <bruno@clisp.org>
61309
61310         * doc/functions/frexpl.texi: Update for mingw.
61311
61312 2007-06-01  Bruno Haible  <bruno@clisp.org>
61313
61314         * tests/test-lseek.c (main): Disable test of errno for invalid third
61315         argument.
61316         * doc/functions/lseek.texi: Update.
61317         Reported by Gary V. Vaughan <gary@gnu.org>.
61318
61319 2007-05-28  Bruno Haible  <bruno@clisp.org>
61320
61321         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
61322
61323 2007-05-31  Eric Blake  <ebb9@byu.net>
61324
61325         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
61326         cross compiling.
61327
61328 2007-05-30  Eric Blake  <ebb9@byu.net>
61329         and Bruno Haible  <bruno@clisp.org>
61330
61331         Work around mingw test failures exposed by m4-1.4.9b.
61332         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
61333         * tests/test-unistd.c: Disable uid_t and git_t tests for the
61334         moment.
61335
61336 2007-05-30  Bruno Haible  <bruno@clisp.org>
61337
61338         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
61339         assuming that they are closed. Needed on HP-UX 11.
61340
61341 2007-05-29  Bruno Haible  <bruno@clisp.org>
61342
61343         Fix a problem with #include_next.
61344         * lib/dirent_.h: Split the double-inclusion guard.
61345         * lib/fcntl_.h: Likewise.
61346         * lib/float_.h: Likewise.
61347         * lib/iconv_.h: Likewise.
61348         * lib/inttypes_.h: Likewise.
61349         * lib/locale_.h: Likewise.
61350         * lib/math_.h: Likewise.
61351         * lib/netinet_in_.h: Likewise.
61352         * lib/search_.h: Likewise.
61353         * lib/signal_.h: Likewise.
61354         * lib/stdint_.h: Likewise.
61355         * lib/stdio_.h: Likewise.
61356         * lib/stdlib_.h: Likewise.
61357         * lib/string_.h: Likewise.
61358         * lib/sys_select_.h: Likewise.
61359         * lib/sys_socket_.h: Likewise.
61360         * lib/sys_stat_.h: Likewise.
61361         * lib/sys_time_.h: Likewise.
61362         * lib/sysexits_.h: Likewise.
61363         * lib/time_.h: Likewise.
61364         * lib/unistd_.h: Likewise.
61365         * lib/wchar_.h: Likewise.
61366         * lib/wctype_.h: Likewise.
61367
61368 2007-05-29  Bruno Haible  <bruno@clisp.org>
61369
61370         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
61371         for the moment.
61372
61373 2007-05-29  Bruno Haible  <bruno@clisp.org>
61374
61375         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
61376         invocation.
61377         Reported by Eric Blake.
61378
61379 2007-05-29  Bruno Haible  <bruno@clisp.org>
61380
61381         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
61382         compiling case.
61383
61384 2007-05-29  Eric Blake  <ebb9@byu.net>
61385             Bruno Haible  <bruno@clisp.org>
61386
61387         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
61388         cross compiles.
61389
61390 2007-05-28  Eric Blake  <ebb9@byu.net>
61391
61392         * modules/closein-tests (test_closein_LDADD): Support test on
61393         cygwin with libtool.
61394
61395 2007-05-28  Bruno Haible  <bruno@clisp.org>
61396
61397         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
61398         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61399         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61400         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61401         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61402         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61403         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61404         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61405         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61406
61407 2007-05-28  Eric Blake  <ebb9@byu.net>
61408
61409         Unconditionally include <config.h> in unit tests.
61410         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
61411         * tests/test-allocsa.c, tests/test-arcfour.c,
61412         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
61413         tests/test-array_list.c, tests/test-array_oset.c,
61414         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
61415         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
61416         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
61417         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
61418         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
61419         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
61420         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
61421         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
61422         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
61423         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
61424         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
61425         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
61426         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
61427         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
61428         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
61429         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
61430         test-md5.c, test-memmem.c, test-printf-posix.c,
61431         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
61432         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
61433         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
61434         test-strcasestr.c, test-striconv.c, test-striconveh.c,
61435         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
61436         test-vasnprintf-posix2.c, test-vasnprintf.c,
61437         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
61438         test-vfprintf-posix.c, test-vprintf-posix.c,
61439         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
61440         test-xvasprintf.c: Likewise.
61441
61442 2007-05-28  Bruno Haible  <bruno@clisp.org>
61443
61444         * gnulib-tool (func_import): Remember the --with-tests command-line
61445         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
61446         Reported by Eric Blake.
61447
61448 2007-05-28  Bruno Haible  <bruno@clisp.org>
61449
61450         * modules/ftell-tests: New file.
61451         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
61452         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
61453
61454         * lib/ftell.c: New file.
61455         * modules/ftell: New file.
61456         * m4/ftell.m4: New file.
61457         * doc/functions/ftell.texi: Update.
61458         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
61459         REPLACE_FTELL.
61460         * lib/stdio_.h (rpl_ftell): New declaration.
61461         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
61462         REPLACE_FTELL.
61463
61464 2007-05-28  Eric Blake  <ebb9@byu.net>
61465
61466         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
61467
61468 2007-05-28  Bruno Haible  <bruno@clisp.org>
61469
61470         * modules/fseek-tests: New file.
61471         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
61472         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
61473
61474         * lib/fseek.c: New file.
61475         * modules/fseek: New file.
61476         * m4/fseek.m4: New file.
61477         * doc/functions/fseek.texi: Update.
61478         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
61479         REPLACE_FSEEK.
61480         * lib/stdio_.h (rpl_fseek): New declaration.
61481         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
61482         REPLACE_FSEEK.
61483
61484 2007-05-28  Bruno Haible  <bruno@clisp.org>
61485
61486         * lib/stdio_.h (fflush): More comments.
61487
61488 2007-05-28  Bruno Haible  <bruno@clisp.org>
61489
61490         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
61491         runtime test.
61492
61493 2007-05-28  Eric Blake  <ebb9@byu.net>
61494
61495         Improve lseek module.
61496         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
61497         * lib/unistd_.h (lseek): Scale back link warning message.
61498         * tests/test-lseek.c: Beef up test.
61499         * tests/test-lseek.sh: Exercise more facets of lseek.
61500         Reported by Bruno Haible.
61501
61502 2007-05-28  Bruno Haible  <bruno@clisp.org>
61503
61504         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
61505         to define.
61506
61507 2007-05-27  Bruno Haible  <bruno@clisp.org>
61508
61509         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
61510
61511 2007-05-27  Bruno Haible  <bruno@clisp.org>
61512
61513         * modules/openmp: New file.
61514         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
61515         Noah Misch.
61516
61517 2007-05-26  Bruno Haible  <bruno@clisp.org>
61518
61519         * modules/chdir-long (Depends-on): Add fchdir.
61520         * modules/chdir-safer (Depends-on): Likewise.
61521         * modules/fts (Depends-on): Likewise.
61522         * modules/fts-lgpl (Depends-on): Likewise.
61523         * modules/openat (Depends-on): Likewise.
61524         * modules/savewd (Depends-on): Likewise.
61525
61526 2007-05-24  Eric Blake  <ebb9@byu.net>
61527
61528         Fix lseek on mingw.
61529         * modules/lseek: New module.
61530         * m4/lseek.m4: New file.
61531         * lib/lseek.c: New file.
61532         * modules/lseek-tests: New file.
61533         * tests/test-lseek.c: New file.
61534         * tests/test-lseek.sh: New file.
61535         * MODULES.html.sh: Document lseek module.
61536         * modules/fflush (Depends-on): Add lseek, fseeko.
61537         * modules/fseeko (Depends-on): Likewise.
61538         * modules/ftello (Depends-on): Likewise.
61539         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
61540         broken.
61541         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
61542         broken.
61543         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
61544         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
61545         * lib/ftello.c (rpl_ftello): Likewise.
61546         * tests/test-fseeko.c (main): Test this.
61547         * tests/test-fseeko.sh: Likewise.
61548         * tests/test-ftello.c (main): Likewise.
61549         * tests/test-ftello.sh: Likewise.
61550         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
61551         implies replacing fseek.
61552         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
61553         HAVE_FTELLO.
61554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
61555         * modules/unistd (Makefile.am): Likewise.
61556         * lib/unistd_.h (lseek): Declare a replacement.
61557         * doc/functions/lseek.texi (lseek): Document this fix.
61558         * doc/functions/fseek.texi (fseek): Likewise.
61559         * doc/functions/ftell.texi (ftell): Likewise.
61560
61561 2007-05-24  Bruno Haible  <bruno@clisp.org>
61562
61563         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
61564         in the printed representation of a NaN.
61565         * tests/test-vasprintf-posix.c (test_function): Likewise.
61566         * tests/test-snprintf-posix.h (test_function): Likewise.
61567         * tests/test-sprintf-posix.h (test_function): Likewise.
61568         Reported by Eric Blake.
61569
61570 2007-05-23  Eric Blake  <ebb9@byu.net>
61571
61572         Fix fseeko/ftello on cygwin 1.5.24.
61573         * doc/functions/fseeko.texi (fseeko): Document the fix.
61574         * doc/functions/ftello.texi (ftello): Document the fix.
61575         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
61576         * doc/functions/stdout.text (stdout): New file.
61577         * doc/functions/stderr.text (stderr): New file.
61578         * doc/gnulib.texi (Function Substitutes): Use new files.
61579         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
61580         prior to 1.7.0.
61581         * tests/test-ftello.c (main): Likewise for ftello.
61582         * tests/test-fseeko.sh: New file.
61583         * tests/test-ftello.sh: New file.
61584         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
61585         with seekable stdin.
61586         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
61587         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
61588         (gl_REPLACE_FSEEKO): New macro.
61589         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
61590         * modules/fseeko (Files): Distribute fseeko.c.
61591         * modules/ftello (Files): Distribute ftello.c.
61592         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
61593         mode.
61594         * lib/ftello.c (rpl_ftello): New file.
61595         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
61596         fseeko, ftello.
61597         (gl_STDIN_LARGE_OFFSET): New macro.
61598         * modules/stdio (Makefile.am): Perform the replacement.
61599         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
61600
61601 2007-05-23  Bruno Haible  <bruno@clisp.org>
61602
61603         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
61604         GNULIB_POSIXCHECK is defined.
61605
61606 2007-05-21  Bruno Haible  <bruno@clisp.org>
61607
61608         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
61609         Check also the output for NaN arguments. When cross-compiling, guess
61610         no on IRIX.
61611         * lib/vasnprintf.c: Update comments.
61612         * tests/test-vasnprintf-posix.c (strisnan): New function.
61613         (test_function): Use it.
61614         * tests/test-vasprintf-posix.c (strisnan): New function.
61615         (test_function): Use it.
61616         * tests/test-snprintf-posix.h (strisnan): New function.
61617         (test_function): Use it.
61618         * tests/test-sprintf-posix.h (strisnan): New function.
61619         (test_function): Use it.
61620         Reported by Eric Blake.
61621
61622 2007-05-20  Bruno Haible  <bruno@clisp.org>
61623
61624         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
61625         numbers that fails on BeOS.
61626         * doc/functions/frexpl.texi: Update.
61627
61628 2007-05-20  Jim Meyering  <jim@meyering.net>
61629
61630         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
61631         forced upon us by glibc-2.6.
61632
61633 2007-05-20  Bruno Haible  <bruno@clisp.org>
61634
61635         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
61636         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
61637         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
61638         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
61639         NEED_PRINTF_INFINITE.
61640         (is_infinitel): New function.
61641         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
61642         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
61643         gl_PREREQ_VASNPRINTF_INFINITE.
61644         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
61645         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61646         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
61647         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
61648         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
61649         gl_PREREQ_VASNPRINTF_INFINITE.
61650         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61651         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61652         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61653         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61654         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61655         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61656         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61657         * doc/functions/fprintf.texi: Update.
61658         * doc/functions/printf.texi: Update.
61659         * doc/functions/snprintf.texi: Update.
61660         * doc/functions/sprintf.texi: Update.
61661         * doc/functions/vfprintf.texi: Update.
61662         * doc/functions/vprintf.texi: Update.
61663         * doc/functions/vsnprintf.texi: Update.
61664         * doc/functions/vsprintf.texi: Update.
61665
61666 2007-05-20  Bruno Haible  <bruno@clisp.org>
61667
61668         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
61669         was not found in libc.
61670         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
61671
61672 2007-05-20  Bruno Haible  <bruno@clisp.org>
61673
61674         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
61675         printed as "-nan" instead of "nan".
61676         * tests/test-vasprintf-posix.c (test_function): Likewise.
61677         * tests/test-snprintf-posix.h (test_function): Likewise.
61678         * tests/test-sprintf-posix.h (test_function): Likewise.
61679         Needed for HP-UX 11.
61680
61681 2007-05-20  Jim Meyering  <jim@meyering.net>
61682
61683         Fix buggy test for the fchownat-deref bug.
61684         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
61685         symlink required for the run-test.  Without it, this test would
61686         always declare that fchownat doesn't work, and client code would
61687         unnecessarily use the replacement function with fixed libc.
61688         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
61689         Reported by Greg Schafer.
61690
61691 2007-05-19  Bruno Haible  <bruno@clisp.org>
61692
61693         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
61694         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
61695         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
61696         Needed for IRIX 6.5 and Solaris 2.5.1.
61697
61698 2007-05-19  Bruno Haible  <bruno@clisp.org>
61699
61700         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
61701         (test_function): Skip tests involving -0.0 on platforms where
61702         -0.0 = 0.0.
61703         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
61704         (test_function): Skip tests involving -0.0 on platforms where
61705         -0.0 = 0.0.
61706         * tests/test-snprintf-posix.h (have_minus_zero): New function.
61707         (test_function): Skip tests involving -0.0 on platforms where
61708         -0.0 = 0.0.
61709         * tests/test-sprintf-posix.h (have_minus_zero): New function.
61710         (test_function): Skip tests involving -0.0 on platforms where
61711         -0.0 = 0.0.
61712         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
61713         tests.
61714         * tests/test-printf-posix.h (test_function): Likewise.
61715         * tests/test-printf-posix.output: Remove all -0.0 related results.
61716         Needed for IRIX 6.5.
61717
61718 2007-05-19  Bruno Haible  <bruno@clisp.org>
61719
61720         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
61721         printed as "nan0x7fffffff" instead of "nan".
61722         * tests/test-vasprintf-posix.c (test_function): Likewise.
61723         * tests/test-snprintf-posix.h (test_function): Likewise.
61724         * tests/test-sprintf-posix.h (test_function): Likewise.
61725         * tests/test-fprintf-posix.h (NaN): Remove macro.
61726         (test_function): Remove all NaN related tests.
61727         * tests/test-printf-posix.h (NaN): Remove macro.
61728         (test_function): Remove all NaN related tests.
61729         * tests/test-printf-posix.output: Remove all NaN related results.
61730         Needed for IRIX 6.5.
61731
61732 2007-05-19  Bruno Haible  <bruno@clisp.org>
61733
61734         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
61735         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
61736
61737 2007-05-19  Bruno Haible  <bruno@clisp.org>
61738
61739         * lib/float_.h: New file.
61740         * m4/float_h.m4: New file.
61741         * modules/float: New file.
61742         * modules/isnanl (Dependencies): Add float.
61743         * modules/isnanl-nolibm (Dependencies): Likewise.
61744         * modules/mathl (Dependencies): Likewise.
61745         * modules/printf-frexpl (Dependencies): Likewise.
61746         * modules/signbit (Dependencies): Likewise.
61747         * modules/vasnprintf (Dependencies): Likewise.
61748         * doc/headers/float.texi: Update.
61749
61750 2007-05-19  Jim Meyering  <jim@meyering.net>
61751
61752         * lib/utimens.c (gl_futimens): Rename from futimens,
61753         now that glibc-2.6 declares futimens.
61754         * lib/utimens.h: Likewise.
61755
61756 2007-05-19  Bruno Haible  <bruno@clisp.org>
61757
61758         Avoid test failures on mingw.
61759         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
61760         * tests/test-printf-posix.sh: Likewise.
61761         * tests/test-vfprintf-posix.sh: Likewise.
61762         * tests/test-vprintf-posix.sh: Likewise.
61763
61764 2007-05-19  Bruno Haible  <bruno@clisp.org>
61765
61766         Fix *printf result for NaN, Inf, -0.0 on mingw.
61767         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
61768         * lib/vasnprintf.c: Include math.h and isnan.h.
61769         (is_infinite_or_zero): New function.
61770         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
61771         values in the %f, %F, %e, %E, %g, %G directives.
61772         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
61773         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61774         gl_PRINTF_INFINITE and test its result. Invoke
61775         gl_PREREQ_VASNPRINTF_INFINITE.
61776         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61777         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61778         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61779         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61780         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61781         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61782         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61783         * doc/functions/fprintf.texi: Update.
61784         * doc/functions/printf.texi: Update.
61785         * doc/functions/snprintf.texi: Update.
61786         * doc/functions/sprintf.texi: Update.
61787         * doc/functions/vfprintf.texi: Update.
61788         * doc/functions/vprintf.texi: Update.
61789         * doc/functions/vsnprintf.texi: Update.
61790         * doc/functions/vsprintf.texi: Update.
61791
61792 2007-05-19  Bruno Haible  <bruno@clisp.org>
61793
61794         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
61795         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
61796         Instead of multiplying with 10^k, set extra_zeroes to k.
61797         (scale10_round_long_double): Remove function.
61798
61799 2007-05-18  Bruno Haible  <bruno@clisp.org>
61800
61801         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
61802         introduced on 2007-05-06.
61803
61804 2007-05-18  Bruno Haible  <bruno@clisp.org>
61805
61806         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
61807         %g directives.
61808         * tests/test-vasprintf-posix.c (test_function): Likewise.
61809         * tests/test-snprintf-posix.h (test_function): Likewise.
61810         * tests/test-sprintf-posix.h (test_function): Likewise.
61811
61812 2007-05-18  Bruno Haible  <bruno@clisp.org>
61813
61814         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
61815         (strmatch): New function.
61816         (test_function): Test the %f directive on numbers of various exponents.
61817         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
61818         (strmatch): New function.
61819         (test_function): Test the %f directive on numbers of various exponents.
61820         * tests/test-snprintf-posix.h (strmatch): New function.
61821         (test_function): Test the %f directive on numbers of various exponents.
61822         * tests/test-sprintf-posix.h (strmatch): New function.
61823         (test_function): Test the %f directive on numbers of various exponents.
61824         * tests/test-snprintf-posix.c (SIZEOF): New macro.
61825         * tests/test-sprintf-posix.c (SIZEOF): New macro.
61826         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
61827         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
61828
61829 2007-05-18  Bruno Haible  <bruno@clisp.org>
61830
61831         Add support for 'long double' number output.
61832         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
61833         * lib/vasnprintf.c: Include math.h and float+.h.
61834         (mp_limb_t): New type.
61835         (GMP_LIMB_BITS): New macro.
61836         (mp_twolimb_t): New type.
61837         (GMP_TWOLIMB_BITS): New macro.
61838         (mpn_t): New type.
61839         (multiply, divide, convert_to_decimal, decode_long_double,
61840         scale10_round_long_double, scale10_round_decimal_long_double,
61841         floorlog10l): New functions.
61842         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
61843         for the %f, %F, %e, %E, %g, %G directives.
61844         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
61845         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61846         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
61847         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
61848         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61849         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61850         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61851         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61852         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61853         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61854         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61855         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
61856         * modules/snprintf-posix (Depends-on): Likewise.
61857         * modules/sprintf-posix (Depends-on): Likewise.
61858         * modules/vasnprintf-posix (Depends-on): Likewise.
61859         * modules/vasprintf-posix (Depends-on): Likewise.
61860         * modules/vfprintf-posix (Depends-on): Likewise.
61861         * modules/vsnprintf-posix (Depends-on): Likewise.
61862         * modules/vsprintf-posix (Depends-on): Likewise.
61863         * modules/vasnprintf (Files): Add lib/float+.h.
61864         * doc/functions/fprintf.texi: Update.
61865         * doc/functions/printf.texi: Update.
61866         * doc/functions/snprintf.texi: Update.
61867         * doc/functions/sprintf.texi: Update.
61868         * doc/functions/vfprintf.texi: Update.
61869         * doc/functions/vprintf.texi: Update.
61870         * doc/functions/vsnprintf.texi: Update.
61871         * doc/functions/vsprintf.texi: Update.
61872
61873 2007-05-18  Bruno Haible  <bruno@clisp.org>
61874
61875         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
61876
61877 2007-05-18  Bruno Haible  <bruno@clisp.org>
61878
61879         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
61880         for printing 64-bit integers. Needed for mingw.
61881
61882 2007-05-18  Bruno Haible  <bruno@clisp.org>
61883
61884         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61885         gl_FUNC_FREXPL_WORKS.
61886         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
61887
61888 2007-05-18  Bruno Haible  <bruno@clisp.org>
61889
61890         * modules/frexpl-nolibm-tests: New file.
61891
61892         * modules/frexpl-nolibm: New file.
61893         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
61894
61895 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61896
61897         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
61898         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
61899         GCC 4.2, which otherwise issues a lot of warnings.
61900         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
61901         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
61902         Likewise.
61903         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
61904         * modules/iconv_open (iconv.h): Likewise.
61905         * modules/locale (locale.h): Likewise.
61906         * modules/netinet_in (netinet/in.h): Likewise.
61907         * modules/sys_select (sys_select.h): Likewise.
61908         * modules/sys_socket (sys/socket.h): Likewise.
61909         * modules/sys_stat (sys/stat.h): Likewise.
61910         * modules/sysexits (sysexits.h): Likewise.
61911         * modules/unistd (unistd.h): Likewise.
61912
61913 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61914
61915         * modules/closein-tests (Makefile.am): Distribute
61916         `test-closein.sh'.
61917
61918 2007-05-17  Bruno Haible  <bruno@clisp.org>
61919
61920         * tests/test-printf-posix.output: Renamed from
61921         tests/test-fprintf-posix.out.
61922         * modules/fprintf-posix-tests: Update.
61923         * modules/printf-posix-tests: Update.
61924         * modules/vfprintf-posix-tests: Update.
61925         * modules/vprintf-posix-tests: Update.
61926         * tests/test-fprintf-posix.sh: Update.
61927         * tests/test-printf-posix.sh: Update.
61928         * tests/test-vfprintf-posix.sh: Update.
61929         * tests/test-vprintf-posix.sh: Update.
61930         Reported by Ralf Wildenhues.
61931
61932 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61933
61934         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
61935         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
61936         GCC 4.2, which otherwise issues a lot of warnings.
61937         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
61938         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
61939         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
61940         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
61941         it should no longer be needed.
61942         * lib/string_.h: Likewise.
61943         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
61944         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
61945         * modules/inttypes (inttypes.h): Likewise.
61946         * modules/math (math.h): Likewise.
61947         * modules/search (search.h): Likewise.
61948         * modules/signal (signal.h): Likewise.
61949         * modules/stdint (stdint.h): Likewise.
61950         * modules/stdio (stdio.h): Likewise.
61951         * modules/stdlib (stdlib.h): Likewise.
61952         * modules/string (string.h): Likewise.
61953         * modules/sys_time (sys/time.h): Likewise.
61954         * modules/time (time.h): Likewise.
61955         * modules/wchar (wchar.h): Likewise.
61956         * modules/wctype (wtype.h): Likewise.
61957
61958 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61959
61960         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
61961
61962 2007-05-13  Bruno Haible  <bruno@clisp.org>
61963
61964         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
61965         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61966         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
61967         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61968         (gl_PREREQ_STRTOK_R): Don't require it here.
61969
61970 2007-05-13  Bruno Haible  <bruno@clisp.org>
61971
61972         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
61973         when used in C++ mode.
61974
61975 2007-05-12  Bruno Haible  <bruno@clisp.org>
61976
61977         * lib/linebuffer.h: Tweak doc.
61978         * lib/linebuffer.c: Likewise.
61979
61980 2007-05-12  James Youngman  <jay@gnu.org>
61981
61982         * lib/linebuffer.c (readlinebuffer_delim): New function,
61983         like readlinebuffer, but use a caller-specified delimiter.
61984         (readlinebuffer): Just call readlinebuffer_delim with '\n'
61985         as the delimiter.
61986         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
61987
61988 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61989
61990         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
61991         * modules/openat (Files): Remove openat-die.c.
61992         (Depends-on): Add openat-die.
61993         * modules/openat-die: New module.
61994
61995 2007-05-06  Bruno Haible  <bruno@clisp.org>
61996
61997         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
61998         Update with info about Cygwin.
61999         * doc/functions/fprintf.texi: Update.
62000         * doc/functions/printf.texi: Update.
62001         * doc/functions/snprintf.texi: Update.
62002         * doc/functions/sprintf.texi: Update.
62003         * doc/functions/vfprintf.texi: Update.
62004         * doc/functions/vprintf.texi: Update.
62005         * doc/functions/vsnprintf.texi: Update.
62006         * doc/functions/vsprintf.texi: Update.
62007         Reported by Eric Blake.
62008
62009 2007-05-06  Bruno Haible  <bruno@clisp.org>
62010
62011         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
62012         padding ourselves for the floating-point directives.
62013         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
62014         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
62015         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62016         gl_PRINTF_FLAG_ZERO and test its result. Invoke
62017         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
62018         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62019         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
62020         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62021         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62022         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62023         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62024         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62025         * tests/test-snprintf-posix.h (test_function): Also check the width
62026         and some flags in the %f directive.
62027         * tests/test-sprintf-posix.h (test_function): Likewise.
62028         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62029         * tests/test-vasprintf-posix.c (test_function): Likewise.
62030         * doc/functions/fprintf.texi: Update.
62031         * doc/functions/printf.texi: Update.
62032         * doc/functions/snprintf.texi: Update.
62033         * doc/functions/sprintf.texi: Update.
62034         * doc/functions/vfprintf.texi: Update.
62035         * doc/functions/vprintf.texi: Update.
62036         * doc/functions/vsnprintf.texi: Update.
62037         * doc/functions/vsprintf.texi: Update.
62038
62039 2007-05-06  Bruno Haible  <bruno@clisp.org>
62040
62041         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
62042         pass the ' flag character to sprintf or snprintf.
62043         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
62044         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
62045         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62046         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
62047         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
62048         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62049         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
62050         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62051         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62052         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62053         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62054         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62055         * tests/test-snprintf-posix.h (test_function): Also check the grouping
62056         flag.
62057         * tests/test-sprintf-posix.h (test_function): Likewise.
62058         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62059         * tests/test-vasprintf-posix.c (test_function): Likewise.
62060         * doc/functions/fprintf.texi: Update.
62061         * doc/functions/printf.texi: Update.
62062         * doc/functions/snprintf.texi: Update.
62063         * doc/functions/sprintf.texi: Update.
62064         * doc/functions/vfprintf.texi: Update.
62065         * doc/functions/vprintf.texi: Update.
62066         * doc/functions/vsnprintf.texi: Update.
62067         * doc/functions/vsprintf.texi: Update.
62068
62069 2007-05-01  Bruno Haible  <bruno@clisp.org>
62070
62071         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
62072
62073 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
62074
62075         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
62076         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
62077
62078 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62079
62080         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
62081         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
62082         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
62083
62084 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
62085
62086         * lib/argp-help.c (struct hol_entry): New member `ord'.
62087         (HOL_ENTRY_PTRCMP): Use ord for comparison
62088         (hol_sort): Initialize ord.
62089
62090 2007-05-01  Bruno Haible  <bruno@clisp.org>
62091
62092         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
62093         Reported by Eric Blake.
62094         * doc/gnulib.texi (Function Substitutes): Update.
62095
62096 2007-05-01  Bruno Haible  <bruno@clisp.org>
62097
62098         * doc/functions.texi: Remove file, now redundant through
62099         doc/functions/*.texi.
62100
62101 2007-05-01  Bruno Haible  <bruno@clisp.org>
62102
62103         * modules/argp (Depends-on): Add sleep.
62104
62105 2007-05-01  Bruno Haible  <bruno@clisp.org>
62106
62107         * modules/sleep-tests: New file.
62108         * tests/test-sleep.c: New file.
62109
62110         * modules/sleep: New file.
62111         * lib/sleep.c: New file.
62112         * m4/sleep.m4: New file.
62113         * lib/unistd_.h (sleep): New declaration.
62114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
62115         HAVE_SLEEP.
62116         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
62117         * doc/functions/sleep.texi: Document the sleep module.
62118
62119 2007-05-01  Bruno Haible  <bruno@clisp.org>
62120
62121         * lib/sigprocmask.h: Remove file.
62122         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
62123         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
62124         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
62125         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
62126         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
62127         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
62128         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
62129         HAVE_SIGSET_T as a shell variable.
62130         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
62131         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
62132         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
62133         (Depends-on): Add signal. Remove verify.
62134         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
62135         (Include): Mention <signal.h> instead of sigprocmask.h.
62136         * NEWS: Mention the change.
62137         * lib/fatal-signal.c: Don't include sigprocmask.h.
62138
62139 2007-05-01  Bruno Haible  <bruno@clisp.org>
62140
62141         * modules/signal: New file.
62142         * lib/signal_.h: New file.
62143         * m4/signal_h.m4: New file.
62144
62145 2007-05-01  Bruno Haible  <bruno@clisp.org>
62146
62147         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
62148         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
62149         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
62150         HAVE_WCTYPE_CTMP_BUG into wctype.h.
62151
62152 2007-05-01  Bruno Haible  <bruno@clisp.org>
62153
62154         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
62155         configure time.
62156         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
62157         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
62158         * modules/sys_stat (Makefile.am): Substitute their values into
62159         sys/stat.h.
62160
62161 2007-05-01  Bruno Haible  <bruno@clisp.org>
62162
62163         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
62164         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
62165         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
62166
62167 2007-05-01  Bruno Haible  <bruno@clisp.org>
62168
62169         * doc/header/assert.texi: Undo last change: don't mention the gnulib
62170         'assert' module here.
62171
62172 2007-05-01  Bruno Haible  <bruno@clisp.org>
62173
62174         * doc/functions/*.texi: New files.
62175         * doc/functions/google-ranking.txt: New file.
62176         * doc/gnulib.texi (Function Substitutes): New chapter.
62177         (ctime, inet_ntoa): Remove sections.
62178         * doc/ctime.texi: Remove file.
62179         * doc/inet_ntoa.texi: Remove file.
62180         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
62181         dependencies.
62182         (%.info): New rule, specifying a --reference-limit.
62183
62184 2007-05-01  Bruno Haible  <bruno@clisp.org>
62185
62186         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
62187
62188 2007-05-01  Bruno Haible  <bruno@clisp.org>
62189
62190         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
62191         the portability of 'mkdir' to mingw systems.
62192
62193 2007-05-01  Bruno Haible  <bruno@clisp.org>
62194
62195         * doc/headers/google-ranking.txt: New file.
62196
62197 2007-04-30  Eric Blake  <ebb9@byu.net>
62198
62199         Prefer fseeko to fseek.
62200         * modules/getpass (Depends-on): Add fseeko.
62201         * lib/getpass.c (getpass): Use fseeko, not fseek.
62202
62203 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
62204
62205         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
62206         assumes the sorting is stable, while most qsort implementations
62207         are not.  Use argument addresses to ensure they never compare as
62208         equal.
62209
62210         * tests/test-argp-2.sh (usage-indent test): Fix output
62211         (func_compare): Restore diff options
62212         * tests/test-argp.c: Restore #include "progname.h"
62213
62214 2007-04-29  Bruno Haible  <bruno@clisp.org>
62215
62216         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
62217         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62218         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
62219         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62220         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
62221         (configure.ac): Define CHECK_SNPRINTF_POSIX.
62222         (TESTS, check_PROGRAMS): Add test-snprintf.
62223         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
62224         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
62225         (TESTS, check_PROGRAMS): Add test-vsnprintf.
62226         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
62227         assertions that fail on HP-UX, OSF/1, or IRIX.
62228         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
62229
62230 2007-04-29  Bruno Haible  <bruno@clisp.org>
62231
62232         * MODULES.html.sh (posix_functions): Remove 'contents'.
62233
62234 2007-04-29  Karl Berry  <karl@gnu.org>
62235
62236         * config/srclist.txt (gendocs_template_min): new entry.
62237
62238 2007-04-29  Bruno Haible  <bruno@clisp.org>
62239
62240         Work around fpurge bug on BSD systems.
62241         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
62242         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
62243         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
62244         fpurge to rpl_fpurge if the system already has this function.
62245         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
62246         the case where the system already has this function. Correct invariants
62247         on BSD systems.
62248         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
62249         BSD systems.
62250
62251 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
62252
62253         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
62254         proposed by Sven Verdoolaege.
62255
62256         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
62257         options.
62258         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
62259         (usage and help tests): Update
62260
62261 2007-04-29  Bruno Haible  <bruno@clisp.org>
62262
62263         * tests/test-fflush.c (main): Use a file of size 17, not 10.
62264         Print more information in case of failure. Disable a test on BeOS.
62265
62266 2007-04-29  Bruno Haible  <bruno@clisp.org>
62267
62268         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
62269         This helps debugging on systems on which no gdb is available.
62270
62271 2007-04-29  Bruno Haible  <bruno@clisp.org>
62272
62273         * lib/freading.h: Improve comments.
62274         * lib/fwriting.h: Likewise.
62275         * tests/test-freading.c (main): Don't check freading immediately after
62276         repositioning. Needed for glibc.
62277
62278 2007-04-29  Bruno Haible  <bruno@clisp.org>
62279
62280         * lib/freading.c (freading): Trivial simplification.
62281
62282 2007-04-28  Bruno Haible  <bruno@clisp.org>
62283
62284         * tests/test-fwriting.c (main): Also test the interaction between
62285         fflush and fwriting.
62286         * modules/fwriting-tests (Depends-on): Add fflush.
62287
62288         * tests/test-freading.c (main): Also test the interaction between
62289         fflush and freading.
62290         * modules/freading-tests (Depends-on): Add fflush.
62291
62292 2007-04-28  Bruno Haible  <bruno@clisp.org>
62293
62294         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
62295         fseeko and ftello.
62296         Suggested by Eric Blake.
62297
62298 2007-04-28  Jim Meyering  <jim@meyering.net>
62299
62300         Avoid false-negative in gl_STDINT_H's C99 conformance test.
62301         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
62302         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
62303
62304 2007-04-27  Eric Blake  <ebb9@byu.net>
62305
62306         * doc/headers/assert.texi (assert.h): Document assert module use.
62307
62308 2007-04-27  Bruno Haible  <bruno@clisp.org>
62309
62310         * doc/headers/*.texi: New files.
62311         * doc/gnulib.texi (Header File Substitutes): New chapter.
62312         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
62313         dependencies.
62314         (standards.info ,standards.html, standards.dvi): Update dependencies.
62315         (mostlyclean, clean): New targets.
62316
62317 2007-04-27  Bruno Haible  <bruno@clisp.org>
62318
62319         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
62320         * modules/sysexits (Files, Makefile.am): Update.
62321
62322         * lib/sys_socket_.h: Renamed from lib/socket_.h.
62323         * modules/sys_socket (Files, Makefile.am): Update.
62324
62325         * lib/sys_stat_.h: Renamed from lib/stat_.h.
62326         * modules/sys_stat (Files, Makefile.am): Update.
62327
62328 2007-04-27  Eric Blake  <ebb9@byu.net>
62329
62330         * lib/freading.h: Improve comments.
62331         * lib/fwriting.h: Likewise.
62332         * lib/fflush.c: Likewise.
62333
62334         Fix closein for mingw.
62335         * modules/closein-tests: Add tests for closein.
62336         * tests/test-closein.c: New file.
62337         * tests/test-closein.sh: Likewise.
62338         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
62339         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
62340
62341 2007-04-27  Bruno Haible  <bruno@clisp.org>
62342
62343         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
62344         version is < 6.
62345         * lib/math_.h [__DECC]: Likewise.
62346         * lib/stdio_.h [__DECC]: Likewise.
62347         * lib/stdlib_.h [__DECC]: Likewise.
62348         * lib/string_.h [__DECC]: Likewise.
62349         * lib/time_.h [__DECC]: Likewise.
62350         * lib/wchar_.h [__DECC]: Likewise.
62351         * lib/wctype_.h [__DECC]: Likewise.
62352
62353 2007-04-27  Bruno Haible  <bruno@clisp.org>
62354
62355         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
62356
62357 2007-04-27  Bruno Haible  <bruno@clisp.org>
62358
62359         * lib/fflush.c: Add comments.
62360         * modules/fpurge-tests (Depends-on): Add fflush.
62361         * modules/freadable-tests (Depends-on): Likewise.
62362         * modules/fwritable-tests (Depends-on): Likewise.
62363
62364 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
62365
62366         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
62367         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
62368         Report by Bruno Haible <bruno@clisp.org>.
62369
62370 2007-04-26  Eric Blake  <ebb9@byu.net>
62371
62372         Fix fflush on mingw.
62373         * modules/fflush (Depends-on): Add freading.
62374         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
62375         but unread data.
62376
62377 2007-04-26  Eric Blake  <ebb9@byu.net>
62378         and Bruno Haible  <bruno@clisp.org>
62379
62380         Implement freading and fwriting.
62381         * lib/freading.c: New file.
62382         * lib/freading.h: Likewise.
62383         * m4/freading.m4: Likewise.
62384         * modules/freading: Likewise.
62385         * modules/freading-tests: Likewise.
62386         * tests/test-freading.c: Likewise.
62387         * lib/fwriting.c: New file.
62388         * lib/fwriting.h: Likewise.
62389         * m4/fwriting.m4: Likewise.
62390         * modules/fwriting: Likewise.
62391         * modules/fwriting-tests: Likewise.
62392         * tests/test-fwriting.c: Likewise.
62393         * MODULES.html.sh (File stream based Input/Output): Mention them.
62394
62395 2007-04-26  Bruno Haible  <bruno@clisp.org>
62396
62397         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
62398         'long' when we assume it.
62399         Suggested by Eric Blake.
62400
62401 2007-04-26  Bruno Haible  <bruno@clisp.org>
62402
62403         Ensure fseeko, ftello are declared on glibc systems.
62404         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
62405         * modules/fseeko (configure.ac-early): Likewise.
62406         * modules/ftello (configure.ac-early): Likewise.
62407         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
62408         AC_FUNC_FSEEKO for this.
62409         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
62410         (gl_CHECK_FSEEKO): Remove macro.
62411
62412 2007-04-26  Bruno Haible  <bruno@clisp.org>
62413
62414         * tests/test-fflush.c (main): Also check the ftell result after
62415         fflush and fseek/fseeko.
62416         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
62417         file descriptor position cache in the stream.
62418         * lib/fseeko.c (rpl_fseeko): Likewise.
62419
62420 2007-04-26  Bruno Haible  <bruno@clisp.org>
62421
62422         * modules/fflush-tests (Depends-on): Add fseeko.
62423
62424 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
62425             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62426
62427         * lib/argz_.h: ensure error_t definition is obtained in same
62428         mechanism system argz.h would have.
62429         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
62430         argz facilities are known bad.  Err on the side of caution if
62431         cross-compiling.
62432
62433 2007-04-25  Eric Blake  <ebb9@byu.net>
62434
62435         * lib/fpurge.c (includes): Use stdlib.h for free.
62436         * tests/test-fflush.c (main): Also test fflush-fseeko.
62437
62438 2007-04-25  Bruno Haible  <bruno@clisp.org>
62439
62440         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
62441         * lib/fseeko.c: New file.
62442         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
62443         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
62444         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
62445         gl_FUNC_FSEEKO.
62446         (gl_FUNC_FSEEKO): Invoke it.
62447         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
62448         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
62449         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
62450
62451 2007-04-25  Bruno Haible  <bruno@clisp.org>
62452
62453         * modules/fflush (Depends-on): Add ftello.
62454
62455 2007-04-25  Bruno Haible  <bruno@clisp.org>
62456
62457         * modules/ftello-tests: New file.
62458         * tests/test-ftello.c: New file.
62459
62460         * modules/ftello: New file.
62461         * m4/ftello.m4: New file.
62462         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
62463         HAVE_FTELLO.
62464         * lib/stdio_.h (ftello): New declaration.
62465         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
62466         HAVE_FTELLO.
62467
62468 2007-04-25  Bruno Haible  <bruno@clisp.org>
62469
62470         * modules/fseeko-tests: New file.
62471         * tests/test-fseeko.c: New file.
62472
62473         * modules/fseeko: New file.
62474         * m4/fseeko.m4: New file.
62475         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
62476         HAVE_FSEEKO.
62477         * lib/stdio_.h (fseeko): New declaration.
62478         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
62479         HAVE_FSEEKO.
62480
62481 2007-04-25  Bruno Haible  <bruno@clisp.org>
62482
62483         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
62484
62485 2007-04-25  Bruno Haible  <bruno@clisp.org>
62486
62487         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
62488         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
62489         * tests/test-unistd.c: Likewise.
62490         * tests/test-fcntl.c: Likewise.
62491
62492 2007-04-23  Eric Blake  <ebb9@byu.net>
62493
62494         * lib/fflush.c: Fix missing include.
62495         Reported by Bruno Haible.
62496
62497 2007-04-23  Bruno Haible  <bruno@clisp.org>
62498
62499         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
62500         Reported by Eric Blake.
62501
62502 2007-04-23  Bruno Haible  <bruno@clisp.org>
62503
62504         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
62505
62506 2007-04-23  Bruno Haible  <bruno@clisp.org>
62507
62508         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
62509
62510 2007-04-23  Bruno Haible  <bruno@clisp.org>
62511
62512         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
62513         Needed on HP-UX 11.
62514
62515 2007-04-16  Eric Blake  <ebb9@byu.net>
62516
62517         Make fflush rely on fpurge.
62518         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
62519         open coding all variants.
62520         * modules/fflush (Depends-on): Add fpurge and unistd.
62521         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
62522         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
62523
62524         Fix --with-tests compilation on cygwin.
62525         * modules/argmatch-tests (Makefile.am): List gnulib library first
62526         in LDADD.
62527         * modules/argp-tests (Makefile.am): Likewise.
62528         * modules/array-list-tests (Makefile.am): Likewise.
62529         * modules/array-oset-tests (Makefile.am): Likewise.
62530         * modules/avltree-list-tests (Makefile.am): Likewise.
62531         * modules/avltree-oset-tests (Makefile.am): Likewise.
62532         * modules/avltreehash-list-tests (Makefile.am): Likewise.
62533         * modules/carray-list-tests (Makefile.am): Likewise.
62534         * modules/dirname-tests (Makefile.am): Likewise.
62535         * modules/frexp-tests (Makefile.am): Likewise.
62536         * modules/isnanl-tests (Makefile.am): Likewise.
62537         * modules/linked-list-tests (Makefile.am): Likewise.
62538         * modules/linkedhash-list-tests (Makefile.am): Likewise.
62539         * modules/lock-tests (Makefile.am): Likewise.
62540         * modules/rbtree-list-tests (Makefile.am): Likewise.
62541         * modules/rbtree-oset-tests (Makefile.am): Likewise.
62542         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
62543         * modules/tls-tests (Makefile.am): Likewise.
62544         * modules/tsearch-tests (Makefile.am): Likewise.
62545         * modules/xvasprintf-tests (Makefile.am): Likewise.
62546
62547         Fix fpurge for cygwin.
62548         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
62549         value.
62550         * modules/fpurge-tests (Depends-on): Clean up trash.
62551
62552 2007-04-16  Simon Josefsson  <simon@josefsson.org>
62553
62554         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
62555
62556         * m4/autobuild.m4: Re-indent.
62557
62558 2007-04-13  Bruno Haible  <bruno@clisp.org>
62559
62560         * modules/fpurge-tests: New file.
62561         * tests/test-fpurge.c: New file.
62562
62563         * modules/fpurge: New file.
62564         * lib/fpurge.h: New file.
62565         * lib/fpurge.c: New file.
62566         * m4/fpurge.m4: New file.
62567
62568 2007-04-13  Bruno Haible  <bruno@clisp.org>
62569
62570         * modules/fbufmode-tests: New file.
62571         * tests/test-fbufmode.c: New file.
62572
62573         * modules/fbufmode: New file.
62574         * lib/fbufmode.h: New file.
62575         * lib/fbufmode.c: New file.
62576         * m4/fbufmode.m4: New file.
62577
62578 2007-04-13  Bruno Haible  <bruno@clisp.org>
62579
62580         * modules/fwritable-tests: New file.
62581         * tests/test-fwritable.c: New file.
62582
62583         * modules/fwritable: New file.
62584         * lib/fwritable.h: New file.
62585         * lib/fwritable.c: New file.
62586         * m4/fwritable.m4: New file.
62587
62588 2007-04-13  Bruno Haible  <bruno@clisp.org>
62589
62590         * modules/freadable-tests: New file.
62591         * tests/test-freadable.c: New file.
62592
62593         * modules/freadable: New file.
62594         * lib/freadable.h: New file.
62595         * lib/freadable.c: New file.
62596         * m4/freadable.m4: New file.
62597
62598 2007-04-13  Bruno Haible  <bruno@clisp.org>
62599
62600         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
62601         MOSTLYCLEANFILES.
62602
62603 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62604
62605         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
62606         gzip bootstrap.conf to avoid dragging in i18n machinery.
62607         (gnulib_tool_option): Use it.
62608
62609 2007-04-13  Bruno Haible  <bruno@clisp.org>
62610
62611         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
62612         %F directives.
62613         * tests/test-vasprintf-posix.c (test_function): Likewise.
62614         * tests/test-snprintf-posix.h (test_function): Likewise.
62615         * tests/test-sprintf-posix.h (test_function): Likewise.
62616         * tests/test-fprintf-posix.h (test_function): Likewise.
62617         * tests/test-printf-posix.h (test_function): Likewise.
62618         * tests/test-fprintf-posix.out: Likewise.
62619
62620 2007-04-13  Bruno Haible  <bruno@clisp.org>
62621
62622         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
62623         * modules/tls-tests (configure.ac): Likewise.
62624         Reported by Arto C. Nirkko <anirkko@insel.ch>.
62625
62626 2007-04-13  Bruno Haible  <bruno@clisp.org>
62627
62628         * lib/tls.c (glthread_tls_get): Fix return type.
62629         Patch by Arto C. Nirkko <anirkko@insel.ch>.
62630
62631 2007-04-12  Eric Blake  <ebb9@byu.net>
62632
62633         * modules/gettime (Depends-on): Remove gettime.
62634         Reported by Dmitry V. Levin.
62635
62636 2007-04-12  Bruno Haible  <bruno@clisp.org>
62637
62638         * modules/fflush (Include): Mention <stdio.h>.
62639         * modules/strtoimax (Include): Mention <inttypes.h>.
62640         * modules/strtoumax (Include): Likewise.
62641
62642 2007-04-12  Eric Blake  <ebb9@byu.net>
62643
62644         * .cvsignore: New file.
62645         * .gitignore: Likewise.
62646
62647 2007-04-12  Bruno Haible  <bruno@clisp.org>
62648
62649         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
62650         not before, since $(LDADD) often contains libgnu.a.
62651         * modules/striconv-tests (test_striconv_LDADD): Likewise.
62652         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
62653         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
62654         Needed on Cygwin.
62655
62656 2007-04-12  Eric Blake  <ebb9@byu.net>
62657
62658         Work around glibc's failure to flush stdin on fclose.
62659         * lib/closein.c (close_stdin): Flush stdin before closing.
62660
62661         Work around glibc's failure to reset seekable stdin on exit.
62662         * modules/closein: New module.
62663         * lib/closein.c: New file.
62664         * lib/closein.h: Likewise.
62665         * m4/closein.m4: Likewise.
62666         * MODULES.html.sh (File stream based Input/Output): Document it.
62667
62668 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62669
62670         * gnulib-tool: Rename generated 'autobuild' script to
62671         'do-autobuild' in --create-megatestdir output.
62672
62673         * doc/gnulib.texi (Build robot for gnulib): Fix.
62674
62675 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62676
62677         * modules/sysexits (Depends-on): Add absolute-header.
62678
62679 2007-04-12  Eric Blake  <ebb9@byu.net>
62680
62681         No need to preserve errno on success.
62682         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
62683         Reported by Bruno Haible.
62684
62685 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62686
62687         * MODULES.html.sh (Support for maintaining and releasing
62688         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
62689
62690 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62691
62692         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
62693
62694 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62695
62696         * modules/autobuild: New module.
62697
62698         * m4/autobuild.m4: New file.
62699
62700 2007-04-11  Bruno Haible  <bruno@clisp.org>
62701
62702         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
62703         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
62704         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
62705         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
62706         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62707         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62708         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62709         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62710         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62711         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62712         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
62713         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62714         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62715         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
62716         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62717         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62718         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
62719         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62720         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62721         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
62722         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62723         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62724         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
62725         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62726         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62727         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
62728         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62729         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62730         Reported by Eric Blake.
62731
62732 2007-04-11  Bruno Haible  <bruno@clisp.org>
62733
62734         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
62735
62736 2007-04-10  Bruno Haible  <bruno@clisp.org>
62737
62738         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
62739         for NaN and Infinity. Needed on FreeBSD 6.1.
62740         * tests/test-vasnprintf-posix.c (test_function): Undo last change
62741         regarding results for "%010a" of Infinity and NaN.
62742         * tests/test-vasprintf-posix.c (test_function): Likewise.
62743         * tests/test-snprintf-posix.h (test_function): Likewise.
62744         * tests/test-sprintf-posix.h (test_function): Likewise.
62745         * tests/test-fprintf-posix.h (test_function): Likewise.
62746         * tests/test-printf-posix.h (test_function): Likewise.
62747         * tests/test-fprintf-posix.out: Likewise.
62748
62749 2007-04-10  Bruno Haible  <bruno@clisp.org>
62750
62751         * modules/locale-tests: New file.
62752         * tests/test-locale.c: New file.
62753
62754         * modules/locale: New file.
62755         * lib/locale_.h: New file.
62756         * m4/locale_h.m4: New file.
62757
62758 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
62759             Bruno Haible  <bruno@clisp.org>
62760
62761         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
62762         be determined, test for availability of the copysignf, copysign,
62763         copysignl functions.
62764         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
62765         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
62766         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
62767
62768 2007-04-09  Eric Blake  <ebb9@byu.net>
62769
62770         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
62771         * modules/stdio (Makefile.am): Support fflush.
62772         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
62773         * modules/fflush: New file.
62774         * lib/fflush.c: Likewise.
62775         * m4/fflush.m4: Likewise.
62776         * modules/fflush-tests: New test.
62777         * tests/test-fflush.c: Likewise.
62778         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
62779
62780 2007-04-06  Bruno Haible  <bruno@clisp.org>
62781
62782         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
62783         (VASNPRINTF): Use signbit for faster determination whether to print a
62784         minus sign.
62785         * modules/vasnprintf (Files): Remove lib/float+.h.
62786         * modules/fprintf-posix (Depends-on): Add signbit.
62787         * modules/snprintf-posix (Depends-on): Likewise.
62788         * modules/sprintf-posix (Depends-on): Likewise.
62789         * modules/vasnprintf-posix (Depends-on): Likewise.
62790         * modules/vasprintf-posix (Depends-on): Likewise.
62791         * modules/vfprintf-posix (Depends-on): Likewise.
62792         * modules/vsnprintf-posix (Depends-on): Likewise.
62793         * modules/vsprintf-posix (Depends-on): Likewise.
62794
62795 2007-04-06  Bruno Haible  <bruno@clisp.org>
62796
62797         * tests/test-frexp.c (main): Test also the sign bit of zero results.
62798         * tests/test-frexpl.c (main): Likewise.
62799         * tests/test-ldexpl.c (main): Likewise.
62800         * modules/frexp-tests (Depends-on): Add signbit.
62801         * modules/frexpl-tests (Depdends-on): Likewise.
62802         * modules/ldexpl-tests (Depdends-on): Likewise.
62803
62804 2007-04-06  Bruno Haible  <bruno@clisp.org>
62805
62806         * modules/signbit-tests: New file.
62807         * tests/test-signbit.c: New file.
62808
62809         * modules/signbit: New file.
62810         * lib/signbitf.c: New file.
62811         * lib/signbitd.c: New file.
62812         * lib/signbitl.c: New file.
62813         * m4/signbit.m4: New file.
62814         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
62815         (signbit): New macro.
62816         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
62817         REPLACE_SIGNBIT.
62818         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
62819         REPLACE_FREXPL into math.h.
62820
62821 2007-04-06  Bruno Haible  <bruno@clisp.org>
62822
62823         * modules/isnanf-nolibm-tests: New file.
62824         * tests/test-isnanf.c: New file.
62825
62826         * modules/isnanf-nolibm: New file.
62827         * lib/isnanf.h: New file.
62828         * lib/isnanf.c: New file.
62829         * lib/isnan.c: Consider the USE_FLOAT macro.
62830         * m4/isnanf.m4: New file.
62831
62832 2007-04-06  Bruno Haible  <bruno@clisp.org>
62833
62834         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
62835         (Link): New section.
62836
62837         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
62838
62839 2007-04-06  Bruno Haible  <bruno@clisp.org>
62840
62841         Assume the 'long double' type.
62842         * m4/longdouble.m4: Remove file.
62843         * config/srclist.txt: Don't mention longdouble.m4.
62844         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
62845         * lib/float+.h: Likewise.
62846         * lib/frexp.c: Likewise.
62847         * lib/printf-args.h: Likewise.
62848         * lib/printf-args.c: Likewise.
62849         * lib/printf-frexp.c: Likewise.
62850         * lib/printf-parse.c: Likewise.
62851         * lib/vasnprintf.c: Likewise.
62852         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
62853         * m4/intl.m4: Likewise.
62854         * m4/isnanl.m4: Likewise.
62855         * m4/printf.m4: Likewise.
62856         * m4/printf-frexpl.m4: Likewise.
62857         * m4/vasnprintf.m4: Likewise.
62858         * modules/allocsa (Files): Remove m4/longdouble.m4.
62859         * modules/gettext (Files): Likewise.
62860         * modules/relocatable-prog-wrapper (Files): Likewise.
62861         * modules/vasnprintf (Files): Likewise.
62862         * modules/isnanl (Files): Likewise.
62863         (Include): Simplify.
62864         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
62865         (Include): Simplify.
62866         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
62867         (Include): Simplify.
62868         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
62869         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62870         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
62871         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62872         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
62873         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62874         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
62875         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62876         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
62877         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62878         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
62879         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62880         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
62881         * tests/test-isnanl.c: Likewise.
62882         * tests/test-snprintf-posix.h: Likewise.
62883         * tests/test-sprintf-posix.h: Likewise.
62884         * tests/test-vasnprintf-posix.c: Likewise.
62885         * tests/test-vasnprintf-posix2.c: Likewise.
62886         * tests/test-vasprintf-posix.c: Likewise.
62887
62888 2007-04-06  Bruno Haible  <bruno@clisp.org>
62889
62890         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
62891         * lib/math_.h [__DECC]: Include the overridden include file through
62892         #include_next, outside the double-inclusion guard.
62893         * lib/stdio_.h [__DECC]: Likewise.
62894         * lib/stdlib_.h [__DECC]: Likewise.
62895         * lib/string_.h [__DECC]: Likewise.
62896         * lib/time_.h [__DECC]: Likewise.
62897         * lib/wchar_.h [__DECC]: Likewise.
62898         * lib/wctype_.h [__DECC]: Likewise.
62899         * lib/inttypes_.h [__DECC]: Likewise.
62900         Reported by Albert Chin <china@thewrittenword.com> in
62901         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
62902
62903 2007-04-04  Eric Blake  <ebb9@byu.net>
62904
62905         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
62906         1.5.x.
62907
62908 2007-04-04  Bruno Haible  <bruno@clisp.org>
62909
62910         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
62911         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
62912
62913 2007-04-04  Bruno Haible  <bruno@clisp.org>
62914
62915         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
62916         results for "%010a" of Infinity and NaN.
62917         * tests/test-vasprintf-posix.c (test_function): Likewise.
62918         * tests/test-snprintf-posix.h (test_function): Likewise.
62919         * tests/test-sprintf-posix.h (test_function): Likewise.
62920         * tests/test-fprintf-posix.h (test_function): Remove these tests.
62921         * tests/test-printf-posix.h (test_function): Likewise.
62922         * tests/test-fprintf-posix.out: Update.
62923         Needed for FreeBSD 6.1.
62924
62925 2007-04-04  Bruno Haible  <bruno@clisp.org>
62926
62927         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
62928         directly used by the gnulib modules nor by gnulib-tool.
62929
62930 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
62931
62932         * DEPENDENCIES: Give overall description of version dependency
62933         desirability.  Use more-typical names for apps.
62934         Add shell, coreutils, diffutils, grep, tar, gzip.
62935
62936 2007-04-04  Simon Josefsson  <simon@josefsson.org>
62937
62938         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
62939
62940 2007-04-04  Karl Berry  <karl@gnu.org>
62941
62942         * MODULES.html.sh (func_module): missing '.
62943
62944 2007-04-03  Bruno Haible  <bruno@clisp.org>
62945
62946         * modules/argmatch-tests (Makefile.am): New variable
62947         test_argmatch_LDADD.
62948         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
62949         * modules/array-list-tests (Makefile.am): New variable
62950         test_array_list_LDADD.
62951         * modules/array-oset-tests (Makefile.am): New variable
62952         test_array_oset_LDADD.
62953         * modules/avltree-list-tests (Makefile.am): New variable
62954         test_avltree_list_LDADD.
62955         * modules/avltree-oset-tests (Makefile.am): New variable
62956         test_avltree_oset_LDADD.
62957         * modules/avltreehash-list-tests (Makefile.am): New variable
62958         test_avltreehash_list_LDADD.
62959         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
62960         test_canonicalize_lgpl_LDADD.
62961         * modules/carray-list-tests (Makefile.am): New variable
62962         test_carray_list_LDADD.
62963         * modules/dirname-tests (Makefile.am): New variable
62964         test_dirname_LDADD.
62965         * modules/linked-list-tests (Makefile.am): New variable
62966         test_linked_list_LDADD.
62967         * modules/linkedhash-list-tests (Makefile.am): New variable
62968         test_linkedhash_list_LDADD.
62969         * modules/rbtree-list-tests (Makefile.am): New variable
62970         test_rbtree_list_LDADD.
62971         * modules/rbtree-oset-tests (Makefile.am): New variable
62972         test_rbtree_oset_LDADD.
62973         * modules/rbtreehash-list-tests (Makefile.am): New variable
62974         test_rbtreehash_list_LDADD.
62975         * modules/xvasprintf-tests (Makefile.am): New variable
62976         test_xvasprintf_LDADD.
62977         Reported by Eric Blake.
62978
62979 2007-04-03  Eric Blake  <ebb9@byu.net>
62980
62981         * DEPENDENCIES: Weaken m4 requirements.
62982
62983 2007-04-03  Bruno Haible  <bruno@clisp.org>
62984
62985         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
62986         * modules/isnanl-tests (configure.ac): Likewise.
62987
62988 2007-04-03  Ben Pfaff  <blp@gnu.org>
62989
62990         * modules/iconv_open: Add $(srcdir)/ to source directory
62991         references in Makefile fragments that call gperf, to fix VPATH
62992         builds.
62993
62994 2007-04-03  Bruno Haible  <bruno@clisp.org>
62995
62996         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
62997         * lib/ldexpl.c: Undo last change.
62998
62999 2007-04-03  Bruno Haible  <bruno@clisp.org>
63000
63001         * modules/printf-frexpl (Depends-on): Undo last change.
63002         (Files): Add m4/ldexpl.m4.
63003
63004 2007-04-03  Bruno Haible  <bruno@clisp.org>
63005
63006         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
63007         * modules/isnanl (Link): New section.
63008
63009         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
63010         * modules/frexp (Link): New section.
63011
63012         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
63013         * modules/frexpl (Link): New section.
63014
63015         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
63016         * modules/ldexpl (Link): New section.
63017
63018 2007-04-03  Bruno Haible  <bruno@clisp.org>
63019
63020         * modules/TEMPLATE-EXTENDED: New file.
63021         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
63022
63023 2007-04-03  Bruno Haible  <bruno@clisp.org>
63024
63025         * DEPENDENCIES: New file.
63026         Suggested by Simon Josefsson.
63027
63028 2007-04-03  Bruno Haible  <bruno@clisp.org>
63029
63030         * doc/gnulib.texi: Escape @.
63031
63032 2007-04-03  James Youngman  <jay@gnu.org>
63033         and Paul Eggert  <eggert@cs.ucla.edu>
63034
63035         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
63036         birthtime on all systems that have birthtime, not just those which
63037         use st_birthtimensec rather than st_birthtim.  Putting zero in
63038         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
63039         that the birth time is not available for files on an NFS mount.
63040
63041 2007-04-03  Simon Josefsson  <simon@josefsson.org>
63042
63043         * modules/memxor: Move back from crypto/, suggested by Bruno.
63044         * modules/crypto/hmac-sha1: Fix memxor dependency.
63045
63046         * modules/crypto/gc: Moved from ../.
63047
63048 2007-04-02  Eric Blake  <ebb9@byu.net>
63049
63050         * lib/ldexpl.c (includes): Avoid libm.
63051
63052         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
63053
63054 2007-04-02  Bruno Haible  <bruno@clisp.org>
63055
63056         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
63057         on IRIX.
63058
63059 2007-04-02  Bruno Haible  <bruno@clisp.org>
63060
63061         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
63062         x86 or x86_64 platforms running MacOS X.
63063         Reported by Ryan Schmidt <@ryandesign.com>.
63064
63065 2007-04-02  Bruno Haible  <bruno@clisp.org>
63066
63067         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
63068         i386.
63069
63070 2007-04-01  Simon Josefsson  <simon@josefsson.org>
63071
63072         * modules/crypto/arcfour: Moved from ../.
63073         * modules/crypto/arcfour-tests: Moved from ../.
63074         * modules/crypto/arctwo: Moved from ../.
63075         * modules/crypto/arctwo-tests: Moved from ../.
63076         * modules/crypto/des: Moved from ../.
63077         * modules/crypto/des-tests: Moved from ../.
63078         * modules/crypto/gc-arcfour: Moved from ../.
63079         * modules/crypto/gc-arcfour-tests: Moved from ../.
63080         * modules/crypto/gc-arctwo: Moved from ../.
63081         * modules/crypto/gc-arctwo-tests: Moved from ../.
63082         * modules/crypto/gc-des: Moved from ../.
63083         * modules/crypto/gc-des-tests: Moved from ../.
63084         * modules/crypto/gc-hmac-md5: Moved from ../.
63085         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
63086         * modules/crypto/gc-hmac-sha1: Moved from ../.
63087         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
63088         * modules/crypto/gc-md2: Moved from ../.
63089         * modules/crypto/gc-md2-tests: Moved from ../.
63090         * modules/crypto/gc-md4: Moved from ../.
63091         * modules/crypto/gc-md4-tests: Moved from ../.
63092         * modules/crypto/gc-md5: Moved from ../.
63093         * modules/crypto/gc-md5-tests: Moved from ../.
63094         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
63095         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
63096         * modules/crypto/gc-random: Moved from ../.
63097         * modules/crypto/gc-rijndael: Moved from ../.
63098         * modules/crypto/gc-rijndael-tests: Moved from ../.
63099         * modules/crypto/gc-sha1: Moved from ../.
63100         * modules/crypto/gc-sha1-tests: Moved from ../.
63101         * modules/crypto/gc-tests: Moved from ../.
63102         * modules/crypto/hmac-md5: Moved from ../.
63103         * modules/crypto/hmac-md5-tests: Moved from ../.
63104         * modules/crypto/hmac-sha1: Moved from ../.
63105         * modules/crypto/hmac-sha1-tests: Moved from ../.
63106         * modules/crypto/md2: Moved from ../.
63107         * modules/crypto/md2-tests: Moved from ../.
63108         * modules/crypto/md4: Moved from ../.
63109         * modules/crypto/md4-tests: Moved from ../.
63110         * modules/crypto/md5: Moved from ../.
63111         * modules/crypto/md5-tests: Moved from ../.
63112         * modules/crypto/memxor: Moved from ../.
63113         * modules/crypto/rijndael: Moved from ../.
63114         * modules/crypto/rijndael-tests: Moved from ../.
63115         * modules/crypto/sha1: Moved from ../.
63116
63117 2007-03-30  James Youngman  <jay@gnu.org>
63118
63119         * tests/test-stat-time.c (prepare_test): use chmod() rather than
63120         rename() to change the ctime of a file (because ctime is unaffected
63121         by rename on jfs2 on AIX 5.1).
63122         (main): Start by doing cleanup, in case a previous run failed leaving
63123         test files behind.
63124
63125 2007-03-31  Bruno Haible  <bruno@clisp.org>
63126
63127         Support old proprietary implementations of iconv.
63128         * modules/iconv_open: New file.
63129         * lib/iconv_.h: New file.
63130         * m4/iconv_h.m4: New file.
63131         * lib/iconv_open.c: New file.
63132         * lib/iconv_open-aix.gperf: New file.
63133         * lib/iconv_open-hpux.gperf: New file.
63134         * lib/iconv_open-irix.gperf: New file.
63135         * lib/iconv_open-osf.gperf: New file.
63136         * m4/iconv_open.m4: New file.
63137         * modules/linebreak (Depends-on): Add iconv_open.
63138         * modules/striconv (Depends-on): Likewise.
63139         * modules/striconveh (Depends-on): Likewise.
63140         * modules/unicodeio (Depends-on): Likewise.
63141         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
63142         (iconv_t)(-1).
63143         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
63144         conversion if cd is (iconv_t)(-1).
63145         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
63146         is not possible.
63147
63148 2007-03-31  Bruno Haible  <bruno@clisp.org>
63149
63150         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
63151         work on Solaris either. Protect also second use of "autodetect_jp".
63152
63153 2007-03-31  Bruno Haible  <bruno@clisp.org>
63154
63155         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
63156         the function is not present.
63157
63158 2007-03-31  Bruno Haible  <bruno@clisp.org>
63159
63160         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
63161         the function is not present.
63162
63163 2007-03-31  Bruno Haible  <bruno@clisp.org>
63164
63165         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
63166         a bug in HP-UX iconv_open().
63167
63168 2007-03-31  Bruno Haible  <bruno@clisp.org>
63169
63170         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
63171         (Mathematics <math.h>): New section, add fpieee.
63172         (Input/output <stdio.h>): Add fseterr.
63173         (Mathematics <math.h>): New section, add printf-frexp.
63174         (Container data structures): Add sublist.
63175         (Core language properties): Add fpucw, inline.
63176         (Functions for greatest-width integer types <inttypes.h>): Add
63177         imaxabs, imaxdiv, inttypes.
63178         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
63179         isnanl-nolibm, ldexp.
63180         (Mathematics <math.h>): New section, add printf-frexpl.
63181         (Support for systems lacking POSIX:2001): Add fprintf-posix,
63182         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
63183         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
63184         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
63185         (Unicode string functions): Add unistr/u*-mbtoucr.
63186         (Java): Add javacomp-script, javaexec-script.
63187         (C#): Add csharpcomp-script, csharpexec-script.
63188         (Support for building libraries and executables): Add havelib,
63189         relocatable-*.
63190         (Support for maintaining and releasing projects): Renamed from
63191         'Support for maintaining and release projects'. Add announce-gen.
63192
63193 2007-03-31  Bruno Haible  <bruno@clisp.org>
63194
63195         * README: Talk primarily about git.
63196         (git and CVS): Renamed from CVS.
63197         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
63198         gnulib is available through git.
63199         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
63200
63201 2007-03-30  Bruno Haible  <bruno@clisp.org>
63202
63203         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
63204         * lib/poll_.h: Likewise.
63205         * lib/stat_.h: Likewise.
63206         * lib/sys_time_.h: Likewise.
63207         * lib/sysexit_.h: Likewise.
63208         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
63209         * lib/stdbool_.h: Likewise.
63210         * lib/byteswap_.h: Add double-inclusion guard.
63211
63212 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
63213
63214         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
63215
63216 2007-03-30  Karl Berry  <karl@gnu.org>
63217
63218         * config/srclist-update: double space after USA in the license
63219         substitution, since that's how it's usually (?) written.
63220
63221 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
63222
63223         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
63224         reported by Bruno Haible.
63225
63226 2007-03-29  Bruno Haible  <bruno@clisp.org>
63227
63228         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
63229         a bug in AIX iconv().
63230
63231 2007-03-29  Bruno Haible  <bruno@clisp.org>
63232
63233         * modules/ldexpl-tests: New file.
63234         * tests/test-ldexpl.c: New file.
63235
63236 2007-03-29  Bruno Haible  <bruno@clisp.org>
63237
63238         * lib/ldexpl.c: Include fpucw.h.
63239         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
63240         multiplication.
63241         * modules/ldexpl (Depends-on): Add fpucw.
63242
63243 2007-03-29  Bruno Haible  <bruno@clisp.org>
63244
63245         * modules/ldexpl: New file.
63246         * m4/ldexpl.m4: New file.
63247         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
63248         set.
63249         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
63250         REPLACE_LDEXPL.
63251         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
63252         REPLACE_LDEXPL.
63253         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
63254         gl_FUNC_LDEXPL_WORKS.
63255         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
63256         * modules/mathl (Files): Remove lib/ldexpl.c.
63257         (Depends-on): Add ldexpl.
63258
63259 2007-03-29  Bruno Haible  <bruno@clisp.org>
63260
63261         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
63262
63263 2007-03-29  Bruno Haible  <bruno@clisp.org>
63264
63265         * tests/test-striconveh.c (main): Don't assume that a direct conversion
63266         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
63267         and possibly also HP-UX.
63268         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
63269         work on AIX, IRIX, HP-UX, OSF/1.
63270         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
63271         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
63272         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
63273         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
63274         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
63275         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
63276
63277 2007-03-29  Bruno Haible  <bruno@clisp.org>
63278
63279         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
63280
63281 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
63282
63283         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
63284         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
63285
63286 2007-03-29  Eric Blake  <ebb9@byu.net>
63287
63288         * lib/acl-internal.h: Remove redundant include.
63289         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
63290         Cygwin when a file is locked.
63291
63292 2007-03-29  Bruno Haible  <bruno@clisp.org>
63293
63294         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
63295         file.
63296         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
63297
63298 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
63299
63300         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
63301         try to remove a parent directory if the child couldn't be removed
63302         (except for the first rmdir, which could fail because the child
63303         doesn't exist).  Problem reported by Jeff Blaine in
63304         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
63305
63306 2007-03-28  Bruno Haible  <bruno@clisp.org>
63307
63308         * lib/striconveh.c (utf8conv_carefully): New function.
63309         (mem_cd_iconveh_internal): Invoke it.
63310
63311 2007-03-28  Bruno Haible  <bruno@clisp.org>
63312
63313         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
63314         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
63315         input.
63316         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
63317         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
63318         unistr/u8-uctomb.
63319
63320 2007-03-28  Bruno Haible  <bruno@clisp.org>
63321
63322         * modules/unistr/u8-mbtoucr: New file.
63323         * lib/unistr/u8-mbtoucr.c: New file.
63324         * modules/unistr/u16-mbtoucr: New file.
63325         * lib/unistr/u16-mbtoucr.c: New file.
63326         * modules/unistr/u16-mbtoucr: New file.
63327         * lib/unistr/u16-mbtoucr.c: New file.
63328         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
63329
63330 2007-03-27  Simon Josefsson  <simon@josefsson.org>
63331             Bruno Haible  <bruno@clisp.org>
63332
63333         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
63334         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
63335         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
63336
63337         * m4/stdio_h.m4: Add stubs for vasprintf too.
63338
63339         * modules/stdio: Support vasprintf in sed command.
63340
63341         * modules/vasprintf: Depend on stdio for prototypes.  Remove
63342         vasprintf.h.  Add stdio module indicator.
63343
63344         * lib/stdio_.h: Declare asprintf and vasprintf, based on
63345         vasprintf.h.
63346
63347         * lib/vasprintf.h: File removed.
63348
63349         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
63350         * lib/vasprintf.c: Ditto.
63351         * lib/xvasprintf.c: Ditto.
63352         * tests/test-vasprintf-posix.c: Ditto.
63353         * tests/test-vasprintf.c: Ditto.
63354
63355 2007-03-27  Bruno Haible  <bruno@clisp.org>
63356
63357         Make vasnprintf multithread-safe.
63358         * lib/vasnprintf.c (decimal_point_char): New function.
63359         (VASNPRINTF): Use it.
63360         Suggested by Simon Josefsson.
63361
63362 2007-03-27  Eric Blake  <ebb9@byu.net>
63363
63364         Support sub-second birthtime on cygwin.
63365         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
63366         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
63367         (get_stat_birthtime): Also work with st_birthtim.
63368
63369 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
63370
63371         * lib/stat-time.h (USE_BIRTHTIME): Remove.
63372         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
63373         (get_stat_birthtime_ns): Do not try to use "spare" fields.
63374         (get_stat_birthtime_ns): Simplify compile-time tests.
63375         (get_stat_birthtime): Change the API to look like
63376         get_stat_mtime etc., except return a negative tv_nsec on error.
63377         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
63378         Don't check for "spare" fields.
63379         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
63380         or for struct stat.st_birthtime, as these tests aren't used.
63381         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
63382
63383 2007-03-27  Bruno Haible  <bruno@clisp.org>
63384
63385         * lib/stat-time.h: Include <sys/stat.h>.
63386
63387 2007-03-27  James Youngman  <jay@gnu.org>
63388
63389         * lib/stat-time.h (get_stat_birthtime): New function for
63390           retrieving st_birthtime as provided by UFS2 (hence *BSD).
63391         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
63392           and its variants.
63393         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
63394         * modules/stat-time-test: New file.
63395         * tests/test-stat-time.c: New test, devised by Bruno Haible.
63396
63397 2007-03-26  Bruno Haible  <bruno@clisp.org>
63398
63399         Better support of signalling NaNs.
63400         * lib/atanl.c: Include isnanl.h.
63401         (atanl): Perform test for NaN at the beginning of the function and
63402         through a call to isnanl.
63403         * lib/cosl.c: Include isnanl.h.
63404         (cosl): Perform test for NaN at the beginning of the function and
63405         through a call to isnanl.
63406         * lib/ldexpl.c: Include isnanl.h.
63407         (ldexpl): Perform test for NaN through a call to isnanl.
63408         * lib/logl.c: Include isnanl.h.
63409         (logl): Perform test for NaN at the beginning of the function and
63410         through a call to isnanl.
63411         * lib/sinl.c: Include isnanl.h.
63412         (sinl): Perform test for NaN at the beginning of the function and
63413         through a call to isnanl.
63414         * lib/sqrtl.c: Include isnanl.h.
63415         (sqrtl): Perform test for NaN at the beginning of the function and
63416         through a call to isnanl.
63417         * lib/tanl.c: Include isnanl.h.
63418         (tanl): Perform test for NaN at the beginning of the function and
63419         through a call to isnanl.
63420         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
63421         * modules/mathl (Depends-on): Add isnanl.
63422
63423 2007-03-26  Eric Blake  <ebb9@byu.net>
63424
63425         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
63426         regression in logic sense of previous patch.
63427
63428 2007-03-26  Bruno Haible  <bruno@clisp.org>
63429
63430         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
63431         unportable shell command "if ! ...".
63432         Reported by Ralf Wildenhues.
63433
63434 2007-03-25  Bruno Haible  <bruno@clisp.org>
63435
63436         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
63437         <sysexits.h> file, and only add EX_CONFIG.
63438         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
63439         absolute file name and whether it is sufficient. Substitute also
63440         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
63441         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
63442         ABSOLUTE_SYSEXITS_H into sysexits.h.
63443
63444 2007-03-25  Bruno Haible  <bruno@clisp.org>
63445
63446         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
63447         hints is NULL.
63448
63449 2007-03-25  Bruno Haible  <bruno@clisp.org>
63450
63451         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
63452         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
63453
63454 2007-03-25  Bruno Haible  <bruno@clisp.org>
63455
63456         * lib/vasnprintf.c: Include langinfo.h.
63457         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
63458         multithread-safe.
63459         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
63460         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
63461         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63462         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63463         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63464         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63465         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63466         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
63467         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63468         Reported by Simon Josefsson.
63469
63470 2007-03-25  Bruno Haible  <bruno@clisp.org>
63471
63472         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
63473         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
63474         * modules/vasnprintf (Depends-on): Add stdint.
63475
63476 2007-03-25  Bruno Haible  <bruno@clisp.org>
63477
63478         * modules/fpieee: New file.
63479         * m4/fpieee.m4: New file.
63480         * modules/isnan-nolibm (Depends-on): Add fpieee.
63481         * modules/isnanl-nolibm (Depends-on): Add fpieee.
63482         * modules/isnanl (Depends-on): Add fpieee.
63483
63484 2007-03-25  Bruno Haible  <bruno@clisp.org>
63485
63486         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
63487
63488 2007-03-25  Bruno Haible  <bruno@clisp.org>
63489
63490         Avoid test failures on IRIX 6.5.
63491         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
63492         (main): Use it.
63493         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
63494         macros.
63495         (main): Use them.
63496
63497 2007-03-25  Bruno Haible  <bruno@clisp.org>
63498
63499         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
63500         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
63501         exists but doesn't work.
63502         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
63503         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
63504         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
63505         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
63506         math.h.
63507
63508 2007-03-25  Bruno Haible  <bruno@clisp.org>
63509
63510         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
63511         returns inf. Needed on IRIX 6.5.
63512
63513 2007-03-25  Bruno Haible  <bruno@clisp.org>
63514
63515         * tests/test-frexpl.c: Include isnanl-nolibm.h.
63516         (main): Use isnanl instead of x != x idiom.
63517         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
63518
63519         * tests/test-frexp.c: Include isnan.h.
63520         (main): Use isnan instead of x != x idiom.
63521         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
63522
63523 2007-03-25  Bruno Haible  <bruno@clisp.org>
63524
63525         * tests/test-frexp.c (NaN): New function/macro.
63526         (main): Use it instead of 0.0 / 0.0.
63527         * tests/test-isnan.c (NaN): New function/macro.
63528         (main): Use it instead of 0.0 / 0.0.
63529         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
63530         (test_function): Use it instead of 0.0 / 0.0.
63531         * tests/test-vasprintf-posix.c (NaN): New function/macro.
63532         (test_function): Use it instead of 0.0 / 0.0.
63533         * tests/test-snprintf-posix.h (NaN): New function/macro.
63534         (test_function): Use it instead of 0.0 / 0.0.
63535         * tests/test-sprintf-posix.h (NaN): New function/macro.
63536         (test_function): Use it instead of 0.0 / 0.0.
63537         * tests/test-fprintf-posix.h (NaN): New function/macro.
63538         (test_function): Use it instead of 0.0 / 0.0.
63539         * tests/test-printf-posix.h (NaN): New function/macro.
63540         (test_function): Use it instead of 0.0 / 0.0.
63541
63542         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
63543
63544 2007-03-25  Bruno Haible  <bruno@clisp.org>
63545
63546         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
63547
63548 2007-03-25  Bruno Haible  <bruno@clisp.org>
63549
63550         * lib/regexec.c (merge_state_with_log): Make static.
63551
63552 2007-03-25  Bruno Haible  <bruno@clisp.org>
63553
63554         * lib/trigl.c (kernel_rem_pio2): Make static.
63555
63556 2007-03-25  Bruno Haible  <bruno@clisp.org>
63557
63558         * lib/sincosl.c (sincosl_table): Make static.
63559
63560 2007-03-25  Bruno Haible  <bruno@clisp.org>
63561
63562         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
63563         if the compiler does not support C99.
63564
63565 2007-03-25  Bruno Haible  <bruno@clisp.org>
63566
63567         * modules/time (Makefile.am): Ensure all rule action lines start with a
63568         tab.
63569
63570 2007-03-24  Bruno Haible  <bruno@clisp.org>
63571
63572         * modules/tsearch-tests: New file.
63573         * tests/test-tsearch.sh: New file.
63574         * tests/test-tsearch.c: New file, mostly copied from glibc.
63575
63576         * modules/search-tests: New file.
63577         * tests/test-search.c: New file.
63578
63579         * modules/search: New file.
63580         * lib/search_.h: New file, incorporating lib/tsearch.h.
63581         * m4/search_h.m4: New file.
63582         * lib/tsearch.h: Remove file.
63583         * lib/tsearch.c: Include search.h instead of tsearch.h.
63584         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
63585         HAVE_TSEARCH.
63586         * modules/tsearch (Files): Remove lib/tsearch.h.
63587         (Depends-on): Add search.
63588         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
63589         (Include): Change tsearch.h into search.h.
63590
63591 2007-03-24  Bruno Haible  <bruno@clisp.org>
63592
63593         * modules/fpucw: New file.
63594         * lib/fpucw.h: New file.
63595         * lib/frexp.c: Include fpucw.h.
63596         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
63597         (FUNC): Use them.
63598         * lib/printf-frexp.c: Include fpucw.h.
63599         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
63600         (FUNC): Use them.
63601         * lib/vasnprintf.c: Include fpucw.h.
63602         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
63603         'long double' calculations.
63604         * tests/test-frexpl.c: Include fpucw.h.
63605         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
63606         * tests/test-printf-frexpl.c: Include fpucw.h.
63607         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
63608         * modules/frexpl (Depends-on): Add fpucw.
63609         * modules/printf-frexpl (Depends-on): Likewise.
63610         * modules/fprintf-posix (Depends-on): Likewise.
63611         * modules/snprintf-posix (Depends-on): Likewise.
63612         * modules/sprintf-posix (Depends-on): Likewise.
63613         * modules/vasnprintf-posix (Depends-on): Likewise.
63614         * modules/vasprintf-posix (Depends-on): Likewise.
63615         * modules/vfprintf-posix (Depends-on): Likewise.
63616         * modules/vsnprintf-posix (Depends-on): Likewise.
63617         * modules/vsprintf-posix (Depends-on): Likewise.
63618         * modules/frexpl-tests (Depends-on): Likewise.
63619         * modules/printf-frexpl-tests (Depends-on): Likewise.
63620
63621 2007-03-24  Bruno Haible  <bruno@clisp.org>
63622
63623         * lib/float+.h: New file.
63624         * lib/isnan.c: Include float+.h.
63625         (SIZE): New macro.
63626         (FUNC): Compare only SIZE bytes of the value.
63627         * lib/vasnprintf.c: Include float+.h.
63628         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
63629         SIZEOF_LDBL or SIZEOF_DBL bytes.
63630         * modules/isnan-nolibm (Files): Add lib/float+.h.
63631         * modules/isnanl-nolibm (Files): Add lib/float+.h.
63632         * modules/isnanl (Files): Add lib/float+.h.
63633         * modules/vasnprintf (Files): Add lib/float+.h.
63634
63635 2007-03-24  Bruno Haible  <bruno@clisp.org>
63636
63637         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
63638         include isnanl-nolibm.h.
63639
63640 2007-03-24  Bruno Haible  <bruno@clisp.org>
63641
63642         * tests/test-read-file.c (main): Don't produce spurious output for
63643         expected situations. Make the test fail if it encountered unexpected
63644         results.
63645
63646 2007-03-24  Bruno Haible  <bruno@clisp.org>
63647
63648         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
63649         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
63650
63651 2007-03-24  Bruno Haible  <bruno@clisp.org>
63652
63653         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
63654
63655 2007-03-24  Bruno Haible  <bruno@clisp.org>
63656
63657         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
63658         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
63659
63660         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
63661         * modules/utf8-ucs4: Turn into a symbolic link to module
63662         unistr/u8-mbtouc.
63663
63664         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
63665         utf8-ucs4-unsafe.
63666         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
63667         unistr/u8-mbtouc-unsafe.
63668
63669         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
63670         * modules/utf16-ucs4: Turn into a symbolic link to module
63671         unistr/u16-mbtouc.
63672
63673         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
63674         utf16-ucs4-unsafe.
63675         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
63676         unistr/u16-mbtouc-unsafe.
63677
63678         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
63679         * modules/ucs4-utf8: Turn into a symbolic link to module
63680         unistr/u8-ubtomb.
63681
63682         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
63683         * modules/ucs4-utf16: Turn into a symbolic link to module
63684         unistr/u16-ubtomb.
63685
63686 2007-03-24  Bruno Haible  <bruno@clisp.org>
63687
63688         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
63689         Enable the function only if HAVE_INLINE.
63690         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
63691         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
63692         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
63693         Enable the function only if HAVE_INLINE.
63694         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
63695         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
63696         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
63697         Enable the function only if HAVE_INLINE.
63698         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
63699         Enable the function only if HAVE_INLINE.
63700         * modules/utf8-ucs4: Update.
63701         * modules/utf8-ucs4-unsafe: Update.
63702         * modules/utf16-ucs4: Update.
63703         * modules/utf16-ucs4-unsafe: Update.
63704         * modules/ucs4-utf8: Update.
63705         * modules/ucs4-utf16: Update.
63706
63707 2007-03-24  Bruno Haible  <bruno@clisp.org>
63708
63709         * lib/utf8-ucs4.h: Remove file.
63710         * lib/utf8-ucs4-unsafe.h: Remove file.
63711         * lib/utf16-ucs4.h: Remove file.
63712         * lib/utf16-ucs4-unsafe.h: Remove file.
63713         * lib/ucs4-utf8.h: Remove file.
63714         * lib/ucs4-utf16.h: Remove file.
63715         * lib/unistr.h: Include their previous contents.
63716         * m4/utf-ucs4.m4: Remove file.
63717         * m4/ucs4-utf.m4: Remove file.
63718         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
63719         (Depends-on): Add unistr/base.
63720         (configure.ac): Remove gl_UTF_UCS4.
63721         (Makefile.am): Update.
63722         (Include): Change to unistr.h.
63723         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
63724         (Depends-on): Add unistr/base.
63725         (configure.ac): Remove gl_UTF_UCS4.
63726         (Makefile.am): Update.
63727         (Include): Change to unistr.h.
63728         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
63729         (Depends-on): Add unistr/base.
63730         (configure.ac): Remove gl_UTF_UCS4.
63731         (Makefile.am): Update.
63732         (Include): Change to unistr.h.
63733         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
63734         (Depends-on): Add unistr/base.
63735         (configure.ac): Remove gl_UTF_UCS4.
63736         (Makefile.am): Update.
63737         (Include): Change to unistr.h.
63738         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
63739         (Depends-on): Add unistr/base.
63740         (configure.ac): Remove gl_UCS4_UTF.
63741         (Makefile.am): Update.
63742         (Include): Change to unistr.h.
63743         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
63744         (Depends-on): Add unistr/base.
63745         (configure.ac): Remove gl_UCS4_UTF.
63746         (Makefile.am): Update.
63747         (Include): Change to unistr.h.
63748         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
63749         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
63750         utf8-ucs4-unsafe.h.
63751         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
63752         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
63753         utf16-ucs4-unsafe.h.
63754         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
63755         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
63756         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
63757         * lib/unistr/u8-strchr.c: Likewise.
63758         * lib/unistr/u8-strrchr.c: Likewise.
63759         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
63760         * lib/unistr/u16-strchr.c: Likewise.
63761         * lib/unistr/u16-strrchr.c: Likewise.
63762         * lib/striconveh.c: Update.
63763         * lib/linebreak.c: Update.
63764
63765 2007-03-24  Bruno Haible  <bruno@clisp.org>
63766
63767         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
63768         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
63769
63770 2007-03-22  Bruno Haible  <bruno@clisp.org>
63771
63772         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
63773
63774 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
63775
63776         * MODULES.html.sh (File system functions): New module write-any-file.
63777         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
63778         * m4/write-any-file.m4: New files.
63779
63780 2007-03-23  Eric Blake  <ebb9@byu.net>
63781
63782         * gnulib-tool: Rearrange space-tab sequences, since some editors
63783         like to eat them.
63784
63785 2007-03-23  Eric Blake  <ebb9@byu.net>
63786
63787         * lib/version-etc.c (version_etc_va): Update license wording to
63788         be more concise.  Recommended by Richard Stallman.
63789
63790 2007-03-22  Bruno Haible  <bruno@clisp.org>
63791
63792         * lib/poll.c (MSG_PEEK): New fallback definition.
63793
63794 2007-03-22  Bruno Haible  <bruno@clisp.org>
63795
63796         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
63797         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
63798         (main): Update.
63799         Fixes a compilation error on BeOS.
63800
63801 2007-03-22  Bruno Haible  <bruno@clisp.org>
63802
63803         * modules/frexpl-tests: New file.
63804         * tests/test-frexpl.c: New file.
63805
63806         * modules/frexpl: New file.
63807         * m4/frexpl.m4: New file.
63808         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
63809         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
63810         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
63811         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
63812         (Depends-on): Add frexpl. Remove isnanl-nolibm.
63813         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
63814
63815 2007-03-22  Bruno Haible  <bruno@clisp.org>
63816
63817         * lib/frexpl.c: Share code with lib/frexp.c.
63818         * modules/mathl (Files): Add lib/frexp.c.
63819         (Depends-on): Add isnanl-nolibm.
63820
63821 2007-03-22  Bruno Haible  <bruno@clisp.org>
63822
63823         * modules/printf-frexp (Files): Add m4/frexp.m4.
63824         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
63825         only if the found frexp function actually works.
63826
63827 2007-03-22  Bruno Haible  <bruno@clisp.org>
63828
63829         * lib/frexp.c: Remove older implementation that uses divisions.
63830
63831 2007-03-21  Bruno Haible  <bruno@clisp.org>
63832
63833         * modules/frexp-tests: New file.
63834         * tests/test-frexp.c: New file.
63835
63836         * modules/frexp: New file.
63837         * lib/frexp.c: New file.
63838         * m4/frexp.m4: New file.
63839         * lib/math_.h (frexp): New declaration.
63840         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
63841         REPLACE_FREXP.
63842         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
63843
63844 2007-03-21  Bruno Haible  <bruno@clisp.org>
63845
63846         * modules/isnanl-tests: New file.
63847         * tests/test-isnanl.c: New file.
63848
63849         * modules/isnanl: New file.
63850         * lib/isnanl.h: New file.
63851         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
63852         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
63853         gl_FUNC_ISNANL_WORKS.
63854         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
63855         New macros.
63856
63857 2007-03-21  Bruno Haible  <bruno@clisp.org>
63858
63859         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
63860         lib/isnanl.h.
63861         (Include): Update.
63862         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
63863         * lib/vasnprintf.c: Update.
63864         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
63865         tests/test-isnanl.h, remove tests/test-isnanl.c.
63866         (Makefile.am): Update.
63867         * tests/test-isnanl-nolibm.c: New file.
63868         * tests/test-isnanl.h: New file.
63869         * tests/test-isnanl.c: Remove file.
63870
63871 2007-03-21  Jim Meyering  <jim@meyering.net>
63872
63873         When trying to open ".", treat ESTALE like EACCES.
63874         * lib/savewd.c (savewd_save): Resort to forking not just upon
63875         failure with EACCES, but also when errno is ESTALE.
63876
63877 2007-03-20  Bruno Haible  <bruno@clisp.org>
63878
63879         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
63880         Needed on AIX 5.1. Reported by Matthew Woehlke.
63881
63882 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63883
63884         Suggestions by Bruno Haible:
63885         * lib/acl-internal.h: Include "gettext.h" rather than rolling
63886         our own.
63887         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
63888         * modules/acl (Depends-on): Add gettext.
63889
63890 2007-03-19  Bruno Haible  <bruno@clisp.org>
63891
63892         * modules/iconvme: Remove file.
63893         * lib/iconvme.h: Remove file.
63894         * lib/iconvme.c: Remove file.
63895         * m4/iconvme.m4: Remove file.
63896
63897 2007-03-19  Bruno Haible  <bruno@clisp.org>
63898
63899         * doc/relocatable-maint.texi: Break long shell script line.
63900         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
63901
63902 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63903
63904         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
63905         handle file_has_acl.
63906         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
63907         * lib/acl.c: Move header inclusions and related macro defns into
63908         lib/acl-internal.h.
63909         (S_ISLNK): Remove defn, since that's now done for us.
63910         (file_has_acl): Move to lib/file-has-acl.c.
63911         Call acl_trivial if available.  This is the crucial part of the fix.
63912         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
63913         shared within the library.  Rewrite a bit, partly to make it compatible
63914         with the GNU coding style.
63915         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
63916         Remove unnecessary double-quotes.
63917         Don't test for acl_to_text; the build will catch that.
63918         Replace acl_entries if it doesn't exist and it is needed.
63919         Check for -lsec and acl_trivial (as used on Solaris 10).
63920         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
63921         lib/file-has-acl.c.
63922         (Depends-on): Add sys_stat, for S_ISLNK.
63923
63924 2007-03-19  Ben Pfaff  <blp@gnu.org>
63925
63926         * doc/gnulib.texi: Fix typos.
63927         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
63928
63929 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63930
63931         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
63932         If size is zero here, buf must be zero.
63933
63934 2007-03-19  Simon Josefsson  <simon@josefsson.org>
63935
63936         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
63937         <bruno@clisp.org>.
63938
63939 2007-03-18  Bruno Haible  <bruno@clisp.org>
63940
63941         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
63942         Suggested by Eric Blake.
63943
63944 2007-03-18  Ben Pfaff  <blp@gnu.org>
63945
63946         * doc/relocatable.texi: Recommend using as prefix a directory
63947         that does not exist and will never be created.  Based on
63948         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
63949         and others.
63950
63951 2007-03-17  Bruno Haible  <bruno@clisp.org>
63952
63953         * lib/fchownat.c: Include lchown.h.
63954
63955 2007-03-17  Bruno Haible  <bruno@clisp.org>
63956
63957         Fix endless loop when the given allocated size was > INT_MAX.
63958         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
63959         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
63960         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
63961         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
63962         * lib/sprintf.c (sprintf): Likewise.
63963
63964 2007-03-17  Bruno Haible  <bruno@clisp.org>
63965
63966         * tests/test-argp-2.sh (func_compare): Output a context diff.
63967
63968 2007-03-17  Bruno Haible  <bruno@clisp.org>
63969
63970         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
63971         locale's decimal-point character.
63972
63973 2007-03-17  Bruno Haible  <bruno@clisp.org>
63974
63975         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
63976         before comparing it. Needed because on some platforms (e.g. x86) a
63977         'long double' occupies less bytes than sizeof (long double).
63978
63979 2007-03-17  Bruno Haible  <bruno@clisp.org>
63980
63981         * tests/test-crc.c (main): Make printf statements 64-bit clean.
63982         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
63983         * tests/test-getaddrinfo.c (simple): Likewise.
63984         * tests/test-read-file.c (main): Likewise.
63985
63986 2007-03-17  Bruno Haible  <bruno@clisp.org>
63987
63988         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
63989
63990 2007-03-17  Bruno Haible  <bruno@clisp.org>
63991
63992         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
63993         unused variable.
63994
63995 2007-03-17  Bruno Haible  <bruno@clisp.org>
63996
63997         * tests/test-c-strcasecmp.c: Include c-strcase.h.
63998         * tests/test-c-strncasecmp.c: Likewise.
63999
64000 2007-03-17  Bruno Haible  <bruno@clisp.org>
64001
64002         * modules/stdlib (Depends-on): Add unistd.
64003         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
64004         Needed for MacOS X 10.3.
64005
64006 2007-03-17  Bruno Haible  <bruno@clisp.org>
64007
64008         * lib/unistr/u-strdup.h: Include <stdlib.h>.
64009
64010 2007-03-17  Bruno Haible  <bruno@clisp.org>
64011
64012         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
64013
64014 2007-03-17  Bruno Haible  <bruno@clisp.org>
64015
64016         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
64017         to reflect files copied from gnulib (with or without modifications).
64018         Suggested by Jim Meyering.
64019
64020 2007-03-17  Eric Blake  <ebb9@byu.net>
64021
64022         * NEWS: Document stdlib change from 2007-02-18.
64023
64024 2007-03-17  Jim Meyering  <jim@meyering.net>
64025
64026         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
64027         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
64028         someone uses a name containing shell meta-characters.
64029         Reported by Alfred M. Szmidt.
64030
64031         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
64032
64033 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
64034
64035         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
64036         and copy gettext configuration files only if configure.ac contains
64037         a use of AM_GNU_GETTEXT_VERSION.
64038
64039 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
64040
64041         * build-aux/bootstrap (gnulib_name): New variable.
64042         (gnulib_tool_options): Use it.
64043
64044 2007-03-13  Simon Josefsson  <simon@josefsson.org>
64045
64046         * tests/test-des.c: Use new namespace.
64047
64048 2007-03-15  Bruno Haible  <bruno@clisp.org>
64049
64050         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
64051         Reported by James Youngman <jay@gnu.org>.
64052
64053 2007-03-15  Bruno Haible  <bruno@clisp.org>
64054
64055         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
64056         declared prototype. Needed with cc on OSF/1 5.1.
64057
64058 2007-03-15  Bruno Haible  <bruno@clisp.org>
64059
64060         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
64061         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
64062         (struct gl_list_implementation): Add dispose_fn argument to the
64063         'create_empty', 'create' methods.
64064         (struct gl_list_impl_base): Add field 'dispose_fn'.
64065         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
64066         argument.
64067         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
64068         dispose_fn argument.
64069         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
64070         dispose_fn on the dropped values.
64071         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
64072         dispose_fn argument.
64073         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
64074         dropped values.
64075         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
64076         (gl_tree_remove_node): Call dispose_fn on the dropped value.
64077         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
64078         (gl_tree_remove_node): Call dispose_fn on the dropped value.
64079         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
64080         argument.
64081         (gl_tree_list_free): Call dispose_fn on the dropped values.
64082         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
64083         the dropped values.
64084         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
64085         Add dispose_fn argument.
64086         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
64087         Call dispose_fn on the dropped values.
64088         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
64089         Add dispose_fn argument.
64090         (gl_sublist_create): Initialize the 'dispose_fn' field.
64091         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
64092         * tests/test-array_list.c (main): Update.
64093         * tests/test-carray_list.c (main): Update.
64094         * tests/test-avltree_list.c (main): Update.
64095         * tests/test-rbtree_list.c (main): Update.
64096         * tests/test-avltreehash_list.c (main): Update.
64097         * tests/test-rbtreehash_list.c (main): Update.
64098         * tests/test-linked_list.c (main): Update.
64099         * tests/test-linkedhash_list.c (main): Update.
64100         * tests/test-array_oset.c (main): Update.
64101
64102 2007-03-15  Bruno Haible  <bruno@clisp.org>
64103
64104         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
64105         (gl_oset_create_empty): Add dispose_fn argument.
64106         (struct gl_oset_implementation): Add dispose_fn argument to
64107         'create_empty' method.
64108         (struct gl_oset_impl_base): Add dispose_fn field.
64109         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
64110         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
64111         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
64112         values.
64113         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
64114         (gl_tree_oset_free): Call dispose_fn on the dropped values.
64115         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
64116         dropped value.
64117         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
64118         dropped value.
64119         * tests/test-array_oset.c (main): Update.
64120         * tests/test-avltree_oset.c (main): Update.
64121         * tests/test-rbtree_oset.c (main): Update.
64122         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
64123
64124 2007-03-13  Bruno Haible  <bruno@clisp.org>
64125
64126         * tests/test-stdbool.c (i): Update after last patch.
64127
64128 2007-03-12  Bruno Haible  <bruno@clisp.org>
64129
64130         * lib/quotearg.c: Include <wctype.h> early, before the definition of
64131         the iswprint macro. Needed on Solaris 2.5.1.
64132
64133 2007-03-12  Bruno Haible  <bruno@clisp.org>
64134
64135         * tests/test-printf-frexp.c (main): Declare x as volatile.
64136
64137 2007-03-12  Simon Josefsson  <simon@josefsson.org>
64138
64139         * doc/gnulib.texi (Build robot for gnulib): New section.
64140
64141 2007-03-12  Jim Meyering  <jim@meyering.net>
64142
64143         * build-aux/bootstrap: New file.
64144         * build-aux/bootstrap.conf: New file, from coreutils.
64145
64146 2007-03-11  Bruno Haible  <bruno@clisp.org>
64147
64148         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
64149
64150 2007-03-12  Simon Josefsson  <simon@josefsson.org>
64151
64152         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
64153         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
64154         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
64155
64156 2007-03-11  Bruno Haible  <bruno@clisp.org>
64157
64158         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
64159         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
64160
64161 2007-03-11  Bruno Haible  <bruno@clisp.org>
64162
64163         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
64164         formula. Needed for SunPRO C 5.0.
64165
64166 2007-03-11  Bruno Haible  <bruno@clisp.org>
64167
64168         * modules/long-options (Depends-on): Add getopt.
64169
64170 2007-03-11  Bruno Haible  <bruno@clisp.org>
64171
64172         * modules/modechange (Depends-on): Add stdbool.
64173
64174 2007-03-11  Bruno Haible  <bruno@clisp.org>
64175
64176         * modules/i-ring (Depends-on): Add stdbool.
64177
64178 2007-03-11  Bruno Haible  <bruno@clisp.org>
64179
64180         * modules/gc-des (Depends-on): Add stdbool.
64181
64182 2007-03-11  Bruno Haible  <bruno@clisp.org>
64183
64184         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
64185
64186 2007-03-11  Bruno Haible  <bruno@clisp.org>
64187
64188         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
64189
64190 2007-03-11  Bruno Haible  <bruno@clisp.org>
64191
64192         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
64193
64194 2007-03-11  Bruno Haible  <bruno@clisp.org>
64195
64196         * lib/vasnprintf.c (sprintf): Undefine.
64197
64198 2007-03-11  Bruno Haible  <bruno@clisp.org>
64199
64200         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
64201         initializers in SunPRO C and Compaq C compilers.
64202
64203 2007-03-11  Bruno Haible  <bruno@clisp.org>
64204
64205         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
64206         decrementing code ANSI C compliant.
64207
64208 2007-03-11  Bruno Haible  <bruno@clisp.org>
64209
64210         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
64211         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
64212
64213 2007-03-11  Bruno Haible  <bruno@clisp.org>
64214
64215         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
64216         <stdbool.h> substitute doesn't pass.
64217
64218 2007-03-11  Bruno Haible  <bruno@clisp.org>
64219
64220         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
64221
64222 2007-03-11  Bruno Haible  <bruno@clisp.org>
64223
64224         * gnulib-tool (func_create_megatestdir): Create also an autobuild
64225         script, for submission to autobuild.josefsson.org.
64226
64227 2007-03-10  Bruno Haible  <bruno@clisp.org>
64228
64229         * modules/canonicalize-lgpl-tests: New file.
64230         * tests/test-canonicalize-lgpl.sh: New file.
64231         * tests/test-canonicalize-lgpl.c: New file.
64232
64233         * modules/c-strcase-tests: New file.
64234         * tests/test-c-strcase.sh: New file.
64235         * tests/test-c-strcasecmp.c: New file.
64236         * tests/test-c-strncasecmp.c: New file.
64237
64238         * modules/atexit-tests: New file.
64239         * tests/test-atexit.sh: New file.
64240         * tests/test-atexit.c: New file.
64241
64242 2007-03-10  Bruno Haible  <bruno@clisp.org>
64243
64244         * tests/test-binary-io.sh: Use temporary filenames that are not so
64245         likely to clash with those of other tests (in a parallel make).
64246         * tests/test-binary-io.c: Likewise.
64247
64248 2007-03-10  Bruno Haible  <bruno@clisp.org>
64249
64250         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
64251         fallback; use #error instead.
64252         Suggested by Simon Josefsson.
64253
64254 2007-03-10  Bruno Haible  <bruno@clisp.org>
64255
64256         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
64257         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
64258         first and the last.
64259
64260 2007-03-10  Bruno Haible  <bruno@clisp.org>
64261
64262         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
64263
64264 2007-03-10  Bruno Haible  <bruno@clisp.org>
64265
64266         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
64267         "make distcheck".
64268         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
64269         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
64270         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
64271
64272 2007-03-10  Bruno Haible  <bruno@clisp.org>
64273
64274         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
64275         variable.
64276         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
64277         variable.
64278
64279 2007-03-09  Eric Blake  <ebb9@byu.net>
64280         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
64281
64282         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
64283         types are not being provided by gnulib.
64284         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
64285         types are supported.
64286
64287 2007-03-10  Bruno Haible  <bruno@clisp.org>
64288
64289         * lib/stdio_.h (__attribute__): New macro.
64290         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
64291         vsprintf): Specify __attribute__ __format__ for GCC.
64292         Suggested by Eric Blake.
64293
64294 2007-03-09  Bruno Haible  <bruno@clisp.org>
64295
64296         * modules/printf-posix-tests: New file.
64297         * tests/test-printf-posix.sh: New file.
64298         * tests/test-printf-posix.c: New file.
64299
64300         * modules/printf-posix: New file.
64301         * lib/printf.c: New file.
64302         * m4/printf-posix-rpl.m4: New file.
64303         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
64304         REPLACE_PRINTF.
64305         * lib/stdio_.h (printf): New declaration.
64306         (format, __format__, ____printf____, ____scanf____, ____strftime____,
64307         ____strfmon____): New macros.
64308         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
64309         REPLACE_PRINTF.
64310
64311 2007-03-09  Bruno Haible  <bruno@clisp.org>
64312
64313         * tests/test-vasnprintf-posix2.sh: New file.
64314         * tests/test-vasnprintf-posix2.c: New file.
64315         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
64316         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
64317         (Makefile.am): Activate test-vasnprintf-posix2.sh.
64318
64319         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
64320         a locale dependent decimal point, rather than always '.'.
64321
64322 2007-03-09  Eric Blake  <ebb9@byu.net>
64323
64324         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
64325         spite of platforms like Tandem/NSK that define it to -1.
64326
64327 2007-03-08  Bruno Haible  <bruno@clisp.org>
64328
64329         * modules/vprintf-posix-tests: New file.
64330         * tests/test-vprintf-posix.sh: New file.
64331         * tests/test-vprintf-posix.c: New file.
64332         * tests/test-printf-posix.h: New file.
64333
64334         * modules/vprintf-posix: New file.
64335         * lib/vprintf.c: New file.
64336         * m4/vprintf-posix.m4: New file.
64337         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
64338         REPLACE_VPRINTF.
64339         * lib/stdio_.h (vprintf): New declaration.
64340         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
64341         REPLACE_VPRINTF.
64342
64343 2007-03-08  Bruno Haible  <bruno@clisp.org>
64344
64345         * modules/fprintf-posix-tests: New file.
64346         * tests/test-fprintf-posix.sh: New file.
64347         * tests/test-fprintf-posix.c: New file.
64348
64349         * modules/fprintf-posix: New file.
64350         * lib/fprintf.c: New file.
64351         * m4/fprintf-posix.m4: New file.
64352         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
64353         REPLACE_FPRINTF.
64354         * lib/stdio_.h (fprintf): New declaration.
64355         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
64356         REPLACE_FPRINTF.
64357
64358 2007-03-08  Bruno Haible  <bruno@clisp.org>
64359
64360         * modules/vfprintf-posix-tests: New file.
64361         * tests/test-vfprintf-posix.sh: New file.
64362         * tests/test-vfprintf-posix.c: New file.
64363         * tests/test-fprintf-posix.h: New file.
64364         * tests/test-fprintf-posix.out: New file.
64365
64366         * modules/vfprintf-posix: New file.
64367         * lib/vfprintf.c: New file.
64368         * m4/vfprintf-posix.m4: New file.
64369         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
64370         REPLACE_VFPRINTF.
64371         * lib/stdio_.h (vfprintf): New declaration.
64372         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
64373         REPLACE_VFPRINTF.
64374
64375 2007-03-08  Bruno Haible  <bruno@clisp.org>
64376
64377         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
64378
64379 2007-03-08  Bruno Haible  <bruno@clisp.org>
64380
64381         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
64382         instead of 'expr' invocations.
64383         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64384         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64385         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64386         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64387         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64388         Suggested by Paul Eggert.
64389
64390 2007-03-08  Bruno Haible  <bruno@clisp.org>
64391
64392         * modules/fseterr-tests: New file.
64393         * tests/test-fseterr.c: New file.
64394
64395         * modules/fseterr: New file.
64396         * lib/fseterr.h: New file.
64397         * lib/fseterr.c: New file.
64398
64399 2007-03-08  Bruno Haible  <bruno@clisp.org>
64400
64401         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
64402         * lib/getopt_.h: Likewise.
64403         * lib/mbswidth.h: Likewise.
64404         * lib/setenv.h: Likewise.
64405         * lib/vasnprintf.h: Likewise.
64406         * lib/vasprintf.h: Likewise.
64407         * lib/verror.h: Likewise.
64408         * lib/xsetenv.h: Likewise.
64409         * lib/xvasprintf.h: Likewise.
64410
64411 2007-03-08  Jim Meyering  <jim@meyering.net>
64412
64413         * users.txt: Add parted.
64414
64415         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
64416
64417 2007-03-07  Bruno Haible  <bruno@clisp.org>
64418
64419         * m4/printf.m4: Make the shell script snippets copy&pastable.
64420
64421 2007-03-02  Bruno Haible  <bruno@clisp.org>
64422
64423         * lib/netinet_in_.h: New file.
64424         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
64425         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
64426         * modules/netinet_in (Files): Add lib/netinet_in_.h.
64427         (Depends-on): Add absolute-header.
64428         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
64429         into netinet/in.h.
64430
64431 2007-03-03  Bruno Haible  <bruno@clisp.org>
64432
64433         * lib/sys_select_.h: New file.
64434         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
64435         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
64436         * modules/sys_select (Files): Add lib/sys_select_.h.
64437         (Depends-on): Add absolute-header.
64438         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
64439         into sys/select.h.
64440
64441 2007-03-02  Bruno Haible  <bruno@clisp.org>
64442
64443         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
64444         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
64445         values.
64446         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
64447         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
64448         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
64449         * modules/sys_socket (Depends-on): Add absolute-header.
64450         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
64451         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
64452         (Include): Remove requirement of inclusion of <sys/types.h>.
64453
64454 2007-03-02  Bruno Haible  <bruno@clisp.org>
64455
64456         * lib/byteswap_.h (bswap_32): Fix formula.
64457
64458 2007-03-06  Bruno Haible  <bruno@clisp.org>
64459
64460         * modules/sprintf-posix-tests: New file.
64461         * tests/test-sprintf-posix.c: New file.
64462
64463         * modules/sprintf-posix: New file.
64464         * lib/sprintf.c: New file.
64465         * m4/sprintf-posix.m4: New file.
64466         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
64467         REPLACE_SPRINTF.
64468         * lib/stdio_.h (sprintf): New declaration.
64469         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
64470         REPLACE_SPRINTF.
64471
64472 2007-03-06  Bruno Haible  <bruno@clisp.org>
64473
64474         * modules/vsprintf-posix-tests: New file.
64475         * tests/test-vsprintf-posix.c: New file.
64476         * tests/test-sprintf-posix.h: New file.
64477
64478         * modules/vsprintf-posix: New file.
64479         * lib/vsprintf.c: New file.
64480         * m4/vsprintf-posix.m4: New file.
64481         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
64482         REPLACE_VSPRINTF.
64483         * lib/stdio_.h (vsprintf): New declaration.
64484         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
64485         REPLACE_VSPRINTF.
64486
64487 2007-03-06  Bruno Haible  <bruno@clisp.org>
64488
64489         * modules/vsnprintf (Depend-on): Remove minmax.
64490
64491 2007-03-06  Bruno Haible  <bruno@clisp.org>
64492
64493         * modules/snprintf-posix-tests: New file.
64494         * tests/test-snprintf-posix.c: New file.
64495
64496         * modules/snprintf-posix: New file.
64497         * m4/snprintf-posix.m4: New file.
64498         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
64499         gl_FUNC_SNPRINTF.
64500         (gl_FUNC_SNPRINTF): Invoke it.
64501         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
64502         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
64503         is set.
64504         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
64505
64506 2007-03-06  Bruno Haible  <bruno@clisp.org>
64507
64508         * modules/vsnprintf-posix-tests: New file.
64509         * tests/test-vsnprintf-posix.c: New file.
64510         * tests/test-snprintf-posix.h: New file.
64511
64512         * modules/vsnprintf-posix: New file.
64513         * m4/vsnprintf-posix.m4: New file.
64514         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
64515         gl_FUNC_VSNPRINTF.
64516         (gl_FUNC_VSNPRINTF): Invoke it.
64517         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
64518         * lib/stdio_.h (vsnprintf): Define as a replacement if
64519         REPLACE_VSNPRINTF is set.
64520         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
64521
64522 2007-03-06  Bruno Haible  <bruno@clisp.org>
64523
64524         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
64525         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
64526
64527 2007-03-06  Bruno Haible  <bruno@clisp.org>
64528
64529         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
64530         (asinl): Declare also if HAVE_DECL_ASINL is set.
64531         (atanl): Declare also if HAVE_DECL_ATANL is set.
64532         (ceill): Declare also if HAVE_DECL_CEILL is set.
64533         (cosl): Declare also if HAVE_DECL_COSL is set.
64534         (expl): Declare also if HAVE_DECL_EXPL is set.
64535         (floorl): Declare also if HAVE_DECL_FLOORL is set.
64536         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
64537         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
64538         (logl): Declare also if HAVE_DECL_LOGL is set.
64539         (sinl): Declare also if HAVE_DECL_SINL is set.
64540         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
64541         (tanl): Declare also if HAVE_DECL_TANL is set.
64542         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
64543         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
64544         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
64545         declaration of frexpl, ldexpl.
64546         * modules/printf-frexpl (Depends-on): Add math.
64547         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
64548
64549 2007-03-05  Bruno Haible  <bruno@clisp.org>
64550
64551         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
64552         frexpl and ldexpl are declared.
64553         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
64554
64555 2007-03-05  Bruno Haible  <bruno@clisp.org>
64556
64557         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
64558         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
64559
64560 2007-03-05  Bruno Haible  <bruno@clisp.org>
64561
64562         * lib/stdio_.h: Include <stddef.h>.
64563
64564 2007-03-05  Bruno Haible  <bruno@clisp.org>
64565
64566         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
64567
64568 2007-03-05  Bruno Haible  <bruno@clisp.org>
64569
64570         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
64571         NetBSD 4, from Ralf Wildenhues.
64572
64573 2007-03-04  Bruno Haible  <bruno@clisp.org>
64574
64575         * lib/vasprintf.h: Update #if logic for the case when the functions
64576         exist but are overridden.
64577
64578 2007-03-04  Bruno Haible  <bruno@clisp.org>
64579
64580         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
64581         implementations: glibc-2.4 and MacOS X 10.3.
64582         * tests/test-vasnprintf-posix.c (test_function): Test also the case
64583         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
64584         * tests/test-vasprintf-posix.c (test_function): Likewise.
64585
64586 2007-03-04  Bruno Haible  <bruno@clisp.org>
64587
64588         * modules/vasprintf-posix-tests: New file.
64589         * tests/test-vasprintf-posix.c: New file.
64590
64591         * modules/vasprintf-posix: New file.
64592         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
64593         defined.
64594         * m4/vasprintf-posix.m4: New file.
64595         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
64596         gl_FUNC_VASPRINTF.
64597         (gl_FUNC_VASPRINTF): Invoke it.
64598         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
64599         here.
64600         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
64601
64602 2007-03-04  Bruno Haible  <bruno@clisp.org>
64603
64604         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
64605         REPLACE_GETTIMEOFDAY.
64606         * modules/sys_time (Makefile.am): Likewise.
64607         * m4/sys_time_h.m4: Likewise.
64608         * m4/gettimeofday.m4: Likewise.
64609
64610 2007-03-04  Bruno Haible  <bruno@clisp.org>
64611
64612         * modules/vasnprintf-posix-tests: New file.
64613         * tests/test-vasnprintf-posix.c: New file.
64614
64615         * modules/vasnprintf-posix: New file.
64616         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
64617         printf-frexpl.h.
64618         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
64619         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
64620         REPLACE_VASNPRINTF is defined.
64621         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
64622         gl_FUNC_VASNPRINTF.
64623         (gl_FUNC_VASNPRINTF): Invoke it.
64624         * m4/vasnprintf-posix.m4: New file.
64625         * m4/printf.m4: New file.
64626
64627 2007-03-04  Bruno Haible  <bruno@clisp.org>
64628
64629         Compile progreloc.c only if --enable-relocatable is specified.
64630         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
64631         if --enable-relocatable was specified.
64632         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
64633         lib_SOURCES.
64634
64635 2007-03-04  Jim Meyering  <jim@meyering.net>
64636
64637         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
64638         Use it consistently, rather than enumerating errno constants.
64639
64640 2007-03-04  Bruno Haible  <bruno@clisp.org>
64641
64642         * modules/xvasprintf-tests: New file.
64643         * tests/test-xvasprintf.c: New file.
64644
64645         * modules/vasprintf-tests: New file.
64646         * tests/test-vasprintf.c: New file.
64647
64648         * modules/vasnprintf-tests: New file.
64649         * tests/test-vasnprintf.c: New file.
64650
64651         * modules/vsnprintf-tests: New file.
64652         * tests/test-vsnprintf.c: New file.
64653
64654         * modules/snprintf-tests: New file.
64655         * tests/test-snprintf.c: New file.
64656
64657 2007-03-04  Bruno Haible  <bruno@clisp.org>
64658
64659         Compile relocatable.c only if --enable-relocatable is specified.
64660         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
64661         gl_RELOCATABLE_LIBRARY.
64662         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
64663         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
64664         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
64665         gl_RELOCATABLE_LIBRARY.
64666         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
64667         (Makefile.am): Remove lib_SOURCES.
64668         * modules/relocatable-lib-lgpl (configure.ac): Invoke
64669         gl_RELOCATABLE_LIBRARY.
64670         (Makefile.am): Remove lib_SOURCES.
64671         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
64672         always.
64673         * modules/relocatable-prog-wrapper (configure.ac): Invoke
64674         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
64675
64676 2007-03-04  Bruno Haible  <bruno@clisp.org>
64677
64678         * modules/argmatch-tests: New file.
64679         * tests/test-argmatch.c: New file.
64680
64681         * tests/test-allocsa.c (main): Halve the number of loop runs.
64682
64683         * modules/alloca-opt-tests: New file.
64684         * tests/test-alloca-opt.c: New file.
64685
64686 2007-03-04  Jim Meyering  <jim@meyering.net>
64687
64688         Work around difference between Linux ACLs and Solaris 10 ZFS.
64689         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
64690         for EINVAL.
64691
64692 2007-03-03  Bruno Haible  <bruno@clisp.org>
64693
64694         * modules/relocatable-prog (Depends-on): Add back progreloc's
64695         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
64696
64697 2007-03-03  Bruno Haible  <bruno@clisp.org>
64698
64699         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
64700         * modules/relocatable-lib: New file.
64701
64702 2007-03-03  Bruno Haible  <bruno@clisp.org>
64703
64704         * modules/relocatable-prog: Renamed from modules/relocatable.
64705         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
64706
64707 2007-03-03  Bruno Haible  <bruno@clisp.org>
64708
64709         * modules/relocatable-script (Files): Add doc/relocatable.texi,
64710         m4/relocatable-lib.m4.
64711         (Depends-on): Remove 'relocatable'.
64712         (configure.ac): Add gl_RELOCATABLE_NOP.
64713
64714 2007-03-03  Bruno Haible  <bruno@clisp.org>
64715
64716         * modules/relocatable-prog-wrapper: New file.
64717         * modules/relocatable (Depends-on): Add it. Remove all other
64718         dependencies except progname.
64719         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
64720
64721         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
64722         (gl_FUNC_STRERROR): Nop.
64723         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
64724
64725         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
64726         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
64727
64728         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
64729         (gl_FUNC_READLINK): Update.
64730
64731         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
64732
64733 2007-03-03  Bruno Haible  <bruno@clisp.org>
64734
64735         * lib/xreadlink.c: Include <unistd.h> unconditionally.
64736         * modules/xreadlink (Depends-on): Add unistd.
64737         * modules/xreadlink-with-size (Depends-on): Likewise.
64738
64739 2007-03-03  Bruno Haible  <bruno@clisp.org>
64740
64741         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
64742         extracted from gt_FUNC_SETENV.
64743         (gt_FUNC_SETENV): Remove macro.
64744         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
64745         remove gt_FUNC_SETENV.
64746
64747 2007-03-03  Bruno Haible  <bruno@clisp.org>
64748
64749         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
64750         ENABLE_RELOCATABLE here.
64751         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
64752
64753 2007-03-03  Bruno Haible  <bruno@clisp.org>
64754
64755         * modules/rbtreehash-list-tests (Depends-on): Add progname.
64756         * tests/test-rbtreehash_list.c: Include progname.h.
64757         (main): Call set_program_name.
64758
64759         * modules/rbtree-oset-tests (Depends-on): Add progname.
64760         * tests/test-rbtree_oset.c: Include progname.h.
64761         (main): Call set_program_name.
64762
64763         * modules/rbtree-list-tests (Depends-on): Add progname.
64764         * tests/test-rbtree_list.c: Include progname.h.
64765         (main): Call set_program_name.
64766
64767         * modules/linked-list-tests (Depends-on): Add progname.
64768         * tests/test-linked_list.c: Include progname.h.
64769         (main): Call set_program_name.
64770
64771 2007-03-03  Bruno Haible  <bruno@clisp.org>
64772
64773         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
64774         All uses of __restrict changed to _Restrict_.
64775         * lib/glob_.h (__restrict): Remove macro.
64776
64777 2007-03-02  Bruno Haible  <bruno@clisp.org>
64778
64779         * modules/gettext (configure.ac): Require gettext infrastructure
64780         from version 0.16.1.
64781
64782 2007-03-02  Bruno Haible  <bruno@clisp.org>
64783
64784         * modules/linkedhash-list-tests (Depends-on): Add progname.
64785         * tests/test-linkedhash_list.c: Include progname.h.
64786         (main): Call set_program_name.
64787
64788         * modules/carray-list-tests (Depends-on): Add progname.
64789         * tests/test-carray_list.c: Include progname.h.
64790         (main): Call set_program_name.
64791
64792         * modules/avltreehash-list-tests (Depends-on): Add progname.
64793         * tests/test-avltreehash_list.c: Include progname.h.
64794         (main): Call set_program_name.
64795
64796         * modules/avltree-oset-tests (Depends-on): Add progname.
64797         * tests/test-avltree_oset.c: Include progname.h.
64798         (main): Call set_program_name.
64799
64800         * modules/avltree-list-tests (Depends-on): Add progname.
64801         * tests/test-avltree_list.c: Include progname.h.
64802         (main): Call set_program_name.
64803
64804         * modules/array-oset-tests (Depends-on): Add progname.
64805         * tests/test-array_oset.c: Include progname.h.
64806         (main): Call set_program_name.
64807
64808         * modules/array-list-tests (Depends-on): Add progname.
64809         * tests/test-array_list.c: Include progname.h.
64810         (main): Call set_program_name.
64811
64812         * modules/argp-tests (Depends-on): Add progname.
64813         * tests/test-argp.c: Include argp.h first. Include progname.h.
64814         (main): Call set_program_name.
64815
64816 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
64817
64818         * doc/gnulib-tool.texi (Initial import): Reword description of
64819         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
64820         limited effect even if defined after the first system include.
64821
64822 2007-03-01  Bruno Haible  <bruno@clisp.org>
64823
64824         * build-aux/config.libpath: Update to libtool-1.5.22.
64825         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
64826
64827 2007-03-01  Bruno Haible  <bruno@clisp.org>
64828
64829         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
64830         foo_CFLAGS.
64831         Reported by Ralf Wildenhues.
64832
64833 2007-03-01  Bruno Haible  <bruno@clisp.org>
64834
64835         * build-aux/install-reloc: Remove object files left over by some
64836         compilers.
64837         Reported by Ralf Wildenhues.
64838
64839 2007-03-01  Bruno Haible  <bruno@clisp.org>
64840
64841         * build-aux/install-reloc: Break long lines.
64842
64843 2007-03-01  Bruno Haible  <bruno@clisp.org>
64844
64845         * doc/relocatable.texi: Document that it may not work on OpenBSD.
64846         Reported by Ralf Wildenhues.
64847
64848 2007-03-01  Bruno Haible  <bruno@clisp.org>
64849
64850         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
64851         include ordering constraints.
64852
64853 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64854
64855         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
64856         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
64857         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
64858         as another example.
64859         * lib/time_.h: Fix misspelling.
64860         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64861         Require gl_HEADER_TIME_H_DEFAULTS.
64862         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
64863         * m4/time_r.m4 (gl_TIME_R): Likewise.
64864         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
64865
64866 2007-03-01  Bruno Haible  <bruno@clisp.org>
64867
64868         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
64869         * m4/utimens.m4 (gl_UTIMENS): Likewise.
64870
64871 2007-03-01  Jim Meyering  <jim@meyering.net>
64872
64873         * modules/xreadlink (Maintainer): Add my name.
64874         * modules/xreadlink-with-size (Depends-on): Alphabetize.
64875
64876 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
64877             Bruno Haible  <bruno@clisp.org>
64878
64879         * build-aux/install-reloc: Compile also c-ctype.c.
64880         * build-aux/relocatable.sh.in: New file.
64881         * doc/relocatable.texi: New file.
64882         * doc/relocatable-maint.texi: New file.
64883         * doc/gnulib.texi: Include relocatable-maint.texi.
64884         * lib/progreloc.c: Include unistd.h unconditionally.
64885         * lib/relocwrapper.c: Include unistd.h unconditionally.
64886         Include c-ctype.h.
64887         (add_dotbin): Use c_tolower.
64888         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
64889         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
64890         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
64891         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
64892         to m4/relocatable-lib.m4.
64893         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
64894         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
64895         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
64896         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
64897         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
64898         * modules/relocatable: New file.
64899         * modules/relocatable-lib: New file.
64900         * modules/relocatable-script: New file.
64901
64902 2007-02-28  Bruno Haible  <bruno@clisp.org>
64903
64904         Import --enable-relocatable infrastructure.
64905         * build-aux/config.libpath: New file, from GNU gettext.
64906         * build-aux/install-reloc: New file, from GNU gettext.
64907         * build-aux/reloc-ldflags: New file, from GNU gettext.
64908         * lib/relocatable.h: New file, from GNU gettext.
64909         * lib/relocatable.c: New file, from GNU gettext.
64910         * lib/relocwrapper.c: New file, from GNU gettext.
64911         * m4/relocatable.m4: New file, from GNU gettext.
64912
64913 2007-02-28  Bruno Haible  <bruno@clisp.org>
64914
64915         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
64916
64917         * modules/xreadlink: New file, from GNU gettext with modifications.
64918         * lib/xreadlink.c: New file, from GNU gettext.
64919         * lib/xreadlink.h: Add comments.
64920         (xreadlink): New declaration.
64921
64922         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
64923         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
64924         lib/xreadlink-with-size.c.
64925         (configure.ac): Remove gl_XREADLINK invocation.
64926         (Makefile.am): Augment lib_SOURCES.
64927         * m4/xreadlink.m4: Remove file.
64928         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
64929         (xreadlink_with_size): Renamed from xreadink.
64930         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
64931         * modules/canonicalize (Depends-on): Replace xreadlink with
64932         xreadlink-with-size.
64933         * lib/canonicalize.c (canonicalize_filename_mode): Update.
64934
64935 2007-02-25  Jim Meyering  <jim@meyering.net>
64936
64937         * build-aux/announce-gen: When complaining about excess arguments,
64938         list them.
64939
64940 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
64941
64942         * README: Document signed integer overflow situation more
64943         accurately.
64944
64945 2007-02-25  Bruno Haible  <bruno@clisp.org>
64946
64947         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
64948         'a' or 'A' conversion.
64949
64950 2007-02-25  Bruno Haible  <bruno@clisp.org>
64951
64952         * modules/filename: Renamed from modules/pathname.
64953         (Files): Replace lib/pathname.h with lib/filename.h. Replace
64954         lib/concatpath.c with lib/concat-filename.c.
64955         (Makefile.am): Update.
64956         (Include): Replace pathname.h with filename.h.
64957         * lib/filename.h: Renamed from lib/pathname.h.
64958         (concatenated_filename): Renamed from concatenated_pathname.
64959         * lib/concat-filename.c: Renamed from lib/concatpath.c.
64960         (concatenated_filename): Renamed from concatenated_pathname.
64961         * lib/findprog.c: Include filename.h instead of pathname.h.
64962         (find_in_path): Update.
64963         * lib/javacomp.c: Include filename.h instead of pathname.h.
64964         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
64965         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
64966         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
64967         is_oldgcj_14_13_usable, is_javac_usable): Update.
64968         * lib/javaexec.c: Include filename.h instead of pathname.h.
64969         (execute_java_class): Update.
64970         * modules/findprog: Update.
64971         * modules/javacomp: Update.
64972         * modules/javaexec: Update.
64973         * MODULES.html.sh (File system functions): Add 'filename', remove
64974         'pathname'.
64975
64976 2007-02-25  Bruno Haible  <bruno@clisp.org>
64977
64978         * modules/printf-frexpl-tests: New file.
64979         * tests/test-printf-frexpl.c: New file.
64980
64981         * modules/printf-frexpl: New file.
64982         * lib/printf-frexpl.h: New file.
64983         * lib/printf-frexpl.c: New file.
64984         * m4/printf-frexpl.m4: New file.
64985
64986 2007-02-25  Bruno Haible  <bruno@clisp.org>
64987
64988         * modules/printf-frexp-tests: New file.
64989         * tests/test-printf-frexp.c: New file.
64990
64991         * modules/printf-frexp: New file.
64992         * lib/printf-frexp.h: New file.
64993         * lib/printf-frexp.c: New file.
64994         * m4/printf-frexp.m4: New file.
64995
64996 2007-02-25  Bruno Haible  <bruno@clisp.org>
64997
64998         Assume automake >= 1.10 for the tests.
64999         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
65000         * modules/arctwo-tests: Likewise.
65001         * modules/argp-tests: Likewise.
65002         * modules/avltree-list-tests: Likewise.
65003         * modules/avltree-oset-tests: Likewise.
65004         * modules/avltreehash-list-tests: Likewise.
65005         * modules/carray-list-tests: Likewise.
65006         * modules/crc-tests: Likewise.
65007         * modules/des-tests: Likewise.
65008         * modules/gc-arcfour-tests: Likewise.
65009         * modules/gc-arctwo-tests: Likewise.
65010         * modules/gc-des-tests: Likewise.
65011         * modules/gc-hmac-md5-tests: Likewise.
65012         * modules/gc-hmac-sha1-tests: Likewise.
65013         * modules/gc-md2-tests: Likewise.
65014         * modules/gc-md4-tests: Likewise.
65015         * modules/gc-md5-tests: Likewise.
65016         * modules/gc-pbkdf2-sha1-tests: Likewise.
65017         * modules/gc-rijndael-tests: Likewise.
65018         * modules/gc-sha1-tests: Likewise.
65019         * modules/gc-tests: Likewise.
65020         * modules/getaddrinfo-tests: Likewise.
65021         * modules/hmac-md5-tests: Likewise.
65022         * modules/hmac-sha1-tests: Likewise.
65023         * modules/linked-list-tests: Likewise.
65024         * modules/linkedhash-list-tests: Likewise.
65025         * modules/lock-tests: Likewise.
65026         * modules/md2-tests: Likewise.
65027         * modules/md4-tests: Likewise.
65028         * modules/md5-tests: Likewise.
65029         * modules/rbtree-list-tests: Likewise.
65030         * modules/rbtree-oset-tests: Likewise.
65031         * modules/rbtreehash-list-tests: Likewise.
65032         * modules/read-file-tests: Likewise.
65033         * modules/rijndael-tests: Likewise.
65034         * modules/stdint-tests: Likewise.
65035         * modules/tls-tests: Likewise.
65036
65037 2007-02-24  Bruno Haible  <bruno@clisp.org>
65038
65039         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
65040         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
65041         function; instead check whether isnan with a double argument links.
65042         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
65043         function; instead check whether isnan with a 'long double' argument
65044         links.
65045         Reported by Eric Blake <ebb9@byu.net>.
65046
65047 2007-02-24  Bruno Haible  <bruno@clisp.org>
65048
65049         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
65050         defined.
65051         * lib/isnanl.c: Remove all code. Just include isnan.c.
65052         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
65053
65054 2007-02-25  Jim Meyering  <jim@meyering.net>
65055
65056         Avoid conflicting types for 'unsetenv' on FreeBSD.
65057         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
65058         conflicting with FreeBSD's (5.0 and 6.1) function declaration
65059         in stdlib.h.
65060
65061 2007-02-24  Bruno Haible  <bruno@clisp.org>
65062
65063         * modules/isnanl-nolibm-tests: New file.
65064         * tests/test-isnanl.c: New file.
65065
65066         * modules/isnanl-nolibm: New file.
65067         * lib/isnanl.h: New file.
65068         * lib/isnanl.c: New file.
65069         * m4/isnanl.m4: New file.
65070
65071 2007-02-24  Bruno Haible  <bruno@clisp.org>
65072
65073         * modules/isnan-nolibm-tests: New file.
65074         * tests/test-isnan.c: New file.
65075
65076         * modules/isnan-nolibm: New file.
65077         * lib/isnan.h: New file.
65078         * lib/isnan.c: New file.
65079         * m4/isnan.m4: New file.
65080
65081 2007-02-24  Bruno Haible  <bruno@clisp.org>
65082
65083         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
65084         assume that an exponent fits in 20 bits.
65085
65086 2007-02-24  Jim Meyering  <jim@meyering.net>
65087
65088         * m4/regex.m4: Update the description of the configure-time option,
65089         --without-included-regex, to state accurately what the defaults are,
65090         and perhaps to give people an idea why using this option is risky.
65091
65092 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
65093
65094         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
65095         loops on small arguments.  This attempts to avoid the problem
65096         Bruno Haible reported for AIX 4.3.2 in
65097         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
65098
65099 2007-02-23  Bruno Haible  <bruno@clisp.org>
65100
65101         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
65102         Needed for help2man.
65103
65104 2007-02-23  Karl Berry  <karl@gnu.org>
65105
65106         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
65107         exists, foo.h should be cvs-ignored, not committed.
65108
65109 2007-02-23  Eric Blake  <ebb9@byu.net>
65110
65111         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
65112         * lib/stat-time.h (includes): Likewise.
65113         * lib/utimecmp.c (includes): Likewise.
65114         * lib/utimens.h (includes): Likewise.
65115         * lib/getdate.y (includes): Also include "timespec.h" for use
65116         internal to the module.
65117         * modules/utimens (Depends-on): Revert yesterday's patch.
65118         * modules/nanosleep (Depends-on): Add missing dependency.
65119
65120 2007-02-22  Bruno Haible  <bruno@clisp.org>
65121
65122         * lib/glob.c: Don't include getlogin_r.h.
65123
65124 2007-02-22  Jim Meyering  <jim@meyering.net>
65125
65126         * modules/utimens (Depends-on): Add timespec, required for
65127         utimens.h's inclusion of timespec.h.
65128
65129 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
65130
65131         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
65132         long unreadable paths in GNU/Linux.  Problem reported by Andreas
65133         Schwab in
65134         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
65135         I'll try to think of a better way to fix the Solaris problem.
65136
65137         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
65138         like glibc; on Solaris 10, it fails with errno == EINVAL.
65139         POSIX says the behavior is unspecified if the first argument is NULL,
65140         so play it safe and never pass NULL to the system getcwd.
65141
65142 2007-02-21  Jim Meyering  <jim@meyering.net>
65143
65144         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
65145         of gettimeofday.  It would conflict with the one now always
65146         provided via sys_time_.h.  Reported by Matthew Woehlke, as
65147         an IRIX 6.5 build failure.
65148
65149 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
65150
65151         Minor fixups to port to Solaris 10 with Sun C 5.8.
65152         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
65153         * modules/getcwd (Depends-on): Add dirfd.
65154         * lib/putenv.c (putenv): #undef it.
65155         (rpl_putenv): New decl.
65156         (malloc, free): Include <stdlib.h> rather than prototyping separately.
65157
65158 2007-02-20  Bruno Haible  <bruno@clisp.org>
65159
65160         * modules/stdio-tests: New file.
65161         * tests/test-stdio.c: New file.
65162
65163         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
65164         (Depends-on): Add stdio.
65165         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65166         (Include): Use <stdio.h> instead of vsnprintf.h.
65167         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
65168         HAVE_DECL_VSNPRINTF.
65169         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
65170
65171         * modules/snprintf (Files): Remove lib/snprintf.h.
65172         (Depends-on): Add stdio.
65173         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
65174         (Include): Use <stdio.h> instead of snprintf.h.
65175         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
65176         HAVE_DECL_SNPRINTF.
65177         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
65178         * lib/getaddrinfo.c: Likewise.
65179
65180         * modules/stdio: New file.
65181         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
65182         * lib/snprintf.h: Remove file.
65183         * lib/vsnprintf.h: Remove file.
65184         * lib/.cppi-disable: Remove snprintf.h.
65185         * m4/stdio_h.m4: New file.
65186         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
65187
65188 2007-02-20  Jim Meyering  <jim@meyering.net>
65189
65190         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
65191         used by e.g., mingw.  From Bruno Haible.
65192
65193 2007-02-19  Bruno Haible  <bruno@clisp.org>
65194
65195         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
65196         warnings.
65197         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65198
65199 2007-02-19  Bruno Haible  <bruno@clisp.org>
65200
65201         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
65202         from mingw users.
65203
65204 2007-02-19  Bruno Haible  <bruno@clisp.org>
65205
65206         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
65207         warnings.
65208         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
65209
65210 2007-02-19  Jim Meyering  <jim@meyering.net>
65211
65212         Don't use FD after a successful "fdopendir (fd)".
65213         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
65214         Reset it by calling dirfd on the just-obtained DIR*.
65215
65216         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
65217         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
65218
65219 2007-02-18  Bruno Haible  <bruno@clisp.org>
65220
65221         * lib/readlink.c: Include <unistd.h>.
65222         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
65223         HAVE_READLINK.
65224         * modules/readlink (Depends-on): Add unistd.
65225         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65226         (Include): Add <unistd.h>.
65227
65228         * lib/getlogin_r.h: Remove file.
65229         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
65230         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
65231         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
65232         HAVE_DECL_GETLOGIN_R.
65233         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
65234         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65235         (Include): Use <unistd.h> instead of getlogin_r.h.
65236
65237         * lib/getcwd.h: Remove file.
65238         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
65239         * lib/xgetcwd.c: Likewise.
65240         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
65241         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
65242         * modules/getcwd (Files): Remove lib/getcwd.h.
65243         (Depends-on): Add unistd.
65244         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65245         (Include): Use <unistd.h> instad of getcwd.h.
65246
65247         * lib/ftruncate.c: Include <unistd.h> first.
65248         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
65249         Set HAVE_FTRUNCATE.
65250         * modules/ftruncate (Depends-on): Add unistd.
65251         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65252
65253         * lib/fchdir.c: Include <unistd.h> first.
65254         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
65255         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
65256         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
65257         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65258         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
65259
65260         * lib/dup2.c: Include <unistd.h> first.
65261         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
65262         HAVE_DUP2.
65263         * modules/dup2 (Depends-on): Add unistd.
65264         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65265
65266         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
65267         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
65268         REPLACE_CHOWN. Don't define chown as a macro here.
65269         * modules/chown (Depends-on): Add unistd.
65270         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65271
65272         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
65273         Add definition for GL_LINK_WARNING.
65274         (chown, dup2): New declarations.
65275         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
65276         link warning.
65277         (ftruncate): New declaration.
65278         (getcwd): New declaration, taken from old getcwd.h.
65279         (getlogin_r): New declaration, taken from old getlogin_r.h.
65280         (readlink): New declaration.
65281         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
65282         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
65283         (gl_PREREQ_UNISTD): Remove macro.
65284         (gl_UNISTD_MODULE_INDICATOR): New macro.
65285         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
65286         many new variables. Don't set UNISTD_H.
65287         * modules/unistd (Description): Change.
65288         (Depends-on): Add link-warning.
65289         (configure.ac): Update.
65290         (Makefile.am): Create unistd.h always. Substitute many new variables
65291         into it.
65292
65293 2007-02-18  Bruno Haible  <bruno@clisp.org>
65294
65295         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
65296         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
65297         HAVE_GETSUBOPT.
65298         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
65299         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
65300         * lib/getsubopt.h: Remove file.
65301         * modules/getsubopt (Files): Remove lib/getsubopt.h.
65302         (Depends-on): Add stdlib.
65303         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65304         (Includes): Use <stdlib.h> instead of getsubopt.h.
65305         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
65306         Set HAVE_GETSUBOPT.
65307         * lib/getsubopt.c: Don't include getsubopt.h.
65308
65309 2007-02-18  Bruno Haible  <bruno@clisp.org>
65310
65311         * modules/fchdir (Depends-on): Add dup2.
65312
65313 2007-02-18  Bruno Haible  <bruno@clisp.org>
65314
65315         * lib/stdlib_.h: Handle glibc's special invocation convention
65316         specially.
65317
65318 2007-02-18  Bruno Haible  <bruno@clisp.org>
65319
65320         * modules/stdlib-tests: New file.
65321         * tests/test-stdlib.c: New file.
65322
65323         * modules/mkstemp (Files): Remove lib/mkstemp.h.
65324         (Depends-on): Add stdlib.
65325         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65326         (Includes): Use <stdlib.h> instead of mkstemp.h.
65327         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
65328         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
65329         * lib/mkstemp.c: Don't include mkstemp.h.
65330         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
65331         * lib/stdlib--.h: Don't include mkstemp.h.
65332
65333         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
65334         (Depends-on): Add stdlib.
65335         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65336         (Includes): Use <stdlib.h> instead of mkdtemp.h.
65337         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
65338         HAVE_MKDTEMP.
65339         * lib/mkdtemp.c: Don't include mkdtemp.h.
65340         * lib/clean-temp.c: Don't include mkdtemp.h.
65341
65342         * modules/exit (Files): Remove lib/exit.h.
65343         (Depends-on): Add stdlib.
65344         (Makefile.am): Remove lib_SOURCES.
65345         (Include): Use <stdlib.h> instead of exit.h.
65346         * lib/argmatch.c: Don't include exit.h.
65347         * lib/execute.c: Likewise.
65348         * lib/pagealign_alloc.c: Likewise.
65349         * lib/pipe.c: Likewise.
65350         * lib/wait-process.c: Likewise.
65351         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
65352         * lib/exitfail.c: Likewise.
65353         * lib/savewd.c: Likewise.
65354         * lib/xsetenv.c: Likewise.
65355
65356         * modules/stdlib: New file.
65357         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
65358         and extra comments about mkstemp().
65359         * lib/exit.h: Remove file.
65360         * lib/mkdtemp.h: Remove file.
65361         * lib/mkstemp.h: Remove file.
65362         * m4/stdlib_h.m4: New file.
65363         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
65364
65365 2007-02-18  Bruno Haible  <bruno@clisp.org>
65366
65367         * modules/math-tests: New file.
65368         * tests/test-math.c: New file.
65369
65370         * modules/math: New file.
65371         * modules/mathl (Files): Remove lib/mathl.h.
65372         (Depends-on): Add math.
65373         (Makefile.am): Don't mention mathl.h.
65374         (Include): Use <math.h> instead of mathl.h.
65375         * lib/math_.h: New file.
65376         * lib/mathl.h: Remove file.
65377         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
65378         mathl.h.
65379         * lib/asinl.c: Likewise.
65380         * lib/atanl.c: Likewise.
65381         * lib/ceill.c: Likewise.
65382         * lib/cosl.c: Likewise.
65383         * lib/expl.c: Likewise.
65384         * lib/floorl.c: Likewise.
65385         * lib/frexpl.c: Likewise.
65386         * lib/ldexpl.c: Likewise.
65387         * lib/logl.c: Likewise.
65388         * lib/sincosl.c: Likewise.
65389         * lib/sinl.c: Likewise.
65390         * lib/sqrtl.c: Likewise.
65391         * lib/tanl.c: Likewise.
65392         * lib/trigl.c: Likewise.
65393         * m4/math_h.m4: New file.
65394         * MODULES.html.sh (Mathematics): Add math.
65395
65396 2007-02-17  Bruno Haible  <bruno@clisp.org>
65397
65398         * modules/wctype-tests: New file.
65399         * tests/test-wctype.c: New file.
65400
65401         * modules/wchar-tests: New file.
65402         * tests/test-wchar.c: New file.
65403
65404         * modules/unistd-tests: New file.
65405         * tests/test-unistd.c: New file.
65406
65407         * modules/time-tests: New file.
65408         * tests/test-time.c: New file.
65409
65410         * modules/sysexits-tests: New file.
65411         * tests/test-sysexits.c: New file.
65412
65413         * modules/sys_time-tests: New file.
65414         * tests/test-sys_time.c: New file.
65415
65416         * modules/sys_stat-tests: New file.
65417         * tests/test-sys_stat.c: New file.
65418
65419         * modules/sys_socket-tests: New file.
65420         * tests/test-sys_socket.c: New file.
65421
65422         * modules/sys_select-tests: New file.
65423         * tests/test-sys_select.c: New file.
65424
65425         * modules/string-tests: New file.
65426         * tests/test-string.c: New file.
65427
65428         * modules/stdbool-tests: New file.
65429         * tests/test-stdbool.c: New file.
65430
65431         * modules/netinet_in-tests: New file.
65432         * tests/test-netinet_in.c: New file.
65433
65434         * modules/inttypes-tests: New file.
65435         * tests/test-inttypes.c: New file.
65436
65437         * modules/fcntl-tests: New file.
65438         * tests/test-fcntl.c: New file.
65439
65440         * modules/byteswap-tests: New file.
65441         * tests/test-byteswap.c: New file.
65442
65443         * modules/arpa_inet-tests: New file.
65444         * tests/test-arpa_inet.c: New file.
65445
65446 2007-02-17  Bruno Haible  <bruno@clisp.org>
65447
65448         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
65449         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
65450         if the corresponding module is not enabled. Emit link warnings if
65451         the function is used nevertheless.
65452         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
65453         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
65454         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
65455         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
65456         * modules/inttypes (Depends-on): Add link-warning.
65457         (Makefile.am): Copy the contents of build-aux/link-warning.h into
65458         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
65459         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
65460         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
65461         * modules/imaxdiv (configure.ac): Likewise.
65462         * modules/strtoimax (configure.ac): Likewise.
65463         * modules/strtoumax (configure.ac): Likewise.
65464
65465 2007-02-17  Bruno Haible  <bruno@clisp.org>
65466
65467         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
65468         gl_STRING_MODULE_INDICATOR_DEFAULTS.
65469         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
65470         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
65471
65472 2007-02-17  Bruno Haible  <bruno@clisp.org>
65473
65474         * modules/link-warning: New file.
65475         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
65476         * lib/string_.h (GL_LINK_WARNING): Remove definition.
65477         * modules/string (Depends-on): Add link-warning.
65478         (Makefile.am): Copy the contents of build-aux/link-warning.h into
65479         string.h.
65480         * MODULES.html.sh (Support for building libraries and executables): Add
65481         link-warning.
65482
65483 2007-02-17  Bruno Haible  <bruno@clisp.org>
65484
65485         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
65486         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
65487         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
65488         long lines.
65489
65490 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
65491             Bruno Haible  <bruno@clisp.org>
65492
65493         * modules/tmpfile: New file.
65494         * lib/tmpfile.c: New file.
65495         * m4/tmpfile.m4: New file.
65496         * MODULES.html.sh (func_all_modules): New section "Input/output".
65497
65498 2007-02-15  Bruno Haible  <bruno@clisp.org>
65499
65500         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
65501         (supports_delete_on_close): New function.
65502         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
65503
65504 2007-02-14  Bruno Haible  <bruno@clisp.org>
65505
65506         * modules/mbspcasecmp-tests: New file.
65507         * tests/test-mbspcasecmp.sh: New file.
65508         * tests/test-mbspcasecmp.c: New file.
65509
65510         New module mbspcasecmp.
65511         * modules/mbspcasecmp: New file.
65512         * lib/mbspcasecmp.c: New file.
65513         * lib/string_.h (strncasecmp): Change warning message.
65514         (mbspcasecmp): New declaration.
65515         * m4/mbspcasecmp.m4: New file.
65516         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65517         GNULIB_MBSPCASECMP.
65518         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
65519         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
65520
65521 2007-02-14  Bruno Haible  <bruno@clisp.org>
65522
65523         * modules/mbsncasecmp-tests: New file.
65524         * tests/test-mbsncasecmp.sh: New file.
65525         * tests/test-mbsncasecmp.c: New file.
65526
65527         New module mbsncasecmp.
65528         * modules/mbsncasecmp: New file.
65529         * lib/mbsncasecmp.c: New file.
65530         * lib/string_.h (mbsncasecmp): New declaration.
65531         * m4/mbsncasecmp.m4: New file.
65532         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65533         GNULIB_MBSNCASECMP.
65534         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
65535         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
65536
65537 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
65538
65539         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
65540         Verify that it doesn't overlap with our flags.
65541         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
65542         do not have the desired effect in multibyte locales; instead, use
65543         mbscasecmp.
65544         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
65545         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
65546         we don't require GNU fnmatch ourselves (if our users require it, they
65547         should do so explicitly).
65548
65549         Fix regex code so it doesn't rely on strcasecmp.
65550         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
65551         Otherwise, include gnulib's langinfo.h.
65552         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
65553         undesirable behavior in non-C locales.  Instead, rely on localecharset.
65554         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
65555         * modules/regex (FILES): Remove m4/codeset.m4.
65556         (Depends-on): Add localcharset.  Remove strcase.
65557
65558 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65559
65560         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
65561         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
65562
65563 2007-02-13  Bruno Haible  <bruno@clisp.org>
65564
65565         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
65566         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65567
65568 2007-02-12  Bruno Haible  <bruno@clisp.org>
65569
65570         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
65571         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
65572         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
65573         time warning rather than a link error.
65574
65575 2007-02-12  Bruno Haible  <bruno@clisp.org>
65576
65577         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
65578         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
65579         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65580
65581 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
65582
65583         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
65584         args, not 2.
65585
65586 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
65587
65588         New module 'time', so that apps can include <time.h> as per
65589         POSIX and GNU instead of separate include files like time_r.h
65590         and timegm.h.  This implementation tries out a simpler approach
65591         for replacing decls in standard include files (as compared to
65592         the string module), somewhat as an experiment.
65593
65594         * config/srclist.txt: Comment out mktime.c for now.
65595         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
65596         since it doesn't apply any more.  Use generic wording instead.
65597         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
65598         'time'.
65599         * lib/time_.h, m4/time_h.m4, modules/time: New files.
65600         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
65601         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
65602         Don't include <sys/types.h>; no longer needed since we assume C89.
65603         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
65604         * lib/strftime.c: Likewise.
65605         * lib/time_r.c: Likewise.
65606         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
65607         * lib/nanosleep.c: Include <time.h> first, to check interface.
65608         * lib/strptime.c: Likewise.
65609         * lib/time_r.c: Likewise.
65610         * lib/timegm.c: Likewise.
65611         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
65612         needed.
65613         * lib/timegm.c: Don't include timegm.h; no longer needed.
65614         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
65615         time.h now handles any problems in that area.
65616         (struct timespec, nanosleep): Remove; time.h now arranges for these.
65617         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
65618         that time.h defines struct timespec.
65619         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
65620         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
65621         handles that.
65622         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
65623         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
65624         needed.  Set REPLACE_LOCALTIME.
65625         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
65626         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
65627         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
65628         nanosleep; time_h.m4 now does that.  Don't require
65629         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
65630         module handles this now.
65631         * modules/getdate (Depends-on): Remove timespec.  Add time.
65632         * modules/nanosleep (Depends-on): Likewise.
65633         * modules/stat-time (Depends-on): Likewise.
65634         * modules/nanosleep (Include): Include time.h, not timespec.h.
65635         * modules/strptime (Files): Remove lib/strptime.h.
65636         (Depends-on): Add extensions, time.
65637         (Include): Include time.h, not strptime.h.
65638         * modules/time_r (Files): Remove lib/time_r.h.
65639         (Depends-on): Add time.
65640         (Include): Include time.h, not time_r.h.
65641         * modules/timegm: Likewise.
65642         * modules/timespec (Description): Now does timespec-related decls
65643         of our own, instead of struct timespec itself.
65644         (Depends-on): Add time; remove extensions.
65645         (Maintainer): Add self.
65646         * modules/utimecmp (Depends-on): Add time; remove timespec.
65647         * modules/utimens (Depends-on): Likewise.
65648         * modules/xnanosleep (Depends-on): Likewise.
65649
65650 2007-02-11  Bruno Haible  <bruno@clisp.org>
65651
65652         * lib/c-strstr.c: Include allocsa.h.
65653         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65654         * lib/c-strcasestr.c: Include allocsa.h.
65655         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65656         * lib/strcasestr.c: Include allocsa.h.
65657         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65658         * lib/mbsstr.c: Include allocsa.h.
65659         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
65660         allocsa/freesa instead of malloc/free.
65661         * lib/mbscasestr.c: Include allocsa.h.
65662         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
65663         allocsa/freesa instead of malloc/free.
65664         * modules/c-strstr (Depends-on): Add allocsa.
65665         * modules/c-strcasestr (Depends-on): Likewise.
65666         * modules/strcasestr (Depends-on): Likewise.
65667         * modules/mbsstr (Depends-on): Likewise.
65668         * modules/mbscasestr (Depends-on): Likewise.
65669
65670 2007-02-11  Bruno Haible  <bruno@clisp.org>
65671
65672         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
65673
65674         * modules/mbsspn-tests: New file.
65675         * tests/test-mbsspn.sh: New file.
65676         * tests/test-mbsspn.c: New file.
65677
65678 2007-02-11  Bruno Haible  <bruno@clisp.org>
65679
65680         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
65681
65682         * modules/mbspbrk-tests: New file.
65683         * tests/test-mbspbrk.sh: New file.
65684         * tests/test-mbspbrk.c: New file.
65685
65686 2007-02-11  Bruno Haible  <bruno@clisp.org>
65687
65688         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
65689         unneeded cast.
65690
65691         * modules/mbscspn-tests: New file.
65692         * tests/test-mbscspn.sh: New file.
65693         * tests/test-mbscspn.c: New file.
65694
65695 2007-02-11  Bruno Haible  <bruno@clisp.org>
65696
65697         * modules/mbscasecmp-tests: New file.
65698         * tests/test-mbscasecmp.sh: New file.
65699         * tests/test-mbscasecmp.c: New file.
65700
65701 2007-02-11  Bruno Haible  <bruno@clisp.org>
65702
65703         Ensure O(n) worst-case complexity of mbscasestr.
65704         * lib/mbscasestr.c: Include stdbool.h.
65705         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
65706         functions.
65707         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
65708         the bookkeeping indicates that it's worth it.
65709         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
65710
65711         * modules/mbscasestr-tests: New file.
65712         * tests/test-mbscasestr1.c: New file.
65713         * tests/test-mbscasestr2.sh: New file.
65714         * tests/test-mbscasestr2.c: New file.
65715         * tests/test-mbscasestr3.sh: New file.
65716         * tests/test-mbscasestr3.c: New file.
65717         * tests/test-mbscasestr4.sh: New file.
65718         * tests/test-mbscasestr4.c: New file.
65719         * m4/locale-tr.m4: New file.
65720
65721 2007-02-11  Bruno Haible  <bruno@clisp.org>
65722
65723         Ensure O(n) worst-case complexity of mbsstr.
65724         * lib/mbsstr.c: Include stdbool.h.
65725         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
65726         functions.
65727         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
65728         bookkeeping indicates that it's worth it.
65729         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
65730
65731         * modules/mbsstr-tests: New file.
65732         * tests/test-mbsstr1.c: New file.
65733         * tests/test-mbsstr2.sh: New file.
65734         * tests/test-mbsstr2.c: New file.
65735         * tests/test-mbsstr3.sh: New file.
65736         * tests/test-mbsstr3.c: New file.
65737         * m4/locale-fr.m4: New file.
65738
65739 2007-02-11  Bruno Haible  <bruno@clisp.org>
65740
65741         * lib/mbsrchr.c (mbsrchr): Fix bug.
65742
65743         * modules/mbsrchr-tests: New file.
65744         * tests/test-mbsrchr.sh: New file.
65745         * tests/test-mbsrchr.c: New file.
65746
65747 2007-02-11  Bruno Haible  <bruno@clisp.org>
65748
65749         * lib/mbschr.c (mbschr): Fix bug.
65750
65751         * modules/mbschr-tests: New file.
65752         * tests/test-mbschr.sh: New file.
65753         * tests/test-mbschr.c: New file.
65754         * m4/locale-zh.m4: New file.
65755
65756 2007-02-11  Bruno Haible  <bruno@clisp.org>
65757
65758         Support for copying multibyte string iterators.
65759         * lib/mbiter.h: Include <string.h>.
65760         (mbiter_multi_copy): New function.
65761         (mbi_copy): New macro.
65762         * lib/mbuiter.h: Include <string.h>.
65763         (mbuiter_multi_copy): New function.
65764         (mbui_copy): New macro.
65765
65766 2007-02-11  Bruno Haible  <bruno@clisp.org>
65767
65768         New module mbslen.
65769         * modules/mbslen: New file.
65770         * lib/mbslen.c: New file.
65771         * lib/string_.h (mbslen): New declaration.
65772         * m4/mbslen.m4: New file.
65773         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65774         GNULIB_MBSLEN.
65775         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
65776         * MODULES.html.sh (Internationalization functions): Add mbslen.
65777
65778 2007-02-11  Bruno Haible  <bruno@clisp.org>
65779
65780         Ensure O(n) worst-case complexity of strcasestr substitute.
65781         * lib/strcasestr.c: Include stdbool.h.
65782         (knuth_morris_pratt): New function.
65783         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
65784         bookkeeping indicates that it's worth it.
65785         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
65786
65787         * modules/strcasestr-tests: New file.
65788         * tests/test-strcasestr.c: New file.
65789
65790 2007-02-11  Bruno Haible  <bruno@clisp.org>
65791
65792         Ensure O(n) worst-case complexity of c_strcasestr.
65793         * lib/c-strcasestr.c: Include stdbool.h, string.h.
65794         (knuth_morris_pratt): New function.
65795         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
65796         the bookkeeping indicates that it's worth it.
65797         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
65798
65799         * modules/c-strcasestr-tests: New file.
65800         * tests/test-c-strcasestr.c: New file.
65801
65802 2007-02-11  Bruno Haible  <bruno@clisp.org>
65803
65804         Ensure O(n) worst-case complexity of c_strstr.
65805         * lib/c-strstr.c: Include stdbool.h, string.h.
65806         (knuth_morris_pratt): New function.
65807         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
65808         bookkeeping indicates that it's worth it.
65809         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
65810
65811         * lib/c-strstr.c: Complete rewrite for maintainability.
65812
65813         * modules/c-strstr-tests: New file.
65814         * tests/test-c-strstr.c: New file.
65815
65816 2007-02-11  Bruno Haible  <bruno@clisp.org>
65817
65818         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
65819         5.2.1 and earlier, whereby \055 was treated just like the range
65820         delimiter '-'.
65821         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
65822
65823 2007-02-08  Bruno Haible  <bruno@clisp.org>
65824
65825         * modules/regex (Depends-on): Add stdbool.
65826         Reported by Dalibor Topic <robilad@kaffe.org>.
65827
65828 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65829
65830         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
65831         Prefer returning from main to exiting from it.
65832         Remove unnecessary parens after sizeof.
65833
65834 2007-02-05  Bruno Haible  <bruno@clisp.org>
65835
65836         New module mbssep.
65837         * modules/mbssep: New file.
65838         * lib/mbssep.c: New file.
65839         * lib/string_.h (strsep): Add a conditional link warning.
65840         (mbssep): New declaration.
65841         * m4/mbssep.m4: New file.
65842         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65843         GNULIB_MBSSEP.
65844         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
65845         * MODULES.html.sh (Internationalization functions): Add mbssep.
65846
65847 2007-02-05  Bruno Haible  <bruno@clisp.org>
65848
65849         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
65850         Optimize search in case of 1 delimiter.
65851
65852 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
65853
65854         * lib/acl.h: Include sys/types.h before sys/acl.h.
65855
65856 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
65857
65858         Merge upstream fix for glibc bugzilla #3957:
65859
65860         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
65861
65862         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
65863         bit for RE_HAT_LISTS_NOT_NEWLINE.
65864         (build_charclass_op): Remove bogus comment.
65865
65866 2007-02-05  Simon Josefsson  <simon@josefsson.org>
65867
65868         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
65869
65870 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
65871
65872         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
65873         * lib/memmem.c [!defined _LIBC]: Include config.h.
65874
65875 2007-02-04  Bruno Haible  <bruno@clisp.org>
65876
65877         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
65878         warning message.
65879
65880 2007-02-04  Bruno Haible  <bruno@clisp.org>
65881
65882         New module mbstok_r.
65883         * modules/mbstok_r: New file.
65884         * lib/mbstok_r.c: New file.
65885         * lib/string_.h (strtok_r): Change argument names to match the
65886         comments. Add a conditional link warning.
65887         (mbstok_r): New declaration.
65888         * m4/mbstok_r.m4: New file.
65889         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65890         GNULIB_MBSTOK_R.
65891         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
65892         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
65893
65894 2007-02-04  Bruno Haible  <bruno@clisp.org>
65895
65896         New module mbsspn.
65897         * modules/mbsspn: New file.
65898         * lib/mbsspn.c: New file.
65899         * lib/string_.h (strspn): Add a conditional link warning.
65900         (mbsspn): New declaration.
65901         * m4/mbsspn.m4: New file.
65902         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65903         GNULIB_MBSSPN.
65904         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
65905         * MODULES.html.sh (Internationalization functions): Add mbsspn.
65906
65907 2007-02-04  Bruno Haible  <bruno@clisp.org>
65908
65909         New module mbspbrk.
65910         * modules/mbspbrk: New file.
65911         * lib/mbspbrk.c: New file.
65912         * lib/string_.h (strpbrk): Add a conditional link warning.
65913         (mbspbrk): New declaration.
65914         * m4/mbspbrk.m4: New file.
65915         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65916         GNULIB_MBSPBRK.
65917         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
65918         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
65919
65920 2007-02-04  Bruno Haible  <bruno@clisp.org>
65921
65922         New module mbscspn.
65923         * modules/mbscspn: New file.
65924         * lib/mbscspn.c: New file.
65925         * lib/string_.h (strcspn): Add a conditional link warning.
65926         (mbscspn): New declaration.
65927         * m4/mbscspn.m4: New file.
65928         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65929         GNULIB_MBSCSPN.
65930         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
65931         * MODULES.html.sh (Internationalization functions): Add mbscspn.
65932
65933 2007-02-04  Bruno Haible  <bruno@clisp.org>
65934
65935         New module mbscasestr, reduced goal of strcasestr.
65936         * modules/mbscasestr: New file.
65937         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
65938         (mbscasestr): Renamed from strcasestr.
65939         * lib/strcasestr.c: Don't include mbuiter.h.
65940         (strcasestr): Remove support for multibyte locales.
65941         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
65942         Change the conditional link warning.
65943         (mbscasestr): New declaration.
65944         * m4/mbscasestr.m4: New file.
65945         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
65946         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
65947         REPLACE_STRCASESTR.
65948         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
65949         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65950         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
65951         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
65952         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
65953         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
65954         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
65955         (Depends-on): Remove mbuiter.
65956         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
65957
65958 2007-02-04  Bruno Haible  <bruno@clisp.org>
65959
65960         Simplify handling of strncasecmp.
65961         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
65962         the conditional link warning.
65963         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65964         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
65965         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
65966         * modules/strcase (configure.ac): Don't invoke
65967         gl_STRING_MODULE_INDICATOR.
65968         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
65969
65970 2007-02-04  Bruno Haible  <bruno@clisp.org>
65971
65972         New module mbscasecmp, reduced goal of strcasecmp.
65973         * modules/mbscasecmp: New file.
65974         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
65975         (mbscasecmp): Renamed from strcasecmp.
65976         * lib/strcasecmp.c: Don't include mbuiter.h.
65977         (strcasecmp): Remove support for multibyte locales.
65978         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
65979         Change the conditional link warning.
65980         (mbscasecmp): New declaration.
65981         * m4/mbscasecmp.m4: New file.
65982         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
65983         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
65984         REPLACE_STRCASECMP.
65985         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
65986         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65987         GNULIB_MBSCASECMP.
65988         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
65989         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
65990         * modules/strcase (Files): Remove m4/mbrtowc.m4.
65991         (Depends-on): Remove mbuiter.
65992         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
65993
65994 2007-02-04  Bruno Haible  <bruno@clisp.org>
65995
65996         New module mbsstr. Remove module strstr.
65997         * modules/mbsstr: New file.
65998         * modules/strstr: Remove file.
65999         * lib/mbsstr.c: Renamed from lib/strstr.c.
66000         (mbsstr): Renamed from strstr.
66001         * lib/string_.h (strstr): Remove declaration. Change the conditional
66002         link warning.
66003         (mbsstr): New declaration.
66004         * m4/mbsstr.m4: New file.
66005         * m4/strstr.m4: Remove file.
66006         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
66007         REPLACE_STRSTR.
66008         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
66009         Don't initialize GNULIB_STRSTR.
66010         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
66011         substitute GNULIB_STRSTR and REPLACE_STRSTR.
66012         * MODULES.html.sh (Internationalization functions): Add mbsstr.
66013         (Support for systems lacking ANSI C 89): Remove strstr.
66014
66015 2007-02-04  Bruno Haible  <bruno@clisp.org>
66016
66017         New module mbsrchr.
66018         * modules/mbsrchr: New file.
66019         * lib/mbsrchr.c: New file.
66020         * lib/string_.h (strrchr): Add a conditional link warning.
66021         (mbsrchr): New declaration.
66022         * m4/mbsrchr.m4: New file.
66023         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66024         GNULIB_MBSRCHR.
66025         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
66026         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
66027
66028 2007-02-04  Bruno Haible  <bruno@clisp.org>
66029
66030         New module mbschr.
66031         * modules/mbschr: New file.
66032         * lib/mbschr.c: New file.
66033         * lib/string_.h (strchr): Add a conditional link warning.
66034         (mbschr): New declaration.
66035         * m4/mbschr.m4: New file.
66036         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
66037         GNULIB_MBSCHR.
66038         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
66039         * MODULES.html.sh (Internationalization functions): Add mbschr.
66040
66041 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
66042
66043         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
66044
66045         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
66046
66047 2007-02-04  Bruno Haible  <bruno@clisp.org>
66048
66049         New module description section 'configure.ac-early'.
66050         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
66051         (func_get_autoconf_early_snippet): New function.
66052         (func_import, func_create_testdir): Use it. Remove special cases for
66053         modules 'extensions' and 'lock'.
66054         * modules/extensions (configure.ac-early): Require
66055         gl_USE_SYSTEM_EXTENSIONS.
66056         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
66057
66058 2007-02-04  Bruno Haible  <bruno@clisp.org>
66059
66060         Make use of gcj-4.3's -fsource and -ftarget option.
66061         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
66062         and if so try the options -fsource and -ftarget.
66063         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
66064         source_version, ftarget_option, target_version arguments.
66065         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
66066         (is_envjavac_oldgcj_14_14_usable): Renamed from
66067         is_envjavac_gcj_14_14_usable.
66068         (is_envjavac_oldgcj_14_13_usable): Renamed from
66069         is_envjavac_gcj_14_13_usable.
66070         (is_gcj_present): Update.
66071         (is_gcj_43, is_gcj43_usable): New functions.
66072         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
66073         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
66074         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
66075         try the options -fsource and -ftarget.
66076
66077 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
66078
66079         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
66080         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
66081         larger value.
66082
66083 2007-02-03  Jim Meyering  <jim@meyering.net>
66084
66085         Give tools a better chance to allocate space for very large buffers.
66086         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
66087
66088         Make pwd and readlink work also when run with an unreadable parent dir
66089         on systems with openat support.
66090         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
66091         provided getcwd function, even when we have openat support.
66092         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
66093
66094 2007-02-02  Bruno Haible  <bruno@clisp.org>
66095
66096         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
66097         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
66098         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
66099         portability problems if one of these functions is only used on specific
66100         platforms.
66101         Reported by Paul Eggert.
66102
66103 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
66104
66105         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
66106         is causing more trouble than it's curing.
66107         * lib/regex_internal.h (__mempcpy): Remove.
66108         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
66109         (and make the code a tad smaller to boot).
66110         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
66111
66112 2007-02-02  Jim Meyering  <jim@meyering.net>
66113
66114         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
66115         section, not in the Makefile.am: one.
66116
66117 2007-02-02  Eric Blake  <ebb9@byu.net>
66118
66119         * lib/strchrnul.c: Always include config.h first.
66120
66121         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
66122         gnulib strstr is not necessary here.
66123
66124 2007-02-02  Simon Josefsson  <simon@josefsson.org>
66125
66126         * m4/socklen.m4: Fix typo.
66127
66128 2007-02-02  Eric Blake  <ebb9@byu.net>
66129
66130         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
66131         * modules/netinet_in (Makefile.am): Likewise.
66132
66133 2007-02-01  Bruno Haible  <bruno@clisp.org>
66134
66135         * lib/string_.h (GL_LINK_WARNING): New macro.
66136         (strcasecmp, strstr, strcasestr): If provided by the system,
66137         conditionally define as a macro that leads to a warning instead of to
66138         an error.
66139         (strncasecmp): Conditionally define as a macro that leads to a warning.
66140
66141 2007-02-01  Karl Berry  <karl@gnu.org>
66142
66143         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
66144
66145 2007-02-01  Bruno Haible  <bruno@clisp.org>
66146
66147         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
66148         renamings.
66149
66150 2007-02-01  Eric Blake  <ebb9@byu.net>
66151
66152         * modules/regex (Depends-on): Revert dependence on mempcpy.
66153         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
66154         module's definition of mempcpy.
66155         Reported by Paul Eggert.
66156
66157 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
66158
66159         * lib/string_.h: If the gnulib module XYZ is not present, undefine
66160         the symbol XYZ before redefining it.  This fixes a problem with
66161         programs that don't use XYZ, when compiled on systems that define
66162         XYZ to something else.
66163
66164 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
66165
66166         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
66167         occurs when "mkdir -m foo" creates a setgid directory that is (1)
66168         writeable to group or other and (2) is intended to have a special
66169         mode bit that is set or cleared.  In such a case, the directory
66170         should be neither group- nor other-writeable until the special
66171         mode bits are right.
66172
66173 2007-01-31  Eric Blake  <ebb9@byu.net>
66174
66175         * modules/mountlist (Depends-on): Add strstr.
66176
66177         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
66178         bug.
66179         * modules/string (Makefile.am): Remove redundant replacement.
66180         * modules/regex (Depends-on): Add mempcpy.
66181
66182 2007-01-31  Bruno Haible  <bruno@clisp.org>
66183
66184         New module description field 'Link'.
66185         * gnulib-tool (func_usage): Document --extract-link-directive.
66186         (sed_extract_prog): Recognize 'Link' directive.
66187         (func_get_link_directive): New function.
66188         (func_import): Show summary of link directives.
66189         Handle --extract-link-directive option.
66190         * modules/acl (Link): New section.
66191         * modules/clock-time (Link): New section.
66192         * modules/euidaccess (Link): New section.
66193         * modules/gettext (Link): New section.
66194         * modules/iconv (Link): New section.
66195         * modules/lock (Link): New section.
66196         * modules/nanosleep (Link): New section.
66197         * modules/readline (Link): New section.
66198
66199 2007-01-27  Bruno Haible  <bruno@clisp.org>
66200
66201         Enforce the use of gnulib modules for unportable <string.h> functions.
66202         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
66203         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
66204         (gl_HEADER_STRING_H_BODY): Require it.
66205         * lib/string_.h: If the gnulib module XYZ is not present, redefine
66206         the symbol XYZ to one that gives a link error.
66207         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
66208         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
66209         * modules/mempcpy (configure.ac): Likewise.
66210         * modules/memrchr (configure.ac): Likewise.
66211         * modules/stpcpy (configure.ac): Likewise.
66212         * modules/stpncpy (configure.ac): Likewise.
66213         * modules/strcase (configure.ac): Likewise.
66214         * modules/strcasestr (configure.ac): Likewise.
66215         * modules/strchrnul (configure.ac): Likewise.
66216         * modules/strdup (configure.ac): Likewise.
66217         * modules/strndup (configure.ac): Likewise.
66218         * modules/strnlen (configure.ac): Likewise.
66219         * modules/strpbrk (configure.ac): Likewise.
66220         * modules/strsep (configure.ac): Likewise.
66221         * modules/strstr (configure.ac): Likewise.
66222         * modules/strtok_r (configure.ac): Likewise.
66223
66224 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
66225
66226         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
66227
66228 2007-01-30  Jim Meyering  <jim@meyering.net>
66229
66230         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
66231
66232 2007-01-29  Bruno Haible  <bruno@clisp.org>
66233
66234         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
66235         * lib/execute.c: Likewise.
66236         * lib/pipe.c: Likewise.
66237         * lib/printf-args.h: Likewise.
66238         * lib/printf-args.c: Likewise.
66239         * lib/printf-parse.c: Likewise.
66240         * lib/vasnprintf.c: Likewise.
66241
66242 2007-01-29  Eric Blake  <ebb9@byu.net>
66243
66244         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
66245         declaration.
66246
66247 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
66248
66249         * lib/strptime.h (strptime): Use 'restrict' for args where
66250         POSIX requires this.
66251         * lib/strptime.c (strptime): Likewise.
66252         Change license notice from LGPL to GPL, since gnulib-tool will
66253         change this as needed.
66254         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
66255         defined.
66256         Include "strptime.h" first, to check interface.
66257         Do not #undef _LIBC and _NL_CURRENT.
66258         Do not include <stdlib.h>; no longer needed.
66259         Include "time_r.h" and declare ptime_locale_status
66260         only if _LIBC is not defined.
66261         (__P): Remove unused macro.
66262         (match_string): Bring back glibc version, but use it only if _LIBC
66263         is defined.
66264         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
66265         Remove unnecessary assertion and abort() call.
66266         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
66267         * m4/strptime.m4: Fix serial number comment.
66268         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
66269         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
66270         (Depends-on): Add time_r.
66271
66272 2007-01-29  Bruno Haible  <bruno@clisp.org>
66273
66274         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66275         strptime.
66276         * modules/strptime (Depends-on): Add stdbool.
66277         * lib/strptime.h: Include <time.h> always. Add comments.
66278
66279 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66280
66281         * modules/strptime: New file.
66282         * lib/strptime.h: New file.
66283         * lib/strptime.c: New file.
66284         * m4/strptime.m4: New file.
66285
66286 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66287
66288         * MODULES.html.sh: New module mpsort.
66289         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
66290
66291         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
66292         a circularity problem with HP-UX ia64 reported by Bob Proulx in
66293         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
66294         All uses changed.
66295         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
66296         All uses changed.
66297         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
66298         to _Restrict_.
66299         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
66300         the parameter matches the prototype.
66301
66302 2007-01-28  Jim Meyering  <jim@meyering.net>
66303
66304         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
66305         sys/time.h here, reverting that part of the previous patch:
66306         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
66307
66308 2007-01-28  Bruno Haible  <bruno@clisp.org>
66309
66310         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
66311         value of $(SYS_TIME_H).
66312         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
66313         remove it conditionally, too. [added by Jim Meyering]
66314         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
66315         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
66316         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
66317         GETTIMEOFDAY_REPLACEMENT to 1.
66318
66319 2007-01-28  Bruno Haible  <bruno@clisp.org>
66320
66321         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
66322         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
66323         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
66324         Set UNISTD_H instead of UNISTD_H2.
66325         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
66326
66327 2007-01-28  Bruno Haible  <bruno@clisp.org>
66328
66329         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
66330         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
66331
66332 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66333
66334         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
66335         (func_create_testdir): Ensure C locale for `grep' and `tr'
66336         character ranges.
66337         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
66338         ACLOCAL_AMFLAGS parsing state machine.
66339
66340 2007-01-27  Bruno Haible  <bruno@clisp.org>
66341
66342         * modules/unistr/base: Update.
66343
66344 2007-01-27  Bruno Haible  <bruno@clisp.org>
66345
66346         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
66347         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
66348         * modules/unistr/u32-mbtouc-unsafe: Renamed from
66349         modules/unistr/u32-mbtouc.
66350         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
66351         * lib/unistr.h: Update.
66352         * lib/linebreak.c: Update.
66353         * modules/unistr/u32-mbtouc: Renamed from
66354         modules/unistr/u32-mbtouc-safe.
66355         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
66356         * lib/unistr.h: Update.
66357         * lib/unistr/u32-to-u8.c: Update.
66358         * lib/unistr/u32-to-u16.c: Update.
66359
66360 2007-01-27  Bruno Haible  <bruno@clisp.org>
66361
66362         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
66363         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
66364         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
66365         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
66366         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
66367         * modules/unistr/u16-mbtouc-unsafe: Renamed from
66368         modules/unistr/u16-mbtouc.
66369         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
66370         * lib/unistr.h: Update.
66371         * lib/linebreak.c: Update.
66372         * modules/linebreak: Update.
66373         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
66374         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
66375         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
66376         * modules/unistr/u16-mbtouc: Renamed from
66377         modules/unistr/u16-mbtouc-safe.
66378         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
66379         * lib/unistr.h: Update.
66380         * lib/unistr/u16-to-u8.c: Update.
66381         * modules/unistr/u16-to-u8: Update.
66382         * lib/unistr/u16-to-u32.c: Update.
66383         * modules/unistr/u16-to-u32: Update.
66384
66385 2007-01-27  Bruno Haible  <bruno@clisp.org>
66386
66387         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
66388         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
66389         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
66390         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
66391         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
66392         * modules/unistr/u8-mbtouc-unsafe: Renamed from
66393         modules/unistr/u8-mbtouc.
66394         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
66395         * lib/unistr.h: Update.
66396         * lib/striconveh.c: Update.
66397         * modules/striconveh: Update.
66398         * lib/linebreak.c: Update.
66399         * modules/linebreak: Update.
66400         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
66401         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
66402         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
66403         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
66404         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
66405         * lib/unistr.h: Update.
66406         * lib/striconveh.c: Update.
66407         * modules/striconveh: Update.
66408         * lib/unistr/u8-to-u16.c: Update.
66409         * modules/unistr/u8-to-u16: Update.
66410         * lib/unistr/u8-to-u32.c: Update.
66411         * modules/unistr/u8-to-u32: Update.
66412
66413 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66414
66415         Sync from Libtool.
66416         * lib/argz.c: Do not include strings.h nor memory.h, include
66417         string.h unconditionally.  Patch by Simon Josefsson.
66418
66419 2007-01-27  Bruno Haible  <bruno@clisp.org>
66420
66421         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
66422         from gl_HEADER_STRING_H_BODY.
66423         (gl_HEADER_STRING_H_BODY): Require it.
66424         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
66425         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
66426         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
66427         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
66428         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66429         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
66430         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
66431         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
66432         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
66433         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
66434         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
66435         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
66436         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
66437         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
66438         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66439
66440 2007-01-27  Bruno Haible  <bruno@clisp.org>
66441
66442         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
66443         check_PROGRAMS into noinst_PROGRAMS.
66444         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
66445         check_PROGRAMS in this case.
66446         (func_import): Set for_test to false.
66447         (func_create_testdir): Set for_test to true.
66448
66449 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66450             Bruno Haible  <bruno@clisp.org>
66451
66452         * modules/strcasestr (Files): Remove lib/strcasestr.h.
66453         (Depends-on): Add string.
66454         (Includes): Use <string.h> instead of strcasestr.h.
66455         * modules/string (Makefile.am): Also substitute the value of
66456         REPLACE_STRCASESTR.
66457         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
66458         assume strcasestr is declared in <string.h> not <strings.h>. Also
66459         set REPLACE_STRCASESTR.
66460         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
66461         REPLACE_STRCASESTR.
66462         * lib/strcasestr.h: Remove file.
66463         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
66464         * lib/string_.h (strcasestr): New declaration.
66465
66466 2007-01-27  Bruno Haible  <bruno@clisp.org>
66467
66468         * lib/string_.h: Use 'extern'.
66469
66470 2007-01-27  Jim Meyering  <jim@meyering.net>
66471
66472         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
66473         of set-but-not-used local, "q".
66474
66475         * lib/mempcpy.c: Include <config.h> before <string.h>.
66476         This fixes a compilation error on HP-UX, due to the system's
66477         "restrict"-using mempcpy prototype.
66478
66479 2007-01-26  Bruno Haible  <bruno@clisp.org>
66480
66481         Small optimization.
66482         * lib/javacomp.c: Include c-strstr.h.
66483          (is_envjavac_gcj): Use c_strstr instead of strstr.
66484         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
66485
66486 2007-01-26  Bruno Haible  <bruno@clisp.org>
66487
66488         * MODULES.html.sh (Unicode string functions): Add the new modules.
66489
66490         * modules/uniconv/u32-strconv-to-locale: New file.
66491         * lib/uniconv/u32-strconv-to-locale.c: New file.
66492
66493         * modules/uniconv/u16-strconv-to-locale: New file.
66494         * lib/uniconv/u16-strconv-to-locale.c: New file.
66495
66496         * modules/uniconv/u8-strconv-to-locale: New file.
66497         * lib/uniconv/u8-strconv-to-locale.c: New file.
66498
66499         * modules/uniconv/u32-strconv-from-locale: New file.
66500         * lib/uniconv/u32-strconv-from-locale.c: New file.
66501
66502         * modules/uniconv/u16-strconv-from-locale: New file.
66503         * lib/uniconv/u16-strconv-from-locale.c: New file.
66504
66505         * modules/uniconv/u8-strconv-from-locale: New file.
66506         * lib/uniconv/u8-strconv-from-locale.c: New file.
66507
66508         * modules/uniconv/u32-strconv-to-enc: New file.
66509         * lib/uniconv/u32-strconv-to-enc.c: New file.
66510         * modules/uniconv/u32-strconv-to-enc-tests: New file.
66511         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
66512
66513         * modules/uniconv/u16-strconv-to-enc: New file.
66514         * lib/uniconv/u16-strconv-to-enc.c: New file.
66515         * lib/uniconv/u-strconv-to-enc.h: New file.
66516         * modules/uniconv/u16-strconv-to-enc-tests: New file.
66517         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
66518
66519         * modules/uniconv/u8-strconv-to-enc: New file.
66520         * lib/uniconv/u8-strconv-to-enc.c: New file.
66521         * modules/uniconv/u8-strconv-to-enc-tests: New file.
66522         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
66523
66524         * modules/uniconv/u32-strconv-from-enc: New file.
66525         * lib/uniconv/u32-strconv-from-enc.c: New file.
66526         * modules/uniconv/u32-strconv-from-enc-tests: New file.
66527         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
66528
66529         * modules/uniconv/u16-strconv-from-enc: New file.
66530         * lib/uniconv/u16-strconv-from-enc.c: New file.
66531         * modules/uniconv/u16-strconv-from-enc-tests: New file.
66532         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
66533
66534         * modules/uniconv/u8-strconv-from-enc: New file.
66535         * lib/uniconv/u8-strconv-from-enc.c: New file.
66536         * lib/uniconv/u-strconv-from-enc.h: New file.
66537         * modules/uniconv/u8-strconv-from-enc-tests: New file.
66538         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
66539
66540         * modules/uniconv/u32-conv-from-enc: New file.
66541         * lib/uniconv/u32-conv-from-enc.c: New file.
66542         * modules/uniconv/u32-conv-from-enc-tests: New file.
66543         * tests/uniconv/test-u32-conv-from-enc.c: New file.
66544
66545         * modules/uniconv/u16-conv-from-enc: New file.
66546         * lib/uniconv/u16-conv-from-enc.c: New file.
66547         * lib/uniconv/u-conv-from-enc.h: New file.
66548         * modules/uniconv/u16-conv-from-enc-tests: New file.
66549         * tests/uniconv/test-u16-conv-from-enc.c: New file.
66550
66551         * modules/uniconv/u8-conv-from-enc: New file.
66552         * lib/uniconv/u8-conv-from-enc.c: New file.
66553         * modules/uniconv/u8-conv-from-enc-tests: New file.
66554         * tests/uniconv/test-u8-conv-from-enc.c: New file.
66555
66556         * modules/uniconv/base: New file.
66557         * lib/uniconv.h: New file.
66558
66559 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
66560
66561         * doc/gnulib-tool.texi (Initial import): Update to match current
66562         behavior with strdup module.
66563         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
66564         * lib/memmem.h: Remove; all uses removed.  This is now done
66565         by <string.h>.
66566         * lib/mempcpy.h: Likewise.
66567         * lib/memrchr.h: Likewise.
66568         * lib/stpcpy.h: Likewise.
66569         * lib/stpncpy.h: Likewise.
66570         * lib/strcase.h: Likewise.
66571         * lib/strchrnul.h: Likewise.
66572         * lib/strdup.h: Likewise.
66573         * lib/strndup.h: Likewise.
66574         * lib/strnlen.h: Likewise.
66575         * lib/strpbrk.h: Likewise.
66576         * lib/strsep.h: Likewise.
66577         * lib/strstr.h: Likewise.
66578         * lib/strtok_r.h: Likewise.
66579         * lib/string_.h: New file.
66580         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
66581         Rely on <string.h> instead.
66582         * lib/canon-host.c: Likewise.
66583         * lib/chdir-long.c: Likewise.
66584         * lib/concatpath.c: Likewise.
66585         * lib/exclude.c: Likewise.
66586         * lib/fchdir.c: Likewise.
66587         * lib/getaddrinfo.c: Likewise.
66588         * lib/getcwd.c: Likewise.
66589         * lib/getsubopt.c: Likewise.
66590         * lib/glob.c: Likewise.
66591         * lib/hard-locale.c: Likewise.
66592         * lib/iconvme.c: Likewise.
66593         * lib/javacomp.c: Likewise.
66594         * lib/mempcpy.c: Likewise.
66595         * lib/memrchr.c: Likewise.
66596         * lib/regex_internal.h: Likewise.
66597         * lib/stpncpy.c: Likewise.
66598         * lib/strcasecmp.c: Likewise.
66599         * lib/strchrnul.c: Likewise.
66600         * lib/strdup.c: Likewise.
66601         * lib/striconv.c: Likewise.
66602         * lib/striconveh.c: Likewise.
66603         * lib/striconveha.c: Likewise.
66604         * lib/strncasecmp.c: Likewise.
66605         * lib/strndup.c: Likewise.
66606         * lib/strnlen.c: Likewise.
66607         * lib/strsep.c: Likewise.
66608         * lib/strstr.c: Likewise.
66609         * lib/strtok_r.c: Likewise.
66610         * lib/userspec.c: Likewise.
66611         * lib/w32spawn.h: Likewise.
66612         * lib/xstrndup.c: Likewise.
66613         * lib/mountlist.c (strstr): Remove decl.
66614         * m4/string_h.m4: New file.
66615         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
66616         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
66617         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
66618         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
66619         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
66620         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
66621         Set REPLACE_STRCASECMP if necessary.
66622         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
66623         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
66624         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
66625         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
66626         HAVE_DECL_STRDUP if necessary.
66627         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
66628         since gl_FUNC_STRNDUP does that now.
66629         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
66630         Check for decl here...
66631         (gl_PREREQ_STRNLEN): ... not here.
66632         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
66633         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
66634         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
66635         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
66636         necessary.
66637         * modules/string: New file.
66638         * modules/memmem (Files): Remove special-purpose include file.
66639         (Depends-on): Add string.
66640         (Include): Include <string.h>, not the removed file.
66641         * modules/mempcpy: Likewise.
66642         * modules/memrchr: Likewise.
66643         * modules/stpcpy: Likewise.
66644         * modules/stpncpy: Likewise.
66645         * modules/strcase: Likewise.
66646         * modules/strchrnul: Likewise.
66647         * modules/strdup: Likewise.
66648         * modules/strndup: Likewise.
66649         * modules/strnlen: Likewise.
66650         * modules/strpbrk: Likewise.
66651         * modules/strsep: Likewise.
66652         * modules/strstr: Likewise.
66653         * modules/strtok_r: Likewise.
66654         * tests/test-dirname.c: Don't include "strdup.h", since
66655         <string.h> now suffices.
66656         * tests/test-memmem.c: Don't include "memmem.h", since
66657         <string.h> now suffices.
66658
66659 2007-01-25  Bruno Haible  <bruno@clisp.org>
66660
66661         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
66662         *resultp is 0.
66663
66664         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
66665         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
66666         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
66667         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
66668
66669         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
66670         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
66671         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
66672         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
66673         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
66674         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
66675
66676 2007-01-24  Bruno Haible  <bruno@clisp.org>
66677
66678         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
66679         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
66680         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
66681         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
66682         gl_FUNC_FTS_CORE.
66683         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
66684         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
66685         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66686         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
66687         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
66688         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
66689         gl_FUNC_FCHOWNAT.
66690         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
66691         gl_FUNC_STRFTIME.
66692         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
66693         Reported by Ralf Wildenhues.
66694
66695 2007-01-24  Bruno Haible  <bruno@clisp.org>
66696
66697         Drop AC_REQUIRE calls that are redundant with the module dependencies.
66698         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
66699         gl_GETADDRINFO.
66700         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
66701         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
66702         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
66703
66704 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
66705
66706         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
66707         Don't use 'exit'; just return from 'main'.
66708         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
66709
66710         * lib/fnmatch_.h: Readjust white space and comments to match
66711         glibc, to avoid spurious diffs.
66712
66713 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66714
66715         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
66716         2004-12-01 change by Jakub Jelinek, since this code won't compile
66717         if !LIBC.  Problem reported by Bob Proulx.
66718
66719 2007-01-23  Bruno Haible  <bruno@clisp.org>
66720
66721         * lib/striconveh.c: Include c-strcaseeq.h.
66722         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
66723         * modules/striconveh (Depends-on): Add c-strcaseeq.
66724
66725 2007-01-23  Bruno Haible  <bruno@clisp.org>
66726
66727         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
66728
66729         * modules/c-strcaseeq: New file.
66730         * lib/c-strcaseeq.h: New file.
66731
66732         * modules/streq: New file.
66733         * lib/streq.h: New file.
66734
66735 2007-01-23  Bruno Haible  <bruno@clisp.org>
66736
66737         * modules/striconveha-tests: New file.
66738         * tests/test-striconveha.c: New file.
66739
66740         * lib/striconveha.h: Include <stdbool.h>.
66741         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
66742         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
66743         (mem_iconveha_notranslit): Renamed from mem_iconveha.
66744         (mem_iconveha): New function.
66745         (str_iconveha_notranslit): Renamed from str_iconveha.
66746         (str_iconveha): New function.
66747         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
66748         c-strcase.
66749
66750 2007-01-23  Bruno Haible  <bruno@clisp.org>
66751
66752         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
66753         encodings without forgiving before trying any encoding with handler.
66754         (str_iconveha): Try all encodings without forgiving before trying any
66755         encoding with handler.
66756
66757 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66758
66759         Import the following changes from libc.
66760
66761         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66762
66763         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
66764
66765         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
66766
66767         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
66768         normal_bracket label.
66769
66770         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
66771
66772         [BZ #361]
66773         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
66774         to normal_bracket after fetching the next character.
66775
66776 2007-01-22  Bruno Haible  <bruno@clisp.org>
66777
66778         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
66779         argument.
66780         * lib/striconveh.c (iconv_carefully_1): New function.
66781         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
66782         argument.
66783         (str_cd_iconveh): Update.
66784         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
66785         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
66786         * tests/test-striconveh.c (MAGIC): New macro.
66787         (new_offsets): New function.
66788         (main): Test call with and without offsets.
66789
66790 2007-01-22  Bruno Haible  <bruno@clisp.org>
66791
66792         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
66793         * modules/sys_select (Makefile.am): Likewise.
66794         * modules/sys_socket (Makefile.am): Likewise.
66795         * modules/sys_time (Makefile.am): Likewise.
66796
66797 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
66798
66799         * modules/gettimeofday (License): Change from GPL to LGPL, since
66800         gettimeofday is a library function.
66801
66802 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66803
66804         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
66805
66806 2007-01-21  Bruno Haible  <bruno@clisp.org>
66807
66808         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
66809
66810 2007-01-21  Bruno Haible  <bruno@clisp.org>
66811
66812         * modules/striconveha: New file.
66813         * lib/striconveha.h: New file.
66814         * lib/striconveha.c: New file.
66815         * MODULES.html.sh (Internationalization functions): Add striconveha.
66816         * lib/striconv.c (str_iconv): Optimize the case of an empty input
66817         string.
66818         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
66819
66820 2007-01-21  Bruno Haible  <bruno@clisp.org>
66821
66822         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
66823         * lib/striconveh.c (str_iconveh): Likewise.
66824
66825 2007-01-21  Bruno Haible  <bruno@clisp.org>
66826
66827         * lib/striconveh.h (mem_iconveh): New declaration.
66828         * lib/striconveh.c (mem_iconveh): New function.
66829         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
66830
66831 2007-01-21  Bruno Haible  <bruno@clisp.org>
66832
66833         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
66834
66835         * lib/striconveh.h (mem_cd_iconveh): Change specification.
66836         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
66837         original result buffer.
66838         (str_cd_iconveh): Update.
66839         * tests/test-striconveh.c (main): Update.
66840
66841         * lib/striconv.h (mem_cd_iconv): Change specification.
66842         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
66843         result buffer.
66844         (str_cd_iconv): Update.
66845         * tests/test-striconv.c (main): Update.
66846
66847 2007-01-21  Bruno Haible  <bruno@clisp.org>
66848
66849         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
66850
66851 2007-01-20  Jim Meyering  <jim@meyering.net>
66852
66853         * lib/userspec.c (parse_with_separator): If a user or group string
66854         starts with "+", skip the corresponding name-to-ID look-up, since
66855         such a look-up must fail: user and group names may not include "+".
66856
66857 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
66858
66859         * lib/poll.c: Include sys/time.h and time.h unconditionally,
66860         since we now assume the sys_time module.
66861         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
66862         check for sys/time.h; no longer needed.
66863         * modules/poll (Depends-on): Depend on sys_time.
66864
66865 2007-01-18  Bruno Haible  <bruno@clisp.org>
66866
66867         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
66868         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
66869
66870         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
66871         gettimeofday.
66872
66873         * tests/test-gettimeofday.c: Include <time.h>.
66874         (dummy): Remove variable.
66875
66876         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
66877         gl_HEADER_SYS_TIME_H.
66878         (gl_HEADER_SYS_TIME_H): New macro.
66879
66880         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
66881         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66882         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
66883         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
66884         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66885         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
66886         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
66887         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66888         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
66889         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
66890         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66891
66892         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
66893         last change; it caused a compilation error when cross-compiling to
66894         Cygwin.
66895
66896 2007-01-18  Jim Meyering  <jim@meyering.net>
66897
66898         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
66899         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
66900         than the race-prone "test -d sys || mkdir sys".
66901         (configure.ac): Use AC_PROG_MKDIR_P.
66902         * modules/sys_select: Likewise.
66903         * modules/sys_socket: Likewise.
66904         * modules/sys_time: Likewise.
66905
66906 2007-01-18  Eric Blake  <ebb9@byu.net>
66907
66908         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
66909         replace gettimeofday.
66910         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
66911         name, to avoid infinite recursion.
66912
66913 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
66914
66915         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
66916         module sys_time.
66917         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
66918         assume timespec.h defines struct timeval.
66919         * lib/settime.c: Likewise.
66920         * lib/utimens.c: Likewise.
66921         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
66922         since we now assume the gettimeofday module.
66923         * lib/tempname.c (__gen_tempname): Likewise.
66924         * lib/gettimeofday.h: Remove.
66925         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
66926         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
66927         Include <time.h>, for 'time()'.
66928         (localtime_buffer_addr): Also use this workaround if
66929         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
66930         to simplify the uses.  All uses changed.
66931         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
66932         that #undef is inside {}, and 'const' follows type name consistently.
66933         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
66934         (gettimeofday): Do not use the maximum possible value for
66935         tv->tv_usec, since that might break usages other than ls.c.
66936         Instead, we'll leave ls.c alone.  This undoes today's patch
66937         by Bruno.  Add a compile-time warning for 1s-clock resolution;
66938         we've never observed the problem but might as well keep the
66939         canary.
66940         * lib/nanosleep.c: Include timespec.h first, for interface check.
66941         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
66942         now assume the sys_time module.
66943         * lib/tempname.c: Likewise.
66944         * lib/timespec.h: Likewise.
66945         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
66946         needed.
66947         * lib/strftime.c: Likewise.
66948         * lib/timespec.h: Likewise.
66949         * lib/posixtm.c: Include posixtm.h first, for interface check.
66950         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
66951         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
66952         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
66953         * lib/sys_time_.h: New file.
66954         * lib/timespec.h (struct timespec): Use long int, not long.
66955         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
66956         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
66957         Remove obsolescent call to AC_HEADER_TIME.
66958         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
66959         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66960         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
66961         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
66962         Likewise.
66963         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
66964         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
66965         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
66966         into the sys_time module.  Check for gettimeofday just once.
66967         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
66968         for gettimeofday signature to just check the signature.  Merely
66969         compile it, since linking doesn't test signature.  Improve test for
66970         whether gettimeofday.o is actually needed.
66971         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
66972         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
66973         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
66974         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66975         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
66976         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
66977         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
66978         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
66979         than worrying about sys/time.h.
66980         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66981         Don't bother worrying about TIME_WITH_SYS_TIME.
66982         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
66983         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
66984         * m4/sys_time_h.m4: New file.
66985         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
66986         Don't include sys/time.h.  Return from main rather than exiting.
66987         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
66988         all uses changed.
66989         * modules/gethrxtime (Depends-on): Add sys_time.
66990         * modules/gettime (Depends-on): Likewise.
66991         * modules/gettimeofday (Depends-on): Likewise.
66992         * modules/nanosleep (Depends-on): Likewise.
66993         * modules/settime (Depends-on): Likewise.
66994         * modules/tempname (Depends-on): Likewise.
66995         * modules/utimens (Depends-on): Likewise.
66996         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
66997         (Include): Change back to <sys/time.h>.
66998         (Maintainer): Add self.
66999         * modules/sys_time: New file.
67000         * modules/tempname (Depends-on): Add gettimeofday.
67001         * tests/test-gettimeofday.c: Include <sys/time.h>
67002         rather than gettimeofday.h.
67003
67004 2007-01-17  Bruno Haible  <bruno@clisp.org>
67005
67006         * gnulib-tool (func_get_license): Revert last patch. Instead, let
67007         the license default to GPL.
67008         (func_create_testdir): Don't complain if a module is LGPL and its
67009         tests module depends on GPLed modules.
67010
67011 2007-01-17  Bruno Haible  <bruno@clisp.org>
67012
67013         * lib/gettimeofday.c (gettimeofday): Add code for the case
67014         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
67015         maximum possible value for tv->tv_usec, rather than the minimum one.
67016
67017 2005-10-08  Martin Lambers  <marlam@marlam.de>
67018 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
67019 2007-01-16  Bruno Haible  <bruno@clisp.org>
67020
67021         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
67022         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
67023         gl_FUNC_GETTIMEOFDAY.
67024         (Include): Add gettimeofday.h.
67025         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
67026         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
67027         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
67028         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
67029         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
67030         * lib/gettimeofday.h: New file.
67031         * lib/gettimeofday.c: Include <sys/timeb.h>.
67032         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
67033         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
67034         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
67035         fall back on time().
67036
67037         * tests/test-gettimeofday.c: New file.
67038         * modules/gettimeofday-tests: New file.
67039
67040 2007-01-16  Eric Blake  <ebb9@byu.net>
67041
67042         * modules/fnmatch (Depends-on): Depend on wchar.
67043         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
67044         * m4/fnmatch.m4: Likewise.
67045         * modules/mbchar (Makefile.am): Assume <wchar.h>.
67046         * m4/mbchar.m4: Likewise.
67047         * modules/mbswidth (Depends-on): Depend on wchar.
67048         * lib/mbswidth.c: Assume <wchar.h>.
67049         * m4/mbswidth.m4: Likewise.
67050         * modules/quotearg (Depends-on): Depend on wchar.
67051         * lib/quotearg.c: Assume <wchar.h>.
67052         * m4/quotearg.m4: Likewise.
67053         * modules/regex (Depends-on): Depend on wchar.
67054         * lib/regex_internal.h: Assume <wchar.h>.
67055         * m4/regex.m4: Likewise.
67056         * modules/stdint (Depends-on): Depend on wchar.
67057         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
67058         * m4/stdint.m4: Likewise.
67059         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
67060         * modules/strftime (Depends-on): Depend on wchar.
67061         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
67062         * modules/strtol (Depends-on): Depend on wchar.
67063         * lib/strtol.c: Assume <wchar.h>.
67064         * modules/wcwidth (Depends-on): Depend on wchar.
67065         * lib/wcwidth.h: Assume <wchar.h>.
67066         * m4/wcwidth.m4: Likewise.
67067
67068 2007-01-16  Bruno Haible  <bruno@clisp.org>
67069
67070         * modules/csharpexec-script: New, created from...
67071         * modules/csharpexec: ... this.
67072
67073 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
67074
67075         * modules/javaexec-script: New, created from...
67076         * modules/javaexec: ... this.
67077
67078 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67079
67080         * modules/poll (Dependencies): Add sys_select.
67081
67082 2007-01-15  Jim Meyering  <jim@meyering.net>
67083
67084         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
67085         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
67086         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
67087         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
67088
67089 2007-01-15  Bruno Haible  <bruno@clisp.org>
67090
67091         * modules/striconveh: New file.
67092         * lib/striconveh.h: New file.
67093         * lib/striconveh.c: New file.
67094         * MODULES.html.sh (Internationalization functions): Add striconveh.
67095
67096         * modules/striconveh-tests: New file.
67097         * tests/test-striconveh.c: New file.
67098
67099 2007-01-15  Bruno Haible  <bruno@clisp.org>
67100
67101         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
67102         not from GNU libiconv or GNU libc.
67103
67104 2007-01-15  Bruno Haible  <bruno@clisp.org>
67105
67106         * doc/gnulib-intro.texi (Copyright): Explain the different license
67107         terms for module descriptions, autoconf macros, tests, documentation.
67108
67109 2007-01-14  Bruno Haible  <bruno@clisp.org>
67110
67111         * modules/striconv-tests: New file.
67112         * tests/test-striconv.c: New file.
67113
67114 2007-01-14  Bruno Haible  <bruno@clisp.org>
67115
67116         * modules/iconv-tests: New file.
67117         * tests/test-iconv.c: New file.
67118
67119 2007-01-14  Bruno Haible  <bruno@clisp.org>
67120
67121         * gnulib-tool (func_get_license): For test modules, use the license of
67122         the main module.
67123
67124 2007-01-14  Bruno Haible  <bruno@clisp.org>
67125
67126         * modules/iconv (Include): Clarify that <iconv.h> can only be included
67127         if iconv is found to exist.
67128
67129 2007-01-14  Bruno Haible  <bruno@clisp.org>
67130
67131         * modules/c-ctype-tests: New file.
67132         * tests/test-c-ctype.c: New file.
67133
67134 2007-01-14  Bruno Haible  <bruno@clisp.org>
67135
67136         * modules/binary-io-tests: New file.
67137         * tests/test-binary-io.sh: New file.
67138         * tests/test-binary-io.c: New file.
67139
67140 2007-01-14  Bruno Haible  <bruno@clisp.org>
67141
67142         * modules/array-oset-tests: New file.
67143         * tests/test-array_oset.c: New file.
67144
67145 2007-01-14  Bruno Haible  <bruno@clisp.org>
67146
67147         * modules/array-list-tests: New file.
67148         * tests/test-array_list.c: New file.
67149
67150 2007-01-14  Bruno Haible  <bruno@clisp.org>
67151
67152         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
67153         and make.
67154         Reported by Simon Josefsson in
67155         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
67156
67157 2007-01-14  Bruno Haible  <bruno@clisp.org>
67158
67159         * modules/allocsa-tests: New file.
67160         * tests/test-allocsa.c: New file.
67161
67162 2007-01-14  Bruno Haible  <bruno@clisp.org>
67163
67164         * modules/fchdir (Depends-on): Add absolute-header.
67165         * modules/unistd (Depends-on): Likewise.
67166
67167 2006-12-30  Bruno Haible  <bruno@clisp.org>
67168
67169         * modules/fchdir: New file.
67170         * modules/unistd (Files): Add lib/unistd_.h.
67171         (Makefile.am): Generate unistd.h from unistd_.h.
67172         * lib/fchdir.c: New file.
67173         * lib/dirent_.h: New file.
67174         * lib/unistd_.h: New file.
67175         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
67176         * m4/fchdir.m4: New file.
67177         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
67178         (gl_HEADER_UNISTD): Invoke it.
67179         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
67180         function.
67181         * lib/backupfile.c (opendir, closedir): Undefine.
67182         * lib/chown.c (open, close): Undefine.
67183         * lib/clean-temp.c (open, close): Undefine.
67184         * lib/copy-file.c (open, close): Undefine.
67185         * lib/execute.c (open, close): Undefine.
67186         * lib/fsusage.c (open, close): Undefine.
67187         * lib/gc-gnulib.c (open, close): Undefine.
67188         * lib/getcwd.c (opendir, closedir): Undefine.
67189         * lib/glob.c (opendir, closedir): Undefine.
67190         * lib/javacomp.c (open, close): Undefine.
67191         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
67192         * lib/openat-proc.c (open, close): Undefine.
67193         * lib/pagealign_alloc.c (open, close): Undefine.
67194         * lib/pipe.c (open, close): Undefine.
67195         * lib/progreloc.c (open, close): Undefine.
67196         * lib/savedir.c (opendir, closedir): Undefine.
67197         * lib/utime.c (open, close): Undefine.
67198         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
67199
67200 2007-01-10  Bruno Haible  <bruno@clisp.org>
67201
67202         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
67203
67204 2007-01-12  Eric Blake  <ebb9@byu.net>
67205
67206         Provide a robust <wchar.h>.  Further simplifications are now
67207         possible in other modules, but not included here.
67208         * modules/wchar: New module.
67209         * m4/wchar.m4: New file.
67210         * lib/wchar_.h: Likewise.
67211         * modules/mbchar (Depends-on): Depend on wchar, as the first use
67212         of the new module.
67213         * MODULES.html.sh (Extended multibyte and wide character utilities):
67214         New section.
67215
67216 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
67217
67218         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
67219         to a reasonable default for memory allocation.
67220         (xreadlink): Don't allocate a huge buffer, to work around a buggy
67221         file system that reports garbage st_size values for symlinks.
67222         Problem reported by Liyang Hu.
67223
67224 2007-01-11  Simon Josefsson  <simon@josefsson.org>
67225
67226         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
67227         Emacs .#* auto-save files).
67228
67229 2007-01-11  Bruno Haible  <bruno@clisp.org>
67230
67231         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
67232         directory.
67233
67234 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
67235
67236         Use @...@ consistently in lib/wctype_.h.
67237         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
67238         on it being set to 1 or 0.
67239         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
67240         go back to AC_SUBSTing it.
67241         * modules/wctype (Makefile.am): Undo previous change.
67242
67243 2007-01-10  Eric Blake  <ebb9@byu.net>
67244
67245         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
67246         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
67247         * modules/wctype (Makefile.am): Likewise.
67248         Reported by Chris McGuire.
67249
67250 2007-01-10  Jim Meyering  <jim@meyering.net>
67251
67252         fts.c: a small readability/maintainability improvement
67253         * lib/fts.c (fts_read): Make this code slightly more readable and
67254         maintainable by hoisting the "sp->fts_cur = p" assignments to
67255         immediately follow the statements that set P.  Derived from
67256         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
67257
67258 2007-01-10  Eric Blake  <ebb9@byu.net>
67259
67260         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
67261         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
67262         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67263         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
67264         Reported by Chris McGuire.
67265
67266 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67267
67268         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
67269         in sed script.
67270
67271 2007-01-09  Bruno Haible  <bruno@clisp.org>
67272
67273         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
67274         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
67275         variables.
67276         (func_module): Use them.
67277
67278 2007-01-09  Bruno Haible  <bruno@clisp.org>
67279
67280         * modules/unistr/base: New file.
67281         * lib/unistr.h: New file.
67282
67283         * modules/unistr/u8-to-u16: New file.
67284         * lib/unistr/u8-to-u16.c: New file.
67285
67286         * modules/unistr/u8-to-u32: New file.
67287         * lib/unistr/u8-to-u32.c: New file.
67288
67289         * modules/unistr/u16-to-u8: New file.
67290         * lib/unistr/u16-to-u8.c: New file.
67291
67292         * modules/unistr/u16-to-u32: New file.
67293         * lib/unistr/u16-to-u32.c: New file.
67294
67295         * modules/unistr/u32-to-u8: New file.
67296         * lib/unistr/u32-to-u8.c: New file.
67297
67298         * modules/unistr/u32-to-u16: New file.
67299         * lib/unistr/u32-to-u16.c: New file.
67300
67301         * modules/unistr/u8-check: New file.
67302         * modules/unistr/u16-check: New file.
67303         * modules/unistr/u32-check: New file.
67304         * lib/unistr/u8-check.c: New file.
67305         * lib/unistr/u16-check.c: New file.
67306         * lib/unistr/u32-check.c: New file.
67307
67308         * modules/unistr/u8-chr: New file.
67309         * modules/unistr/u16-chr: New file.
67310         * modules/unistr/u32-chr: New file.
67311         * lib/unistr/u8-chr.c: New file.
67312         * lib/unistr/u16-chr.c: New file.
67313         * lib/unistr/u32-chr.c: New file.
67314
67315         * modules/unistr/u8-cmp: New file.
67316         * modules/unistr/u16-cmp: New file.
67317         * modules/unistr/u32-cmp: New file.
67318         * lib/unistr/u8-cmp.c: New file.
67319         * lib/unistr/u16-cmp.c: New file.
67320         * lib/unistr/u32-cmp.c: New file.
67321
67322         * modules/unistr/u8-cpy: New file.
67323         * modules/unistr/u16-cpy: New file.
67324         * modules/unistr/u32-cpy: New file.
67325         * lib/unistr/u8-cpy.c: New file.
67326         * lib/unistr/u16-cpy.c: New file.
67327         * lib/unistr/u32-cpy.c: New file.
67328         * lib/unistr/u-cpy.h: New file.
67329
67330         * modules/unistr/u8-cpy-alloc: New file.
67331         * modules/unistr/u16-cpy-alloc: New file.
67332         * modules/unistr/u32-cpy-alloc: New file.
67333         * lib/unistr/u8-cpy-alloc.c: New file.
67334         * lib/unistr/u16-cpy-alloc.c: New file.
67335         * lib/unistr/u32-cpy-alloc.c: New file.
67336         * lib/unistr/u-cpy-alloc.h: New file.
67337
67338         * modules/unistr/u8-endswith: New file.
67339         * modules/unistr/u16-endswith: New file.
67340         * modules/unistr/u32-endswith: New file.
67341         * lib/unistr/u8-endswith.c: New file.
67342         * lib/unistr/u16-endswith.c: New file.
67343         * lib/unistr/u32-endswith.c: New file.
67344         * lib/unistr/u-endswith.h: New file.
67345
67346         * modules/unistr/u8-mblen: New file.
67347         * modules/unistr/u16-mblen: New file.
67348         * modules/unistr/u32-mblen: New file.
67349         * lib/unistr/u8-mblen.c: New file.
67350         * lib/unistr/u16-mblen.c: New file.
67351         * lib/unistr/u32-mblen.c: New file.
67352
67353         * modules/unistr/u8-mbtouc: New file.
67354         * modules/unistr/u16-mbtouc: New file.
67355         * modules/unistr/u32-mbtouc: New file.
67356         * lib/unistr/u8-mbtouc.c: New file.
67357         * lib/unistr/u16-mbtouc.c: New file.
67358         * lib/unistr/u32-mbtouc.c: New file.
67359
67360         * modules/unistr/u8-mbtouc-safe: New file.
67361         * modules/unistr/u16-mbtouc-safe: New file.
67362         * modules/unistr/u32-mbtouc-safe: New file.
67363         * lib/unistr/u8-mbtouc-safe.c: New file.
67364         * lib/unistr/u16-mbtouc-safe.c: New file.
67365         * lib/unistr/u32-mbtouc-safe.c: New file.
67366
67367         * modules/unistr/u8-move: New file.
67368         * modules/unistr/u16-move: New file.
67369         * modules/unistr/u32-move: New file.
67370         * lib/unistr/u8-move.c: New file.
67371         * lib/unistr/u16-move.c: New file.
67372         * lib/unistr/u32-move.c: New file.
67373         * lib/unistr/u-move.h: New file.
67374
67375         * modules/unistr/u8-next: New file.
67376         * modules/unistr/u16-next: New file.
67377         * modules/unistr/u32-next: New file.
67378         * lib/unistr/u8-next.c: New file.
67379         * lib/unistr/u16-next.c: New file.
67380         * lib/unistr/u32-next.c: New file.
67381
67382         * modules/unistr/u8-prev: New file.
67383         * modules/unistr/u16-prev: New file.
67384         * modules/unistr/u32-prev: New file.
67385         * lib/unistr/u8-prev.c: New file.
67386         * lib/unistr/u16-prev.c: New file.
67387         * lib/unistr/u32-prev.c: New file.
67388
67389         * modules/unistr/u8-set: New file.
67390         * modules/unistr/u16-set: New file.
67391         * modules/unistr/u32-set: New file.
67392         * lib/unistr/u8-set.c: New file.
67393         * lib/unistr/u16-set.c: New file.
67394         * lib/unistr/u32-set.c: New file.
67395         * lib/unistr/u-set.h: New file.
67396
67397         * modules/unistr/u8-startswith: New file.
67398         * modules/unistr/u16-startswith: New file.
67399         * modules/unistr/u32-startswith: New file.
67400         * lib/unistr/u8-startswith.c: New file.
67401         * lib/unistr/u16-startswith.c: New file.
67402         * lib/unistr/u32-startswith.c: New file.
67403         * lib/unistr/u-startswith.h: New file.
67404
67405         * modules/unistr/u8-stpcpy: New file.
67406         * modules/unistr/u16-stpcpy: New file.
67407         * modules/unistr/u32-stpcpy: New file.
67408         * lib/unistr/u8-stpcpy.c: New file.
67409         * lib/unistr/u16-stpcpy.c: New file.
67410         * lib/unistr/u32-stpcpy.c: New file.
67411         * lib/unistr/u-stpcpy.h: New file.
67412
67413         * modules/unistr/u8-stpncpy: New file.
67414         * modules/unistr/u16-stpncpy: New file.
67415         * modules/unistr/u32-stpncpy: New file.
67416         * lib/unistr/u8-stpncpy.c: New file.
67417         * lib/unistr/u16-stpncpy.c: New file.
67418         * lib/unistr/u32-stpncpy.c: New file.
67419         * lib/unistr/u-stpncpy.h: New file.
67420
67421         * modules/unistr/u8-strcat: New file.
67422         * modules/unistr/u16-strcat: New file.
67423         * modules/unistr/u32-strcat: New file.
67424         * lib/unistr/u8-strcat.c: New file.
67425         * lib/unistr/u16-strcat.c: New file.
67426         * lib/unistr/u32-strcat.c: New file.
67427         * lib/unistr/u-strcat.h: New file.
67428
67429         * modules/unistr/u8-strchr: New file.
67430         * modules/unistr/u16-strchr: New file.
67431         * modules/unistr/u32-strchr: New file.
67432         * lib/unistr/u8-strchr.c: New file.
67433         * lib/unistr/u16-strchr.c: New file.
67434         * lib/unistr/u32-strchr.c: New file.
67435
67436         * modules/unistr/u8-strcmp: New file.
67437         * modules/unistr/u16-strcmp: New file.
67438         * modules/unistr/u32-strcmp: New file.
67439         * lib/unistr/u8-strcmp.c: New file.
67440         * lib/unistr/u16-strcmp.c: New file.
67441         * lib/unistr/u32-strcmp.c: New file.
67442
67443         * modules/unistr/u8-strcpy: New file.
67444         * modules/unistr/u16-strcpy: New file.
67445         * modules/unistr/u32-strcpy: New file.
67446         * lib/unistr/u8-strcpy.c: New file.
67447         * lib/unistr/u16-strcpy.c: New file.
67448         * lib/unistr/u32-strcpy.c: New file.
67449         * lib/unistr/u-strcpy.h: New file.
67450
67451         * modules/unistr/u8-strcspn: New file.
67452         * modules/unistr/u16-strcspn: New file.
67453         * modules/unistr/u32-strcspn: New file.
67454         * lib/unistr/u8-strcspn.c: New file.
67455         * lib/unistr/u16-strcspn.c: New file.
67456         * lib/unistr/u32-strcspn.c: New file.
67457         * lib/unistr/u-strcspn.h: New file.
67458
67459         * modules/unistr/u8-strdup: New file.
67460         * modules/unistr/u16-strdup: New file.
67461         * modules/unistr/u32-strdup: New file.
67462         * lib/unistr/u8-strdup.c: New file.
67463         * lib/unistr/u16-strdup.c: New file.
67464         * lib/unistr/u32-strdup.c: New file.
67465         * lib/unistr/u-strdup.h: New file.
67466
67467         * modules/unistr/u8-strlen: New file.
67468         * modules/unistr/u16-strlen: New file.
67469         * modules/unistr/u32-strlen: New file.
67470         * lib/unistr/u8-strlen.c: New file.
67471         * lib/unistr/u16-strlen.c: New file.
67472         * lib/unistr/u32-strlen.c: New file.
67473         * lib/unistr/u-strlen.h: New file.
67474
67475         * modules/unistr/u8-strmblen: New file.
67476         * modules/unistr/u16-strmblen: New file.
67477         * modules/unistr/u32-strmblen: New file.
67478         * lib/unistr/u8-strmblen.c: New file.
67479         * lib/unistr/u16-strmblen.c: New file.
67480         * lib/unistr/u32-strmblen.c: New file.
67481
67482         * modules/unistr/u8-strmbtouc: New file.
67483         * modules/unistr/u16-strmbtouc: New file.
67484         * modules/unistr/u32-strmbtouc: New file.
67485         * lib/unistr/u8-strmbtouc.c: New file.
67486         * lib/unistr/u16-strmbtouc.c: New file.
67487         * lib/unistr/u32-strmbtouc.c: New file.
67488
67489         * modules/unistr/u8-strncat: New file.
67490         * modules/unistr/u16-strncat: New file.
67491         * modules/unistr/u32-strncat: New file.
67492         * lib/unistr/u8-strncat.c: New file.
67493         * lib/unistr/u16-strncat.c: New file.
67494         * lib/unistr/u32-strncat.c: New file.
67495         * lib/unistr/u-strncat.h: New file.
67496
67497         * modules/unistr/u8-strncmp: New file.
67498         * modules/unistr/u16-strncmp: New file.
67499         * modules/unistr/u32-strncmp: New file.
67500         * lib/unistr/u8-strncmp.c: New file.
67501         * lib/unistr/u16-strncmp.c: New file.
67502         * lib/unistr/u32-strncmp.c: New file.
67503
67504         * modules/unistr/u8-strncpy: New file.
67505         * modules/unistr/u16-strncpy: New file.
67506         * modules/unistr/u32-strncpy: New file.
67507         * lib/unistr/u8-strncpy.c: New file.
67508         * lib/unistr/u16-strncpy.c: New file.
67509         * lib/unistr/u32-strncpy.c: New file.
67510         * lib/unistr/u-strncpy.h: New file.
67511
67512         * modules/unistr/u8-strnlen: New file.
67513         * modules/unistr/u16-strnlen: New file.
67514         * modules/unistr/u32-strnlen: New file.
67515         * lib/unistr/u8-strnlen.c: New file.
67516         * lib/unistr/u16-strnlen.c: New file.
67517         * lib/unistr/u32-strnlen.c: New file.
67518         * lib/unistr/u-strnlen.h: New file.
67519
67520         * modules/unistr/u8-strpbrk: New file.
67521         * modules/unistr/u16-strpbrk: New file.
67522         * modules/unistr/u32-strpbrk: New file.
67523         * lib/unistr/u8-strpbrk.c: New file.
67524         * lib/unistr/u16-strpbrk.c: New file.
67525         * lib/unistr/u32-strpbrk.c: New file.
67526         * lib/unistr/u-strpbrk.h: New file.
67527
67528         * modules/unistr/u8-strrchr: New file.
67529         * modules/unistr/u16-strrchr: New file.
67530         * modules/unistr/u32-strrchr: New file.
67531         * lib/unistr/u8-strrchr.c: New file.
67532         * lib/unistr/u16-strrchr.c: New file.
67533         * lib/unistr/u32-strrchr.c: New file.
67534
67535         * modules/unistr/u8-strspn: New file.
67536         * modules/unistr/u16-strspn: New file.
67537         * modules/unistr/u32-strspn: New file.
67538         * lib/unistr/u8-strspn.c: New file.
67539         * lib/unistr/u16-strspn.c: New file.
67540         * lib/unistr/u32-strspn.c: New file.
67541         * lib/unistr/u-strspn.h: New file.
67542
67543         * modules/unistr/u8-strstr: New file.
67544         * modules/unistr/u16-strstr: New file.
67545         * modules/unistr/u32-strstr: New file.
67546         * lib/unistr/u8-strstr.c: New file.
67547         * lib/unistr/u16-strstr.c: New file.
67548         * lib/unistr/u32-strstr.c: New file.
67549         * lib/unistr/u-strstr.h: New file.
67550
67551         * modules/unistr/u8-strtok: New file.
67552         * modules/unistr/u16-strtok: New file.
67553         * modules/unistr/u32-strtok: New file.
67554         * lib/unistr/u8-strtok.c: New file.
67555         * lib/unistr/u16-strtok.c: New file.
67556         * lib/unistr/u32-strtok.c: New file.
67557         * lib/unistr/u-strtok.h: New file.
67558
67559         * modules/unistr/u8-uctomb: New file.
67560         * modules/unistr/u16-uctomb: New file.
67561         * modules/unistr/u32-uctomb: New file.
67562         * lib/unistr/u8-uctomb.c: New file.
67563         * lib/unistr/u16-uctomb.c: New file.
67564         * lib/unistr/u32-uctomb.c: New file.
67565
67566         * MODULES.html.sh (Unicode string functions): Add the new modules.
67567
67568 2007-01-08  Bruno Haible  <bruno@clisp.org>
67569
67570         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
67571         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
67572         subdirectories.
67573
67574 2007-01-08  Karl Berry  <karl@gnu.org>
67575
67576         * doc/error.texi: mention that main() fns must set program_name
67577         when progname is used.
67578
67579 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
67580
67581         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
67582         WCTYPE_H is empty, for the benefit of builds from non-distclean
67583         directories.  Problem reported by Eric Blake in
67584         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
67585
67586 2007-01-08  Bruno Haible  <bruno@clisp.org>
67587
67588         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
67589         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
67590         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
67591         PROVIDE_CANONICALIZE_FILENAME_MODE.
67592         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
67593
67594 2007-01-08  Bruno Haible  <bruno@clisp.org>
67595
67596         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
67597         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
67598         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
67599         * lib/fts.c: Likewise.
67600         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
67601
67602 2006-12-25  Bruno Haible  <bruno@clisp.org>
67603
67604         * modules/utf8-ucs4-safe: New file.
67605         * lib/utf8-ucs4-safe.h: New file.
67606         * lib/unistr/utf8-ucs4-safe.c: New file.
67607
67608         * modules/utf16-ucs4-safe: New file.
67609         * lib/utf16-ucs4-safe.h: New file.
67610         * lib/unistr/utf16-ucs4-safe.c: New file.
67611
67612         * MODULES.html.sh (Unicode string functions): Add the new modules.
67613
67614 2007-01-08  Bruno Haible  <bruno@clisp.org>
67615
67616         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
67617         (Depends-on): Add unitypes.
67618         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
67619         (u8_mbtouc_aux): Move out to separate file.
67620         (u8_mbtouc): Use ucs4_t, uint8_t types.
67621         * lib/unistr/utf8-ucs4.c: New file.
67622
67623         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
67624         (Depends-on): Add unitypes.
67625         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
67626         (u16_mbtouc_aux): Move out to separate file.
67627         (u16_mbtouc): Use ucs4_t, uint16_t types.
67628         * lib/unistr/utf16-ucs4.c: New file.
67629
67630         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
67631         (Depends-on): Add unitypes.
67632         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
67633         (u8_uctomb_aux): Move out to separate file.
67634         (u8_uctomb): Use ucs4_t, uint8_t types.
67635         * lib/unistr/ucs4-utf8.c: New file.
67636
67637         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
67638         (Depends-on): Add unitypes.
67639         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
67640         (u16_uctomb_aux): Move out to separate file.
67641         (u16_uctomb): Use ucs4_t, uint16_t types.
67642         * lib/unistr/ucs4-utf16.c: New file.
67643
67644 2006-12-25  Bruno Haible  <bruno@clisp.org>
67645
67646         * modules/unitypes: New file.
67647         * lib/unitypes.h: New file.
67648         * MODULES.html.sh (func_all_modules): New section "Unicode string
67649         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
67650         this section. Add unitypes.
67651
67652 2007-01-08  Bruno Haible  <bruno@clisp.org>
67653
67654         Avoid variable names that conflict with those from libtool.
67655         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
67656         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
67657         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
67658         library_names_spec to acl_library_names_spec, hardcode_* to
67659         acl_hardcode_*.
67660         Reported by Ralf Wildenhues.
67661
67662 2007-01-08  Bruno Haible  <bruno@clisp.org>
67663
67664         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
67665         definition.
67666         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
67667         definition.
67668         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
67669         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
67670         definition.
67671         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
67672         definition.
67673         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
67674         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
67675         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
67676         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
67677         definition.
67678         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
67679         definition.
67680         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
67681         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
67682         GC_USE_<algorithm>.
67683         * lib/gc-libgcrypt.c: Likewise.
67684         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
67685         * modules/gc-arctwo (configure.ac): Likewise.
67686         * modules/gc-des (configure.ac): Likewise.
67687         * modules/gc-hmac-md5 (configure.ac): Likewise.
67688         * modules/gc-hmac-sha1 (configure.ac): Likewise.
67689         * modules/gc-md2 (configure.ac): Likewise.
67690         * modules/gc-md4 (configure.ac): Likewise.
67691         * modules/gc-md5 (configure.ac): Likewise.
67692         * modules/gc-random (configure.ac): Likewise.
67693         * modules/gc-rijndael (configure.ac): Likewise.
67694         * modules/gc-sha1 (configure.ac): Likewise.
67695
67696 2007-01-08  Bruno Haible  <bruno@clisp.org>
67697
67698         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
67699         macro definition.
67700         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
67701         definition.
67702         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
67703         definition.
67704         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
67705         * modules/fcntl-safer (configure.ac): Likewise.
67706         * modules/fopen-safer (configure.ac): Likewise.
67707         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
67708         GNULIB_FWRITEERROR macro definition.
67709
67710 2007-01-08  Bruno Haible  <bruno@clisp.org>
67711
67712         * m4/gnulib-common.m4: New file.
67713         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
67714         (func_get_filelist): Add m4/gnulib-common.m4.
67715
67716 2007-01-08  Bruno Haible  <bruno@clisp.org>
67717
67718         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
67719         command.
67720
67721 2007-01-08  Jim Meyering  <jim@meyering.net>
67722
67723         Use a more robust test for a "can't happen" condition.
67724         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
67725         narrowed the st_size value.  Presuming the "can't happen" condition
67726         is true, that narrowing could conceivably convert an invalid st_size
67727         value into a valid one.  Instead, use a change based on Matthew
67728         Woehlke's original patch.
67729
67730         Slight readability improvement: use an assert-like macro
67731         in place of literal "abort ()" uses.
67732         * lib/fts.c (fts_assert): Define.
67733         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
67734         Use this macro instead of a bare 'abort'.
67735
67736 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
67737
67738         Don't worry about using IRIX 5.3's wctype.h broken definitions;
67739         simply work around them.
67740         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
67741         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
67742         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
67743         declaring.
67744         Don't bother to define as macros, since the standard doesn't require it.
67745         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
67746         longer worry about IRIX 5.3.
67747         (HAVE_WCTYPE_CTMP_BUG): Remove.
67748
67749 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67750
67751         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
67752         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
67753         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67754         Problems reported by Georg Schwarz for IRIX 5.3.
67755
67756         * gnulib-tool (autoconf_minversion): Take the maximum version number
67757         found, not the minimum.  Problem reported by James Youngman.
67758
67759 2007-01-03  Karl Berry  <karl@gnu.org>
67760
67761         * doc/error.texi: new file, explaining interaction with progname.
67762         * doc/gnulib.texi: include it.  Update copyright.
67763
67764 2007-01-03  Simon Josefsson  <simon@josefsson.org>
67765
67766         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
67767         AC_CANONICAL_HOST, to improve autobuild outputs.
67768
67769 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
67770             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
67771
67772         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
67773         sockets, server sockets, and other file descriptors.  Count errors
67774         to compute the return value.  Reorder the code a bit to be easier
67775         to follow.  Don't set event bits that were not requested (except
67776         POLLERR and POLLHUP).
67777
67778 2007-01-01  Bruno Haible  <bruno@clisp.org>
67779
67780         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
67781
67782 2007-01-03  Jim Meyering  <jim@meyering.net>
67783
67784         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
67785
67786 2007-01-02  Bruno Haible  <bruno@clisp.org>
67787
67788         * modules/settime (Include): Require timespec.h.
67789         * modules/nanosleep (Include): Likewise.
67790
67791 2007-01-01  Bruno Haible  <bruno@clisp.org>
67792
67793         * gnulib-tool (func_emit_copyright_notice): Bump year.
67794         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
67795
67796 2007-01-01  Bruno Haible  <bruno@clisp.org>
67797
67798         Improve support for OpenBSD.
67799         * build-aux/config.rpath (libname_spec): Export.
67800         (library_names_spec): New variable. Export.
67801         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
67802         library_names_spec from the config.rpath output. Locate shared library
67803         through the name pattern in library_names_spec.
67804
67805 2007-01-01  Eric Blake  <ebb9@byu.net>
67806
67807         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
67808
67809 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
67810
67811         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
67812         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
67813         assume the C locale, and avoid an "eval" that could cause trouble.
67814         Problem with SORT reported by Bob Proulx.
67815
67816         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
67817         Define.  Trivial patch from Henning Nielsen Lund, originally
67818         sent to bug-grep@gnu.org today.
67819
67820 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
67821
67822         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
67823         struct stat.  Problem reported by Henning Nielsen Lund.
67824         * lib/acl.c: Include acl.h first, to check interface.  Don't
67825         bother to include sys/types.h and sys/stat.h again.
67826
67827 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67828
67829         Import the following change from libc; problem reported by
67830         Sven Verdoolaege.
67831
67832         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
67833
67834         [BZ #1373]
67835         * lib/argp.h: Remove __NTH for __argp_usage inline function.
67836
67837 2006-12-28  Jim Meyering  <jim@meyering.net>
67838
67839         * build-aux/announce-gen: Do not assume that the package
67840         builds any of tar.gz, tar.bz2, and .xdelta files.
67841         Suggestion from Simon Josefsson.
67842
67843 2006-12-28  Simon Josefsson  <simon@josefsson.org>
67844
67845         * modules/announce-gen: New file.
67846
67847 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
67848
67849         * lib/mbchar.h: Just include <wctype.h>; the wctype module
67850         handles its gotchas now.
67851         * lib/mbswidth.c: Likewise.
67852         * lib/wcwidth.h: Likewise.
67853         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
67854         and iswcntrl; the wctype module does this stuff now.
67855         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67856         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67857         * modules/mbchar (Depends-on): Add wctype.
67858         * modules/mbswidth (Depends-on): Likewise.
67859         * modules/wcwidth (Depends-on): Likewise.
67860
67861 2006-12-27  Eric Blake  <ebb9@byu.net>
67862
67863         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
67864         module uses more than what <wctype.h> is required to provide.
67865
67866 2006-12-26  Eric Blake  <ebb9@byu.net>
67867
67868         * gnulib-tool (sed_extract_prog): Avoid space-tab.
67869
67870 2006-12-26  Eric Blake  <ebb9@byu.net>
67871
67872         * modules/absolute-header: New module.
67873         * modules/fcntl (Depends-on): Depend on it.
67874         * modules/inttypes (Depends-on): Likewise.
67875         * modules/stdint (Depends-on): Likewise.
67876         * modules/sys_stat (Depends-on): Likewise.
67877         * modules/wctype (Depends-on): Likewise.
67878         * MODULES.html.sh (Support for building libraries and
67879         executables): Document it.
67880
67881 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
67882
67883         * gnulib-tool (SED): Remove, undoing previous change.
67884         The problem was that it broke coreutils on Solaris, because
67885         "sed --posix" leaked into a makefile.
67886         (sed): New alias, if 'alias' and GNU sed.
67887
67888 2006-12-24  Jim Meyering  <jim@meyering.net>
67889
67890         Work around an fchownat bug in glibc-2.4:
67891         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
67892         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
67893         in spite of the -P option.
67894         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
67895         New macros.
67896         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
67897         * modules/openat (Files): Add lib/fchownat.c.
67898         * lib/openat.c (fchownat): Don't define here.  Move to...
67899         * lib/fchownat.c: ...this new file.
67900
67901 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67902
67903         Fix bug reported by Bruno Haible in
67904         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
67905         where quotearg.c didn't compile on Mac OS X 10.2 because it
67906         lacks <wchar.h> and wint_t.
67907         * lib/wctype_.h (__wctype_wint_t): New type.
67908         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
67909         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
67910         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
67911         Arg is now of type __wctype_wint_t, not wint_t.
67912         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
67913         substitute HAVE_WINT_T.
67914         * modules/wctype (Files): Add m4/wint_t.m4.
67915         (wctype.h): Substitute HAVE_WINT_T.
67916
67917 2006-12-23  Bruno Haible  <bruno@clisp.org>
67918
67919         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
67920
67921 2006-12-23  Bruno Haible  <bruno@clisp.org>
67922
67923         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
67924         S_ISLNK.
67925         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
67926         mingw.
67927
67928 2006-12-22  Bruno Haible  <bruno@clisp.org>
67929
67930         * lib/copy-file.c: Include acl.h.
67931         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
67932         Close the file descriptors only after being done with copy_acl.
67933         * modules/copy-file (Depends-on): Add acl.
67934
67935 2006-12-22  Bruno Haible  <bruno@clisp.org>
67936
67937         * gnulib-tool (SED): New variable.
67938         Use $SED instead of sed everywhere.
67939
67940 2006-12-22  Bruno Haible  <bruno@clisp.org>
67941
67942         * modules/no-c++: New file.
67943         * m4/no-c++.m4: New file.
67944         * MODULES.html.sh (Support for building libraries and executables):
67945         Add no-c++.
67946
67947 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
67948
67949         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
67950         Include <limits.h>, and use its INT_MAX to rewrite the
67951         j loop so that it does not overflow 'int'.  Problem reported by
67952         Ralf Wildenhues in
67953         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
67954         Play it safe by shifting left by 1 rather than multiplying by 2,
67955         as GCC is less likely to optimize this away when the value
67956         is signed (when it assumes overflow leads to undefined behavior).
67957         Also, don't assume time_t uses two's complement.
67958
67959 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
67960
67961         * MODULES.html.sh: New module wctype.
67962         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
67963         * lib/fnmatch.c: Don't bother to include <wchar.h> before
67964         <wctype.h>, since the new wctype module should fix this.
67965         * lib/quotearg.c: Include <wctype.h> unconditionally, since
67966         the wctype module should arrange for it.
67967         * lib/regex_internal.h: Likewise.
67968         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
67969         since the wctype module should handle this now.
67970         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
67971         * modules/fnmatch (Depends-on): Add wctype.
67972         * modules/quotearg (Depends-on): Likewise.
67973         * modules/regex (Depends-on): Likewise.
67974
67975 2006-12-19  Bruno Haible  <bruno@clisp.org>
67976
67977         * lib/strdup.h [C++]: Wrap definitions in extern "C".
67978         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
67979
67980 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67981
67982         * modules/savewd (Depends-on): Fix dependency on fcntl.
67983
67984 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
67985
67986         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
67987         conforms to C99, rather than relying on the user's environment
67988         setting of STDINT_H.
67989
67990 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
67991         and Eric Blake  <ebb9@byu.net>
67992
67993         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
67994         This is more consistent with the other defines here.
67995         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
67996         Port to z/OS.  Problem reported by Paul Gilmartin.
67997         Change local vars to use gl_ prefix rather than ac_.
67998         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
67999         with other defines.
68000         * modules/double-slash-root: New module.
68001         * modules/dirname (Files): Remove m4/double-slash-root.m4.
68002         (Depends-on): Add double-slash-root.
68003         * MODULES.html.sh (File system functions): Mention new module.
68004
68005 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
68006
68007         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
68008         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
68009         This is for the benefit of gzip, which doesn't do i18n.
68010
68011 2006-12-12  Jim Meyering  <jim@meyering.net>
68012
68013         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
68014         Reported by Andreas Schwab <schwab@suse.de>.
68015
68016 2006-12-12  Bruno Haible  <bruno@clisp.org>
68017
68018         Merge these changes.
68019         2006-09-05  Bruno Haible  <bruno@clisp.org>
68020         * lib/iconvme.c (iconv_string): No need to save and restore errno when
68021         iconv_alloc succeeded.
68022         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
68023         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
68024         test for " && dest " at the end - dest is always != NULL there. Call
68025         iconv with 4xNULL arguments initially, to reset the state. Call iconv
68026         with 2xNULL arguments, also to flush the state storage. Handle the
68027         IRIX iconv behaviour. Realloc the final result, to throw away unused
68028         memory.
68029
68030 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
68031
68032         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
68033         and fchmodat unconditionally, since glibc 2.4 has them.
68034         Problem reported by Arkadiusz Miskiewicz.
68035
68036 2006-12-10  Bruno Haible  <bruno@clisp.org>
68037
68038         * gnulib-tool (func_import): Show the include files only for those
68039         modules that are copied and specified.
68040         Reported by Karl Berry.
68041
68042 2006-12-08  Jim Meyering  <jim@meyering.net>
68043
68044         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
68045         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
68046
68047         * build-aux/announce-gen: Add two new options, both optional:
68048         --bootstrap-tools=TOOL_LIST
68049               a comma-separated list of tools, e.g.,
68050               autoconf,automake,bison,gnulib
68051         --gnulib-snapshot-date=DATE
68052               if gnulib is in the bootstrap tool list,
68053               then report this as the snapshot date.
68054               If not specified, use the current date/time.
68055               If you specify a date here, be sure it's UTC.
68056
68057 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68058
68059         * tests/test-argp-2.sh: Fix test to match actual output.
68060         (func_compare): Fix sed script to be portable.
68061
68062 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
68063
68064         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
68065         workaround for this case.  It is not autoconfigured now; offhand
68066         it's hard to see how to autoconfigure it.
68067
68068 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
68069
68070         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
68071         a directory that is about to be chowned.  Such a directory's
68072         initial file permissions should permit the owner only and this
68073         should not be changed until after the chown, since the group and
68074         other bits would be incorrect if they granted permission before
68075         the chown.
68076
68077         Fix porting problem for iswctype reported by Georg Schwarz in:
68078         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
68079         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
68080         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
68081         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
68082         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68083
68084 2006-12-03  Jim Meyering  <jim@meyering.net>
68085
68086         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
68087         p->fts_statp may not yet be defined.
68088         (fts_read): Instead, set it in the caller, once p->fts_statp is
68089         sure to be defined, and corresponds to a top-level directory.
68090         This bug made du -x fail.  Here's the coreutils test case:
68091         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
68092         Reported by Mike Frysinger.
68093
68094 2006-12-01  Jim Meyering  <jim@meyering.net>
68095
68096         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
68097         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
68098         Reported by Simon Josefsson.
68099
68100 2006-11-30  Jim Meyering  <jim@meyering.net>
68101
68102         * m4/warning.m4: Use the all-permissive copyright notice
68103         recommended by RMS (rather than LGPL).
68104         * m4/vararrays.m4: Likewise.
68105         * m4/flexmember.m4: Likewise.
68106
68107 2006-11-29  Bruno Haible  <bruno@clisp.org>
68108
68109         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68110         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
68111         using +=.
68112         Reported by Simon Josefsson <simon@josefsson.org>.
68113
68114 2006-11-28  James Youngman <jay@gnu.org>
68115
68116         * README: Advise users that they might find the bug-gnulib@gnu.org
68117         and autotools-announce@gnu.org mailing lists useful.
68118
68119 2006-11-28  Bruno Haible  <bruno@clisp.org>
68120
68121         * m4/ptrdiff_max.m4: Remove file.
68122
68123 2006-11-21  Bruno Haible  <bruno@clisp.org>
68124
68125         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
68126         _AC_COMPUTE_INT.
68127         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68128         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
68129         _AC_COMPUTE_INT.
68130         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68131         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
68132         _AC_COMPUTE_INT.
68133         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68134
68135 2006-11-28  Jim Meyering  <jim@meyering.net>
68136
68137         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
68138         warning from "gcc -Wshadow" about shadowing the builtin.
68139
68140 2006-11-27  Bruno Haible  <bruno@clisp.org>
68141
68142         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
68143         _AC_COMPUTE_INT.
68144         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
68145
68146 2006-11-27  Bruno Haible  <bruno@clisp.org>
68147             Paul Eggert  <eggert@cs.ucla.edu>
68148
68149         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
68150
68151 2006-11-26  Bruno Haible  <bruno@clisp.org>
68152
68153         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
68154         noinst_LTLIBRARIES.
68155
68156 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
68157             Bruno Haible  <bruno@clisp.org>
68158
68159         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
68160         if compiling with "gcc -ansi".
68161
68162 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
68163
68164         Fix some incompatibilities with gcc -ansi -pedantic.
68165         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
68166         if compiling pedantically with GCC, unless it's C99 or later.
68167         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
68168         it mishandles gcc -ansi -pedantic as well.
68169         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
68170         if gcc -pedantic.
68171         * lib/regexec.c (check_node_accept_bytes): Don't use auto
68172         initializers for struct if -pedantic, unless it's C99 or later.
68173
68174 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
68175
68176         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
68177         Don't close an fd more than once. Identical atimes indicate
68178         success, not failure.
68179
68180 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
68181
68182         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
68183
68184 2006-11-23  Jim Meyering  <jim@meyering.net>
68185
68186         * build-aux/announce-gen: New file.  From coreutils.
68187
68188 2006-11-22  Jim Meyering  <jim@meyering.net>
68189
68190         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
68191         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
68192         (fts_read): Use a temporary to narrow the overused st_size member
68193         before using it in a switch statement.  Reported by Matthew Woehlke.
68194
68195         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
68196         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
68197
68198 2006-11-20  Bruno Haible  <bruno@clisp.org>
68199
68200         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
68201         changequote instead of pairs of brackets.
68202         Reported by Andreas Schwab <schwab@suse.de>.
68203
68204 2006-11-21  Jim Meyering  <jim@meyering.net>
68205
68206         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
68207         so as to remain compatible with older compilers.
68208         Patch from Michael Deutschmann.
68209
68210 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68211
68212         * MODULES.html.sh (File system functions): Add openat.
68213
68214         * lib/openat.h (rpl_fstatat): New macro, if
68215         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
68216         (fstatat): Define to rpl_fstatat under the same conditions,
68217         unless COMPILING_FSTATAT.
68218         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
68219         seems to have the bug.
68220         * lib/fstatat.c: New file.
68221         * modules/openat (Files): Add it.
68222
68223 2006-11-20  Bruno Haible  <bruno@clisp.org>
68224
68225         * Makefile: New file.
68226
68227 2006-11-20  Jim Meyering  <jim@meyering.net>
68228
68229         The beginnings of syntax-related checks for gnulib.
68230         * lib/Makefile: New file.
68231         * lib/t-idcache: New script.  Ensure that the two halves of
68232         idcache.c stay in sync.
68233
68234         * lib/idcache.c: Adjust comments in user- and group- portions to
68235         be more accurate, and to be consistent with one another.
68236
68237 2006-11-20  Jim Meyering  <jim@meyering.net>
68238
68239         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
68240         continue using the flexible array member (thus, this module performs
68241         half as many malloc calls), with the addition that...
68242         (getgroup, getuser): Consistently record a non-match via an empty
68243         "name" string, and map an empty string match to a NULL return value.
68244         * modules/idcache (Depends-on): Re-add flexmember.
68245
68246         * lib/idcache.c (getuser): Remove all uses of the register keyword.
68247         (getuidbyname, getgroup, getgidbyname): Likewise.
68248
68249         Use cleaner syntax: NULL rather than 0.
68250         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
68251
68252 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
68253
68254         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
68255         It mishandled the case where the group was missing.
68256         Problem reported by Greg Schafer.
68257         * modules/idcache: Likewise.
68258
68259 2006-11-18  Jim Meyering  <jim@meyering.net>
68260
68261         * check-module (%exempt_header): Add exception for some
68262         conditionally-included headers.
68263
68264         * modules/i-ring (Depends-on): Add verify.
68265         (License): Change to LGPL.
68266
68267 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68268
68269         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
68270         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
68271         and inttostr.h.  Use snprintf rather than uinttostr, so that
68272         LGPLed code doesn't depend on GPLed.
68273
68274 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68275
68276         * modules/inline (License): Change from GPL to LGPL.
68277
68278 2006-11-17  Jim Meyering  <jim@meyering.net>
68279
68280         * modules/d-type (License): Switch to LGPL.
68281
68282 2006-11-15  Bruno Haible  <bruno@clisp.org>
68283
68284         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
68285
68286 2006-11-15  Eric Blake  <ebb9@byu.net>
68287
68288         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
68289         the module dependency.
68290
68291 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68292             Bruno Haible  <bruno@clisp.org>
68293
68294         * gnulib-tool (func_create_testdir): Add license consistency check.
68295
68296 2006-11-15  Eric Blake  <ebb9@byu.net>
68297
68298         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
68299         random "(cached)" in configure output.
68300
68301 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68302
68303         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
68304         test for conforming inttypes.h is both announced and cached.
68305
68306         * MODULES.html.sh (seen_modules, seen_files): New variables.
68307         (func_module): Rewrite to use a few less gnulib-tool and sed
68308         invocations.  Avoid a couple of quadratic algorithms for ...
68309         (missed_modules, missed_files): ... these, with ...
68310         (func_append, func_tmpdir): ... these new functions, from
68311         gnulib-tool.  Analogously, install traps for cleanup.
68312
68313         * tests/test-gc.c (main): Remove unused variables.
68314         * tests/test-read-file.c: Include stdlib.h, for 'free'.
68315
68316 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
68317
68318         * modules/inttostr (License): Change to LGPL.
68319
68320 2006-11-14  Eric Blake  <ebb9@byu.net>
68321
68322         * modules/tempname (License): Change to LGPL.
68323
68324 2006-11-14  Eric Blake  <ebb9@byu.net>
68325
68326         * doc/functions.texi (Function Portability): *printf functions on
68327         Cygwin now understand all POSIX size specifiers.
68328
68329 2006-11-14  Bruno Haible  <bruno@clisp.org>
68330
68331         * modules/c-ctype (License): Change to LGPL.
68332
68333 2006-11-12  Bruno Haible  <bruno@clisp.org>
68334
68335         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
68336         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
68337         for GNOME libraries, for which the include files are installed in
68338         subdirectories of $prefix/include.
68339
68340 2006-11-12  Bruno Haible  <bruno@clisp.org>
68341
68342         * m4/lib-link.m4: Require at least autoconf-2.54.
68343         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
68344         name to underscores for the --with option.
68345
68346 2006-11-13  Bruno Haible  <bruno@clisp.org>
68347
68348         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
68349         the tests directory.
68350         Reported by Ralf Wildenhues.
68351
68352 2006-11-13  Bruno Haible  <bruno@clisp.org>
68353
68354         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
68355         (func_emit_initmacro_end): Undo the override here.
68356         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
68357         Works around the famous automake error in coreutils.
68358
68359 2006-11-13  Eric Blake  <ebb9@byu.net>
68360
68361         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
68362         element, not its node.
68363
68364 2006-11-12  Bruno Haible  <bruno@clisp.org>
68365
68366         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
68367         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
68368
68369 2006-11-12  Bruno Haible  <bruno@clisp.org>
68370
68371         * gnulib-tool: New option --local-symlink.
68372         (func_usage): Document it.
68373         (lsymbolic): New variable.
68374         (func_import, func_create_testdir): If --symlink was not specified,
68375         test whether --local-symlink was specified and the file comes from
68376         the local_gnulib_dir.
68377
68378 2006-11-12  Bruno Haible  <bruno@clisp.org>
68379
68380         * gnulib-tool (func_ln): New function.
68381         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
68382
68383 2006-11-12  Bruno Haible  <bruno@clisp.org>
68384
68385         Finish support for source files in subdirectories.
68386         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
68387         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
68388         AUTOMAKE_OPTIONS.
68389         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
68390
68391 2006-11-12  Bruno Haible  <bruno@clisp.org>
68392
68393         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68394         EXTRA_lib_SOURCES augmentation.
68395         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
68396
68397 2006-11-12  Jim Meyering  <jim@meyering.net>
68398
68399         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
68400         file descriptors.  This also averts a failure on systems with
68401         native openat support when a traversed directory lacks "x" access.
68402         * lib/fts_.h: Include "i-ring.h"
68403         (struct FTS) [fts_fd_ring]: New member.
68404         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
68405         (FCHDIR): Add parentheses.
68406         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
68407         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
68408         When descending, rather than simply closing the previous
68409         fts_cwd_fd value, push that file descriptor onto the ring.
68410         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
68411         (fts_open): Initialize the new fd_ring member.
68412         (fts_close): Clear the ring.
68413         (fts_safe_changedir): When possible, use our new fd_ring to skip
68414         the diropen and fstat and dev/ino comparison that would normally
68415         accompany a virtual `chdir ("..")'.
68416
68417         * modules/fts (Depends-on): Add i-ring.
68418         * modules/i-ring: New module.
68419         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
68420         * m4/i-ring.m4: New file.
68421
68422 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68423
68424         * gnulib-tool (func_create_testdir): Fix replacement of
68425         `build-aux' in configure.ac.  Run autotools in gltests
68426         subdirectory.
68427         (func_create_testdir, func_create_megatestdir, test): There is
68428         no need for '--force' in most autotool invocations in a new
68429         tree.  Actually fail the whole test if any of the tools, or the
68430         configure or make stages fail.
68431
68432         Sync from Automake.
68433         * build-aux/gnupload: Revert last change.  Add pointer to upload
68434         instructions of the GNU Maintenance Instructions.
68435         Suggestion by Karl Berry.
68436
68437 2006-11-10  Jim Meyering  <jim@meyering.net>
68438
68439         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
68440
68441 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68442
68443         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
68444         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
68445         (bind_textdomain_codeset) [! ENABLE_NLS]:
68446         Evaluate all the arguments.  That way, callers get compatible behavior
68447         if the arguments have side effects.  Also, it avoids some GCC
68448         diagnostics in some cases; Joel E. Denny reported problems when Bison
68449         was configured with --enable-gcc-warnigs.
68450
68451 2006-11-10  Jim Meyering  <jim@meyering.net>
68452
68453         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
68454         relevant options in CFLAGS (like -O, -fno-inline) are taken into
68455         account.
68456
68457 2006-11-10  Jim Meyering  <jim@meyering.net>
68458
68459         * modules/inline: New file/module.
68460         * modules/xalloc (Files): Remove m4/inline.m4.
68461         (Depends-on): Add inline, instead.
68462         * modules/oset: Likewise.
68463         * modules/list: Likewise.
68464
68465 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68466
68467         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
68468         Problem reported by Matthew Woehlke.
68469
68470 2006-11-09  Bruno Haible  <bruno@clisp.org>
68471
68472         * lib/tempname.c (gen_tempname): Remove variant that invokes
68473         __gen_tempname.
68474         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
68475         __gen_tempname.
68476
68477 2006-11-08  Bruno Haible  <bruno@clisp.org>
68478
68479         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
68480         to 'yes' instead of 'cross-compiling'.
68481
68482 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
68483
68484         * lib/quotearg.h (quotearg_free): New decl.
68485         * lib/quotearg.c (quotearg_free): New function.
68486         (slot0, nslots, slotvec0, slotvec):
68487         Now file-scope so that quotearg_free can get at them.
68488
68489 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68490
68491         Sync from Automake.
68492         * build-aux/gnupload: Add missing 'gnu' to example URL.
68493         Report by Karl Berry.
68494
68495 2006-11-08  Bruno Haible  <bruno@clisp.org>
68496
68497         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
68498         Suggested by Paul Eggert.
68499
68500 2006-11-08  Jim Meyering  <jim@meyering.net>
68501
68502         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
68503         It's already included if !_LIBC.
68504         (fts_safe_changedir): Add a comment.
68505
68506 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
68507
68508         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
68509         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
68510         Matthew Woehlke.
68511
68512         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
68513         definitions up, to avoid colliding with change below.
68514         (static_inline) [HAVE_INLINE]: New macro.
68515         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
68516         Provide extern decls when !HAVE_INLINE.  Do not define unless
68517         static_inline is defined, either by us or by xmalloc.c.  Use
68518         static_inline rather than static inline.
68519         (XCALLOC): Optimize sizeof(T) = 1 case.
68520         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
68521
68522 2006-11-07  Bruno Haible  <bruno@clisp.org>
68523
68524         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
68525         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
68526         AC_C_INLINE.
68527         * modules/xalloc (Files): Add m4/inline.m4.
68528
68529 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68530
68531         * README: Fix typo.
68532         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
68533         (Miscellanous Notes): ...from this.
68534
68535 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
68536
68537         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
68538         Mention that offsetof should be used instead of sizeof.
68539         From Bruno Haible.
68540
68541 2006-11-07  Bruno Haible  <bruno@clisp.org>
68542
68543         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
68544
68545 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
68546
68547         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
68548         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
68549         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
68550         (gl_tree_add_before, gl_tree_add_after):
68551         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
68552         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
68553         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
68554         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
68555         (gl_linked_add_after, gl_linked_add_at): Likewise.
68556         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
68557         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
68558         (gl_tree_add_before, gl_tree_add_after): Likewise.
68559         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
68560         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
68561         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
68562
68563 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68564
68565         * lib/gl_oset.h: Use C comment style, not C++ comment style.
68566
68567 2006-11-06  Bruno Haible  <bruno@clisp.org>
68568
68569         * m4/inline.m4: New file.
68570         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
68571         * modules/list (Files): Add m4/inline.m4.
68572         * modules/oset (Files): Likewise.
68573
68574 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
68575
68576         * lib/idcache.c: Include <stddef.h>, for offsetof.
68577         (struct userid.name): Change from char * to a flexible array member.
68578         All uses changed.
68579         * modules/idcache (Depends-on): Add flexmember.
68580
68581         * MODULES.html.sh (Core language properties): New module flexmember.
68582         * modules/flexmember, m4/flexmember.m4: New files.
68583
68584         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
68585         inline functions that are identical with the old xnmalloc_inline,
68586         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
68587         that we can avoid some unnecessary integer multiplications and
68588         divisions in the common case where the element size is known at
68589         compile time.
68590         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
68591         needed.
68592         (xnboundedmalloc): Remove.
68593         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
68594         arguments, for consistency with rest of this header.
68595         (xcharalloc): Rewrite using XNMALLOC.
68596         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
68597         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
68598         versions have been moved to lib/xalloc.h and renamed to be the
68599         non-*_inline versions.
68600         (xmalloc, xrealloc): Implement without reference to the xnmalloc
68601         and xnrealloc functions, since those functions are now inline and
68602         now call us.
68603         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
68604         renaming described above.
68605         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
68606         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
68607         captures the dependency in AC_C_INLINE.
68608
68609         New module canonicalize-lgpl, proposed by Charles Wilson in
68610         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
68611         with a few small changes afterwards.
68612         * MODULES.html.sh (File system functions): New module
68613         canonicalize-lgpl.
68614         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
68615         and canonicalize_file_name.
68616         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
68617         * modules/canonicalize-lgpl: New files.
68618
68619 2006-11-05  Bruno Haible  <bruno@clisp.org>
68620
68621         * gnulib-tool (func_import, func_create_testdir): Create directories
68622         also for files in subdirectories of lib/.
68623
68624 2006-11-05  Bruno Haible  <bruno@clisp.org>
68625
68626         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
68627         ANSI C compliant.
68628
68629 2006-11-03  Bruno Haible  <bruno@clisp.org>
68630
68631         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
68632         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
68633         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
68634         (xnboundedmalloc): New inline function.
68635         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
68636         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
68637         xmalloc.
68638         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
68639         xmalloc.
68640         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
68641         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
68642         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
68643         xmalloc.
68644         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
68645         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
68646         xmalloc.
68647         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
68648         gl_tree_add_after): Use XMALLOC instead of xmalloc.
68649         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
68650         xmalloc.
68651         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
68652         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
68653         gl_tree_add_after): Use XMALLOC instead of xmalloc.
68654         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
68655         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
68656         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
68657         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
68658
68659 2006-11-03  Bruno Haible  <bruno@clisp.org>
68660
68661         * lib/c-ctype.h [C++]: Define functions without name mangling.
68662         * lib/fwriteerror.h [C++]: Likewise.
68663         * lib/gcd.h [C++]: Likewise.
68664         * lib/linebreak.h [C++]: Likewise.
68665
68666 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68667
68668         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
68669         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
68670         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
68671         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
68672         Check for functions and headers just once.
68673         Check for declaration of canonicalize_file_name.
68674         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
68675
68676 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68677
68678         * gnulib-tool (func_import): Fix typo in actioncmd.
68679
68680 2006-11-02  Bruno Haible  <bruno@clisp.org>
68681
68682         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
68683         newline sequence in the Makefile.am snippet as a space, like "make"
68684         does.
68685         Reported by Roger Persson <perrog@gmail.com>.
68686
68687 2006-11-01  Bruno Haible  <bruno@clisp.org>
68688
68689         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
68690         already declared in <string.h>.
68691         * lib/strcase.h (strncasecmp): Don't declare it if yes.
68692
68693 2006-11-01  Bruno Haible  <bruno@clisp.org>
68694
68695         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
68696         * lib/strcase.h: Include <string.h>.
68697         (strcasecmp): Define to rpl_strcasecmp here.
68698
68699 2006-11-01  Bruno Haible  <bruno@clisp.org>
68700
68701         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
68702
68703 2006-11-01  Eric Blake  <ebb9@byu.net>
68704
68705         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
68706
68707         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
68708
68709 2006-10-29  Bruno Haible  <bruno@clisp.org>
68710
68711         Make it compile in C++ mode.
68712         * lib/full-write.c (full_rw): Add a cast.
68713
68714 2006-11-01  Bruno Haible  <bruno@clisp.org>
68715
68716         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
68717         be POSIX compliant.
68718         Reported by Roger Persson <perrog@gmail.com>.
68719
68720 2006-11-01  Eric Blake  <ebb9@byu.net>
68721
68722         * lib/getopt_.h: Fix comments.
68723
68724 2006-10-31  Eric Blake  <ebb9@byu.net>
68725
68726         * modules/tmpdir (Depends-on): Add sys_stat.
68727         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
68728         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
68729         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
68730         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
68731         tempname.
68732
68733 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
68734
68735         Avoid some C++ diagnostics reported by Bruno Haible.
68736         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
68737         xmalloc.
68738         (quotearg_alloc): Use xcharalloc rather than xmalloc.
68739         (struct slotvec): Move to top level.
68740         (quotearg_n_options): Rewrite to avoid xmalloc.
68741         * lib/xalloc.h (xcharalloc): New function.
68742         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
68743         [defined __cplusplus]: Add function template that provides result
68744         type propagation.  This part of the change is from Bruno Haible.
68745
68746 2006-10-29  Bruno Haible  <bruno@clisp.org>
68747
68748         Make it compile in C++ mode.
68749         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
68750         * lib/strnlen1.c (strnlen1): Cast memchr result.
68751         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
68752         * lib/clean-temp.c (string_equals, string_hash): Add casts.
68753         (create_temp_dir): Rename local variable 'template'.
68754         (compile_csharp_using_sscli): Add cast.
68755         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
68756         * lib/findprog.c (find_in_path): Likewise.
68757         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
68758         * lib/wait-process.c (register_slave_subprocess): Likewise.
68759
68760 2006-10-22  Bruno Haible  <bruno@clisp.org>
68761
68762         * modules/tsearch: New file.
68763         * lib/tsearch.h: New file.
68764         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
68765         * m4/tsearch.m4: New file.
68766         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
68767
68768 2006-10-29  Eric Blake  <ebb9@byu.net>
68769
68770         * lib/arcfour.c: Assume config.h.
68771         * lib/arctwo.c: Likewise.
68772         * lib/base64.c: Likewise.
68773         * lib/check-version.c: Likewise.
68774         * lib/crc.c: Likewise.
68775         * lib/des.c: Likewise.
68776         * lib/gc-gnulib.c: Likewise.
68777         * lib/gc-libgcrypt.c: Likewise.
68778         * lib/gc-pbkdf2-sha1.c: Likewise.
68779         * lib/getaddrinfo.c: Likewise.
68780         * lib/getdelim.c: Likewise.
68781         * lib/getline.c: Likewise.
68782         * lib/hmac-md5.c: Likewise.
68783         * lib/hmac-sha1.c: Likewise.
68784         * lib/iconvme.c: Likewise.
68785         * lib/md2.c: Likewise.
68786         * lib/md4.c: Likewise.
68787         * lib/memxor.c: Likewise.
68788         * lib/read-file.c: Likewise.
68789         * lib/readline.c: Likewise.
68790         * lib/rijndael-alg-fst.c: Likewise.
68791         * lib/rijndael-api-fst.c: Likewise.
68792         * lib/xgetdomainname.c: Likewise.
68793
68794 2006-10-28  Eric Blake  <ebb9@byu.net>
68795
68796         * lib/xstrndup.c: Assume config.h.
68797
68798 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
68799
68800         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
68801         stat-macros.h is now for our own macros, whereas stat_h is for
68802         macros in the <sys/stat.h> name space.
68803         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
68804         (STAT_MACROS_H): Remove.
68805         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
68806         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
68807         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
68808         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
68809         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
68810         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
68811         Move these macros to ...
68812         * lib/stat_.h: here.  Don't include stat-macros.h.
68813         * lib/canonicalize.c: Don't include stat-macros.h.
68814         * lib/chown.c: Likewise.
68815         * lib/euidaccess.c: Likewise.
68816         * lib/file-type.c: Likewise.
68817         * lib/filemode.c: Likewise.
68818         * lib/glob.c: Likewise.
68819         * lib/isapipe.c: Likewise.
68820         * lib/lchown.c: Likewise.
68821         * lib/lstat.c: Likewise.
68822         * lib/mkdir-p.c: Likewise.
68823         * lib/rmdir.c: Likewise.
68824         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
68825         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
68826         unless mkdir isn't declared, to speed up 'configure'.
68827         Always create sys/stat.h, since it's unlikely any real sys/stat.h
68828         would define all the S_* symbols.
68829         * modules/canonicalize (Depends-on):
68830         Depend on sys_stat, not stat-macros.
68831         * modules/chown: Likewise.
68832         * modules/euidaccess: Likewise.
68833         * modules/filemode: Likewise.
68834         * modules/file-type: Likewise.
68835         * modules/glob: Likewise.
68836         * modules/isapipe: Likewise.
68837         * modules/lchown: Likewise.
68838         * modules/lstat: Likewise.
68839         * modules/mkancesdirs: Likewise.
68840         * modules/rmdir: Likewise.
68841         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
68842         * modules/modechange: Likewise.
68843         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
68844         (configure.ac): Remove gl_STAT_MACROS.
68845         * modules/sys_stat (Depends-on): Remove stat-macros.
68846
68847 2006-10-27  Bruno Haible  <bruno@clisp.org>
68848
68849         * m4/signed.m4: Remove file.
68850         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
68851         invocation.
68852         * modules/vasnprintf (Files): Remove m4/signed.m4.
68853
68854 2006-10-27  Bruno Haible  <bruno@clisp.org>
68855
68856         Update to GNU gettext 0.16.
68857         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
68858         m4/inttypes-h.m4, m4/signed.m4.
68859         * m4/gettext.m4: Update to GNU gettext 0.16.
68860         * m4/intl.m4: New file, from GNU gettext.
68861         * m4/intldir.m4: New file, from GNU gettext.
68862         * config/srclist.txt: Update
68863
68864 2006-10-27  Eric Blake  <ebb9@byu.net>
68865
68866         * MODULES.html.sh: Document tempname.
68867         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
68868         dependencies.
68869         (Files): Move lib/tempname.c...
68870         * modules/tempname: ...to this new module.
68871         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
68872         (gl_PREREQ_TEMPNAME): Move...
68873         * m4/tempname.m4: ...to this new file.
68874         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
68875         * modules/sys_stat (Depends-on): Add stat-macros.
68876         * lib/stat_.h (includes): Pick up stat macros.
68877         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
68878         if stat macros are broken.
68879         * lib/tempname.c (includes): No need to include "stat-macros.h".
68880         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
68881         (direxists, __path_search) [!_LIBC]: Don't compile these in
68882         gnulib; the tmpdir module covers that.
68883         * lib/tempname.h: New file.
68884
68885 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
68886
68887         * COPYING: Explain how gnulib-tool converts licence headers.
68888         Almost all wording by Eric Blake.
68889
68890 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
68891
68892         * lib/mbchar.h (is_basic_table): Make read-only.
68893         * lib/mbchar.c (is_basic_table): Likewise.
68894         Reported by John Darrington.
68895
68896 2006-10-25  Bruno Haible  <bruno@clisp.org>
68897
68898         * lib/progname.h (set_program_name): Undefine before defining.
68899
68900 2006-10-25  Bruno Haible  <bruno@clisp.org>
68901
68902         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
68903         false for non-gcc C++ compilers.
68904         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
68905
68906 2006-10-24  Bruno Haible  <bruno@clisp.org>
68907
68908         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
68909         iconv implementations like Irix iconv.
68910
68911 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68912
68913         * modules/vararrays: New file.
68914         * m4/vararrays.m4: New file, taken from diffutils.
68915         * MODULES.html.sh: New module vararrays.
68916
68917 2006-10-24  Karl Berry  <karl@gnu.org>
68918
68919         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
68920         Don't call GNU Unix.
68921
68922 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68923
68924         * users.txt: Add Libtool.
68925
68926         Sync from Libtool:
68927
68928         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68929
68930         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
68931         to gnulib's policy of including config.h unconditionally.
68932
68933 2006-10-24  Bruno Haible  <bruno@clisp.org>
68934
68935         * modules/wcwidth (Files): Add m4/wint_t.m4.
68936         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
68937         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
68938
68939 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68940
68941         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
68942         to pacify GCC with some -W flags enabled.  Problem reported by
68943         Bruno Haible.
68944
68945 2006-10-24  Jim Meyering  <jim@meyering.net>
68946
68947         * MODULES.html.sh: Remove uinttostr.  It's not a module.
68948         Reported by Karl Berry.
68949
68950 2006-10-23  Bruno Haible  <bruno@clisp.org>
68951
68952         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
68953
68954 2006-10-24  Bruno Haible  <bruno@clisp.org>
68955
68956         * lib/gl_list.h: Use C comment style, not C++ comment style.
68957
68958 2006-10-23  Eric Blake  <ebb9@byu.net>
68959
68960         * lib/getaddrinfo.c (includes): Add missing include.
68961
68962 2006-10-23  Bruno Haible  <bruno@clisp.org>
68963             Paul Eggert  <eggert@cs.ucla.edu>
68964
68965         Ability to rename obstack_free.
68966         * lib/obstack.h (__obstack_free): New macro. Declare instead of
68967         obstack_free.
68968         (obstack_free): Invoke the __obstack_free macro.
68969         * lib/obstack.c (obstack_free): Use __obstack_free macro.
68970
68971 2006-10-23  Bruno Haible  <bruno@clisp.org>
68972             Paul Eggert  <eggert@cs.ucla.edu>
68973
68974         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
68975         __argc, __argv from the declaration. (They are defined as macros on
68976         mingw.)
68977
68978 2006-10-22  Bruno Haible  <bruno@clisp.org>
68979
68980         * doc/gnulib-intro.texi: New file.
68981         * doc/gnulib.texi: Include it.
68982
68983 2006-10-21  Bruno Haible  <bruno@clisp.org>
68984
68985         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
68986         "Introduction", "Miscellanous Notes", "Particular Modules".
68987
68988 2006-10-21  Bruno Haible  <bruno@clisp.org>
68989
68990         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68991         Change mostlyclean-local rule to avoid sh syntax error from bash
68992         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
68993
68994 2006-10-23  Jim Meyering  <jim@meyering.net>
68995
68996         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
68997         in place of snprintf.
68998
68999         * modules/inttostr (Files): Add lib/uinttostr.c.
69000         * lib/uinttostr.c (inttostr): New file/function.
69001         * lib/inttostr.h (uinttostr): Declare.
69002         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
69003         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
69004         Add uinttostr.
69005         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
69006
69007 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
69008
69009         * lib/canonicalize.c (ELOOP): Define if not already defined.
69010         Problem reported by Bruno Haible in
69011         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
69012
69013 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
69014
69015         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
69016         Problem reported by Perry Smith and Ville Laurikari.
69017
69018         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
69019         uses.
69020
69021 2006-10-19  Bruno Haible  <bruno@clisp.org>
69022
69023         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
69024         for mingw.
69025
69026 2006-10-19  Bruno Haible  <bruno@clisp.org>
69027
69028         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
69029         Needed for mingw.
69030
69031 2006-10-19  Bruno Haible  <bruno@clisp.org>
69032
69033         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
69034
69035 2006-10-19  Bruno Haible  <bruno@clisp.org>
69036
69037         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
69038         it.
69039
69040 2006-10-19  Bruno Haible  <bruno@clisp.org>
69041
69042         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
69043         invocation.
69044
69045 2006-10-19  Bruno Haible  <bruno@clisp.org>
69046
69047         * gnulib-tool (func_create_testdir): Don't include ftruncate and
69048         mountlist by default.
69049
69050 2006-10-16  Bruno Haible  <bruno@clisp.org>
69051
69052         * lib/c-strstr.c: Include c-strstr.h.
69053
69054 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
69055
69056         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
69057         in a slash.
69058
69059 2006-10-18  Bruno Haible  <bruno@clisp.org>
69060
69061         * lib/lock.h [C++]: Wrap definitions in extern "C".
69062
69063 2006-10-18  Bruno Haible  <bruno@clisp.org>
69064
69065         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
69066         gl_LIBOBJS list.
69067
69068 2006-10-18  Bruno Haible  <bruno@clisp.org>
69069
69070         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
69071
69072 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
69073
69074         * lib/xstrtol.h: Include gettext.h.
69075         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
69076         Problem reported by Eric Blake.
69077         * modules/xstrtol (Depends-on): Add gettext-h.
69078
69079 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
69080
69081         * lib/strftime.c (advance): New macro.
69082         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
69083         incomplete type, so you can't add 0 to it.  Problem and patch
69084         reported by Eelco Dolstra for dietlibc.
69085
69086 2006-10-18  Jim Meyering  <jim@meyering.net>
69087
69088         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
69089         type for a local, and rename it: s/up/user_proc/.
69090
69091 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
69092
69093         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
69094         READ_UTMP_USER_PROCESS.
69095         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
69096
69097 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
69098
69099         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
69100         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
69101
69102 2006-10-17  Eric Blake  <ebb9@byu.net>
69103
69104         * lib/sigprocmask.c (sigprocmask): Fix typo.
69105
69106         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
69107
69108         * modules/clean-temp (Makefile.am): Don't add to make output...
69109         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
69110         config.h.
69111
69112 2006-10-17  Bruno Haible  <bruno@clisp.org>
69113
69114         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
69115         differently if DEFAULT_TEXT_DOMAIN is set.
69116
69117 2006-10-16  Bruno Haible  <bruno@clisp.org>
69118
69119         * lib/clean-temp.c: Include fwriteerror.h.
69120
69121 2006-10-16  Bruno Haible  <bruno@clisp.org>
69122
69123         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
69124
69125 2006-10-16  Bruno Haible  <bruno@clisp.org>
69126
69127         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
69128         * lib/sigprocmask.h: Include <sys/types.h>.
69129         (sigset_t): Use the system's definition if present.
69130
69131 2006-10-17  Eric Blake  <ebb9@byu.net>
69132
69133         * lib/xvasprintf.c (includes): Assume config.h.
69134         * lib/xasprintf.c (includes): Likewise.
69135
69136 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
69137
69138         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
69139         at least as wide as intmax_t.
69140
69141 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
69142
69143         (Imported from Automake.)
69144         * build-aux/gnupload: Update to version 1.1 of directive file.
69145
69146 2006-10-16  Eric Blake  <ebb9@byu.net>
69147
69148         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
69149         match Automake 1.10a.
69150
69151 2006-10-14  Bruno Haible  <bruno@clisp.org>
69152
69153         * modules/sigprocmask: New file.
69154         * lib/sigprocmask.h: New file.
69155         * lib/sigprocmask.c: New file.
69156         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
69157         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
69158         request sigprocmask.o.
69159         (gl_PREREQ_SIGPROCMASK): New macro.
69160         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
69161         (Depends-on): Add sigprocmask.
69162         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
69163         gt_SIGNALBLOCKING. Test for 'raise' only once.
69164         * lib/fatal-signal.c: Include sigprocmask.h.
69165         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
69166         unblock_fatal_signals): Define always.
69167         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69168         sigprocmask.
69169
69170 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69171
69172         Sync from Automake.
69173         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
69174         which incorrectly sets the mode of an existing destination
69175         directory.  In some cases the unpatched install-sh could do the
69176         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
69177         system.  We hope this is rare in practice, but it's clearly worth
69178         fixing.  Problem reported by Alex Unleashed in
69179         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
69180         Also, don't bother to check for -m bugs unless we're using -m;
69181         suggested by Stepan Kasal.
69182
69183 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69184
69185         Sync from Automake.
69186         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
69187         `-c' flag, so they appear at the same position as in %FASTDEP%
69188         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
69189         which ignores unknown options only after the first non-option.
69190         Bug report against M4 by Nelson H. F. Beebe.
69191
69192 2006-10-13  Jim Meyering  <jim@meyering.net>
69193
69194         Fix a bug in yesterday's change.
69195         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
69196         p->fts_statp->st_dev would be used uninitialized.
69197         Ensures that we always call fts_stat on the very first entry.
69198         Miklos Szeredi reported that find -xdev stopped working.
69199
69200 2006-10-12  Bruno Haible  <bruno@clisp.org>
69201
69202         * gnulib-tool (func_get_automake_snippet): Append an automatically
69203         computed EXTRA_DIST augmentation.
69204         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
69205         * modules/alloca-opt (Makefile.am): Likewise.
69206         * modules/allocsa (Makefile.am): Likewise.
69207         * modules/arcfour (Makefile.am): Likewise.
69208         * modules/arctwo (Makefile.am): Likewise.
69209         * modules/argmatch (Makefile.am): Likewise.
69210         * modules/argz (Makefile.am): Likewise.
69211         * modules/atexit (Makefile.am): Likewise.
69212         * modules/backupfile (Makefile.am): Likewise.
69213         * modules/byteswap (Makefile.am): Likewise.
69214         * modules/c-strtod (Makefile.am): Likewise.
69215         * modules/c-strtold (Makefile.am): Likewise.
69216         * modules/calloc (Makefile.am): Likewise.
69217         * modules/canon-host (Makefile.am): Likewise.
69218         * modules/canonicalize (Makefile.am): Likewise.
69219         * modules/chdir-long (Makefile.am): Likewise.
69220         * modules/chdir-safer (Makefile.am): Likewise.
69221         * modules/check-version (Makefile.am): Likewise.
69222         * modules/chown (Makefile.am): Likewise.
69223         * modules/cloexec (Makefile.am): Likewise.
69224         * modules/close-stream (Makefile.am): Likewise.
69225         * modules/closeout (Makefile.am): Likewise.
69226         * modules/crc (Makefile.am): Likewise.
69227         * modules/csharpexec (Makefile.am): Likewise.
69228         * modules/cycle-check (Makefile.am): Likewise.
69229         * modules/des (Makefile.am): Likewise.
69230         * modules/dev-ino (Makefile.am): Likewise.
69231         * modules/dirfd (Makefile.am): Likewise.
69232         * modules/dirname (Makefile.am): Likewise.
69233         * modules/dup2 (Makefile.am): Likewise.
69234         * modules/eealloc (Makefile.am): Likewise.
69235         * modules/error (Makefile.am): Likewise.
69236         * modules/euidaccess (Makefile.am): Likewise.
69237         * modules/exclude (Makefile.am): Likewise.
69238         * modules/exitfail (Makefile.am): Likewise.
69239         * modules/fcntl-safer (Makefile.am): Likewise.
69240         * modules/fcntl (Makefile.am): Likewise.
69241         * modules/file-type (Makefile.am): Likewise.
69242         * modules/fileblocks (Makefile.am): Likewise.
69243         * modules/filemode (Makefile.am): Likewise.
69244         * modules/filenamecat (Makefile.am): Likewise.
69245         * modules/fnmatch (Makefile.am): Likewise.
69246         * modules/fopen-safer (Makefile.am): Likewise.
69247         * modules/fpending (Makefile.am): Likewise.
69248         * modules/fprintftime (Makefile.am): Likewise.
69249         * modules/free (Makefile.am): Likewise.
69250         * modules/fsusage (Makefile.am): Likewise.
69251         * modules/ftruncate (Makefile.am): Likewise.
69252         * modules/fts (Makefile.am): Likewise.
69253         * modules/gc-arcfour (Makefile.am): Likewise.
69254         * modules/gc-des (Makefile.am): Likewise.
69255         * modules/gc-hmac-md5 (Makefile.am): Likewise.
69256         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
69257         * modules/gc-md4 (Makefile.am): Likewise.
69258         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
69259         * modules/gc-sha1 (Makefile.am): Likewise.
69260         * modules/gc (Makefile.am): Likewise.
69261         * modules/getaddrinfo (Makefile.am): Likewise.
69262         * modules/getcwd (Makefile.am): Likewise.
69263         * modules/getdelim (Makefile.am): Likewise.
69264         * modules/getdomainname (Makefile.am): Likewise.
69265         * modules/getgroups (Makefile.am): Likewise.
69266         * modules/gethostname (Makefile.am): Likewise.
69267         * modules/gethrxtime (Makefile.am): Likewise.
69268         * modules/getline (Makefile.am): Likewise.
69269         * modules/getloadavg (Makefile.am): Likewise.
69270         * modules/getlogin_r (Makefile.am): Likewise.
69271         * modules/getndelim2 (Makefile.am): Likewise.
69272         * modules/getopt (Makefile.am): Likewise.
69273         * modules/getpagesize (Makefile.am): Likewise.
69274         * modules/getpass-gnu (Makefile.am): Likewise.
69275         * modules/getpass (Makefile.am): Likewise.
69276         * modules/getsubopt (Makefile.am): Likewise.
69277         * modules/gettime (Makefile.am): Likewise.
69278         * modules/gettimeofday (Makefile.am): Likewise.
69279         * modules/getugroups (Makefile.am): Likewise.
69280         * modules/getusershell (Makefile.am): Likewise.
69281         * modules/glob (Makefile.am): Likewise.
69282         * modules/group-member (Makefile.am): Likewise.
69283         * modules/hard-locale (Makefile.am): Likewise.
69284         * modules/hash (Makefile.am): Likewise.
69285         * modules/hmac-md5 (Makefile.am): Likewise.
69286         * modules/hmac-sha1 (Makefile.am): Likewise.
69287         * modules/human (Makefile.am): Likewise.
69288         * modules/idcache (Makefile.am): Likewise.
69289         * modules/imaxabs (Makefile.am): Likewise.
69290         * modules/imaxdiv (Makefile.am): Likewise.
69291         * modules/inet_ntop (Makefile.am): Likewise.
69292         * modules/inet_pton (Makefile.am): Likewise.
69293         * modules/intprops (Makefile.am): Likewise.
69294         * modules/inttostr (Makefile.am): Likewise.
69295         * modules/inttypes (Makefile.am): Likewise.
69296         * modules/isapipe (Makefile.am): Likewise.
69297         * modules/javaversion (Makefile.am): Likewise.
69298         * modules/lchmod (Makefile.am): Likewise.
69299         * modules/lchown (Makefile.am): Likewise.
69300         * modules/localcharset (Makefile.am): Likewise.
69301         * modules/long-options (Makefile.am): Likewise.
69302         * modules/lstat (Makefile.am): Likewise.
69303         * modules/malloc (Makefile.am): Likewise.
69304         * modules/mathl (Makefile.am): Likewise.
69305         * modules/mbchar (Makefile.am): Likewise.
69306         * modules/md2 (Makefile.am): Likewise.
69307         * modules/md4 (Makefile.am): Likewise.
69308         * modules/md5 (Makefile.am): Likewise.
69309         * modules/memcasecmp (Makefile.am): Likewise.
69310         * modules/memchr (Makefile.am): Likewise.
69311         * modules/memcmp (Makefile.am): Likewise.
69312         * modules/memcoll (Makefile.am): Likewise.
69313         * modules/memcpy (Makefile.am): Likewise.
69314         * modules/memmem (Makefile.am): Likewise.
69315         * modules/memmove (Makefile.am): Likewise.
69316         * modules/mempcpy (Makefile.am): Likewise.
69317         * modules/memrchr (Makefile.am): Likewise.
69318         * modules/memset (Makefile.am): Likewise.
69319         * modules/memxor (Makefile.am): Likewise.
69320         * modules/mkancesdirs (Makefile.am): Likewise.
69321         * modules/mkdir-p (Makefile.am): Likewise.
69322         * modules/mkdir (Makefile.am): Likewise.
69323         * modules/mkdtemp (Makefile.am): Likewise.
69324         * modules/mkstemp (Makefile.am): Likewise.
69325         * modules/mktime (Makefile.am): Likewise.
69326         * modules/modechange (Makefile.am): Likewise.
69327         * modules/mountlist (Makefile.am): Likewise.
69328         * modules/nanosleep (Makefile.am): Likewise.
69329         * modules/obstack (Makefile.am): Likewise.
69330         * modules/openat (Makefile.am): Likewise.
69331         * modules/pagealign_alloc (Makefile.am): Likewise.
69332         * modules/pathmax (Makefile.am): Likewise.
69333         * modules/physmem (Makefile.am): Likewise.
69334         * modules/poll (Makefile.am): Likewise.
69335         * modules/posixtm (Makefile.am): Likewise.
69336         * modules/posixver (Makefile.am): Likewise.
69337         * modules/putenv (Makefile.am): Likewise.
69338         * modules/quote (Makefile.am): Likewise.
69339         * modules/quotearg (Makefile.am): Likewise.
69340         * modules/raise (Makefile.am): Likewise.
69341         * modules/read-file (Makefile.am): Likewise.
69342         * modules/readline (Makefile.am): Likewise.
69343         * modules/readlink (Makefile.am): Likewise.
69344         * modules/readtokens (Makefile.am): Likewise.
69345         * modules/readutmp (Makefile.am): Likewise.
69346         * modules/realloc (Makefile.am): Likewise.
69347         * modules/regex (Makefile.am): Likewise.
69348         * modules/rename-dest-slash (Makefile.am): Likewise.
69349         * modules/rename (Makefile.am): Likewise.
69350         * modules/rijndael (Makefile.am): Likewise.
69351         * modules/rmdir (Makefile.am): Likewise.
69352         * modules/rpmatch (Makefile.am): Likewise.
69353         * modules/safe-read (Makefile.am): Likewise.
69354         * modules/safe-write (Makefile.am): Likewise.
69355         * modules/same-inode (Makefile.am): Likewise.
69356         * modules/same (Makefile.am): Likewise.
69357         * modules/save-cwd (Makefile.am): Likewise.
69358         * modules/savedir (Makefile.am): Likewise.
69359         * modules/setenv (Makefile.am): Likewise.
69360         * modules/settime (Makefile.am): Likewise.
69361         * modules/sha1 (Makefile.am): Likewise.
69362         * modules/sig2str (Makefile.am): Likewise.
69363         * modules/snprintf (Makefile.am): Likewise.
69364         * modules/stat-macros (Makefile.am): Likewise.
69365         * modules/stat-time (Makefile.am): Likewise.
69366         * modules/stdbool (Makefile.am): Likewise.
69367         * modules/stdint (Makefile.am): Likewise.
69368         * modules/stdlib-safer (Makefile.am): Likewise.
69369         * modules/stpcpy (Makefile.am): Likewise.
69370         * modules/stpncpy (Makefile.am): Likewise.
69371         * modules/strcase (Makefile.am): Likewise.
69372         * modules/strcasestr (Makefile.am): Likewise.
69373         * modules/strchrnul (Makefile.am): Likewise.
69374         * modules/strcspn (Makefile.am): Likewise.
69375         * modules/strdup (Makefile.am): Likewise.
69376         * modules/strerror (Makefile.am): Likewise.
69377         * modules/strftime (Makefile.am): Likewise.
69378         * modules/strndup (Makefile.am): Likewise.
69379         * modules/strnlen (Makefile.am): Likewise.
69380         * modules/strpbrk (Makefile.am): Likewise.
69381         * modules/strsep (Makefile.am): Likewise.
69382         * modules/strstr (Makefile.am): Likewise.
69383         * modules/strtod (Makefile.am): Likewise.
69384         * modules/strtoimax (Makefile.am): Likewise.
69385         * modules/strtok_r (Makefile.am): Likewise.
69386         * modules/strtol (Makefile.am): Likewise.
69387         * modules/strtoll (Makefile.am): Likewise.
69388         * modules/strtoul (Makefile.am): Likewise.
69389         * modules/strtoull (Makefile.am): Likewise.
69390         * modules/strtoumax (Makefile.am): Likewise.
69391         * modules/strverscmp (Makefile.am): Likewise.
69392         * modules/sys_socket (Makefile.am): Likewise.
69393         * modules/sys_stat (Makefile.am): Likewise.
69394         * modules/sysexits (Makefile.am): Likewise.
69395         * modules/time_r (Makefile.am): Likewise.
69396         * modules/timegm (Makefile.am): Likewise.
69397         * modules/timespec (Makefile.am): Likewise.
69398         * modules/tmpfile-safer (Makefile.am): Likewise.
69399         * modules/trim (Makefile.am): Likewise.
69400         * modules/unistd-safer (Makefile.am): Likewise.
69401         * modules/unlinkdir (Makefile.am): Likewise.
69402         * modules/unlocked-io (Makefile.am): Likewise.
69403         * modules/userspec (Makefile.am): Likewise.
69404         * modules/utime (Makefile.am): Likewise.
69405         * modules/utimecmp (Makefile.am): Likewise.
69406         * modules/utimens (Makefile.am): Likewise.
69407         * modules/vasnprintf (Makefile.am): Likewise.
69408         * modules/vasprintf (Makefile.am): Likewise.
69409         * modules/vsnprintf (Makefile.am): Likewise.
69410         * modules/xalloc (Makefile.am): Likewise.
69411         * modules/xgetcwd (Makefile.am): Likewise.
69412         * modules/xnanosleep (Makefile.am): Likewise.
69413         * modules/xreadlink (Makefile.am): Likewise.
69414         * modules/xstrtod (Makefile.am): Likewise.
69415         * modules/xstrtol (Makefile.am): Likewise.
69416         * modules/xstrtold (Makefile.am): Likewise.
69417         * modules/yesno (Makefile.am): Likewise.
69418         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
69419
69420 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
69421
69422         * modules/error (Makefile.am): Distribute files through
69423         EXTRA_DIST, not lib_SOURCES.
69424
69425 2006-10-12  Eric Blake  <ebb9@byu.net>
69426
69427         * modules/error (Makefile.am): Distribute files in /lib.
69428         * modules/obstack (Makefile.am): Likewise.
69429
69430 2006-10-12  Bruno Haible  <bruno@clisp.org>
69431
69432         * modules/acl (Makefile.am): Distribute all files in lib/ through
69433         EXTRA_DIST.
69434         * modules/arcfour (Makefile.am): Likewise.
69435         * modules/arctwo (Makefile.am): Likewise.
69436         * modules/argmatch (Makefile.am): Likewise.
69437         * modules/argz (Makefile.am): Likewise.
69438         * modules/atexit (Makefile.am): Likewise.
69439         * modules/backupfile (Makefile.am): Likewise.
69440         * modules/c-strtod (Makefile.am): Likewise.
69441         * modules/c-strtold (Makefile.am): Likewise.
69442         * modules/calloc (Makefile.am): Likewise.
69443         * modules/canon-host (Makefile.am): Likewise.
69444         * modules/canonicalize (Makefile.am): Likewise.
69445         * modules/chdir-long (Makefile.am): Likewise.
69446         * modules/chdir-safer (Makefile.am): Likewise.
69447         * modules/check-version (Makefile.am): Likewise.
69448         * modules/chown (Makefile.am): Likewise.
69449         * modules/cloexec (Makefile.am): Likewise.
69450         * modules/close-stream (Makefile.am): Likewise.
69451         * modules/closeout (Makefile.am): Likewise.
69452         * modules/crc (Makefile.am): Likewise.
69453         * modules/cycle-check (Makefile.am): Likewise.
69454         * modules/des (Makefile.am): Likewise.
69455         * modules/dirfd (Makefile.am): Likewise.
69456         * modules/dirname (Makefile.am): Likewise.
69457         * modules/dup2 (Makefile.am): Likewise.
69458         * modules/euidaccess (Makefile.am): Likewise.
69459         * modules/exclude (Makefile.am): Likewise.
69460         * modules/exitfail (Makefile.am): Likewise.
69461         * modules/fcntl-safer (Makefile.am): Likewise.
69462         * modules/file-type (Makefile.am): Likewise.
69463         * modules/fileblocks (Makefile.am): Likewise.
69464         * modules/filemode (Makefile.am): Likewise.
69465         * modules/filenamecat (Makefile.am): Likewise.
69466         * modules/fnmatch (Makefile.am): Likewise.
69467         * modules/fopen-safer (Makefile.am): Likewise.
69468         * modules/fpending (Makefile.am): Likewise.
69469         * modules/fprintftime (Makefile.am): Likewise.
69470         * modules/free (Makefile.am): Likewise.
69471         * modules/fsusage (Makefile.am): Likewise.
69472         * modules/ftruncate (Makefile.am): Likewise.
69473         * modules/fts (Makefile.am): Likewise.
69474         * modules/gc (Makefile.am): Likewise.
69475         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
69476         * modules/getaddrinfo (Makefile.am): Likewise.
69477         * modules/getcwd (Makefile.am): Likewise.
69478         * modules/getdelim (Makefile.am): Likewise.
69479         * modules/getdomainname (Makefile.am): Likewise.
69480         * modules/getgroups (Makefile.am): Likewise.
69481         * modules/gethostname (Makefile.am): Likewise.
69482         * modules/gethrxtime (Makefile.am): Likewise.
69483         * modules/getline (Makefile.am): Likewise.
69484         * modules/getloadavg (Makefile.am): Likewise.
69485         * modules/getlogin_r (Makefile.am): Likewise.
69486         * modules/getopt (Makefile.am): Likewise.
69487         * modules/getpass (Makefile.am): Likewise.
69488         * modules/getpass-gnu (Makefile.am): Likewise.
69489         * modules/getsubopt (Makefile.am): Likewise.
69490         * modules/gettime (Makefile.am): Likewise.
69491         * modules/gettimeofday (Makefile.am): Likewise.
69492         * modules/getugroups (Makefile.am): Likewise.
69493         * modules/getusershell (Makefile.am): Likewise.
69494         * modules/glob (Makefile.am): Likewise.
69495         * modules/group-member (Makefile.am): Likewise.
69496         * modules/hard-locale (Makefile.am): Likewise.
69497         * modules/hash (Makefile.am): Likewise.
69498         * modules/hmac-md5 (Makefile.am): Likewise.
69499         * modules/hmac-sha1 (Makefile.am): Likewise.
69500         * modules/human (Makefile.am): Likewise.
69501         * modules/idcache (Makefile.am): Likewise.
69502         * modules/imaxabs (Makefile.am): Likewise.
69503         * modules/imaxdiv (Makefile.am): Likewise.
69504         * modules/inet_ntop (Makefile.am): Likewise.
69505         * modules/inet_pton (Makefile.am): Likewise.
69506         * modules/inttostr (Makefile.am): Likewise.
69507         * modules/isapipe (Makefile.am): Likewise.
69508         * modules/lchown (Makefile.am): Likewise.
69509         * modules/long-options (Makefile.am): Likewise.
69510         * modules/lstat (Makefile.am): Likewise.
69511         * modules/malloc (Makefile.am): Likewise.
69512         * modules/mathl (Makefile.am): Likewise.
69513         * modules/mbchar (Makefile.am): Likewise.
69514         * modules/md2 (Makefile.am): Likewise.
69515         * modules/md4 (Makefile.am): Likewise.
69516         * modules/md5 (Makefile.am): Likewise.
69517         * modules/memcasecmp (Makefile.am): Likewise.
69518         * modules/memchr (Makefile.am): Likewise.
69519         * modules/memcmp (Makefile.am): Likewise.
69520         * modules/memcoll (Makefile.am): Likewise.
69521         * modules/memcpy (Makefile.am): Likewise.
69522         * modules/memmem (Makefile.am): Likewise.
69523         * modules/memmove (Makefile.am): Likewise.
69524         * modules/mempcpy (Makefile.am): Likewise.
69525         * modules/memrchr (Makefile.am): Likewise.
69526         * modules/memset (Makefile.am): Likewise.
69527         * modules/memxor (Makefile.am): Likewise.
69528         * modules/mkancesdirs (Makefile.am): Likewise.
69529         * modules/mkdir (Makefile.am): Likewise.
69530         * modules/mkdir-p (Makefile.am): Likewise.
69531         * modules/mkdtemp (Makefile.am): Likewise.
69532         * modules/mkstemp (Makefile.am): Likewise.
69533         * modules/mktime (Makefile.am): Likewise.
69534         * modules/modechange (Makefile.am): Likewise.
69535         * modules/mountlist (Makefile.am): Likewise.
69536         * modules/nanosleep (Makefile.am): Likewise.
69537         * modules/openat (Makefile.am): Likewise.
69538         * modules/pagealign_alloc (Makefile.am): Likewise.
69539         * modules/physmem (Makefile.am): Likewise.
69540         * modules/poll (Makefile.am): Likewise.
69541         * modules/posixtm (Makefile.am): Likewise.
69542         * modules/posixver (Makefile.am): Likewise.
69543         * modules/putenv (Makefile.am): Likewise.
69544         * modules/quote (Makefile.am): Likewise.
69545         * modules/quotearg (Makefile.am): Likewise.
69546         * modules/raise (Makefile.am): Likewise.
69547         * modules/read-file (Makefile.am): Likewise.
69548         * modules/readline (Makefile.am): Likewise.
69549         * modules/readlink (Makefile.am): Likewise.
69550         * modules/readtokens (Makefile.am): Likewise.
69551         * modules/readutmp (Makefile.am): Likewise.
69552         * modules/realloc (Makefile.am): Likewise.
69553         * modules/regex (Makefile.am): Likewise.
69554         * modules/rename (Makefile.am): Likewise.
69555         * modules/rename-dest-slash (Makefile.am): Likewise.
69556         * modules/rijndael (Makefile.am): Likewise.
69557         * modules/rmdir (Makefile.am): Likewise.
69558         * modules/rpmatch (Makefile.am): Likewise.
69559         * modules/safe-read (Makefile.am): Likewise.
69560         * modules/safe-write (Makefile.am): Likewise.
69561         * modules/same (Makefile.am): Likewise.
69562         * modules/save-cwd (Makefile.am): Likewise.
69563         * modules/savedir (Makefile.am): Likewise.
69564         * modules/setenv (Makefile.am): Likewise.
69565         * modules/settime (Makefile.am): Likewise.
69566         * modules/sha1 (Makefile.am): Likewise.
69567         * modules/sig2str (Makefile.am): Likewise.
69568         * modules/snprintf (Makefile.am): Likewise.
69569         * modules/stdlib-safer (Makefile.am): Likewise.
69570         * modules/stpcpy (Makefile.am): Likewise.
69571         * modules/stpncpy (Makefile.am): Likewise.
69572         * modules/strcase (Makefile.am): Likewise.
69573         * modules/strcasestr (Makefile.am): Likewise.
69574         * modules/strchrnul (Makefile.am): Likewise.
69575         * modules/strcspn (Makefile.am): Likewise.
69576         * modules/strdup (Makefile.am): Likewise.
69577         * modules/strerror (Makefile.am): Likewise.
69578         * modules/strftime (Makefile.am): Likewise.
69579         * modules/strndup (Makefile.am): Likewise.
69580         * modules/strnlen (Makefile.am): Likewise.
69581         * modules/strpbrk (Makefile.am): Likewise.
69582         * modules/strsep (Makefile.am): Likewise.
69583         * modules/strstr (Makefile.am): Likewise.
69584         * modules/strtod (Makefile.am): Likewise.
69585         * modules/strtoimax (Makefile.am): Likewise.
69586         * modules/strtok_r (Makefile.am): Likewise.
69587         * modules/strtol (Makefile.am): Likewise.
69588         * modules/strtoll (Makefile.am): Likewise.
69589         * modules/strtoul (Makefile.am): Likewise.
69590         * modules/strtoull (Makefile.am): Likewise.
69591         * modules/strtoumax (Makefile.am): Likewise.
69592         * modules/strverscmp (Makefile.am): Likewise.
69593         * modules/time_r (Makefile.am): Likewise.
69594         * modules/timegm (Makefile.am): Likewise.
69595         * modules/tmpfile-safer (Makefile.am): Likewise.
69596         * modules/unistd-safer (Makefile.am): Likewise.
69597         * modules/unlinkdir (Makefile.am): Likewise.
69598         * modules/userspec (Makefile.am): Likewise.
69599         * modules/utime (Makefile.am): Likewise.
69600         * modules/utimecmp (Makefile.am): Likewise.
69601         * modules/utimens (Makefile.am): Likewise.
69602         * modules/vasnprintf (Makefile.am): Likewise.
69603         * modules/vasprintf (Makefile.am): Likewise.
69604         * modules/vsnprintf (Makefile.am): Likewise.
69605         * modules/xalloc (Makefile.am): Likewise.
69606         * modules/xgetcwd (Makefile.am): Likewise.
69607         * modules/xnanosleep (Makefile.am): Likewise.
69608         * modules/xreadlink (Makefile.am): Likewise.
69609         * modules/xstrtod (Makefile.am): Likewise.
69610         * modules/xstrtol (Makefile.am): Likewise.
69611         * modules/xstrtold (Makefile.am): Likewise.
69612         * modules/yesno (Makefile.am): Likewise.
69613
69614 2006-10-12  Jim Meyering  <jim@meyering.net>
69615
69616         * m4/getloadavg.m4: Revert the change below.
69617
69618         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
69619         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
69620         fail with a symlink, which is what coreutils' ./bootstrap now
69621         creates by default.
69622
69623 2006-10-12  Bruno Haible  <bruno@clisp.org>
69624
69625         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
69626         mingw.
69627         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
69628         MSVC and mingw explicitly.
69629
69630 2006-10-11  Simon Josefsson  <jas@extundo.com>
69631             Bruno Haible  <bruno@clisp.org>
69632
69633         Add support for multiple gnulib-tool invocations in the scope of a
69634         single configure.ac file.
69635         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
69636         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
69637         with the same contents as the _LIBADD variable.
69638         (func_emit_initmacro_start, func_emit_initmacro_end,
69639         func_emit_initmacro_done): New functions.
69640         (func_import, func_create_testdir): Invoke them. Allow the identifiers
69641         gl_LIBOBJS and gl_LTLIBOBJS.
69642
69643 2006-10-11  Bruno Haible  <bruno@clisp.org>
69644
69645         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
69646         (func_create_testdir): Don't create po/Makefile.am, don't invoke
69647         autoreconf. Instead, invoke autopoint explicitly but move back the
69648         *.m4 files from gnulib.
69649
69650 2006-10-11  Bruno Haible  <bruno@clisp.org>
69651
69652         * gnulib-tool (func_usage): Make module names after --create-testdir
69653         optional.
69654         (func_create_testdir): If no module was specified, use nearly all
69655         modules.
69656
69657 2006-10-12  Jim Meyering  <jim@meyering.net>
69658
69659         Big performance improvement for fts-based tools that use FTS_NOSTAT.
69660         Avoid spurious inode-mismatch problems on non-POSIX file systems.
69661         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
69662         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
69663         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
69664         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
69665         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
69666         (fts_set_stat_required): New function.
69667         (fts_open): Defer the calls to fts_stat, if possible or requested.
69668         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
69669         into fts_stat itself.
69670         (fts_read): Perform any required (deferred) fts_stat call.
69671         (fts_build): Likewise, for the directory we're about to open and read.
69672         In the readdir loop, carefully decide whether each entry will require
69673         an eventual call to fts_stat, using dirent.d_type info if available.
69674         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
69675         a command line argument into this function.  Update all callers.
69676         Map a return value of FTS_DOT to FTS_D for a command line argument.
69677         * modules/fts (Depends-on): Add d-type.  Alphabetize.
69678         Thanks to Miklos Szeredi for his tenacity and for the initial
69679         bug report about "find" failing on a FUSE-based file system.
69680
69681         * lib/fts.c (fts_open): Use consistent indentation.
69682
69683 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
69684
69685         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
69686         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
69687         reported by Jim Meyering.  All uses of cache variables renamed
69688         to match Autoconf's.
69689         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
69690         the other one.
69691
69692         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
69693         Fix misspelling in diagnostic.
69694
69695 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
69696
69697         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
69698         defined.  Problem reported by Matthew Woehlke.
69699
69700         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
69701         Add support for Tandem NonStop R series.
69702         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
69703         Use new macro.
69704
69705         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
69706         (has_trailing_slash): Omit size arg; all callers changed.
69707         Omit 'inline', since it doesn't help performance and we'd
69708         need to configure it.
69709         Don't count //, ///, etc. as having a trailing slash.
69710         As a side effect, this removes a C99ism reported by Matthew Woehlke.
69711         (rpl_rename_dest_slash): On failure, use rename's errno rather
69712         than (in some cases) an incorrect or junk errno.
69713         Simplify code by removing need to compute length; this does
69714         cause it to make two passes instead of one over the file name,
69715         but it's worth it.
69716
69717         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
69718         change, since Autoconf's version may no longer be appropriate now
69719         that we are using CVS Autoconf's version.  Add support for Tandem.
69720
69721 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
69722             Bruno Haible  <bruno@clisp.org>
69723
69724         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
69725         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
69726         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
69727         gl_AC_TYPE_LONG_LONG.
69728
69729         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
69730         instead of HAVE_LONG_LONG.
69731         * lib/printf-args.c (printf_fetchargs): Likewise.
69732         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
69733         * lib/vasnprintf.c (VASNPRINTF): Likewise.
69734         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
69735         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
69736         gl_AC_TYPE_LONG_LONG.
69737
69738 2006-10-11  Bruno Haible  <bruno@clisp.org>
69739
69740         * m4/longlong.m4: Add comments.
69741         * m4/ulonglong.m4: Likewise.
69742
69743 2006-10-10  Bruno Haible  <bruno@clisp.org>
69744
69745         Make it possible to #define stpcpy, strdup to aliases.
69746         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
69747         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
69748
69749 2006-10-10  Bruno Haible  <bruno@clisp.org>
69750
69751         Make it possible to #define gcd to an alias.
69752         * lib/gcd.c: Include config.h.
69753
69754 2006-10-10  Bruno Haible  <bruno@clisp.org>
69755
69756         Make it possible to #define c_isascii to an alias.
69757         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
69758         defined. Undefine the macros before defining them, to avoid gcc
69759         warnings.
69760         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
69761         define NO_C_CTYPE_MACROS early.
69762
69763 2006-10-10  Bruno Haible  <bruno@clisp.org>
69764
69765         Make it possible to #define set_program_name to an alias.
69766         * lib/progname.c: Don't undefine set_program_name; instead, undefine
69767         ENABLE_RELOCATABLE early.
69768
69769 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69770
69771         Port to Tandem NSK OSS, which has 64-bit signed int but at most
69772         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
69773         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
69774         More generally, don't assume that 64-bit signed int is available
69775         if unsigned int is, and vice versa.
69776         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
69777         unsigned symbols, not on their signed counterparts.
69778         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
69779         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
69780         (UINT64_C, UINTMAX_C):
69781         Likewise.
69782         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
69783         unsigned counterparts.
69784         (Have_long_long, Unsigned): New macros.
69785         (Int): Renamed from INT.
69786         (strtoimax): Use the new macros.
69787         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
69788         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
69789         * modules/inttypes (inttypes.h): Substitute
69790         HAVE_UNSIGNED_LONG_LONG_INT.
69791         * modules/stdint (stdint.h): Likewise.
69792         (Files): Add m4/ulonglong.m4.
69793
69794 2006-10-10  Bruno Haible  <bruno@clisp.org>
69795
69796         Fix a gcc -Wshadow warning.
69797         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
69798         to 'bucket'.
69799         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
69800         gl_linked_indexof_from_to): Likewise.
69801         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
69802         Likewise.
69803         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
69804         Likewise.
69805         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
69806         Reported by Eric Blake.
69807
69808 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
69809
69810         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
69811         for NetBSD.  Problem reported by Bruno Haible.
69812
69813 2006-10-09  Jim Meyering  <jim@meyering.net>
69814
69815         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
69816         Patch from Bruno Haible.
69817
69818 2006-10-09  Jim Meyering  <jim@meyering.net>
69819
69820         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
69821         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
69822         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
69823
69824 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69825
69826         Don't include <config.h> twice; this doesn't work in some cases,
69827         e.g., when config.h has "#define intmax_t long long int" and
69828         we include <config.h>, <inttypes.h>, <config.h> in that order.
69829         Problem reported by Matthew Woehlke in:
69830         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
69831         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
69832         * lib/fts-cycle.c: Don't include config.h.
69833         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
69834         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
69835         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
69836         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
69837         inttypes.h.
69838         * lib/xstrtoumax.c: Likewise.
69839         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
69840         __strtol and the like, so that this module is more like its siblings.
69841         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
69842         Remove; no longer needed now that we assume gnulib inttypes.h.
69843
69844 2006-10-08  Bruno Haible  <bruno@clisp.org>
69845
69846         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
69847         option.
69848
69849 2006-10-07  Jim Meyering  <jim@meyering.net>
69850
69851         * modules/inttypes (inttypes.h): Revert what seems to have been
69852         an inadvertent part of today's change: use "|", not "/" in the
69853         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
69854
69855 2006-10-07  Bruno Haible  <bruno@clisp.org>
69856
69857         * modules/sublist: New file.
69858
69859 2006-10-07  Bruno Haible  <bruno@clisp.org>
69860
69861         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
69862         * modules/argz (argz.h): Likewise.
69863         * modules/arpa_inet (arpa/inet.h): Likewise.
69864         * modules/byteswap (byteswap.h): Likewise.
69865         * modules/configmake (configmake.h): Likewise.
69866         * modules/fcntl (fcntl.h): Likewise.
69867         * modules/fnmatch (fnmatch.h): Likewise.
69868         * modules/getopt (getopt.h): Likewise.
69869         * modules/glob (glob.h): Likewise.
69870         * modules/inttypes (inttypes.h): Likewise.
69871         * modules/netinet_in (netinet/in.h): Likewise.
69872         * modules/poll (poll.h): Likewise.
69873         * modules/stdbool (stdbool.h): Likewise.
69874         * modules/stdint (stdint.h): Likewise.
69875         * modules/sys_select (sys/select.h): Likewise.
69876         * modules/sys_socket (sys/socket.h): Likewise.
69877         * modules/sys_stat (sys/stat.h): Likewise.
69878         * modules/sysexits (sysexits.h): Likewise.
69879         * modules/unistd (unistd.h): Likewise.
69880         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69881         Add a "DO NOT EDIT" comment to the generated file.
69882         (func_import): Likewise for gnulib-comp.m4.
69883
69884 2006-10-07  Bruno Haible  <bruno@clisp.org>
69885
69886         * lib/gl_sublist.h: New file.
69887         * lib/gl_sublist.c: New file.
69888
69889 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69890
69891         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
69892         name (relative to the original working directory) and the file
69893         name component (relative to the temporary working directory).  All
69894         callers changed.
69895         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
69896         * lib/mkdir-p.c (make_dir_parents): Likewise.
69897         * lib/mkdir-p.h (make_dir_parents): Likewise.
69898
69899 2006-10-06  Eric Blake  <ebb9@byu.net>
69900
69901         Define several macros for use by the clean-temp module.
69902         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
69903         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
69904         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
69905
69906         * lib/clean-temp.h (close_stream_temp): New declaration.
69907         * lib/clean-temp.c (includes): Pull in headers according to what
69908         other modules are in use.
69909         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
69910
69911 2006-10-06  Bruno Haible  <bruno@clisp.org>
69912
69913         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
69914         instead of fopen, fwriteerror.
69915
69916 2006-10-06  Bruno Haible  <bruno@clisp.org>
69917
69918         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
69919         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
69920         int.
69921         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
69922         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
69923         Return an error indicator.
69924         Suggested by Eric Blake.
69925
69926 2006-10-06  Bruno Haible  <bruno@clisp.org>
69927
69928         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
69929         Reported by Eric Blake.
69930
69931 2006-10-06  Bruno Haible  <bruno@clisp.org>
69932
69933         * modules/closeout (Description): Mention stderr too.
69934
69935 2006-10-06  Bruno Haible  <bruno@clisp.org>
69936         and Paul Eggert  <eggert@cs.ucla.edu>
69937
69938         * lib/closeout.c (close_stdout): Also close stderr.
69939         * lib/closeout.h: Update comment.
69940
69941 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
69942
69943         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
69944         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
69945         * lib/dirchownmod.c: Include lchown.h.
69946         * lib/lchown.c: Don't include files that lchown.h now includes.
69947         Don't declare chown, since lchown.h now does that.
69948         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
69949         (lchown): Define to rpl_chown if lchown is declared but
69950         does not exist.  Declare using a prototype if lchown is not
69951         declared.  Add a copyright notice.
69952         * lib/mkstemp.h: Include <unistd.h>.
69953         * lib/openat.c: Include lchown.h.
69954
69955         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
69956         we now test for that separately.
69957         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
69958         rather than O_NOFOLLOW, when testing whether it's possible to
69959         avoid a race condition reliably.
69960         * lib/savewd.c (savewd_chdir): Likewise.
69961
69962         Remove macros that are no longer needed now that stdint.h is
69963         reliable.
69964         * lib/fsusage.c (UINTMAX_MAX): Remove.
69965         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
69966         * lib/utimecmp.c (SIZE_MAX): Remove.
69967
69968         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
69969
69970         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
69971         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
69972         O_NOATIME works.
69973
69974 2006-10-05  Bruno Haible  <bruno@clisp.org>
69975
69976         * lib/gl_list.h (gl_sortedlist_search_from_to,
69977         gl_sortedlist_indexof_from_to): New declarations.
69978         (gl_list_implementation): New fields sortedlist_search_from_to,
69979         sortedlist_indexof_from_to.
69980         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
69981         inline functions.
69982         * lib/gl_list.c (gl_sortedlist_search_from_to,
69983         gl_sortedlist_indexof_from_to): New functions.
69984         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
69985         function.
69986         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
69987         (gl_array_sortedlist_search_from_to): New function.
69988         (gl_array_list_implementation): Update.
69989         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
69990         function.
69991         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
69992         (gl_carray_sortedlist_search_from_to): New function.
69993         (gl_carray_list_implementation): Update.
69994         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
69995         gl_linked_sortedlist_indexof_from_to): New functions.
69996         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
69997         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
69998         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
69999         gl_tree_sortedlist_indexof_from_to): New functions.
70000         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
70001         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
70002         Update.
70003         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
70004         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
70005         Update.
70006
70007 2006-10-05  Bruno Haible  <bruno@clisp.org>
70008
70009         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
70010         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
70011         (struct gl_list_implementation): Add fields search_from_to,
70012         indexof_from_to. Remove fields search, indexof.
70013         (gl_list_search): Use the search_from_to method.
70014         (gl_list_search_from, gl_list_search_from_to): New functions.
70015         (gl_list_indexof): Use the indexof_from_to method.
70016         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
70017         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
70018         (gl_list_search_from, gl_list_search_from_to): New functions.
70019         (gl_list_indexof): Use the indexof_from_to method.
70020         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
70021         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
70022         gl_array_indexof. Add start_index, end_index arguments.
70023         (gl_array_search_from_to): Renamed from gl_array_search. Add
70024         start_index, end_index arguments.
70025         (gl_array_remove, gl_array_list_implementation): Update.
70026         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
70027         gl_carray_indexof. Add start_index, end_index arguments.
70028         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
70029         start_index, end_index arguments.
70030         (gl_carray_remove, gl_carray_list_implementation): Update.
70031         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
70032         gl_linked_search. Add start_index, end_index arguments.
70033         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
70034         start_index, end_index arguments.
70035         (gl_linked_remove): Update.
70036         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
70037         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
70038         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
70039         field to 'size_t'.
70040         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
70041         gl_tree_search. Add start_index, end_index arguments.
70042         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
70043         start_index, end_index arguments.
70044         (gl_tree_remove): Update.
70045         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
70046         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
70047         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
70048         function.
70049         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
70050         gl_tree_search. Add start_index, end_index arguments.
70051         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
70052         start_index, end_index arguments.
70053         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
70054         Update.
70055         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
70056
70057 2006-10-05  Bruno Haible  <bruno@clisp.org>
70058
70059         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
70060
70061         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
70062         fwriteerror_temp): New declarations.
70063         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
70064         (descriptors): New variable.
70065         (cleanup): First, close the descriptors.
70066         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
70067         fclose_temp, fwriteerror_temp): New functions.
70068
70069 2006-10-04  Jim Meyering  <jim@meyering.net>
70070
70071         * lib/fts.c (fts_open): Tiny comment change.
70072
70073 2006-10-04  Bruno Haible  <bruno@clisp.org>
70074
70075         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
70076         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
70077         gl_LOCK_BODY.
70078         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
70079         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
70080         gl_LOCK_EARLY_BODY.
70081         (gl_LOCK): Require gl_LOCK_BODY.
70082
70083 2006-10-04  Bruno Haible  <bruno@clisp.org>
70084
70085         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
70086         (gl_oset_search_atleast): New declaration.
70087         (struct gl_oset_implementation): Add field 'search_atleast'.
70088         (gl_oset_search_atleast): New inline function.
70089         * lib/gl_oset.c (gl_oset_search_atleast): New function.
70090         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
70091         (gl_array_oset_implementation): Update.
70092         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
70093         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
70094         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
70095
70096 2006-10-04  Bruno Haible  <bruno@clisp.org>
70097
70098         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
70099
70100 2006-10-03  Bruno Haible  <bruno@clisp.org>
70101
70102         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
70103         from gl_avltreehash_list_implementation.
70104
70105 2006-10-03  Bruno Haible  <bruno@clisp.org>
70106
70107         * lib/gl_oset.c (gl_oset_add): Fix return type.
70108
70109 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
70110
70111         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
70112
70113 2006-10-02  Eric Blake  <ebb9@byu.net>
70114
70115         * modules/strnlen (Depends-on): Add extensions.
70116
70117 2006-10-02  Eric Blake  <ebb9@byu.net>
70118
70119         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
70120         definition in 2.60+.
70121
70122 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
70123
70124         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
70125         checks.
70126
70127 2006-10-02  Bruno Haible  <bruno@clisp.org>
70128
70129         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
70130         to the AUTOMAKE_OPTIONS.
70131         Reported by Jim Meyering.
70132
70133 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70134
70135         Work around bug in Solaris 10 /proc file system:
70136         /proc/self/fd/NNN/.. isn't the parent directory of
70137         the directory whose file descriptor is NNN.  This needs to
70138         be worked around at run time, not compile time, since a
70139         program might be built on Solaris 8, where things work, and
70140         run on Solaris 10.
70141         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
70142         to use the following interface instead:
70143         (OPENAT_BUFFER_SIZE): New macro.
70144         (openat_proc_name): New function.
70145         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
70146         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
70147         Likewise.
70148         * lib/openat-proc.c: New file.
70149         * modules/openat (Files): Add lib/openat-proc.c.
70150         (Depends-on): Add same-inode, stdbool.
70151         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
70152
70153 2006-09-29  Bruno Haible  <bruno@clisp.org>
70154
70155         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
70156         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
70157         argument. Set stdout_closed before testing for ferror, not after.
70158         (fwriteerror, fwriteerror_no_ebadf): New functions.
70159
70160 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70161
70162         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
70163
70164 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
70165
70166         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
70167         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
70168
70169 2006-09-28  Jim Meyering  <jim@meyering.net>
70170
70171         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
70172         Include <unistd.h>.
70173
70174 2006-09-28  Bruno Haible  <bruno@clisp.org>
70175
70176         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
70177         * modules/linkedhash-list (Depends-on): Likewise.
70178         * modules/rbtreehash-list (Depends-on): Likewise.
70179
70180 2006-09-28  Bruno Haible  <bruno@clisp.org>
70181
70182         * lib/strndup.h: Simplify the redefinition of strndup.
70183         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
70184         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
70185
70186 2006-09-28  Bruno Haible  <bruno@clisp.org>
70187
70188         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
70189         * lib/gl_linkedhash_list.c: Likewise.
70190         * lib/gl_rbtreehash_list.c: Likewise.
70191
70192 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70193
70194         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
70195         getaddrinfo.
70196
70197         * lib/__fpending.h: Don't include <stdio_ext.h> unless
70198         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
70199         it causes <stdio_ext.h> to cause a compile-time error.
70200         Problem reported by Nelson H. F. Beebe.
70201         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
70202         of HAVE_DECL___PENDING.
70203
70204         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
70205         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
70206         declaration.
70207
70208 2006-09-27  Jim Meyering  <jim@meyering.net>
70209
70210         This file could end up with a definition for a function
70211         named __strndup, rather than rpl_strndup on a system with
70212         incomplete weak_alias support.
70213         * lib/strndup.c (strndup): Rename from __strndup.
70214         Remove #defines that used to map __strndup to strndup.
70215         Don't use K&R prototypes.
70216         Remove LIBC-related code, since this file is not sync'd with glibc.
70217         * lib/strndup.h: Revamp, accordingly.
70218         * m4/strndup.m4: Modernize.
70219
70220 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70221
70222         * modules/savewd (Depends-on): Add 'raise'.
70223         * lib/savewd.c: Include <signal.h>, for 'raise'.
70224
70225 2006-09-26  Jim Meyering  <jim@meyering.net>
70226
70227         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
70228         when we detect Darwin 8.7.0's acl_get_file bug.
70229         Rearrange to perform the new (below) run-test while $LIBS
70230         contains any acl-related library.  Set USE_ACL at the end.
70231         (gl_ACL_GET_FILE): New function.
70232
70233 2006-09-26  Eric Blake  <ebb9@byu.net>
70234
70235         * lib/verror.c: Include <config.h> unconditionally.
70236
70237 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
70238
70239         * modules/clock-time (Maintainer): Add self.
70240         * modules/getlogin_r (Depends-on): Add extensions.
70241
70242 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70243
70244         * modules/clock-time: New module.
70245         * modules/nanosleep (Depends-on): Add clock-time.
70246         * modules/gethrxtime (Depends-on): Likewise.
70247         * modules/gettime (Depends-on): Likewise.
70248         * modules/settime (Depends-on): Likewise.
70249
70250         * modules/fts-lgpl: Depend on openat.
70251         * modules/mkancesdirs: Depend on savewd.
70252         * modules/mkdir-p: Likewise.
70253
70254 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70255
70256         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
70257
70258         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
70259         `gl_have_arbitrary_file_name_length_limit' to
70260         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
70261         actually works between configure runs.
70262
70263 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70264             Bruno Haible  <bruno@clisp.org>
70265
70266         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
70267
70268 2006-09-25  Jim Meyering  <jim@meyering.net>
70269
70270         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
70271         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
70272
70273 2006-09-25  Eric Blake  <ebb9@byu.net>
70274
70275         * gnulib-tool (func_import, func_create_testdir): Fix typos in
70276         exec's in 2006-09-18 patch when shuffling fds.
70277
70278 2006-09-25  Bruno Haible  <bruno@clisp.org>
70279
70280         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
70281         Reported by Jim Meyering.
70282
70283 2006-09-24  Jim Meyering  <jim@meyering.net>
70284
70285         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
70286         compare a pointer against a literal "0".  That caused failures with
70287         at least HP-UX's hpcc.
70288
70289 2006-09-22  Simon Josefsson  <jas@extundo.com>
70290
70291         * modules/gc-sha1:
70292         * modules/gc-md4:
70293         * modules/gc-hmac-sha1:
70294         * modules/gc-hmac-md5:
70295         * modules/gc-des:
70296         * modules/gc-arcfour: Distribute more files.
70297
70298 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70299
70300         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
70301         (gl_linked_iterator_from_to): Initialize struct completely.
70302         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
70303         (gl_tree_iterator_from_to): Likewise
70304         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
70305         * lib/gl_array_list.c [lint] (gl_array_iterator)
70306         (gl_array_iterator_from_to): Likewise.
70307         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
70308         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
70309         (gl_carray_iterator_from_to): Likewise.
70310
70311         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
70312         * lib/md4.c (md4_process_block): Remove unused variable.
70313         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
70314         parentheses for clarity.
70315
70316 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70317
70318         * modules/bison-i18n (Depends-on): Add gettext.
70319
70320 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70321
70322         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
70323         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
70324         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
70325         also add missing comma that caused broken test.
70326         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
70327         stdlib.h, for `abort'.
70328         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
70329         variables.
70330         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
70331         include unistd.h if present, for `rmdir'.
70332         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
70333         variables.
70334         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
70335         in the process include standard headers for prototypes.
70336         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
70337         gets declared on GNU/Linux.
70338         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
70339         unistd.h, for `rmdir'.
70340         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
70341
70342         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
70343         always true.
70344         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
70345
70346         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
70347
70348 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70349
70350         * gnulib-tool (func_version): Create output all at once.  This
70351         may help avoid triggering unnecessary SIGPIPEs, and at any
70352         rate it doesn't hurt.
70353
70354 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70355             Bruno Haible  <bruno@clisp.org>
70356
70357         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
70358         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70359         * m4/signed.m4 (bh_C_SIGNED): Likewise.
70360
70361         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
70362         (gl_FUNC_VASPRINTF): Invoke it.
70363
70364 2006-09-22  Bruno Haible  <bruno@clisp.org>
70365
70366         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
70367         getloadavg.c as first argument.
70368
70369 2006-09-22  Bruno Haible  <bruno@clisp.org>
70370
70371         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
70372         at the beginning of the gl_INIT macro.
70373         * modules/getloadavg (configure.ac): Pass $gl_source_base to
70374         gl_GETLOADAVG.
70375
70376 2006-09-22  Bruno Haible  <bruno@clisp.org>
70377
70378         * gnulib-tool (func_create_megatestdir): Don't include the config-h
70379         module.
70380         Suggested by Ralf Wildenhues.
70381
70382 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70383
70384         Import this patch from libc:
70385
70386         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
70387
70388         * lib/regex_internal.c (re_string_reconstruct): Handle
70389         offset < pstr->valid_raw_len && pstr->offsets_needed case.
70390         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
70391         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
70392         re_string_context_at.
70393
70394         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
70395         now requires it.
70396         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
70397         gl_REGEX now does it for us.
70398         (gl_REGEX): Add test taken from
70399         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
70400
70401         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
70402         Check that large offsets work.  Modernize Autoconf usages.
70403         Prefer "yes" to mean a good thing rather than a bad.
70404         Don't put "#define mkstemp" in config.h, as this might interfere
70405         with standard system headers that "#define mkstemp mkstemp64".
70406
70407         * modules/mkstemp (Depends-on): Add extensions, so that
70408         mkstemp is visible on some platforms.
70409         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
70410         (Include): Change to "mkstemp.h" from <stdlib.h>.
70411         (Files): Add mkstemp.h.
70412
70413         * lib/mkstemp.h: New file, since some standard headers
70414         #define mkstemp.
70415         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
70416         Include "mkstemp.h".
70417         Make the _LIBC code resemble glibc original more,
70418         e.g., use K&R style.
70419         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
70420         (mkstemp): Remove, since mkstemp.h does this for us.
70421         * lib/stdlib--.h: Include mkstemp.h.
70422
70423         Import this patch from libc:
70424
70425         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
70426
70427         * lib/tempname.c (__gen_tempname): Change attempts_min
70428         into a macro.  Use preprocessor to decide how to initialize
70429         attempts [Coverity CID 67].
70430
70431 2006-09-20  Bruno Haible  <bruno@clisp.org>
70432
70433         * lib/mkdtemp.c: Import from libc.
70434         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
70435                 * sysdeps/posix/tempname.c (__gen_tempname): Change
70436                 attempts_min into a macro.  Use preprocessor to decide how to
70437                 initialize attempts [Coverity CID 67].
70438         2001-11-27  Paul Eggert  <eggert@twinsun.com>
70439                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
70440                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
70441
70442 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70443
70444         * gnulib-tool (func_exit): New function, to allow to pass the
70445         exit status portably through the trap.  Use everywhere.
70446         (--help, --version): Signal a write error.
70447         (trap): catch SIGPIPE, for write errors.
70448         Exit at the end of the trap, with the correct exit status.
70449
70450 2006-09-19  Karl Berry  <karl@gnu.org>
70451
70452         * doc/gnulib.texi: note about the license texinfo files.
70453
70454 2006-09-19  Eric Blake  <ebb9@byu.net>
70455
70456         * gnulib-tool: Avoid space-tab.
70457
70458 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
70459
70460         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
70461         that prevented coreutils 6.1 from building.  Problem reported
70462         by Petter Reinholdtsen.
70463
70464 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
70465
70466         * gnulib-tool (avoidlist): Fix typo that broke options like
70467         --avoid=lock that are used by coreutils bootstrap.
70468
70469 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
70470
70471         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
70472         more systematically.
70473
70474 2006-09-18  Jim Meyering  <jim@meyering.net>
70475
70476         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
70477
70478 2006-09-18  Bruno Haible  <bruno@clisp.org>
70479
70480         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
70481
70482 2006-09-18  Bruno Haible  <bruno@clisp.org>
70483
70484         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
70485         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
70486         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
70487         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
70488         * m4/gettext.m4: Require autoconf >= 2.52.
70489         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
70490         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
70491         of gl_cv_header_inttypes_h.
70492
70493 2006-09-18  Bruno Haible  <bruno@clisp.org>
70494
70495         * lib/javaversion.c: Include configmake.h.
70496
70497 2006-09-18  Bruno Haible  <bruno@clisp.org>
70498
70499         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
70500         avoid that the while loops be executed in a subshell.
70501
70502 2006-09-18  Bruno Haible  <bruno@clisp.org>
70503
70504         * MODULES.html.sh (func_module): Break long lines.
70505         Suggested by Bruce Korb <bkorb@gnu.org>.
70506
70507 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70508
70509         Speed up by a factor of 1.12.
70510         * gnulib-tool (nl): New variable.
70511         (func_import): Rewrite include directive extraction to only read each
70512         directive once.
70513
70514 2006-09-17  Bruno Haible  <bruno@clisp.org>
70515
70516         * modules/javaversion (Makefile.am): Remove DEFS setting.
70517         (Depends-on): Add configmake, for PKGDATADIR definition.
70518
70519 2006-09-17  Bruno Haible  <bruno@clisp.org>
70520
70521         * gnulib-tool (func_create_testdir): Rewrite all files at once.
70522
70523 2006-09-17  Bruno Haible  <bruno@clisp.org>
70524
70525         * gnulib-tool (func_append): New function, stolen from libtool.m4.
70526         (func_modules_transitive_closure, func_modules_add_dummy,
70527         func_modules_to_filelist, func_import, func_create_testdir,
70528         func_create_megatestdir, ...): Use it wherever possible.
70529         Suggested by Ralf Wildenhues.
70530
70531 2006-09-16  Karl Berry  <karl@gnu.org>
70532
70533         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
70534         to avoid sectioning errors.
70535         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
70536         [ifinfo]: blank line after @center-ed titles.
70537         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
70538         Spell FSF address consistently with others.
70539         (These changes approved by rms.)
70540
70541 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70542
70543         Speed up by a factor of 1.61.
70544         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
70545         already checked module names again.
70546
70547 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70548
70549         Speed up by a factor of 1.13.
70550         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
70551         for new_files, and the input to func_add_or_update.
70552
70553 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70554
70555         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
70556         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
70557
70558 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70559
70560         * modules/mkancesdirs (Depends-on): Add fcntl.
70561         * modules/savewd: New file.
70562         * MODULES.html.sh (File system functions): Add savewd.
70563
70564         * modules/configmake (Makefile.am): Add support for the
70565         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
70566
70567 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70568
70569         * m4/savewd.m4: New file.
70570
70571 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70572
70573         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
70574         (dirchownmod): New arg FD.  All callers changed.
70575         Use FD rather than opening the directory ourself, as opening is
70576         now the caller's responsibility.
70577         * lib/dirchownmod.h: Likewise.
70578         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
70579         hosts that require <sys/types.h> before <sys/stat.h>.  Include
70580         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
70581         (test_dir): Remove.
70582         (mkancesdirs): Return length of prefix of FILE that has already
70583         been made, or -2 if there is a child doing the work.  Redo
70584         algorithm so that it is O(N) rather than O(N**2).  Optimize away
70585         ".", and treat ".." specially since it might stray back into
70586         already-created areas.  Use a subprocess if necessary.  New arg
70587         WD; all users changed.  MAKE_DIR function should now return 1
70588         if it creates a directory that is not readable.  Return -2 if
70589         a child process is spun off.
70590         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
70591         Adjust signature to match code.
70592         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
70593         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
70594         all users changed.
70595         * lib/savewd.c, lib/savewd.h: New files.
70596
70597 2006-09-15  Jim Meyering  <jim@meyering.net>
70598
70599         * modules/rename-dest-slash: New module.
70600         * MODULES.html.sh (posix_compat): Add it here.
70601
70602         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
70603
70604 2006-09-15  Jim Meyering  <jim@meyering.net>
70605
70606         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
70607         file.
70608
70609         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
70610
70611 2006-09-15  Jim Meyering  <jim@meyering.net>
70612
70613         * lib/rename-dest-slash.c (has_trailing_slash): Use
70614         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
70615         (rpl_rename_dest_slash): Perform the cheaper trailing slash
70616         test before testing whether SRC is a directory.
70617         Suggestions from Bruno Haible.
70618
70619         Avoid a warning about an unused variable.
70620         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
70621         into the #ifdef block where it's used.
70622
70623         * lib/rename-dest-slash.c: New file.
70624
70625 2006-09-14  Bruno Haible  <bruno@clisp.org>
70626
70627         * lib/allocsa.c: Include <config.h> unconditionally.
70628         * lib/asnprintf.c: Likewise.
70629         * lib/asprintf.c: Likewise.
70630         * lib/c-strcasecmp.c: Likewise.
70631         * lib/c-strcasestr.c: Likewise.
70632         * lib/c-strncasecmp.c: Likewise.
70633         * lib/c-strstr.c: Likewise.
70634         * lib/classpath.c: Likewise.
70635         * lib/clean-temp.c: Likewise.
70636         * lib/concatpath.c: Likewise.
70637         * lib/copy-file.c: Likewise.
70638         * lib/csharpcomp.c: Likewise.
70639         * lib/csharpexec.c: Likewise.
70640         * lib/execute.c: Likewise.
70641         * lib/fatal-signal.c: Likewise.
70642         * lib/findprog.c: Likewise.
70643         * lib/fwriteerror.c: Likewise.
70644         * lib/gl_array_list.c: Likewise.
70645         * lib/gl_array_oset.c: Likewise.
70646         * lib/gl_avltree_list.c: Likewise.
70647         * lib/gl_avltree_oset.c: Likewise.
70648         * lib/gl_avltreehash_list.c: Likewise.
70649         * lib/gl_carray_list.c: Likewise.
70650         * lib/gl_linked_list.c: Likewise.
70651         * lib/gl_linkedhash_list.c: Likewise.
70652         * lib/gl_list.c: Likewise.
70653         * lib/gl_oset.c: Likewise.
70654         * lib/gl_rbtree_list.c: Likewise.
70655         * lib/gl_rbtree_oset.c: Likewise.
70656         * lib/gl_rbtreehash_list.c: Likewise.
70657         * lib/imaxabs.c: Likewise.
70658         * lib/imaxdiv.c: Likewise.
70659         * lib/javacomp.c: Likewise.
70660         * lib/javaexec.c: Likewise.
70661         * lib/javaversion.c: Likewise.
70662         * lib/linebreak.c: Likewise.
70663         * lib/localcharset.c: Likewise.
70664         * lib/lock.c: Likewise.
70665         * lib/mbchar.c: Likewise.
70666         * lib/mbswidth.c: Likewise.
70667         * lib/mkdtemp.c: Likewise.
70668         * lib/pipe.c: Likewise.
70669         * lib/printf-args.c: Likewise.
70670         * lib/printf-parse.c: Likewise.
70671         * lib/progname.c: Likewise.
70672         * lib/progreloc.c: Likewise.
70673         * lib/readlink.c: Likewise.
70674         * lib/sh-quote.c: Likewise.
70675         * lib/stpcpy.c: Likewise.
70676         * lib/stpncpy.c: Likewise.
70677         * lib/strcasecmp.c: Likewise.
70678         * lib/strcasestr.c: Likewise.
70679         * lib/strcspn.c: Likewise.
70680         * lib/striconv.c: Likewise.
70681         * lib/strncasecmp.c: Likewise.
70682         * lib/strnlen1.c: Likewise.
70683         * lib/strstr.c: Likewise.
70684         * lib/strtok_r.c: Likewise.
70685         * lib/tls.c: Likewise.
70686         * lib/tmpdir.c: Likewise.
70687         * lib/unicodeio.c: Likewise.
70688         * lib/unsetenv.c: Likewise.
70689         * lib/vasnprintf.c: Likewise.
70690         * lib/vasprintf.c: Likewise.
70691         * lib/wait-process.c: Likewise.
70692         * lib/xallocsa.c: Likewise.
70693         * lib/xsetenv.c: Likewise.
70694         * lib/xstriconv.c: Likewise.
70695
70696 2006-09-13  Simon Josefsson  <jas@extundo.com>
70697
70698         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
70699         that internally, suggested by Ralf Wildenhues
70700         <Ralf.Wildenhues@gmx.de>.
70701
70702 2006-09-13  Simon Josefsson  <jas@extundo.com>
70703
70704         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
70705         @LIBOBJS@.
70706         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70707
70708 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70709
70710         * lib/_fpending.c: Include <config.h> unconditionally, since we no
70711         longer worry about uses that don't define HAVE_CONFIG_H.
70712         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
70713         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
70714         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
70715         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
70716         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
70717         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
70718         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
70719         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
70720         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
70721         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
70722         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
70723         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
70724         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
70725         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
70726         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
70727         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
70728         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
70729         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
70730         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
70731         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
70732         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
70733         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
70734         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
70735         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
70736         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
70737         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
70738         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
70739         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
70740         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
70741         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
70742         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
70743         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
70744         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
70745         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
70746         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
70747         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
70748         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
70749         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
70750         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
70751         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
70752         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
70753         Likewise.
70754
70755 2006-09-13  Eric Blake  <ebb9@byu.net>
70756
70757         * lib/getopt.c: Fix typo in last commit.
70758
70759 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70760
70761         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
70762         dgettext.
70763
70764 2006-09-12  Jim Meyering  <jim@meyering.net>
70765
70766         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
70767         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
70768         Reported by Nelson H. F. Beebe.
70769
70770 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70771
70772         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
70773         program_invocation_name and program_invocation_short_name are
70774         initialized.
70775         * lib/argp-namefrob.h: Move declarations of program_invocation_name
70776         and program_invocation_short_name to argp.h, so they are visible
70777         to user programs.
70778         * lib/argp.h: Likewise
70779
70780 2006-09-10  Bruno Haible  <bruno@clisp.org>
70781
70782         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70783         m4/inttypes_h.m4, m4/uintmax_t.m4.
70784
70785 2006-09-10  Bruno Haible  <bruno@clisp.org>
70786
70787         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
70788         gl_AC_TYPE_UINTMAX_T.
70789
70790 2006-09-10  Bruno Haible  <bruno@clisp.org>
70791
70792         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
70793
70794 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70795
70796         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
70797         convention.  Text proposed by Bruno Haible.
70798         (struct argp_option): Document the use of N_() wrappers.
70799
70800         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
70801         '\v', and translate the two parts separately, instead of feeding
70802         the whole string to gettext.  This allows to exclude
70803         '\v' from the strings visible to the translator by writing doc
70804         strings as N_("..") "\v" N_("..").
70805
70806 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
70807
70808         * config/srclist.txt: Undo latest change; the bug was fixed.
70809
70810 2006-09-09  Bruno Haible  <bruno@clisp.org>
70811
70812         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
70813         assignments if building a library without libtool.
70814         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
70815         in func_emit_lib_Makefile_am.
70816         (func_import): When building a static library libfoo.a, arrange to
70817         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
70818         (func_create_testdir): Likewise.
70819         * modules/gc (configure.ac, Makefile.am): If building statically,
70820         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
70821         * modules/iconvme (configure.ac, Makefile.am): Likewise.
70822         * modules/striconv (configure.ac, Makefile.am): Likewise.
70823         Based on a suggestion by Ralf Wildenhues.
70824
70825 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70826
70827         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70828         Check for unistd.h too, since Autoconf doesn't assume POSIX.
70829         Also:
70830
70831         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70832         Add year_2050_test to catch glibc bug 2821
70833         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
70834
70835         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70836         Prefer #ifdef to #if.
70837
70838         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
70839         Return from 'main' instead of calling 'exit'.
70840
70841 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70842
70843         * lib/mktime.c (guess_time_tm): Fix bug where mktime
70844         returned the maximum time_t value rather than (time_t) -1.
70845         Problem originally reported by William Bardwell
70846         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
70847
70848         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
70849         Moved to here ...
70850         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
70851         ... from here.
70852
70853 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70854
70855         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
70856         2821 is fixed.
70857
70858 2006-09-08  Jim Meyering  <jim@meyering.net>
70859
70860         Don't make generated files read-only.  That would bother too many
70861         people.  However, do retain the ability to work when targets are
70862         read-only: remove the destination and temporary files before writing
70863         them (when generated via sed or echo), or by using the -f option for
70864         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
70865         * modules/alloca-opt, modules/argz, modules/arpa_inet:
70866         * modules/byteswap, modules/configmake, modules/fcntl:
70867         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
70868         * modules/localcharset, modules/netinet_in, modules/poll:
70869         * modules/stdbool, modules/stdint, modules/sys_select:
70870         * modules/sys_socket, modules/sys_stat, modules/sysexits:
70871
70872 2006-09-08  Jim Meyering  <jim@meyering.net>
70873
70874         Avoid new build failure on FreeBSD 6.0.
70875         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
70876         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
70877         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
70878
70879 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70880
70881         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
70882
70883 2006-09-07  Jim Meyering  <jim@meyering.net>
70884
70885         Fix global typo in last change: use chmod u-w, not chmod u-x.
70886         Spotted by Paul Eggert and Bruce Korb.
70887         * modules/alloca-opt, modules/argz, modules/arpa_inet:
70888         * modules/byteswap, modules/configmake, modules/fcntl:
70889         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
70890         * modules/localcharset, modules/netinet_in, modules/poll:
70891         * modules/stdbool, modules/stdint, modules/sys_select:
70892         * modules/sys_socket, modules/sys_stat, modules/sysexits:
70893
70894 2006-09-06  Jim Meyering  <jim@meyering.net>
70895
70896         Make generated files be read-only.
70897         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
70898         Ensure that each generated file is now read-only.
70899         * modules/argz: Likewise.
70900         * modules/arpa_inet: Likewise.
70901         * modules/byteswap: Likewise.
70902         * modules/configmake: Likewise.
70903         * modules/fcntl: Likewise.
70904         * modules/fnmatch: Likewise.
70905         * modules/getopt: Likewise.
70906         * modules/glob: Likewise.
70907         * modules/inttypes: Likewise.
70908         * modules/netinet_in: Likewise.
70909         * modules/poll: Likewise.
70910         * modules/stdbool: Likewise.
70911         * modules/stdint: Likewise.
70912         * modules/sys_select: Likewise.
70913         * modules/sys_socket: Likewise.
70914         * modules/sys_stat: Likewise.
70915         * modules/sysexits: Likewise.
70916         * modules/localcharset: Same as above, but continue using temporary
70917         file named "t-$@" (why different?) rather than the "$@-t" used
70918         everywhere else.
70919
70920         * modules/sysexits (Makefile.am): Replace literal occurrences
70921         of "sysexit.h" more readable, and more consistent, "$@".
70922
70923 2006-09-06  Bruno Haible  <bruno@clisp.org>
70924
70925         * modules/striconv: New file.
70926         * modules/xstriconv: New file.
70927         * MODULES.html.sh (Internationalization functions): Add striconv,
70928         xstriconv.
70929
70930 2006-09-06  Bruno Haible  <bruno@clisp.org>
70931
70932         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
70933         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
70934         not using libtool correctly.
70935
70936 2006-09-06  Bruno Haible  <bruno@clisp.org>
70937
70938         * lib/striconv.h: New file.
70939         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
70940         iconvstring.c.
70941         * lib/xstriconv.h: New file.
70942         * lib/xstriconv.c: New file.
70943
70944 2006-09-06  Bruno Haible  <bruno@clisp.org>
70945
70946         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70947         lib_..._LDFLAGS.
70948
70949 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70950
70951         * lib/argz_.h: Sync from Libtool.
70952
70953         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
70954                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70955
70956         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
70957
70958 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
70959
70960         * modules/trim: New file.
70961
70962 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
70963
70964         * lib/trim.h: New file.
70965         * lib/trim.c: New file.
70966
70967 2006-09-05  Bruno Haible  <bruno@clisp.org>
70968
70969         * MODULES.html.sh (String handling): Add trim.
70970
70971 2006-09-04  Karl Berry  <karl@gnu.org>
70972
70973         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
70974         until next release.
70975
70976 2006-09-03  Bruno Haible  <bruno@clisp.org>
70977
70978         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
70979         correctly.
70980
70981 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70982
70983         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
70984         not gl_GETLOADAVG.  Omit unneeded semicolons.
70985         Problems reported by Ralf Wildenhues in
70986         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
70987         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
70988         at the end, which is the usual gnulib style.
70989
70990         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
70991         of doing all the work ourselves.
70992         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
70993         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
70994
70995 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70996
70997         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
70998         Problem reported by Ralf Wildenhues in
70999         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
71000
71001         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
71002         HAVE_STRUCT_STATFS_F_FSTYPENAME.
71003
71004 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71005
71006         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
71007         yesterday's patch by changing test -n to test -z.
71008
71009 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71010
71011         * modules/getloadavg (Files): Add m4/getloadavg.m4.
71012         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
71013         the former is now obsolescent.
71014
71015         * modules/chdir-long (Depends-on): Add fcntl.
71016
71017 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71018
71019         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
71020         obsolescent, and programs should use gnulib instead.
71021         * m4/getloadavg.m4: New file, with contents taken from Autoconf
71022         but with prefixes changed.
71023
71024 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71025
71026         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
71027         or stdbool.h, because they might not exist while configuring.
71028
71029         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
71030         Don't include unistd.h or limits.h; not needed, since chdir-long.h
71031         does that for us.
71032         (O_DIRECTORY): Remove.
71033
71034 2006-08-31  Eric Blake  <ebb9@byu.net>
71035
71036         * gnulib-tool: Don't let emacs change spaces to TAB.
71037
71038 2006-08-31  Bruno Haible  <bruno@clisp.org>
71039
71040         * gnulib-tool: When calling func_import more than once, do it in a
71041         subshell.
71042         Reported by Eric Blake <ebb9@byu.net>.
71043
71044 2006-08-31  Bruno Haible  <bruno@clisp.org>
71045
71046         * gnulib-tool (nl): Remove variable.
71047         (sed_transform_lib_file): Use more robust test for config-h module.
71048         (func_import): Fix typo in 2006-08-25 patch.
71049
71050 2006-08-31  Bruno Haible  <bruno@clisp.org>
71051
71052         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
71053         specified, augment Makefile.am variables instead of assigning them.
71054
71055 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71056
71057         Work around a bug in both the Linux and SunOS 64-bit kernels:
71058         nanosleep mishandles sleeps for longer than 2**31 seconds.
71059         Problem reported by Frank v Waveren in
71060         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
71061         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
71062         Check for nanosleep bug.
71063         (LIB_NANOSLEEP): Append clock_gettime library if needed.
71064
71065 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71066
71067         Work around a bug in both the Linux and SunOS 64-bit kernels:
71068         nanosleep mishandles sleeps for longer than 2**31 seconds.
71069         Problem reported by Frank v Waveren in
71070         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
71071         * lib/nanosleep.c (BILLION): New constant.
71072         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
71073         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
71074         implementation.
71075
71076 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71077
71078         * modules/nanosleep (Depends-on): Add gettime.
71079
71080 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
71081         and Simon Josefsson  <jas@extundo.com>
71082         and Oskar Liljeblad  <oskar@osk.mine.nu>
71083
71084         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
71085         * gnulib-tool (func_import): New license type 'unmodifiable license
71086         text'.
71087         * modules/fdl: Use it.  Longer description.
71088         * module/gpl, module/lgpl: New files.
71089
71090 2006-08-30  Jim Meyering  <jim@meyering.net>
71091
71092         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
71093         shadowing the parameter.
71094
71095 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71096
71097         Sync from Libtool:
71098
71099         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71100
71101         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
71102         sharing with gnulib.  Report by Eric Blake.
71103
71104 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71105
71106         * modules/isapipe: New file.
71107         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
71108
71109 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71110
71111         * modules/configmake (Makefile.am): Add a comment, and omit
71112         the CONFIGMAKE_ prefix from generated macro names.  Suggested
71113         by Bruno Haible.
71114
71115 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71116
71117         * m4/isapipe.m4: New file.
71118
71119 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
71120
71121         * lib/isapipe.c, lib/isapipe.h: New files.
71122
71123 2006-08-29  Jim Meyering  <jim@meyering.net>
71124
71125         * modules/configmake (Makefile.am): Make configmake.h depend on
71126         Makefile.  Otherwise, a stale configmake.h could hang around.
71127
71128 2006-08-29  Eric Blake  <ebb9@byu.net>
71129
71130         * lib/error.c (error_at_line, print_errno_message): Match libc, after
71131         resolution of upstream bug 3044.
71132
71133 2006-08-29  Bruno Haible  <bruno@clisp.org>
71134
71135         * modules/localcharset (Depends-on): Add configmake.
71136         (Makefile.am): Remove setting of LIBDIR through DEFS.
71137
71138 2006-08-29  Bruno Haible  <bruno@clisp.org>
71139
71140         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
71141         defined.
71142
71143 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71144
71145         * modules/fcntl: New file.
71146         * modules/chdir-safer (Depends-on): Add fcntl.
71147         * modules/fts: Likewise.
71148         * modules/mkdir-p: Likewise.
71149
71150         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
71151         This undoes the most recent change, since we're now addressing the
71152         problem in a different way.
71153
71154         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
71155         into output, since the output might be called Makefile.am even
71156         if $makefile_name is something different.
71157         (func_import): Use $makefile_am rather than
71158         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
71159         empty.
71160
71161         * modules/inttypes (Files): Add m4/inttypes-h.m4.
71162
71163 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71164
71165         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
71166         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
71167         recent change to stdint.m4, since we're now addressing the problem in a
71168         different way.
71169
71170 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71171
71172         * m4/fcntl_h.m4: New file.
71173
71174 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
71175
71176         * lib/fcntl_.h: New file.
71177         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
71178         the fcntl module.
71179         * lib/dirchownmod.c: Likewise.
71180         * lib/fts.c: Likewise.
71181
71182         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
71183         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
71184         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
71185         just before including <inttypes.h>, to avoid circular inclusion.
71186
71187 2006-08-28  Jim Meyering  <jim@meyering.net>
71188
71189         * doc/visibility.texi: Actually read and correct the grammar of the
71190         sentence affected by yesterday's change.
71191
71192 2006-08-28  Eric Blake  <ebb9@byu.net>
71193
71194         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
71195         needs wrapper.
71196
71197 2006-08-28  Eric Blake  <ebb9@byu.net>
71198
71199         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
71200
71201 2006-08-28  Eric Blake  <ebb9@byu.net>
71202
71203         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
71204
71205 2006-08-28  Bruno Haible  <bruno@clisp.org>
71206
71207         * modules/c-strstr: New file, from GNU gettext.
71208         * MODULES.html.sh (String handling): Add c-strstr.
71209
71210 2006-08-28  Bruno Haible  <bruno@clisp.org>
71211
71212         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
71213         macros.
71214         Reported by Eric Blake.
71215
71216 2006-08-28  Bruno Haible  <bruno@clisp.org>
71217
71218         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
71219         (VASNPRINTF): Return a string of length > INT_MAX without failing.
71220         * lib/vasprintf.c: Include errno.h, limits.h.
71221         (EOVERFLOW): New fallback definition.
71222         (vasprintf): Test here whether the string length is > INT_MAX.
71223         * lib/vsnprintf.c: Include errno.h, limits.h.
71224         (EOVERFLOW): New fallback definition.
71225         (vsnprintf): Fix bug when generated string was too long for the buffer.
71226         Test here whether the string length is > INT_MAX.
71227
71228 2006-08-28  Bruno Haible  <bruno@clisp.org>
71229
71230         * lib/inttypes_.h (SCNX*): Remove definitions.
71231         Reported by Eric Blake.
71232
71233 2006-08-28  Bruno Haible  <bruno@clisp.org>
71234
71235         * lib/c-strstr.h: New file, from GNU gettext.
71236         * lib/c-strstr.c: New file, from GNU gettext.
71237
71238 2006-08-28  Bruno Haible  <bruno@clisp.org>
71239
71240         * gnulib-tool: Reorder some statements.
71241
71242 2006-08-28  Bruno Haible  <bruno@clisp.org>
71243
71244         * gnulib-tool: New option --makefile-name.
71245         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
71246         $makefile_name.
71247         (func_import): Write $makefile_name to the cache file, and read it from
71248         there unless explicitly specified. Use $makefile_name as file name
71249         instead of Makefile.am. Adjust the recommendations accordingly.
71250
71251 2006-08-28  Bruno Haible  <bruno@clisp.org>
71252
71253         * gnulib-tool (func_verify_module): Check against misapplying patch.
71254
71255 2006-08-28  Bruno Haible  <bruno@clisp.org>
71256
71257         * gnulib-tool (func_relativize, func_relconcat): New functions.
71258         Give an error if --local-dir is given with --update.
71259         Remove trailing slashes from $local_gnulib_dir.
71260         (func_import): Store the relativized $local_gnulib_dir in
71261         gnulib-cache.m4, and read it from there if not specified explicitly.
71262
71263 2006-08-28  Bruno Haible  <bruno@clisp.org>
71264
71265         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
71266         is the current directory. Respect also $local_gnulib_dir.
71267
71268 2006-08-28  Bruno Haible  <bruno@clisp.org>
71269             Simon Josefsson  <jas@extundo.com>
71270
71271         BeOS portability.
71272         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
71273
71274 2006-08-27  Jim Meyering  <jim@meyering.net>
71275
71276         * doc/visibility.texi: Remove duplicate word: "pointer".
71277
71278 2006-08-26  Bruno Haible  <bruno@clisp.org>
71279
71280         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
71281         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
71282         (Makefile.am): Create inttypes.h from inttypes_.h.
71283         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
71284
71285         * modules/imaxabs: New file.
71286
71287         * modules/imaxdiv: New file.
71288
71289 2006-08-26  Bruno Haible  <bruno@clisp.org>
71290
71291         * m4/inttypes.m4: New file.
71292         * m4/_inttypes_h.m4: Remove file.
71293         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
71294         PRI_MACROS_BROKEN.
71295         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
71296
71297         * m4/imaxabs.m4: New file.
71298
71299         * m4/imaxdiv.m4: New file.
71300
71301 2006-08-26  Bruno Haible  <bruno@clisp.org>
71302
71303         * lib/inttypes_.h: New file.
71304         * lib/inttypes.h: Remove file.
71305         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
71306
71307         * lib/imaxabs.c: New file.
71308
71309         * lib/imaxdiv.c: New file.
71310
71311 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71312
71313         New config-h module, so that "make" output needn't be cluttered
71314         by -DHAVE_CONFIG_H.
71315         * MODULES.html.sh (Support for building libraries and executables):
71316         Add config-h.
71317         * modules/config-h: New file.
71318         * gnulib-tool (nl, sed_transform_lib_file): New vars.
71319         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
71320         the config-h module is used.
71321
71322         New configmake module, so that "make" output needn't be cluttered
71323         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
71324         * MODULES.html.sh (Support for building libraries and executables):
71325         Add configmake.
71326         * modules/configmake: New file.
71327
71328 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71329
71330         * m4/config-h.m4: New file.
71331
71332 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71333
71334         * config/srclist.txt: Add elisp-comp.
71335
71336 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71337
71338         * MODULES.html.sh (Support for building libraries and executables):
71339         Add elisp-comp.
71340         * build-aux/elisp-comp: New file.
71341         * modules/elisp-comp: New file.
71342
71343 2006-08-24  Bruno Haible  <bruno@clisp.org>
71344
71345         * gnulib-tool (func_create_testdir): Use non-default values of
71346         sourcebase and m4base.
71347
71348 2006-08-24  Bruno Haible  <bruno@clisp.org>
71349
71350         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
71351         HTML structure.
71352
71353 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71354
71355         * modules/openat (Depends-on): Add lchown.
71356
71357 2006-08-23  Bruno Haible  <bruno@clisp.org>
71358
71359         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
71360         of gl_LOCK_EARLY instead of gl_LOCK.
71361
71362 2006-08-23  Bruno Haible  <bruno@clisp.org>
71363
71364         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
71365         on OSF/1 to no.
71366         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
71367
71368 2006-08-23  Bruno Haible  <bruno@clisp.org>
71369
71370         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
71371         as unusable.
71372
71373         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
71374         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
71375         (gl_LOCK): New macro.
71376
71377 2006-08-22  Simon Josefsson  <jas@extundo.com>
71378
71379         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
71380         to md5 module.
71381
71382 2006-08-22  Simon Josefsson  <jas@extundo.com>
71383
71384         * MODULES.html.sh: Add "Support for maintaining and release
71385         projects".
71386
71387         * build-aux/gnupload: New file, from coreutils.
71388
71389 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71390
71391         Avoid the need for AC_LIBSOURCES in m4 macros.
71392         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
71393         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
71394         * modules/check-version (EXTRA_DIST): Add check-version.h.
71395         * modules/crc (EXTRA_DIST): Add crc.h.
71396         * modules/des (EXTRA_DIST): Add des.h.
71397         * modules/gc (EXTRA_DIST): Add gc.h.
71398         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
71399         * modules/getline (EXTRA_DIST): Add getline.h.
71400         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
71401         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
71402         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
71403         * modules/md2 (EXTRA_DIST): Add md2.h.
71404         * modules/md4 (EXTRA_DIST): Add md4.h.
71405         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
71406         * modules/read-file (EXTRA_DIST): Add read-file.h.
71407         * modules/readline (EXTRA_DIST): Add readline.h.
71408         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
71409         rijndael-api-fst.h.
71410
71411 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71412
71413         * m4/rijndael.m4 (gl_ARCFOUR):
71414         * m4/arctwo.m4 (gl_ARCTWO):
71415         * m4/check-version.m4 (gl_CHECK_VERSION):
71416         * m4/crc.m4 (gl_CRC):
71417         * m4/des.m4 (gl_DES):
71418         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
71419         * m4/gc.m4 (gl_GC):
71420         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
71421         * m4/getline.m4 (gl_FUNC_GETLINE):
71422         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
71423         * m4/hmac-md5.m4 (gl_HMAC_MD5):
71424         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
71425         * m4/md2.m4 (gl_MD2):
71426         * m4/md4.m4 (gl_MD4):
71427         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
71428         * m4/read-file.m4 (gl_FUNC_READ_FILE):
71429         * m4/readline.m4 (gl_FUNC_READLINE):
71430         * m4/rijndael.m4 (gl_RIJNDAEL):
71431         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
71432         to get the necessary .h files and whatnot.
71433
71434 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71435
71436         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
71437         gnulib rather than the other way around.
71438         * config/srclistvars.sh (COREUTILS): Remove.
71439
71440 2006-08-22  Jim Meyering  <jim@meyering.net>
71441
71442         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
71443
71444         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
71445
71446 2006-08-22  Eric Blake  <ebb9@byu.net>
71447
71448         * modules/regexprops-generic: New file.
71449         * MODULES.html.sh (Support for building documentation): List it.
71450
71451 2006-08-22  Eric Blake  <ebb9@byu.net>
71452
71453         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
71454         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
71455         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
71456         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
71457
71458 2006-08-22  Bruno Haible  <bruno@clisp.org>
71459
71460         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
71461         and lib_LTLIBRARIES like the other lib_* variables.
71462
71463 2006-08-22  Bruno Haible  <bruno@clisp.org>
71464
71465         * build-aux/x-to-1.in: New file, from GNU gettext.
71466
71467 2006-08-22  Bruno Haible  <bruno@clisp.org>
71468
71469         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
71470         <utmpx.h> exists.
71471
71472 2006-08-22  Bruno Haible  <bruno@clisp.org>
71473
71474         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
71475         <utmpx.h> exists.
71476
71477 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71478
71479         BeOS portability.
71480         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
71481         exist.
71482         Problem reported by Bruno Haible.
71483
71484 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71485
71486         Avoid the need for AC_LIBSOURCES in m4 macros.
71487         * modules/acl (EXTRA_DIST): Add acl.h.
71488         * modules/argmatch (Files): Add m4/argmatch.m4.
71489         (configure.ac): Add gl_ARGMATCH.
71490         (EXTRA_DIST): Renamed from lib_SOURCES, for
71491         consistency with the other modules.  Remove argmatch.c.
71492         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
71493         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
71494         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
71495         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
71496         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
71497         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
71498         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
71499         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
71500         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
71501         * modules/closeout (EXTRA_DIST): Add closeout.h.
71502         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
71503         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
71504         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
71505         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
71506         dirname.h; remove basename.c and stripslash.c.
71507         * modules/exclude (EXTRA_DIST): Add exclude.h.
71508         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
71509         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
71510         * modules/file-type (EXTRA_DIST): Add file-type.h.
71511         * modules/filemode (EXTRA_DIST): Add filemode.h.
71512         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
71513         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
71514         * modules/fpending (EXTRA_DIST): Add __fpending.h.
71515         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
71516         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
71517         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
71518         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
71519         * modules/getdate (EXTRA_DIST): Add getdate.c.
71520         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
71521         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
71522         * modules/getpass (EXTRA_DIST): Add getpass.h.
71523         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
71524         * modules/group-member (EXTRA_DIST): Add group-member.h.
71525         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
71526         * modules/hash (EXTRA_DIST): Add hash.h.
71527         * modules/human (EXTRA_DIST): Add human.h.
71528         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
71529         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
71530         * modules/lchown (EXTRA_DIST): Add lchown.h.
71531         * modules/long-options (EXTRA_DIST): Add long-options.h.
71532         * modules/lstat (EXTRA_DIST): Add lstat.h.
71533         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
71534         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
71535         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
71536         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
71537         * modules/memxor (EXTRA_DIST): Add memxor.h.
71538         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
71539         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
71540         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
71541         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
71542         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
71543         * modules/physmem (EXTRA_DIST): Add physmem.h.
71544         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
71545         * modules/posixver (EXTRA_DIST): Add posixver.h.
71546         * modules/quote (EXTRA_DIST): Add quote.h.
71547         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
71548         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
71549         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
71550         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
71551         regex_internal.h regexec.c.
71552         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
71553         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
71554         * modules/same (EXTRA_DIST): Add same.h.
71555         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
71556         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
71557         * modules/savedir (EXTRA_DIST): Add savedir.h.
71558         * modules/sha1 (EXTRA_DIST): Add sha1.h.
71559         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
71560         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
71561         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
71562         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
71563         * modules/strdup (EXTRA_DIST): Add strdup.h.
71564         * modules/strftime (EXTRA_DIST): Add strftime.h.
71565         * modules/strndup (EXTRA_DIST): Add strndup.h.
71566         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
71567         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
71568         * modules/time_r (EXTRA_DIST): Add time_r.h.
71569         * modules/timespec (EXTRA_DIST): Add timespec.h.
71570         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
71571         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
71572         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
71573         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
71574         * modules/userspec (EXTRA_DIST): Add userspec.h.
71575         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
71576         * modules/utimens (EXTRA_DIST): Add utimens.h.
71577         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
71578         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
71579         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
71580         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
71581         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
71582         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
71583         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
71584         * modules/yesno (EXTRA_DIST): Add yesno.h.
71585
71586 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71587
71588         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
71589
71590         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
71591         * m4/dev-ino.m4, same-inode.m4: Remove.
71592
71593         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
71594         * m4/acl.m4 (AC_FUNC_ACL):
71595         * m4/backupfile.m4 (gl_BACKUPFILE):
71596         * m4/c-strtod.m4 (gl_C99_STRTOLD):
71597         * m4/canon-host.m4 (gl_CANON_HOST):
71598         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71599         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
71600         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
71601         * m4/cloexec.m4 (gl_CLOEXEC):
71602         * m4/close-stream.m4 (gl_CLOSE_STREAM):
71603         * m4/closeout.m4 (gl_CLOSEOUT):
71604         * m4/dirfd.m4 (gl_FUNC_DIRFD):
71605         * m4/dirname.m4 (gl_DIRNAME):
71606         * m4/exclude.m4 (gl_EXCLUDE):
71607         * m4/exitfail.m4 (gl_EXITFAIL):
71608         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
71609         * m4/file-type.m4 (gl_FILE_TYPE):
71610         * m4/filemode.m4 (gl_FILEMODE):
71611         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
71612         * m4/fpending.m4 (gl_FUNC_FPENDING):
71613         * m4/fprintftime.m4 (gl_FPRINTFTIME):
71614         * m4/fts.m4 (gl_FUNC_FTS):
71615         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
71616         * m4/getdate.m4 (gl_GETDATE):
71617         * m4/gethrxtime.m4 (gl_GETHRXTIME):
71618         * m4/getpagesize.m4 (gl_GETPAGESIZE):
71619         * m4/getpass.m4 (gl_FUNC_GETPASS):
71620         * m4/gettime.m4 (gl_GETTIME):
71621         * m4/getugroups.m4 (gl_GETUGROUPS):
71622         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
71623         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
71624         * m4/hard-locale.m4 (gl_HARD_LOCALE):
71625         * m4/hash.m4 (gl_HASH):
71626         * m4/idcache.m4 (gl_IDCACHE):
71627         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
71628         * m4/lchown.m4 (gl_FUNC_LCHOWN):
71629         * m4/long-options.m4 (gl_LONG_OPTIONS):
71630         * m4/lstat.m4 (gl_FUNC_LSTAT):
71631         * m4/md5.m4 (gl_MD5):
71632         * m4/memcasecmp.m4 (gl_MEMCASECMP):
71633         * m4/memcoll.m4 (gl_MEMCOLL):
71634         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
71635         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
71636         * m4/memxor.m4 (gl_MEMXOR):
71637         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
71638         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
71639         * m4/modechange.m4 (gl_MODECHANGE):
71640         * m4/mountlist.m4 (gl_MOUNTLIST):
71641         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71642         * m4/openat.m4 (gl_FUNC_OPENAT):
71643         * m4/pathmax.m4 (gl_PATHMAX):
71644         * m4/physmem.m4 (gl_PHYSMEM):
71645         * m4/posixtm.m4 (gl_POSIXTM):
71646         * m4/posixver.m4 (gl_POSIXVER):
71647         * m4/quote.m4 (gl_QUOTE):
71648         * m4/quotearg.m4 (gl_QUOTEARG):
71649         * m4/readtokens.m4 (gl_READTOKENS):
71650         * m4/readutmp.m4 (gl_READUTMP):
71651         * m4/regex.m4 (gl_REGEX):
71652         * m4/safe-read.m4 (gl_SAFE_READ):
71653         * m4/safe-write.m4 (gl_SAFE_WRITE):
71654         * m4/same.m4 (gl_SAME):
71655         * m4/save-cwd.m4 (gl_SAVE_CWD):
71656         * m4/savedir.m4 (gl_SAVEDIR):
71657         * m4/settime.m4 (gl_SETTIME):
71658         * m4/sha1.m4 (gl_SHA1):
71659         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
71660         * m4/stat-macros.m4 (gl_STAT_MACROS):
71661         * m4/stat-time.m4 (gl_STAT_TIME):
71662         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
71663         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
71664         * m4/strdup.m4 (gl_FUNC_STRDUP):
71665         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
71666         * m4/strndup.m4 (gl_FUNC_STRNDUP):
71667         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
71668         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
71669         * m4/time_r.m4 (gl_TIME_R):
71670         * m4/timespec.m4 (gl_TIMESPEC):
71671         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
71672         * m4/unlinkdir.m4 (gl_UNLINKDIR):
71673         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
71674         * m4/userspec.m4 (gl_USERSPEC):
71675         * m4/utimecmp.m4 (gl_UTIMECMP):
71676         * m4/utimens.m4 (gl_UTIMENS):
71677         * m4/xalloc.m4 (gl_XALLOC):
71678         * m4/xgetcwd.m4 (gl_XGETCWD):
71679         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
71680         * m4/xreadlink.m4 (gl_XREADLINK):
71681         * m4/xstrtod.m4 (gl_XSTRTOD):
71682         * m4/yesno.m4 (gl_YESNO):
71683         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
71684         to get the necessary .h files and whatnot.
71685
71686 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
71687             Bruno Haible  <bruno@clisp.org>
71688
71689         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
71690         /bin/sh understanding of '!' conditional negation.
71691
71692 2006-08-21  Jim Meyering  <jim@meyering.net>
71693
71694         * modules/openat (Depends-on): Really alphabetize.
71695
71696         * modules/acl (Depends-on): Add error and quote.
71697
71698         * check-module (find_included_lib_files): Add at-func.c to the
71699         ok-to-include-more-than-once white list.
71700
71701         * modules/openat (Depends-on): Add lstat.  Alphabetize.
71702
71703 2006-08-21  Bruno Haible  <bruno@clisp.org>
71704
71705         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71706         Emit a pkgdata_DATA variable only if some snippets add contents to it.
71707         Reported by Martin Lambers <marlam@marlam.de>.
71708
71709 2006-08-21  Bruno Haible  <bruno@clisp.org>
71710
71711         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
71712         specify an installation location, don't emit a noinst_LIBRARIES or
71713         noinst_LTLIBRARIES assignment.
71714
71715 2006-08-21  Bruno Haible  <bruno@clisp.org>
71716
71717         BeOS portability.
71718         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
71719         BeOS has mbrtowc() but no <wctype.h>.
71720
71721 2006-08-21  Bruno Haible  <bruno@clisp.org>
71722
71723         BeOS portability.
71724         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
71725         exist.
71726
71727 2006-08-21  Bruno Haible  <bruno@clisp.org>
71728
71729         BeOS portability.
71730         * lib/mbchar.h: Include <wctype.h> only if it exists.
71731
71732 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71733
71734         Remove files that are no longer needed by their respective modules.
71735         * m4/obstack.m4: Remove.
71736         * m4/strerror_r.m4: Remove.
71737         * m4/uint32_t.m4: Remove.
71738         * m4/uintptr_t.m4: Remove.
71739         * m4/ullong_max.m4: Remove.
71740         * m4/xstrtoimax.m4: Remove.
71741         * m4/xstrtoumax.m4: Remove.
71742
71743         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
71744         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
71745         dependencies now capture this.
71746
71747         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
71748         Do not use AC_LIBSOURCES, since gnulib modules now do this.
71749         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
71750         * m4/human.m4 (gl_HUMAN): Likewise.
71751         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
71752         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
71753
71754         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
71755
71756         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
71757         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
71758         stdint.
71759         * m4/human.m4 (gl_HUMAN): Likewise.
71760         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
71761         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
71762         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
71763         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
71764         * m4/xstrtol (gl_XSTRTOL): Likewise.
71765
71766         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
71767         AC_TYPE_LONG_LONG_INT.
71768         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
71769         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
71770         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
71771         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
71772
71773         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
71774         on stdbool.
71775
71776         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
71777         (gl_PREREQ_XSTRTOUL): Remove.
71778
71779         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
71780
71781         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
71782         mode.
71783
71784 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71785
71786         Add and change modules to make it easier for coreutils to use
71787         gnulib-tool.
71788         * modules/backupfile (Files): Remove m4/d-ino.m4.
71789         (Depends-on): Add d-ino.
71790         * modules/cycle-check (Depends-on): Add stdint.
71791         (lib_SOURCES): Add cycle-check.h.
71792         * modules/d-ino: New module.
71793         * modules/d-type: New module.
71794         * modules/error (Files): Remove m4/strerror_r.m4.
71795         * modules/filemode (Files): Add m4/st_dm_mode.m4.
71796         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
71797         m4/inttypes_h.m4, m4/uintmax_t.m4.
71798         (Depends-on): Add stdint.
71799         (lib_SOURCES): Add fsusage.h.
71800         * modules/getcwd (Files): Remove d-ino.m4.
71801         (Depends-on): Add d-ino.
71802         * modules/getndelim2 (Depends-on): Add stdint.
71803         * modules/glob (Files): Remove m4/d-type.m4.
71804         (Depends-on): Add d-type.
71805         * modules/host-os: New module.
71806         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
71807         m4/inttypes_h.m4, m4/uintmax_t.m4.
71808         * Depends-on: Add stdint.
71809         (lib_SOURCES): Add human.h.
71810         * modules/inttostr (Files): Remove m4/intmax_t.m4,
71811         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
71812         m4/uintmax_t.m4, m4/ulonglong.m4.
71813         (Depends-on): Add stdint.
71814         (EXTRA_DIST): Add inttostr.h.
71815         * modules/lchmod: New module.
71816         * modules/link-follow: New module.
71817         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
71818         (Depends-on): Add lchmod.
71819         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
71820         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
71821         (Depends-on): Add stdint.
71822         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
71823         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
71824         (Depends-on): Add stdint.
71825         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
71826         * modules/perl: New module.
71827         * modules/regex (Depends-on): Add stdint.
71828         * modules/rmdir-errno: New module.
71829         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
71830         m4/intmax_t.m4.
71831         (Depends-on): Add stdint.
71832         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
71833         m4/uintmax_t.m4.
71834         (Depends-on): Add stdint.
71835         * modules/unlink-busy: New module.
71836         * modules/utimecmp (Depends-on): Add stdint.
71837         * modules/uptime: New module.
71838         * modules/winsz-ioctl: New module.
71839         * modules/winsz-termios: New module.
71840         * modules/xnanosleep (Depends-on): Add nanosleep.
71841         * modules/ullong_max: Remove.
71842         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
71843         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
71844         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
71845         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
71846         (Depends-on): Add inttypes.
71847         (lib_SOURCES): Add xstrtol.h.
71848         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
71849         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
71850         * MODULES.html.sh: Move 'assert' into the assert section.
71851         Move 'dummy' into the linking section.
71852         Remove ullong_max.
71853         Add section for compatibility checks for POSIX:2001 functions,
71854         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
71855         winsz-ioctl, and winsz-termios into it.
71856         Add lchmod.
71857         Add top-level Misc section and put host-os, perl, and uptime
71858         into it.
71859
71860 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71861
71862         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
71863         now assume the stdint module.  Do not include inttypes.h.
71864         * lib/fsusage.h: Likewise.
71865         * lib/getndelim2.c: Likewise.
71866         * lib/human.h: Likewise.
71867         * lib/inttostr.h: Likewise.
71868         * lib/obstack.c: Likewise.
71869         * lib/regex_internal.h: Likewise.
71870         * lib/tempname.c: Likewise.
71871         * lib/utimecmp.c: Likewise.
71872         * lib/xstrtol.h: Likewise.
71873
71874         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
71875
71876         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
71877         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
71878         * lib/xtime.h: Likewise.
71879
71880 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71881
71882         * modules/openat (Files): Add lib/fchmodat.c.
71883         Fixes problem reported by Jay Youngman.
71884
71885 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71886
71887         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
71888         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
71889
71890 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
71891             Bruno Haible  <bruno@clisp.org>
71892
71893         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
71894         and is a script that invokes bison. Tighten the code. Add comments.
71895
71896 2006-08-18  Jim Meyering  <jim@meyering.net>
71897
71898         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
71899         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
71900         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
71901         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
71902
71903 2006-08-18  Bruno Haible  <bruno@clisp.org>
71904
71905         * modules/bison-i18n: New file.
71906         * MODULES.html.sh (Internationalization functions): Add it.
71907
71908 2006-08-18  Bruno Haible  <bruno@clisp.org>
71909
71910         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
71911         sys/statvfs.h. When getmntinfo was found, check its declaration and
71912         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
71913
71914 2006-08-18  Bruno Haible  <bruno@clisp.org>
71915
71916         * m4/bison-i18n.m4: New file, from bison.
71917
71918 2006-08-18  Bruno Haible  <bruno@clisp.org>
71919
71920         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
71921         (ME_DUMMY): Treat "kernfs" as a dummy.
71922         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
71923
71924 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71925
71926         Update from coreutils.
71927
71928         2006-08-15  Jim Meyering  <jim@meyering.net>
71929
71930         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
71931
71932         2006-01-17  Jim Meyering  <jim@meyering.net>
71933
71934         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
71935
71936         2006-01-11  Jim Meyering  <jim@meyering.net>
71937
71938         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
71939         Check for the lchmod function.
71940
71941 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71942
71943         Update from coreutils.
71944
71945         * lib/__fpending.h: Add copyright notice.
71946         * lib/fprintftime.h: Likewise.
71947         * lib/savedir.c: Use (C) in copyright notice.
71948         * lib/savedir.h: Likewise.
71949
71950         2006-08-15  Jim Meyering  <jim@meyering.net>
71951
71952         * lib/at-func.c: New file, with the logic of all emulated at-functions.
71953         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
71954         in support of the EXPECTED_ERRNO macro.
71955         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
71956         definitions.  Instead, define the appropriate symbols and include
71957         "at-func.c".
71958         * lib/mkdirat.c (mkdirat): Likewise.
71959         * lib/fchmodat.c (fchmodat): Likewise.
71960         (ENOSYS): Remove definition.
71961         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
71962         it.  Don't include "unistd--.h" -- it wasn't ever used.
71963
71964         2006-01-17  Jim Meyering  <jim@meyering.net>
71965
71966         Rewrite fts.c not to change the current working directory,
71967         by using openat, fstatat, fdopendir, etc..
71968
71969         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
71970         (HAVE_OPENAT_SUPPORT): Define.
71971         [_LIBC] (fchdir): Don't undef or define; no longer used.
71972         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
71973         Now, this `function' always succeeds, and consumes its file descriptor
71974         parameter -- so callers must not close such FDs.  Update callers.
71975         (diropen_fd, opendirat, cwd_advance_fd): New functions.
71976         (diropen): Add parameter, SP.  Adjust all callers.
71977         Implement using diropen_fd, rather than open.
71978         (fts_open): Initialize new member, fts_cwd_fd.
71979         Remove fts_rft-setting code.
71980         (fts_close): Close fts_cwd_fd, if necessary.
71981         (__opendir2): Define in terms of opendir or opendirat,
71982         depending on whether the FST_NOCHDIR flag is set.
71983         (fts_build): Since fts_safe_changedir consumes its FD, and since
71984         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
71985         and close the dup'd file descriptor upon failure.
71986         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
71987         (fts_safe_changedir): Tweak semantics to reflect that this function
71988         now calls cwd_advance_fd and hence consumes its FD argument.
71989         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
71990         [struct FTS] (fts_rft): Remove now-unused member.
71991         [struct FTS] (fts_cycle.state): Improve comment.
71992
71993         * lib/openat.c (openat_needs_fchdir): New function.
71994         * lib/openat.h (openat_needs_fchdir): Declare it.
71995
71996 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
71997
71998         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
71999         Problem and fix reported by Pádraig Brady in
72000         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
72001
72002 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72003
72004         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
72005
72006 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72007
72008         * lib/memcoll.c (memcoll): Optimize for the common case where the
72009         arguments are bytewise equal.
72010
72011 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72012
72013         * doc/regexprops-generic.texi: Add a copyright notice.
72014
72015 2006-08-15  Bruno Haible  <bruno@clisp.org>
72016
72017         * modules/tmpdir (License): Change to LGPL.
72018
72019 2006-08-15  Bruno Haible  <bruno@clisp.org>
72020
72021         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
72022         module.
72023
72024 2006-08-14  Simon Josefsson  <jas@extundo.com>
72025
72026         * config/srclist.txt: Add gnupload.
72027
72028 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72029
72030         Change copyright notice from LGPL 2 to GPL 2, since that's the
72031         standard form used in the gnulib repository.
72032         * tests/test-lock.c: Likewise.
72033         * tests/test-stdint.c: Likewise.
72034         * tests/test-tls.c: Likewise.
72035
72036         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
72037         prelude-manager.  User shorter URLs for GNU projects, without '?'.
72038         Add copyright notice.
72039
72040         * check-module: Add copyright notice.  Output a copyright
72041         notice if "--version" is specified.
72042         * modules/COPYING: New file.
72043         * tests/test-getaddrinfo.c: Add copyright notice.
72044         * tests/test-verify.c: Likewise.
72045
72046 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72047
72048         Change copyright notice from LGPL 2 to GPL 2, since that's the
72049         standard form used in the gnulib repository.
72050         * lib/lock.c: LGPL -> GPL.
72051         * lib/lock.h: Likewise.
72052         * lib/strnlen1.c: Likewise.
72053         * lib/strnlen1.h: Likewise.
72054         * lib/tls.c: Likewise.
72055         * lib/tls.h: Likewise.
72056         * lib/tmpdir.c: Likewise.
72057
72058         * lib/TODO: Remove; this belongs only in coreutils.
72059
72060 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72061
72062         Add copyright notices to long-enough files that lack them, since
72063         otherwise the files aren't clearly free.  Use the same notice that
72064         getdate.texi already uses.
72065         * doc/alloca-opt.texi: Add copyright notice.
72066         * doc/alloca.texi: Likewise.
72067         * doc/ctime.texi: Likewise.
72068         * doc/functions.texi: Likewise.
72069         * doc/gcd.texi: Likewise.
72070         * doc/gnulib-tool.texi: Likewise.
72071         * doc/inet_ntoa.texi: Likewise.
72072         * doc/visibility.texi: Likewise.
72073
72074         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
72075         * doc/quote.texi: Add copyright notice.
72076
72077         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
72078         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
72079         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
72080         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
72081         is now obsolete, and give a pointer to the Sun list.
72082         Add copyright notice.
72083
72084 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
72085
72086         * config/srclistvars.sh: Add copyright notice.
72087
72088 2006-08-14  Eric Blake  <ebb9@byu.net>
72089
72090         Import the following change from libc:
72091
72092         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
72093
72094         Upstream bug 2997.
72095         * lib/misc/error.c: Add space between program name and message if file
72096         name is missing.
72097
72098 2006-08-12  Karl Berry  <karl@gnu.org>
72099
72100         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
72101         remove, these originate in gnulib now.
72102
72103 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72104
72105         * doc/Makefile (standards.info standards.html standards.dvi):
72106         Also depend on make-stds.texi.
72107
72108 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
72109
72110         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
72111         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
72112
72113         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
72114         in wchar_t.  Problem reported by Eric Blake.
72115
72116         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
72117         LEN is smaller than SIZE.  Suggested by Bruno Haible.
72118         Also, help the compiler to keep LEN in a register.
72119
72120 2006-08-11  Eric Blake  <ebb9@byu.net>
72121
72122         * users.txt: Sort.  Add tar.
72123
72124 2006-08-11  Bruno Haible  <bruno@clisp.org>
72125
72126         * users.txt: New file.
72127
72128 2006-08-11  Bruno Haible  <bruno@clisp.org>
72129
72130         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
72131         before <wchar.h>. Needed for OSF/1 and BSD/OS.
72132
72133 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
72134
72135         * modules/snprintf (Depends-on): Remove minmax.
72136         (Maintainer): Add self and Bruno.
72137
72138 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
72139
72140         * lib/.cppi-disable: Add snprintf.h, socket_.h.
72141         * lib/snprintf.c: Include <errno.h> and <limits.h>.
72142         (EOVERFLOW): Define if the system does not.
72143         Do not include "minmax.h"; it wasn't used.
72144         (snprintf): Don't assume size_t promotes to an unsigned type.
72145         Fix bug when generated string was too long for the buffer: the
72146         buffer's contents are supposed to be the initial prefix of the
72147         output.  Don't assume vasnprintf returns EOVERFLOW if the size
72148         exceeds INT_MAX; do the check ourselves.
72149
72150         Import the following changes from libc:
72151
72152         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
72153
72154         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
72155         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
72156         set wc to the byte which couldn't be converted.
72157         (re_string_reconstruct): Don't clear valid_raw_len before calling
72158         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
72159         tip_context using re_string_context_at.
72160
72161         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
72162
72163         * lib/posix/regex.h: g++ still cannot handled [restrict].
72164
72165         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
72166
72167         * lib/posix/regex.h: Remove special handling for VMS.
72168
72169 2006-08-10  Jim Meyering  <jim@meyering.net>
72170
72171         * modules/same-inode: New module.
72172         * modules/dev-ino: New module.
72173         * modules/cycle-check: Depend on these modules, rather than simply
72174         including their .h files.
72175         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
72176         required via m4/cycle-check.m4.
72177         * modules/same: Depend on new same-inode module, rather than
72178         including same-inode.h.
72179         * modules/chdir-safer: New file.
72180
72181         * modules/chown (Depends-on): Add stat-macros.
72182
72183 2006-08-10  Jim Meyering  <jim@meyering.net>
72184
72185         * m4/cycle-check.m4: New file.
72186         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
72187         * m4/dev-ino.m4, m4/same-inode.m4: New files.
72188
72189 2006-08-10  Eric Blake  <ebb9@byu.net>
72190
72191         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
72192         in from original proposal.
72193
72194 2006-08-10  Eric Blake  <ebb9@byu.net>
72195         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
72196
72197         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
72198         namespace.
72199
72200 2006-08-10  Bruno Haible  <bruno@clisp.org>
72201
72202         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
72203         as well.
72204
72205 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72206
72207         Sync from coreutils.
72208
72209         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
72210
72211         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
72212         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
72213
72214 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72215
72216         * modules/restrict: Remove; no longer needed now that we assume
72217         Autoconf 2.59 or later.
72218         * MODULES.html.sh: Remove 'restrict'.
72219         * modules/argp (Depends-on): Remove 'restrict'.
72220         * modules/base64 (Depends-on): Likewise.
72221         * modules/gc (Depends-on): Likewise.
72222         * modules/getaddrinfo (Depends-on): Likewise.
72223         * modules/glob (Depends-on): Likewise.
72224         * modules/inet_ntop (Depends-on): Likewise.
72225         * modules/inet_pton (Depends-on): Likewise.
72226         * modules/memxor (Depends-on): Likewise.
72227         * modules/regex (Depends-on): Likewise.
72228         * modules/strtok_r (Depends-on): Likewise.
72229         * modules/time_r (Depends-on): Likewise.
72230
72231 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
72232
72233         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
72234         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
72235         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
72236         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
72237         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
72238         * m4/memxor.m4 (gl_MEMXOR): Likewise.
72239         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
72240         gl_C_RESTRICT replaced by AC_C_RESTRICT.
72241
72242         Merge from coreutils.
72243         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
72244         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
72245         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72246         * m4/time_r.m4 (gl_TIME_R): Likewise.
72247
72248 2006-08-09  Karl Berry  <karl@gnu.org>
72249
72250         * config/srclist.txt: no more gettext-tools, per Bruno.
72251
72252 2006-08-08  Eric Blake  <ebb9@byu.net>
72253
72254         * modules/verror: New module.
72255         * MODULES.html.sh: Document it.
72256
72257 2006-08-08  Eric Blake  <ebb9@byu.net>
72258
72259         * lib/verror.h, lib/verror.c: New files.
72260
72261 2006-08-08  Eric Blake  <ebb9@byu.net>
72262
72263         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
72264         verror_at_line output complies with GNU Coding Standards even when
72265         file is NULL.
72266
72267 2006-08-07  Bruno Haible  <bruno@clisp.org>
72268
72269         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
72270         versions of AIX.
72271         Reported by Ralf Wildenhues.
72272
72273 2006-08-07  Bruno Haible  <bruno@clisp.org>
72274
72275         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
72276         in an AC_DEFUN. Needed so that the autoconf snippets can use
72277         AC_REQUIRE.
72278
72279 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72280
72281         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72282         Initialize pkgdata_DATA.
72283         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
72284         overriding it.
72285
72286 2006-08-06  Eric Blake  <ebb9@byu.net>
72287
72288         * lib/error.h: Fold in some upstream changes from glibc.
72289         * lib/error.c: Likewise.
72290
72291 2006-08-04  Bruno Haible  <bruno@clisp.org>
72292
72293         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72294         Make the mostlyclean-local rule depend on mostlyclean-generic.
72295         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
72296
72297 2006-07-31  Bruno Haible  <bruno@clisp.org>
72298
72299         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
72300         <stdlib.h>, <string.h>.
72301
72302 2006-07-30  Bruno Haible  <bruno@clisp.org>
72303
72304         * modules/readlink (License): Change to LGPL.
72305
72306 2006-07-30  Bruno Haible  <bruno@clisp.org>
72307
72308         * modules/javaversion (Makefile.am): Distribute javaversion.java and
72309         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
72310         set PKGDATADIR to point to it.
72311
72312 2006-07-30  Bruno Haible  <bruno@clisp.org>
72313
72314         * modules/csharpexec (configure.ac): Comment out macro invocation.
72315         * modules/javaexec (configure.ac): Likewise.
72316         * modules/javacomp-script (configure.ac): Likewise.
72317
72318         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
72319
72320 2006-07-30  Bruno Haible  <bruno@clisp.org>
72321
72322         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
72323         linked-list.
72324
72325 2006-07-30  Bruno Haible  <bruno@clisp.org>
72326
72327         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
72328
72329 2006-07-30  Bruno Haible  <bruno@clisp.org>
72330
72331         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72332         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
72333         get removed.
72334
72335 2006-07-29  Bruno Haible  <bruno@clisp.org>
72336
72337         Make it possible for gnulib-tool to work with locally modified or
72338         augmented gnulib repositories.
72339         * gnulib-tool (func_usage): Document --local-dir option.
72340         (local_gnulib_dir): New variable.
72341         Handle --local-dir option.
72342         (func_lookup_file): New function.
72343         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
72344         (func_get_description, func_get_filelist, func_get_description,
72345         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
72346         func_get_automake_snippet, func_get_include_directive,
72347         func_get_license, func_get_maintainer): Use func_lookup_file.
72348         (func_import, func_create_testdir): Use func_lookup_file.
72349
72350 2006-07-29  Bruno Haible  <bruno@clisp.org>
72351
72352         * modules/setenv (Depends-on): Add unistd.
72353
72354 2006-07-29  Bruno Haible  <bruno@clisp.org>
72355
72356         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
72357
72358 2006-07-29  Bruno Haible  <bruno@clisp.org>
72359
72360         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
72361
72362 2006-07-29  Bruno Haible  <bruno@clisp.org>
72363
72364         * gnulib-tool (import, update): If there is no Makefile.am, look at
72365         aclocal.m4, instead of bailing out.
72366
72367 2006-07-29  Bruno Haible  <bruno@clisp.org>
72368
72369         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
72370         Categorize the options by when they are useful.
72371
72372 2006-07-29  Bruno Haible  <bruno@clisp.org>
72373
72374         * gnulib-tool (func_usage): Document option --no-libtool.
72375         Handle option --no-libtool.
72376         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
72377         for changed semantics of $libtool variable.
72378         (func_import): Likewise. If libtool is not used, show this through
72379         an option --no-libtool.
72380         (func_create_testdir): Update.
72381
72382 2006-07-29  Bruno Haible  <bruno@clisp.org>
72383
72384         * gnulib-tool (func_import): Extend error message about missing
72385         --doc-base.
72386
72387 2006-07-29  Bruno Haible  <bruno@clisp.org>
72388
72389         * gnulib-tool (func_import): Don't create the $docbase directory if
72390         there is no file to store there.
72391
72392 2006-07-29  Bruno Haible  <bruno@clisp.org>
72393
72394         * gnulib-tool (autoconf_minversion): If a --dir option is given and
72395         relevant, look for configure.ac there, not in the current directory.
72396         Also use a simple search for AC_PREREQ, not "autoconf --trace".
72397
72398 2006-07-29  Bruno Haible  <bruno@clisp.org>
72399
72400         * gnulib-tool (SORT): New variable.
72401         (func_usage): Undocument --assume-autoconf option.
72402         Remove --assume-autoconf option handling.
72403         (autoconf_minversion): Determine from the contents of configure.ac.
72404         (func_import): Remove autoconf_minversion handling.
72405         Suggested by Eric Blake.
72406
72407 2006-07-29  Bruno Haible  <bruno@clisp.org>
72408
72409         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
72410
72411 2006-07-29  Bruno Haible  <bruno@clisp.org>
72412
72413         * config/srclist.txt (*setenv.[ch]): Remove rules.
72414
72415 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72416
72417         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
72418
72419 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72420
72421         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
72422         arpa/inet.h.
72423
72424 2006-07-28  Simon Josefsson  <jas@extundo.com>
72425
72426         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
72427         * modules/inet_pton (Depends-on): Likewise.
72428
72429 2006-07-28  Simon Josefsson  <jas@extundo.com>
72430
72431         * m4/netinet_in_h.m4: New file.
72432
72433 2006-07-28  Simon Josefsson  <jas@extundo.com>
72434
72435         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
72436         #include's.
72437
72438 2006-07-28  Simon Josefsson  <jas@extundo.com>
72439
72440         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
72441         #include's.
72442
72443 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
72444
72445         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
72446         setgid on directories only if they set these bits.
72447         * lib/modechange.h: Remove obsolete comment about masks.
72448
72449 2006-07-28  Eric Blake  <ebb9@byu.net>
72450
72451         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
72452         macro expansion.
72453
72454 2006-07-28  Bruno Haible  <bruno@clisp.org>
72455
72456         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
72457
72458 2006-07-28  Bruno Haible  <bruno@clisp.org>
72459
72460         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
72461
72462 2006-07-28  Bruno Haible  <bruno@clisp.org>
72463
72464         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
72465         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
72466         Define fallbacks.
72467         Avoids link error on FreeBSD 4.x.
72468         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72469
72470         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
72471         encoding.
72472         * lib/mbswidth.c (iswcntrl): Likewise.
72473
72474 2006-07-27  Bruno Haible  <bruno@clisp.org>
72475
72476         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
72477         test.
72478
72479 2006-07-27  Bruno Haible  <bruno@clisp.org>
72480
72481         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
72482         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
72483         defined.
72484
72485 2006-07-26  Eric Blake  <ebb9@byu.net>
72486
72487         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
72488
72489 2006-07-26  Eric Blake  <ebb9@byu.net>
72490
72491         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
72492         like mingw that lack mkstemp.
72493         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
72494         avoid compilation warning on mingw.
72495
72496 2006-07-26  Bruno Haible  <bruno@clisp.org>
72497
72498         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
72499         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
72500         INT_FAST*_MIN, INTPTR_MIN.
72501
72502 2006-07-25  Bruno Haible  <bruno@clisp.org>
72503
72504         * modules/version-etc (Depends-on): Add stdarg.
72505
72506 2006-07-25  Bruno Haible  <bruno@clisp.org>
72507
72508         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
72509         complex commands.
72510
72511 2006-07-25  Bruno Haible  <bruno@clisp.org>
72512
72513         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
72514         defined in <stdarg.h> or config.h.
72515
72516 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
72517
72518         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
72519         (gl_STDIO_SAFER): Remove.
72520
72521 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
72522
72523         * MODULES.html.sh (File stream based Input/Output):
72524         Add fopen-safer, tmpfile-safer; remove stdio-safer.
72525         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
72526         * modules/fopen-safer, modules/tmpfile-safer: New files.
72527         * modules/stdio-safer: Remove.
72528
72529 2006-07-24  Bruno Haible  <bruno@clisp.org>
72530
72531         * modules/tmpdir: New file.
72532         * MODULES.html.sh (File system functions): Add it.
72533
72534 2006-07-24  Bruno Haible  <bruno@clisp.org>
72535
72536         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
72537         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
72538
72539 2006-07-24  Bruno Haible  <bruno@clisp.org>
72540
72541         * modules/clean-temp: New file.
72542
72543 2006-07-24  Bruno Haible  <bruno@clisp.org>
72544
72545         * m4/tmpdir.m4: New file, from GNU gettext.
72546
72547 2006-07-24  Bruno Haible  <bruno@clisp.org>
72548
72549         * lib/tmpdir.h: New file, from GNU gettext.
72550         * lib/tmpdir.c: New file, from GNU gettext.
72551
72552 2006-07-24  Bruno Haible  <bruno@clisp.org>
72553
72554         * lib/clean-temp.h: New file, from GNU gettext.
72555         * lib/clean-temp.c: New file, from GNU gettext.
72556
72557 2006-07-23  Eric Blake  <ebb9@byu.net>
72558
72559         * modules/stdio-safer (Files): Add tmpfile-safer.c.
72560         (Depends-on): Add binary-io.
72561
72562 2006-07-23  Eric Blake  <ebb9@byu.net>
72563
72564         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
72565
72566 2006-07-23  Eric Blake  <ebb9@byu.net>
72567
72568         * lib/tmpfile-safer.c: New file.
72569         * lib/stdio-safer.h (fopen_safer): Add prototype.
72570         * lib/stdio--.h (tmpfile): Make safer.
72571
72572 2006-07-23  Bruno Haible  <bruno@clisp.org>
72573
72574         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
72575         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
72576         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
72577         gl_linked_remove_at): Use it.
72578
72579 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72580         and Simon Josefsson <jas@extundo.com>
72581
72582         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
72583
72584         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
72585
72586 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72587
72588         * modules/close-stream: New file.
72589         * modules/closeout (Description): Make it clear that it exits
72590         with a diagnostic on error.
72591         (Depends-on): Add close-stream.  Remove fpending, stdbool.
72592         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
72593
72594 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72595
72596         * m4/close-stream.m4: New file.
72597
72598 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72599
72600         * lib/close-stream.c, lib/close-stream.h: New files.
72601
72602 2006-07-22  Bruno Haible  <bruno@clisp.org>
72603
72604         Merge from GNU gettext 0.15.
72605
72606         2006-05-01  Bruno Haible  <bruno@clisp.org>
72607
72608                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
72609
72610         2006-07-22  Bruno Haible  <bruno@clisp.org>
72611
72612                 * modules/javaversion: New file.
72613                 * MODULES.html.sh (Java): Add javaversion.
72614
72615         2006-03-12  Bruno Haible  <bruno@clisp.org>
72616
72617                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
72618
72619         2005-12-04  Bruno Haible  <bruno@clisp.org>
72620
72621                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
72622                 (untested).
72623
72624         2006-06-21  Bruno Haible  <bruno@clisp.org>
72625
72626                 Avoid warnings from recent versions of mcs.
72627                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
72628                 -o, -L, -r any more. Use options documented since mcs-1.0
72629                 instead. Similarly for -g.
72630
72631         2005-12-04  Bruno Haible  <bruno@clisp.org>
72632
72633                 * build-aux/csharpcomp.sh.in: Suffix for resources is
72634                 .resources, not .resource.
72635
72636         2005-07-09  Bruno Haible  <bruno@clisp.org>
72637
72638                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
72639                 add a .dll suffix.
72640                 Reported by Mark Junker <mjscod@gmx.de>.
72641
72642         2006-07-22  Bruno Haible  <bruno@clisp.org>
72643
72644                 * modules/gettext: Upgrade to gettext-0.15.
72645                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
72646                 m4/visibility.m4.
72647                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
72648
72649 2006-07-22  Bruno Haible  <bruno@clisp.org>
72650
72651         Merge from GNU gettext 0.15.
72652
72653         2006-03-25  Bruno Haible  <bruno@clisp.org>
72654
72655                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
72656
72657         2006-07-21  Bruno Haible  <bruno@clisp.org>
72658
72659                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
72660                 "1.1".
72661
72662         2006-05-09  Bruno Haible  <bruno@clisp.org>
72663
72664                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
72665                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
72666                 for the conftestver execution.
72667
72668         2006-05-01  Bruno Haible  <bruno@clisp.org>
72669
72670                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
72671                 optional target-version argument. Verify that the compiler
72672                 groks source of the specified source-version, or add -source
72673                 option as necessary. Verify that the compiler produces
72674                 bytecode in the specified target-version, or add -target and
72675                 -source options as necessary. Make the result of the test
72676                 available as variable CONF_JAVAC. Also log error output in
72677                 config.log.
72678
72679         2006-03-11  Bruno Haible  <bruno@clisp.org>
72680
72681                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
72682
72683         2006-05-09  Bruno Haible  <bruno@clisp.org>
72684
72685                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
72686                 CLASSPATH_SEPARATOR to a semicolon.
72687
72688         2006-03-12  Bruno Haible  <bruno@clisp.org>
72689
72690                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
72691                 available as variable CONF_JAVA, for subsequent autoconf
72692                 tests. Also log error output in config.log.
72693
72694         2006-07-19  Bruno Haible  <bruno@clisp.org>
72695
72696                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
72697                 that getline works on glibc2 systems. Needed to avoid trouble
72698                 in relocatable.c.
72699                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
72700
72701         2005-12-04  Bruno Haible  <bruno@clisp.org>
72702
72703                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
72704                 launcher (untested).
72705
72706         2005-12-04  Bruno Haible  <bruno@clisp.org>
72707
72708                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
72709
72710         2006-07-22  Bruno Haible  <bruno@clisp.org>
72711
72712                 * gettext.m4: Update from GNU gettext-0.15.
72713                 * nls.m4: Likewise.
72714                 * po.m4: Likewise.
72715                 * inttypes-pri.m4: Likewise.
72716                 * inttypes-h.m4: Renamed from inttypes.m4.
72717                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
72718
72719 2006-07-22  Bruno Haible  <bruno@clisp.org>
72720
72721         Merge from GNU gettext 0.15.
72722
72723         2005-07-05  Bruno Haible  <bruno@clisp.org>
72724
72725                 * printf-args.c (printf_fetchargs): Work around broken
72726                 definition of wint_t on mingw.
72727
72728         2005-02-12  Bruno Haible  <bruno@clisp.org>
72729
72730                 * xallocsa.h: Add extern "C" for C++.
72731
72732         2006-05-17  Bruno Haible  <bruno@clisp.org>
72733
72734                 Cygwin portability.
72735                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
72736
72737         2006-04-30  Bruno Haible  <bruno@clisp.org>
72738
72739                 * progreloc.c: Include <mach-o/dyld.h> if available.
72740                 (find_executable): Use _NSGetExecutablePath when possible.
72741
72742         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72743
72744                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
72745                 function.
72746
72747         2005-12-29  Bruno Haible  <bruno@clisp.org>
72748
72749                 * progreloc.c (set_program_name_and_installdir): Fix
72750                 compilation error.
72751
72752         2005-12-04  Bruno Haible  <bruno@clisp.org>
72753
72754                 Cygwin portability.
72755                 * progreloc.c: Include <windows.h> also on Cygwin.
72756                 (find_executable): Add support for Cygwin.
72757                 (set_program_name_and_installdir): Handle also platforms with
72758                 nonempty EXEEXT.
72759
72760         2006-07-11  Bruno Haible  <bruno@clisp.org>
72761
72762                 * javacomp.c: Fix a comment.
72763                 Reported by Jim Meyering.
72764
72765         2006-04-30  Bruno Haible  <bruno@clisp.org>
72766
72767                 * javacomp.h (compile_java_class): Add source_version,
72768                 target_version arguments.
72769                 * javacomp.c: Rewritten to choose only a compiler that
72770                 respects the specified source_version and target_version.
72771
72772         2006-06-27  Bruno Haible  <bruno@clisp.org>
72773
72774                 Assume correct S_ISDIR macro.
72775                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
72776
72777         2006-07-22  Bruno Haible  <bruno@clisp.org>
72778
72779                 * javaversion.h: New file, from GNU gettext.
72780                 * javaversion.c: New file, from GNU gettext.
72781                 * javaversion.java: New file, from GNU gettext.
72782                 * javaversion.class: New file, from GNU gettext.
72783
72784         2006-05-17  Bruno Haible  <bruno@clisp.org>
72785
72786                 Cygwin portability.
72787                 * javaexec.c (execute_java_class): Test for jview program
72788                 also on Cygwin.
72789
72790         2006-04-09  Bruno Haible  <bruno@clisp.org>
72791
72792                 * fatal-signal.c: Don't include string.h.
72793                 (at_fatal_signal): Use a copying loop instead of memcpy.
72794
72795         2005-12-04  Bruno Haible  <bruno@clisp.org>
72796
72797                 * csharpexec.c: Add support for 'clix' launcher (untested).
72798                 (execute_csharp_using_sscli): New function.
72799                 (execute_csharp_program): Call it.
72800
72801         2006-06-21  Bruno Haible  <bruno@clisp.org>
72802
72803                 Avoid warnings from recent versions of mcs.
72804                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
72805                 -o, -L, -r any more. Use options documented since mcs-1.0
72806                 instead. Similarly for -g.
72807
72808         2005-07-09  Bruno Haible  <bruno@clisp.org>
72809
72810                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
72811                 add a .dll suffix.
72812                 Reported by Mark Junker <mjscod@gmx.de>.
72813
72814         2006-06-17  Bruno Haible  <bruno@clisp.org>
72815
72816                 * config.charset: Update for NetBSD 3.0.
72817
72818         2006-05-17  Bruno Haible  <bruno@clisp.org>
72819
72820                 Cygwin portability.
72821                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
72822
72823         2006-05-16  Bruno Haible  <bruno@clisp.org>
72824
72825                 * localcharset.c [CYGWIN]: Include <windows.h>.
72826                 (get_charset_aliases): For Cygwin, return the same CPxxx
72827                 aliases list as under WIN32.
72828                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
72829                 the environment variables. Fall back to GetACP().
72830
72831         2006-04-05  Bruno Haible  <bruno@clisp.org>
72832
72833                 * config.charset: Update Juan Manuel Guerrero's address.
72834
72835         2005-02-12  Bruno Haible  <bruno@clisp.org>
72836
72837                 * allocsa.h: Add extern "C" for C++.
72838
72839         2005-02-10  Bruno Haible  <bruno@clisp.org>
72840
72841                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
72842                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
72843
72844         2006-07-22  Bruno Haible  <bruno@clisp.org>
72845
72846                 * gettext.h: Update to GNU gettext-0.15.
72847
72848 2006-07-22  Bruno Haible  <bruno@clisp.org>
72849
72850         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
72851         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
72852         lib-prefix.m4, longdouble.m4, ssize_t.m4.
72853
72854 2006-07-21  Eric Blake  <ebb9@byu.net>
72855
72856         * modules/stdlib-safer: New file.
72857         * MODULES.html.sh (File stream based Input/Output): Add
72858         stdlib-safer.
72859
72860 2006-07-21  Eric Blake  <ebb9@byu.net>
72861
72862         * lib/stdlib-safer.h: New file from coreutils, required by
72863         stdlib--.h.
72864
72865 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
72866
72867         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
72868
72869 2006-07-20  Bruno Haible  <bruno@clisp.org>
72870
72871         * gnulib-tool: Recognize new option --assume-autoconf.
72872         (autoconf_minversion): New variable.
72873         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
72874
72875 2006-07-20  Bruno Haible  <bruno@clisp.org>
72876
72877         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
72878
72879 2006-07-19  Derek R. Price  <derek@ximbiot.com>
72880
72881         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
72882         Reindent and repaginate.
72883
72884 2006-07-19  Derek Price  <derek@ximbiot.com>
72885
72886         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
72887         Correct grammar.
72888
72889 2006-07-17  Bruno Haible  <bruno@clisp.org>
72890
72891         * modules/list: New file.
72892         * modules/array-list: New file.
72893         * modules/carray-list, modules/carray-list-tests: New files.
72894         * modules/linked-list, modules/linked-list-tests: New files.
72895         * modules/avltree-list, modules/avltree-list-tests: New files.
72896         * modules/rbtree-list, modules/rbtree-list-tests: New files.
72897         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
72898         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
72899         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
72900         * modules/oset: New file.
72901         * modules/array-oset: New file.
72902         * modules/avltree-oset, modules/avltree-oset-tests: New files.
72903         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
72904         * tests/test-carray_list.c: New file.
72905         * tests/test-linked_list.c: New file.
72906         * tests/test-avltree_list.c: New file.
72907         * tests/test-rbtree_list.c: New file.
72908         * tests/test-linkedhash_list.c: New file.
72909         * tests/test-avltreehash_list.c: New file.
72910         * tests/test-rbtreehash_list.c: New file.
72911         * tests/test-avltree_oset.c: New file.
72912         * tests/test-rbtree_oset.c: New file.
72913         * MODULES.html.sh (Container data structures): New section.
72914
72915 2006-07-17  Bruno Haible  <bruno@clisp.org>
72916
72917         * m4/gl_list.m4: New file.
72918
72919 2006-07-17  Bruno Haible  <bruno@clisp.org>
72920
72921         * lib/gl_list.h: New file.
72922         * lib/gl_list.c: New file.
72923         * lib/gl_array_list.h: New file.
72924         * lib/gl_array_list.c: New file.
72925         * lib/gl_carray_list.h: New file.
72926         * lib/gl_carray_list.c: New file.
72927         * lib/gl_linked_list.h: New file.
72928         * lib/gl_linked_list.c: New file.
72929         * lib/gl_anylinked_list1.h: New file.
72930         * lib/gl_anylinked_list2.h: New file.
72931         * lib/gl_avltree_list.h: New file.
72932         * lib/gl_avltree_list.c: New file.
72933         * lib/gl_anyavltree_list1.h: New file.
72934         * lib/gl_anyavltree_list2.h: New file.
72935         * lib/gl_rbtree_list.h: New file.
72936         * lib/gl_rbtree_list.c: New file.
72937         * lib/gl_anyrbtree_list1.h: New file.
72938         * lib/gl_anyrbtree_list2.h: New file.
72939         * lib/gl_anytree_list1.h: New file.
72940         * lib/gl_anytree_list2.h: New file.
72941         * lib/gl_linkedhash_list.h: New file.
72942         * lib/gl_linkedhash_list.c: New file.
72943         * lib/gl_anyhash_list1.h: New file.
72944         * lib/gl_anyhash_list2.h: New file.
72945         * lib/gl_avltreehash_list.h: New file.
72946         * lib/gl_avltreehash_list.c: New file.
72947         * lib/gl_rbtreehash_list.h: New file.
72948         * lib/gl_rbtreehash_list.c: New file.
72949         * lib/gl_anytreehash_list1.h: New file.
72950         * lib/gl_anytreehash_list2.h: New file.
72951
72952         * lib/gl_oset.h: New file.
72953         * lib/gl_oset.c: New file.
72954         * lib/gl_array_oset.h: New file.
72955         * lib/gl_array_oset.c: New file.
72956         * lib/gl_avltree_oset.h: New file.
72957         * lib/gl_avltree_oset.c: New file.
72958         * lib/gl_rbtree_oset.h: New file.
72959         * lib/gl_rbtree_oset.c: New file.
72960         * lib/gl_anytree_oset.h: New file.
72961
72962 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72963
72964         * m4/mkancesdirs.m4: New file.
72965         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
72966         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
72967         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
72968         it.
72969
72970 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72971
72972         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
72973         * lib/mkancesdirs.h: New files.
72974         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
72975         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
72976         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
72977         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
72978         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
72979         callers changed.  Revamp internals significantly, by not
72980         attempting to create directories that are temporarily more
72981         permissive than the final results.  Do not attempt to use
72982         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
72983         This removes some race conditions, fixes some bugs, and simplifies
72984         things.  Use new dirchownmod function to do owner and mode changes.
72985         * lib/mkdir-p.h: Likewise.
72986         * lib/modechange.c (octal_to_mode): New function.
72987         (struct mode_change): New member mentioned.
72988         (make_node_op_equals): New arg mentioned.  All callers changed.
72989         (mode_compile): Keep track of which mode bits the user has explicitly
72990         mentioned.
72991         (mode_adjust): New arg DIR, so that we implement the X op correctly.
72992         New arg PMODE_BITS, to keep track of which mode bits the user
72993         mentioned; it treats S_ISUID and S_ISGID speciall.
72994         All callers changed.
72995         * lib/modechange.h: Likewise.
72996
72997 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72998
72999         * MODULES.html.sh: Add mkancestors.
73000         * modules/mkancesdirs: New module.
73001         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
73002         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
73003         The chdir-safer and afs files are now orphans; I'll remove them
73004         unless someone speaks up.
73005         Add lib/dirchownmod.c, lib/dirchownmod.h.
73006         (Depends-on): Remove alloca, chown, save-cwd, dirname.
73007         Add lchown, mkancesdirs.
73008         (Maintainer): Add self.
73009
73010 2006-07-15  Karl Berry  <karl@gnu.org>
73011
73012         * gnulib-tool: help message wording/arrangement.
73013
73014 2006-07-14  Simon Josefsson  <jas@extundo.com>
73015
73016         * doc/gnulib.texi (Libtool and Windows): New section.
73017
73018 2006-07-12  Simon Josefsson  <jas@extundo.com>
73019
73020         * modules/gendocs (License): Fix license, approved by Karl.
73021
73022 2006-07-12  Eric Blake  <ebb9@byu.net>
73023
73024         * MODULES.html.sh: Add gendocs.
73025
73026 2006-07-11  Eric Blake  <ebb9@byu.net>
73027
73028         * modules/fdl: New module, to install doc/fdl.texi.
73029         * MODULES.html.sh: Add new section for documentation modules.
73030         * gnulib-tool: Avoid space-tab.
73031         (--doc-base): New option, to manage files from doc.
73032
73033 2006-07-11  Eric Blake  <ebb9@byu.net>
73034
73035         * m4/absolute-header.m4: Fix comments to match recent change.
73036
73037 2006-07-11  Eric Blake  <ebb9@byu.net>
73038
73039         * gnulib-tool: List --doc-base before --tests-base.
73040
73041 2006-07-11  Derek R. Price  <derek@ximbiot.com>
73042
73043         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
73044
73045 2006-07-11  Bruno Haible  <bruno@clisp.org>
73046
73047         * README: Mention where to put documentation.
73048
73049 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73050
73051         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
73052
73053 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
73054
73055         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
73056         to stdint.m4.
73057
73058 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
73059
73060         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
73061         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
73062         "no/such/file/stdint.h" when there is no such file, so that
73063         the resulting C code can be parsed by dodgy compilers.
73064         Problems reported by Bob Proulx.
73065
73066 2006-07-10  Derek R. Price  <derek@ximbiot.com>
73067
73068         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
73069         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
73070         macros into the GNU _D_EXACT_NAMLEN.
73071         * lib/savedir.c:  Likewise.
73072         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
73073
73074 2006-07-10  Derek R. Price  <derek@ximbiot.com>
73075         and Paul Eggert  <eggert@cs.ucla.edu>
73076
73077         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
73078         * m4/savedir.m4:
73079         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
73080         macros into the GNU _D_EXACT_NAMLEN.
73081
73082 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73083
73084         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
73085         around the absolute name, to work around a problem with the HP-UX
73086         11.23 native C compiler, reported by Bob Proulx.
73087
73088 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73089
73090         * doc/maintain.texi, make-stds.texi: Sync from
73091         <http://savannah.gnu.org/projects/gnustandards>.
73092
73093 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
73094
73095         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
73096
73097 2006-07-09  Jim Meyering  <jim@meyering.net>
73098
73099         * m4/glob.m4: Remove a doubled word in a comment.
73100
73101 2006-07-09  Jim Meyering  <jim@meyering.net>
73102
73103         * lib/argp-pv.c: Remove a doubled word in a comment.
73104         * lib/check-version.c (check_version): Likewise.
73105         * lib/javacomp.c (compile_java_class): Likewise.
73106
73107 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
73108
73109         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
73110         for the benefit of people using Autoconf 2.60.  If you want to
73111         support older Autoconf versions you can copy m4/onceonly_2_57.m4
73112         (or m4/onceonly.m4, if pre-2.57) manually.
73113
73114 2006-07-08  Jim Meyering  <jim@meyering.net>
73115
73116         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
73117         comment.
73118         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
73119         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
73120         comment.
73121
73122 2006-07-08  Jim Meyering  <jim@meyering.net>
73123
73124         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
73125
73126 2006-07-07  Simon Josefsson  <jas@extundo.com>
73127
73128         * tests/test-crc.c: Change expected crc value, the test vector
73129         were probably computed using the old broken crc.c?
73130
73131 2006-07-06  Simon Josefsson  <jas@extundo.com>
73132
73133         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
73134         now the canonical place for the M4 file).
73135
73136         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
73137         from the sys_socket dependency now.
73138
73139         * modules/inet_pton (Files): Ditto.
73140
73141         * modules/inet_ntop (Files): Ditto.
73142
73143 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
73144
73145         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
73146         not gl_PREREQ_GETUSERSHELL.
73147
73148 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73149
73150         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
73151         with only one argument, for Autoconf 2.60.
73152         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
73153         expand to nothing, so add a shell command to avoid syntax error.
73154         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
73155
73156 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73157
73158         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
73159
73160 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73161
73162         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
73163         no longer needed.  Check for isblank decl.
73164         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
73165         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
73166         of existence.
73167
73168 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73169
73170         * lib/getloadavg.c: Use __VMS, not VMS.
73171         * lib/getopt.c: Likewise.
73172         * lib/getpagesize.h: Likewise.
73173         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
73174         and probably does not work.
73175
73176 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73177
73178         * lib/.cppi-disable: Add wcwidth.
73179         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
73180         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
73181         (ISGRAPH): Remove.  All uses changed to isgraph.
73182         (FOLD) [!defined _LIBC]: Remove special case.
73183         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
73184         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
73185         HAVE_ISBLANK.
73186         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
73187         case.
73188
73189 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
73190
73191         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
73192         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
73193         brackets.  Other minor changes to suppress some compiler
73194         warnings.
73195
73196 2006-07-06  Derek R. Price  <derek@ximbiot.com>
73197         and Paul Eggert  <eggert@cs.ucla.edu>
73198
73199         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
73200         of invoking obsolescent AC_HEADER_DIRENT macro.
73201         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
73202         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
73203         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
73204         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
73205         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
73206         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
73207         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
73208         * m4/readdir.m4: Remove; no longer needed.
73209
73210 2006-07-06  Derek R. Price  <derek@ximbiot.com>
73211         and Paul Eggert  <eggert@cs.ucla.edu>
73212
73213         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
73214         Don't worry about this obsolete case any more.
73215         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
73216         directories.
73217         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
73218         worry about this obsolete case any more.
73219         * lib/fts.c: Likewise.
73220         * lib/getcwd.c: Likewise.
73221         * lib/glob.h: Likewise.
73222         * lib/savedir.c: Likewise.
73223
73224 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73225
73226         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
73227         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
73228         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
73229         needed.
73230         All uses removed.
73231         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73232         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
73233         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
73234         needed.
73235         * m4/getdate.m4 (gl_GETDATE): Likewise.
73236         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
73237         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
73238         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
73239         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73240         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
73241         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73242         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
73243         needed.
73244
73245 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73246
73247         * lib/memcasecmp.c: Include <limits.h>.
73248         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
73249         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
73250         Don't assume isdigit succeeds only on '0' through '9'.
73251
73252 2006-07-05  Eric Blake  <ebb9@byu.net>
73253
73254         * modules/getaddrinfo (Depends-on): Add snprintf.
73255
73256 2006-07-05  Eric Blake  <ebb9@byu.net>
73257
73258         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
73259         to avoid 'header present but could not be compiled' on cygwin.
73260
73261 2006-07-05  Eric Blake  <ebb9@byu.net>
73262
73263         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
73264         missing from netdb.h.
73265         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
73266
73267 2006-07-05  Derek R. Price  <derek@ximbiot.com>
73268
73269         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
73270         no longer needed.
73271         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
73272         * m4/getdate.m4 (gl_GETDATE): Likewise.
73273         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
73274         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
73275         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
73276         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
73277         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73278
73279 2006-07-05  Derek R. Price  <derek@ximbiot.com>
73280
73281         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
73282         All uses of is_space replaced by isspace.
73283         * lib/exit.h: Don't talk about STDC_HEADERS.
73284         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
73285         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
73286         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
73287         replaced by isprint etc.
73288         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
73289         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
73290         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
73291         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
73292         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
73293         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
73294
73295 2006-07-05  Bruno Haible  <bruno@clisp.org>
73296
73297         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
73298         the function exists, before testing against AIX.
73299         Reported by Martin Lambers <marlam@marlam.de>.
73300
73301 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
73302
73303         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
73304         From Mark D. Baushke.
73305
73306 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
73307
73308         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
73309         to the absolute name, not just one, to bypass Sun C 5.8's
73310         "warning: #include of /usr/include/... may be non-portable".
73311
73312 2006-07-04  Eric Blake  <ebb9@byu.net>
73313
73314         * modules/dirname-tests: New test module.
73315         * tests/test-dirname.c: New file, replacing dirname.c
73316         TEST_DIRNAME section that was recently deleted.
73317
73318 2006-07-04  Bruno Haible  <bruno@clisp.org>
73319
73320         Assume ANSI C header files and <ctype.h> functions.
73321         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
73322         (mbsnwidth): Use isprint, iscntrl instead.
73323
73324 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73325
73326         Merge from coreutils.
73327         * MODULES.html.sh: Add xstrtold.
73328         * modules/xstrtold: New file.
73329         * modules/cycle-check (Files): Add lib/same-inode.h.
73330         * modules/dirname (Files): Add m4/double-slash-root.m4.
73331         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
73332         * modules/mkdir-p (Files): Add lib/same-inode.h.
73333         * modules/same (Files): Add lib/same-inode.h.
73334
73335 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73336
73337         * m4/absolute-header.m4: Renamed from full-header-path.m4.
73338         This is to keep the terminology clean; POSIX talks about
73339         "absolute pathnames", not "full pathnames", but the GNU
73340         Coding Standards say to use "path" for something else;
73341         so use "absolute" to keep both sides happy.
73342         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
73343         Set gl_absolute_header, not gl_full_header_path.
73344         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
73345         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
73346         All uses changed.
73347
73348         Merge from coreutils.
73349
73350         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
73351
73352         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
73353         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
73354         want to require the building of c-strtod.o.
73355         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
73356         needs -lm directly.
73357         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
73358
73359         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
73360
73361         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
73362         --as-needed option if available.  Problem reported by Albert Chin in
73363         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
73364         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
73365         cc merely issues a bunch of annoying warnings for --as-needed
73366         (this problem was reported by Bob Proulx).  Also, try linking with
73367         -lm to detect a bug in binutils 2.16 (this problem was reported
73368         by Ralf Wildenhues).
73369
73370         2006-06-18  Jim Meyering  <jim@meyering.net>
73371
73372         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
73373         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
73374         macro.
73375         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
73376         also check for glibc-2.4's abort-inducing bug.
73377
73378         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
73379         Low-probability clean-up should be to use rmdir to get rid of
73380         the just-created directory, not unlink.
73381
73382         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
73383         configure fail, and request a bug report to inform us about it.
73384         Add a comment that, barring reports to the contrary, in 2007 we'll
73385         assume ftruncate is universally available.
73386
73387         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
73388
73389         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
73390
73391         2006-03-12  Jim Meyering  <jim@meyering.net>
73392
73393         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
73394         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
73395         * m4/same.m4 (gl_SAME): Likewise.
73396         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
73397
73398         2006-03-11  Eric Blake  <ebb9@byu.net>
73399
73400         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
73401         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
73402         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
73403         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
73404
73405 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73406
73407         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
73408         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
73409         reported by Mark D. Baushke, one in
73410         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
73411
73412         Merge from coreutils.
73413
73414         * lib/.cppi-disable: Add stdint_.h.
73415         * lib/.cvsignore: Add stdint.h.
73416
73417         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
73418
73419         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
73420         both double and long double versions.
73421         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
73422         * lib/xstrtold.c: New file.
73423         * lib/xstrtod.h (xstrtold): New decl.
73424
73425         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73426
73427         * lib/filemode.c (setst): Remove.
73428         (strmode): Rewrite to avoid setst.  This makes the code shorter,
73429         (arguably) clearer, and the generated code is a bit smaller on my
73430         Debian GNU/Linux stable x86 host.
73431
73432         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
73433
73434         * lib/filemode.c: Include "filemode.h" first, to test the interface.
73435         Assume that filemode.h includes sys/types.h and sys/stat.h.
73436         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
73437         (ftypelet): Reorder to put common cases first, for efficiency.
73438         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
73439         to do 'M'.
73440         (strmode): Renamed from mode_string, and now stores 12 bytes instead
73441         of 10, for compatibility with FreeBSD.  All callers changed.
73442         (filemodestring): Now stores 12 bytes instead of 10, and sets file
73443         types that can't be deduced solely from st_mode.  First arg is now a
73444         const pointer.
73445         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
73446         (strmode): Renamed from mode_string.
73447         (filemodestring): New decl.
73448         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
73449         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
73450         needed.
73451         (S_ISPORT, S_ISWHT): New macros, if not already defined.
73452
73453         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
73454
73455         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
73456         fsusage.h now does that.  Include fsusage.h first, to test interface.
73457         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
73458         at most one method (the old code could have generated decls that
73459         didn't conform to C89, not that this was ever exercised).
73460         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
73461
73462         2006-03-19  Jim Meyering  <jim@meyering.net>
73463
73464         Work even in a chroot where d_ino values for entries in "/"
73465         don't match the stat.st_ino values for the same names.
73466         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
73467         number, iterate through all entries again, using lstat instead.
73468         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
73469         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
73470
73471         * lib/getcwd.c (__getcwd): Clarify a comment.
73472         Use memcpy in place of a call to strcpy.
73473
73474         2006-03-12  Jim Meyering  <jim@meyering.net>
73475
73476         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
73477         matches that of the current directory (which we're about to chdir ".."
73478         out of), then save the dev-ino of the parent, instead.
73479
73480         * lib/same-inode.h (SAME_INODE): New file/macro.
73481         * lib/chdir-safer.c (SAME_INODE): Remove definition.
73482         Include "same-inode.h", instead.
73483         * lib/same.c: Likewise.
73484         * lib/cycle-check.h: Include "same-inode.h".
73485         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
73486         * lib/cycle-check.c (SAME_INODE): Remove definition.
73487         * lib/root-dev-ino.h: Include "same-inode.h".
73488
73489         2006-03-11  Eric Blake  <ebb9@byu.net>
73490
73491         * lib/same.c (same_name): s/base_name/last_component/
73492         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
73493         * lib/filenamecat.c (file_name_concat): Likewise.
73494
73495         2006-03-11  Eric Blake  <ebb9@byu.net>,
73496                     Paul Eggert  <eggert@cs.ucla.edu>
73497
73498         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
73499         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
73500         drive prefix.
73501         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
73502         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
73503         (last_component): New method.
73504         * lib/dirname.c (dir_len): Determine when drive letters need a
73505         subsequent slash.  Preserve // when it is special.
73506         (dir_name): Don't append dot when drive letter is absolute.
73507         [TEST_DIRNAME]: Move into a full-blown gnulib test.
73508         * lib/basename.c (base_name): New semantics - malloc the result.
73509         Preserve // when it is special.  Preserve relative files that look
73510         like drive letters.
73511         (base_len): Preserve // when it is special.
73512         (last_component): New method, similar to old base_name semantics.
73513         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
73514         base_name.  Strip redundant slashes from ///.
73515
73516 2006-07-03  Jim Meyering  <jim@meyering.net>
73517
73518         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
73519         macro is used before the first cycle_check call.
73520
73521 2006-07-03  Eric Blake  <ebb9@byu.net>
73522
73523         * modules/dirname (Depends-on): Add xstrndup.
73524
73525 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
73526
73527         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
73528         test cases, so that config.log is a bit easier to follow.
73529
73530 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
73531
73532         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
73533         both are 64 bits, since this seems to be the tradition, and this
73534         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
73535         we ever run into a host that prefers long long to long in this
73536         case, we'll need another configure-time test.  Problem reported by
73537         Jim Meyering.
73538
73539 2006-07-02  Eric Blake  <ebb9@byu.net>
73540
73541         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
73542
73543 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73544
73545         * modules/inttypes (Depends-on): No longer depends on stdint.
73546         * modules/stdint (Description): Say more about assumptions.
73547         Say that the fast types might differ.  Say macros are used.
73548         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
73549         (Makefile.am): Revise list of substituted symbols to match
73550         new stdint.m4.
73551         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
73552         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
73553         * tests/test-stdint.c (verify_same_types)
73554         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
73555         the code conforms to C99/C89.
73556         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
73557         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
73558
73559 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73560
73561         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
73562         but fix a bug, by requiring at least 64 bits.
73563         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
73564         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
73565         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
73566         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
73567
73568         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
73569         changes.  Make 2.59 a prerequisite.  Check and substitute for
73570         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
73571         inttypes.h.  Do not use special include files; just use the
73572         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
73573         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
73574         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
73575         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
73576         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
73577         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
73578         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
73579         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
73580         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
73581         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
73582         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
73583         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
73584         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
73585         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
73586         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
73587         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
73588         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
73589         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
73590         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
73591         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
73592         WINT_MAX.  Check for C99 conformance more strictly, by detecting
73593         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
73594         not check for things that C99 does not require, e.g., int8_t.  If
73595         a test isn't needed unless <stdint.h> isn't working, and is
73596         unlikely to be needed for any other reason, then don't do it
73597         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
73598         size_t, since we assume C89 freestanding at least.  Do not check
73599         for sig_atomic_t, wchar_t, or wint_t, since the code now does
73600         the right thing even if the types are not defined.  Instead use:
73601         (gl_STDINT_TYPE_PROPERTIES): New macro.
73602         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
73603         testing whether <sys/types.h> clashes, as Autoconf does this for
73604         us now.  All uses removed.
73605         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
73606         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
73607         (gl_CHECK_TYPE_SAME):
73608         Remove; no longer needed.
73609         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
73610         exists, since we'll return 0 anyway in that case.
73611         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
73612
73613 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73614
73615         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
73616         possible collision with system files.
73617         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
73618         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
73619         WCHAR_MIN and WCHAR_MAX in this case.
73620         (<stddef.h>): Do not include; no longer needed.
73621         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
73622         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
73623         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
73624         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
73625         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
73626         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
73627         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
73628         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
73629         !defined(__c99))]: Include in this case too, since it's harmless
73630         now.
73631         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
73632         dangerous to do so.
73633         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
73634         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
73635         (_STDINT_MIN, _STDINT_MAX): New macros.
73636         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
73637         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
73638         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
73639         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
73640         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
73641         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
73642         macros, not typedefs; this simplifies things quite a bit.
73643         Use long int for all types narrower than int64_t.
73644         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
73645         Define in terms of long long int or int64_t or long int,
73646         not int64_t or int32_t.  This saves some compile-time testing.
73647         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
73648         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
73649         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
73650         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
73651         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
73652         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
73653         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
73654         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
73655         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
73656         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
73657         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
73658         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
73659         undef any previous version and define our own version, for
73660         simplicity and consistency with the new macros for types.
73661         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
73662         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
73663         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
73664         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
73665         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
73666         @WINT_T_SUFFIX@ to keep things simple here.
73667         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
73668         Simplify by assuming typical 8/16/32/64 host, since we're
73669         already doing that elsewhere anyway.
73670         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
73671         and assume long long int is 64 bits if available.  This
73672         speeds up 'configure'.
73673
73674 2006-07-01  Eric Blake  <ebb9@byu.net>
73675
73676         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
73677         Reported by Andreas Buening.
73678
73679 2006-07-01  Eric Blake  <ebb9@byu.net>
73680
73681         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
73682
73683 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
73684
73685         * lib/getaddrinfo.c: fixed typo
73686
73687 2006-06-29  Jim Meyering  <jim@meyering.net>
73688
73689         * modules/strftime (Maintainer): Add my name, since with the
73690         FPRINTFTIME changes strftime.c has forked from glibc.
73691
73692 2006-06-29  Eric Blake  <ebb9@byu.net>
73693
73694         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
73695
73696 2006-06-29  Eric Blake  <ebb9@byu.net>
73697
73698         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
73699
73700 2006-06-29  Eric Blake  <ebb9@byu.net>
73701
73702         * lib/stat_.h: New file.
73703
73704 2006-06-29  Eric Blake  <ebb9@byu.net>
73705
73706         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
73707         unused static function.
73708
73709 2006-06-29  Eric Blake  <ebb9@byu.net>
73710
73711         * doc/functions.texi (Function Portability): Document missing lstat
73712         on mingw.
73713
73714 2006-06-29  Eric Blake  <ebb9@byu.net>
73715
73716         * MODULES.html.sh: Add sys_stat.
73717         * modules/sys_stat: New module.
73718         * modules/mkstemp (Depends-on): Add sys_stat.
73719
73720 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73721
73722         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
73723
73724 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73725
73726         * m4/c-bs-a.m4: Removed.
73727
73728 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73729
73730         * lib/strftime.c: Assume strftime() exists.
73731
73732 2006-06-29  Derek Price  <derek@ximbiot.com>
73733
73734         * modules/c-bs-a: Removed - \a is C89.
73735         * MODULES.html.sh: Remove c-bs-a.
73736
73737 2006-06-29  Bruno Haible  <bruno@clisp.org>
73738
73739         * modules/wcwidth (License): Change to LGPL.
73740
73741 2006-06-28  Simon Josefsson  <jas@extundo.com>
73742
73743         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
73744         on _WIN32.
73745
73746         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
73747         getnameinfo.
73748
73749 2006-06-28  Simon Josefsson  <jas@extundo.com>
73750
73751         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
73752
73753 2006-06-28  Simon Josefsson  <jas@extundo.com>
73754
73755         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
73756         functions there.  It will succeed on Windows XP, but on Windows
73757         2000 and (presumably) earlier, it will fail, and use the internal
73758         re-implementation.
73759         (use_win32_p): New function.
73760         (getaddrinfo): Use strtoul on servname, to support numeric ports.
73761         Support AI_NUMERICSERV to disable getservbyname.
73762         (getnameinfo): New function, only supports
73763         NI_NUMERICHOST|NI_NUMERICSERV for now.
73764
73765         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
73766         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
73767         getnameinfo.
73768
73769 2006-06-28  Eric Blake  <ebb9@byu.net>
73770
73771         * modules/wcwidth: New file.
73772         * modules/mbchar (Depends-on): Add wcwidth.
73773         * modules/mbswidth (Depends-on): Add wcwidth.
73774         * MODULES.html.sh: Add wcwidth.
73775
73776 2006-06-28  Eric Blake  <ebb9@byu.net>
73777
73778         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
73779         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
73780
73781 2006-06-28  Eric Blake  <ebb9@byu.net>
73782
73783         * lib/xvasprintf.h: Fix comments.
73784
73785 2006-06-28  Eric Blake  <ebb9@byu.net>
73786
73787         * lib/mbchar.h (wcwidth): Include wcwidth.h.
73788         * lib/mbswidth.c (wcwidth): Move from here...
73789         * lib/wcwidth.h: ...to this new file.
73790
73791 2006-06-28  Derek R. Price  <derek@ximbiot.com>
73792
73793         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
73794
73795         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
73796         it's obsolete.
73797         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
73798
73799 2006-06-28  Derek R. Price  <derek@ximbiot.com>
73800
73801         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
73802         Autoconf 2.60 says this stuff was obsolete.
73803
73804 2006-06-28  Bruno Haible  <bruno@clisp.org>
73805
73806         * modules/wcwidth (Files): Add m4/wchar_t.m4.
73807
73808 2006-06-28  Bruno Haible  <bruno@clisp.org>
73809
73810         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
73811         gt_TYPE_WCHAR_T.
73812
73813 2006-06-28  Bruno Haible  <bruno@clisp.org>
73814
73815         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
73816         declaration for wcwidth.
73817         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
73818
73819 2006-06-28  Bruno Haible  <bruno@clisp.org>
73820
73821         * lib/mkdtemp.c [MINGW]: Include <io.h>.
73822         (mkdir): Define using _mkdir.
73823
73824 2006-06-28  Bruno Haible  <bruno@clisp.org>
73825
73826         * lib/getaddrinfo.h: Fix POSIX URL.
73827         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
73828         _WIN32.
73829         (use_win32_p): Make static.
73830         (getaddrinfo): Reject service name if it is empty or does not consist
73831         solely of decimal digits, or if its value is > 65535.
73832         (getnameinfo): Remove useless casts.
73833
73834 2006-06-27  Simon Josefsson  <jas@extundo.com>
73835
73836         * modules/sys_select: New file, suggested by Bruno Haible, Paul
73837         Eggert and Martin Lambers.
73838
73839 2006-06-27  Simon Josefsson  <jas@extundo.com>
73840
73841         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
73842         Eggert and Martin Lambers.
73843
73844 2006-06-27  Bruno Haible  <bruno@clisp.org>
73845
73846         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
73847         result to 0, not to empty.
73848         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
73849
73850 2006-06-27  Bruno Haible  <bruno@clisp.org>
73851
73852         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
73853
73854 2006-06-26  Simon Josefsson  <jas@extundo.com>
73855
73856         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
73857         present.
73858
73859 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
73860
73861         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
73862         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
73863         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
73864
73865 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
73866
73867         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
73868
73869 2006-06-26  Bruno Haible  <bruno@clisp.org>
73870
73871         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
73872
73873 2006-06-26  Bruno Haible  <bruno@clisp.org>
73874
73875         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
73876
73877 2006-06-26  Bruno Haible  <bruno@clisp.org>
73878
73879         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
73880         SGI C compiler in pre-C99 mode.
73881         Suggested by Mark D. Baushke and Larry Jones.
73882
73883 2006-06-26  Bruno Haible  <bruno@clisp.org>
73884
73885         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
73886         WCHAR_MAX.
73887         Reported by Mark D. Baushke and Larry Jones.
73888
73889 2006-06-26  Bruno Haible  <bruno@clisp.org>
73890
73891         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
73892         in pre-C99 mode.
73893         Suggested by Mark D. Baushke and Larry Jones.
73894
73895 2006-06-23  Simon Josefsson  <jas@extundo.com>
73896             Bruno Haible  <bruno@clisp.org>
73897
73898         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
73899         Emit mostlyclean-local rule.
73900         (func_emit_tests_Makefile_am): Likewise.
73901         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
73902
73903 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
73904
73905         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
73906
73907 2006-06-23  Bruno Haible  <bruno@clisp.org>
73908
73909         * tests/test-stdint.c: Update to match ISO C 99 Technical
73910         Corrigendum 1.
73911
73912 2006-06-23  Bruno Haible  <bruno@clisp.org>
73913
73914         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
73915
73916 2006-06-23  Bruno Haible  <bruno@clisp.org>
73917
73918         * lib/stdint_.h: Treat IRIX like OpenBSD.
73919
73920 2006-06-23  Bruno Haible  <bruno@clisp.org>
73921
73922         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
73923         ISO C 99 Technical Corrigendum 1.
73924
73925 2006-06-22  Simon Josefsson  <jas@extundo.com>
73926
73927         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
73928         MinGW.
73929
73930 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73931
73932         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
73933         needed.  Some compiler complained about some of them.  Problem reported
73934         by Larry Jones in
73935         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
73936
73937 2006-06-21  Simon Josefsson  <jas@extundo.com>
73938
73939         * tests/test-getaddrinfo.c: New file.
73940
73941         * modules/getaddrinfo-tests: New file.
73942
73943         * MODULES.html.sh: Add inet_pton.
73944
73945         * modules/inet_pton: New file.
73946
73947 2006-06-21  Simon Josefsson  <jas@extundo.com>
73948
73949         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
73950         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
73951         of using the (limited) gnulib implementation on Windows XP.
73952
73953         * m4/inet_pton.m4: New file.
73954
73955 2006-06-21  Simon Josefsson  <jas@extundo.com>
73956
73957         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
73958         variable.
73959
73960         * lib/socket_.h: Don't define WINVER.
73961
73962         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
73963         slightly modified to work in gnulib.
73964
73965 2006-06-21  Simon Josefsson  <jas@extundo.com>
73966
73967         * doc/gnulib.texi (Windows sockets): Add.
73968
73969 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
73970
73971         * lib/read-file.c (fread_file): Start with buffer allocation of
73972         0 bytes rather than 1 byte; this simplifies the code.
73973         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
73974         code to free buffer and save/restore errno.
73975         (internal_read_file): Remove unused local.
73976
73977 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
73978
73979         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
73980         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
73981         Problem reported by Denis Excoffier in
73982         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
73983
73984 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73985
73986         * modules/sys_socket, modules/socklen: Include sys/types since
73987         FreeBSD 4.x's sys/socket.h needs it.
73988
73989 2006-06-19  Simon Josefsson  <jas@extundo.com>
73990
73991         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
73992
73993 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
73994
73995         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
73996
73997 2006-06-19  Bruno Haible  <bruno@clisp.org>
73998
73999         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
74000         and FULL_PATH_INTTYPES_H in angle brackets.
74001         Reported by Mark D. Baushke <mdb@gnu.org>.
74002
74003 2006-06-17  Eric Blake  <ebb9@byu.net>
74004
74005         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
74006         errno.
74007
74008 2006-06-17  Bruno Haible  <bruno@clisp.org>
74009
74010         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
74011         <sys/inttypes.h>.
74012
74013 2006-06-17  Bruno Haible  <bruno@clisp.org>
74014
74015         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
74016         whether errno is declared. Assume <errno.h> declares errno.
74017
74018 2006-06-17  Bruno Haible  <bruno@clisp.org>
74019
74020         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
74021
74022 2006-06-17  Bruno Haible  <bruno@clisp.org>
74023
74024         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
74025         problem on Solaris 2.5.1.
74026
74027 2006-06-16  Eric Blake  <ebb9@byu.net>
74028
74029         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
74030         * lib/unicodeio.c [!defined errno]: Likewise.
74031         * lib/strtol.c [!defined errno]: Likewise.
74032         * lib/strtod.c [!defined errno]: Likewise.
74033
74034 2006-06-15  Eric Blake  <ebb9@byu.net>
74035
74036         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
74037
74038 2006-06-15  Eric Blake  <ebb9@byu.net>
74039
74040         * config/srclist.txt (ssize_t.m4): Lose sync.
74041
74042 2006-06-15  Bruno Haible  <bruno@clisp.org>
74043
74044         * modules/stdint (Files): Include m4/full-header-path.m4,
74045         m4/size_max.m4, m4/wchar_t.m4.
74046         (Makefile.am): Many more substitutions.
74047         * modules/stdint-tests: New file.
74048         * tests/test-stdint.c: New file.
74049
74050 2006-06-15  Bruno Haible  <bruno@clisp.org>
74051
74052         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
74053         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
74054         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
74055         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
74056         gl_CHECK_TYPE_SAME): New macros.
74057
74058 2006-06-15  Bruno Haible  <bruno@clisp.org>
74059
74060         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
74061
74062 2006-06-15  Bruno Haible  <bruno@clisp.org>
74063
74064         * lib/stdint_.h: Rewritten to be fully auto-configured.
74065         Fixes bug on HP-UX/IA64.
74066
74067 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
74068
74069         * lib/getdate.y (__attribute__): Don't define if already defined.
74070         Problem reported by Larry Jones.
74071         * lib/utimens.c (__attribute__): Likewise.
74072
74073 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
74074
74075         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
74076         reported by Andreas Schwab.
74077
74078 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74079             Bruno Haible  <bruno@clisp.org>
74080
74081         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
74082         check for the declaration of strnlen and a run test that exposes the
74083         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
74084         rpl_strndup.
74085
74086 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74087             Bruno Haible  <bruno@clisp.org>
74088
74089         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
74090
74091 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74092
74093         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
74094         compile test, for Tru64 4.0D.
74095
74096 2006-05-28  Karl Berry  <karl@gnu.org>
74097
74098         * config/srclist.txt (printf-args.c): lose sync.
74099
74100 2006-05-26  Martin Lambers  <marlam@marlam.de>
74101
74102         * lib/getpass.c: Updates the test for the native W32 API, and adds
74103         missing includes, thus fixing compilation warnings.
74104
74105 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74106
74107         * lib/exclude.c (exclude_fnmatch): New function.
74108         (excluded_file_name): Call exclude_fnmatch.
74109         * lib/exclude.h (excluded_file_name): New prototype
74110
74111 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
74112
74113         * lib/tempname.c (small_open, large_open): New macros.
74114         (__open, __open64) [!_LIBC]: Remove.
74115         (__gen_tempname): Use small_open and large_open instead of __open
74116         and __open64.  This fixes a portability bug on HP-UX 11.11i
74117         reported by Simon Wing-Tang in
74118         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
74119
74120 2006-05-24  Bruno Haible  <bruno@clisp.org>
74121
74122         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
74123         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
74124         Reported by Thorsten Maerz <torte@netztorte.de> via
74125         Aaron Stone <aaron@serendipity.cx>.
74126
74127 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74128
74129         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
74130         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
74131         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
74132         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
74133         not really conditional on the cache.
74134         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
74135
74136 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
74137
74138         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
74139         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
74140         (my_usleep): Don't mishandle maximum value.
74141
74142 2006-05-19  Jim Meyering  <jim@meyering.net>
74143
74144         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
74145
74146 2006-05-17  Bruno Haible  <bruno@clisp.org>
74147
74148         Cygwin portability.
74149         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
74150
74151 2006-05-17  Bruno Haible  <bruno@clisp.org>
74152
74153         * lib/stdint_.h: Fix recognition of Cygwin.
74154
74155 2006-05-15  Bruno Haible  <bruno@clisp.org>
74156
74157         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
74158         on libtool patch by Ralf Wildenhues.
74159
74160 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
74161
74162         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
74163         test for C99 conformance; (bool) 0.5 is an integer constant
74164         expression, but (bool) -0.5 is not.  Problem reported by Fedor
74165         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
74166
74167 2006-05-11  Simon Josefsson  <jas@extundo.com>
74168
74169         * m4/xvasprintf.m4: Fix obvious typo.
74170
74171 2006-05-11  Jim Meyering  <jim@meyering.net>
74172
74173         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
74174         James Lemley.
74175
74176 2006-05-10  Simon Josefsson  <jas@extundo.com>
74177
74178         * lib/md4.c: Typo fix, update copyright years.
74179         (K1, K2): Don't use L because it turn computations into 64-bit on
74180         64-bit platforms.
74181
74182 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
74183
74184         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
74185         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
74186         unwanted sign propagation, e.g., on hosts with 64-bit int.
74187         There still are some problems with reeelly weird theoretical hosts
74188         (e.g., 33-bit int) but it's not worth worrying about now.
74189         * lib/sha1.c (rol): Likewise.
74190         (K1, K2, K3, K4): Remove unnecessary L suffix.
74191
74192 2006-05-10  Bruno Haible  <bruno@clisp.org>
74193
74194         * lib/des.c: Cast to avoid warnings.
74195
74196 2006-05-09  Bruno Haible  <bruno@clisp.org>
74197
74198         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
74199         (Depends-on): Depend also on xsize, stdarg.
74200         (configure.ac): Add gl_XVASPRINTF.
74201
74202 2006-05-09  Bruno Haible  <bruno@clisp.org>
74203
74204         * m4/xvasprintf.m4: New file.
74205
74206 2006-05-09  Bruno Haible  <bruno@clisp.org>
74207
74208         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
74209         (EOVERFLOW): Define fallback value.
74210         (xstrcat): New function.
74211         (xvasprintf): Recognize the special case of a string concatenation.
74212
74213 2006-05-08  Eric Blake  <ebb9@byu.net>
74214
74215         * gnulib-tool (func_version): Base copyright year on CVS date.
74216         (func_emit_copyright_notice): New function.
74217         (func_emit_lib_Makefile_am): Use it.
74218         (func_emit_tests_Makefile_am): Likewise.
74219         (func_import): Likewise.
74220
74221 2006-05-08  Bruno Haible  <bruno@clisp.org>
74222
74223         * modules/stdarg: New file.
74224         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
74225
74226 2006-05-08  Bruno Haible  <bruno@clisp.org>
74227
74228         * m4/stdarg.m4: New file, from GNU gettext.
74229
74230 2006-05-08  Bruno Haible  <bruno@clisp.org>
74231
74232         * config/srclist.txt (build-aux/config.rpath): different from latest
74233         release.
74234
74235 2006-05-08  Bruno Haible  <bruno@clisp.org>
74236
74237         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
74238
74239 2006-05-05  Jim Meyering  <jim@meyering.net>
74240
74241         * m4/warning.m4: New file, derived from bison's file by the same name.
74242
74243 2006-05-03  Bruno Haible  <bruno@clisp.org>
74244
74245         * lib/stdint_.h: Shorter URL.
74246         * lib/inttypes.h: Likewise.
74247
74248 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74249
74250         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
74251
74252 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74253
74254         * lib/verify.h: Document the internals better.  Most of this change
74255         was written by Bruno Haible.
74256
74257 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
74258
74259         * doc/verify.texi: New file, partly based on a proposal by
74260         Bruno Haible.
74261
74262 2006-05-02  Bruno Haible  <bruno@clisp.org>
74263
74264         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
74265         test from here...
74266         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
74267
74268 2006-04-29  Bruno Haible  <bruno@clisp.org>
74269
74270         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
74271         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
74272
74273 2006-04-29  Bruno Haible  <bruno@clisp.org>
74274
74275         * gnulib-tool: Make --update option actually work.
74276
74277 2006-04-29  Bruno Haible  <bruno@clisp.org>
74278
74279         * doc/gcd.texi: New file.
74280         * doc/gnulib.texi: Include it.
74281
74282 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
74283
74284         * lib/getdate.y (get_date): When adding relative date, start with the
74285         initial time, not with the result of the first mktime call.
74286
74287 2006-04-25  Bruno Haible  <bruno@clisp.org>
74288
74289         * gnulib-tool (func_import): Output the include directives in three
74290         blocks, sorted separately.
74291         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74292
74293 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74294
74295         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
74296         to define main with arguments, for C++.  Reported by Eric Blake.
74297         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
74298         Prefer 'int main ()' to 'int main (void)', for C++.
74299         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
74300         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
74301         for 'main', for C99 and C++.
74302
74303 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74304
74305         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
74306         Don't assume that exit status -1 is valid.
74307         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74308         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
74309         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
74310         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
74311         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
74312         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
74313         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
74314         functions can be used without declaring them, or that you can
74315         exit with status -1.
74316         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
74317
74318 2006-04-24  Karl Berry  <karl@gnu.org>
74319
74320         * config/srclist.txt (longdouble.m4): sync lost.
74321
74322 2006-04-24  Eric Blake  <ebb9@byu.net>
74323
74324         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
74325
74326 2006-04-24  Bruno Haible  <bruno@clisp.org>
74327
74328         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
74329         poll() implementation in AIX.
74330         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74331
74332 2006-04-24  Bruno Haible  <bruno@clisp.org>
74333
74334         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
74335         assigned exactly once.
74336
74337 2006-04-23  Claudio Fontana  <claudio@gnu.org>
74338             Bruno Haible  <bruno@clisp.org>
74339
74340         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
74341         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
74342         for AM_CPPFLAGS.
74343
74344 2006-04-23  Bruno Haible  <bruno@clisp.org>
74345
74346         * modules/copy-file: Depend on unistd.
74347         * modules/execute: Likewise.
74348         * modules/fatal-signal: Likewise.
74349         * modules/findprog: Likewise.
74350         * modules/mkdtemp : Likewise.
74351         * modules/pipe: Likewise.
74352         * modules/wait-process: Likewise.
74353
74354 2006-04-23  Bruno Haible  <bruno@clisp.org>
74355
74356         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
74357         condition was already detected.
74358         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74359
74360 2006-04-23  Bruno Haible  <bruno@clisp.org>
74361
74362         * lib/copy-file.c: Include <unistd.h> unconditionally.
74363         * lib/execute.c: Likewise.
74364         * lib/fatal-signal.c: Likewise.
74365         * lib/findprog.c: Likewise.
74366         * lib/mkdtemp.c: Likewise.
74367         * lib/pipe.h: Likewise.
74368         * lib/pipe.c: Likewise.
74369         * lib/wait-process.h: Likewise.
74370
74371 2006-04-23  Bruno Haible  <bruno@clisp.org>
74372
74373         * gnulib-tool (func_usage): Fix --import description. Document
74374         --update.
74375         (func_import): Create temporary file in a temporary directory, if
74376         --dry-run is specified. Silence errors from 'grep' when there are no
74377         m4 files in $m4dir.
74378         (func_create_testdir): Silence errors from 'grep' when there are no
74379         m4 files in $m4dir.
74380         Reported by Karl Berry <karl@freefriends.org>.
74381
74382 2006-04-20  Bruno Haible  <bruno@clisp.org>
74383
74384         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
74385         one argument, so that the code will be portable to Autoconf 2.60.
74386         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
74387         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
74388         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
74389
74390 2006-04-19  Derek Price  <derek@ximbiot.com>
74391             Eric Blake  <ebb9@byu.net>
74392
74393         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
74394         rather than "/full/path.h".  Update comment to match.  Shorten &
74395         generalize m4_translit call via AS_TR_CPP.
74396
74397 2006-04-19  Derek Price  <derek@ximbiot.com>
74398             Eric Blake  <ebb9@byu.net>
74399
74400         * lib/inttypes.h: Correct grammar in comment.
74401
74402 2006-04-18  Derek Price  <derek@ximbiot.com>
74403             Paul Eggert  <eggert@cs.ucla.edu>
74404
74405         * modules/inttypes: New file.
74406         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
74407
74408 2006-04-18  Derek Price  <derek@ximbiot.com>
74409             Paul Eggert  <eggert@cs.ucla.edu>
74410
74411         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
74412         New files.
74413
74414 2006-04-18  Derek Price  <derek@ximbiot.com>
74415             Paul Eggert  <eggert@cs.ucla.edu>
74416
74417         * lib/inttypes.h: New file.
74418         * lib/strtoimax.c: Assume <inttypes.h>.
74419
74420 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
74421
74422         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
74423         isn't mounted.  Problem reported by Kir Kolyshkin.
74424
74425 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
74426
74427         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
74428         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
74429         Derek R. Price.
74430         * lib/regex.h (RE_DUP_MAX): Update comment to match current
74431         implementation.
74432
74433 2006-04-12  Eric Blake  <ebb9@byu.net>
74434
74435         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
74436         is now done automatically by the corresponding Autoconf macro.
74437
74438 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
74439
74440         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
74441         time_r.h.
74442
74443 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74444
74445         Merge regex changes from libc, removing some of our
74446         POSIX-conformance changes that were rejected and redoing them in a
74447         less-intrusive way.
74448
74449         * lib/regcomp.c (re_compile_internal, init_dfa):
74450         Length arg is now size_t, not Idx.  All uses changed.
74451         (peek_token): Forward decl now says internal_function.
74452         (__re_error_msgid, __re_error_msgid_idx):
74453         Now static rather than extern with attribute_hidden.
74454         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
74455         For some reason libc prefers K&R style defns for external functions.
74456         (regerror) [!defined _LIBC]: Likewise.
74457         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
74458         (seek_collating_symbol_entry, lookup_collation_sequence_value):
74459         (build_range_exp, build_collating_symbol):
74460         Use K&R-style defn.
74461         (re_compile_fastmap): Use '\0' to memset, not 0.
74462         (utf8_sb_map): Make the calculations more obvious.
74463         (init_dfa, parse_bracket_exp, build_charclass_op):
74464         Call calloc and cast result, as glibc does.
74465         (init_word_char, fetch_token, peek_token, peek_token_bracket):
74466         (build_range_exp, build_collating_symbol):
74467         Now internal functions.
74468
74469         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
74470
74471         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
74472         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
74473         Don't depend on VMS; depend on __VMS instead, for POSIX
74474         namespace cleanness.
74475         (regoff_t): Define to ssize_t, not long int.
74476
74477         Remove the REG_ macros named below.  Instead, make the old names
74478         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
74479         __USE_GNU_REGEX.
74480         (REG_BACKSLASH_ESCAPE_IN_LISTS):
74481         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
74482         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
74483         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
74484         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
74485         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
74486         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
74487         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
74488         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
74489         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
74490         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
74491         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
74492         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
74493         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
74494         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
74495         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
74496         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
74497         (REG_NREGS):
74498         Remove.  All uses replaced by the old RE_* names.
74499         (RE_BACKSLASH_ESCAPE_IN_LISTS):
74500         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
74501         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
74502         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
74503         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
74504         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
74505         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
74506         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
74507         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
74508         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
74509         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
74510         Don't bother having these macros be independent of each others'
74511         values, since they no longer exist in the POSIX name space.
74512
74513         Rename the following member names back to their old names,
74514         unless !__USE_GNU_REGEX.  All uses changed back.
74515         (buffer): Renamed from re_buffer.
74516         (allocated): Renamed from re_allocated.
74517         (used): Renamed from re_used.
74518         (syntax): Renamed from re_syntax.
74519         (fastmap): Renamed from re_fastmap.
74520         (translate): Renamed from re_translate.
74521         (can_be_null): Renamed from re_can_be_null.
74522         (regs_allocated): Renamed from re_regs_allocated.
74523         (fastmap_accurate): Renamed from re_fastmap_accurate.
74524         (no_sub): Renamed from re_no_sub.
74525         (not_bol): Renamed from re_not_bol.
74526         (not_eol): Renamed from re_not_eol.
74527         (newline_anchor): Renamed from re_newline_anchor.
74528         (num_regs): Renamed from rm_num_regs.
74529         (start): Renamed from rm_start.
74530         (end): Renamed from rm_end.
74531
74532         (free_state): Move up a bit.
74533
74534         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
74535         #define to be empty.
74536         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
74537         when that is what is intended.
74538         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
74539         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
74540         (MAX): New macro.
74541         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
74542         All uses changed back to re_malloc, etc.  It's now the caller's
74543         responsibility to check for overflow; all callers changed.
74544         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
74545         (re_x2nrealloc): Remove.
74546         (free_state): Remove decl.
74547
74548         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
74549         (re_set_registers, re_exec):
74550         Use K&R-style defn.
74551
74552         2006-01-31  Roland McGrath  <roland@redhat.com>
74553
74554         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
74555         Reported by Mike Frysinger <vapier@gentoo.org>.
74556
74557         2006-01-15  Andreas Jaeger  <aj@suse.de>
74558
74559         [BZ #1950]
74560         * lib/regex_internal.c (re_string_reconstruct): Adjust for
74561         build_wcs_upper_buffer change.
74562         (build_wcs_upper_buffer): Change return type.
74563
74564         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
74565
74566         * lib/regex_internal.h: Include <stdint.h> if available.
74567
74568         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
74569
74570         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
74571
74572         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
74573
74574         * lib/regcomp.c: Adjust for changed secondary hash function.
74575
74576         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
74577
74578         * lib/regex.h: Pretty printing.
74579         Clean up namespace a bit.
74580
74581         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
74582
74583         * lib/regexec.c (update_cur_sifted_state, check_arrival,
74584         check_arrival_add_next_nodes): Avoid using uninitialized variable.
74585
74586         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74587                     Ulrich Drepper  <drepper@redhat.com>
74588
74589         [BZ #1302]
74590         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
74591         changed.
74592         (bitset_word_t): Renamed from bitset_word.  All uses changed.
74593
74594         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
74595
74596         [BZ #281]
74597         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
74598         * lib/regcomp.c: Remove unnecessary uses of
74599         unsigned RE_TRANSLATE_TYPE.
74600         * lib/regex_internal.h: Likewise.
74601         * lib/regex_internal.c: Likewise.
74602         * lib/regexec.c: Likewise.
74603         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
74604
74605         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
74606
74607         * lib/regexec.c (find_recover_state): Remove unnecessary
74608         initialization.
74609         (transit_state_bkref): Make DFA a const pointer.
74610         (get_subexp): Likewise.
74611         (check_arrival): Likewise.
74612         (update_cur_sifted_state): Likewise.
74613         (re_search_internal): Likewise.
74614         (prune_impossible_nodes): Likewise.
74615         (acquire_init_state_context): Likewise.
74616         (proceed_next_node): Likewise.
74617         (set_regs): Likewise.
74618         (free_fail_stack_return): Likewise.
74619         (check_arrival_expand_ecl): Mark DFA parameter as const.
74620         (check_arrival_expand_ecl_sub): Likewise.
74621         (check_subexp_limits): Likewise.
74622         (sub_epsilon_src_nodes):  Likewise.
74623         (add_epsilon_src_nodes):  Likewise.
74624         (merge_state_array): Likewise.
74625         (update_regs): Likewise.
74626         (build_trtable): Likewise.
74627         (sift_states_backward): Mark MCTX parameter as const.
74628         (build_sifted_states): Likewise.
74629         (update_cur_sifted_state): Likewise.
74630         (sift_states_mkref): Likewise.
74631         (check_arrival_expand_ecl): Mark eclosure as const.
74632         (check_dst_limits_calc_pos_1): Likewise.
74633         * lib/regex_internal.h (re_match_context_t): Make dfa a const
74634         pointer.
74635
74636         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
74637
74638         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
74639         (transit_state_sb): Likewise.
74640         (transit_state_mb): Likewise.
74641         (sift_states_iter_mb): Likewise.
74642         (check_arrival_add_next_nodes): Likewise.
74643         (check_node_accept_bytes): Change first parameter to pointer-to-const.
74644         [_LIBC] (re_search_2_stub): Use mempcpy.
74645
74646         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
74647         mbrtowc for very simple UTF-8 case.
74648
74649         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
74650         a pointer-to-const.
74651         (re_acquire_state_context): Likewise.
74652         * lib/regex_internal.h: Adjust prototypes.
74653
74654         * lib/regex.c: Prevent using C++ compilers.
74655
74656         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
74657         (re_acquire_state_context): Likewise.
74658
74659 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74660
74661         * modules/regex (Depends-on): Add ssize_t.
74662
74663 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74664
74665         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
74666         translation table.
74667
74668 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74669
74670         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
74671
74672 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
74673             Bruno Haible  <bruno@clisp.org>
74674
74675         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
74676         <sys/types.h> and <inttypes.h>.
74677
74678 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74679
74680         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
74681         `__error_t_defined', so argp.h will not typedef the former.
74682
74683 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
74684
74685         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
74686         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
74687         glibc names.  Even if glibc is changed to conform to POSIX, the
74688         traditional names will be available anyway, since regex depends on
74689         the extensions module.  Also, fix a longstanding typo in the
74690         implementation of Spencer ERE test #75 from grep 2.3.  Problems
74691         reported by Emanuele Giaquinta.  Also, change sense of cached
74692         variable, so that the message makes sense.
74693
74694 2006-03-24  Simon Josefsson  <jas@extundo.com>
74695
74696         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
74697         including some doc fixes.
74698         (base64_encode_alloc): Fix +1 bug on allocation failures.
74699
74700 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74701
74702         * lib/base64.c (base64_encode): Do not read past end of array with
74703         unsanitized input on systems with CHAR_BIT > 8.
74704
74705 2006-03-24  Eric Blake  <ebb9@byu.net>
74706
74707         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
74708
74709 2006-03-22  Karl Berry  <karl@gnu.org>
74710
74711         * config/srclist.txt (*setenv.[ch]): get from coreutils.
74712         * config/srclistvars.sh (COREUTILS): new var.
74713
74714 2006-03-17  Jim Meyering  <jim@meyering.net>
74715
74716         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
74717         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
74718
74719 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
74720
74721         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
74722         no longer needs it.  Instead, check that regoff_t is as least
74723         as wide as ptrdiff_t.
74724
74725         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
74726         so that our regex.h stays compatible with the installed regex.
74727         This is helpful for installers who configure --without-included-regex.
74728         Problem reported by Emanuele Giaquinta.
74729
74730 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
74731
74732         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
74733         Typedef to long int, not to off_, as POSIX will likely change
74734         in that direction.
74735
74736 2006-03-15  Eric Blake  <ebb9@byu.net>
74737
74738         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
74739
74740 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
74741
74742         * lib/argp-help.c (validate_uparams): Fix typo
74743         * lib/argp-parse.c (argp_default_options): Consistently begin help
74744         messages with a lowercase letter.
74745
74746 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
74747
74748         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
74749         overrun buffers and shouldn't be used (much as gets shouldn't be
74750         used).
74751         * lib/time_r.c (asctime_r, ctime_r): Likewise.
74752
74753 2006-03-08  Simon Josefsson  <jas@extundo.com>
74754
74755         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
74756         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74757
74758 2006-03-08  Simon Josefsson  <jas@extundo.com>
74759
74760         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
74761         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74762
74763 2006-03-08  Simon Josefsson  <jas@extundo.com>
74764
74765         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
74766         signal that configure disabled the device.
74767
74768 2006-03-08  Simon Josefsson  <jas@extundo.com>
74769
74770         * build-aux/maint.mk: Fix refresh-po, to handle no translated
74771         languages.
74772
74773 2006-03-07  Simon Josefsson  <jas@extundo.com>
74774
74775         * modules/getopt (Depends-on): Add unistd.
74776
74777         * modules/unistd: New file.
74778
74779 2006-03-07  Simon Josefsson  <jas@extundo.com>
74780
74781         * modules/gc-random: New file.
74782
74783 2006-03-07  Simon Josefsson  <jas@extundo.com>
74784
74785         * m4/unistd_h.m4: New file.
74786
74787 2006-03-07  Simon Josefsson  <jas@extundo.com>
74788
74789         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
74790         test to be side-effect free by storing the result in the cache
74791         variable gl_cv_lib_readline, and moving the assignment of
74792         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
74793         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74794
74795 2006-03-07  Simon Josefsson  <jas@extundo.com>
74796
74797         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
74798         error on missing devices (the functions will return an error).
74799
74800         * m4/gc.m4: Move random stuff to gc-random.m4
74801
74802 2006-03-07  Simon Josefsson  <jas@extundo.com>
74803
74804         * lib/unistd_.h: New file.
74805
74806 2006-03-07  Simon Josefsson  <jas@extundo.com>
74807
74808         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
74809
74810 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74811
74812         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
74813         Problem reported by Juan Manuel Guerrero.
74814
74815 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74816
74817         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
74818         the unistd module.
74819         * lib/getlogin_r.c: Likewise.
74820         * lib/getlogin_r.h: Likewise.
74821         * lib/glob.c: Likewise.
74822         * lib/pagealign_alloc.c: Likewise.
74823         * lib/unistd_.h: Remove; no longer needed.
74824
74825 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74826
74827         * MODULES.html.sh (Support for systems lacking POSIX:2001):
74828         Add unistd.
74829         * modules/c-stack (Depends-on): Add unistd.
74830         * modules/getlogin_r: Likewise.
74831         * modules/glob: Likewise.
74832         * modules/pagealign_alloc: Likewise.
74833         * modules/unistd (Files): Remove lib/unistd_.h.
74834         (EXTRA_DIST): Remove.
74835         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
74836         need unistd_.h.
74837         (MOSTLYCLEANFILES): Remove unistd.h-t.
74838
74839 2006-03-03  Simon Josefsson  <jas@extundo.com>
74840
74841         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
74842
74843 2006-03-03  Simon Josefsson  <jas@extundo.com>
74844
74845         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
74846         libidn and bison.
74847
74848 2006-03-03  Simon Josefsson  <jas@extundo.com>
74849
74850         * build-aux/maint.mk: Add indent target.
74851
74852 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
74853
74854         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
74855         our replacement poll.h in any case, to avoid a differing
74856         declaration from a system header.  Seen on AIX.
74857
74858 2006-03-01  Simon Josefsson  <jas@extundo.com>
74859
74860         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
74861         <kasal@ucw.cz>.
74862
74863 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74864
74865         * modules/gettime (Depends-on): Add extensions module.
74866         * modules/nanosleep (Depends-on): Likewise.
74867         * modules/settime (Depends-on): Likewise.
74868
74869 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74870
74871         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
74872         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
74873         pedantically.
74874         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74875         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
74876
74877         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
74878         not "==".  Reported by Ralf Wildenhues.
74879
74880 2006-03-01  Karl Berry  <karl@gnu.org>
74881
74882         * doc/Copyright/request-*: new files, synced from gnuorg.
74883
74884 2006-03-01  Karl Berry  <karl@gnu.org>
74885
74886         * config/srclist.txt (Copyright/*): new entries.
74887
74888 2006-02-28  Simon Josefsson  <jas@extundo.com>
74889
74890         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
74891
74892 2006-02-27  Simon Josefsson  <jas@extundo.com>
74893
74894         * lib/base64.h: Indent #define's.  From Jim Meyering
74895         <jim@meyering.net>.
74896
74897 2006-02-27  Jim Meyering  <jim@meyering.net>
74898
74899         Revert the change of 2006-02-24, so these files can continue
74900         to be sync'd from gettext.
74901         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
74902         of `config.h'.
74903
74904 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74905
74906         * modules/intprops: New file.
74907         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
74908         Add intprops.
74909         * modules/getloadavg (Files): Remove lib/intprops.h.
74910         (Depends-on): Add intprops.
74911         * modules/human: Likewise.
74912         * modules/inttostr: Likewise.
74913         * modules/openat: Likewise.
74914         * modules/sig2str: Likewise.
74915         * modules/userspec: Likewise.
74916         * modules/utimecmp: Likewise.
74917         * modules/xnanosleep: Likewise.
74918         * modules/xstrtol: Likewise.
74919
74920 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
74921
74922         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
74923         * modules/lock-tests (TESTS): Use $(EXEEXT).
74924         * modules/tls-tests: Likewise.
74925         * modules/argp-tests: Likewise.
74926         (check_PROGRAMS): New var, replacing...
74927         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
74928
74929 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74930
74931         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
74932         `config.h'.
74933
74934 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
74935
74936         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
74937
74938 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74939
74940         Sync from coreutils.
74941         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
74942         gl_CHDIR_SAFER.
74943
74944 2006-02-22  Jim Meyering  <jim@meyering.net>
74945
74946         Sync from coreutils.
74947         * m4/chdir-safer.m4: New file.
74948
74949 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
74950
74951         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
74952         AT_FDCWD exceeds INT_MAX.
74953         * lib/openat.h (AT_FDCWD): Likewise.
74954
74955 2006-02-17  Eric Blake  <address@hidden>
74956
74957         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
74958
74959 2006-02-16  Simon Josefsson  <jas@extundo.com>
74960
74961         * modules/getaddrinfo (Depends-on): Add sys_socket.
74962
74963 2006-02-15  Simon Josefsson  <jas@extundo.com>
74964
74965         * build-aux/maint.mk: Add dsyntax-check rule.
74966
74967 2006-02-15  Eric Blake  <ebb9@byu.net>
74968
74969         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
74970         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
74971         'present but cannot compile' warnings on cygwin.
74972         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
74973         use ws2tcpip.h if sys/socket.h works.
74974         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
74975         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
74976
74977 2006-02-14  Simon Josefsson  <jas@extundo.com>
74978
74979         * modules/maintainer-makefile (Files): Rename.
74980
74981         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
74982         and (the local) Makefile.cfg to maint-cfg.mk.
74983
74984         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
74985         to the latter.
74986
74987         * modules/maintainer-makefile: New module.
74988
74989         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
74990         severaly stripped to make it possible to build it up from scratch
74991         with reliable tests.
74992
74993         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
74994         fixes to permit overriding the default actions when configure and
74995         makefile are not available.
74996
74997 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
74998
74999         Sync from coreutils.
75000         * modules/lstat (Depends-on): Don't depend on xalloc.
75001         (License): Change from GPL to LGPL, since this is now simply a
75002         replacement for a libc function.
75003
75004 2006-02-14  Jim Meyering  <jim@meyering.net>
75005
75006         Sync from coreutils.
75007
75008         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
75009         failure on deficient systems, and simplify gnulib lgpl dependencies.
75010         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
75011         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
75012
75013         * lib/xalloc-die.c: Remove unused definition of N_.
75014
75015 2006-02-14  Jim Meyering  <jim@meyering.net>
75016
75017         Sync from coreutils.
75018         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
75019         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
75020         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
75021         double-quote uses of that variable, to accommodate the rare case in
75022         which getmntent is available in none of the libraries checked.  This
75023         happens at least on FreeBSD 5.0.
75024
75025 2006-02-13  Simon Josefsson  <jas@extundo.com>
75026
75027         * gnulib-tool (Usage): Fix --import, from
75028         karl@freefriends.org (Karl Berry).
75029
75030 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
75031
75032         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
75033
75034 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
75035
75036         * lib/argp-namefrob.h: Restore changes accidentally lost during the
75037         "autoupdate" on 2005-12-12.
75038
75039 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
75040
75041         * modules/closeout (Depends-on): Remove atexit.
75042
75043 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
75044
75045         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
75046         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
75047
75048 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
75049
75050         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
75051         __EXTENSIONS__ if this causes compilation to fail.  Problem
75052         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
75053         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
75054
75055 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
75056
75057         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
75058         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
75059         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
75060         All uses changed.
75061
75062 2006-01-26  Simon Josefsson  <jas@extundo.com>
75063
75064         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
75065         prototype is visible on mingw32.
75066
75067         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
75068         for mingw32.
75069
75070         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
75071         mingw32).
75072
75073 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
75074
75075         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
75076         attempt to open for write; this always fails, at least on POSIX
75077         hosts.  This reinstates the 2006-01-09 change, which was
75078         inadvertently removed.
75079
75080 2006-01-26  Bruno Haible  <bruno@clisp.org>
75081
75082         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
75083         Reported by Paul Eggert.
75084
75085 2006-01-26  Bruno Haible  <bruno@clisp.org>
75086             Paul Eggert  <eggert@cs.ucla.edu>
75087
75088         * lib/stdbool_.h (_Bool)
75089         [(! (defined __cplusplus || defined __BEOS__)
75090           && !defined __GNUC__
75091           && !(defined __HP_cc || defined __xlc__
75092                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
75093                || defined __sgi))]:
75094         #define to signed char in these cases too; this simplifies
75095         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
75096         etc., separately) and makes it more conservative.
75097
75098 2006-01-25  Simon Josefsson  <jas@extundo.com>
75099
75100         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
75101         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
75102         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
75103
75104 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
75105
75106         * lib/argp-namefrob.h: Bugfix. Remove stray #
75107
75108 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
75109
75110         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
75111         so that we test the test.
75112         Check for yet another HP-UX cc bug involving *bool |= bool.
75113
75114 2006-01-25  Karl Berry  <karl@gnu.org>
75115
75116         * config/srclist.txt (vasnprintf.c): sync lost.
75117
75118 2006-01-25  Jim Meyering  <jim@meyering.net>
75119
75120         Sync from the stable (b5) branch of coreutils:
75121
75122         * lib/fts.c (fts_children): Don't let close() clobber errno from
75123         failed fchdir().
75124
75125         * lib/fts.c (fts_stat): When following a symlink-to-directory,
75126         don't necessarily interpret stat-fails+lstat-succeeds as indicating
75127         a dangling symlink.  That can also happen at least for ELOOP.
75128         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
75129         FYI, this bug predates the inclusion of fts.c in coreutils.
75130
75131         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
75132         in their own block, so pre-c99 compilers don't object.
75133
75134         Avoid the double-free (first in fts_read, second in fts_close) that
75135         would occur when an `active' directory is made inaccessible (e.g.,
75136         via chmod a-x) during a traversal.
75137         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
75138         before returning.  Reproduce this failure by
75139         mkdir -p a/b; cd a; chmod a-x . b
75140         Reported by Stavros Passas.
75141
75142 2006-01-25  Jim Meyering  <jim@meyering.net>
75143
75144         * lib/fileblocks.c: Remove more useless parentheses.
75145         * lib/readutmp.h: Likewise.
75146
75147 2006-01-25  Bruno Haible  <bruno@clisp.org>
75148
75149         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
75150         warnings.
75151         Reported by Paul Eggert.
75152
75153 2006-01-25  Bruno Haible  <bruno@clisp.org>
75154
75155         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
75156         rid of a trap command. For Solaris sh.
75157         Reported by Mark D. Baushke <mdb@gnu.org>.
75158
75159 2006-01-24  Simon Josefsson  <jas@extundo.com>
75160
75161         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
75162         Bruno.
75163
75164 2006-01-24  Karl Berry  <karl@gnu.org>
75165
75166         * config/srclist.txt (argp-namefrob.h): sync lost.
75167
75168 2006-01-24  Jim Meyering  <jim@meyering.net>
75169
75170         * modules/openat (Files): Add lib/intprops.h.
75171         From Mark D. Baushke.
75172
75173 2006-01-24  Jim Meyering  <jim@meyering.net>
75174
75175         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
75176         Reported by Mark D. Baushke.
75177
75178 2006-01-24  Jim Meyering  <jim@meyering.net>
75179
75180         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
75181
75182 2006-01-24  Bruno Haible  <bruno@clisp.org>
75183
75184         * modules/strnlen (Maintainer): Change from glibc to all.
75185
75186 2006-01-24  Bruno Haible  <bruno@clisp.org>
75187
75188         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
75189         Patch by Paul Eggert.
75190
75191 2006-01-24  Bruno Haible  <bruno@clisp.org>
75192
75193         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
75194         already has it.
75195         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
75196         2005-11-26.
75197
75198         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
75199         'signed char' to avoid problems with the built-in _Bool type.
75200         Reported by Paul Eggert on 2005-11-26.
75201
75202 2006-01-24  Bruno Haible  <bruno@clisp.org>
75203
75204         * gnulib-tool (func_import): Avoid constructing complicated sed
75205         expressions inside backquote.
75206         Report and solution by Mark D. Baushke <mdb@gnu.org>.
75207
75208 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
75209
75210         These changes imported from libc.
75211         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
75212         test and two separate function calls.
75213         * lib/strndup.c (__strndup): Add libc_hidden_def.
75214
75215 2006-01-23  Simon Josefsson  <jas@extundo.com>
75216
75217         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
75218         Remove the test_*_SOURCES variable: automake infers it by default.
75219         * modules/tls-tests: Likewise.
75220
75221 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75222
75223         Work around porting bugs reported by Dieter in
75224         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
75225         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
75226         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
75227         Include "getopt.h" first, to check interface.
75228         (getenv): Declare only if defined HAVE_DECL_GETENV &&
75229         !HAVE_DECL_GETENV.
75230         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
75231         (__strndup): Revert to K&R-style function dfns, the glibc style.
75232         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
75233         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
75234         Include strnlen.h first, to get prototype properly.
75235         (strnlen): Renamed from __strnlen.
75236         Remove weak alias.
75237
75238 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75239
75240         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
75241
75242 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
75243
75244         * config/srclist.txt: Adjust to reflect glibc reorganization.
75245         This affects only comments.
75246
75247 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75248
75249          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
75250          Reported by Bruce Korb <bkorb@gnu.org>.
75251
75252 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
75253
75254         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
75255         to pacify gcc -Wswitch-default.
75256
75257 2006-01-22  Bruno Haible  <bruno@clisp.org>
75258
75259         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
75260         temporary buffer for sprintf, take into account the precision also
75261         for 'd', 'i', 'u', 'o', 'x', 'X'.
75262
75263 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
75264
75265         * modules/argp-tests: New module
75266         * tests/test-argp.c: New file
75267         * tests/test-argp-2.sh: New file
75268
75269 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
75270
75271         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
75272         (__argp_base_name): Removed
75273         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
75274         typo.
75275         (__argp_base_name): Provide macro definition or extern declaration
75276         depending on the configuration
75277
75278 2006-01-20  Simon Josefsson  <jas@extundo.com>
75279
75280         * modules/inet_ntop (Depends-on): Depend on sys_socket.
75281
75282 2006-01-20  Simon Josefsson  <jas@extundo.com>
75283
75284         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
75285
75286 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75287
75288         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
75289         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
75290         Suggested by Bruno Haible.
75291
75292 2006-01-20  Karl Berry  <karl@gnu.org>
75293
75294         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
75295         until changes propagate, I guess.
75296
75297 2006-01-19  Simon Josefsson  <jas@extundo.com>
75298
75299         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
75300
75301 2006-01-19  Simon Josefsson  <jas@extundo.com>
75302
75303         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
75304
75305 2006-01-19  Simon Josefsson  <jas@extundo.com>
75306
75307         * gnulib-tool: Set check_PROGRAMS.
75308
75309         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
75310         modules/des-tests, modules/gc-arcfour-tests,
75311         modules/gc-arctwo-tests, modules/gc-des-tests,
75312         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
75313         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
75314         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
75315         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
75316         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
75317         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
75318         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
75319         test_*_SOURCES.
75320
75321 2006-01-18  Simon Josefsson  <jas@extundo.com>
75322
75323         * modules/socklen (Depends-on): Depend on sys_socket.
75324
75325 2006-01-18  Simon Josefsson  <jas@extundo.com>
75326
75327         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
75328         modules/des-tests, modules/gc-arcfour-tests,
75329         modules/gc-arctwo-tests, modules/gc-des-tests,
75330         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
75331         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
75332         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
75333         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
75334         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
75335         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
75336         $(EXEEXT) to automake TESTS variable, for mingw32.
75337
75338 2006-01-17  Simon Josefsson  <jas@extundo.com>
75339
75340         * modules/socklen (Include): Need sys/socket.h.
75341
75342 2006-01-17  Bruno Haible  <bruno@clisp.org>
75343
75344         * modules/ssize_t (Include): Add <sys/types.h>.
75345
75346 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
75347
75348         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
75349         it's not portable and it doesn't work with cross-compiles.
75350         Problem reported by Bruno Haible.  Fix missing-$ typo in
75351         'test "gl_cv_ignore_unused_libraries" ...' that prevented
75352         -zignore from being used with Sun's C compiler.
75353
75354 2006-01-12  Simon Josefsson  <jas@extundo.com>
75355
75356         * lib/base64.c: Fix warning, reported by Bruno Haible
75357         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
75358
75359 2006-01-12  Bruno Haible  <bruno@clisp.org>
75360
75361         * modules/ldd: New file.
75362         * build-aux/ldd.sh.in: New file.
75363         * MODULES.html.sh (Support for building libraries and executables): Add
75364         ldd.
75365
75366 2006-01-12  Bruno Haible  <bruno@clisp.org>
75367
75368         * m4/ldd.m4: New file.
75369
75370 2006-01-12  Bruno Haible  <bruno@clisp.org>
75371
75372         * gnulib-tool (func_import, func_create_testdir): Don't go into an
75373         endless loop while replacing $auxdir with build-aux.
75374
75375 2006-01-11  Simon Josefsson  <jas@extundo.com>
75376
75377         * lib/stdint_.h (SIZE_MAX): Add missing (.
75378
75379 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
75380
75381         Sync from coreutils.
75382         * lib/md5.c: Fix commentary typos.
75383         (alignof, UNALIGNED_P): No need for a GCC-specific version.
75384         * lib/md5.h (__attribute__): Remove; unused.
75385         * lib/sha1.c: Fix commentary to match md5 better.
75386         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
75387         so that we don't need to worry about alignment.  All uses changed.
75388         This merges the 2005-10-28 md5 change into sha1.
75389
75390 2006-01-11  Jim Meyering  <jim@meyering.net>
75391
75392         Sync from coreutils.
75393         * lib/md5.c (OP): Fix spacing.
75394
75395 2006-01-11  Bruno Haible  <bruno@clisp.org>
75396
75397         Ensure automatic ordering between gl_LOCK and gl_ARGP.
75398         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
75399         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
75400
75401 2006-01-11  Bruno Haible  <bruno@clisp.org>
75402
75403         Ensure automatic ordering between gl_LOCK and gl_ARGP.
75404         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
75405         the "early" section as well.
75406
75407 2006-01-11  Bruno Haible  <bruno@clisp.org>
75408
75409         Avoid "ar: no archive members specified" error on MacOS X.
75410         * gnulib-tool (func_modules_add_dummy): New function.
75411         (func_import, func_create_testdir): Invoke it.
75412
75413 2006-01-11  Bruno Haible  <bruno@clisp.org>
75414
75415         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
75416         with $auxdir in AC_CONFIG_FILES statements.
75417
75418 2006-01-11  Bruno Haible  <bruno@clisp.org>
75419
75420         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75421         Initialize also noinst_HEADERS to empty.
75422
75423 2006-01-11  Bruno Haible  <bruno@clisp.org>
75424
75425         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
75426         variables.
75427         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
75428         autoreconf.
75429
75430 2006-01-11  Bruno Haible  <bruno@clisp.org>
75431
75432         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
75433         overridable by the user.
75434         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75435
75436 2006-01-10  Simon Josefsson  <jas@extundo.com>
75437
75438         * modules/sys_socket: New file.
75439
75440 2006-01-10  Simon Josefsson  <jas@extundo.com>
75441
75442         * m4/sys_socket_h.m4: New file.
75443
75444 2006-01-10  Simon Josefsson  <jas@extundo.com>
75445
75446         * lib/socket_.h: New file.
75447
75448 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75449
75450         * modules/readutmp (Maintainer): Add myself.
75451
75452 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75453
75454         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
75455         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
75456         People who are still concerned with buggy memcmp implementations
75457         can invoke gl_FUNC_MEMCMP themselves.
75458
75459 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75460
75461         * lib/regex_internal.h (BITSET_WORD_BITS):
75462         Work around a bug in 64-bit PGC (before version 6.1-2), where the
75463         preprocessor mishandles large unsigned values as if they were signed.
75464         Problem reported by Claudio Fontana in
75465         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
75466
75467 2006-01-10  Jim Meyering  <jim@meyering.net>
75468
75469         Avoid the double-free (first in fts_read, second in fts_close) that
75470         would occur when an `active' directory is made inaccessible (e.g.,
75471         via chmod a-x) during a traversal.
75472         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
75473         before returning.  Reproduce this failure by
75474         mkdir -p a/b; cd a; chmod a-x . b
75475         Reported by Stavros Passas.
75476
75477         Sync from coreutils.
75478         * lib/sha1.c: Tweak grammar in a comment.
75479
75480 2006-01-10  Jim Meyering  <jim@meyering.net>
75481
75482         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
75483         Patch by Joerg Sonnenberger.
75484
75485 2006-01-10  Bruno Haible  <bruno@clisp.org>
75486
75487         * modules/readutmp: Depend on module free.
75488         * modules/strtok_r: Depend on module restrict.
75489
75490 2006-01-10  Bruno Haible  <bruno@clisp.org>
75491
75492         * modules/gettext (configure.ac): Add an invocation of
75493         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
75494
75495 2006-01-10  Bruno Haible  <bruno@clisp.org>
75496
75497         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
75498         Reported by Werner Lemberg <wl@gnu.org>.
75499
75500 2006-01-10  Bruno Haible  <bruno@clisp.org>
75501
75502         * lib/localcharset.c: Update from GNU gettext.
75503
75504 2006-01-10  Bruno Haible  <bruno@clisp.org>
75505
75506         * lib/argp.h (__const): Remove macro. Use const instead.
75507         * lib/argp-fmtstream.h (__const): Likewise.
75508         * lib/glob_.h (__const): Remove macro.
75509         * lib/glob-libc.h: Use const instead of __const.
75510
75511 2006-01-10  Bruno Haible  <bruno@clisp.org>
75512
75513         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
75514         variable.
75515         Needed to avoid an automake error regarding the 'gettext' module.
75516
75517 2006-01-09  Simon Josefsson  <jas@extundo.com>
75518
75519         * modules/inet_ntop (Depends-on): Add restrict.
75520
75521 2006-01-09  Simon Josefsson  <jas@extundo.com>
75522
75523         * modules/gc-rijndael-tests (License): Put under LGPL.
75524
75525         * modules/gc-des-tests (License): Likewise.
75526
75527         * modules/gc-arcfour-tests (License): Likewise.
75528
75529         * modules/gc-arctwo-tests (License): Likewise.
75530
75531         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
75532
75533         * modules/gc-hmac-sha1-tests (Files): Likewise.
75534
75535         * modules/gc-hmac-md5-tests (License): Likewise.
75536
75537         * modules/gc-sha1-tests (License): Likewise.
75538
75539         * modules/gc-md5-tests (License): Likewise.
75540
75541         * modules/gc-md4-tests (License): Likewise.
75542
75543         * modules/gc-md2-tests (License): Likewise.
75544
75545         * modules/gc-tests (License): Likewise.
75546
75547         * modules/des-tests (License): Likewise.
75548
75549         * modules/md4-tests (License): Likewise.
75550
75551         * modules/md2-tests (License): Likewise.
75552
75553 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75554
75555         Sync from coreutils:
75556
75557         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
75558         * modules/lib-ignore: New file.
75559         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
75560         chdir-safer.m4, lchmod.m4.
75561         * modules/openat: Add mkdirat.c, openat-priv.h.
75562
75563 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75564
75565         Sync from coreutils.
75566         * m4/lib-ignore.m4: New file.
75567         * m4/lchmod.m4: New file.
75568
75569 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75570
75571         Sync from coreutils.
75572         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
75573         for write access: POSIX says that must fail.
75574         * lib/fts.c (diropen): Likewise.
75575         * lib/save-cwd.c (save_cwd): Likewise.
75576         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
75577         well, for minor improvements on hosts that lack O_DIRECTORY.
75578         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
75579         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
75580         Fall back on chown if open failed with EACCES.
75581
75582         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
75583         Report an error at compile-time if only a 1-second nominal clock
75584         resolution is found.
75585
75586         * lib/lchmod.h: New file.
75587         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
75588         (make_dir_parents): Use lchown rather than chown, and
75589         lchmod rather than chmod.
75590
75591         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
75592         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
75593         "proc" reported by n0dalus.
75594
75595         * lib/mountlist.c: Include <limits.h>.
75596         (dev_from_mount_options)
75597         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
75598         New function.  It no longer assumes "dev=" has the System V meaning
75599         on Linux (since it doesn't).  It also parses "dev=" more carefully.
75600         (read_file_system_list)
75601         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
75602         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
75603         dev= in that case.
75604
75605         * lib/posixtm.h (PDS_PRE_2000): New macro.
75606         * lib/posixtm.c (year): Arg is now syntax_bits rather than
75607         allow_century.  All usages changed.  Reject dates outside the range
75608         1969-1999 if PDS_PRE_2000 is used.
75609
75610 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75611
75612         Sync from coreutils.
75613         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
75614         (Time of day items): Mention the possibility of leap seconds.
75615         Problem reported by Dr. David Alan Gilbert.
75616
75617 2006-01-09  Jim Meyering  <jim@meyering.net>
75618
75619         Sync from coreutils.
75620
75621         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
75622
75623         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
75624
75625         * lib/modechange.c (mode_compile): Reject an invalid mode string
75626         that starts with an octal digit.  From Andreas Gruenbacher.
75627
75628         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
75629         and dup to open_safer and dup_safer, respectively.
75630         (openat_permissive): Fix typo in comment.
75631
75632         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
75633         "gettext.h"; either no longer needed or are guaranteed by openat.h.
75634         (_): Remove; no longer needed.
75635         (openat): Renamed from rpl_openat; no need for rpl_openat
75636         since openat.h renames openat for us.
75637         Replace most of the body with a call to openat_permissive,
75638         to avoid duplicate code.
75639         Port to (probably hypothetical) environments were mode_t is
75640         wider than int.
75641         (openat_permissive): Require mode arg, so that we can check
75642         types better.  Put it just after flags.  Change cwd failure
75643         indicator from pointer-to-bool to pointer-to-errno-value.
75644         All callers changed.
75645         Invoke openat_save_fail and/or openat_restore_fail if
75646         cwd_errno is null, so that openat can call us.
75647         (openat_permissive, fdopendir, fstatat, unlinkat):
75648         Simplify errno handling to avoid some duplicate code,
75649         as it's OK to set errno on success.
75650         * lib/openat.h: Revamp code so that function macros depend on
75651         __OPENAT_PREFIX only, not also on AT_FDCWD.
75652         (openat_ro): Remove.  Caller changed to use openat_permissive.
75653         (openat_permissive): Now a macro, if not a function.
75654         (openat_restore_fail, openat_save_fail): Now always functions,
75655         since mkdirat needs them even if __OPENAT_PREFIX is defined.
75656
75657         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
75658         and openat.c.
75659         * lib/mkdirat.c: Include openat-priv.h.
75660         Remove definitions of macros defined therein.
75661         * lib/openat.c: Likewise.
75662
75663         * lib/mkdirat.c (mkdirat): New file and function.
75664         * lib/openat.h (mkdirat): Declare.
75665
75666         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
75667
75668         * lib/openat.h (openat_permissive): Declare.
75669         (openat_ro): Define.
75670
75671         * lib/openat.c (EXPECTED_ERRNO): New macro.
75672         (openat_permissive): New function -- used in remove.c rewrite.
75673         (all functions): Set errno just before returning, only if there
75674         was an actual failure.
75675         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
75676
75677         Emulate openat-family functions using Linux's procfs, if possible.
75678         Idea and some code based on Ulrich Drepper's glibc changes.
75679
75680         * lib/openat.c: (BUILD_PROC_NAME): New macro.
75681         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
75682         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
75683         before falling back on save_cwd and restore_cwd.
75684         (fdopendir, fstatat, unlinkat): Likewise.
75685
75686         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
75687         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
75688
75689         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
75690         as second argument to va_arg.  Otherwise, some versions of gcc
75691         warn that `if this code is reached, the program will abort'.
75692
75693 2006-01-09  Jim Meyering  <jim@meyering.net>
75694
75695         Sync from coreutils.
75696         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
75697         Require openat-priv.h.
75698
75699 2006-01-09  Bruno Haible  <bruno@clisp.org>
75700
75701         * modules/strnlen (Include): Use strnlen.h.
75702
75703 2006-01-09  Bruno Haible  <bruno@clisp.org>
75704
75705         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
75706
75707 2006-01-09  Bruno Haible  <bruno@clisp.org>
75708
75709         * lib/sysexit_.h (EX_OK): New macro.
75710         Suggested by Martin Lambers <marlam@marlam.de>.
75711
75712 2006-01-09  Bruno Haible  <bruno@clisp.org>
75713
75714         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
75715         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
75716
75717 2006-01-09  Bruno Haible  <bruno@clisp.org>
75718
75719         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
75720         numbers.
75721
75722 2006-01-09  Bruno Haible  <bruno@clisp.org>
75723
75724         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
75725         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
75726         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
75727         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
75728
75729 2006-01-09  Bruno Haible  <bruno@clisp.org>
75730
75731         * build-aux/javacomp.sh.in: New file, moved from lib/.
75732         * modules/javacomp-script (Files): Update.
75733         (configure.ac): Add AC_CONFIG_FILES invocation.
75734         (EXTRA_DIST): Remove variable.
75735
75736         * build-aux/javaexec.sh.in: New file, moved from lib/.
75737         * modules/javaexec (Files): Update.
75738         (configure.ac): Add AC_CONFIG_FILES invocation.
75739         (EXTRA_DIST): Remove javaexec.sh.in.
75740
75741         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
75742         * modules/csharpcomp-script (Files): Update.
75743         (configure.ac): Add AC_CONFIG_FILES invocation.
75744         (EXTRA_DIST): Remove variable.
75745
75746         * build-aux/csharpexec.sh.in: New file, moved from lib/.
75747         * modules/csharpexec (Files): Update.
75748         (configure.ac): Add AC_CONFIG_FILES invocation.
75749         (EXTRA_DIST): Remove csharpexec.sh.in.
75750
75751 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
75752
75753         Sync from coreutils.
75754
75755         Add POSIX ACL support
75756         * lib/acl.h (copy_acl, set_acl): Add declarations.
75757         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
75758         systems other than Linux.
75759         (chmod_or_fchmod): New function: use fchmod when possible,
75760         and chmod otherwise.
75761         (file_has_acl): Add a POSIX ACL implementation, with a
75762         Linux-specific subcase.
75763         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
75764         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
75765         acls are unsupported.
75766         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
75767         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
75768         are unsupported.
75769
75770 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
75771
75772         Sync from coreutils.
75773         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
75774
75775 2006-01-07  Bruno Haible  <bruno@clisp.org>
75776
75777         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
75778         gl_EARLY.
75779
75780 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75781
75782         * lib/strftime.c (tzname): Don't declare if it is already #defined.
75783         Problem reported for Mingw by Mark Junker.
75784
75785 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75786
75787         * README: Gnulib normally doesn't generate a tarball.
75788
75789 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
75790
75791         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
75792         long int, not int, for nanosecond counts, so that people who are
75793         used to POSIX struct timespec won't be surprised.  Reported by Jim
75794         Meyering.
75795
75796 2005-12-28  Bruno Haible  <bruno@clisp.org>
75797
75798         * build-aux/config.rpath: Update from GNU gettext.
75799
75800 2005-12-16  Jim Meyering  <jim@meyering.net>
75801
75802         * modules/fprintftime: New module.
75803         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
75804
75805 2005-12-16  Jim Meyering  <jim@meyering.net>
75806
75807         * m4/fprintftime.m4: New file.
75808
75809 2005-12-16  Jim Meyering  <jim@meyering.net>
75810
75811         * lib/fprintftime.c, lib/fprintftime.h: New files.
75812
75813 2005-12-15  Simon Josefsson  <jas@extundo.com>
75814
75815         * modules/socklen (configure.ac): Fix M4 macro name, to align with
75816         new m4/socklen.m4.
75817
75818 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75819
75820         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
75821         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
75822
75823 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75824
75825         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
75826         * lib/argp-help.c (fill_in_uparams): Check if the constructed
75827         struct uparams is valid. Fall back to the default values if it is
75828         not.
75829
75830 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75831
75832         * modules/argp (Files): Add argp-pin.c
75833         (Depends-on): dirname
75834         (lib_SOURCES): Add argp-pin.c
75835
75836 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75837
75838         * m4/argp.m4:  Check if program_invocation_name and
75839         program_invocation_short_name are declared and define appropriate
75840         macros if they are not.
75841
75842 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75843
75844         * lib/argp-help.c (__argp_base_name): New function
75845         (__argp_short_program_name): Rewrite using __argp_base_name
75846         * lib/argp-namefrob.h: Define program_invocation_name and
75847         program_invocation_short_name if requested
75848         (__argp_base_name): Add prototype
75849         * lib/argp-parse.c (argp_def): Use gettext wrappers
75850         (argp_default_parser): Use __argp_base_name
75851         * lib/argp-pin.c: New file. Defines program_invocation_name and
75852         program_invocation_short_name on systems that lack them.
75853
75854 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75855
75856         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
75857         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
75858         porting problem reported by Georg Schwarz in
75859         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
75860
75861 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75862
75863         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
75864         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
75865         porting problem reported by Georg Schwarz in
75866         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
75867
75868 2005-12-05  Bruno Haible  <bruno@clisp.org>
75869
75870         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
75871         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
75872         Reported by Mark Junker <mjscod@gmx.de>.
75873
75874 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
75875
75876         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
75877         Use implementation from Albert Chin, with some
75878         comments/corrections by Stepan Kasal and myself.
75879
75880 2005-12-02  Bruno Haible  <bruno@clisp.org>
75881
75882         * gnulib-tool (func_import): Accept GPLed build tool modules when
75883         --lgpl is given.
75884         * modules/csharpcomp-script: New file.
75885         * modules/csharpcomp: Depend on it.
75886         * modules/javacomp-script: New file.
75887         * modules/javacomp: Depend on it.
75888         Suggested by Simon Josefsson.
75889
75890 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
75891
75892         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
75893         statement, to work around an HP-UX 10.20 compiler bug reported by
75894         Peter O'Gorman.
75895
75896 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
75897
75898         * modules/savedir (Depends-on): Add openat.
75899
75900 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
75901
75902         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
75903         (uintmax_t) [defined uintmax_t]: Do not declare.
75904         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
75905         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
75906         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
75907         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
75908         sake of portability to weird hosts that C allows (though we don't
75909         know of any practical examples).
75910
75911         * lib/savedir.h (fdsavedir): New decl.
75912         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
75913         contains most of the former guts of savedir.
75914         (savedir): Use savedirstream.
75915         Include "openat.h".
75916
75917 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75918
75919         * modules/obstack (Files): Add m4/ulonglong.m4.
75920         Problem reported by Davide Angelocola.
75921
75922 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
75923
75924         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
75925         coreutils no longer futzes with rounding modes.
75926
75927 2005-11-14  Jim Meyering  <jim@meyering.net>
75928
75929         * lib/mkstemp-safer.c: Include <config.h>, required for possible
75930         replacement of mkstemp.
75931
75932 2005-11-10  Simon Josefsson  <jas@extundo.com>
75933
75934         * lib/readline.c: Remove EOL.
75935
75936 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75937
75938         * modules/gethrxtime (Depends-on): Add gettime.
75939
75940 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75941
75942         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
75943         or gettimeofday; no longer needed.
75944
75945 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75946
75947         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
75948         time business.
75949         (gethrxtime) [! (HAVE_NANOUPTIME
75950         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
75951         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
75952         our own approximation.
75953
75954 2005-11-08  Eric Blake  <ebb9@byu.net>
75955
75956         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
75957
75958 2005-11-08  Eric Blake  <ebb9@byu.net>
75959
75960         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
75961
75962 2005-11-04  Bruno Haible  <bruno@clisp.org>
75963
75964         * gnulib-tool: Implement --update mode.
75965
75966 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75967
75968         Fix porting problem reported by Theodoros V. Kalamatianos.
75969         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
75970         Don't assume that futimes failing means we must fail.
75971
75972 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75973
75974         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
75975         variables to suggest the intended function of the PATH_MAX check.
75976
75977 2005-10-30  Kean Johnston  <jkj@sco.com>
75978
75979         Trivial changes to support SCO systems.
75980         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
75981         as PATH_MAX.
75982         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
75983         where __ptr is null when no I/O is pending.
75984
75985 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75986
75987         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
75988         leave errno alone.  Problem reported by Dmitry V. Levin.
75989
75990 2005-10-28  Simon Josefsson  <jas@extundo.com>
75991
75992         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
75993         Test more.
75994
75995         * tests/test-gc-md2.c, tests/test-md2.c: New files.
75996
75997         * modules/md2, modules/md2-tests: New files.
75998
75999 2005-10-28  Simon Josefsson  <jas@extundo.com>
76000
76001         * m4/inet_ntop.m4: More tests.
76002
76003         * m4/gc-md2.m4, md2.m4: New file.
76004
76005 2005-10-28  Simon Josefsson  <jas@extundo.com>
76006
76007         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
76008         "restrict" keywords, as per POSIX.  Protect the function
76009         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
76010         Don't use K&R prototypes.  Check the sprintf return values.
76011         Re-define EAFNOSUPPORT if not present.  Indent.
76012
76013         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
76014         suggested by Bruno Haible <bruno@clisp.org>.
76015
76016         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
76017
76018         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
76019
76020         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
76021         libgcrypt).
76022
76023         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
76024
76025         * lib/md2.h, lib/md2.c: New files.
76026
76027 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
76028
76029         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
76030         errno alone.  Problem reported by Frederic Jolliton.
76031
76032 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
76033
76034         * modules/verify (License): Change from GPL to LGPL.  This is a
76035         tiny module and there are apparently near-equivalents that are
76036         under the BSD license.
76037
76038 2005-10-24  Simon Josefsson  <jas@extundo.com>
76039
76040         * modules/sha1: Relicense to LGPL.
76041
76042 2005-10-24  Simon Josefsson  <jas@extundo.com>
76043
76044         * lib/md4.h: Shrink buffer size, now that we changed the type.
76045
76046 2005-10-23  Simon Josefsson  <jas@extundo.com>
76047
76048         * gnulib-tool (func_import): Fix --tests-base.
76049
76050 2005-10-22  Simon Josefsson  <jas@extundo.com>
76051
76052         * modules/arcfour (Depends-on): Need stdint.
76053
76054 2005-10-22  Simon Josefsson  <jas@extundo.com>
76055
76056         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
76057         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
76058
76059 2005-10-22  Simon Josefsson  <jas@extundo.com>
76060
76061         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
76062         suggested by Bruno Haible <bruno@clisp.org>.
76063
76064 2005-10-22  Simon Josefsson  <jas@extundo.com>
76065
76066         * lib/crc.h: Include stddef.h, for size_t.
76067
76068 2005-10-22  Simon Josefsson  <jas@extundo.com>
76069
76070         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
76071         arcfour_context struct (simplify test vector testing in GNU
76072         Shishi).
76073
76074 2005-10-21  Simon Josefsson  <jas@extundo.com>
76075
76076         * modules/des, modules/des-tests: New files.
76077
76078         * modules/gc-des, modules/gc-des-tests: New files.
76079
76080         * tests/test-des.c, tests/test-gc-des.c: New file.
76081
76082 2005-10-21  Simon Josefsson  <jas@extundo.com>
76083
76084         * modules/arctwo, modules/arctwo-tests: New files.
76085
76086         * tests/test-arctwo.c: New file.
76087
76088         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
76089
76090         * tests/test-gc-arctwo.c: New file.
76091
76092 2005-10-21  Simon Josefsson  <jas@extundo.com>
76093
76094         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
76095         Bruno Haible <bruno@clisp.org>.
76096
76097         * m4/gc-des.m4: New file.
76098
76099 2005-10-21  Simon Josefsson  <jas@extundo.com>
76100
76101         * m4/arctwo.m4: New file.
76102
76103         * m4/gc-arctwo.m4: New file.
76104
76105 2005-10-21  Simon Josefsson  <jas@extundo.com>
76106
76107         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
76108         block.
76109
76110 2005-10-21  Simon Josefsson  <jas@extundo.com>
76111
76112         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
76113         <bruno@clisp.org>.
76114
76115         * lib/hmac-sha1.c (hmac_sha1): Likewise.
76116
76117         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
76118         Bruno Haible <bruno@clisp.org>.
76119
76120         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
76121         <bruno@clisp.org>.
76122
76123 2005-10-21  Simon Josefsson  <jas@extundo.com>
76124
76125         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
76126
76127 2005-10-21  Simon Josefsson  <jas@extundo.com>
76128
76129         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
76130
76131 2005-10-21  Simon Josefsson  <jas@extundo.com>
76132
76133         * lib/des.h, lib/des.c: New files.
76134
76135         * lib/gc-gnulib.c: Support DES.c
76136
76137 2005-10-21  Simon Josefsson  <jas@extundo.com>
76138
76139         * lib/arctwo.h, lib/arctwo.c: New files.
76140
76141         * lib/gc-gnulib.c: Support ARCTWO.
76142
76143 2005-10-21  Simon Josefsson  <jas@extundo.com>
76144
76145         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
76146         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76147
76148 2005-10-21  Simon Josefsson  <jas@extundo.com>
76149
76150         * gnulib-tool (func_import, func_create_testdir): Define automake
76151         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
76152         Makefile.am snippet),
76153         suggested by Bruno Haible <bruno@clisp.org>.
76154
76155         * modules/gc (Makefile.am): Use it.
76156
76157 2005-10-21  Bruno Haible  <bruno@clisp.org>
76158
76159         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
76160         patch.
76161
76162 2005-10-19  Simon Josefsson  <jas@extundo.com>
76163
76164         * tests/test-gc-rijndael.c: New file.
76165
76166         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
76167
76168 2005-10-19  Simon Josefsson  <jas@extundo.com>
76169
76170         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
76171         interface too.
76172
76173 2005-10-19  Simon Josefsson  <jas@extundo.com>
76174
76175         * tests/test-gc-arcfour.c: New file.
76176
76177         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
76178
76179 2005-10-19  Simon Josefsson  <jas@extundo.com>
76180
76181         * modules/gc-md4, modules/gc-md4-tests: New file.
76182
76183         * tests/test-gc-md4.c: New file.
76184
76185 2005-10-19  Simon Josefsson  <jas@extundo.com>
76186
76187         * m4/gc-md4.m4: New file.
76188
76189 2005-10-19  Simon Josefsson  <jas@extundo.com>
76190
76191         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
76192         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
76193         <kasal@ucw.cz>.
76194
76195 2005-10-19  Simon Josefsson  <jas@extundo.com>
76196
76197         * m4/gc-arcfour.m4: New file.
76198
76199         * m4/gc-rijndael.m4: New file.
76200
76201 2005-10-19  Simon Josefsson  <jas@extundo.com>
76202
76203         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
76204
76205 2005-10-19  Simon Josefsson  <jas@extundo.com>
76206
76207         * lib/gc-gnulib.c: Support ARCFOUR.
76208
76209 2005-10-19  Simon Josefsson  <jas@extundo.com>
76210
76211         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
76212         support.
76213
76214         * lib/gc.h: Add ECB enum type.
76215
76216         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
76217
76218 2005-10-18  Simon Josefsson  <jas@extundo.com>
76219
76220         * tests/test-md5.c: New file.
76221
76222         * modules/md5-tests: New file.
76223
76224 2005-10-18  Simon Josefsson  <jas@extundo.com>
76225
76226         * tests/test-md4.c: New file.
76227
76228         * modules/md4, modules/md4-tests: New files.
76229
76230 2005-10-18  Simon Josefsson  <jas@extundo.com>
76231
76232         * m4/md4.m4: New file.
76233
76234 2005-10-18  Simon Josefsson  <jas@extundo.com>
76235
76236         * lib/md4.h, lib/md4.c: New files, based on md5.?.
76237
76238 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
76239
76240         * gnulib-tool (func_create_testdir): Omit the second check whether
76241         BUILT_SOURCES in nonempty.
76242
76243 2005-10-17  Simon Josefsson  <jas@extundo.com>
76244
76245         * tests/test-rijndael.c: New file.
76246
76247 2005-10-17  Simon Josefsson  <jas@extundo.com>
76248
76249         * modules/sha1: Depend on stdint instead of md5.
76250
76251         * modules/md5: Depend on stdint, remove uint32_t.
76252
76253 2005-10-17  Simon Josefsson  <jas@extundo.com>
76254
76255         * modules/gc-sha1-tests: New file.
76256
76257         * tests/test-gc-sha1.c: New file.
76258
76259 2005-10-17  Simon Josefsson  <jas@extundo.com>
76260
76261         * m4/md5.m4: Remove call to uint32_t.m4.
76262
76263 2005-10-17  Simon Josefsson  <jas@extundo.com>
76264
76265         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
76266
76267         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
76268         md5.h.
76269
76270         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
76271
76272         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
76273
76274 2005-10-17  Simon Josefsson  <jas@extundo.com>
76275
76276         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
76277
76278 2005-10-17  Simon Josefsson  <jas@extundo.com>
76279
76280         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
76281
76282 2005-10-17  Simon Josefsson  <jas@extundo.com>
76283
76284         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
76285
76286         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
76287
76288 2005-10-17  Bruno Haible  <bruno@clisp.org>
76289
76290         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
76291         that it can also be used in a test.
76292
76293 2005-10-16  Bruno Haible  <bruno@clisp.org>
76294
76295         * gnulib-tool (func_emit_tests_Makefile_am): Also define
76296         TESTS_ENVIRONMENT, so that individual tests can augment it.
76297
76298         * gnulib-tool (func_create_testdir): Use an intermediate target for
76299         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
76300         macros, like $(ALLOCA_H), which cannot be passed through the command
76301         line.
76302
76303 2005-10-15  Simon Josefsson  <jas@extundo.com>
76304
76305         * modules/rijndael-tests: New file.
76306
76307         * modules/rijndael: New file.
76308
76309 2005-10-15  Simon Josefsson  <jas@extundo.com>
76310
76311         * m4/rijndael.m4: New file.
76312
76313 2005-10-15  Simon Josefsson  <jas@extundo.com>
76314
76315         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
76316
76317         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
76318
76319 2005-10-14  Simon Josefsson  <jas@extundo.com>
76320
76321         * tests/test-arcfour.c: New file.
76322
76323         * modules/arcfour, modules/arcfour-tests: New files.
76324
76325 2005-10-14  Simon Josefsson  <jas@extundo.com>
76326
76327         * m4/arcfour.m4: New file.
76328
76329 2005-10-14  Simon Josefsson  <jas@extundo.com>
76330
76331         * lib/arcfour.h, lib/arcfour.c: New files.
76332
76333 2005-10-14  Roland McGrath  <roland@redhat.com>
76334
76335         Import from libc.  [BZ #1331]
76336         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
76337         macro argument.
76338         Reported by Matej Vela <vela@debian.org>.
76339
76340 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76341
76342         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
76343         include <wchar.h>; no longer needed.
76344
76345 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76346
76347         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
76348
76349 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
76350         and  Ulrich Drepper  <drepper@redhat.com>
76351
76352         Import from libc.
76353         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
76354         instead of inline stream orientation test and two separate
76355         function calls.  Pay no attention to USE_IN_LIBIO.
76356
76357 2005-10-13  Simon Josefsson  <jas@extundo.com>
76358
76359         * modules/gc-hmac-md5-tests: New file.
76360
76361         * tests/test-gc-hmac-sha1.c: New file.
76362
76363         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
76364
76365         * modules/gc-hmac-md5-tests: New file.
76366
76367         * tests/test-gc-md5.c: New file.
76368
76369         * modules/gc-md5-tests: New file.
76370
76371 2005-10-13  Simon Josefsson  <jas@extundo.com>
76372
76373         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
76374         Move memory allocation outside of loop.
76375
76376 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
76377
76378         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
76379         intermediate directory is in a read-only file system.  Problem
76380         reported by Eric Blake.
76381
76382 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
76383
76384         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
76385
76386 2005-10-12  Simon Josefsson  <jas@extundo.com>
76387
76388         * tests/test-hmac-sha1.c: New file.
76389
76390         * modules/hmac-sha1-tests: New file.
76391
76392         * modules/hmac-sha1: New file.
76393
76394 2005-10-12  Simon Josefsson  <jas@extundo.com>
76395
76396         * modules/gc-sha1: New file.
76397
76398 2005-10-12  Simon Josefsson  <jas@extundo.com>
76399
76400         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
76401
76402         * tests/test-gc-pbkdf2-sha1.c: New file.
76403
76404 2005-10-12  Simon Josefsson  <jas@extundo.com>
76405
76406         * modules/gc-md5, modules/gc-hmac-md5: New files.
76407
76408         * modules/gc (Files): Remove md5, memxor and hmac files.
76409
76410 2005-10-12  Simon Josefsson  <jas@extundo.com>
76411
76412         * m4/gc-pbkdf2-sha1.m4: New file.
76413
76414         * m4/gc-hmac-sha1.m4: New file.
76415
76416         * m4/gc-sha1: New file.
76417
76418         * m4/hmac-sha1.m4: New file.
76419
76420 2005-10-12  Simon Josefsson  <jas@extundo.com>
76421
76422         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
76423
76424         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
76425
76426 2005-10-12  Simon Josefsson  <jas@extundo.com>
76427
76428         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
76429         suggested by Bruno Haible <bruno@clisp.org>.
76430
76431 2005-10-12  Simon Josefsson  <jas@extundo.com>
76432
76433         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
76434
76435 2005-10-12  Simon Josefsson  <jas@extundo.com>
76436
76437         * lib/gc-pbkdf2-sha1.c: New file.
76438
76439         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
76440
76441 2005-10-12  Simon Josefsson  <jas@extundo.com>
76442
76443         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
76444
76445         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
76446
76447 2005-10-12  Simon Josefsson  <jas@extundo.com>
76448
76449         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
76450         GC_USE_HMAC_MD5, respectively.
76451
76452         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
76453         (gc_md5): Fix typo.
76454
76455         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
76456
76457         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
76458
76459         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
76460
76461 2005-10-12  Bruno Haible  <bruno@clisp.org>
76462
76463         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
76464         Reported by Stepan Kasal <kasal@ucw.cz>.
76465
76466 2005-10-11  Simon Josefsson  <jas@extundo.com>
76467
76468         * tests/test-crc.c: New file.
76469
76470         * modules/crc, modules/crc-tests: New files.
76471
76472 2005-10-11  Simon Josefsson  <jas@extundo.com>
76473
76474         * m4/crc.m4: New file.
76475
76476 2005-10-11  Simon Josefsson  <jas@extundo.com>
76477
76478         * lib/gc.h: Add gc_hash and gc_hash_buffer.
76479
76480         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
76481
76482         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
76483
76484 2005-10-11  Simon Josefsson  <jas@extundo.com>
76485
76486         * lib/crc.h, lib/crc.c: New files.
76487
76488         * lib/gc.h (gc_hash_buffer): Add doc.
76489
76490 2005-10-11  Bruno Haible  <bruno@clisp.org>
76491
76492         * modules/c-strcasestr: New file.
76493         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
76494
76495 2005-10-11  Bruno Haible  <bruno@clisp.org>
76496
76497         * modules/c-strcase: New file.
76498         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
76499
76500 2005-10-11  Bruno Haible  <bruno@clisp.org>
76501
76502         * lib/strcasecmp.c: Include limits.h.
76503         (strcasecmp): Avoid integer overflow on exotic platforms.
76504         * lib/strncasecmp.c: Include limits.h.
76505         (strncasecmp): Avoid integer overflow on exotic platforms.
76506         Reported by Paul Eggert.
76507
76508 2005-10-11  Bruno Haible  <bruno@clisp.org>
76509
76510         * lib/c-strcasestr.h: New file, from GNU gettext.
76511         * lib/c-strcasestr.c: New file, from GNU gettext.
76512
76513 2005-10-11  Bruno Haible  <bruno@clisp.org>
76514
76515         * lib/c-strcase.h: New file, from GNU gettext.
76516         * lib/c-strcasecmp.c: New file, from GNU gettext.
76517         * lib/c-strncasecmp.c: New file, from GNU gettext.
76518
76519 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76520
76521         * modules/mempcpy (License): GPL -> LGPL.
76522         * modules/strchrnul (License): Likewise.
76523         * modules/sysexits (License): Likewise.
76524
76525 2005-10-08  Simon Josefsson  <jas@extundo.com>
76526
76527         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
76528
76529 2005-10-07  Simon Josefsson  <jas@extundo.com>
76530
76531         * m4/memxor.m4: Remove gl_C_RESTRICT call.
76532
76533 2005-10-06  Simon Josefsson  <jas@extundo.com>
76534
76535         * tests/test-hmac-md5.c: New file.
76536
76537         * modules/hmac-md5-tests: New file.
76538
76539         * modules/hmac-md5: New file.
76540
76541 2005-10-06  Simon Josefsson  <jas@extundo.com>
76542
76543         * m4/hmac-md5.m4: New file.
76544
76545         * m4/memxor.m4: Require gl_C_RESTRICT.
76546
76547 2005-10-06  Simon Josefsson  <jas@extundo.com>
76548
76549         * lib/memxor.c (memxor): Avoid casts and warnings.
76550
76551 2005-10-06  Simon Josefsson  <jas@extundo.com>
76552
76553         * lib/hmac-md5.c: New file.
76554
76555         * lib/hmac.h: New file.
76556
76557 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76558
76559         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
76560         promotes to int, not unsigned int, to catch the AIX 5.3
76561         compiler bug.
76562
76563 2005-10-05  Simon Josefsson  <jas@extundo.com>
76564
76565         * modules/memxor: New file.
76566
76567         * modules/iconv (Files): Move config.rpath to havelib, it is used
76568         there.
76569
76570         * modules/havelib (Files): Add config.rpath.
76571
76572 2005-10-05  Simon Josefsson  <jas@extundo.com>
76573
76574         * m4/memxor.m4: New file.
76575
76576 2005-10-05  Simon Josefsson  <jas@extundo.com>
76577
76578         * lib/memxor.c (memxor): Fix compiler error.
76579
76580         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
76581         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
76582
76583         * lib/memxor.h, lib/memxor.c: New files.
76584
76585         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
76586         we assume all systems have it, suggested by Jim Meyering
76587         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
76588         any systems lack sys/socket.h; mingw32 is known to lack it, but we
76589         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
76590         same reasons.
76591
76592 2005-10-05  Simon Josefsson  <jas@extundo.com>
76593
76594         * config/srclist.txt: Add glibc bug 1423 for md5.h.
76595
76596 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
76597
76598         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
76599         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
76600         needed, since the source code now assumes these .h files.
76601
76602 2005-10-05  Derek Price  <derek@ximbiot.com>
76603
76604         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
76605
76606 2005-10-05  Bruno Haible  <bruno@clisp.org>
76607
76608         * modules/stdint (License): Change to LGPL.
76609
76610 2005-10-04  Simon Josefsson  <jas@extundo.com>
76611
76612         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
76613         D. Baushke" <mdb@gnu.org>.
76614
76615 2005-10-04  Bruno Haible  <bruno@clisp.org>
76616
76617         * lib/verify.h (verify_true): Provide alternative definition for C++.
76618
76619 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
76620
76621         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
76622         (SSIZE_MAX): New macro, if not already defined.
76623         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
76624         than 2 GiB.
76625
76626 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76627
76628         Sync from coreutils.
76629         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
76630         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
76631         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
76632         ULLONG_MAX doesn't work with 2.7.2.1.
76633
76634 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76635
76636         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
76637         From Ben Pfaff.
76638
76639         * modules/exclude (Depends-on): Depend on verify.
76640         * modules/strtoimax (Depends-on): Likewise.
76641         * modules/utimecmp (Depends-on): Likewise.
76642
76643 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76644
76645         * lib/exclude.c: Include verify.h.
76646         (verify): Remove.  All callers changed to use verify.h's version.
76647         * lib/strtoimax.c: Likewise.
76648         * lib/utimecmp.c: Likewis.e
76649
76650         Sync from coreutils.
76651         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
76652         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
76653         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
76654         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
76655         bother returning ENOSYS if settimeofday or stime fails; just let
76656         them return whatever errno they want to return.
76657         * lib/utimens.c: Include unistd.h, for dup2.
76658         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
76659         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
76660
76661 2005-10-02  Jim Meyering  <jim@meyering.net>
76662
76663         Sync from coreutils.
76664         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
76665         from glibc-2.2.5 that fails for read-only files.
76666
76667 2005-10-02  Jim Meyering  <jim@meyering.net>
76668
76669         Sync from coreutils.
76670         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
76671         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
76672         `#if HAVE_CONFIG_H'.
76673         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
76674         Remove AT_FDCWD test.
76675         Do not consume the fd unless successful.
76676         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
76677         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
76678         block, so that we don't even try to compile it if settimeofday is
76679         available.  This works around a compilation failure on OSF1 V5.1,
76680         due to stime requiring a `long int*' while tv_sec is `int'.
76681
76682 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
76683
76684         Sync from coreutils.
76685         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
76686         against `yes', rather than just testing for nonempty.
76687
76688 2005-10-01  Simon Josefsson  <jas@extundo.com>
76689
76690         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
76691         and Darwin.
76692
76693         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
76694         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
76695         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
76696         freeaddrinfo and gai_strerror are declared by the POSIX headers.
76697         Check if struct addrinfo is declared.
76698
76699 2005-10-01  Simon Josefsson  <jas@extundo.com>
76700
76701         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
76702         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
76703         AI_* and EAI_* definitions.  Protect function declarations.
76704
76705 2005-10-01  Jim Meyering  <jim@meyering.net>
76706
76707         Sync from coreutils.
76708
76709         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
76710         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
76711         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
76712         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
76713         in the inet and nsl libraries.  Required on Solaris 5.7.
76714
76715 2005-10-01  Jim Meyering  <jim@meyering.net>
76716
76717         Sync from coreutils.
76718         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
76719         in the inet and nsl libraries.  Required on Solaris 5.7.
76720
76721 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
76722
76723         * lib/getdelim.c (getdelim): Remove unused variables.
76724
76725 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76726
76727         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
76728         so that the code works even with ancient cpp.  Portability problem
76729         with GCC 2.7.2.1 reported by Thomas M.Ott.
76730
76731 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76732
76733         * modules/regex (Depends-on): Add strcase.
76734
76735         * modules/gethostname (Licence): Change from GPL to LGPL, since
76736         gethostname.c is a trivial implementation of a standard library
76737         function.
76738         * modules/poll (License): Change from GPL to LGPL, since it's
76739         derived from LGPL code.
76740
76741 2005-09-27  Jim Meyering  <jim@meyering.net>
76742
76743         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
76744         HAVE_CONFIG_H.
76745
76746         * lib/intprops.h (signed_type_or_expr__): Define.
76747         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
76748         for unsigned types.
76749
76750 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76751
76752         * lib/verify.h (verify_expr): Remove, replacing with:
76753         (verify_true): New macro that returns true instead of void.
76754         (verify_type__): Remove.
76755         (verify): Use verify_true rather than verify_type__.
76756
76757 2005-09-26  Bruno Haible  <bruno@clisp.org>
76758
76759         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
76760         is necessary.
76761         (lib_SOURCES): Remove mbchar.c.
76762         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
76763         (Files): Add m4/mbrtowc.m4.
76764         * modules/mbiter: Likewise.
76765         * modules/mbuiter: Likewise.
76766
76767 2005-09-26  Bruno Haible  <bruno@clisp.org>
76768
76769         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
76770         compile mbchar.c if they are not both present.
76771         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
76772         * m4/mbiter.m4 (gl_MBITER): Likewise.
76773         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
76774         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
76775         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
76776
76777 2005-09-25  Jim Meyering  <jim@meyering.net>
76778
76779         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
76780         also uses socklen_t.
76781
76782 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
76783
76784         * lib/utimens.c (ENOSYS): Define if not already defined.
76785         (futimens): Support having a null PATH if the file descriptor
76786         is nonnegative.
76787
76788         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
76789         Remove.
76790         (__attribute): Define to empty unless GCC 3.1 or later.
76791         This works around a core dump on OpenBSD 3.4, which has GCC
76792         2.95.3, which dumps core when given __attribute__(()).  It also
76793         simplifies other tests, since we really don't want to bother with
76794         worrying about which ancient version of GCC supported what.
76795         Original problem reported by Yoann Vandoorselaere, with part of
76796         the fix suggested by Derek Price.
76797
76798 2005-09-24  Jim Meyering  <jim@meyering.net>
76799
76800         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
76801         so we can once again use a positive bitfield width of 1 -- now we
76802         don't have to explain why we were using a bitfield width of 2.
76803
76804 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
76805
76806         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
76807         and similarly for the other external symbols.  Problem reported
76808         by James Gallager.
76809
76810         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
76811         bug reported by Jim Meyering.
76812
76813         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
76814         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
76815         not needed, since socklen is a prerequisite module.
76816
76817 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
76818
76819         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
76820         Problem reported by Eric Blake.
76821         (getaddrinfo): Initialize se so that it's not garbage.
76822         Redo internal storage allocation so that it doesn't make unportable
76823         assumptions about alignment.
76824         Fix a memory leak.
76825
76826         * lib/utimens.c (futimens): Use futimesat if available.
76827         Prefer it to futimes since it doesn't have the futimes bug.
76828
76829         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
76830         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
76831         Instead, declare a function that returns a pointer to an array,
76832         and use verify_type__ to declare the size of the array.
76833         Problem and germ of a solution reported by Bruno Haible.
76834         (verify_type__): Use 2, not 1, for bitfield size, to avoid
76835         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
76836
76837 2005-09-23  Jim Meyering  <jim@meyering.net>
76838
76839         Sync from coreutils.
76840         Correct build failure (socklen_t not defined) on at least
76841         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
76842         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
76843
76844 2005-09-23  Jim Meyering  <jim@meyering.net>
76845
76846         * modules/getaddrinfo (Depends-on): Add socklen.
76847
76848 2005-09-23  Bruno Haible  <bruno@clisp.org>
76849
76850         * tests/test-verify.c: New file.
76851
76852 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76853
76854         Sync from coreutils.
76855
76856         * modules/argmatch (Depends-on): Add verify.
76857         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
76858         unistd-safer.
76859         * modules/save-cwd (Depends-on): Likewise.
76860
76861         * modules/openat (Files): Add lib/openat-die.c.
76862         (Depends-on): Remove error, exitfail.
76863         Add dirname.
76864
76865         * modules/verify: New file.
76866         * MODULES.html.sh (Diagnostics <assert.h>): New section,
76867         with "verify" module.
76868
76869 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76870
76871         Sync from coreutils.
76872
76873         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
76874         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
76875         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
76876         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
76877         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
76878         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
76879         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
76880         Don't bother checking for string.h, stdlib.h, unistd.h.
76881         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
76882         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
76883         module's job.
76884         * m4/jm-macros.m4 (gl_MACROS): Likewise.
76885         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
76886
76887         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
76888         (gl_GETDATE): Use it.
76889
76890         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
76891
76892 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76893
76894         Sync from coreutils.
76895
76896         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
76897         stat-time.h.
76898         * lib/argmatch.h: Include verify.h
76899         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
76900         (ARGMATCH_ASSERT): Remove; unused.
76901         * lib/canonicalize.c: Assume STDC_HEADERS.
76902         * lib/exclude.c: Include "strcase.h".
76903         * lib/regex_internal.h [!defined _LIBC]: Likewise.
76904         * lib/getusershell.c: Include stdio--.h rather than stdio.h
76905         and stdio-safer.h.
76906         (getusershell): Call fopen, not fopen_safer.
76907         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
76908         Do not include unistd-safer.h.
76909         (save_cwd): Don't call fd_safer; no longer needed
76910         now that we include fcntl--.h.
76911
76912         * lib/getdate.y (relative_time): New type.
76913         (RELATIVE_TIME_0): New constant.
76914         (parser_control): Use relative_time instead of doing it ourselves.
76915         (%union): Add new relative_time rel member.
76916         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
76917         Now typeless.
76918         (relunit, relunit_snumber): Now of type rel.
76919         (zone, rel, relunit, get_date): Adjust to above changes.
76920
76921         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
76922         Do not include unistd-safer.h.
76923         (getloadavg): Don't call fd_safer; no longer needed
76924         now that we include fcntl--.h.
76925
76926         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
76927         (make_dir_parents): Treat ENOSYS like EEXIST.
76928
76929         Improve quality of diagnostics on restore_cwd failure.
76930         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
76931         (make_dir_parents): Last arg is now int * (for errno), not bool *.
76932         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
76933         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
76934         each time through the loop.  Do not diagnose restore_cwd failure;
76935         that is the caller's job (and perhaps the caller does not care).
76936
76937         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
76938         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
76939         If the file already exists but is not a directory, don't bother
76940         to try to make its parents.
76941         Close potential file descriptor leak if we can't chdir("/") (!).
76942         Don't always return true if chdir($PWD) fails; return true only
76943         if the requested action was done successfully (except for the
76944         chdir($PWD)).
76945         Don't log final directory unless we actually made it.
76946         Refactor to avoid duplicate code to fix up permissions.
76947         Don't attempt to fix up parent permissions if chdir($PWD) fails.
76948
76949         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
76950         to make it a bit faster and (I hope) clearer.
76951         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
76952         Fix bug in formats like %2N.
76953
76954         * lib/verify.h: New file.
76955
76956 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76957
76958         Sync from coreutils.
76959         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
76960
76961 2005-09-22  Jim Meyering  <jim@meyering.net>
76962
76963         Sync from coreutils.
76964
76965         * m4/lstat.m4 (gl_FUNC_LSTAT):
76966         Use AC_LIBSOURCES to require lstat.c and lstat.h.
76967         Remove obsolete comment.
76968         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
76969         * m4/xstrtod.m4: Likewise.
76970
76971         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
76972
76973 2005-09-22  Jim Meyering  <jim@meyering.net>
76974
76975         Sync from coreutils.
76976
76977         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
76978
76979         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
76980         the .tm_year member, since otherwise gcc-4.0 would now warn about
76981         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
76982
76983         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
76984         order to avoid an unsuppressible warning from gcc on 64-bit systems.
76985
76986         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
76987         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
76988         when run in a time zone for which daylight savings time is in effect
76989         for the starting date.
76990
76991         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
76992         stop us from restricting permissions of just-created absolute-named
76993         directories.
76994         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
76995         to restore initial working directory.
76996         * lib/mkdir-p.c (make_dir_parents): New parameter:
76997         different_working_dir, to tell caller if/when we change the working
76998         directory and are unable to return to the initial one.
76999         * lib/mkdir-p.h (make_dir_parents): Update prototype.
77000         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
77001         `return false'.  This fixes a bug introduced on 2004-07-30.
77002
77003         * lib/openat.c (fdopendir): Be sure to close the supplied
77004         file descriptor before returning.  This makes our replacement
77005         implementation a little closer to Solaris's, where fdopendir
77006         ties the file descriptor to the returned DIR* pointer.
77007         * lib/openat.c (unlinkat): New function.
77008         * lib/openat.h (unlinkat): Add prototype.
77009         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
77010         (openat_restore_fail): Rename from openat_restore_die.
77011         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
77012
77013         Provide an alternative to exiting immediately upon save_cwd or
77014         restore_cwd failure.  Now, an application can arrange e.g.,
77015         to perform a longjump in that case.
77016         * lib/openat.c: Include dirname.h.
77017         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
77018         (rpl_openat, fdopendir, fstatat): Call openat_save_die
77019         and openat_restore_die rather than calling error directly.
77020         Don't include "error.h" or "exitfail.h"; they're no longer needed.
77021
77022         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
77023         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
77024         define.
77025
77026         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
77027         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
77028                             int utc, int nanoseconds);
77029         Background:
77030         date should not have to allocate a megabyte of virtual memory to
77031         handle a format argument like +%1048575T.  When implemented with
77032         strftime, it must allocate such a buffer, use strftime to fill it
77033         in, print it, then free it.
77034         With fprintftime, it simply prints everything and exits.
77035         With no need for memory allocation, that's one fewer way to fail.
77036         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
77037         optional field width, not before, so we accept %9:z, not %:9z.
77038         (my_strftime): Be sure to use L_('x') for literals.
77039
77040         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
77041         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
77042         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
77043         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
77044         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
77045         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
77046         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
77047         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
77048         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
77049         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
77050         * lib/xgethostname.c, lib/xreadlink.c:
77051         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
77052
77053         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
77054         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
77055         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
77056         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77057         and don't include <sys/file.h>).
77058
77059 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
77060
77061         Sync from coreutils.
77062
77063         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
77064         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
77065         [!LDAV_DONE]: Avoid unused variable warning.
77066
77067 2005-09-21  Bruno Haible  <bruno@clisp.org>
77068
77069         * lib/unicodeio.h (unicode_to_mb): New declaration.
77070
77071 2005-09-20  Derek Price  <derek@ximbiot.com>
77072
77073         * lib/getaddrinfo.c: Don't include <netdb.h> included from
77074         getaddrinfo.h.
77075
77076 2005-09-20  Bruno Haible  <bruno@clisp.org>
77077
77078         * gnulib-tool: Remove trailing slashes from the values specified for
77079         --source-base, --m4-base, --tests-base, --aux-dir.
77080         Suggested by Simon Josefsson <jas@extundo.com>.
77081
77082 2005-09-20  Bruno Haible  <bruno@clisp.org>
77083
77084         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
77085         func_modules_to_filelist, func_import, func_create_testdir): Make all
77086         sorting results locale-independent, so that gnulib-cache.m4 doesn't
77087         change when gnulib-tool is invoked in a different locale.
77088
77089 2005-09-19  Simon Josefsson  <jas@extundo.com>
77090
77091         * m4/socklen.m4: Fix typo.
77092
77093 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77094
77095         Use a consistent style for including <config.h>.
77096         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
77097         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
77098         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
77099         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
77100         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
77101         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
77102         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
77103         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
77104         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
77105         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
77106         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
77107         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
77108         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
77109         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
77110         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
77111         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
77112         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
77113         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
77114         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
77115         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
77116         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
77117         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
77118         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
77119         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
77120         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
77121         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
77122         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
77123         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
77124         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
77125         lib/xstrtoumax.c, lib/yesno.c:
77126         Standardize inclusion of config.h.
77127         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
77128         lib/inttostr.h:  Removed inclusion of config.h from header files.
77129         * lib/inttostr.c:  Adjusted in-tree users.
77130         * lib/timespec.h: Remove superfluous warning to include config.h.
77131         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
77132         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
77133         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
77134         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
77135         config.h with HAVE_CONFIG_H.
77136
77137 2005-09-19  Jim Meyering  <jim@meyering.net>
77138
77139         * modules/pathmax (License): Change to LGPL.
77140
77141 2005-09-19  Derek Price  <derek@ximbiot.com>
77142
77143         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
77144
77145 2005-09-19  Bruno Haible  <bruno@clisp.org>
77146
77147         * gnulib-tool (import): Provide default for --tests-base.
77148
77149 2005-09-19  Bruno Haible  <bruno@clisp.org>
77150
77151         * doc/quote.texi: New file, extracted from gnulib.texi.
77152         * doc/ctime.texi: New file, extracted from gnulib.texi.
77153         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
77154         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
77155         * doc/gnulib.texi: Include them.
77156
77157 2005-09-18  Bruno Haible  <bruno@clisp.org>
77158
77159         Portability fix.
77160         * gnulib-tool (func_readlink): New function.
77161         (func_ln_if_changed): Use it.
77162
77163 2005-09-18  Bruno Haible  <bruno@clisp.org>
77164
77165         * gnulib-tool: Support --with-tests also with --import.
77166         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
77167         (func_import): Use variables $testsbase and $inctests. Emit a
77168         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
77169         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
77170         SUBDIRS += $testsdir.
77171         (func_create_testdir): Update.
77172
77173 2005-09-18  Bruno Haible  <bruno@clisp.org>
77174
77175         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
77176         instead of $dry_run.
77177         (func_cp_if_changed, func_mv_if_changed): Remove functions.
77178         (func_ln_if_changed): Don't handle dry-run here.
77179         (func_import): In dry-run mode, detect more precisely which actions
77180         would be performed, and don't use "...ing" verbs.
77181
77182 2005-09-18  Bruno Haible  <bruno@clisp.org>
77183
77184         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
77185         (func_import): Use join on two temporary files instead of three nested
77186         loops, in order to determine which files are new or old.
77187
77188 2005-09-18  Bruno Haible  <bruno@clisp.org>
77189
77190         * gnulib-tool (func_import): Comment out code that spits out the
77191         new files with --dry-run.
77192
77193 2005-09-18  Bruno Haible  <bruno@clisp.org>
77194
77195         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
77196
77197 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77198
77199         * lib/stat-time.h: New file.
77200         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
77201         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
77202         in a different way.
77203         (timespec_cmp): New function.
77204         * lib/utimecmp.c: Include stat-time.h.
77205         (SYSCALL_RESOLUTION): Depend on whether various struct stat
77206         members exist, not on the obsolescent ST_MTIM_NSEC.
77207         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
77208
77209 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77210
77211         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
77212
77213 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
77214
77215         * MODULES.html.sh (File system functions): Add stat-time.
77216         * modules/stat-time: New file.
77217         * modules/timespec (Files): Remove m4/st_mtim.m4; this
77218         is now done in a different way, by the stat-time module.
77219         * modules/utimecmp (Depends-on): Add stat-time.
77220
77221 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77222
77223         * m4/st_mtim.m4: Remove.  Superseded by...
77224         * m4/stat-time.m4: New file.
77225         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
77226         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
77227
77228 2005-09-15  Derek Price  <derek@ximbiot.com>
77229
77230         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
77231
77232 2005-09-15  Derek Price  <derek@ximbiot.com>
77233
77234         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
77235         * lib/regex_internal.c: Ditto, using this...
77236         (__GNUC_PREREQ): ...new macro.
77237         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
77238         using...
77239         (__GNUC_PREREQ): ...this new macro.
77240
77241         * lib/strstr.h: Include string.h. Define strstr as a macro here.
77242
77243 2005-09-15  Derek Price  <derek@ximbiot.com>
77244             Paul Eggert  <eggert@cs.ucla.edu>
77245
77246         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
77247         changes, consolidating in...
77248         * lib/regex_internal.h: ...this file.
77249
77250 2005-09-13  Jim Meyering  <jim@meyering.net>
77251
77252         * lib/canon-host.c: Filter through gnu indent and reword comments
77253         slightly.
77254         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
77255
77256 2005-09-13  Derek Price  <derek@ximbiot.com>
77257
77258         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
77259         failure.
77260         Reported by Jim Meyering  <jim@meyering.net>.
77261
77262 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77263
77264         * lib/base64.c: Typo.
77265         (base64_encode): Put b64str in initialized data section.
77266
77267 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
77268
77269         Merge glibc and coreutils changes into gnulib, plus a few
77270         extra fixes.
77271         * lib/md5.c: Use #error rather than a string.
77272         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
77273         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
77274         (__attribute__): Define to empty for non recent-GCC.
77275         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
77276         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
77277         Renamed from their non-__ counterparts, with new macros replacing
77278         them if not _LIBC.  Add __THROW attribute.
77279         (rol): Remove.
77280         (struct md5_ctx): Align buffer if using GCC.
77281         * lib/sha1.h (struct sha1_ctx): Likewise.
77282         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
77283         The old name was backwards.
77284         (NOTSWAP): Remove; not used.
77285         (rol): New macro, moved here from md5.h.
77286         (sha1_process_block): Remove a FIXME that doesn't make sense.
77287
77288 2005-09-12  Derek Price  <derek@ximbiot.com>
77289
77290         Return usable errors from canon-host.
77291         * lib/canon-host.h: New file.
77292         * lib/canon-host.c (canon_host): Wrap...
77293         (canon_host_r): ...this new function, which now relies exclusively on
77294         getaddrinfo.
77295         (ch_strerror): New function.
77296         (last_cherror): New global.
77297         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
77298         interface.
77299         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
77300         void *.
77301         (freeaddrinfo): Free ai->ai_canonname when set.
77302
77303 2005-09-12  Derek Price  <derek@ximbiot.com>
77304
77305         Make canon-host require getaddrinfo.
77306         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
77307         AC_LIBSOURCE canon-host.h.  Call...
77308         (gl_PREREQ_CANON_HOST): ...this new function, which requires
77309         gl_GETADDRINFO.
77310         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
77311
77312 2005-09-12  Derek Price  <derek@ximbiot.com>
77313
77314         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
77315         LGPL.
77316         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
77317
77318 2005-09-12  Derek Price  <derek@ximbiot.com>
77319
77320         * lib/gai_strerror.c: Include config.h when available.  Include
77321         getaddrinfo.h before other headers to test interface.
77322         Reported by Larry Jones <lawrence.jones@ugs.com>.
77323
77324 2005-09-12  Derek Price  <derek@ximbiot.com>
77325             Paul Eggert  <eggert@cs.ucla.edu>
77326
77327         * modules/glob (Files): Add glob-libc.h.
77328
77329 2005-09-12  Derek Price  <derek@ximbiot.com>
77330             Paul Eggert  <eggert@cs.ucla.edu>
77331
77332         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
77333         glob_.h, glob-libc.h.
77334         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
77335
77336 2005-09-12  Derek Price  <derek@ximbiot.com>
77337             Paul Eggert  <eggert@cs.ucla.edu>
77338
77339         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
77340         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
77341         protecting things that should be done only in gnulib contexts.
77342         * lib/glob_.h: New file, containing only the glob things needed for
77343         gnulib.
77344         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
77345         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
77346         (glob, globfree, glob_pattern_p): Now defined simply in terms of
77347         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
77348         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
77349         and to respect the namespace rules better.
77350
77351 2005-09-08  Simon Josefsson  <jas@extundo.com>
77352
77353         * modules/socklen: New file.
77354
77355 2005-09-08  Simon Josefsson  <jas@extundo.com>
77356
77357         * m4/socklen.m4: New file.
77358
77359 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77360
77361         * modules/utimens (Files): Add m4/utimbuf.m4, since
77362         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
77363         Reported by Sergey Poznyakoff.
77364
77365 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77366
77367         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
77368         definitions, since that's the preferred style in glibc.
77369         Fix a minor spacing issue, and update copyright notice to match
77370         glibc's.
77371
77372 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77373
77374         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
77375
77376 2005-09-06  Simon Josefsson  <jas@extundo.com>
77377
77378         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
77379         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
77380
77381 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77382
77383         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
77384         warning.
77385
77386 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77387
77388         * config/srclist.txt: Add glibc bug 1302.
77389
77390 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
77391
77392         Change bitset word type from unsigned int to unsigned long int,
77393         as this has better performance on typical 64-bit hosts.
77394         Port bitset code to hosts with unusual word sizes.
77395         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
77396         (build_collating_symbol):
77397         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
77398         argument is a bitset.  This is merely a style issue, but it makes
77399         it clearer that an entire array is expected.
77400         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
77401         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
77402         Port to the case where bitset_word is not the same as unsigned int.
77403         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
77404         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
77405         Likewise.
77406         * lib/regexec.c (check_dst_limits_calc_pos_1,
77407         check_subexp_matching_top):
77408         (build_trtable, group_nodes_into_DFAstates):
77409         Likewise.
77410         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
77411         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
77412         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
77413         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
77414         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
77415         * lib/regcomp.c (optimize_subexps, lower_subexp):
77416         Work even if bitset_word has holes in its bitwise representation.
77417         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
77418         * lib/regexec.c (check_dst_limits_calc_pos_1,
77419         check_subexp_matching_top):
77420         Likewise.
77421         * lib/regex_internal.c (re_string_reconstruct):
77422         Don't assume UCHAR_MAX == 255.
77423         * lib/regex_internal.h (bitset_set_all): Likewise.
77424         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
77425         All uses changed.
77426         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
77427         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
77428         All uses changed.
77429         (BITSET_WORD_MAX): New macro.
77430         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
77431         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
77432         (bitset_empty, bitset_copy):
77433         Prefer sizeof (bitset) to multiplying it out ourselves.
77434         (bitset_not_merge): Remove; unused.
77435         (bitset_contain): Return bool, not unsigned int with one bit on.
77436         All callers changed.
77437         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
77438         alignment than re_node_set; do this by defining a new internal
77439         type struct dests_alloc and using it to allocate memory.
77440
77441 2005-09-05  Bruno Haible  <bruno@clisp.org>
77442
77443         * gnulib-tool (func_import): Fix comparison in handling of symbolic
77444         links.
77445
77446 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
77447
77448         * modules/size_max (Makefile.am): Add size_max.h
77449
77450 2005-09-04  Derek Price  <derek@ximbiot.com>
77451
77452         * gnulib-tool (func_import): Fix reversed $symbolic logic.
77453
77454 2005-09-03  Simon Josefsson  <jas@extundo.com>
77455
77456         * gnulib-tool: Fix typo.
77457
77458 2005-09-03  Simon Josefsson  <jas@extundo.com>
77459
77460         * config/srclist.txt: Add glibc bug 1293.
77461
77462 2005-09-03  Derek Price  <derek@ximbiot.com>
77463
77464         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
77465         From Larry Jones <lawrence.jones@ugs.com>.
77466
77467 2005-09-02  Simon Josefsson  <jas@extundo.com>
77468
77469         * modules/socklen: New file.
77470
77471 2005-09-02  Simon Josefsson  <jas@extundo.com>
77472
77473         * modules/havelib: New module.
77474
77475         * modules/gettext, modules/iconv, modules/lock, modules/readline:
77476         Use havelib.
77477
77478 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
77479
77480         Check for arithmetic overflow when calculating sizes, to prevent
77481         some buffer-overflow issues.  These patches are conservative, in the
77482         sense that when I couldn't determine whether an overflow was possible,
77483         I inserted a run-time check.
77484         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
77485         macros.
77486         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
77487         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
77488         (re_xnrealloc, re_x2nrealloc): New inline functions.
77489         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
77490         parse_bracket_exp):
77491         (build_equiv_class, build_charclass): Check for arithmetic overflow
77492         in size expression calculations.
77493         * lib/regex_internal.c (re_string_realloc_buffers):
77494         (build_wcs_upper_buffer, re_node_set_add_intersect):
77495         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
77496         (re_dfa_add_node, register_state): Likewise.
77497         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
77498         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
77499         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
77500         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
77501
77502 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
77503
77504         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
77505         m4/ulonglong.m4.  Problem reported by Martin Lambers.
77506
77507 2005-09-02  Bruno Haible  <bruno@clisp.org>
77508
77509         Support for lib vs. lib64 distinction on biarch platforms.
77510         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
77511         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
77512         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
77513
77514 2005-09-02  Bruno Haible  <bruno@clisp.org>
77515
77516         * gnulib-tool (import): In the other first-use case, provide defaults
77517         as well.
77518
77519 2005-09-02  Bruno Haible  <bruno@clisp.org>
77520
77521         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
77522         patches not yet found in the latest gettext release.
77523
77524 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77525
77526         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
77527         to avoid a collision with bits/local_lim.h in glibc.
77528         All uses changed.  Problem reported by Dmitry V. Levin in
77529         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
77530
77531         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
77532         bugs in int versus size_t comparisons.
77533         (re_string_context_at): Fix bug where the code assumed that
77534         Idx is signed.
77535
77536         Use bool where appropriate.
77537         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
77538         All callers changed.
77539         (calc_eclosure_iter): Likewise, for ROOT arg.
77540         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
77541         (build_charclass_op): Likewise, for NON_MATCH arg.
77542         * lib/regex_internal.c (re_string_allocate, re_string_construct):
77543         (re_string_construct_common): Likewise, for ICASE arg.
77544         * lib/regexec.c (re_search_2_stub, re_search_stub):
77545         Likewise, for RET_LEN arg.
77546         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
77547         (set_regs): Likewise, for FL_BACKTRACK arg.
77548         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
77549         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
77550         (calc_eclosure_iter, parse_bracket_exp):
77551         Use bool for internal variables that are booleans.
77552         * lib/regexec.c (re_search_internal, check_matching,
77553         proceed_next_node):
77554         (set_regs, build_sifted_states, sift_states_bkref):
77555         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
77556         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
77557         (find_collation_sequence_value):
77558         Likewise.
77559         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
77560         (re_node_set_compare):
77561         Return bool, not int. All callers changed.
77562         * lib/regexec.c (check_halt_node_context, check_dst_limits):
77563         (build_trtable, check_node_accept): Likewise.
77564         * lib/regex_internal.h: Include stdbool.h.
77565
77566         Fix bugs uncovered when converting to bool.
77567         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
77568         failure instead of charging ahead blindly.
77569         * lib/regex_internal.c (register_state): Likewise.
77570         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
77571         for freeing internal storage.
77572         (group_nodes_into_DFA_states): Use unsigned int, not int, for
77573         bitset pieces used as boolean, to avoid undefined behavior
77574         on hosts that do int overflow checking.
77575
77576 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77577
77578         * config/srclist.txt: Add glibc bugs 1285-1287.
77579
77580 2005-09-01  Jim Meyering  <jim@meyering.net>
77581
77582         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
77583         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
77584         Require gl_STAT_MACROS, too.
77585
77586 2005-09-01  Bruno Haible  <bruno@clisp.org>
77587
77588         * gnulib-tool (import): In the first-use case, provide defaults.
77589
77590 2005-09-01  Bruno Haible  <bruno@clisp.org>
77591
77592         * gnulib-tool (func_import): Remove the .tmp files.
77593
77594 2005-09-01  Bruno Haible  <bruno@clisp.org>
77595
77596         * gnulib-tool (func_import): Fix handling of symbolic links.
77597
77598 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77599
77600         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
77601         old glibc regex code mishandles strings longer than 2**31 bytes.
77602         This patch fixes this when the regex code is used in gnulib
77603         (i.e., outside glibc).
77604
77605         This patch should not affect the use of the regex code inside
77606         glibc.  No doubt this problem also needs to be handled for glibc
77607         as well, but the result will be an incompatible change to the
77608         glibc ABI, and the old ABI will have to be supported too.  That
77609         can be the the subject for another patch.
77610
77611         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
77612         governing whether the rest of this patch is active.  By default,
77613         the macro is disabled and the patch has no effect.
77614         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
77615         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
77616         (struct re_pattern_buffer, re_search, re_search_2, re_match):
77617         (re_match_2, re_set_registers): Use the new types.
77618         * lib/regex_internal.h (Idx, re_hashval_t): New types.
77619         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
77620         New macros.
77621         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
77622         (re_string_context_at, bin_tree_t, re_dfastate_t):
77623         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
77624         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
77625         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
77626         (re_string_char_size_at, re_string_wchar_at):
77627         (re_string_elem_size_at):
77628         Use the new types and macros to port to 64-bit hosts.
77629         Use unsigned types for internal values, so that the code
77630         mostly works even for arrays larger than SSIZE_MAX.
77631         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
77632         (search_duplicated_node, calc_eclosure_iter, fetch_number):
77633         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
77634         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
77635         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
77636         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
77637         (calc_inveclosure, parse_dup_op, build_range_exp):
77638         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
77639         (fetch_number, create_token_tree, mark_opt_subexp):
77640         Likewise.
77641         * lib/regex_internal.c (re_string_construct_common,
77642         create_ci_newstate):
77643         (create_cd_newstate, re_string_allocate, re_string_construct):
77644         (re_string_realloc_buffers, build_wcs_upper_buffer):
77645         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
77646         (re_string_reconstruct, re_string_peek_byte_case):
77647         (re_string_fetch_byte_case, re_string_context_at):
77648         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
77649         (re_node_set_init_copy, re_node_set_add_intersect):
77650         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77651         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77652         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
77653         (re_acquire_state, re_acquire_state_context, register_state):
77654         Likewise.
77655         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
77656         search_cur_bkref_entry):
77657         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
77658         (re_search_internal, re_search_2_stub, re_search_stub)
77659         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
77660         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
77661         (update_cur_sifted_state, check_dst_limits):
77662         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
77663         (check_subexp_limits, sift_states_bkref, merge_state_array):
77664         (check_subexp_matching_top, get_subexp, get_subexp_sub):
77665         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
77666         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
77667         (expand_bkref_cache, check_node_accept_bytes):
77668         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
77669         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
77670         (acquire_init_state_context, check_halt_node_context):
77671         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
77672         (sift_states_backward, clean_state_log_if_needed):
77673         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
77674         (find_recover_state, transit_state_sb, transit_state_mb):
77675         (transit_state_bkref, build_trtable, match_ctx_clean):
77676         Likewise.
77677         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
77678         to work around an assumption that REG_MISSING is negative.
77679
77680         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
77681         (seek_collating_symbol_entry) [defined _LIBC]:
77682         (lookup_collation_sequence_value) [defined _LIBC]:
77683         (build_range_exp, build_collating_symbol) [defined _LIBC]:
77684         Use prototypes rather than old-style function definitions.
77685         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
77686         (transit_state_sb) [0]:
77687         (find_collation_sequence_value) [defined _LIBC]: Likewise.
77688
77689         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
77690         rm_eo.
77691
77692         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
77693         (optimize_subexps, lower_subexp):
77694         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
77695         since the signed shift might overflow.  Use 1u<<31 instead.
77696         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
77697         Likewise.
77698         * lib/regexec.c (check_dst_limits_calc_pos_1,
77699         check_subexp_matching_top): Likewise.
77700
77701         * lib/regcomp.c (optimize_subexps, lower_subexp):
77702         Use CHAR_BIT rather than 8, for clarity.
77703         * lib/regexec.c (check_dst_limits_calc_pos_1):
77704         (check_subexp_matching_top): Likewise.
77705         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
77706         have to worry about portability issues when shifting it left.
77707         Remove no-longer-needed test for table_size > 0.
77708         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
77709         in a word, as the resulting behavior is undefined.
77710         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
77711         in one case, a <= should have been an <, and in another case the
77712         whole test was missing.
77713         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
77714         the standard name CHAR_BIT.
77715         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
77716         this is not true on one's complement and signed-magnitude hosts.
77717
77718         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
77719         next_last_offset.
77720         (struct re_dfa_t): Remove unused member states_alloc.
77721         * lib/regcomp.c (init_dfa): Don't initialize unused members.
77722
77723 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77724
77725         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
77726         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
77727         and large-file glibc and in 32-bit large-file Solaris.
77728
77729 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77730
77731         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
77732         lengths fit in regoff_t; this isn't true if regoff_t is the same
77733         width as size_t.
77734         * lib/regex.c (re_search_internal): 5th arg is LAST_START
77735         (= START + RANGE) instead of RANGE.  This avoids overflow
77736         problems when regoff_t is the same width as size_t.
77737         All callers changed.
77738         (re_search_2_stub): Check for overflow when adding the
77739         sizes of the two strings.
77740         (re_search_stub): Check for overflow when adding START
77741         to RANGE; if it occurs, substitute the extreme value.
77742
77743 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77744
77745         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
77746
77747 2005-08-31  Jim Meyering  <jim@meyering.net>
77748
77749         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
77750         a pointer-to-const.
77751         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
77752         (register_state): Likewise.
77753         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
77754         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
77755         (group_nodes_into_DFAstates): Likewise.
77756
77757 2005-08-31  Jim Meyering  <jim@meyering.net>
77758
77759         * check-module: Add a FIXME comment.
77760
77761 2005-08-31  Eric Blake  <ebb9@byu.net>
77762
77763         * modules/unistd-safer (Files): Add unistd--.h.
77764         * modules/stdio-safer (Files): Add stdio--.h.
77765
77766 2005-08-31  Derek Price  <derek@ximbiot.com>
77767
77768         * lib/getdelim.c (getdelim): Return EOF on EOF.
77769         Reported by Larry Jones <lawrence.jones@ugs.com>.
77770
77771 2005-08-31  Bruno Haible  <bruno@clisp.org>
77772
77773         Avoid unnecessary diffs in the generated lib/Makefile.am.
77774         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
77775         the generated files.
77776         (func_import): Don't set cmd.
77777
77778 2005-08-31  Bruno Haible  <bruno@clisp.org>
77779
77780         * lib/strstr.c: Include <stddef.h>, for NULL.
77781         * lib/strcasestr.c: Likewise.
77782         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77783
77784 2005-08-31  Bruno Haible  <bruno@clisp.org>
77785
77786         * gnulib-tool: New option --macro-prefix.
77787         (func_import): Use macro_prefix.
77788         (import): Handle option --macro-prefix.
77789
77790 2005-08-31  Bruno Haible  <bruno@clisp.org>
77791
77792         * gnulib-tool (import): Rename most ac_* variables to cached_*.
77793         Also use new variables cached_lgpl, cached_libtool.
77794
77795 2005-08-31  Bruno Haible  <bruno@clisp.org>
77796
77797         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
77798         always instantiating them.
77799
77800 2005-08-31  Bruno Haible  <bruno@clisp.org>
77801
77802         * gnulib-tool (func_import): Read the previous cached settings
77803         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
77804         earlier added by gnulib but are now dropped. Warn when a gnulib file
77805         overwrites a non-gnulib file.
77806
77807 2005-08-31  Bruno Haible  <bruno@clisp.org>
77808
77809         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
77810         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
77811         projects that don't keep autogenerated files in CVS. Put into
77812         actioncmd only the specified modules, not the transitive closure.
77813
77814 2005-08-31  Bruno Haible  <bruno@clisp.org>
77815
77816         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
77817         Create directories that shall be filled.
77818         (import): Don't look for gl_* macros in configure.ac. Recurse across
77819         all directories containing a gnulib-cache.m4 files, if meaningful.
77820
77821 2005-08-31  Bruno Haible  <bruno@clisp.org>
77822
77823         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
77824         (import): Set seen_libtool when we see gl_LIBTOOL.
77825
77826 2005-08-31  Bruno Haible  <bruno@clisp.org>
77827
77828         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
77829         declaration macro definitions from generated gnulib.m4.
77830
77831 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
77832
77833         * lib/iconvme.h: Add prototype for iconv_alloc.
77834
77835 2005-08-29  Simon Josefsson  <jas@extundo.com>
77836
77837         * lib/iconvme.c: Fix errno.
77838
77839 2005-08-29  Bruno Haible  <bruno@clisp.org>
77840
77841         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
77842         that it works when the directory contains spaces.
77843
77844 2005-08-29  Bruno Haible  <bruno@clisp.org>
77845
77846         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
77847
77848 2005-08-29  Bruno Haible  <bruno@clisp.org>
77849
77850         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
77851         Emit more advice.
77852
77853 2005-08-29  Bruno Haible  <bruno@clisp.org>
77854         and Stepan Kasal  <kasal@ucw.cz>
77855
77856         * check-module: If more parameters are given, check each of them
77857         separately; add more exceptions, as noted by Jim Meyering.
77858         (check_module): New procedure.
77859         (%exempt_header): Now contains all exceptions.
77860
77861 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
77862
77863         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
77864
77865 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
77866
77867         * lib/iconvme.c: Split iconv_string into iconv_alloc.
77868
77869 2005-08-28  Bruno Haible  <bruno@clisp.org>
77870
77871         * m4/gnulib-tool.m4: New file.
77872
77873 2005-08-27  Jim Meyering  <jim@meyering.net>
77874
77875         * modules/unistd-safer (Files): Add pipe-safer.c.
77876         * modules/fcntl-safer (Files): Add creat-safer.c.
77877
77878 2005-08-27  Jim Meyering  <jim@meyering.net>
77879
77880         * m4/stdlib-safer.m4: New file.  From coreutils.
77881         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
77882         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
77883         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
77884         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
77885         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
77886
77887 2005-08-27  Jim Meyering  <jim@meyering.net>
77888
77889         * lib/fopen-safer.c: Merge minor changes from coreutils.
77890         * lib/dup-safer.c: Likewise.
77891         * lib/fd-safer.c: Likewise.
77892
77893         Merge from coreutils.
77894         * lib/stdio--.h: New file.
77895         * lib/stdlib--.h: New file.
77896         * lib/mkstemp-safer.c: New file.
77897
77898         GNU tar needs these.
77899         * lib/pipe-safer.c: New file.
77900         * lib/creat-safer.c: New file.
77901         * lib/fcntl--.h (creat): Define to creat_safer.
77902         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
77903         * lib/unistd--.h (pipe): Define to pipe_safer.
77904         * lib/unistd-safer.h: Declare pipe_safer.
77905
77906 2005-08-26  Simon Josefsson  <jas@extundo.com>
77907
77908         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
77909         Haible <bruno@clisp.org>.
77910
77911 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
77912
77913         * lib/regex_internal.h: Remove all references to
77914         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
77915         or better.
77916         (bitset_not, bitset_merge, bitset_not_merge):
77917         (bitset_mask, re_string_allocate, re_string_construct):
77918         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
77919         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
77920         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
77921         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
77922         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77923         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77924         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
77925         (re_acquire_state_context):
77926         Remove unnecessary forward decls.
77927         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
77928         Put __attribute at function definition,
77929         now that the function decl has been removed.
77930         * lib/regex_internal.c (re_string_peek_byte_case):
77931         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
77932         Likewise.
77933
77934 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
77935
77936         * m4/regex.m4: Add AC_PREREQ(2.50).
77937         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
77938
77939 2005-08-25  Simon Josefsson  <jas@extundo.com>
77940
77941         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
77942         __fsetlocking.
77943
77944 2005-08-25  Simon Josefsson  <jas@extundo.com>
77945
77946         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
77947         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
77948         GLIBC specific code.
77949
77950 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77951
77952         Make regex safe for g++.  This fixes one real bug (an "err"
77953         that should have been "*err").  g++ problem reported by
77954         Sam Steingold.
77955         * lib/regex_internal.h (re_calloc): New macro, consistent with
77956         re_malloc etc.  All callers of calloc changed to use re_calloc.
77957         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
77958         not int.  All callers changed.
77959         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
77960         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
77961         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
77962         (find_recover_state): Change "err" to "*err"; this fixes what
77963         appears to be a real bug.
77964         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
77965         versus int.
77966
77967 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77968
77969         * modules/regex (Depends-on): Add malloc, since the code
77970         assumes that !malloc(0) means failure.
77971
77972 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77973
77974         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
77975
77976         alloca modernization/simplification for regex.
77977         * lib/regex.c: Remove portability cruft for alloca.  This no longer
77978         needs to be at the start of the file, and can be moved into
77979         regex_internal.h and simplified.
77980         * lib/regex_internal.h: Include <alloca.h>.
77981         (__libc_use_alloca) [!defined _LIBC]: New macro.
77982         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
77983         now works outside glibc.
77984
77985 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77986
77987         * config/srclist.txt: Add glibc bugs 1241, 1245.
77988
77989 2005-08-25  Jim Meyering  <jim@meyering.net>
77990
77991         * lib/open-safer.c: Include <config.h>.
77992         Otherwise, we'd lose LARGEFILE support in any file using
77993         e.g. "fcntl--.h"
77994
77995 2005-08-25  Bruno Haible  <bruno@clisp.org>
77996
77997         * m4/minmax.m4: Require autoconf 2.52.
77998         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
77999         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
78000         alternatives of translit over the alphabet.
78001         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
78002
78003 2005-08-24  Simon Josefsson  <jas@extundo.com>
78004
78005         * tests/test-getpass.c: New file.
78006
78007 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78008
78009         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
78010         for GNU regex features.
78011
78012 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78013
78014         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
78015         * lib/regex.h (regerror): Likewise.
78016
78017         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
78018         requires this.  (The code never needed it.)
78019
78020         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
78021         All uses of recently-renamed identifiers changed to use the new,
78022         POSIX-compliant names.  The code will build and run just fine
78023         without these changes, but it's better to eat our own dog food
78024         and use the standard-conforming names.
78025
78026         * lib/regex.h: Fix a multitude of POSIX name space violations.
78027         These changes have an effect only for programs that define
78028         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
78029         do not change anything for programs compiled in the normal way.
78030         Also, there is no effect on the ABI.
78031
78032         (_REGEX_SOURCE): New macro.
78033         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
78034         defined and _GNU_SOURCE is not; this fixes a name space violation.
78035
78036         Rename the following macros to obey POSIX requirements.
78037         The old names are still visible as macros if _REGEX_SOURCE is defined.
78038         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
78039         RE_BACKSLASH_ESCAPE_IN_LISTS.
78040         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
78041         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
78042         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
78043         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
78044         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
78045         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
78046         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
78047         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
78048         (REG_INTERVALS): renamed from RE_INTERVALS.
78049         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
78050         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
78051         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
78052         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
78053         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
78054         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
78055         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
78056         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
78057         RE_UNMATCHED_RIGHT_PAREN_ORD.
78058         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
78059         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
78060         (REG_DEBUG): renamed from RE_DEBUG.
78061         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
78062         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
78063         unusual, since we can't clash with the POSIX REG_ICASE.
78064         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
78065         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
78066         (REG_NO_SUB): renamed from RE_NO_SUB.
78067         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
78068         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
78069         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
78070         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
78071         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
78072         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
78073         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
78074         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
78075         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
78076         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
78077         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
78078         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
78079         RE_SYNTAX_POSIX_MINIMAL_BASIC.
78080         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
78081         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
78082         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
78083         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
78084         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
78085         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
78086         (REG_FIXED): Renamed from REGS_FIXED.
78087         (REG_NREGS): Renamed from RE_NREGS.
78088
78089         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
78090         of other REG_* macros, since POSIX says the user is allowed to
78091         #undef these macros selectively.
78092
78093         (reg_errcode_t): Update comment stating what other tables need
78094         to be consistent.
78095
78096         Rename the following enum values to obey POSIX requirements.
78097         The old names are still visible as macros.
78098         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
78099         is not defined, since GNU is supposed to be a superset of POSIX as
78100         much as possible, and since we want reg_errcode_t to be a signed
78101         type for implementation consistency.
78102         (_REG_NOERROR): Renamed from REG_NOERROR.
78103         (_REG_NOMATCH): Renamed from REG_NOMATCH.
78104         (_REG_BADPAT): Renamed from REG_BADPAT.
78105         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
78106         (_REG_ECTYPE): Renamed from REG_ECTYPE.
78107         (_REG_EESCAPE): Renamed from REG_EESCAPE.
78108         (_REG_ESUBREG): Renamed from REG_ESUBREG.
78109         (_REG_EBRACK): Renamed from REG_EBRACK.
78110         (_REG_EPAREN): Renamed from REG_EPAREN.
78111         (_REG_EBRACE): Renamed from REG_EBRACE.
78112         (_REG_BADBR): Renamed from REG_BADBR.
78113         (_REG_ERANGE): Renamed from REG_ERANGE.
78114         (_REG_ESPACE): Renamed from REG_ESPACE.
78115         (_REG_BADRPT): Renamed from REG_BADRPT.
78116         (_REG_EEND): Renamed from REG_EEND.
78117         (_REG_ESIZE): Renamed from REG_ESIZE.
78118         (_REG_ERPAREN): Renamed from REG_ERPAREN.
78119         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
78120         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
78121         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
78122         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
78123
78124         (_REG_RE_NAME, _REG_RM_NAME): New macros.
78125         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
78126         changed.  But support the old name if the new one is not defined
78127         and if _REGEX_SOURCE.
78128
78129         Change the following member names in struct re_pattern_buffer.
78130         The old names are still supported if !_REGEX_SOURCE.
78131         The new names are always supported, regardless of _REGEX_SOURCE.
78132         (re_buffer): Renamed from buffer.
78133         (re_allocated): Renamed from allocated.
78134         (re_used): Renamed from used.
78135         (re_syntax): Renamed from syntax.
78136         (re_fastmap): Renamed from fastmap.
78137         (re_translate): Renamed from translate.
78138         (re_can_be_null): Renamed from can_be_null.
78139         (re_regs_allocated): Renamed from regs_allocated.
78140         (re_fastmap_accurate): Renamed from fastmap_accurate.
78141         (re_no_sub): Renamed from no_sub.
78142         (re_not_bol): Renamed from not_bol.
78143         (re_not_eol): Renamed from not_eol.
78144         (re_newline_anchor): Renamed from newline_anchor.
78145
78146         Change the following member names in struct re_registers.
78147         The old names are still supported if !_REGEX_SOURCE.
78148         The new names are always supported, regardless of _REGEX_SOURCE.
78149         (rm_num_regs): Renamed from num_regs.
78150         (rm_start): Renamed from start.
78151         (rm_end): Renamed from end.
78152
78153         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
78154         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
78155         Prepend __ to parameter names.
78156
78157         Undo yesterday's changes.
78158
78159 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78160
78161         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
78162         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
78163         lib/regex.c.
78164
78165 2005-08-24  Jim Meyering  <jim@meyering.net>
78166
78167         Sync from coreutils.
78168         * m4/fcntl-safer.m4: New file.
78169
78170         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
78171         and object files for this module.
78172
78173 2005-08-24  Jim Meyering  <jim@meyering.net>
78174
78175         Sync from coreutils.
78176         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
78177
78178 2005-08-24  Jim Meyering  <jim@meyering.net>
78179
78180         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
78181         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
78182
78183 2005-08-24  Jim Meyering  <jim@meyering.net>
78184
78185         * modules/fcntl-safer: New module.
78186         * modules/fts (Depends-on): Add fcntl-safer.
78187         * MODULES.html.sh (File descriptor based Input/Output):
78188         Add fcntl-safer.
78189
78190 2005-08-24  Bruno Haible  <bruno@clisp.org>
78191
78192         Support for unit test modules.
78193         * modules/README: Mention tests modules.
78194         * modules/TEMPLATE-TESTS: New file.
78195         * gnulib-tool: New options --extract-tests-module, --with-tests and
78196         --tests-base (unused for the moment).
78197         (testsbase, inctests): New variables.
78198         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
78199         (func_verify_module): Exclude TEMPLATE-TESTS.
78200         (func_verify_nontests_module, func_verify_tests_module): New functions.
78201         (func_get_dependencies): Add implicit dependency for tests modules.
78202         (func_get_tests_module): New function.
78203         (func_modules_transitive_closure): When --with-tests was specified,
78204         include the unit tests as well, unless explicitly avoided.
78205         (func_emit_lib_Makefile_am): Ignore the tests modules here.
78206         (func_emit_tests_Makefile_am): New function.
78207         (func_create_testdir): When --with-tests was specified, emit a
78208         tests/ directory.
78209         * MODULES.html.sh (Future developments): Update.
78210
78211 2005-08-24  Bruno Haible  <bruno@clisp.org>
78212
78213         * modules/tls-tests: New file.
78214         * tests/test-tls.c: New file, from GNU gettext.
78215
78216 2005-08-24  Bruno Haible  <bruno@clisp.org>
78217
78218         * modules/lock-tests: New file.
78219         * tests/test-lock.c: New file, from GNU gettext.
78220
78221 2005-08-24  Bruno Haible  <bruno@clisp.org>
78222
78223         * lib/lock.h: Add multiple inclusion guard.
78224         * lib/tls.h: Add multiple inclusion guard.
78225
78226 2005-08-24  Bruno Haible  <bruno@clisp.org>
78227
78228         * gnulib-tool: Add support for the --aux-dir option to
78229         --create-testdir, --create-megatestdir, --test, --megatest.
78230         (func_create_testdir, func_create_megatestdir): Optionally emit a
78231         AC_CONFIG_AUX_DIR directive.
78232         (create-testdir, create-megatestdir, test, megatest): Provide a
78233         default value for $auxdir.
78234
78235 2005-08-24  Bruno Haible  <bruno@clisp.org>
78236
78237         * gnulib-tool (import): Use compound statement instead of subshell
78238         where possible.
78239
78240 2005-08-24  Bruno Haible  <bruno@clisp.org>
78241
78242         * gnulib-tool (import): Change --aux-dir default to "build-aux".
78243
78244 2005-08-24  Bruno Haible  <bruno@clisp.org>
78245
78246         * gnulib-tool (func_version): Update.
78247
78248 2005-08-24  Bruno Haible  <bruno@clisp.org>
78249
78250         * gnulib-tool (func_import, func_create_testdir,
78251         func_create_megatestdir): Quote all autoconf macro arguments.
78252
78253 2005-08-24  Bruno Haible  <bruno@clisp.org>
78254
78255         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
78256         option --force, because --force causes the aclocal.m4 of each
78257         subdirectory to be newer than the corresponding config.h.in.
78258
78259 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78260
78261         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
78262         All contents moved to gl_REGEX.
78263         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
78264         assume that it does.
78265
78266 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78267
78268         * lib/regex.h (REG_NOSYS)
78269         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
78270         Define, since POSIX requires it as of 2001.
78271         (_REG_ENOSYS)
78272         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
78273         New private symbol, used to keep the enum signed in all cases.
78274         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
78275         Youngman in
78276         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
78277
78278         * lib/regex_internal.c (re_string_skip_chars, register_state):
78279         (calc_state_hash):
78280         Remove forward decls; no longer needed now that we use prototypes.
78281         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
78282         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
78283         (clean_state_log_if_needed): Likewise.
78284
78285 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78286
78287         * config/srclist.txt: Add glibc bugs 1231-1233.
78288
78289 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78290
78291         Fix problems reported by Sam Steingold in
78292         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
78293         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
78294         assumed that reg_errcode_t is a signed type, which is not
78295         necessarily true if _XOPEN_SOURCE is not defined.
78296         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
78297         since some compilers warn about it otherwise.
78298
78299 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78300
78301         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
78302         (init_word_char, create_initial_state, duplicate_node_closure):
78303         (fetch_token, peek_token_bracket, build_range_exp):
78304         (build_collating_symbol): Remove forward decls; no longer needed
78305         now that we use prototypes.
78306
78307         * lib/regcomp.c:
78308         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
78309         (re_compile_fastmap_iter, regcomp, regerror, regfree):
78310         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
78311         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
78312         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
78313         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
78314         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
78315         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
78316         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
78317         (build_range_exp, build_collating_symbol, parse_bracket_exp):
78318         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
78319         (build_charclass, build_charclass_op, fetch_number, create_tree):
78320         (create_token_tree, mark_opt_subexp, duplicate_tree):
78321         Use prototypes rather than old-style definitions.
78322
78323         * lib/regex_internal.c:
78324         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
78325         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
78326         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
78327         (re_string_reconstruct, re_string_peek_byte_case):
78328         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
78329         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
78330         (re_node_set_init_copy, re_node_set_add_intersect):
78331         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78332         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78333         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
78334         (re_acquire_state, re_acquire_state_context, register_state):
78335         (create_ci_newstate, create_cd_newstate, free_state):
78336         Likewise.
78337         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
78338         re_search_2):
78339         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
78340         (re_search_internal, prune_impossible_nodes):
78341         (acquire_init_state_context, check_matching, static):
78342         (check_halt_node_context, check_halt_state_context, proceed_next_node):
78343         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
78344         (update_regs, sift_states_backward, build_sifted_states):
78345         (clean_state_log_if_needed, merge_state_array):
78346         (update_cur_sifted_state, add_epsilon_src_nodes):
78347         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
78348         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
78349         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
78350         (find_recover_state, check_subexp_matching_top, transit_state_mb):
78351         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
78352         (check_arrival, check_arrival_add_next_nodes):
78353         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
78354         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
78355         (check_node_accept_bytes, check_node_accept, extend_buffers):
78356         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
78357         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
78358         (sift_ctx_init):
78359         Likewise.
78360
78361         * lib/regex_internal.h:
78362         (re_string_allocate, re_string_construct, re_string_reconstruct):
78363         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
78364         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
78365         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
78366         (re_string_context_at, re_string_peek_byte_case):
78367         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
78368         is defined, since we now use prototypes always.
78369
78370         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
78371         C89 or better.  All uses removed.
78372
78373 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78374
78375         * config/srclist.txt: Add glibc bugs 1220-1227.
78376
78377 2005-08-20  Jim Meyering  <jim@meyering.net>
78378
78379         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
78380         of unused local, dfa.
78381
78382 2005-08-20  Bruno Haible  <bruno@clisp.org>
78383
78384         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
78385
78386 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78387
78388         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
78389         (re_node_set_insert_last, re_dfa_add_node):
78390         Rename local variables to avoid GCC shadowing warnings.
78391
78392 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78393
78394         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
78395         [defined lint]: Suppress bogus uninitialized-variable warnings.
78396
78397         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
78398         and let the caller return REG_ESPACE if out of space.  This
78399         removes an uninitialied-variable warning with GCC 4.0.1, and also
78400         avoids taking the address of a local variable.  All callers
78401         changed.
78402
78403 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78404
78405         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
78406         $LIBCSRC/posix/regexec.c.
78407         Add glibc bug 1217 for regcomp.c.
78408
78409 2005-08-19  Jim Meyering  <jim@meyering.net>
78410
78411         * lib/regexec.c (proceed_next_node): Redo local variables to
78412         avoid GCC shadowing warnings.
78413
78414 2005-08-18  Bruno Haible  <bruno@clisp.org>
78415
78416         * lib/strstr.c (strstr): Fix return value in multibyte case.
78417         * lib/strcasestr.c (strcasestr): Likewise.
78418
78419 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78420
78421         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
78422
78423 2005-08-17  Jim Meyering  <jim@meyering.net>
78424
78425         Make the %s format (seconds since the epoch) work for a negative
78426         number and when used with a zero-padded field width, e.g. %015s.
78427
78428         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
78429         label so that it precedes the code to set `digits'.  Otherwise,
78430         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
78431         print `00-22'.  Now, it prints `-0022', as it should.
78432
78433 2005-08-17  Bruno Haible  <bruno@clisp.org>
78434
78435         * modules/strstr (Files): Add m4/mbrtowc.m4.
78436         (Depends-on): Add mbuiter.
78437
78438 2005-08-17  Bruno Haible  <bruno@clisp.org>
78439
78440         * modules/strcasestr: New file.
78441         * MODULES.html.sh (String handling, based on ANSI C 89): Add
78442         strcasestr.
78443
78444 2005-08-17  Bruno Haible  <bruno@clisp.org>
78445
78446         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
78447
78448 2005-08-17  Bruno Haible  <bruno@clisp.org>
78449
78450         * modules/mbuiter: New file.
78451         * MODULES.html.sh (Extended multibyte and wide character utilities):
78452         Add mbuiter.
78453
78454 2005-08-17  Bruno Haible  <bruno@clisp.org>
78455
78456         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
78457         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
78458
78459 2005-08-17  Bruno Haible  <bruno@clisp.org>
78460
78461         * m4/strcasestr.m4: New file.
78462
78463 2005-08-17  Bruno Haible  <bruno@clisp.org>
78464
78465         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
78466         * lib/strstr.c: Completely rewritten, with multibyte locale support.
78467
78468 2005-08-17  Bruno Haible  <bruno@clisp.org>
78469
78470         * lib/strcasestr.h: New file.
78471         * lib/strcasestr.c: New file.
78472
78473 2005-08-17  Bruno Haible  <bruno@clisp.org>
78474
78475         * lib/strcasecmp.c: Use mbuiter.h.
78476
78477 2005-08-17  Bruno Haible  <bruno@clisp.org>
78478
78479         * lib/mbuiter.h: New file.
78480
78481 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
78482
78483         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
78484         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
78485         and gl_GETOPT are both invoked via different paths (as happens
78486         with GNU tar CVS because it uses both argp and getopt), the former
78487         wins.
78488
78489 2005-08-16  Bruno Haible  <bruno@clisp.org>
78490
78491         * modules/tls: New file.
78492         * MODULES.html.sh (Multithreading): Add tls.
78493
78494 2005-08-16  Bruno Haible  <bruno@clisp.org>
78495
78496         * modules/strnlen1: New file.
78497         * MODULES.html.sh (String handling): Add strnlen1.
78498
78499 2005-08-16  Bruno Haible  <bruno@clisp.org>
78500
78501         * modules/strcase (Files): Add m4/mbrtowc.m4.
78502         (Depends-on): Add strnlen1, mbchar.
78503
78504 2005-08-16  Bruno Haible  <bruno@clisp.org>
78505
78506         * modules/mbiter: New file.
78507         * MODULES.html.sh (Extended multibyte and wide character utilities):
78508         Add mbiter.
78509
78510 2005-08-16  Bruno Haible  <bruno@clisp.org>
78511
78512         * modules/mbfile: New file.
78513         * MODULES.html.sh (Extended multibyte and wide character utilities):
78514         Add mbfile.
78515
78516 2005-08-16  Bruno Haible  <bruno@clisp.org>
78517
78518         * modules/mbchar: New file.
78519         * MODULES.html.sh (Extended multibyte and wide character utilities):
78520         New section.
78521
78522 2005-08-16  Bruno Haible  <bruno@clisp.org>
78523
78524         * m4/tls.m4: New file, from GNU gettext.
78525
78526 2005-08-16  Bruno Haible  <bruno@clisp.org>
78527
78528         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
78529         always.
78530         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
78531
78532 2005-08-16  Bruno Haible  <bruno@clisp.org>
78533
78534         * m4/mbiter.m4: New file.
78535
78536 2005-08-16  Bruno Haible  <bruno@clisp.org>
78537
78538         * m4/mbfile.m4: New file.
78539
78540 2005-08-16  Bruno Haible  <bruno@clisp.org>
78541
78542         * m4/mbchar.m4: New file.
78543
78544 2005-08-16  Bruno Haible  <bruno@clisp.org>
78545
78546         * lib/tls.h: New file, from GNU gettext.
78547         * lib/tls.c: New file, from GNU gettext.
78548
78549 2005-08-16  Bruno Haible  <bruno@clisp.org>
78550
78551         * lib/strnlen1.h: New file.
78552         * lib/strnlen1.c: New file.
78553
78554 2005-08-16  Bruno Haible  <bruno@clisp.org>
78555
78556         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
78557         (mbi_init): Update.
78558         (mbi_avail, mbi_advance): Let the iteration end before the terminating
78559         NUL byte, not after it.
78560
78561 2005-08-16  Bruno Haible  <bruno@clisp.org>
78562
78563         * lib/strcase.h (strcasecmp): Add note in comments.
78564         * lib/strncasecmp.c: Use code from strcasecmp.c.
78565         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
78566         (strcasecmp): Work correctly in multibyte locales.
78567
78568 2005-08-16  Bruno Haible  <bruno@clisp.org>
78569
78570         * lib/mbiter.h: New file.
78571
78572 2005-08-16  Bruno Haible  <bruno@clisp.org>
78573
78574         * lib/mbfile.h: New file.
78575
78576 2005-08-16  Bruno Haible  <bruno@clisp.org>
78577
78578         * lib/mbchar.h: New file.
78579         * lib/mbchar.c: New file.
78580
78581 2005-08-16  Bruno Haible  <bruno@clisp.org>
78582
78583         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
78584         the valid ones. Makes the comparison operations transitive:
78585         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
78586         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
78587
78588 2005-08-15  Simon Josefsson  <jas@extundo.com>
78589
78590         * modules/ssize_t (License): Change to 'unlimited'.
78591
78592         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
78593
78594 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78595
78596         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
78597         Add comments for each pending glibc patch.
78598
78599 2005-08-15  Bruno Haible  <bruno@clisp.org>
78600
78601         * lib/regex.h (__restrict_arr): Don't define to __restrict if
78602         __cplusplus is defined.
78603
78604 2005-08-14  Jim Meyering  <jim@meyering.net>
78605
78606         Sync from coreutils.
78607
78608         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
78609         Use the hash-table-based cycle-detection code not just when
78610         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
78611         Reported by James Youngman in
78612         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
78613         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
78614         FTS_TIGHT_CYCLE_CHECK.
78615         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
78616         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
78617         once again.
78618         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
78619         * lib/fts.c (fd_safer): Remove decl.
78620         Include fcntl--.h rather than unistd-safer.h
78621         (fts_safe_changedir): Don't call fd_safer; no longer needed
78622         now that we include fcntl--.h.
78623
78624 2005-08-12  Simon Josefsson  <jas@extundo.com>
78625
78626         * modules/getndelim2: Use ssize_t module.
78627         * modules/getnline: Likewise.
78628         * modules/safe-read: Likewise.
78629         * modules/xreadlink: Likewise.
78630
78631         * modules/ssize_t: New file.
78632
78633 2005-08-12  Simon Josefsson  <jas@extundo.com>
78634
78635         * m4/readline.m4: Look for termcap, curses or ncurses if required.
78636
78637 2005-08-12  Simon Josefsson  <jas@extundo.com>
78638
78639         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78640         ssize_t.
78641
78642 2005-08-12  Simon Josefsson  <jas@extundo.com>
78643
78644         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
78645         readline, getdelim and check_version.
78646         (Support for systems lacking ISO C 99: Sizes of integer types):
78647         Add size_max.
78648
78649 2005-08-12  Bruno Haible  <bruno@clisp.org>
78650
78651         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
78652
78653 2005-08-11  Simon Josefsson  <jas@extundo.com>
78654
78655         * modules/readline: New file.
78656
78657         * modules/strnlen (Files): Add strnlen.h.
78658
78659 2005-08-11  Simon Josefsson  <jas@extundo.com>
78660
78661         * m4/readline.m4: New file.
78662
78663 2005-08-11  Simon Josefsson  <jas@extundo.com>
78664
78665         * lib/readline.h, readline.c: New file.
78666
78667 2005-08-11  Simon Josefsson  <jas@extundo.com>
78668
78669         * doc/gnulib.texi (Initial import, Finishing touches): Mention
78670         gl_AVOID.
78671
78672 2005-08-11  Bruno Haible  <bruno@clisp.org>
78673
78674         * lib/strnlen.h (strnlen): Change parameter name to match comment.
78675
78676 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
78677
78678         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
78679
78680 2005-08-10  Simon Josefsson  <jas@extundo.com>
78681
78682         * tests/test-iconvme.c: New file.
78683
78684 2005-08-10  Simon Josefsson  <jas@extundo.com>
78685
78686         * m4/strnlen.m4: New file.
78687
78688         * m4/strndup.m4: Don't check for strnlen declaration, done in
78689         strnlen.m4.
78690
78691 2005-08-10  Simon Josefsson  <jas@extundo.com>
78692
78693         * lib/strndup.c: Use strnlen.h.
78694
78695         * lib/strnlen.h: New file.
78696
78697 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78698
78699         * README: Typos.
78700
78701 2005-08-02  Simon Josefsson  <jas@extundo.com>
78702
78703         * modules/readline: New file.
78704
78705 2005-08-02  Simon Josefsson  <jas@extundo.com>
78706
78707         * modules/getdelim: New file.
78708
78709         * modules/getline: Rewrite, don't use getndelim2.
78710
78711 2005-08-02  Simon Josefsson  <jas@extundo.com>
78712
78713         * m4/getline.m4: Separate out getdelim stuff into separate module.
78714
78715         * m4/getdelim.m4: New file.
78716
78717 2005-08-02  Simon Josefsson  <jas@extundo.com>
78718
78719         * lib/getline.h, getline.c: Rewrite.
78720
78721         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
78722
78723 2005-07-31  Bruno Haible  <bruno@clisp.org>
78724
78725         * lib/lock.h (gl_lock_initializer): New macro.
78726         (gl_lock_define_initialized): Use it.
78727         (gl_rwlock_initializer): New macro.
78728         (gl_rwlock_define_initialized): Use it.
78729         (gl_recursive_lock_initializer): New macro.
78730         (gl_recursive_lock_define_initialized): Use it.
78731
78732 2005-07-30  Karl Berry  <karl@gnu.org>
78733
78734         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
78735         Report from Ben Pfaff, regarding getopt.
78736
78737 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
78738
78739         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
78740         normal way.
78741         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
78742         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
78743         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
78744         (gl_GETOPT): Use the new macros.  Most of the implementation
78745         is moved to the new macros.  This is for programs like Emacs
78746         that don't want all the functionality of gl_GETOPT.
78747
78748 2005-07-26  Bruno Haible  <bruno@clisp.org>
78749
78750         * m4/lock.m4: Update from GNU gettext.
78751
78752 2005-07-26  Bruno Haible  <bruno@clisp.org>
78753
78754         * lib/lock.h: Update from GNU gettext.
78755         * lib/lock.c: Update from GNU gettext.
78756
78757 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
78758
78759         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
78760         obsolescent AC_TRY_RUN.  Include the default includes files, for
78761         'exit'.
78762
78763 2005-07-24  Bruno Haible  <bruno@clisp.org>
78764
78765         * modules/visibility: New file.
78766         * MODULES.html.sh (Misc): Add visibility.
78767
78768 2005-07-24  Bruno Haible  <bruno@clisp.org>
78769
78770         * m4/visibility.m4: New file.
78771
78772 2005-07-24  Bruno Haible  <bruno@clisp.org>
78773
78774         * doc/visibility.texi: New file.
78775
78776 2005-07-22  Bruno Haible  <bruno@clisp.org>
78777
78778         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
78779         $(ALLOCA_H), redundant through BUILT_SOURCES.
78780         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
78781         redundant through BUILT_SOURCES.
78782         * modules/byteswap (Makefile.am): Remove explicit dependency on
78783         $(BYTESWAP_H), redundant through BUILT_SOURCES.
78784         * modules/fnmatch (Makefile.am): Remove explicit dependency on
78785         $(FNMATCH_H), redundant through BUILT_SOURCES.
78786         * modules/getopt (Makefile.am): Remove explicit dependency on
78787         $(GETOPT_H), redundant through BUILT_SOURCES.
78788         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
78789         redundant through BUILT_SOURCES.
78790         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
78791         redundant through BUILT_SOURCES.
78792         * modules/stdbool (Makefile.am): Remove explicit dependency on
78793         $(STDBOOL_H), redundant through BUILT_SOURCES.
78794         * modules/stdint (Makefile.am): Remove explicit dependency on
78795         $(STDINT_H), redundant through BUILT_SOURCES.
78796         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
78797         Remove explicit dependency on $(SYSEXITS_H).
78798         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
78799
78800 2005-07-18  Simon Josefsson  <jas@extundo.com>
78801
78802         * lib/check-version.c (check_version): Accept identical versions too.
78803
78804 2005-07-18  Bruno Haible  <bruno@clisp.org>
78805
78806         * modules/lock: New file.
78807         * MODULES.html.sh (Multithreading): New section.
78808
78809 2005-07-18  Bruno Haible  <bruno@clisp.org>
78810
78811         * m4/lock.m4: New file, from GNU gettext.
78812
78813 2005-07-18  Bruno Haible  <bruno@clisp.org>
78814
78815         * lib/lock.h: New file, from GNU gettext.
78816         * lib/lock.c: New file, from GNU gettext.
78817
78818 2005-07-18  Bruno Haible  <bruno@clisp.org>
78819
78820         * lib/lock.h (gl_once_t): New type.
78821         (gl_once_define, gl_once): New macros.
78822         * lib/lock.c (fresh_once): New variable.
78823         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
78824         functions.
78825
78826 2005-07-16  Simon Josefsson  <jas@extundo.com>
78827
78828         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
78829         workaround, suggested by Bruno.
78830
78831 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
78832
78833         * modules/xalloc (Depends-on): Add xalloc-die.
78834         * modules/xvasprintf (Depends-on): Add xalloc-die.
78835
78836 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
78837
78838         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
78839         with a minor change.
78840
78841 2005-07-15  Bruno Haible  <bruno@clisp.org>
78842
78843         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
78844         When using lib/poll.c, define poll as rpl_poll.
78845
78846 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
78847
78848         * modules/argp (Depends-on): Remove unlocked-io.
78849
78850 2005-07-14  Derek Price  <derek@ximbiot.com>
78851
78852         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
78853         for glob symlink bug.
78854
78855 2005-07-14  Bruno Haible  <bruno@clisp.org>
78856
78857         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
78858         Instead, test for *_unlocked function declarations directly.
78859
78860 2005-07-11  Simon Josefsson  <jas@extundo.com>
78861
78862         * modules/size_max: New file.
78863
78864         * modules/xsize: Depend on size_max module for size_max.m4.
78865
78866 2005-07-11  Simon Josefsson  <jas@extundo.com>
78867
78868         * lib/size_max.h: New file.
78869
78870 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
78871
78872         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
78873         copyright symbol and the year.
78874         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
78875         (version_etc_va): Use parameterized copyright notice.
78876         Reword to conform to the current GNU coding standards.
78877
78878 2005-07-11  Karl Berry  <karl@gnu.org>
78879
78880         * doc/gnulib.texi (Quoting): new node.
78881         (Initial import): more info, from Patrice.
78882
78883 2005-07-11  Bruno Haible  <bruno@clisp.org>
78884
78885         * gnulib-tool (func_usage): Document option --avoid.
78886         (Command line options): Handle --avoid.
78887         (func_acceptable): New function.
78888         (func_modules_transitive_closure): Use it.
78889
78890 2005-07-11  Bruno Haible  <bruno@clisp.org>
78891
78892         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
78893         Reported by Jim Meyering.
78894
78895 2005-07-10  Bruno Haible  <bruno@clisp.org>
78896
78897         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
78898         Needed when size_t is smaller than 'unsigned int'.
78899         Reported by Paul Eggert.
78900
78901 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78902
78903         * modules/argp (Depends-on): Add unlocked-io
78904
78905 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78906
78907         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
78908         block of defines.
78909
78910 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
78911
78912         * config/srclist.txt: Comment out regcomp.c, since we have a porting
78913         fix now.
78914
78915 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
78916         and Paul Eggert  <eggert@cs.ucla.edu>
78917
78918         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
78919         in wint_t, not wchar_t.  Remove now-unnecessary cast.
78920
78921 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78922
78923         * modules/regex (Files): Add lib/regex_internal.c,
78924         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
78925         (Depends-on): Add extensions.
78926         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
78927
78928 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78929
78930         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
78931         pathconf.
78932         * m4/same.m4 (gl_SAME): Likewise.
78933         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
78934
78935         * m4/regex.m4: Adjust to new libc regex implementation.
78936         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
78937         all the .c and .h parts of (the new) regex.
78938         Quote the m4 stuff better.
78939         Check for RE_ICASE bug of old gnulib.
78940         Check for REG_STARTEND of recent libc.
78941         Rename local variables from jm_* to gl_*.
78942         Quote operand of "test -f".
78943         Say "recent enough" version of libc, not "version 2".
78944         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
78945         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
78946         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
78947         Remove check for btowc, isascii.
78948         Require AM_LANGINFO_CODESET.
78949
78950 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78951
78952         * lib/regex.c, regex.h: Sync from libc.
78953         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
78954         * lib/regexec.c:
78955         New files, synced from libc, except that regex_internal.h
78956         currently has a small porting fix.
78957
78958 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78959
78960         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
78961         regex_internal.c, regexec.c.
78962         Add regex_internal.h too, but as a comment, since the libc version
78963         is currently broken in gnulib mode.
78964
78965 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78966
78967         Support programs like Emacs that use gnulib but not gettext.
78968         * MODULES.html.sh (Internationalization functions): Add gettext-h.
78969         * modules/gettext-h: New file.
78970         * modules/gettext (Files): Remove lib/gettext.h.
78971         (Depends-on): Add gettext-h.
78972         (Makefile.am): Remove lib_SOURCES.
78973         * modules/argmatch, modules/c-stack, modules/closeout:
78974         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
78975         * modules/execute, modules/file-type, modules/getaddrinfo:
78976         * modules/getopt, modules/human, modules/javacomp:
78977         * modules/javaexec, modules/mkdir-p, modules/obstack:
78978         * modules/openat, modules/pagealign_alloc, modules/pipe:
78979         * modules/quotearg, modules/regex, modules/rpmatch:
78980         * modules/unicodeio, modules/userspec, modules/version-etc:
78981         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
78982         * modules/xsetenv:
78983         Depend on gettext-h, not gettext.
78984
78985 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78986
78987         * gnulib-tool (func_import): Add support for 'public domain' license.
78988         * modules/alloca, modules/atexit, modules/memmove:
78989         Now public domain, not GPL.
78990         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
78991         * modules/realloc, modules/strerror, modules/strtod:
78992         Now LGPL, not GPL.
78993
78994 2005-07-05  Bruno Haible  <bruno@clisp.org>
78995
78996         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
78997         autoconf CVS. Needed for mingw.
78998
78999 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79000
79001         Remove the dependency of the strftime module on the tzset module.
79002         * modules/strftime (Depends-on): Remove dependency on tzset.
79003
79004 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79005
79006         Remove the dependency of the strftime module on the tzset module.
79007         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
79008         gl_FUNC_TZSET_CLOBBER.
79009
79010 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79011
79012         Remove the dependency of the strftime module on the tzset module.
79013         * lib/strftime.c (my_strftime)
79014         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
79015         Copy the input structure, to work around some of the bug with
79016         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
79017         Solaris releases, you should also use the tzset module, but we won't
79018         require it as a dependency any more since we don't want LGPLed code
79019         to depend on GPLed code.
79020
79021 2005-07-02  Jim Meyering  <jim@meyering.net>
79022
79023         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
79024         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
79025         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
79026         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
79027
79028 2005-07-02  Jim Meyering  <jim@meyering.net>
79029
79030         * lib/backupfile.c (backup_args): Change a `0' to NULL.
79031
79032 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79033
79034         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
79035         declares only 'struct timespec;' (!).
79036
79037 2005-07-01  Jim Meyering  <jim@meyering.net>
79038
79039         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
79040         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
79041         * lib/save-cwd.c, tempname.c:
79042         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79043         and don't include <sys/file.h>).
79044
79045 2005-06-29  Jim Meyering  <jim@meyering.net>
79046
79047         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
79048         type name.  Use the variable name instead.
79049         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
79050         Likewise.
79051
79052 2005-06-28  Simon Josefsson  <jas@extundo.com>
79053
79054         * modules/check-version (Files): Add check-version.m4.
79055
79056 2005-06-28  Simon Josefsson  <jas@extundo.com>
79057
79058         * m4/check-version.m4: New file, suggested by Jim Meyering
79059         <jim@meyering.net>.
79060
79061 2005-06-28  Simon Josefsson  <jas@extundo.com>
79062
79063         * lib/check-version.h, lib/check-version.c: New files.
79064
79065 2005-06-28  Simon Josefsson  <jas@extundo.com>
79066
79067         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
79068         collision with global variable.  Better indentation.  Don't
79069         increment buffer pointer beyond buffer end.  Based on comments
79070         from Paul Eggert <eggert@cs.ucla.edu>.
79071
79072         * lib/base64.h: Indent.
79073
79074 2005-06-28  Simon Josefsson  <jas@extundo.com>
79075
79076         * doc/gnulib.texi (Library version handling): New section.
79077
79078 2005-06-28  Jim Meyering  <jim@meyering.net>
79079
79080         * check-module (find_included_lib_files): Hard-code another
79081         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
79082         but modules/fts-lgpl (correctly) does not list those files.
79083
79084         * modules/canonicalize (Files): Add lib/pathmax.h.
79085
79086 2005-06-25  Simon Josefsson  <jas@extundo.com>
79087
79088         * modules/check-version: New file.
79089
79090 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
79091
79092         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
79093         initializer of struct addrinfo, as an indication that we don't
79094         care how many members the structure has.
79095
79096 2005-06-24  Derek Price  <derek@ximbiot.com>
79097         and Bruno Haible  <bruno@clisp.org>
79098
79099         Remove stat module & update lstat.
79100         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
79101         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79102         * m4/stat.m4: Remove this file.
79103
79104 2005-06-24  Derek Price  <derek@ximbiot.com>
79105         and Bruno Haible  <bruno@clisp.org>
79106
79107         Remove stat module & update lstat.
79108         * lib/stat.c: Remove this file...
79109         (slash_aware_lstat): ...moving this content and its support...
79110         * lib/lstat.c (rpl_lstat): ...into here.
79111         * lib/lstat.h: New file.
79112
79113 2005-06-24  Derek Price  <derek@ximbiot.com>
79114         and Bruno Haible  <bruno@clisp.org>
79115
79116         Remove stat module & update lstat.
79117         * config/srclist.txt (libc sources): Remove stat.
79118
79119 2005-06-24  Derek Price  <derek@ximbiot.com>
79120         and Bruno Haible  <bruno@clisp.org>
79121
79122         Remove stat module & update lstat.
79123         * MODULES.html.sh (stat): Remove.
79124         * MODULES.html: Regenerated.
79125         * modules/lstat (Description): Correct function name.
79126         (Files): Add "lstat.h".
79127         (Depends-on): Remove stat, add xalloc, stat-macros.
79128         * modules/stat: Remove this file.
79129         (Include): Add "lstat.h", remove <sys/stat.h>.
79130
79131 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
79132
79133         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
79134         (ranged_convert): Don't save conversion in a temporary struct.
79135         This causes a warning with GCC 4.0.0, and anyway in the typical
79136         case it's not worth the extra 100 bytes or so of code.
79137         (ranged_convert, __mktime_internal): When calling a function via a
79138         pointer P, use P () rather than (*P) (), as we now assume C89 or
79139         better.
79140
79141 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79142
79143         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
79144         "who -r" failed to give output.  Problem reported by Tim Waugh.
79145
79146         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
79147         (xcalloc): Use it to avoid needless tests.
79148         Problem reported by Jim Meyering.
79149
79150 2005-06-20  Derek Price  <derek@ximbiot.com>
79151
79152         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
79153         unnecessary for Autoconfs > 2.59c.
79154
79155 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79156
79157         * lib/argp.h (__option_is_short): Check upper limit of
79158         __key. Isprint() requires its argument to have the value
79159         of an unsigned char or EOF.
79160
79161 2005-06-16  Jim Meyering  <jim@meyering.net>
79162
79163         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
79164         when either N or S is zero.
79165
79166 2005-06-16  Derek Price  <derek@ximbiot.com>
79167
79168         * m4/bison.m4: Declare YACC & YFLAGS precious.
79169
79170 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
79171
79172         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
79173         multibyte string or pattern, fall back on unibyte matching.
79174         Problem reported by James Youngman.
79175
79176 2005-06-08  Bruno Haible  <bruno@clisp.org>
79177
79178         * modules/csharpcomp: New file.
79179         * MODULES.html.sh (C#): Add csharpcomp.
79180
79181 2005-06-08  Bruno Haible  <bruno@clisp.org>
79182
79183         * m4/csharpcomp.m4: New file, from GNU gettext.
79184
79185 2005-06-08  Bruno Haible  <bruno@clisp.org>
79186
79187         * lib/csharpcomp.h: New file, from GNU gettext.
79188         * lib/csharpcomp.c: New file, from GNU gettext.
79189         * lib/csharpcomp.sh.in: New file, from GNU gettext.
79190
79191 2005-06-08  Bruno Haible  <bruno@clisp.org>
79192
79193         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
79194         warning on mingw.
79195
79196 2005-06-07  Derek Price  <derek@ximbiot.com>
79197
79198         Sync from CVS.
79199         * lib/glob_.h: Indent nested #ifdef.
79200
79201 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79202
79203         Sync from coreutils.
79204         Use "file name" when talking about file names, instead of "filename"
79205         or "path", as per the GNU coding standards.
79206         * lib/mkdir-p.c: Renamed from makepath.c.
79207         (make_dir_parents): Renamed from make_path.  All callers changed.
79208         * lib/mkdir-p.h: Likewise.  All includers changed.
79209         * lib/filenamecat.c: Renamed from path-concat.c.
79210         (file_name_concat): Renamed from path_concat.  All callers changed.
79211         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
79212         * lib/filenamecat.h: Likewise.  All includers changed.
79213         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
79214         in comments or local variable names.
79215         * lib/basename.c: Likewise.
79216         * lib/canonicalize.c, canonicalize.h: Likewise.
79217         * lib/dirname.c, dirname.h: Likewise.
79218         * lib/euidaccess.c: Likewise.
79219         * lib/exclude.c: Likewise
79220         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
79221         * lib/fsusage.c, fsuage.h: Likewise.
79222         * lib/fts.c, fts_.h: Likewise.
79223         * lib/getcwd.c: Likewise.
79224         * lib/getloadavg.c: Likewise.
79225         * lib/mkstemp.c: Likewise.
79226         * lib/mountlist.c, mountlist.h: Likewise.
79227         * lib/openat.c, openat.h: Likewise.
79228         * lib/readlink-stub.c: Likewise.
79229         * lib/readutmp.c, readutmp.h: Likewise.
79230         * lib/rename.c: Likewise.
79231         * lib/rmdir.c: Likewise.
79232         * lib/same.c: Likewise.
79233         * lib/savedir.c: Likewise.
79234         * lib/stripslash.c: Likewise.
79235         * lib/tempname.c: Likewise.
79236         * lib/xreadlink.c: Likewise.
79237         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
79238         All uses changed.
79239         * lib/exclude.h: Likewise.
79240
79241         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
79242         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79243         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
79244         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79245         * lib/pathmax.h: Include <limits.h> unconditionally, since other
79246         files have been getting away with it for years (MORE/BSD 4.3
79247         is extinct now).
79248         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
79249         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
79250
79251         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
79252         Define to 256, not 255, as per modern POSIX.
79253
79254 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79255
79256         Sync from coreutils.
79257         Use "file name" when talking about file names, instead of "filename"
79258         or "path", as per the GNU coding standards.
79259         * MODULES.html.sh: mkdir-p renamed from makepath.
79260         filenamecat renamed from path-concat.
79261         * modules/filenamecat: Renamed from modules/path-concat.
79262         (Files): filenamecat.h and filenamecat.c renamed from
79263         path-concat.h and path-concat.c.
79264         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
79265         (Include): filenamecat.h, not path-concat.h.
79266         * modules/mkdir-p: Renamed from modules/makepath.
79267         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
79268         makepath.c.
79269         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
79270         (Include): mkdir-p.h, not makepath.h.
79271
79272 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79273
79274         Sync from coreutils.
79275         * m4/mkdir-p.m4: Renamed from makepath.m4.
79276         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
79277         Rename files from makepath.c to mkdir-p.c, and from
79278         makepath.h to mkdir-p.h.
79279         * m4/filenamecat.m4: Renamed from path-concat.m4.
79280         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
79281         Rename files from path-concat.c to filenamecat.c,
79282         and from path-concat.h to filenamecat.h.
79283         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
79284         "file name" in local variables or comments.
79285         * m4/rename.m4: Likewise.
79286
79287 2005-06-01  Bruno Haible  <bruno@clisp.org>
79288
79289         * modules/csharpexec: New file.
79290         * MODULES.html.sh (C#): New section.
79291
79292 2005-06-01  Bruno Haible  <bruno@clisp.org>
79293
79294         * m4/csharp.m4: New file, from GNU gettext.
79295         * m4/csharpexec.m4: New file, from GNU gettext.
79296
79297 2005-06-01  Bruno Haible  <bruno@clisp.org>
79298
79299         * lib/csharpexec.h: New file, from GNU gettext.
79300         * lib/csharpexec.c: New file, from GNU gettext.
79301         * lib/csharpexec.sh.in: New file, from GNU gettext.
79302
79303 2005-05-31  Derek Price  <derek@ximbiot.com>
79304             Paul Eggert  <eggert@cs.ucla.edu>
79305
79306         Sync from cvs.
79307         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
79308
79309 2005-05-31  Derek Price  <derek@ximbiot.com>
79310             Paul Eggert  <eggert@cs.ucla.edu>
79311
79312         Sync from cvs.
79313         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
79314
79315 2005-05-29  Derek Price  <derek@ximbiot.com>
79316
79317         * config/srclist.txt (glob_.h, glob.c): Add these files.
79318
79319 2005-05-29  Derek Price  <derek@ximbiot.com>
79320
79321         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
79322         * modules/glob: New file.
79323         * modules/getlogin_r: Add link to POSIX spec in description.
79324
79325 2005-05-29  Derek Price  <derek@ximbiot.com>
79326             Paul Eggert  <eggert@cs.ucla.edu>
79327
79328         * m4/glob.m4: New file.
79329
79330 2005-05-29  Derek Price  <derek@ximbiot.com>
79331             Paul Eggert  <eggert@cs.ucla.edu>
79332
79333         * lib/glob_.h, lib/glob.c: New files.
79334
79335 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79336
79337         * modules/fts (Files): Remove m4/inttypes-pri.m4.
79338         * modules/fts-lgpl (Depends-on): Remove gettext.
79339
79340 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79341
79342         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
79343         and don't require gt_INTTYPES_PRI.
79344
79345 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79346
79347         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
79348
79349         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
79350         the configuration hassle isn't worth it.
79351         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
79352         (LONGEST_MODIFIER, PRIuMAX): Remove.
79353
79354 2005-05-27  Bruno Haible  <bruno@clisp.org>
79355
79356         * lib/getlogin_r.h: Remove second include of <stddef.h>.
79357
79358 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
79359
79360         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
79361         _POSIX_PTHREAD_SEMANTICS for Solaris.
79362
79363 2005-05-25  Derek Price  <derek@ximbiot.com>
79364
79365         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
79366
79367 2005-05-25  Derek Price  <derek@ximbiot.com>
79368             Paul Eggert  <eggert@cs.ucla.edu>
79369
79370         * modules/getlogin_r, m4/getlogin_r.m4: New files.
79371         * lib/getlogin_r.c, getlogin_r.h: New files.
79372
79373 2005-05-25  Bruno Haible  <bruno@clisp.org>
79374             Derek Price  <derek@ximbiot.com>
79375
79376         * lib/getlogin_r.h: Simplify API documentation.
79377
79378 2005-05-23  Derek Price  <derek@ximbiot.com>
79379
79380         * modules/minmax (Files): Add m4/minmax.m4.
79381         (configure.ac): Add gl_MINMAX.
79382
79383 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79384
79385         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
79386         so that unistd-safer.h (GPL'ed code) need not be included.
79387
79388 2005-05-22  Bruno Haible  <bruno@clisp.org>
79389
79390         * m4/minmax.m4: New file.
79391         Based on a patch by Derek Price <derek@ximbiot.com>.
79392
79393 2005-05-22  Bruno Haible  <bruno@clisp.org>
79394
79395         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
79396         (INT64_MIN): Fix definition.
79397         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
79398
79399         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
79400         NEED_SIGNED_INT_TYPES.
79401
79402         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
79403         HAVE_SYSTEM_INTTYPES.
79404
79405 2005-05-22  Bruno Haible  <bruno@clisp.org>
79406
79407         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
79408         Also include <sys/param.h> if it defines MIN, MAX.
79409         Based on a patch by Derek Price <derek@ximbiot.com>.
79410
79411 2005-05-21  Jim Meyering  <jim@meyering.net>
79412
79413         * modules/fts (Files): Add m4/inttypes-pri.m4.
79414         (Depends-on): Add lstat and remove gettext.  Alphabetize.
79415
79416 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79417
79418         New fts module.
79419         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
79420         (setup_dir, free_dir): New functions.
79421         (enter_dir, leave_dir): Define trivial
79422         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
79423         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
79424         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
79425         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
79426         Move to fts-cycle.c.
79427         (fts_open): Use setup_dir.
79428         (fts_close): Use free_dir.
79429         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
79430         This adds a label and some gotos, but the alternatives were messier.
79431         Check for memory allocation failure when entering a dir.
79432         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
79433         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
79434         (FTS): New member fts_cycle, that is a union that contains the
79435         old active_dir_ht and cycle_state.  All uses changed to mention
79436         fts_cycle.ht and fts_cycle.state.
79437         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
79438         fts.c, with the following changes:
79439         (setup_dir, free_dir): New functions.
79440         (enter_dir): Now returns bool.  Return true if successful, false
79441         if memory exhausted.  All callers changed.
79442         Do not bother partly cleaning up on
79443         memory allocation failure; that is free_dir's job.
79444         However, free ad if hash_insert fails, to avoid memory leak.
79445         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
79446         fts->fts_options to see which union member to use.
79447
79448 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79449
79450         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
79451         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
79452
79453 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79454
79455         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
79456
79457 2005-05-20  Jim Meyering  <jim@meyering.net>
79458
79459         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
79460         Now a macro, to pacify GCC.
79461
79462 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
79463
79464         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
79465         of -1.
79466
79467 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
79468
79469         * lib/chown.c (rpl_chown): Return -1 on failure.
79470
79471 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
79472
79473         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
79474         Don't check for stddef.h.
79475         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
79476         don't use its results.
79477         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
79478         since we include them unconditionally.  Don't require
79479         AM_STDBOOL_H, since stdbool is a prerequisite.
79480         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
79481         since we assume C89 or better.
79482         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
79483         as we don't use their results.
79484         Don't check for fchdir, memmove, memset, strrchr, as we use
79485         them unconditionally.
79486         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
79487         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
79488
79489 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
79490
79491         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
79492         Include <stddef.h> unconditionally, since we assume C89 now.
79493         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
79494         * lib/fts.c: Include fts_.h first, to check interface.
79495         Do not include intprops.h; no longer needed.
79496         Include cycle-check.h and hash.h, since fts_.h no longer does.
79497         Remove unnecessary casts of closedir to void.
79498         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
79499         decide whether to decrement nlinks.
79500         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
79501         (FTS): Use struct hash_table * instead of Hash_table, so that
79502         we no longer need to include hash.h here.
79503
79504 2005-05-18  Jim Meyering  <jim@meyering.net>
79505
79506         * modules/dirfd (License): Change to LGPL.  Most of the code
79507         is already in the public domain.
79508
79509 2005-05-18  Jim Meyering  <jim@meyering.net>
79510
79511         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
79512         Reported by Yoann Vandoorselaere.
79513
79514 2005-05-17  Jim Meyering  <jim@meyering.net>
79515
79516         * m4/fts.m4: New file, from coreutils.
79517
79518 2005-05-17  Jim Meyering  <jim@meyering.net>
79519
79520         * lib/fts.c, lib/fts_.h: New files, from coreutils.
79521
79522 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79523
79524         Sync from coreutils.
79525         * m4/unlinkdir.m4: New file.
79526
79527 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79528
79529         Sync from coreutils.
79530         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
79531         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
79532         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
79533         White space changes only.
79534         * lib/makepath.c (make_path): Port to hosts where leading "//" is
79535         special.
79536         * lib/yesno.c: Include getline.h, not ctype.h.
79537         (yesno): Don't remove leading white space; POSIX doesn't allow it.
79538         Use getline to remove arbitrary restriction on response length.
79539
79540 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79541
79542         * config/srclist-update: Spell out "Street" in FSF postal
79543         mail address; this is the style the FSF seems to prefer.
79544
79545         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
79546         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
79547         this updates FSF postal mail address.
79548
79549         Sync from coreutils.
79550         * modules/unlinkdir: New file.
79551         * modules/yesno (Depends-on): Add getline.
79552         * MODULES.html.sh (File system functions): Add unlinkdir.
79553
79554 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79555
79556         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
79557         lib/strsep.h:
79558         Change the initial comment to refer to GPL, not LGPL.
79559         gnulib-tool will change it to LGPL as needed.
79560
79561         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
79562         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
79563         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
79564         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
79565         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
79566         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
79567         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
79568         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
79569         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
79570         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
79571         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
79572         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
79573         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
79574         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
79575         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
79576         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
79577         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
79578         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
79579         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
79580         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
79581         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
79582         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
79583         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
79584         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
79585         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
79586         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
79587         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
79588         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
79589         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
79590         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
79591         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
79592         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
79593         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
79594         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
79595         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
79596         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
79597         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
79598         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
79599         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
79600         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
79601         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
79602         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
79603         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
79604         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
79605         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
79606         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
79607         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
79608         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
79609         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
79610         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
79611         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79612         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
79613         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
79614         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
79615         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
79616         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
79617         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
79618         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
79619         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
79620         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
79621         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
79622         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
79623         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
79624         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
79625         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
79626         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
79627         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
79628         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
79629         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
79630         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
79631         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
79632         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
79633         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
79634         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
79635         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
79636         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
79637         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
79638         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
79639         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
79640         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
79641         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
79642         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
79643         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
79644         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
79645         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
79646         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
79647         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
79648         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
79649         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
79650         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
79651         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
79652         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
79653         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
79654         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
79655         lib/yesno.c, lib/yesno.h:
79656         Update FSF postal mail address.
79657
79658 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79659
79660         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
79661         tests/test-memmem.c, tests/test-stpncpy.c:
79662         Update FSF postal mail address.
79663
79664 2005-05-13  Bruno Haible  <bruno@clisp.org>
79665
79666         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
79667         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
79668         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
79669         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
79670         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
79671         Add support for 64-bit integers in the MSVC compiler.
79672
79673 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79674
79675         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
79676
79677 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
79678
79679         * gnulib-tool (func_import): Sort and uniquify recommended includes.
79680
79681 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
79682
79683         * doc/getdate.texi (General date syntax): Don't say that date
79684         date --iso-8601=ns generates acceptable dates; it doesn't yet.
79685         Problem reported by Nic Ferrier.
79686
79687 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79688
79689         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
79690         specified in ai_socktype. Fix invalid ai_protocol
79691         check. ai_protocol is usually set to 0 or depending on
79692         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
79693         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
79694         ai_socktype / ai_protocol in the returned addrinfo structure.
79695
79696 2005-05-10  Simon Josefsson  <jas@extundo.com>
79697
79698         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
79699         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79700
79701 2005-05-10  Karl Berry  <karl@gnu.org>
79702
79703         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
79704         (from http://www.gnu.org/licenses).
79705         * doc/COPYING.LIB: also rename to COPYING.LESSER.
79706         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
79707         fdl.texi suffices.
79708
79709 2005-05-10  Karl Berry  <karl@gnu.org>
79710
79711         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
79712         (COPYING.DOC): remove.
79713
79714         * config/srclist-update: new FSF address.
79715
79716 2005-05-10  Derek Price  <derek@ximbiot.com>
79717
79718         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
79719         possible.
79720
79721 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79722             Bruno Haible  <bruno@clisp.org>
79723
79724         * modules/inet_ntop: New file.
79725         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79726         inet_ntop.
79727
79728 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79729             Bruno Haible  <bruno@clisp.org>
79730
79731         * m4/inet_ntop.m4: New file.
79732
79733 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79734             Bruno Haible  <bruno@clisp.org>
79735
79736         * lib/inet_ntop.h: New file.
79737         * lib/inet_ntop.c: New file, from glibc with modifications.
79738
79739 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
79740
79741         * modules/time_r (License): Change to LGPL.
79742         * modules/extensions (License): Change to LGPL.  Actually,
79743         the license is more permissive than that, but currently gnulib-tool
79744         doesn't know how to handle more-permissive licenses.
79745
79746         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
79747         Problem reported by Dave Love.
79748
79749 2005-05-08  Jim Meyering  <jim@meyering.net>
79750
79751         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
79752         blank.
79753
79754 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
79755
79756         * modules/argmatch (Depends-on): Add stdbool.
79757         * modules/backupfile (Depends-on): Likewise.
79758         * modules/chdir-long (Depends-on): Likewise.
79759         * modules/closeout (Depends-on): Likewise.
79760         * modules/cycle-check (Depends-on): Likewise.
79761         * modules/dirname (Depends-on): Likewise.
79762         * modules/fnmatch (Depends-on): Likewise.
79763         * modules/fsusage (Depends-on): Likewise.
79764         * modules/fwriteerror (Depends-on): Likewise.
79765         * modules/getcwd (Depends-on): Likewise.
79766         * modules/getloadavg (Depends-on): Likewise.
79767         * modules/hard-locale (Depends-on): Likewise.
79768         * modules/makepath (Depends-on): Likewise.
79769         * modules/mountlist (Depends-on): Likewise.
79770         * modules/nanosleep (Depends-on): Likewise.
79771         * modules/posixtm (Depends-on): Likewise.
79772         * modules/quotearg (Depends-on): Likewise.
79773         * modules/readtokens (Depends-on): Likewise.
79774         * modules/readtokens0 (Depends-on): Likewise.
79775         * modules/readutmp (Depends-on): Likewise.
79776         * modules/save-cwd (Depends-on): Likewise.
79777         * modules/strftime (Depends-on): Likewise.
79778         * modules/userspec (Depends-on): Likewise.
79779         * modules/utimecmp (Depends-on): Likewise.
79780         * modules/xgetcwd (Depends-on): Likewise.
79781         * modules/xnanosleep (Depends-on): Likewise.
79782         * modules/xstrtod (Depends-on): Likewise.
79783         * modules/yesno (Depends-on): Likewise.
79784
79785 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
79786
79787         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
79788         needless checks.
79789
79790 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79791
79792         Merge from coreutils.  Among other things,
79793         add bulletproofing for cases where stdin, stdout, or stderr are closed.
79794         * lib/fd-safer.c: New file.
79795         * lib/fcntl-safer.h, open-safer.c: Remove.
79796         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
79797         * lib/dup-safer.c: Include unistd-safer.h first.
79798         Don't include errno.h.
79799         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
79800         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
79801         * lib/file-type.c: Rely on file-type.h change.
79802         * lib/getloadavg.c: Include unistd-safer.h.
79803         (getloadavg): Use safer open.
79804         * lib/getusershell.c: Include "stdio-safer.h".
79805         (getusershell): Use safer fopen.
79806         * lib/long-options.c (long_options): Use NULL rather than 0.
79807         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
79808         'free'.
79809         * lib/modechange.c: Likewise.
79810         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
79811         (MODE_DONE): New constant.
79812         (struct mode_change): Remove 'next' member.
79813         (make_node_op_equals): New function; like the old one of the
79814         same name, except it allocates an array.
79815         (mode_compile, mode_create_from_ref): Use it.
79816         (mode_compile): Allocate result as an array, not a linked list.
79817         Parse octal string ourself, so that we catch mistakes like "+0".
79818         (mode_adjust): Arg is an array, not a linked list.
79819         * lib/modechange.c: Include stat-macros.h, xalloc.h.
79820         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
79821         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
79822         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
79823         Remove.  This is now stat-macros.h's job.
79824         (talloc): Remove.  All callers replaced by xalloc, so that
79825         our invokers don't have to worry about reporting memory failures.
79826         (make_node_op_equals): Remove.
79827         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
79828         New constants.
79829         (struct mode_change): Moved here from modechange.h.
79830         (mode_append_entry): Remove.
79831         (mode_compile): Remove MASKED_OPS arg, since it encouraged
79832         apps to have incorrect behavior.  Use simpler algorithm for head
79833         and tail.  Don't futz with umask; that's now the job of mode_adjust.
79834         Detect more invalid usages rather than having somewhat-random behavior.
79835         Don't insert an "a=" action, as that leads to incorrect behavior.
79836         (mode_compile, mode_create_from_ref): Return NULL on error instead
79837         of an enum, since now there's only one way to have an error.  All
79838         callers changed.
79839         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
79840         at the correct time.  Simplify calculation of "+u" and its ilk.
79841         Don't mishandle "+X".
79842         (mode_free): Remove "register" and localize decls.
79843         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
79844         (struct mode_change): Move to modechange.c; callers don't
79845         need to see this stuff.
79846         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
79847         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
79848         (mode_change, mode_adjust): Reflect the new signatures noted above.
79849         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
79850         that might redefine system include files.
79851         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
79852         (my_usleep): Use NULL rather than (void *) 0.
79853         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
79854         Use siginterrupt to specify that system calls should be interrupted.
79855         (rpl_nanosleep): Move initialization of suspended closer to call of
79856         my_usleep.
79857         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
79858         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
79859         (desirable_utmp_entry): New function.
79860         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
79861         using x2nrealloc, to simplify logic.
79862         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
79863         size calculation.  Do not assume utmp file is a regular file.
79864         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
79865         (READ_UTMP_CHECK_PIDS): New constant.
79866         * lib/save-cwd.c: Include unistd-safer.h.
79867         (save_cwd): Use fd_safer.
79868         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
79869         [!_LIBC] Include "stat-macros.h" instead.
79870         * lib/unistd-safer.h (fd_safer): New decl.
79871
79872 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79873
79874         * modules/getloadavg (Depends-on): Add unistd-safer.
79875         * modules/getusershell (Depends-on): Add stdio-safer.
79876         * modules/lstat (Depends-on): Remove xalloc.
79877         * modules/mkstemp (Depends-on): Add stat-macros.
79878         * modules/modechange (Depends-on): Remove xstrtol.
79879         Add stat-macros, xalloc.
79880         * modules/save-cwd (Depends-on): Add unistd-safer.
79881         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
79882         * modules/unistd-safer (Files): Add lib/fd-safer.c
79883         (Makefile.am): Remove lib_SOURCES.
79884
79885         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
79886         Remove fcntl-safer; unistd-safer supersedes it.
79887
79888 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79889
79890         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
79891         AC_HEADER_STAT.
79892         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
79893         (gl_PREREQ_CHOWN): Remove.
79894         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
79895         it.  Don't require AC_HEADER_STAT.
79896         (gl_PREREQ_LSTAT): Remove.
79897         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
79898         Don't require AC_HEADER_STAT.
79899         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
79900         (gl_PREREQ_RMDIR): Remove.
79901         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
79902         mention stat-macros.h or AC_HEADER_STAT, since we'll make
79903         the stat-macros module a prerequisite.
79904         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
79905         * m4/filemode.m4 (gl_FILEMODE): Likewise.
79906         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
79907         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
79908         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
79909         variable names.
79910         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
79911         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
79912         variable prefixes.
79913         * m4/fcntl-safer.m4: Remove.
79914         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
79915         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
79916         Invoke gl_PREREQ_FD_SAFER.
79917         (gl_PREREQ_FD_SAFER): New macro.
79918         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
79919         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
79920         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
79921         Remove duplicate call to AC_LIBOBJ(readutmp).
79922         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
79923
79924         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
79925         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
79926
79927 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79928
79929         * MODULES.html.sh (Misc): Add byteswap.
79930
79931 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79932
79933         * modules/getcwd (Depends-on): Add extensions.
79934         * modules/openat (Depends-on): Likewise.
79935
79936 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79937
79938         * modules/byteswap: New file.
79939
79940 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79941
79942         * m4/byteswap.m4: New file.
79943
79944 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79945
79946         * lib/byteswap_.h: New file.
79947
79948 2005-04-25  Karl Berry  <karl@gnu.org>
79949
79950         * m4/gettext.m4: Update from GNU gettext 0.14.4.
79951
79952 2005-04-25  Albert Chin  <china@thewrittenword.com>
79953
79954         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
79955         Toolkit C bug.
79956
79957 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
79958
79959         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
79960         (func_ln_if_changed): Remove forcibly for no error message
79961         in case file does not exist.
79962
79963 2005-04-19  Simon Josefsson  <jas@extundo.com>
79964
79965         * gnulib-tool (Options): Make --symlink mean --symbolic.
79966
79967 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
79968
79969         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
79970
79971 2005-04-16  Simon Josefsson  <jas@extundo.com>
79972
79973         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
79974
79975 2005-04-15  Simon Josefsson  <jas@extundo.com>
79976
79977         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
79978
79979 2005-04-15  Simon Josefsson  <jas@extundo.com>
79980
79981         * gnulib-tool: Rename --symlink to --symbolic.
79982
79983 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
79984
79985         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
79986         symbolic links to files instead of copying/moving.  Add --aux-dir,
79987         specifying directory relative --dir where auxiliary build tools
79988         are placed.
79989
79990 2005-04-14  Bruno Haible  <bruno@clisp.org>
79991
79992         * modules/allocsa (License): Change to LGPL.
79993         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
79994
79995 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
79996
79997         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
79998         that "UTC +1 second" continues to work.  Problem reported
79999         by Dmitry V. Levin.
80000         (relunit_snumber): New rule.
80001         (relunit): Use it.
80002
80003 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80004
80005         * lib/getdate.y (universal_time_zone_table): New constant.
80006         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
80007         universal_time_zone_table.
80008         (lookup_zone): Prefer universal_time_zone_table to
80009         local_time_zone_table, so that "GMT" time stamps are allowed in
80010         London during the summer.  Problem reported by Ian Abbott.
80011
80012 2005-04-12  Jim Meyering  <jim@meyering.net>
80013
80014         * lib/human.c (humblock): Set *options even when returning due to
80015         xstrtoumax conversion failure.  Thanks to a used-uninitialized
80016         warning from gcc-4.
80017
80018 2005-04-09  Jim Meyering  <jim@meyering.net>
80019
80020         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
80021         -Wuninitialized: initialize tm0.tm_year.
80022
80023 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
80024
80025         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
80026         count, since there's no maximum.  All uses changed.
80027         Add member dsts_seen.
80028         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
80029         not being INT_MAX.
80030         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
80031         Use pc_rels_seen to decide whther a date is absolute.
80032
80033         * lib/getdate.y (number): Don't overwrite year.
80034         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
80035         check.
80036
80037 2005-04-02  Simon Josefsson  <jas@extundo.com>
80038
80039         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
80040         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
80041
80042 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
80043
80044         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
80045         where no absolute path name can be longer than PATH_MAX.
80046
80047 2005-03-27  Jim Meyering  <jim@meyering.net>
80048
80049         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
80050
80051 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
80052
80053         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
80054         "one's complement" -> "ones' complement" in comment, as per Knuth.
80055         "value of type" -> "type or expression" in comment.
80056         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
80057
80058 2005-03-26  Jim Meyering  <jim@meyering.net>
80059
80060         Comment nits.
80061         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
80062         Correct typos: s/or/of/.
80063
80064 2005-03-26  Jim Meyering  <jim@meyering.net>
80065
80066         * modules/check-include-files: Move to ../ and rename to...
80067         * check-module: ...this.
80068
80069 2005-03-25  Jim Meyering  <jim@meyering.net>
80070
80071         * modules/xvasprintf (Files): Add xalloc.h.
80072
80073 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
80074
80075         * modules/gettext (Files): config/config.rpath ->
80076         build-aux/config.rpath
80077         * modules/iconv (Files): Likewise.
80078         Problem reported by Oskar Liljeblad.
80079
80080 2005-03-23  Jim Meyering  <jim@meyering.net>
80081
80082         * modules/check-include-files: New script to check for
80083         missing dependencies, multiple includes, etc.
80084
80085         * modules/c-strtold (Depends-on): Add xalloc.
80086         * modules/c-strtod (Depends-on): Add xalloc.
80087         * modules/hash (Depends-on): Add xalloc.
80088         (Files): Remove lib/xalloc.h.
80089
80090         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
80091         * modules/userspec (Files): Add lib/inttostr.h.
80092
80093 2005-03-23  Jim Meyering  <jim@meyering.net>
80094
80095         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
80096
80097 2005-03-22  Jim Meyering  <jim@meyering.net>
80098
80099         * modules/stat-macros: New module.
80100         * modules/canonicalize, modules/euidaccess, modules/file-type,
80101         * modules/filemode, modules/lchown, modules/makepath,
80102         * modules/rmdir, modules/stat: Depend on new stat-macros module
80103         rather than listing lib/stat-macros.h manually.
80104         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
80105
80106 2005-03-22  Jim Meyering  <jim@meyering.net>
80107
80108         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
80109
80110 2005-03-22  Bruno Haible  <bruno@clisp.org>
80111
80112         * config/srclist.txt: Replace target directory 'config' with
80113         'build-aux'.
80114         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
80115         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
80116         ../build-aux/.
80117
80118 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
80119
80120         * modules/chdir-long (Depends-on): Add mempcpy.
80121
80122         * modules/acl, modules/backupfile, modules/c-strtod,
80123         modules/c-strtold, modules/canon-host, modules/canonicalize,
80124         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
80125         modules/exclude, modules/exitfail, modules/file-type,
80126         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
80127         modules/getdate, modules/getline, modules/getpagesize,
80128         modules/getpass, modules/getugroups, modules/group-member,
80129         modules/hard-locale, modules/hash, modules/human, modules/idcache,
80130         modules/inttostr, modules/long-options, modules/makepath,
80131         modules/md5, modules/memcasecmp, modules/memcoll,
80132         modules/modechange, modules/mountlist, modules/path-concat,
80133         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
80134         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
80135         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
80136         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
80137         modules/strftime, modules/strndup, modules/strverscmp,
80138         modules/timespec, modules/unlocked-io, modules/userspec,
80139         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
80140         modules/yesno:
80141         Remove lib_SOURCES line from Makefile.am section, as this is now
80142         done automatically by the corresponding Autoconf macro.
80143
80144 2005-03-21  Jim Meyering  <jim@meyering.net>
80145
80146         Changes imported from coreutils.
80147
80148         * lib/cycle-check.c: Don't include xalloc.h.
80149
80150         * lib/path-concat.c: Don't include assert.h.
80151         (path_concat): Remove assertion that would have triggered
80152         for ABASE starting with more than one slash.
80153         Reported by Andreas Schwab.
80154
80155         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
80156         properly when ABASE is an absolute file name.
80157         Correct the description of this function.
80158         Include <assert.h>.
80159         Add an assertion and a test driver.
80160         This fixes a bug introduced on 2004-07-02.
80161         Andreas Schwab reported the resulting failure of cp --parents:
80162         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
80163
80164 2005-03-21  Jim Meyering  <jim@meyering.net>
80165
80166         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
80167         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
80168
80169 2005-03-21  Jim Meyering  <jim@meyering.net>
80170         and  Paul Eggert  <eggert@cs.ucla.edu>
80171
80172         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
80173         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
80174         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
80175         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
80176         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
80177         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
80178         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
80179         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
80180         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
80181         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
80182         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
80183         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
80184         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
80185         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
80186         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
80187         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
80188         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
80189         for these modules.
80190
80191 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
80192
80193         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
80194         (which shouldn't happen), generate nothing instead of returning 0
80195         immediately, so that nstrftime (NULL, ...) doesn't return 0.
80196
80197 2005-03-16  Bruno Haible  <bruno@clisp.org>
80198
80199         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
80200         HAVE_LONGLONG_64BIT.
80201
80202 2005-03-16  Bruno Haible  <bruno@clisp.org>
80203
80204         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
80205         HAVE_LONGLONG_64BIT.
80206
80207 2005-03-16  Bruno Haible  <bruno@clisp.org>
80208
80209         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
80210         HAVE_LONGLONG_64BIT.
80211
80212 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
80213
80214         * lib/strftime.c (my_strftime): Prepend space to format so that we can
80215         reliably distinguish strftime failure from empty output on POSIX
80216         hosts.
80217
80218 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
80219
80220         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
80221         (iconv_string): Don't guess a size-zero buffer, as that might cause
80222         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
80223         result would be 'too large', where 'too large' is (heuristically)
80224         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
80225         overflow concerns.  This will prevent some unwanted malloc failures
80226         when the inputs are very large.
80227
80228 2005-03-15  Karl Berry  <karl@gnu.org>
80229
80230         * config/srclist.txt (config.rpath): from gettext.
80231         * config/config.rpath: update.
80232
80233 2005-03-15  Bruno Haible  <bruno@clisp.org>
80234
80235         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
80236         to 'negate'.
80237
80238         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
80239         variable.
80240
80241         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
80242         results.
80243
80244 2005-03-14  Simon Josefsson  <jas@extundo.com>
80245
80246         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
80247         <fx@gnu.org>.
80248
80249 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
80250
80251         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
80252         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
80253         intprops.h.
80254         * lib/strtol.c: Likewise.
80255
80256 2005-03-14  Jim Meyering  <jim@meyering.net>
80257
80258         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
80259         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
80260         to be nonzero so that we (and caller) can detect the difference
80261         between a valid zero-length expansion and an error return, even
80262         when the underlying strftime fails before writing anything into
80263         that location.
80264
80265 2005-03-14  Bruno Haible  <bruno@clisp.org>
80266
80267         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
80268         Update from GNU gettext 0.14.3.
80269
80270 2005-03-10  Jim Meyering  <jim@meyering.net>
80271
80272         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
80273
80274 2005-03-10  Jim Meyering  <jim@meyering.net>
80275
80276         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
80277         so that this module works on systems without fchdir.
80278
80279 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
80280
80281         Factor int-properties macros into a single file, except for
80282         glibc-related files.
80283         * lib/intprops.h: New file.
80284         * lib/getloadavg.c: Include it instead of limits.h.
80285         (INT_STRLEN_BOUND): Remove.
80286         * lib/human.c: Include intprops.h.
80287         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
80288         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
80289         302/1000.
80290         * lib/inttostr.h: Include intprops.h instead of limits.h.
80291         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
80292         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
80293         for consistency with intprops.h.
80294         (time_t_is_integer, twos_complement_arithmetic): Use them.
80295         * lib/sig2str.h: Include <signal.h>, intprops.h.
80296         (INT_STRLEN_BOUND): Remove.
80297         * lib/strftime.c (TYPE_SIGNED): Remove.
80298         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
80299         * lib/strtol.c: Adjust comments to match intprops.h.
80300         * lib/userspec.c: Include intprops.h.
80301         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
80302         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
80303         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
80304         instead of rolling our own expressions.
80305         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
80306
80307         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
80308         instead of int.
80309         (my_strftime): Do not mishandle years close to INT_MAX, by doing
80310         the right thing even if adding 1900 would overflow.  Similarly
80311         for tm_mon + 1 and tm_yday + 1.
80312         Make %Y always equivalent to %C%y, and similarly for %G and %g.
80313         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
80314         (DO_SIGNED_NUMBER): New macro.
80315         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
80316
80317 2005-03-07  Bruno Haible  <bruno@clisp.org>
80318
80319         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
80320
80321 2005-03-07  Bruno Haible  <bruno@clisp.org>
80322
80323         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
80324
80325 2005-03-04  Derek R. Price  <derek@ximbiot.com>
80326
80327         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
80328         (func_import): Only replace files via --import when they have actually
80329         changed.
80330
80331 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80332
80333         * m4/mmap-anon.m4: New file.
80334         * m4/pagealign_alloc.m4: New file.
80335
80336 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80337             Bruno Haible  <bruno@clisp.org>
80338
80339         * modules/pagealign_alloc: New file.
80340         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
80341
80342 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80343             Bruno Haible  <bruno@clisp.org>
80344
80345         * lib/pagealign_alloc.h: New file.
80346         * lib/pagealign_alloc.c: New file.
80347
80348 2005-03-03  Bruno Haible  <bruno@clisp.org>
80349
80350         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
80351         Use an all-permissive copyright notice, recommended by RMS.
80352
80353 2005-03-02  Bruno Haible  <bruno@clisp.org>
80354
80355         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
80356         of AIX, the replacement has to be done only after <string.h> is
80357         included, therefore not in config.h. stpncpy.h does the replacement,
80358         and stpncpy.c uses it.
80359
80360 2005-03-02  Bruno Haible  <bruno@clisp.org>
80361
80362         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
80363         stpncpy.c uses it.
80364
80365 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80366
80367         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
80368         The workaround isn't strictly needed for POSIX conformance, and
80369         it's too much of a pain to configure and maintain.  We'll ask
80370         people to fix their kernels instead.
80371         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
80372         (NANOSLEEP_BUG_WORKAROUND): Remove.
80373         (xnanosleep): Remove the workaround.
80374
80375 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80376
80377         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
80378         Reported by Derek Price.
80379         (Include): Add "timespec.h".
80380
80381         * modules/xnanosleep (Depends-on): Remove gethrxtime.
80382
80383 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80384
80385         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
80386         to detect nanosleep bug.
80387
80388 2005-03-01  Bruno Haible  <bruno@clisp.org>
80389
80390         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
80391
80392 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
80393
80394         * modules/gethrxtime: New file.
80395         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
80396         (Depends-on): Add gethrxtime.
80397         (configure.ac): Add gl_XNANOSLEEP.
80398         (Makefile.am): Remove lib_SOURCES line.
80399
80400 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
80401
80402         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
80403         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
80404
80405 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
80406
80407         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
80408         * lib/timespec.h (gettime): Return void, since it always
80409         succeeds now.  All uses changed.
80410         * lib/gettime.c (gettime): Likewise.
80411         [HAVE_NANOTIME]: Prefer nanotime.
80412         Assume gettimeofday succeeds, as POSIX requires.
80413         Assime time () succeeds, since other code already does.
80414         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
80415         (timespec_subtract): Remove.
80416         (NANOSLEEP_BUG_WORKAROUND): New constant.
80417         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
80418         things considerably.  Use it only on GNU/Linux hosts, since the
80419         workaround shouldn't be needed elsewhere.
80420
80421 2005-02-24  Bruno Haible  <bruno@clisp.org>
80422
80423         * modules/gettext (Files): Add m4/glibc2.m4.
80424
80425 2005-02-24  Bruno Haible  <bruno@clisp.org>
80426
80427         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
80428         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
80429         * m4/progtest.m4:
80430         Update from GNU gettext 0.14.2.
80431         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
80432
80433 2005-02-24  Bruno Haible  <bruno@clisp.org>
80434
80435         * lib/localcharset.c: Update from GNU gettext 0.14.2.
80436         * lib/config.charset: Update from GNU gettext 0.14.2.
80437
80438 2005-02-24  Bruno Haible  <bruno@clisp.org>
80439
80440         * lib/gettext.h: Update from GNU gettext 0.14.2.
80441
80442 2005-02-23  Simon Josefsson  <jas@extundo.com>
80443
80444         * m4/iconvme.m4: New file.
80445
80446 2005-02-23  Jim Meyering  <jim@meyering.net>
80447
80448         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
80449         change.
80450         Thanks to Bruno Haible for catching it.
80451
80452 2005-02-22  Simon Josefsson  <jas@extundo.com>
80453
80454         * modules/iconvme: New file.
80455
80456         * MODULES.html.sh: Add iconvme.
80457
80458 2005-02-22  Simon Josefsson  <jas@extundo.com>
80459
80460         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
80461
80462 2005-02-22  Simon Josefsson  <jas@extundo.com>
80463
80464         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
80465
80466 2005-02-22  Jim Meyering  <jim@meyering.net>
80467
80468         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
80469         s/ifndef/ifdef/.
80470
80471 2005-02-20  Neil Conway  <neilc@samurai.com>
80472
80473         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
80474         returned by OSX/Darwin if the specified buffer is not large
80475         enough for the hostname.
80476
80477 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80478
80479         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
80480         pass it to _help, otherwise the latter coredumps trying to
80481         dereference state.root_argp.
80482
80483 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80484
80485         * modules/chdir-long (Depends-on): Add memrchr.
80486         * modules/memrchr (Files): Add lib/memrchr.h.
80487         (Include): "memrchr.h".
80488
80489 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80490
80491         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
80492
80493 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80494
80495         * lib/memrchr.h: New file.
80496         * lib/chdir-long.c: Include it.
80497         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
80498         Don't bother including stddef.h.
80499
80500 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
80501
80502         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
80503         inclusion.
80504         Include <sys/types.h>, for dev_t.
80505         (ME_DUMMY, ME_REMOTE): Move from here....
80506         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
80507         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
80508         Dmitry V. Levin.
80509         Include mountlist.h first, to test the interface.
80510
80511 2005-01-29  Bruno Haible  <bruno@clisp.org>
80512
80513         * lib/progname.c (program_name): Initialize.
80514         Needed when linking statically on MacOS X.
80515
80516 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
80517
80518         Sync from coreutils.
80519         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
80520         (Depends-on): Add c-strtod.
80521         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
80522
80523 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
80524
80525         Sync from coreutils.
80526         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
80527
80528         Remove files that are specific to coreutils.
80529         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
80530
80531 2005-01-28  Bruno Haible  <bruno@clisp.org>
80532
80533         * modules/javacomp: New file.
80534         * MODULES.html.sh (Java): Add javacomp.
80535
80536 2005-01-28  Bruno Haible  <bruno@clisp.org>
80537
80538         * m4/javacomp.m4: New file, from GNU gettext.
80539
80540 2005-01-28  Bruno Haible  <bruno@clisp.org>
80541
80542         * lib/javacomp.sh.in: New file, from GNU gettext.
80543         * lib/javacomp.h: New file, from GNU gettext.
80544         * lib/javacomp.c: New file, from GNU gettext.
80545
80546 2005-01-26  Simon Josefsson  <jas@extundo.com>
80547
80548         * lib/gai_strerror.c: Use GPL in header.
80549
80550 2005-01-26  Bruno Haible  <bruno@clisp.org>
80551
80552         * modules/javaexec: New file.
80553         * MODULES.html.sh (Java): Add javaexec.
80554
80555 2005-01-26  Bruno Haible  <bruno@clisp.org>
80556
80557         * m4/javaexec.m4: New file, from GNU gettext.
80558
80559 2005-01-26  Bruno Haible  <bruno@clisp.org>
80560
80561         * lib/javaexec.sh.in: New file, from GNU gettext.
80562         * lib/javaexec.h: New file, from GNU gettext.
80563         * lib/javaexec.c: New file, from GNU gettext.
80564
80565 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80566
80567         * modules/lchown (Depends-on): Remove lchown.h
80568
80569 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80570
80571         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
80572         must be defined if the header file was not found, in order
80573         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
80574
80575 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80576
80577         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
80578         initializers for struct pentry_state.
80579         (__argp_error): Check return value of __asprintf
80580         (__argp_failure): Translate error message
80581
80582         * lib/argp-parse.c: Removed braces around the expansion of N_()
80583
80584 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80585
80586         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
80587         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
80588         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
80589         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
80590         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
80591         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
80592         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
80593         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
80594         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
80595         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
80596         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
80597         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
80598         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
80599         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
80600         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
80601         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
80602         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
80603         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
80604         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
80605         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
80606         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
80607         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
80608         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
80609         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
80610         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
80611         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
80612         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
80613         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
80614         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
80615         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
80616         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
80617         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
80618         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
80619         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
80620         xstrtol.m4, xstrtoumax.m4, yesno.m4:
80621         Use an all-permissive copyright notice, recommended by RMS.
80622
80623 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
80624
80625         * modules/chdir-long (Depends-on): Remove mempcpy.
80626
80627 2005-01-21  Jim Meyering  <jim@meyering.net>
80628
80629         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
80630         same value as for Solaris 9.
80631
80632         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
80633         component length.  This included changing the parameter to be
80634         of type `char *' rather than `char const *'.
80635         * lib/chdir-long.h (chdir_long): Update prototype.
80636
80637         * lib/openat.c (fdopendir, fstatat): New functions.
80638         * lib/openat.h: Include headers required for use of DIR and struct
80639         stat.
80640         [AT_SYMLINK_NOFOLLOW]: Define.
80641         (fdopendir, fstatat): Add prototypes.
80642
80643 2005-01-21  Bruno Haible  <bruno@clisp.org>
80644
80645         * modules/classpath: New file.
80646         * MODULES.html.sh (Java): Add classpath.
80647
80648 2005-01-21  Bruno Haible  <bruno@clisp.org>
80649
80650         * lib/classpath.h: New file, from GNU gettext.
80651         * lib/classpath.c: New file, from GNU gettext.
80652
80653 2005-01-20  Simon Josefsson  <jas@extundo.com>
80654
80655         * modules/version-etc-fsf: New file.
80656
80657 2005-01-20  Simon Josefsson  <jas@extundo.com>
80658
80659         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
80660         * lib/version-etc.c: Remove version_etc_copyright.
80661         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
80662         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
80663
80664 2005-01-20  Simon Josefsson  <jas@extundo.com>
80665
80666         * lib/base64.h (isbase64): Add.
80667
80668         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
80669         using a unsigned prototype, don't inline.
80670         (base64_decode): Use it.
80671
80672 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80673
80674         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
80675         it.
80676
80677 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80678
80679         * lib/save-cwd.c (save_cwd): Remove code to support the case
80680         where fchdir is missing or flaky.
80681
80682 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80683
80684         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
80685
80686 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
80687
80688         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
80689         AC_LIBSOURCES now does this.
80690         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
80691         with new ullong_max module.
80692
80693 2005-01-19  Bruno Haible  <bruno@clisp.org>
80694
80695         * modules/sh-quote: New file.
80696         * MODULES.html.sh (Executing programs): Add sh-quote.
80697
80698 2005-01-19  Bruno Haible  <bruno@clisp.org>
80699
80700         * lib/sh-quote.h: New file, from GNU gettext.
80701         * lib/sh-quote.c: New file, from GNU gettext.
80702
80703 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80704
80705         Merge from coreutils.
80706         * m4/ullong_max.m4: New file.
80707         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
80708         (gl_MACROS): Assume localeconv exists.
80709
80710 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80711
80712         Merge changes from coreutils, as described below in several
80713         changelogs dated today.
80714
80715         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
80716         (O_DIRECTORY): Remove; not needed here, since "." must be
80717         a directory.  All uses removed.
80718         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
80719         universal on Suns, and we also need to test for IRIX.
80720         Revamp code to use 'if' rather than '#if'.
80721         Avoid unnecessary comparison of cwd->desc to 0.
80722
80723         * lib/utimens.c (futimens): Robustify the previous patch, by checking
80724         for known valid error numbers rather than observed invalid ones.
80725
80726 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80727
80728         * modules/ullong_max: New file.
80729
80730         * modules/chdir-long, modules/openat: New files.
80731         * modules/save-cwd (Depends-on): Depend on chdir-long.
80732         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
80733
80734 2005-01-18  Jim Meyering  <jim@meyering.net>
80735
80736         Merge from coreutils.
80737         * m4/chdir-long.m4, m4/openat.m4: New files.
80738         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
80739         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
80740         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
80741         is sane and DOES follow symlinks.  Besides, testing 20 different
80742         systems found no broken chown implementations.
80743         Prompted by a change in rsync's copy of this macro.
80744         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
80745
80746         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
80747
80748         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
80749         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
80750         NULL-means-set-to-current-time semantics.
80751         Remove temporary file immediately, rather than waiting
80752         for configure's at-exit trap code to do it.
80753
80754 2005-01-18  Jim Meyering  <jim@meyering.net>
80755
80756         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80757
80758         * lib/utimens.c (futimens): Account for the fact that futimes
80759         can also fail with errno == ENOSYS or errno == ENOENT.
80760         Patch from Dmitry V. Levin.
80761
80762         Change the name of the robust chdir function from chdir to chdir_long.
80763         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
80764         (restore_cwd): Use chdir_long, not chdir.
80765         * lib/chdir-long.c: Renamed from chdir.c.
80766         * lib/chdir-long.h: Renamed from chdir.h.
80767         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
80768         Hurd.
80769
80770 2005-01-18  Bruno Haible  <bruno@clisp.org>
80771
80772         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
80773         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
80774         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
80775         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
80776         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
80777         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
80778         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
80779         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
80780         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
80781         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
80782         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
80783         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
80784         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
80785         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
80786         Use an all-permissive copyright notice, recommended by RMS.
80787
80788 2005-01-18  Bob Proulx  <bob@proulx.com>
80789
80790         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
80791         simplify offsetof() macro construct to avoid compile failure with
80792         native HP-UX 11.0 ANSI C compiler.
80793
80794 2005-01-17  Bruno Haible  <bruno@clisp.org>
80795
80796         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
80797         redundant because stpncpy.m4 takes care of it.
80798
80799 2005-01-17  Bruno Haible  <bruno@clisp.org>
80800
80801         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
80802
80803 2005-01-17  Bruno Haible  <bruno@clisp.org>
80804
80805         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
80806         used.
80807
80808 2005-01-17  Bruno Haible  <bruno@clisp.org>
80809
80810         * lib/fwriteerror.h (fwriteerror): Change specification to include
80811         fclose.
80812         * lib/fwriteerror.c: Include <stdbool.h>.
80813         (fwriteerror): At the end, close the file stream. Record whether
80814         stdout was already closed.
80815
80816 2005-01-17  Bruno Haible  <bruno@clisp.org>
80817
80818         * lib/execute.c (environ): Declare if needed.
80819         * lib/pipe.c (environ): Likewise.
80820         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
80821
80822 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80823
80824         * modules/argp: Depend on vsnprintf
80825
80826 2005-01-10  Jim Meyering  <jim@meyering.net>
80827
80828         * modules/closeout (Depends-on): Add atexit.
80829
80830 2005-01-06  Bruno Haible  <bruno@clisp.org>
80831
80832         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
80833
80834 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80835
80836         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
80837         definitions to be after all include files, to avoid collisions.
80838         Problem reported by Bob Proulx.
80839
80840 2005-01-04  Jim Meyering  <jim@meyering.net>
80841
80842         Changes imported from coreutils.
80843         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
80844         as the mkstemp template, use a temporary directory and an
80845         8.3-friendly template to avoid trouble on systems like DJGPP.
80846         Reported by Juan M. Guerrero via Stepan Kasal.
80847         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
80848         close. Remove the temporary directory right away, rather than waiting
80849         for configure's at-exit trap code to do it.
80850         Suggestion from Stepan Kasal.
80851
80852 2005-01-01  Simon Josefsson  <jas@extundo.com>
80853
80854         * gnulib-tool: Print #include directives when --import'ing.
80855
80856 2004-12-28  Simon Josefsson  <jas@extundo.com>
80857
80858         * tests/test-base64.c: Include required header files.  Remove
80859         unused variables.
80860
80861 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
80862
80863         * modules/error (Depends-on): Remove gettext.
80864
80865 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
80866
80867         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
80868         not needed.  This removes a dependency on the gettext module.
80869         [defined _LIBC]: Do not include <libintl.h>; not needed.
80870
80871 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
80872
80873         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
80874         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
80875
80876 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
80877
80878         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
80879         HAVE_DECL_STRTOLD.
80880
80881 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80882
80883         * modules/getdate (Depends-on): Remove alloca-opt.
80884
80885 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80886
80887         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
80888
80889 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80890
80891         * lib/argp-parse.c: Include <stddef.h>.
80892         (alignof, alignto): New macros.
80893         (parser_init): Don't assume that void * is aligned sufficiently
80894         for struct option.
80895
80896         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
80897         need to extend the stack.
80898         (YYINITDEPTH): New macro, so that the initial stack isn't overly
80899         large.
80900
80901 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80902
80903         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
80904
80905 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
80906
80907         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
80908         (2004-10-24) change.  Apparently this was a false alarm.
80909
80910         * modules/getdate: Depend on alloca-opt, not alloca.
80911
80912 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
80913
80914         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
80915         Remove now-obsolete comment about AIX.
80916         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
80917         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
80918         (YYMAXDEPTH): New macro.
80919
80920 2004-12-18  Simon Josefsson  <jas@extundo.com>
80921
80922         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
80923
80924 2004-12-18  Bruno Haible  <bruno@clisp.org>
80925
80926         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
80927
80928 2004-12-18  Bruno Haible  <bruno@clisp.org>
80929
80930         * lib/fatal-signal.c (fatal_signals): Make non-const.
80931         (init_fatal_signals): New function.
80932         (uninstall_handlers, install_handlers): Ignore signals that were set to
80933         SIG_IGN.
80934         (at_fatal_signal): Call init_fatal_signals.
80935         (init_fatal_signal_set): Likewise. Ignore signals that were set to
80936         SIG_IGN.
80937         Reported by Paul Eggert.
80938
80939 2004-12-18  Bruno Haible  <bruno@clisp.org>
80940
80941         * doc/alloca.texi: New file.
80942         * doc/alloca-opt.texi: New file.
80943
80944 2004-12-17  Jim Meyering  <jim@meyering.net>
80945
80946         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
80947         Otherwise, install-sh could exit with improper exit status when
80948         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
80949
80950 2004-12-16  Simon Josefsson  <jas@extundo.com>
80951
80952         * tests/test-base64.c: Add license.
80953
80954 2004-12-15  Stepan Kasal  <address@hidden>
80955
80956         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
80957
80958 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
80959
80960         * modules/getcwd (Files): Add m4/d-ino.m4.
80961         Suggested by Mark D. Baushke.
80962
80963 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
80964
80965         * lib/getdate.y (textint): New member "negative".
80966         (time_zone_hhmm): New function.
80967         Expect 14 shift-reduce conflicts, not 13.
80968         (o_colon_minutes): New rule.
80969         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
80970         (yylex): Set the "negative" member of signed numbers.
80971
80972 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
80973
80974         * doc/getdate.texi (Time of day items, Time zone items):
80975         Describe new formats +00:00, UTC+00:00.
80976
80977 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80978
80979         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
80980         spurious "-l"s.  Problem reported by Stepan Kasal.
80981
80982 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
80983
80984         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
80985         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
80986
80987 2004-12-04  Simon Josefsson  <jas@extundo.com>
80988
80989         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
80990         Vandoorselaere <yoann@prelude-ids.org>.
80991
80992 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80993
80994         Changes imported from coreutils.
80995         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
80996         exist.
80997         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
80998
80999 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81000
81001         Changes imported from coreutils.
81002         * lib/hard-locale.c: Assume <locale.h> exists.
81003         Include "strdup.h".
81004         (GLIBC_VERSION): New macro.
81005         (hard_locale): Assume setlocale exists.
81006         Rewrite to avoid #ifdef.
81007         Use strdup rather than malloc + strcpy.
81008         * lib/human.c: Assume <locale.h> exists.
81009         (human_readable): Assume localeconv exists.
81010
81011 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
81012
81013         * modules/hard-locale (Depends-on): Add strdup.
81014
81015 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
81016
81017         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
81018         convert T2, not T.  (Imported from libc.)
81019
81020 2004-11-30  Simon Josefsson  <jas@extundo.com>
81021
81022         * modules/restrict (License): Change to LGPL.
81023
81024 2004-11-30  Simon Josefsson  <jas@extundo.com>
81025
81026         * m4/restrict.m4: Add copyright and copying conditions.
81027
81028 2004-11-30  Simon Josefsson  <jas@extundo.com>
81029
81030         * m4/base64.m4: New file.
81031
81032 2004-11-30  Simon Josefsson  <jas@extundo.com>
81033
81034         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
81035         base64.
81036
81037         * tests/test-base64.c: New file.
81038
81039         * modules/base64: New file.
81040
81041 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
81042
81043         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
81044         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
81045
81046         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
81047
81048 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
81049
81050         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
81051         (__getcwd.c): Don't restore errno; glibc doesn't.
81052         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
81053         first, falling back to our code only if its results look suspicious.
81054         Ensure that the resulting buffer is only as large as necessary.
81055
81056         * lib/readutmp.c: Include readutmp.h first.
81057         Include <errno.h>, since readutmp.h no longer does that.
81058         * lib/readutmp.h: Don't include <errno.h>,
81059         <sys/param.h>, <time.h>; not needed to establish interface.
81060         (errno): Remove decl.
81061         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
81062         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
81063         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
81064
81065 2004-11-28  Simon Josefsson  <jas@extundo.com>
81066
81067         * lib/base64.h, base64.c: New file.
81068
81069 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
81070
81071         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
81072
81073 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
81074
81075         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
81076         (Depends-on): Remove pathmax, same.  Add mempcpy.
81077         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
81078         (Makefile.am): Append getcwd.h to lib_SOURCES.
81079         (Include): Add getcwd.h.
81080         (Maintainer): Change from Jim Meyering to "all, glibc",
81081         since getdate now uses intended-for-glibc code.
81082         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
81083         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
81084
81085 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81086
81087         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
81088         HP's ANSI C compiler.
81089         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
81090         Declaring int functions causes warnings on some modern systems and
81091         shouldn't be needed to compile on ancient ones.
81092         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
81093         defined.
81094
81095         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
81096         with the following changes.
81097         (__set_errno): Parenthesize properly.
81098         Include <stdbool.h>.
81099         (MIN, MAX, MATCHING_INO): New macros.
81100         (__getcwd): Define with prototype, not K&R form.
81101         Use heuristics to allocate default buffer on stack if possible.
81102         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
81103         behavior, and to avoid the PATH_MAX limit when computing
81104         ../../../../...
81105         Use MATCHING_INO to compare inode number to file.
81106         Check for arithmetic overflow in size calculations.
81107         Fix bug in reallocation of dot array that caused getcwd to fail
81108         on directories nested deeper than 75.
81109         Be more careful about saving errno on error.
81110         Do not use realloc; use only free+malloc, as this is a bit
81111         more flexible and avoids a needless copy operation.
81112         Do not inspect st_dev and st_ino for symbolic links; POSIX
81113         doesn't specify the latter.
81114         Check for closedir errors.
81115         Avoid needless casts.
81116         Use "#ifdef weak_alias" around weak_alias, to be like other
81117         glibc code.
81118         The following changes to getcwd.c have effect only when used in
81119         gnulib; they have no effect inside glibc proper.
81120         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
81121         as alloca isn't used.
81122         (alloca, __alloca): Likewise.
81123         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
81124         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
81125         unconditionally, as gnulib assumes C89 or better.
81126         Do not include <sys/param.h>.
81127         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
81128         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
81129         better.
81130         (NULL) [!defined NULL]: Remove; we assume C89 or better.
81131         Include <dirent.h> in a way that is compatible with modern Autoconf.
81132         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
81133         New macros, if not already defined.
81134         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
81135         Use "_LIBC", not "defined _LIBC", for consistency.
81136         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
81137         a mempcpy module.
81138         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
81139         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
81140         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
81141         credit only to Jim Meyering and adjust the copyright dates.
81142         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
81143         <stdlib.h>, <unistd.h>, "pathmax.h".
81144         Instead, include "xgetcwd.h" (first) and "getcwd.h".
81145         (INITIAL_BUFFER_SIZE): Remove.
81146         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
81147
81148 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81149
81150         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
81151         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
81152         Use the _ONCE methods, for efficiency.
81153         Check for fcntl.h.  In test program, include <errno.h>
81154         and <fcntl.h> if available.  Remove old K&R cruft from
81155         test program.  Check for common errors in GNU/Linux,
81156         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
81157         don't do AC_LIBOBJ, as that's getcwd.m4's job.
81158         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
81159         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
81160         name accordingly.
81161         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
81162         accommodate new getcwd.c.
81163         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
81164         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
81165         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
81166         that's all we need now.
81167
81168 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81169
81170         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
81171         argp-parse.c depends on getopt internals, that means we should
81172         always use our getopt, to be on the safe side.
81173         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
81174         order not to spoil the result of an eventual previous invocation
81175         of gl_GETOPT_SUBSTITUTE.
81176
81177 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81178
81179         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
81180         redefinition warnings. To avoid them, include the defines
81181         in `#if !defined __need_getopt ... #endif'. The only place
81182         where __getopt_argv_const is used is in definitions
81183         of getopt_long and getopt_long_only below, which are as well
81184         protected by `#ifndef __need_getopt'.
81185         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
81186         __need_getopt after including <stdio.h> and <unistd.h> These
81187         headers might have defined it.
81188
81189 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
81190
81191         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
81192
81193 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
81194
81195         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
81196         (futimens): New function, which uses futimes if available.
81197         (futimens, utimens): Support timespec==NULL, with same semantics
81198         as utime and utimens.
81199         * lib/utimens.h (futimens): New decl.
81200
81201 2004-11-23  Jim Meyering  <jim@meyering.net>
81202
81203         * lib/getopt_.h: Remove trailing blanks.
81204
81205 2004-11-23  Jim Meyering  <jim@meyering.net>
81206
81207         * lib/__fpending.c: Add comment.
81208
81209 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
81210
81211         * modules/canonicalize (Depends-on): Add xreadlink.
81212         Problem reported by James Youngman.
81213
81214 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
81215
81216         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
81217         New macros.
81218         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
81219         optopt): Use them instead of invoking ## directly; otherwise, the
81220         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
81221
81222 2004-11-19  Bruno Haible  <bruno@clisp.org>
81223
81224         * lib/strtok_r.c: Move comments from here...
81225         * lib/strtok_r.h: ... to here.
81226
81227 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
81228
81229         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
81230         implementations that mishandle size_t overflow.
81231
81232 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
81233
81234         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
81235         might fail.  Problem reported by Yoann Vandoorselaere.
81236         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
81237         implementations that mishandle size_t overflow.
81238
81239 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81240
81241         * modules/canon-host (Depends-on): Add strdup.
81242
81243 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81244
81245         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
81246
81247 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81248
81249         * lib/canon-host.c: Include "strdup.h".
81250         (canon_host): Use getaddrinfo if available, so that IPv6 works.
81251         Use strdup instead of malloc/strcpy to duplicate strings.
81252
81253         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
81254         (human_space_before_unit): New constant.
81255         * lib/human.c (human_readable): Support it.
81256
81257         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
81258         (xgetcwd): Set errno correctly when failing.
81259         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
81260         the failure is actually due to a PATH_MAX problem.
81261
81262         Further getopt changes to make it more likely that glibc will
81263         buy the changes back.
81264         * lib/getopt.c (POSIXLY_CORRECT): New constant.
81265         (getopt): Use it, so to preserve glibc semantic
81266         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
81267         when compiling for libc.
81268         * lib/getopt_.h (__getopt_argv_const): Bring it back.
81269         (getopt_long, getopt_long_only): Use it.
81270
81271         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
81272         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
81273         (getopt): Argv is now char * const *, as per standard.
81274         (_getopt_internal_r, _getopt_internal): Argv is now char **,
81275         not char *__getopt_argv_const *.
81276         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
81277         _getopt_long_only_r): Likewise.
81278         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
81279         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
81280         _getopt_long_r, _getopt_long_only_r): Likewise.
81281         * lib/getopt_.h (__getopt_argv_const): Remove.
81282         (getopt): Argv is now char * const *, as per standard.
81283
81284         * lib/getdate.y (tORDINAL): New token.
81285         (day, relunit): Allow it for relative times.
81286         (relative_time_table): Use tORDINAL for ordinals.
81287
81288 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81289
81290         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
81291         Document that "second" isn't allowed as an ordinal number.
81292
81293 2004-11-16  Jim Meyering  <jim@meyering.net>
81294
81295         * modules/closeout (Depends-on): Add fpending.
81296
81297 2004-11-15  Jim Meyering  <jim@meyering.net>
81298
81299         * lib/closeout.c: Include "__fpending.h" once again.
81300         Include <stdbool.h>.
81301         (close_stdout): Don't fail just because stdout was closed initially,
81302         since some programs don't write to stdout in the normal course of
81303         operation (other than --version and --help), and we don't want this
81304         function to make e.g. `touch file >&-' fail.
81305         But do fail if it was closed and someone has tried to write to it.
81306         E.g., `printf foo >&-' must fail.
81307
81308 2004-11-13  Jim Meyering  <jim@meyering.net>
81309
81310         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
81311
81312 2004-11-12  Simon Josefsson  <jas@extundo.com>
81313
81314         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
81315         small doc fix is still pending.
81316
81317 2004-11-11  Simon Josefsson  <jas@extundo.com>
81318
81319         * modules/strtok_r: New file.
81320
81321         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81322         strtok_r.
81323
81324 2004-11-11  Simon Josefsson  <jas@extundo.com>
81325
81326         * m4/strtok_r.m4: New file.
81327
81328         * m4/getopt.m4: Replace opterr.
81329
81330 2004-11-11  Simon Josefsson  <jas@extundo.com>
81331
81332         * lib/strtok_r.h, strtok_r.c: New file.
81333
81334 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
81335
81336         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
81337         of replacing opterr, getopt, etc.  This should handle the
81338         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
81339
81340 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
81341
81342         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
81343         we can stop lying to compilers about the constness of argv when we
81344         are compiled outside glibc.
81345         (getopt, getopt_long, getopt_long_only): Use it.
81346         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
81347         _getopt_internal, getopt): Likewise.
81348         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
81349         _getopt_long_only_r): Likewise.
81350         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
81351         _getopt_long_r, _getopt_long_only_r): Likewise.
81352
81353         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
81354         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
81355         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
81356         the other external symbols.
81357         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
81358         declaration, since the above renaming now works around collisions.
81359
81360 2004-11-11  Jim Meyering  <jim@meyering.net>
81361
81362         * lib/linebreak.c: Remove trailing blanks.
81363         * lib/alloca_.h: Likewise.
81364         * lib/acosl.c: Likewise.
81365         * lib/euidaccess.c: Likewise.
81366         * lib/allocsa.h: Likewise.
81367
81368 2004-11-10  Simon Josefsson  <jas@extundo.com>
81369
81370         * m4/getaddrinfo.m4: New file.
81371
81372 2004-11-10  Simon Josefsson  <jas@extundo.com>
81373
81374         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
81375
81376 2004-11-10  Simon Josefsson  <jas@extundo.com>
81377
81378         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81379         getaddrinfo.
81380
81381         * modules/getaddrinfo: New file.
81382
81383 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81384
81385         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
81386
81387 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81388
81389         * lib/mktime.c (SHR): New macro, which is a portable
81390         substitute for >> that should work even on Crays.
81391         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
81392         Problem reported by Mark D. Baushke in
81393         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
81394         * lib/getdate.y (SHR): Likewise.
81395         (tm_diff): Use it.
81396         * lib/strftime.c (SHR): Likewise.
81397         (tm_diff): Use it.
81398         * lib/quotearg.c (struct quoting_options): Use unsigned int for
81399         quote_these_too, so that right shifts are well defined.  All uses
81400         changed.
81401
81402 2004-11-10  Jim Meyering  <jim@meyering.net>
81403
81404         Ensure that no close failure goes unreported.
81405         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
81406         return early when it seems there's nothing to flush.
81407         Don't include __fpending.h.
81408
81409 2004-11-10  Jim Meyering  <jim@meyering.net>
81410
81411         * modules/closeout (Depends-on): Remove fpending.
81412
81413 2004-11-10  Jim Meyering  <jim@meyering.net>
81414
81415         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
81416
81417 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
81418
81419         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
81420         gl_FUNC_STRFTIME.
81421         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
81422         and AC_REQUIRE when possible, to avoid duplicate checks.
81423         Check for <wchar.h>.
81424
81425 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
81426
81427         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
81428
81429 2004-11-09  Bruno Haible  <bruno@clisp.org>
81430
81431         * m4/sockpfaf.m4: New file.
81432
81433 2004-11-05  Bruno Haible  <bruno@clisp.org>
81434
81435         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
81436         Reported by Mark D. Baushke <mdb@cvshome.org>.
81437
81438 2004-11-04  Bruno Haible  <bruno@clisp.org>
81439
81440         2004-09-11  Bruno Haible  <bruno@clisp.org>
81441                 * allocsa.valgrind: New file.
81442         2004-02-06  Bruno Haible  <bruno@clisp.org>
81443                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
81444                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
81445                 Reported by Christopher Seip <chris.seip@hp.com>.
81446
81447 2004-11-04  Bruno Haible  <bruno@clisp.org>
81448
81449         * modules/allocsa (Files): Add lib/allocsa.valgrind.
81450         (Makefile.am): Distribute it.
81451
81452 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
81453
81454         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
81455         with errno == ERANGE if the buffer is too small.
81456         Problem reported by Mark D. Baushke.
81457
81458 2004-11-03  Albert Chin  <china@thewrittenword.com>
81459             Paul Eggert  <eggert@cs.ucla.edu>
81460
81461         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
81462         equivalent, substitute $ac_type for equivalent type rather than
81463         blindly using uint32_t *always* which won't work if uint32_t is not
81464         available.  Define _UINT32_T to work around typedef of uint32_t if
81465         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
81466         2.5.1.
81467
81468 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81469
81470         * m4/jm-macros.m4: Sync from coreutils.
81471         (gl_MACROS): Check for mbrlen, for pathchk.
81472         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
81473
81474 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81475
81476         * lib/xreadlink.c (MAXSIZE): New macro.
81477         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
81478         size does not exceed MAXSIZE.  Avoid cast.
81479         As suggested by Mark D. Baushke in
81480         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
81481         if readlink fails with buffer size just under MAXSIZE, try again
81482         with MAXSIZE.
81483
81484 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81485
81486         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
81487
81488 2004-11-02  Derek R. Price  <derek@ximbiot.com>
81489         and  Paul Eggert  <eggert@cs.ucla.edu>
81490
81491         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
81492         (get_date): Overparenthesize to avoid GCC warning.
81493
81494 2004-11-02  Bruno Haible  <bruno@clisp.org>
81495
81496         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
81497         returns void.
81498
81499 2004-11-02  Bruno Haible  <bruno@clisp.org>
81500
81501         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
81502         function returns void.
81503
81504 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81505
81506         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
81507         fflush_unlocked, flockfile, funlockfile, funlockfile,
81508         fputs_unlocked, putc_unlocked.
81509
81510 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81511
81512         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
81513         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
81514         already declared.
81515
81516 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81517
81518         * modules/getdate (Files): Add doc/getdate.texi.
81519         (Depends-on): Add setenv, xalloc.
81520
81521 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81522
81523         * lib/getdate.y: Add support for TZ="foo" within a date string.
81524         Fix some bugs near time_t boundaries.  Reject dates with
81525         out-of-range components, e.g., "Sept 31".
81526         Include <stdlib.h>, "setenv.h", "xalloc.h".
81527         (ISDIGIT_LOCALE): Remove; unused.
81528         Note that the TZ and time functions used here are not reentrant.
81529         (mktime_ok, get_tz): New functions.
81530         (TZBUFSIZE): New constant.
81531         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
81532         This requires that we sometimes generate our own TZ="XXX..." setting.
81533
81534 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81535
81536         * doc/getdate.texi: New file, from coreutils with modifications for
81537         the new TZ parsing.
81538
81539 2004-10-27  Derek R. Price  <derek@ximbiot.com>
81540
81541         * lib/mktime.c (not_equal_tm): Remove redundant check.
81542
81543 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81544
81545         * modules/regex (lib_SOURCES): Add regex.c.
81546         Reported by James Youngman in
81547         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
81548
81549 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81550
81551         * lib/getdate.y: Use Bison 1.875 features, and some minor
81552         code cleanups.  This change does not affect semantics.
81553         Don't include <stdlib.h>; no longer needed.
81554         Don't include unlocked-io.h; only the "#if TEST" code uses
81555         stdio, and performance isn't crucial there.
81556         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
81557         Bison 1.875 features as described below.
81558         All uses of "PC." replaced by "pc->".
81559         (YYSTYPE): Add a forward declaration.
81560         (yylex, yyerror): Use full prototypes in forward decls.
81561         Use "%pure-parser" rather than obsolescent "%pure_parser".
81562         Use %parse-param and %lex-param instead of obsolescent
81563         YYPARSE_PARAM and YYLEX_PARAM.
81564         (meridian_table, month_and_day_table, time_units_table,
81565         relative_time_table, time_zone_table, military_table,
81566         lookup_zone, lookup_word, get_date):
81567         Use NULL instead of 0 where appropriate.
81568         (to_hour): Avoid abort (), to avoid a dependency on
81569         stdlib.h.
81570         (yyerror, yylex): Now accepts parser_control * arg.
81571         (main) [TEST]: Use '\0' rather than 0 for char.
81572
81573 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81574
81575         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
81576
81577 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81578
81579         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
81580         It's now the caller's responsibility to handle the case where
81581         !HAVE_GETPAGESIZE && !defined getpagesize.
81582
81583         * lib/mktime.c (leapyear): Arg is long int, not int.
81584
81585 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
81586
81587         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
81588
81589 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
81590
81591         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
81592         missing.  Problem reported by James Youngman.
81593
81594 2004-10-16  Simon Josefsson  <jas@extundo.com>
81595
81596         * gnulib-tool: Fix comments.  Fix parse problem.
81597         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
81598
81599 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
81600
81601         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
81602         implementation of getopt_long.  Problem reported by Alexander Taler in:
81603         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
81604
81605 2004-10-15  Bruno Haible  <bruno@clisp.org>
81606
81607         * gnulib-tool: Untabify. Initialize supplied_libname.
81608         (func_usage): More homogenous output.
81609         (func_modules_transitive_closure, func_modules_to_filelist,
81610         func_emit_lib_Makefile_am): New functions.
81611         (func_import): New function, extracted from big case statement. Use
81612         func_get_license, func_modules_transitive_closure,
81613         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
81614         opt_lgpl. Don't use test -a, as it's not portable.
81615         (func_create_testdir): Use func_modules_transitive_closure,
81616         func_modules_to_filelist, func_emit_lib_Makefile_am.
81617
81618 2004-10-15  Bruno Haible  <bruno@clisp.org>
81619
81620         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
81621
81622 2004-10-15  Bruno Haible  <bruno@clisp.org>
81623
81624         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
81625         the portions belonging to each module.
81626         Suggested by Derek Robert Price <derek@ximbiot.com>.
81627
81628 2004-10-12  Simon Josefsson  <jas@extundo.com>
81629
81630         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
81631         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
81632         to real functions.
81633
81634 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81635
81636         * modules/vsnprintf: New file.
81637
81638 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81639
81640         * m4/vsnprintf.m4: New file.
81641
81642 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81643
81644         * lib/vsnprintf.h: New file.
81645         * lib/vsnprintf.c: New file.
81646
81647 2004-10-11  Bruno Haible  <bruno@clisp.org>
81648
81649         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
81650         vsnprintf.
81651
81652 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
81653
81654         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
81655
81656 2004-10-07  Bruno Haible  <bruno@clisp.org>
81657
81658         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
81659         fits into the provided buffer.
81660
81661 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
81662
81663         * lib/diacrit.c, diacrit.h: Add GPL notice.
81664
81665         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
81666         notice.
81667         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
81668         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
81669         This avoids a potential constant-folding bug.
81670
81671 2004-10-05  Bruno Haible  <bruno@clisp.org>
81672
81673         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
81674         for the declaration of strsep.
81675
81676 2004-10-05  Bruno Haible  <bruno@clisp.org>
81677
81678         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
81679
81680 2004-10-04  Simon Josefsson  <jas@extundo.com>
81681
81682         * modules/memmem: New file.
81683         * tests/test-memmem.c: New file.
81684         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
81685
81686 2004-10-04  Simon Josefsson  <jas@extundo.com>
81687
81688         * m4/memmem.m4: New file.
81689
81690 2004-10-04  Simon Josefsson  <jas@extundo.com>
81691
81692         * lib/memmem.h: New file.
81693         * lib/memmem.c: New file, taken from glibc.
81694
81695 2004-10-04  Simon Josefsson  <jas@extundo.com>
81696
81697         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
81698         '#ifdef USE_UNLOCKED_IO'.
81699
81700 2004-10-04  Simon Josefsson  <jas@extundo.com>
81701
81702         * config/srclist.txt: Add memmem from glibc.
81703
81704 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81705
81706         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
81707
81708         * modules/argmatch, modules/argp, modules/closeout, modules/error,
81709         modules/exclude, modules/getdate, modules/getline,
81710         modules/getndelim2, modules/getpass, modules/getpass-gnu,
81711         modules/getusershell, modules/linebuffer, modules/md5,
81712         modules/mountlist, modules/posixtm, modules/readtokens,
81713         modules/readutmp, modules/regex, modules/sha1,
81714         modules/version-etc, modules/yesno:
81715         Remove dependency on unlocked-io.
81716
81717 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81718
81719         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
81720
81721         * m4/unlocked-io.m4: Add copyright notice.
81722         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
81723
81724 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81725
81726         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
81727         * lib/xmalloc.c (xmemdup): Likewise.
81728         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
81729         XFREE): Remove these long-obsolescent macros.
81730         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
81731         * lib/xstrdup.c: Remove.
81732
81733         * lib/regex.c (re_comp): Cast gettext return value to char *,
81734         Problem reported by Martin Neitzel via Mark D. Baushke.
81735
81736 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81737
81738         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
81739         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
81740         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
81741         regex.c, sha1.c, version-etc.c, yesno.c:
81742         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
81743         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
81744         the includer's responsibility.
81745
81746         Sync from coreutils.
81747
81748         * lib/modechange.c (mode_compile): Don't decrement a pointer that
81749         points to the start of a string, as the C Standard says the
81750         resulting behavior is undefined.
81751
81752         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
81753         simple -> simple_backups, numbered_existing ->
81754         numbered_existing_backups, numbered -> numbered_backups
81755         to avoid shadowing problems.  All uses changed.
81756         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
81757         * lib/backupfile.c (check_extension, numbered_backup):
81758         Rename locals to avoid shadowing 'basename'.
81759         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
81760         once.
81761
81762         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
81763         * lib/.cvsignore: Add getopt.h.
81764
81765 2004-10-04  Bruno Haible  <bruno@clisp.org>
81766
81767         * modules/README: New file.
81768         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
81769         not a module.
81770
81771 2004-10-02  Jim Meyering  <jim@meyering.net>
81772
81773         * lib/dirfd.h, getpagesize.h: Add copyright notice.
81774
81775 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81776
81777         * modules/strsep: New file.
81778
81779 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81780
81781         * m4/strsep.m4: New file.
81782
81783 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81784
81785         * lib/strsep.h: New file.
81786         * lib/strsep.c: New file.
81787
81788 2004-10-01  Simon Josefsson  <jas@extundo.com>
81789
81790         * lib/snprintf.c (snprintf): Handle size==0.
81791
81792 2004-10-01  Simon Josefsson  <jas@extundo.com>
81793             Bruno Haible  <bruno@clisp.org>
81794
81795         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
81796         (snprintf): Declare 'args'.
81797
81798 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
81799
81800         * lib/snprintf.c: Remove comments as to why each header is needed.
81801
81802 2004-10-01  Bruno Haible  <bruno@clisp.org>
81803
81804         * MODULES.html.sh: Add strsep.
81805
81806 2004-09-30  Simon Josefsson  <jas@extundo.com>
81807
81808         * modules/snprintf: New file.
81809
81810 2004-09-30  Simon Josefsson  <jas@extundo.com>
81811
81812         * m4/snprintf.m4: New file.
81813
81814 2004-09-30  Simon Josefsson  <jas@extundo.com>
81815
81816         * lib/snprintf.h, lib/snprintf.c: New files.
81817
81818 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81819
81820         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
81821         (hol_entry_help): Never translate an empty string.
81822         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
81823         * lib/argp.h (OPTION_NO_TRANS): New option.
81824
81825 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81826
81827         * modules/argp (Maintainer): Replace Simon Josefsson
81828         by Sergey Poznyakoff.
81829
81830 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81831
81832         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
81833         changes merged back into glibc.
81834
81835 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81836
81837         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
81838
81839 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81840
81841         * lib/xvasprintf.c: Include xalloc.h.
81842         (xvasprintf): Use xalloc_die, not xmalloc_die.
81843
81844 2004-09-29  Bruno Haible  <bruno@clisp.org>
81845
81846         * modules/alloca-opt: New file, derived from modules/alloca.
81847         * modules/allocsa: Depend on alloca-opt instead of alloca.
81848         * modules/setenv: Likewise.
81849         * modules/vasnprintf: Likewise.
81850         * MODULES.html.sh: Add alloca-opt.
81851
81852 2004-09-28  Simon Josefsson  <jas@extundo.com>
81853
81854         * gnulib-tool: New parameter --lgpl, to asseert that modules are
81855         LGPL, and to replace license template from GPL to LGPL.
81856
81857 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
81858
81859         * modules/dummy: Change license to LGPL.
81860
81861 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
81862
81863         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
81864
81865 2004-09-24  Simon Josefsson  <jas@extundo.com>
81866
81867         * modules/minmax (License): Change from GPL to LGPL.
81868
81869 2004-09-23  Simon Josefsson  <jas@extundo.com>
81870
81871         * gnulib-tool (--import): Typo.
81872
81873 2004-09-23  Simon Josefsson  <jas@extundo.com>
81874
81875         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
81876
81877 2004-09-22  Bruno Haible  <bruno@clisp.org>
81878
81879         * modules/*: Add 'License' field.
81880         * gnulib-tool: Accept --extract-license option.
81881         (func_get_license): New function.
81882
81883 2004-09-21  Bruno Haible  <bruno@clisp.org>
81884
81885         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
81886         Reported by Simon Josefsson.
81887
81888 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
81889
81890         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
81891         gl_AC_TYPE_LONG_LONG.
81892
81893 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
81894
81895         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
81896
81897 2004-09-18  Simon Josefsson  <jas@extundo.com>
81898         and  Paul Eggert  <eggert@cs.ucla.edu>
81899
81900         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
81901         calls with autoreconf.  Define GL_LIB.
81902
81903 2004-09-14  Karl Berry  <karl@gnu.org>
81904
81905         * config/srclist.txt: unsync setenv.c, sigh.
81906
81907 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
81908
81909         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
81910         Problem reported by Bruno Haible in:
81911         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
81912
81913 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
81914
81915         * config/srclist.txt: Comment out argp-pvh.c.
81916
81917 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
81918
81919         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
81920         in case some system header has #define'd it.  Problem reported by
81921         Soeren D. Schulze in
81922         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
81923
81924 2004-09-09  Karl Berry  <karl@gnu.org>
81925
81926         * regex.[ch]: delete from the root.  These were supposed to be
81927                 synced with emacs cvs, but this has not happened for about
81928                 a year, and anyway nothing else uses emacs regex.[ch].
81929                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
81930                 lib/regex[.ch] is untouched.
81931
81932 2004-09-09  Bruno Haible  <bruno@clisp.org>
81933
81934         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
81935
81936 2004-09-09  Bruno Haible  <bruno@clisp.org>
81937
81938         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
81939         modifications.
81940         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
81941
81942 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
81943
81944         * modules/xvasprintf: New file.
81945         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
81946
81947 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
81948
81949         * lib/xvasprintf.h: New file.
81950         * lib/xvasprintf.c: New file.
81951         * lib/xasprintf.c: New file.
81952
81953 2004-09-08  Bruno Haible  <bruno@clisp.org>
81954
81955         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
81956
81957 2004-09-08  Bruno Haible  <bruno@clisp.org>
81958
81959         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
81960         length is > INT_MAX.
81961         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
81962         more.
81963
81964 2004-09-08  Bruno Haible  <bruno@clisp.org>
81965
81966         * lib/stdint_.h: New file, taken from GNU clisp.
81967
81968 2004-09-08  Bruno Haible  <bruno@clisp.org>
81969             Oskar Liljeblad  <oskar@osk.mine.nu>
81970
81971         * modules/stdint: New file.
81972         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
81973
81974 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81975
81976         Import from coreutils.
81977         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
81978         strings on unbounded length.  alloca's performance benefits aren't
81979         that important here.
81980         (V_STRDUP): Remove.
81981         (parse_with_separator): New function, with most of the internals
81982         of the old parse_user_spec.  Allow user to omit both user and group,
81983         for compatibility with FreeBSD.
81984         Clone only the user name, not the entire spec.
81985         Do not set *uid, *gid unless entirely successful.
81986         Avoid memory leak in some failing cases.
81987         Fix regression for USER.GROUP reported by Dmitry V. Levin in
81988         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
81989         (parse_user_spec): Rewrite to use parse_with_separator.
81990
81991 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81992
81993         * modules/userspec: Don't depend on alloca.
81994
81995 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81996
81997         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
81998
81999 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
82000
82001         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
82002         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
82003         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
82004
82005 2004-08-16  Simon Josefsson  <jas@extundo.com>
82006
82007         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
82008         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
82009         Add --dry-run for --import.
82010         Let user provided command line parameters override configure.ac
82011         settings.
82012
82013 2004-08-12  Simon Josefsson  <jas@extundo.com>
82014
82015         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
82016         as discussed with Paul Eggert in threads rooted at
82017         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
82018         and
82019         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
82020         Before, the test was empty, and relied on ELIDE_CODE in source
82021         code.)
82022         (gl_PREREQ_GETOPT): New macro.
82023         (gl_GETOPT): Use them.
82024
82025 2004-08-12  Simon Josefsson  <jas@extundo.com>
82026
82027         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
82028         * lib/getopt_.h: Renamed from getopt.h.
82029
82030 2004-08-12  Simon Josefsson  <jas@extundo.com>
82031
82032         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
82033         Change default library name from libfoo to libgnu.
82034         Now, if you have a configure.ac that says:
82035                 gl_SOURCE_BASE(gl)
82036                 gl_M4_BASE(gl/m4)
82037                 gl_MODULES(error getopt etcetera)
82038                 gl_INIT
82039         you can import all you need by running:
82040                 ../gnulib/gnulib-tool --import
82041
82042         * modules/getopt (Files): Rename getopt.h to getopt_.h.
82043         (Makefile.am): Rewrite, use logic from argz.
82044         (Include): Use <getopt.h> instead of "getopt.h".
82045
82046 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82047
82048         * modules/argp (Files): Add m4/unlocked-io.m4.
82049         (Depends-on): Add extensions.
82050
82051 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82052
82053         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
82054         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
82055         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
82056         Check for program_invocation_name, program_invocation_short_name,
82057         flockfile, funlockfile, features.h, _getopt_long_only_r.
82058
82059 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82060
82061         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
82062         its complicated substitute.
82063         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
82064         and program_invocation_name.
82065         (__argp_basename) [!_LIBC]: Remove; the only use was
82066         replaced by its body.
82067         (__argp_short_program_name): Change condition from
82068         !defined __argp_short_program_name to
82069         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
82070         to match argp-namefrob.h.
82071         (__argp_failure): Don't assume strerror_r returns char *.
82072         * lib/argp-parse.c (N_): Define unconditionally.
82073         (argp_default_options): Fill out initializers with 0 to avoid
82074         gcc warnings.
82075
82076 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
82077
82078         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
82079         getopt1.c.
82080
82081 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82082
82083         Merge from coreutils.
82084
82085         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
82086
82087         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
82088         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
82089
82090 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82091
82092         Merge from coreutils.
82093
82094         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
82095         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
82096         for Reliant Unix 5.43.
82097
82098         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
82099         (union fooround): Use uintmax_t, not long int.
82100         The rest is a merge from libc:
82101         [defined _LIBC]: Include <shlib-compat.h>.
82102         (_obstack) [defined _LIBC]: Remove after 2.3.4.
82103
82104         * lib/settime.c (settime): Recode to avoid warning with
82105         Sun Forte C 6U2.
82106
82107         * lib/strverscmp.c: Convert to UTF-8.
82108
82109 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
82110
82111         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
82112         m4/uintmax_t.m4.
82113
82114 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82115
82116         * modules/xalloc-die: New file.
82117         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
82118
82119         * modules/md5 (Files): Add m4/uint32_t.m4.
82120         * modules/sha1: Renamed from modules/sha.
82121         (Files):
82122         Rename lib/sha.h to lib/sha1.h.
82123         Rename lib/sha.c to lib/sha1.c.
82124         Rename m4/sha.m4 to m4/sha1.m4.
82125         (lib_SOURCES): Likewise.
82126         (configure.ac): Rename gl_SHA to gl_SHA1.
82127         (Include): sha.h -> sha1.h.
82128
82129 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82130
82131         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
82132         * m4/sha1.m4: Renamed from sha.m4.
82133         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
82134
82135 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
82136
82137         * lib/obstack.h (obstack_empty_p):
82138         Don't assume that chunk->contents is suitably aligned.
82139         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
82140         Likewise. Problem reported by Benno in
82141         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
82142
82143         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
82144         readable.  This could be improved further but it'd take some work.
82145
82146 2004-08-08  Simon Josefsson  <jas@extundo.com>
82147
82148         * modules/xgethostname (Depends-on): Remove exit and error (not
82149         used).
82150
82151         * modules/getpass-gnu: Add getpass.h.
82152         (Depends-on): Add stdbool.
82153         * modules/getpass: Add getpass.h.
82154
82155 2004-08-08  Simon Josefsson  <jas@extundo.com>
82156
82157         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
82158         Check getpass declaration.
82159
82160 2004-08-08  Simon Josefsson  <jas@extundo.com>
82161
82162         * lib/xgethostname.c: Don't include error.h (not used).
82163
82164         * lib/getpass.h: Add.
82165         * lib/getpass.c: Include getpass.h first.
82166
82167 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
82168
82169         * lib/xalloc-die.c: New file.
82170         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
82171         All uses removed.
82172         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
82173         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
82174         xalloc-die.c.
82175         (_, N_, xalloc_die): Move to xalloc-die.c.
82176         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
82177         so that we needn't mess with xalloc_msg_memory_exhausted.
82178
82179         * lib/sha1.h: Renamed from sha.h.
82180         (SHA1_H): Renamed from _SHA_H.
82181         (sha1_ctx): Renamed from sha_ctx.
82182         (sha1_init_ctx): Renamed from sha_init_ctx.
82183         (sha1_process_block): Renamed from sha_process_block.
82184         (sha1_process_bytes): Renamed from sha_process_bytes.
82185         (sha1_finish_ctx): Renamed from sha_finish_ctx.
82186         (sha1_read_ctx): Renamed from sha_read_ctx.
82187         (sha1_stream): Renamed from sha_stream.
82188         (sha1_buffer): Renamed from sha_buffer.
82189         * lib/sha1.c: Likewise; renamed from sha.c.
82190         Do not include <sys/types.h>.
82191         Include <stddef.h> rather than <stdlib.h>.
82192
82193 2004-08-08  Bruno Haible  <bruno@clisp.org>
82194
82195         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
82196         FILESYSTEM_PREFIX_LEN.
82197         * lib/progreloc.c: Likewise.
82198         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
82199
82200 2004-08-06  Simon Josefsson  <jas@extundo.com>
82201
82202         * modules/progname (Depends-on): Don't depend on stdbool.
82203
82204 2004-08-06  Simon Josefsson  <jas@extundo.com>
82205
82206         * modules/getsubopt: New file.
82207         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82208         getsubopt.
82209
82210 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82211
82212         More merge from coreutils.
82213
82214         * m4/utimens.m4, m4/utimecmp.m4: New files.
82215         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
82216         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
82217         prereq.m4, sha.m4: Import changes from coreutils.
82218
82219 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82220
82221         More merge from coreutils.
82222         * modules/raise, modules/readtokens0, modules/utimens:
82223         * modules/utimecmp, module/xnanosleep: New files.
82224         * modules/strftime: Add lib/strftime.h.
82225         Change include from <time.h> to "strftime.h".
82226         * modules/yesno: Add lib/yesno.h.
82227         * modules/backupfile: Remove lib/addext.c.
82228         * modules/euidaccess: Add stat-macros.h.
82229         * modules/canonicalize, modules/euidaccess,
82230         modules/filemode, modules/lchown, modules/makepath,
82231         modules/rmdir, modules/stat: Likewise.
82232
82233 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
82234
82235         Merge from tar.
82236         * lib/argp-help.c (make_hol, hol_append): Don't assume that
82237         SIZE_MAX is a valid preprocessor constant.
82238         (__argp_basename): Change from "#ifndef _LIBC"
82239         to "#ifndef __argp_short_program_name", so that
82240         we don't compile these functions for tar.
82241
82242         More merges from coreutils.
82243         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
82244         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
82245         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
82246         * lib/addext.c: Remove; no longer needed.
82247         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
82248         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
82249         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
82250         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
82251         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
82252         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
82253         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
82254         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
82255         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
82256         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82257         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
82258         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
82259         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
82260         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
82261         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
82262         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
82263         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
82264         Import changes from coreutils.
82265
82266 2004-08-05  Simon Josefsson  <jas@extundo.com>
82267
82268         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
82269
82270 2004-08-05  Simon Josefsson  <jas@extundo.com>
82271
82272         * m4/getsubopt.m4: New file.
82273
82274 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82275
82276         Merge from coreutils.
82277
82278         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
82279         * m4/getcwd-path-max.m4: New files.
82280
82281         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
82282         FILESYSTEM_PREFIX_LEN ->
82283         FILE_SYSTEM_PREFIX_LEN.
82284         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
82285         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
82286         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
82287         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
82288
82289         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
82290         prerequisite modules now handle the DOS stuff.
82291         Don't check for unistd.h.
82292
82293 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82294
82295         Merge from coreutils.
82296
82297         * lib/.gdb-history: Remove; this doesn't belong here.
82298
82299         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
82300         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
82301         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
82302         * lib/getcwd.c: New files.
82303
82304         * lib/dirname.h: Include <stdbool.h>.
82305         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
82306         for consistency with POSIX terminology.  All uses changed.
82307         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
82308         (strip_trailing_slashes): Use bool for booleans.
82309         * lib/stripslash.c (strip_trailing_slashes): Likewise.
82310
82311         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
82312         sometimes returns a positive errno value even when it succeeds.
82313         (print_errno_message) [!LIBC]: Fall back on strerror if
82314         __strerror_r fails.
82315
82316         * lib/path-concat.c (mempcpy): Don't define if a system header defines
82317         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
82318         (longest_relative_suffix): New function.
82319         (path_concat): Use it.  Assume first argument is not NULL.
82320         Port to DOS.  Omit redundant separators.
82321         Report an error instead of returning NULL.
82322         Use mempcpy instead of memcpy.
82323         (xpath_concat): Remove: not declared or used.
82324
82325         * lib/same.h: Include <stdbool.h>
82326         (same_name): Return bool, not int.
82327         * lib/same.c (same_name): Likewise.
82328         (errno): Don't declare; we assume C89 or better now.
82329
82330         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
82331         if not already defined.
82332
82333         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
82334         * lib/dup-safer.c (errno): Likewise.
82335
82336 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82337
82338         Merge from coreutils.
82339         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
82340         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
82341         * modules/path-concat: Don't depend on strdup.
82342
82343 2004-08-03  Simon Josefsson  <jas@extundo.com>
82344
82345         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
82346         * lib/progname.h: Don't include stdbool.h.
82347
82348 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82349
82350         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
82351         * MODULES.html.sh (func_all_modules): Remove fatal.
82352
82353 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82354
82355         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
82356
82357 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82358
82359         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
82360         working.
82361
82362 2004-08-02  Simon Josefsson  <jas@extundo.com>
82363
82364         * lib/getsubopt.h: New file, with comments from Bruno Haible.
82365         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
82366         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
82367
82368 2004-08-01  Simon Josefsson  <jas@extundo.com>
82369
82370         * lib/xgetdomainname.c: Include stdlib.h, for free().
82371
82372 2004-07-19  Bruno Haible  <bruno@clisp.org>
82373
82374         * MODULES.html.sh (func_all_modules): Add dummy.
82375
82376 2004-07-16  Simon Josefsson  <jas@extundo.com>
82377
82378         * modules/dummy: New file.
82379
82380 2004-07-16  Simon Josefsson  <jas@extundo.com>
82381
82382         * lib/dummy.c: New file.
82383
82384 2004-07-16  Bruno Haible  <bruno@clisp.org>
82385
82386         * lib/backupfile.h: Add extern "C" for C++.
82387         * lib/closeout.h: Likewise.
82388         * lib/copy-file.h: Likewise.
82389         * lib/findprog.h: Likewise.
82390         * lib/full-write.h: Likewise.
82391         * lib/pathname.h: Likewise.
82392         * lib/progname.h: Likewise.
82393         * lib/stpcpy.h: Likewise.
82394         * lib/stpncpy.h: Likewise.
82395         * lib/strcase.h: Likewise.
82396         * lib/strstr.h: Likewise.
82397         * lib/xalloc.h: Likewise.
82398
82399         * lib/mbswidth.h: Add extern "C" for C++.
82400         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
82401
82402 2004-07-13  Robert Millan  <robertmh@gnu.org>
82403
82404         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
82405
82406 2004-07-09  Simon Josefsson  <jas@extundo.com>
82407
82408         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
82409         failed without this.)
82410
82411 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
82412
82413         * modules/chown (Files): Add lib/fchown-stub.c, since
82414         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
82415
82416 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
82417
82418         * lib/fchown-stub.c: New file.
82419
82420 2004-06-24  Jim Meyering  <jim@meyering.net>
82421
82422         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
82423
82424 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82425
82426         * modules/argz: Omit "#include".
82427
82428         * MODULES.html.sh (func_all_modules): Add calloc, to match
82429         2004-06-01 addition of calloc module.
82430
82431 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82432
82433         * m4/argz.m4: New file, which is autoupdated from libtool.
82434
82435 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82436
82437         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
82438         libtool.
82439
82440 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82441
82442         * config/srclist-update: Don't insist on "USA." before the
82443         close-comment, as libtool omits the period and puts the */ on a
82444         separate line.
82445         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
82446         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
82447
82448 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
82449
82450         * modules/argz: New file.
82451         * MODULES.html.sh (func_all_modules): Add argz.
82452
82453 2004-06-12  Jim Meyering  <jim@meyering.net>
82454         and  Paul Eggert  <eggert@cs.ucla.edu>
82455
82456         * modules/hash (Files): Add lib/xalloc.h.
82457         * modules/pipe (Depends-on): Add wait-process.
82458         * modules/stat (Depends-on): Add xalloc.
82459         * modules/userspec (Files): Add lib/userspec.h.
82460         * modules/xstrto
82461
82462         Upgrade from gettext-0.13.
82463         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
82464         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
82465         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
82466
82467 2004-06-10  Jim Meyering  <jim@meyering.net>
82468
82469         * lib/calloc.c: New file.
82470
82471 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
82472
82473         * lib/getdate.y (yylex): Allow space between sign and number.
82474         Problem reported by Dan Jacobson.
82475
82476 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
82477
82478         Merge from coreutils CVS.
82479
82480         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
82481         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
82482         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
82483         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
82484         xstrtol.m4: Fix copyright date and/or serial number.
82485
82486         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
82487         See if we need an fchown replacement.
82488         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
82489         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
82490         and use the replacement function if we detect either defect.
82491
82492         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
82493         gl_UTIMECMP.
82494
82495 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
82496         and  Jim Meyering  <jim@meyering.net>
82497
82498         Merge from coreutils CVS.
82499
82500         * lib/stat-macros.h: New file, with contents from file-type.h
82501         and coreutils' system.h.
82502         * lib/file-type.c: Include "stat-macros.h".
82503         * lib/file-type.h (file_type): Move all macro definitions to new file,
82504         stat-macros.h.
82505
82506         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
82507         Wrap old code with this conditional.
82508         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
82509         function that does not dereference symlinks.
82510         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
82511
82512         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
82513         dependency problems.
82514         (xreadlink): Accept new arg SIZE, for efficiency.
82515         All decls and uses changed.
82516         * lib/xreadlink.h: Include <stddef.h>, for size_t.
82517
82518         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
82519         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
82520
82521         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
82522         sysexits.h.
82523
82524 2004-06-01  Jim Meyering  <jim@meyering.net>
82525
82526         * m4/calloc.m4: New file.
82527
82528 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
82529
82530         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
82531         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
82532         Also, fix a typo in a diagnostic.
82533
82534 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
82535
82536         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
82537         or AC_FUNC_REALLOC.
82538
82539 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
82540
82541         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
82542         macros to be defined.
82543         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
82544         the allocator returns NULL because the requested size is zero.
82545
82546 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82547
82548         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
82549         var.  Add comment explaining why libc still defines it.  This
82550         merges the following patch from glibc:
82551         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
82552
82553 2004-05-20  Andreas Schwab  <schwab@suse.de>
82554
82555         * m4/free.m4: Replace free if it not known to work, not the other
82556         way round.
82557
82558 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82559
82560         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
82561         present in glibc since revision 1.1 of this file.
82562         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
82563         obstack_alignment_mask, obstack_alloc, obstack_base,
82564         obstack_blank, obstack_blank_fast, obstack_chunk_size,
82565         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
82566         obstack_grow0, obstack_init, obstack_int_grow,
82567         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
82568         obstack_next_free, obstack_object_size, obstack_ptr_grow,
82569         obstack_ptr_grow_fast, obstack_room): Remove declarations of
82570         nonexistent functions.
82571
82572 2004-05-18  Karl Berry  <karl@gnu.org>
82573
82574         * config/srclist.txt: break link for vasnprintf.c.
82575
82576 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
82577
82578         Port obstack to the AS/400, where pointers are 16 bytes wide and
82579         you cannot cast an integer to a valid pointer.  This patch is
82580         currently waiting to be integrated into glibc; see
82581         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
82582
82583         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
82584         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
82585         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
82586         (struct obstack): temp member is now a union of a pointer and
82587         an integer, instead of an integer.  All integer uses changed.
82588         This does not affect the physical layout of struct obstack,
82589         except on hosts (like the AS/400) where the size or alignment of
82590         void * is greater than that of ptrdiff_t.
82591         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
82592         __STDC__)]: Store temporary in pointer member of union, not
82593         integer member.
82594         * lib/obstack.c: Include <stddef.h>, for offsetof.
82595         (struct fooalign): Remove; it doesn't need a name.
82596         (union fooround): Change double to long double, and add void *.
82597         (DEFAULT_ALIGNMENT): Use offsetof to compute.
82598         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
82599         not a macro.  Hence the values are always int; so remove all
82600         casts-to-int in uses.
82601
82602 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
82603
82604         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
82605         we can get this patch merged into glibc.
82606
82607 2004-05-17  Derek R. Price  <derek@ximbiot.com>
82608             Paul Eggert  <eggert@cs.ucla.edu>
82609
82610         * m4/argp: Depend on alloca.
82611
82612 2004-05-17  Derek R. Price  <derek@ximbiot.com>
82613             Paul Eggert  <eggert@cs.ucla.edu>
82614
82615         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
82616         freecoding.
82617
82618 2004-05-17  Bruno Haible  <bruno@clisp.org>
82619
82620         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
82621         precision that consists of a '.' followed by an empty digit string.
82622         Patch by Tor Lillqvist <tml@iki.fi>.
82623
82624 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
82625
82626         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
82627         for backward compatibility with older code.  We need our own
82628         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
82629         it under some other name, and our alloca.h will define it.
82630
82631 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
82632             Derek Price  <derek@ximbiot.com>
82633
82634         * lib/alloca.c: Include <alloca.h>, to get our interface.
82635         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
82636         include <alloca.h> first.  Use C89 prototype for alloca; this
82637         requires including <stddef.h> for size_t.  Use extern "C" if C++.
82638         Use #elif for simplicity, since we can assume C89 now.
82639         Don't try to source the system alloca.h since it will not be found
82640         and to prevent recursively including its replacement.
82641         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
82642         * lib/regex.c: Likewise.
82643
82644 2004-05-16  Derek Price  <derek@ximbiot.com>
82645             Paul Eggert  <eggert@cs.ucla.edu>
82646
82647         getline cleanup.  This changes the getndelim2 API: both order of
82648         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
82649         no delimiter).
82650
82651         * lib/getline.c: Don't include stddef.h or stdio.h, since our
82652         interface does that.
82653         (getline): Always use getdelim, so that we don't have two
82654         copies of this code.
82655         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
82656         if available.
82657         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
82658         (GETNDELIM2_MAXIMUM): New macro.
82659         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
82660         instead of the old practice of delim2==0.  All callers changed.
82661         Return -1 on overflow, instead of returning junk.
82662         Do not set *linesize unless allocation succeeds.
82663         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
82664         that we include sys/types.h.
82665         * lib/getnline.h: Likewise.
82666         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
82667         (getndelim2): Reorder arguments.
82668         * lib/getnline.c (getnline, getndelim):
82669         Don't discard the NMAX argument.
82670         (getnline): Invoke getndelim, to avoid code duplication.
82671         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
82672         of (size_t) -1 by callers of the getnline family.
82673
82674 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82675
82676         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
82677         Check for gettimeofday.
82678         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
82679         Check for settimeofday, stime.
82680
82681 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82682
82683         * lib/nanosleep.c (suspended): Change its type from int to
82684         sig_atomic_t volatile.
82685         (first_call): Make it private to rpl_nanosleep, and have it
82686         be zero initially as that's a bit faster.
82687         (my_usleep): Round up fractional times instead of truncating them,
82688         as this is the usual meaning for 'sleep'.
82689
82690         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
82691         doesn't work.
82692         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
82693         (ENOSYS): Define if not defined.
82694         (settime): Fall back on stime if it exists and settimeofday fails.
82695         But don't bother with fallbacks if a method fails with errno == EPERM.
82696
82697 2004-05-11  Jim Meyering  <jim@meyering.net>
82698
82699         Prior to this change, the save_cwd caller required read access to the
82700         current directory on most systems (ones with the fchdir function).
82701
82702         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
82703         fails, try write-only, and finally, resort to using xgetcwd.
82704
82705 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82706
82707         * lib/obstack.c, obstack.h: Import changes from libc.
82708
82709 2004-04-28  Bruno Haible  <bruno@clisp.org>
82710
82711         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
82712         also implicitly appends .exe to executables.
82713         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
82714         accepts Windows pathnames.
82715         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
82716         Treat Cygwin like Windows, since it now accepts Windows pathnames.
82717         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
82718         Treat Cygwin like Windows, since it now accepts Windows pathnames.
82719         Reported by Derek Robert Price <derek@ximbiot.com>.
82720
82721 2004-04-21  Karl Berry  <karl@gnu.org>
82722
82723         * config/srclist.txt (localcharset.c): break sync.
82724
82725 2004-04-20  Paul Eggert  <eggert@twinsun.com>
82726
82727         * m4/host-os.m4: Add a copyright notice.
82728
82729 2004-04-20  Jim Meyering  <jim@meyering.net>
82730
82731         Change UTILS_ to gl_ in AC_DEFINE'd names.
82732         Change utils_- and jm_-prefixed variables, too.
82733         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
82734         UTILS_FUNC_MKDIR_TRAILING_SLASH.
82735         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
82736
82737         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
82738         Don't emit trailing blanks.
82739         Also rename jm_-prefixed variables to have gl_ prefix.
82740
82741         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
82742         Also rename jm_-prefixed variables to have gl_ prefix.
82743
82744         * m4/jm-macros.m4: Reflect the renamings.
82745         * m4/prereq.m4: Likewise.
82746
82747 2004-04-20  Jim Meyering  <jim@meyering.net>
82748
82749         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
82750         memory.
82751
82752 2004-04-20  Jim Meyering  <jim@meyering.net>
82753             Bruno Haible  <bruno@clisp.org>
82754
82755         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
82756         memory when realloc fails.
82757
82758 2004-04-19  Jim Meyering  <jim@meyering.net>
82759
82760         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
82761         now that readutmp.c may call `free (0)'.
82762
82763 2004-04-19  Bruno Haible  <bruno@clisp.org>
82764
82765         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
82766         * m4/inttypes_h.m4: Likewise.
82767         * m4/stdint_h.m4: Likewise.
82768         * m4/intmax_t.m4: Likewise.
82769         * m4/uintmax_t.m4: Likewise.
82770
82771 2004-04-18  Jim Meyering  <jim@meyering.net>
82772
82773         * m4/prereq.m4: Don't forbid jm_ prefix.
82774
82775         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
82776         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
82777         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
82778         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
82779         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
82780         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
82781         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
82782         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
82783         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
82784         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
82785         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
82786         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
82787         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
82788         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
82789         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
82790         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
82791         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
82792         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
82793         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
82794
82795 2004-04-18  Jim Meyering  <jim@meyering.net>
82796
82797         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
82798         failure, don't leak memory and do call END_UTMP_ENT.
82799
82800 2004-04-16  Jim Meyering  <jim@meyering.net>
82801
82802         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
82803         coreutils' stat program.
82804         (gl_PREREQ): Don't require jm_PREREQ_STAT.
82805
82806 2004-04-11  Paul Eggert  <eggert@twinsun.com>
82807
82808         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
82809         C89.
82810         (CHAR_BIT): Remove, since we assume C89.
82811         Include <stdint.h> if available, as per current Autoconf CVS advice.
82812
82813 2004-03-31  Jim Meyering  <jim@meyering.net>
82814
82815         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
82816         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
82817         * m4/xalloc.m4: Likewise.
82818
82819 2004-03-30  Paul Eggert  <eggert@twinsun.com>
82820
82821         Merge from coreutils.
82822
82823         * m4/inttostr.m4: New file.
82824         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
82825         Require AM_STDBOOL_H and gl_TIMESPEC instead.
82826         Require gl_CLOCK_TIME.
82827         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
82828
82829 2004-03-30  Paul Eggert  <eggert@twinsun.com>
82830
82831         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
82832         not bool, to be more consistent with Unix conventions.
82833         Suggested by Bruno Haible.
82834
82835         Merge from coreutils.
82836
82837         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
82838         * lib/umaxtostr.c: New files.
82839
82840         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
82841         the usual <time.h> dance.
82842         (get_date): Change signature to support fractional time stamps.
82843         All callers changed.
82844         * lib/getdate.y: Include "getdate.h" first, as we can now
82845         assume C89 and don't need to worry about 'const'.
82846         Similarly, include "unlocked-io.h" near start, not in middle.
82847         Include <limits.h>.
82848         (textint.value): Use long int rather than int.
82849         (textint.digits): Use size_t rather than int.
82850         (BILLION, LOG10_BILLION): New constants.
82851         (parser_control): New member rel_ns.  Members day_ordinal,
82852         time_zone, month, day, hour, minutes, rel_year, rel_month,
82853         rel_day, rel_hour, rel_minutes, rel_seconds
82854         are now long int, not int.  Member seconds is now struct timespec,
82855         not int.  New member timespec_seen.  Members dates_seen, days_seen,
82856         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
82857         not int.
82858         (%union.intval): Now long int, not int.
82859         New member timespec.
82860         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
82861         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
82862         (spec): Now is a timespec or an item list.
82863         (timespec, items): New nonterminals.
82864         (time, rel, relunit, number, get_date):
82865         Add support for fractional seconds.
82866         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
82867         (gmtime, localtime, mktime): Remove decls; not needed with C89.
82868         (to_hour): First arg is now long int, not int.
82869         (to_year): Returns long int, not int.
82870         Don't treat year -70 like 70.
82871         (tm_diff): Returns long int, not int.
82872         (lookup_word): Use bool instead of int when appropriate.
82873         (yylex): Use size_t for count, not int.
82874         Detect overflow when parsing large integer constants.
82875         Add support for fractions.
82876         (get_date): Make pointers 'const' if possible.
82877         Use more-portable code to detect integer overflow.
82878         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
82879         Don't use ctime; it's not reliable if the year has >4 digits.
82880
82881         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
82882         This is for compatibility with BSD.
82883
82884         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
82885         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
82886         From coreutils' system.h.
82887
82888         * lib/userspec.c: Don't include "posixver.h".
82889         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
82890         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
82891         compatible extension.  Simplify code by removing a boolean int
82892         that was always nonzero if a string was nonnull.
82893
82894 2004-03-30  Jim Meyering  <jim@meyering.net>
82895
82896         Merge from coreutils.
82897
82898         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
82899         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
82900         on some systems one must include <grp.h> before it.
82901         Reported by Christian Krackowizer.
82902
82903 2004-03-30  Jim Meyering  <jim@meyering.net>
82904
82905         Merge from coreutils.
82906
82907         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
82908
82909         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
82910         an empty input stream.
82911
82912         * lib/readtokens.c: Include <stdbool.h>.
82913         (readtoken): Use `size_t' rather than int/long.
82914         All callers adjusted.
82915         Use `bool' rather than `int' where appropriate.
82916         Use memset rather than an explicit loop.
82917         Use x2nrealloc rather than xrealloc.
82918         Allow the use of `\0' as a delimiter.
82919         (readtokens): Likewise.
82920         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
82921
82922 2004-03-30  Jim Meyering  <jim@meyering.net>
82923
82924         * m4/realloc.m4: Remove file, since now it does no more than
82925         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
82926         the `configure.ac' section of module/realloc.
82927         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
82928
82929 2004-03-30  Bruno Haible  <bruno@clisp.org>
82930
82931         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
82932         nonnull.
82933
82934 2004-03-29  Paul Eggert  <eggert@twinsun.com>
82935
82936         Merge changes to getloadavg.c from coreutils and Emacs.
82937
82938         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
82939         Define to an expression, not to the empty string.
82940         Include cloexec.h and xalloc.h.
82941         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
82942         Use set_cloexec_flag rather than rolling our own.
82943         * lib/cloexec.c, lib/cloexec.h: New files.
82944
82945 2004-03-29  Paul Eggert  <eggert@twinsun.com>
82946
82947         * m4/cloexec.m4: New file.
82948
82949 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82950
82951         * lib/getopt.h: Sync with libc CVS.
82952
82953 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82954             Bruno Haible  <bruno@clisp.org>
82955
82956         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
82957         mbswidth.
82958
82959 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82960             Bruno Haible  <bruno@clisp.org>
82961
82962         * lib/mbswidth.h: Include <wchar.h> only if
82963         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
82964         <wchar.h>.
82965         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
82966
82967 2004-03-09  Paul Eggert  <eggert@twinsun.com>
82968
82969         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
82970         Sync with libc CVS.
82971         * lib/getopt_int.h: New file, also synced from libc.
82972
82973 2004-03-09  Paul Eggert  <eggert@twinsun.com>
82974
82975         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
82976         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
82977         Bring back getopt.c, getopt.h, getopt1.c.
82978
82979 2004-03-07  Paul Eggert  <eggert@twinsun.com>
82980
82981         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
82982         All uses changed.  Check for sa_sigaction member; this fixes
82983         a bug first reported by Jason Andrade in
82984         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
82985
82986 2004-03-07  Paul Eggert  <eggert@twinsun.com>
82987
82988         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
82989         '#if' expressions.  Unlike the code it replaces, it does not
82990         depend on (defined _SC_PAGESIZE).  However, it does depend on
82991         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
82992         first reported by Jason Andrade in
82993         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
82994
82995 2004-02-25  Simon Josefsson  <jas@extundo.com>
82996
82997         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
82998
82999 2004-02-25  Simon Josefsson  <jas@extundo.com>
83000
83001         * lib/strdup.h: New file.
83002         * lib/strdup.c: Include it.
83003         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
83004         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
83005
83006 2004-02-23  Karl Berry  <karl@gnu.org>
83007
83008         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
83009         (from fencepost.gnu.org:/gd/gnuorg).
83010
83011 2004-02-23  Karl Berry  <karl@gnu.org>
83012
83013         * config/srclistvars.sh (GNUORG) [karl]: redefine.
83014         * config/srclist.txt: add maintain/standards documents.
83015
83016 2004-02-18  Bruno Haible  <bruno@clisp.org>
83017
83018         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
83019         Reported by Derek Robert Price <derek@ximbiot.com>.
83020
83021 2004-02-16  Karl Berry  <karl@gnu.org>
83022
83023         * config/mkinstalldirs, install-sh: update from automake.
83024
83025 2004-02-06  Karl Berry  <karl@gnu.org>
83026
83027         * m4/po.m4: update from gettext 0.14.1.
83028
83029 2004-02-06  Karl Berry  <karl@gnu.org>
83030
83031         * lib/config.charset: update from gettext 0.14.1.
83032
83033 2004-02-05  Paul Eggert  <eggert@twinsun.com>
83034
83035         Add comments and code, prompted by suggestions from Bruno Haible
83036         for sh-quote.
83037         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
83038         describing the enum quoting_style values.
83039         * lib/quotearg.c (quotearg_alloc): New function.
83040         (quotearg_buffer_restyled): Treat lone { and } as special.
83041         Treat = as special.  Work around bug with older shells
83042         that "see" a '\' that is really the 2nd byte of a multibyte char.
83043         Quote empty string with shell_quoting_style.
83044
83045 2004-02-03  Bruno Haible  <bruno@clisp.org>
83046
83047         * m4/pipe.m4: New file, from GNU gettext.
83048
83049 2004-02-03  Bruno Haible  <bruno@clisp.org>
83050
83051         * lib/pipe.h: New file, from GNU gettext.
83052         * lib/pipe.c: New file, from GNU gettext.
83053
83054 2004-01-27  Bruno Haible  <bruno@clisp.org>
83055
83056         * m4/execute.m4: New file, from GNU gettext.
83057
83058 2004-01-27  Bruno Haible  <bruno@clisp.org>
83059
83060         * lib/execute.h: New file, from GNU gettext.
83061         * lib/execute.c: New file, from GNU gettext.
83062         * lib/w32spawn.h: New file, from GNU gettext.
83063
83064 2004-01-24  Paul Eggert  <eggert@twinsun.com>
83065
83066         Merge from diffutils.
83067
83068         * lib/file-type.c (file_type): Add typed memory objects.
83069         * lib/file-type.h (S_TYPEISTMO): New macro.
83070
83071         * lib/c-stack.h (c_stack_action): Remove argv argument.
83072         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
83073         (die): Don't calculate message unless segv_action returns.
83074         (get_stack_location, min_address_from_argv, max_address_from_argv,
83075         volatile stack_base, volatile_stack_size): Remove.
83076         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
83077         that every segmentation violation is a stack overflow.  (Ouch!)
83078         See Debian bug 136249 (still outstanding) for more info about why
83079         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
83080
83081 2004-01-24  Paul Eggert  <eggert@twinsun.com>
83082
83083         Exit-status fix from coreutils.
83084
83085         Use exit_failure consistently in place of EXIT_FAILURE,
83086         so that program exit statuses are consistent on failure.
83087
83088         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
83089         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
83090         * lib/argmatch.h: Comment fix to match the above.
83091         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
83092         Now a macro referring to exit_failure, instead of a separate
83093         variable.  Include "exitfail.h" to get it.
83094         * lib/xstrtol.h: Include "exitfail.h".
83095         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
83096
83097         * lib/long-options.c (parse_long_options): Use prototype
83098         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
83099         for clarity.
83100
83101 2004-01-21  Jim Meyering  <jim@meyering.net>
83102
83103         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
83104         so as not to conflict with a different-sized __mktime_internal
83105         function in GNU libc.
83106         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
83107         Problem building statically-linked `ls' reported by Michael Brunnbauer.
83108
83109 2004-01-20  Karl Berry  <karl@gnu.org>
83110
83111         * config/config.guess: update from config.
83112
83113         * config/srclistvars.sh: GNUWWWLICENSES for karl.
83114
83115 2004-01-20  Bruno Haible  <bruno@clisp.org>
83116
83117         Safer stack allocation.
83118         * lib/setenv.c: Include allocsa.h.
83119         (alloca): Remove fallback definition.
83120         (freea): Remove macro.
83121         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
83122         instead of freea.
83123
83124 2004-01-20  Bruno Haible  <bruno@clisp.org>
83125
83126         * m4/eealloc.m4: New file, from GNU gettext.
83127
83128 2004-01-20  Bruno Haible  <bruno@clisp.org>
83129
83130         * m4/allocsa.m4: New file, from GNU gettext.
83131
83132 2004-01-20  Bruno Haible  <bruno@clisp.org>
83133
83134         * lib/xallocsa.h: New file, from GNU gettext.
83135         * lib/xallocsa.c: New file, from GNU gettext.
83136
83137 2004-01-20  Bruno Haible  <bruno@clisp.org>
83138
83139         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
83140
83141 2004-01-20  Bruno Haible  <bruno@clisp.org>
83142
83143         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
83144         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
83145         specially.
83146
83147 2004-01-20  Bruno Haible  <bruno@clisp.org>
83148
83149         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
83150         patch.
83151
83152 2004-01-20  Bruno Haible  <bruno@clisp.org>
83153
83154         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
83155
83156 2004-01-20  Bruno Haible  <bruno@clisp.org>
83157
83158         * lib/eealloc.h: New file.
83159
83160 2004-01-20  Bruno Haible  <bruno@clisp.org>
83161
83162         * lib/binary-io.h: Avoid warnings on Cygwin.
83163
83164 2004-01-20  Bruno Haible  <bruno@clisp.org>
83165
83166         * lib/allocsa.h: New file, from GNU gettext.
83167         * lib/allocsa.c: New file, from GNU gettext.
83168
83169 2004-01-18  Karl Berry  <karl@gnu.org>
83170
83171         * doc/gpl.texi, doc/lgpl.texi: new files.
83172
83173 2004-01-18  Karl Berry  <karl@gnu.org>
83174
83175         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
83176         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
83177
83178 2004-01-15  Paul Eggert  <eggert@twinsun.com>
83179
83180         Merge from coreutils.
83181
83182         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
83183         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
83184         (gl_DEFAULT_POSIX2_VERSION): Move
83185         the documentation from 'configure' into 'config.hin',
83186         so that 'configure --help' isn't burdened by it and
83187         we don't have to worry about its formatting there.
83188         Reword the documentation so that it's more succinct
83189         and can be run together into a single paragraph.
83190         * m4/same.m4 (gl_SAME): Check for pathconf.
83191
83192 2004-01-15  Paul Eggert  <eggert@twinsun.com>
83193
83194         Merge from coreutils.
83195
83196         * lib/posixver.c: Include posixver.h.
83197
83198         * lib/same.c: Include <stdbool.h>, <limits.h>.
83199         (_POSIX_NAME_MAX): Define if not defined.
83200         (MIN): New macro.
83201         (same_name): If file names are silently truncated, report
83202         that the file names are the same if they are the same after
83203         the silent truncation.
83204
83205         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
83206         conversion function.
83207         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
83208         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
83209         longer needed.
83210
83211 2004-01-15  Jim Meyering  <jim@meyering.net>
83212
83213         Merge from coreutils.
83214
83215         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
83216         if no library is required.
83217         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
83218         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
83219         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
83220         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
83221         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
83222         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
83223         value, $ac_cv_search_crypt, if it's "none required".
83224         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
83225         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
83226         not gl_FUNC_GETLOADAVG.
83227         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
83228         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
83229
83230 2004-01-15  Jim Meyering  <jim@meyering.net>
83231
83232         Merge from coreutils.
83233
83234         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
83235         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
83236         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
83237
83238         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
83239         optional configure-time default.
83240
83241         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83242
83243         * lib/xreadlink.c (xreadlink): Correct outdated comment.
83244
83245 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
83246
83247         Merge from coreutils.
83248
83249         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
83250         value, $ac_cv_search_nanosleep, if it's "none required".
83251
83252 2004-01-14  Paul Eggert  <eggert@twinsun.com>
83253
83254         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
83255         with like-named macro in fnmatch.c.
83256         (EXT): Use an internal constant instead.
83257
83258         Merge fnmatch patches from glibc.
83259         * lib/fnmatch.c (mbsinit): Remove define.
83260         Add libc_hidden_ver (__fnmatch, fnmatch).
83261         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
83262         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
83263
83264 2004-01-14  Karl Berry  <karl@gnu.org>
83265
83266         * config/install-sh: update from automake.
83267
83268 2004-01-13  Karl Berry  <karl@gnu.org>
83269
83270         * config/install-sh: update from automake.
83271
83272 2004-01-09  Karl Berry  <karl@gnu.org>
83273
83274         * config/install-sh: update from automake.
83275
83276 2004-01-05  Karl Berry  <karl@gnu.org>
83277
83278         * config/config.{sub,guess}: update from config.
83279
83280 2003-12-31  Karl Berry  <karl@gnu.org>
83281
83282         * config/depcomp: update from automake.
83283
83284 2003-12-14  Karl Berry  <karl@gnu.org>
83285
83286         * lib/config.charset: update from gettext-runtime.
83287
83288 2003-12-03  Paul Eggert  <eggert@twinsun.com>
83289
83290         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
83291         Bug reported by Alfred M. Szmidt.
83292
83293 2003-12-03  Bruno Haible  <bruno@clisp.org>
83294
83295         * m4/gettext.m4: Upgrade from gettext-0.13.
83296         * m4/po.m4: Upgrade from gettext-0.13.
83297         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
83298         * m4/intmax.m4: New file, from gettext-0.13.
83299         * m4/printf-posix.m4: New file, from gettext-0.13.
83300
83301 2003-11-29  Karl Berry  <karl@gnu.org>
83302
83303         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
83304
83305 2003-11-25  Paul Eggert  <eggert@twinsun.com>
83306             Bruno Haible  <bruno@clisp.org>
83307
83308         * lib/printf-parse.h: Don't include sys/types.h.
83309         (ARG_NONE): New macro.
83310         (char_directive): Change type of *arg_index fields to size_t.
83311         * lib/printf-parse.c: Don't include sys/types.h.
83312         (SSIZE_MAX): Remove macro.
83313         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
83314         Remove unnecessary overflow check.
83315         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
83316         fields.
83317
83318 2003-11-25  Bruno Haible  <bruno@clisp.org>
83319
83320         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
83321
83322 2003-11-25  Bruno Haible  <bruno@clisp.org>
83323
83324         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
83325         gt_TYPE_SSIZE_T.
83326
83327 2003-11-24  Paul Eggert  <eggert@twinsun.com>
83328
83329         * modules/alloca: Remove dependency on xalloc.
83330
83331 2003-11-24  Paul Eggert  <eggert@twinsun.com>
83332
83333         * lib/alloca.c: Remove dependency on xalloc module.
83334         (xalloc_die): Remove.
83335         (memory_full) [!defined emacs]: New macro.
83336         [!defined emacs]: Don't include xalloc.h.
83337         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
83338         address arithmetic overflows.  Change datatypes a bit to avoid
83339         unnecessary casts.
83340
83341 2003-11-22  Jim Meyering  <jim@meyering.net>
83342
83343         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
83344         s/size/size_t/.
83345
83346 2003-11-21  Karl Berry  <karl@gnu.org>
83347
83348         * config/config.{sub,guess}: update from config.
83349
83350 2003-11-18  Karl Berry  <karl@gnu.org>
83351
83352         * config/config.{sub,guess}: update from config.
83353
83354         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
83355
83356 2003-11-17  Paul Eggert  <eggert@twinsun.com>
83357
83358         * README: Mention that S+T cannot overflow if S is the size of
83359         an existing object and T is sufficiently small.
83360
83361 2003-11-17  Jim Meyering  <jim@meyering.net>
83362
83363         On systems without utime and without a utimes function capable of
83364         dealing with a NULL struct utimbuf* argument, this utime replacement
83365         could -- in unusual circumstances -- leak a file descriptor.
83366         * lib/utime.c: Include <unistd.h> and <errno.h>.
83367         (utime_null): Be sure to close `fd' and to preserve errno.
83368         Reported by Geoff Collyer via Arnold Robbins.
83369
83370 2003-11-17  Bruno Haible  <bruno@clisp.org>
83371
83372         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
83373         (Depends-on): Add xsize.
83374
83375 2003-11-17  Bruno Haible  <bruno@clisp.org>
83376
83377         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
83378
83379 2003-11-17  Bruno Haible  <bruno@clisp.org>
83380
83381         * lib/vasnprintf.c (alloca): Remove fallback definition.
83382         (freea): Remove definition.
83383         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
83384         Reported by Paul Eggert.
83385
83386 2003-11-16  Paul Eggert  <eggert@twinsun.com>
83387             Bruno Haible  <bruno@clisp.org>
83388
83389         Protect against address arithmetic overflow.
83390         * lib/printf-args.h: Include stddef.h.
83391         (arguments): Change type of field 'count' to size_t.
83392         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
83393         'unsigned int' where appropriate.
83394         * lib/printf-parse.h: Include sys/types.h.
83395         (char_directive): Change type of *arg_index fields to ssize_t.
83396         (char_directives): Change type of fields 'count', max_*_length to
83397         size_t.
83398         * lib/printf-parse.c: Include sys/types.h and xsize.h.
83399         (SSIZE_MAX): Define fallback value.
83400         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
83401         instead of 'int' where appropriate. Check a_allocated, d_allocated
83402         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
83403         * lib/vasnprintf.c: Include xsize.h.
83404         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
83405         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
83406         overflow. Avoid wraparound when converting a width or precision from
83407         decimal to binary.
83408
83409 2003-11-16  Bruno Haible  <bruno@clisp.org>
83410
83411         Update from GNU gettext.
83412         * lib/printf-parse.c: Generalize to it can be compiled for wide
83413         strings.
83414         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
83415         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
83416         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
83417         SNPRINTF): New macros.
83418         Don't include <alloca.h> if the file is used inside libintl.
83419         (local_wcslen): New function, for Solaris 2.5.1.
83420         (VASNPRINTF): Use it instead of wcslen.
83421
83422 2003-11-16  Bruno Haible  <bruno@clisp.org>
83423
83424         * lib/xsize.h (xmax): New function.
83425         (xsum, xsum3, xsum4): Declare as "pure" functions.
83426
83427 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83428
83429         * modules/xalloc (Files): Undo latest change, since xalloc.h
83430         no longer needs SIZE_MAX or PTRDIFF_MAX.
83431
83432 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83433
83434         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
83435         gl_PTRDIFF_MAX.
83436
83437 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83438
83439         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
83440         "return", to pacify some unknown compiler.  Problem reported
83441         by Joerg Schilling.
83442
83443 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83444
83445         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
83446         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
83447         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
83448         heuristic is just as accurate as far as we know, and it removes a
83449         dependency on size_max.m4 and ptrdiff_max.m4.
83450
83451 2003-11-11  Bruno Haible  <bruno@clisp.org>
83452
83453         * modules/xsize (Files): Add m4/size_max.m4.
83454         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
83455
83456 2003-11-11  Bruno Haible  <bruno@clisp.org>
83457
83458         * m4/size_max.m4: New file.
83459         * m4/ptrdiff_max.m4: New file.
83460         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
83461         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
83462         (gl_XALLOC): Invoke it.
83463
83464 2003-11-11  Bruno Haible  <bruno@clisp.org>
83465
83466         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
83467         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
83468         defined.
83469
83470 2003-11-10  Paul Eggert  <eggert@twinsun.com>
83471
83472         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
83473         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
83474         rejected some allocations of exactly SIZE_MAX - 2 bytes.
83475         From Bruno Haible.
83476         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
83477         not (size_t) -1, since it's defined here.
83478
83479 2003-11-09  Karl Berry  <karl@gnu.org>
83480
83481         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
83482
83483 2003-11-06  Paul Eggert  <eggert@twinsun.com>
83484
83485         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
83486         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
83487         Reject sizes of exactly SIZE_MAX bytes.
83488         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
83489         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
83490
83491 2003-11-05  Bruno Haible  <bruno@clisp.org>
83492
83493         * lib/xsize.h: Include limits.h, to avoid a possible collision with
83494         SIZE_MAX defined in <limits.h> on Solaris.
83495
83496 2003-11-04  Jim Meyering  <jim@meyering.net>
83497
83498         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
83499         variable names, rather than @VAR@.
83500         * modules/poll: Likewise.
83501
83502 2003-11-04  Bruno Haible  <bruno@clisp.org>
83503
83504         * modules/xsize: New file.
83505         * modules/linebreak: Depend on xsize.
83506         * MODULES.html.sh (func_all_modules): Add xsize.
83507
83508 2003-11-04  Bruno Haible  <bruno@clisp.org>
83509
83510         * m4/xsize.m4: New file.
83511
83512 2003-11-04  Bruno Haible  <bruno@clisp.org>
83513
83514         * lib/xsize.h: New file.
83515         * lib/linebreak.c: Include xsize.h.
83516         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
83517         argument for overflow.
83518         Suggested by Paul Eggert.
83519
83520 2003-11-03  Karl Berry  <karl@gnu.org>
83521
83522         * config/config.{guess,sub}: update from config.
83523
83524 2003-11-03  Jim Meyering  <jim@meyering.net>
83525
83526         * modules/userspec (lib_SOURCES): Add userspec.h.
83527         (Include): Add "userspec.h".
83528         Improve description.
83529
83530 2003-11-03  Jim Meyering  <jim@meyering.net>
83531
83532         * lib/userspec.c: Include "userspec.h".
83533         * lib/userspec.h: New file.
83534
83535 2003-11-03  Bruno Haible  <bruno@clisp.org>
83536
83537         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
83538
83539 2003-11-03  Bruno Haible  <bruno@clisp.org>
83540
83541         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
83542         available, to avoid (extremely rare) race condition.
83543         Suggested by Paul Eggert.
83544
83545 2003-11-02  Karl Berry  <karl@gnu.org>
83546
83547         * config/srclist.txt (vasprintf.c): sync broken, sigh.
83548
83549 2003-10-31  Paul Eggert  <eggert@twinsun.com>
83550
83551         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
83552         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
83553         (read_filesystem_list): Set and use me_type_malloced.
83554         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
83555         whatever the type happens to be), for brevity and consistency.
83556         Check for size calculation overflow on Alphas running OSF/1.
83557
83558 2003-10-31  Jim Meyering  <jim@meyering.net>
83559
83560         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
83561
83562         * lib/linebuffer.c: Include <string.h> for declaration of memset.
83563
83564 2003-10-30  Paul Eggert  <eggert@twinsun.com>
83565             Bruno Haible  <bruno@clisp.org>
83566
83567         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
83568         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
83569
83570 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83571
83572         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
83573         netbsd*-gnu*.  Suggested by Robert Millan.
83574
83575 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83576
83577         * modules/group-member: Depend on stdbool.
83578
83579 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83580
83581         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
83582
83583 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83584
83585         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
83586         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
83587         after the 'gnu' in these cases.  This fixes some bugs in the
83588         previous change, and is based on suggestions by Robert Millan.
83589
83590 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83591
83592         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
83593         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
83594         no longer needed.
83595         * lib/quotearg.c (quotearg_n_options): Use it.
83596         * lib/group-member.c: Include <stdbool.h>.
83597         (free_group_info): Arg is now const *; don't free arg.
83598         (get_group_info): Now returns bool and accepts struct group_info *,
83599         rather than returning a malloc'ed struct group_info *.
83600         All uses changed.  Check for overflow in internal size calculation.
83601
83602         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
83603         rather than xmalloc/xrealloc.
83604         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
83605         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
83606         conformance bug: the old code used a pointer after freeing the
83607         storage that it addressed.
83608         * lib/hash.c (hash_initialize): Simplify the code by using
83609         xalloc_oversized rather than doing it by hand.
83610         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
83611         the buffer preserved.  Use free and xmalloc instead.
83612         * lib/quotearg.c (quotearg_n_options): Likewise.
83613         Use a simpler test for size overflow.  Don't use xalloc_oversized
83614         because unsigned int might be wider than size_t (!); this suggests
83615         that we should switch from unsigned int to size_t for slot numbers.
83616
83617 2003-10-28  Paul Eggert  <eggert@twinsun.com>
83618
83619         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
83620         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
83621         NetBSD kernels.  Requested by Richard Stallman.
83622
83623 2003-10-27  Paul Eggert  <eggert@twinsun.com>
83624
83625         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
83626         to allocate the returned structure.  Do not allocate a subarray,
83627         as x2nrealloc will do that.
83628         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
83629         instead of xnrealloc.
83630         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
83631
83632 2003-10-27  Bruno Haible  <bruno@clisp.org>
83633
83634         * lib/stdbool_.h: Better support for BeOS.
83635
83636 2003-10-26  Paul Eggert  <eggert@twinsun.com>
83637
83638         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
83639         now uses inline.
83640
83641 2003-10-26  Paul Eggert  <eggert@twinsun.com>
83642
83643         * lib/xalloc.h (xalloc_oversized): New static inline function, for
83644         callers that want to do their own size-overflow checking.  Include
83645         <stdbool.h>, since xalloc_oversized returns bool.
83646         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
83647         to use xalloc_oversized.
83648
83649         Add two functions x2realloc, x2nrealloc, for programs that grow
83650         arrays dynamically by doubling their sizes.
83651         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
83652         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
83653         New functions.
83654
83655         Port to C99 semantics for 'inline' of external functions.
83656         Bug reported by Bruno Haible.
83657         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
83658         with the old contents of xnmalloc.
83659         (xnmalloc, xmalloc): Use it.
83660         (xnrealloc_inline): New static inline function,
83661         with the old contents of xnrealloc.
83662         (xnrealloc, xrealloc): Use it.
83663
83664         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
83665         that.
83666
83667 2003-10-26  Karl Berry  <karl@gnu.org>
83668
83669         * config/srclist.txt (COPYING.DOC): no longer available from
83670         /gd/gnuorg; don't know where the ultimate source is.
83671
83672 2003-10-25  Paul Eggert  <eggert@twinsun.com>
83673
83674         Fix several address-calculation bugs in the hash modules,
83675         plus some minor code cleanup.
83676
83677         * lib/hash.h: Include <stdbool.h>, for bool.
83678         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
83679         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
83680         hash_get_n_entries, hash_get_max_bucket_length,
83681         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
83682         hash_rehash): Use size_t rather than unsigned.
83683         * lib/hash.c (struct hash_table, hash_get_n_buckets,
83684         hash_get_n_buckets_used, hash_get_n_entries,
83685         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
83686         hash_get_entries, hash_do_for_each, hash_string, is_prime,
83687         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
83688         Likewise.
83689         (SIZE_MAX): Define if not defined.
83690         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
83691         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
83692         hash_print):
83693         Use const * when possible.
83694         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
83695         (check_tuning): Fix bug: if tuning parameters were very close to
83696         0 or 1, rounding errors could have caused subscript violations.
83697         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
83698         (hash_initialize): Add 'fail:' label
83699         to free table and return NULL, and use it to simplify code.
83700         Use calloc rather than clearing the storage ourself.
83701         (hash_initialize, hash_rehash): Check for arithmetic overflow in
83702         buffer size calculations.
83703         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
83704         Include <stddef.h>, for size_t.
83705         * lib/hash-pjw.c (hash_pjw): Likewise.
83706         Switch to method described by Bruno Haible.
83707         Include <limits.h>, for CHAR_BIT.
83708         (SIZE_BITS): New macro.
83709
83710 2003-10-23  Paul Eggert  <eggert@twinsun.com>
83711
83712         * m4/getline.m4 (AM_FUNC_GETLINE):
83713         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
83714         hosts.  Problem reported by Derek Robert Price in
83715         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
83716         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
83717         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
83718
83719 2003-10-21  Paul Eggert  <eggert@twinsun.com>
83720
83721         * lib/getndelim2.c (getndelim2): When size calculation overflows,
83722         ceiling the allocation at NMAX bytes rather than silently
83723         discarding input bytes before NMAX is reached.  This makes
83724         a difference only if NMAX exceeds SIZE_MAX / 2.
83725
83726         * lib/obstack.c: Merge from glibc.
83727         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
83728         Add libc_hidden_def (_obstack_newchunk).
83729         (_obstack_free) [! defined _LIBC]: Remove.
83730         [defined _LIBC]: Make a strong alias from obstack_free, rather than
83731         a clone of the function body.
83732         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
83733         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
83734
83735         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
83736         glibc.
83737         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
83738         arg to memcpy.
83739
83740         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
83741         (obstack_ptr_grow_fast, obstack_int_grow_fast):
83742         Don't use lvalue casts, as GCC plans to remove support for them
83743         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
83744         was also present in the non-GCC version, indicating that this
83745         code had always been buggy and had never been widely used.
83746         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
83747         Use the fast variant of each macro, rather than copying the
83748         definiens of the fast variant; that way, we'll be more likely to
83749         catch future bugs in the fast variants.
83750
83751 2003-10-20  Bruno Haible  <bruno@clisp.org>
83752
83753         * modules/wait-process: New file.
83754         * MODULES.html.sh (func_all_modules): Add wait-process.
83755
83756 2003-10-20  Bruno Haible  <bruno@clisp.org>
83757
83758         * m4/wait-process.m4: New file.
83759
83760 2003-10-20  Bruno Haible  <bruno@clisp.org>
83761
83762         * lib/wait-process.h: New file, from GNU gettext.
83763         * lib/wait-process.c: New file, from GNU gettext.
83764
83765 2003-10-19  Jim Meyering  <jim@meyering.net>
83766
83767         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
83768         HPUX 10.20.
83769
83770 2003-10-18  Karl Berry  <karl@gnu.org>
83771
83772         * config/config.guess: update from config.
83773
83774 2003-10-16  Paul Eggert  <eggert@twinsun.com>
83775
83776         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
83777         (getgroups): First arg is int, not size_t.
83778         Don't let 'free' mangle errno.
83779
83780 2003-10-16  Paul Eggert  <eggert@twinsun.com>
83781
83782         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
83783
83784 2003-10-16  Karl Berry  <karl@gnu.org>
83785
83786         * config/config.{guess,sub}: update from config.
83787
83788 2003-10-16  Jim Meyering  <jim@meyering.net>
83789
83790         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
83791         memcpy.
83792
83793 2003-10-15  Paul Eggert  <eggert@twinsun.com>
83794
83795         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
83796         (SIZE_MAX): Remove.
83797         (new_exclude, add_exclude_file): Initial size no longer needs to
83798         be a power of 2.
83799         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
83800         our own address arithmetic overflow checking.
83801
83802         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
83803         (fnmatch): Do not alloca more than 2000 wide characters;
83804         instead, use malloc for large buffers.
83805         Check for address arithmetic overflow, and return -1
83806         with errno set to ENOMEM in that case.
83807         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
83808         (NEW_PATTERN): Do not alloca more than 8000 bytes;
83809         instead, return -1.  Check for address arithmetic overflow.
83810
83811 2003-10-14  Paul Eggert  <eggert@twinsun.com>
83812
83813         Handle invalid suffixes and overflow independently, so that
83814         callers can treat them independently as needed.  Fix some bugs in
83815         suffix handling, e.g., "100k@" was not diagnosed as an invalid
83816         suffix for a human-readable blocksize.  The major caller-visible
83817         change is the addition of a new
83818         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
83819         that both overflow and suffix chars were found.
83820
83821         * lib/human.c (humblock): Don't check separately for invalid suffix
83822         char; that is xstrtoumax's job (now that its bug is fixed).
83823         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
83824         INTMAX_MAX]: New macros.
83825         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
83826         TYPE_MAXIMUM): New macros.
83827         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
83828         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
83829         if overflow occurs, as it's what __strtol does and it's more useful
83830         in practice.
83831         (__xstrtol): If __strtol reports some error other than ERANGE,
83832         reflect it to the caller as LONGINT_INVALID.  If it reports
83833         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
83834         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
83835         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
83836         value.
83837         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
83838         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
83839         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
83840         [defined UINTMAX_MAX]: New macros.
83841
83842 2003-10-14  Bruno Haible  <bruno@clisp.org>
83843
83844         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
83845
83846 2003-10-14  Bruno Haible  <bruno@clisp.org>
83847
83848         * m4/sig_atomic_t: New file, from GNU gettext.
83849         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
83850
83851 2003-10-14  Bruno Haible  <bruno@clisp.org>
83852
83853         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
83854         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
83855         Also use volatile where needed.
83856
83857 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83858
83859         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
83860         Change maintainer from Bruno Haible to 'all'.
83861
83862 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83863
83864         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
83865
83866 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83867
83868         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
83869         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
83870         and define in terms of the other primitives.
83871         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
83872         (SIZE_MAX): Define if not already defined.
83873         (array_size_overflow): New function.
83874         (xalloc_die): Abort instead of exiting if 'error' returns.
83875         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
83876         (xmalloc, xrealloc): Use them.
83877         (xcalloc): Check for address arithmetic overflow.
83878         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
83879         a bit faster than strcpy.
83880
83881 2003-10-10  Simon Josefsson  <jas@extundo.com>
83882
83883         * modules/argp (Depends-on): Add restrict and strcase.
83884
83885 2003-10-10  Simon Josefsson  <jas@extundo.com>
83886
83887         * m4/argp.m4: Add AC_C_INLINE.
83888
83889 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83890
83891         Merge getpass from libc, plus a few fixes.
83892
83893         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
83894         Include <stdbool.h>.
83895         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
83896         __fsetlocking to empty.
83897         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
83898         do include <bits/libc-lock.h>.
83899         Do not include <fcntl.h>; not needed.
83900         [_LIBC]: Include <wchar.h>.
83901         (NOTCANCEL_MODE): New macro.
83902         (flockfile, funlockfile) [_LIBC]: New macros.
83903         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
83904         [!_LIBC]: New macros.
83905         (call_fclose): New function.
83906         (getpass): Use it.  Save tty stream separately; this simplifies the
83907         code and makes it more reliable if stdin happens to equal stdout.
83908         Invoke __fsetlocking on tty.
83909         Handle thread cancellation if needed.
83910         Namespace cleanup (use __tcgetattr, __getline).
83911         Use bool for Booleans.
83912         [USE_IN_LIBIO]: Handle wide streams.
83913         [!_LIBC]: Unconditionally do the fseek, since we don't know what
83914         stream might go where.
83915
83916         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
83917         doesn't have to include <stdio.h> before us.
83918         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
83919         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
83920         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
83921         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
83922         if not declared, so that we can use getpass.c code from libc without
83923         rewriting it.
83924         (flockfile, ftrylockfile, funlockfile): New macros.
83925
83926 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83927
83928         * modules/getpass: Depend on stdbool.
83929
83930 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83931
83932         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
83933
83934 2003-10-07  Karl Berry  <karl@gnu.org>
83935
83936         * config/config.{guess,sub}: update from config.
83937
83938 2003-10-06  Jim Meyering  <jim@meyering.net>
83939             Bruno Haible  <bruno@clisp.org>
83940
83941         This lets translators provide better translations for the
83942         "Written by ..." part of --version output.
83943         * lib/version-etc.h: Include stdarg.h.
83944         (version_etc_copyright): Declare as readonly.
83945         (version_etc): Make this function variadic with a NULL-terminated list
83946         of author name strings.
83947         (version_etc_va): New declaration.
83948         * lib/version-etc.c: Include stdarg.h, stdlib.h.
83949         (version_etc_copyright): Declare as readonly.
83950         (version_etc_va): New function. Provide a different translatable string
83951         for each possible number of authors < 10. Abbreviate when there are 10
83952         authors or more.
83953         (version_etc): Make this function variadic. Call version_etc_va.
83954         Suggestion from Gary V. Vaughan.
83955
83956         * lib/long-options.h (parse_long_options): Change prototype: the
83957         authors string is moved to the end and becomes variadic.
83958         * lib/long-options.c: Include stdarg.h.
83959         (parse_long_options): Make this function variadic, too.
83960         Call version_etc_va, not version_etc.
83961
83962 2003-10-06  Bruno Haible  <bruno@clisp.org>
83963
83964         * modules/version-etc-2: Remove file.
83965         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
83966
83967 2003-10-06  Bruno Haible  <bruno@clisp.org>
83968
83969         * modules/fatal-signal: New file.
83970         * MODULES.html.sh (func_all_modules): Add fatal-signal.
83971
83972 2003-10-06  Bruno Haible  <bruno@clisp.org>
83973
83974         * m4/fatal-signal.m4: New file.
83975         * m4/signalblocking.m4: New file, from GNU gettext.
83976
83977 2003-10-06  Bruno Haible  <bruno@clisp.org>
83978
83979         * lib/version-etc-2.h: Remove file.
83980         * lib/version-etc-2.c: Remove file.
83981
83982 2003-10-06  Bruno Haible  <bruno@clisp.org>
83983
83984         * lib/fatal-signal.h: New file, from GNU gettext.
83985         * lib/fatal-signal.c: New file, from GNU gettext.
83986
83987 2003-10-05  Paul Eggert  <eggert@twinsun.com>
83988
83989         * README: Rework advice for preventing empty .o files.
83990         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
83991         not <sys/types.h>.
83992
83993 2003-10-04  Karl Berry  <karl@gnu.org>
83994
83995         * lib/argp*: update from libc.
83996
83997 2003-10-04  Karl Berry  <karl@gnu.org>
83998
83999         * config/config.{guess,sub}: update from config.
84000
84001 2003-10-02  Bruno Haible  <bruno@clisp.org>
84002
84003         * modules/lchown (Include): Add lchown.h.
84004         * modules/time_r (Include): Use "..." syntax.
84005         * modules/xgetdomainname (Include): Add xgetdomainname.h.
84006
84007 2003-10-01  Simon Josefsson  <jas@extundo.com>
84008
84009         * MODULES.html.sh (func_all_modules): Move gethostname from section
84010         'based on' to section 'lacking' POSIX:2001.
84011
84012 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
84013
84014         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
84015         to output mode on the same stream.
84016
84017 2003-09-29  Paul Eggert  <eggert@twinsun.com>
84018
84019         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
84020         Fix arg typo in previous patch.
84021
84022 2003-09-28  Jim Meyering  <jim@meyering.net>
84023
84024         * lib/error.c: Correct cpp indentation.
84025
84026 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84027
84028         * modules/free: New file.
84029
84030 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84031
84032         * m4/free.m4: New file.
84033
84034 2003-09-27  Paul Eggert  <eggert@twinsun.com>
84035
84036         * lib/minmax.h (MIN, MAX)
84037         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
84038         Omit the special code that used __typeof__, since we worry that
84039         it could be more trouble than it's worth.  See:
84040         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
84041         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
84042
84043         * lib/free.c: New file.
84044
84045 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
84046
84047         Trivial fixes to Makefile.am parts of module listings.
84048         * modules/strstr: Append strstr.h to lib_SOURCES.
84049         * modules/strcase: Likewise, for strcase.h.
84050
84051 2003-09-27  Karl Berry  <karl@gnu.org>
84052
84053         * config/mkinstalldirs: update from automake.
84054
84055 2003-09-26  Paul Eggert  <eggert@twinsun.com>
84056
84057         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
84058         (error_tail): Do not loop, reallocating temporary buffer, since
84059         the output cannot contain more wide characters than the input
84060         contains bytes, the size must be big enough already.  This avoids
84061         one potential size overflow calculation.  Check for size overflow
84062         when calculating temporary buffer size.  Free temporary buffer
84063         when done, if it was allocated with malloc; this plugs a memory
84064         leak.  Remove casts from void * to pointers, that are no longer
84065         needed now that we're assuming C89 or better.
84066
84067         Merge error changes from glibc.
84068
84069         * lib/error.c, error.h: Update copyright notice header to match glibc.
84070         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
84071         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
84072         Disable cancellation while printing error.
84073         * lib/error.h: Prepend __ to parameter names.
84074
84075 2003-09-26  Jim Meyering  <jim@meyering.net>
84076
84077         * lib/error.c (error_tail): Move some declarations
84078         into inner scope where the local variables are used.
84079
84080 2003-09-26  Bruno Haible  <bruno@clisp.org>
84081
84082         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
84083         stpncpy().
84084         Don't define stpncpy through config.h; it's now done through stpncpy.h.
84085
84086 2003-09-26  Bruno Haible  <bruno@clisp.org>
84087
84088         * lib/stpncpy.h (gnu_stpncpy): New declaration.
84089         (stpncpy): Define as alias for gnu_stpncpy.
84090         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
84091
84092 2003-09-25  Simon Josefsson  <jas@extundo.com>
84093
84094         * lib/xgetdomainname.h: New file.
84095         * lib/xgetdomainname.c: New file.
84096
84097 2003-09-25  Simon Josefsson  <jas@extundo.com>
84098             Bruno Haible  <bruno@clisp.org>
84099
84100         * modules/getdomainname: New file.
84101         * modules/xgetdomainname: New file.
84102         * MODULES.html.sh (func_all_modules): Add getdomainname,
84103         xgetdomainname.
84104
84105 2003-09-25  Simon Josefsson  <jas@extundo.com>
84106             Bruno Haible  <bruno@clisp.org>
84107
84108         * m4/getdomainname.m4: New file.
84109
84110 2003-09-25  Simon Josefsson  <jas@extundo.com>
84111             Bruno Haible  <bruno@clisp.org>
84112
84113         * lib/getdomainname.h: New file.
84114         * lib/getdomainname.c: New file.
84115
84116 2003-09-25  Karl Berry  <karl@gnu.org>
84117
84118         * lib/argp-fmtstream.c, argp-help.c: update from libc.
84119
84120 2003-09-25  Karl Berry  <karl@gnu.org>
84121
84122         * config/install-sh: update from automake.
84123
84124 2003-09-25  Bruno Haible  <bruno@clisp.org>
84125
84126         * modules/version-etc-2: New file, from modules/version-etc with
84127         modifications.
84128         * MODULES.html.sh (func_all_modules): Add version-etc-2.
84129
84130 2003-09-25  Bruno Haible  <bruno@clisp.org>
84131
84132         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
84133         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
84134
84135 2003-09-24  Simon Josefsson  <jas@extundo.com>
84136
84137         * modules/xgethostname: Add xgethostname.h.
84138
84139 2003-09-24  Paul Eggert  <eggert@twinsun.com>
84140
84141         * lib/linebuffer.c (freebuffer): Don't free the argument, just
84142         the buffer associated with the argument.  Bug reported by
84143         Simon Josefsson.
84144
84145 2003-09-24  Paul Eggert  <eggert@twinsun.com>
84146
84147         * README: Document assumptions that 'int' is at least 32 bits
84148         wide, that integer arithmetic is 2's complement without overflow,
84149         that there are no holes in integer values, that adding sizes of
84150         two nonoverlapping objects can't overflow, and that all-bits-zero
84151         yields scalar zero.  Fix spelling and capitalization typos.
84152
84153 2003-09-19  Karl Berry  <karl@gnu.org>
84154
84155         * lib/argp.h: update from libc.
84156
84157 2003-09-17  Paul Eggert  <eggert@twinsun.com>
84158
84159         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
84160         to avoid spurious warnings like "AC_RUN_IFELSE was called before
84161         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
84162
84163 2003-09-17  Paul Eggert  <eggert@twinsun.com>
84164
84165         * gnulib-tool: Use "test -h", not "test -L", for portability
84166         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
84167         (tags_regexp): Remove, since \| doesn't conform to POSIX.
84168         (sed_extract_prog): Issue s commands one-by-one, rather than
84169         using \| in one s command.
84170
84171 2003-09-16  Paul Eggert  <eggert@twinsun.com>
84172
84173         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
84174         input error, instead of returning NULL the next time we are called
84175         (and therefore losing track of errno).
84176
84177 2003-09-16  Bruno Haible  <bruno@clisp.org>
84178
84179         * gnulib-tool (func_create_testdir): Warn about duplicated
84180         dependencies.
84181
84182 2003-09-15  Paul Eggert  <eggert@twinsun.com>
84183
84184         * modules/argmatch, modules/fatal, modules/obstack,
84185         modules/xalloc, modules/xgethostname: Sort dependencies by
84186         importance, not alphabetically.
84187
84188 2003-09-15  Paul Eggert  <eggert@twinsun.com>
84189
84190         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
84191         fails, so that the caller gets the proper errno.
84192
84193         * lib/readutmp.c (read_utmp): Likewise.
84194         Check for fstat error.  Close stream and free storage
84195         when failing.
84196
84197 2003-09-14  Karl Berry  <karl@gnu.org>
84198
84199         * config/srclist.txt (strdup.c): disable for c89 changes.
84200
84201 2003-09-14  Jim Meyering  <jim@meyering.net>
84202
84203         * lib/getloadavg.c: Correct cpp indentation.
84204         * lib/strdup.c: Likewise.
84205         * lib/vasnprintf.c: Likewise.
84206
84207 2003-09-14  Bruno Haible  <bruno@clisp.org>
84208
84209         * modules/fwriteerror: New file.
84210         * MODULES.html.sh (func_all_modules): Add fwriteerror.
84211
84212 2003-09-14  Bruno Haible  <bruno@clisp.org>
84213
84214         * lib/fwriteerror.h: New file.
84215         * lib/fwriteerror.c: New file.
84216
84217 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84218
84219         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
84220         modules/xgethostname, modules/xalloc: Depend on exit.
84221
84222 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84223
84224         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
84225
84226         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
84227         and AC_MINIX, too, so that their extensions are available.
84228
84229         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
84230         This macro has been superseded by gl_BACKUPFILE.
84231
84232         More patches to assume C89 or better.
84233
84234         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
84235
84236         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
84237         unconditionally.
84238         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
84239         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
84240         Include <string.h>, <stdlib.h> unconditionally.
84241         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
84242         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
84243         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
84244         headers or for string.h.
84245         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
84246         or strtoul.
84247
84248         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
84249         headers.
84250         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
84251         * m4/userspec.m4 (gl_USERSPEC): Likewise.
84252         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
84253         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
84254         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
84255         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
84256         memcpy, memset.
84257         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
84258         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
84259         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
84260         strtol.
84261         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
84262         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
84263         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
84264         strtoul.
84265
84266 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84267
84268         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
84269         * lib/obstack.c [!defined _LIBC]: Likewise.
84270         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
84271         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
84272         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
84273
84274         More changes to assume C89 or better.
84275
84276         * lib/error.c (error_tail): Assume vprintf.
84277
84278         * lib/argmatch.c (getenv): Remove decl.
84279         * lib/progreloc.c (get_full_program_name): Define via prototype.
84280         * lib/setenv.c (clearenv): Likewise.
84281         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
84282         needed.
84283         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
84284         (malloc, memcpy): Remove decls.
84285         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
84286         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
84287         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
84288         (memcpy): Remove macro.
84289         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
84290         (__P): Remove.  All uses removed.
84291         (PTR): Remove.  All uses changed to void *.
84292         (CHAR_BIT, NULL): Remove.
84293         (spaces, zeros, memset_space, memset_zero)
84294         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
84295         Remove.
84296         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
84297         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
84298         Define with prototype.
84299         Remove now-unnecessary prototype decl.
84300         (extra_args_spec): Assume ANSI C.  All uses changed.
84301         (extra_args_spec_iso): Remove.
84302         (my_strftime, emacs_strftimeu): Define via prototype.
84303         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
84304         unconditionally.
84305         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
84306         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
84307         (strtoul, strtol): Remove decls.
84308         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
84309         LONG_MAX): Remove.
84310         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
84311         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
84312         (LOCALE_PARAM_PROTO): New macro.
84313         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
84314         (INTERNAL (strtol), strtol): Define with a prototype.
84315         (PARAMS): Remove.  All uses removed.
84316         * lib/tempname.c: Include <string.h> unconditionally.
84317         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
84318         * lib/xgethostname.c (main): Define with a prototype.
84319         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
84320         Include <stdlib.h> unconditionally.
84321         (calloc, malloc, realloc, free): Remove decls.
84322         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
84323         Include <stdlib.h> unconditionally.  Sort include file names.
84324         (strtod): Remove.
84325         (xstrtod): Define with a prototype.
84326         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
84327         (strtol, strtoul): Remove decls.
84328
84329 2003-09-11  Paul Eggert  <eggert@twinsun.com>
84330
84331         More patches to assume C89 or better.
84332         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
84333         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
84334         string.h, memchr, STDC_HEADERS.
84335
84336 2003-09-11  Paul Eggert  <eggert@twinsun.com>
84337
84338         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
84339         Include <stdlib.h>, <string.h> unconditionally.
84340         Remove now-unnecessary cast to char *.
84341         * lib/strnlen.c: Include <string.h> unconditionally.
84342         * lib/yesno.c (yesno): Define with a prototype.
84343
84344 2003-09-11  Bruno Haible  <bruno@clisp.org>
84345
84346         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
84347
84348 2003-09-10  Jim Meyering  <jim@meyering.net>
84349
84350         * lib/error.c: Correct indentation of cpp directives.
84351
84352 2003-09-10  Bruno Haible  <bruno@clisp.org>
84353
84354         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
84355         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
84356         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
84357         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
84358         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
84359         <stdlib.h> and <string.h> checks.
84360         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
84361         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
84362
84363 2003-09-10  Bruno Haible  <bruno@clisp.org>
84364
84365         * lib/strcspn.c: Include <string.h> unconditionally.
84366         * lib/strpbrk.c: Include <string.h> unconditionally.
84367         * lib/strstr.c: Include <string.h> unconditionally.
84368         * lib/unicodeio.c: Include <string.h> unconditionally.
84369         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
84370         * lib/unsetenv.c: Likewise.
84371         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
84372         * lib/yesno.c: Include <stdlib.h> unconditionally.
84373         (rpmatch): Add prototype.
84374
84375 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84376
84377         More patches to assume C89 or better.
84378         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
84379         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
84380         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
84381         or for string.h.
84382         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
84383         stdlib.h.
84384         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
84385         C headers.
84386         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
84387         string.h.
84388         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
84389         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
84390         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
84391         or for string.h.
84392         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
84393         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
84394         C headers.
84395         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
84396         memcpy.
84397         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
84398         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
84399         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
84400         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
84401         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
84402         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
84403         string.h, free.
84404         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
84405         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
84406         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
84407         C headers, or for string.h.
84408         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
84409         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
84410         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
84411         headers, memory.h, stdlib.h, string.h, strings.h.
84412         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
84413         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
84414         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
84415         strchr.
84416         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
84417         headers, memory.h, string.h.
84418         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
84419         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
84420         free.
84421         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
84422         headers.
84423         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
84424         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
84425         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
84426         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
84427         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
84428
84429 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84430
84431         More K&R removal.
84432
84433         * lib/acosl.c (main): Use a prototype.
84434         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
84435         tanl.c: Likewise.
84436
84437         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
84438
84439         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
84440         (getopt, etopt_long, getopt_long_only, _getopt_internal)
84441         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
84442         with a prototype.
84443         * lib/getopt.c (const): Remove macro.
84444         Include <string.h> unconditionally.
84445         (my_index): Remove; all uses changed to strchr.
84446         (strlen): Remove decl.
84447         (exchange): Remove forward decl; no longer needed.
84448         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
84449         Define with prototype.
84450         * lib/getopt1.c (const): Remove macro.
84451         (getopt_long, getopt_long_only, main): Define with prototype.
84452
84453         * lib/getugroups.c: Include <string.h> unconditionally.
84454
84455         * lib/getusershell.c: Include <stdlib.h> unconditionally.
84456         (getusershell, setusershell, endusershell, readname, main):
84457         Define with prototypes.
84458
84459         * lib/group-member.c: Include group-member.h first.
84460         Include <stdlib.h> unconditionally.
84461
84462         * lib/hard-locale.c: Include hard-locale.h first.
84463         Include <stdlib.h>, <string.h> unconditionally.
84464
84465         * lib/hash.c (free, malloc): Remove decls.
84466         Include <stdlib.h> unconditionally.
84467
84468         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
84469         (getenv): Do not declare.
84470
84471         * lib/idcache.c: Include <string.h> unconditionally.
84472
84473         * lib/long-options.c: Include long-options.h first, to test interface.
84474         Include <stdlib.h> unconditionally.
84475
84476         * lib/makepath.c: Include makepath.h first, to test interface.
84477         Include <stdlib.h> and <string.h> unconditionally.
84478
84479         * lib/linebuffer.c: Include <stdlib.h>.
84480         (free): Remove decl.
84481
84482         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
84483         stddef.h. rpl_malloc returns void *, not char *.
84484         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
84485         prototype.
84486
84487         * lib/md5.h: Include <limits.h> unconditionally.
84488         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
84489         (__P): Remove; all uses removed.
84490         * lib/md5.c: Include "md5.h" first.
84491         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
84492         md5_buffer, md5_process_bytes, md5_process_block):
84493         Define with prototypes.
84494         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
84495         * lib/sha.c: Include "sha.h" first.
84496         Include <stdlib.h>, <string.h> unconditionally.
84497
84498         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
84499         * lib/memcmp.c (__ptr_t): Likewise.
84500         * lib/memrchr.c (__ptr_t): Likewise.
84501         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
84502         Include <string.h> unconditionally.
84503         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
84504         * lib/memchr.c: Include <stdlib.h> unconditionally.
84505         * lib/memchr.c (LONG_MAX): Remove.
84506         * lib/memrchr.c (LONG_MAX): Likewise.
84507         * lib/memchr.c (__memchr): Define via a prototype.
84508         * lib/memrchr.c (__memrchr): Likewise.
84509         * lib/memcmp.c (__P): Remove, and remove all uses.
84510         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
84511         Remove forward decls; no longer needed.
84512         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
84513         Use types required by C89 in prototype.
84514
84515         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
84516         * lib/savedir.c: Likewise.
84517         * lib/mkdir.c (free): Remove decl.
84518         * lib/rmdir.c (rmdir): Define with a prototype.
84519         * lib/savedir.c: Include savedir.h first, to test interface.
84520
84521         * lib/mktime.c (STDC_HEADERS): Remove.
84522         Include <stdlib.h>, <string.h> unconditionally.
84523
84524         * lib/modechange.c: Include <stdlib.h> unconditionally.
84525         (malloc): Remove decl.
84526
84527         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
84528         (free): Remove decl.
84529
84530         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
84531         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
84532         (This type really should be intptr_t, but that's a C99ism.)
84533         (_obstack_memcpy): Remove: all uses changed to memcpy.
84534         Include <string.h> unconditionally.
84535         (struct obstack): Assume __STDC__ for types of members
84536         chunkfun, freefun, extra_arg.
84537         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
84538         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
84539         obstack_begin, obstack_specify_allocation,
84540         obstack_specify_allocation_with_arg, obstack_chunkfun,
84541         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
84542         Remove unprototyped decls and the macros that use them.
84543         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
84544         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
84545         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
84546         (defined __STDC__ && __STDC__)]:
84547         Remove nonprototyped code.
84548         Include <stdlib.h> unconditionally.
84549         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
84550         _obstack_allocated_p, _obstack_free, obstack_free,
84551         _obstack_memory_used, print_and_abort):
84552         Define using prototypes.
84553         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
84554         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
84555         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
84556         obstack_next_free, obstack_object_size, obstack_room) [0]:
84557         Remove unused, unprototyped code.
84558
84559         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
84560
84561         * lib/physmem.c (physmem_total, physmem_available, main): Define
84562         with prototypes.
84563
84564         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
84565         (main): Define with a prototype.
84566
84567         * lib/posixver.c (getenv): Remove decl.
84568
84569         * lib/putenv.c (malloc): Returns void *, not char *.
84570         Include <string.h> unconditionally.
84571         (strchr, memcpy, NULL): Do not define.
84572
84573         * lib/readtokens.c: Include readtokens.h first, to test interface.
84574         Include <stdlib.h>, <string.h> unconditionally.
84575         (init_tokenbuffer): Define with a prototype.
84576
84577         * lib/regex.c (PARAMS): Remove.  All uses removed.
84578         All uses of _RE_ARGS removed, too.
84579         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84580         unconditionally.
84581         (bzero): Assume memset exists.
84582         (memcmp, memcpy, NULL): Remove.
84583         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
84584         char, or assignments to local vars of type signed char.
84585         (init_syntax_once, PREFIX(extract_number_and_incr),
84586         PREFIX(print_partial_compiled_pattern),
84587         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
84588         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
84589         PREFIX(regex_grow_registers), PREFIX(regex_compile),
84590         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
84591         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
84592         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
84593         wcs_compile_range, byte_compile_range, truncate_wchar,
84594         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
84595         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
84596         count_mbs_length, wcs_re_match_2_internal,
84597         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
84598         PREFIX(alt_match_null_string_p),
84599         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
84600         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
84601         regfree, PREFIX(extract_number)): Define with prototype.  Remove
84602         now-unnecessary declaration, if any.
84603         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
84604         regcomp, regexec):
84605         Remove now-unnecessary casts among pointer types.
84606         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
84607
84608         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
84609         (free): Remove decl.
84610
84611         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
84612
84613         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
84614         (free): Remove decl.
84615
84616         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
84617         * lib/xgetcwd.c: Likewise.
84618
84619         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
84620         (free): Remove decl.
84621
84622         * lib/strchrnul.c (strchrnul): Define with a prototype.
84623         Fix bug: c_in was not converted to char before searching.
84624
84625         The following changes are not K&R related:
84626
84627         * lib/group-member.h: Include <sys/types.h>, so that this file is
84628         self-contained.
84629         * lib/makepath.h: Likewise.
84630
84631         * lib/getusershell.c (readname, default_index, line_size, readname):
84632         Use size_t, not int, for sizes.
84633         (readname): If the size overflows, report an error instead of
84634         looping forever.
84635
84636 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84637
84638         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
84639         libc.
84640
84641 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84642
84643         * README: New section: portability guidelines.
84644
84645 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
84646
84647         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
84648         C89 spec.
84649
84650 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
84651
84652         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
84653
84654 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84655
84656         Assume C89 or better; remove K&R cruft.
84657         A few of these changes were first proposed by Derek Robert Price
84658         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
84659
84660         * lib/addext.c: Include <string.h> unconditionally.
84661         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
84662         Don't declare getenv or malloc.
84663
84664         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
84665         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
84666         (NULL): Remove.
84667         (find_stack_direction, alloca): Use prototypes.
84668
84669         * lib/atexit.c (atexit): Define using a prototype.
84670
84671         * lib/basename.c, dirname.c, stripslash.c:
84672         Include <string.h> unconditionally.
84673
84674         * lib/bcopy.c: Include <stddef.h>.
84675         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
84676
84677         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
84678
84679         * lib/error.h (error, error_at_line, error_print_progname)
84680         [! (defined (__STDC__) && __STDC__)]: Remove decls.
84681         * lib/error.c: Include error.h first, to check interface.
84682         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
84683         (VA_START): Remove; all uses changeed to va_start.
84684         (exit, strerror): Remove decls.
84685         (error_print_progname): Prototype uncondionally.
84686         Don't include <errno.h>; no longer needed.
84687         (private_strerror): Remove.
84688         (error_tail): Always define.
84689         (error, error_at_line): Assume C89 or better; always use prototypes.
84690         * lib/fatal.c: Include "fatal.h" first, to test interface.
84691         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
84692         (VA_START): Remove; all uses changed to va_start.
84693         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
84694         this case.
84695         (exit): Remove decl.
84696         (fatal): Prototype unconditionally.  Assume va_start works.
84697         Abort at end, to pacify gcc.
84698
84699         * lib/euidaccess.c (main): Define with a prototype.
84700
84701         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
84702
84703         * lib/exitfail.c: Include <stdlib.h> unconditionally.
84704
84705         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
84706         prototypes.
84707         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
84708         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
84709         (getenv): Remove decl.
84710         (fnmatch): Define using a prototype.
84711         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
84712         (FCT): Define using a prototype.
84713
84714         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
84715
84716         * lib/gethostname.c: Include <stddef.h>.
84717         (gethostname): Define with prototype.  Length is size_t, not int.
84718
84719 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84720
84721         Assume C89 or better; remove K&R cruft.
84722         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
84723         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
84724         string.h, getenv, malloc.
84725         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
84726         headers.
84727         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
84728         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
84729         do not check for strerror.
84730         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
84731         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
84732         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
84733         do not check for doprnt or vprintf.
84734         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
84735         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
84736
84737 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84738
84739         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
84740         getversion.c should have been removed then, but was accidentally
84741         preserved.
84742
84743         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
84744         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
84745
84746 2003-09-08  Karl Berry  <karl@gnu.org>
84747
84748         * config/config.sub, config.guess, srclistvars.sh: update from savannah
84749                 config, forget about prep.
84750
84751         * config/depcomp, missing: update from automake.
84752
84753 2003-09-07  Paul Eggert  <eggert@twinsun.com>
84754
84755         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
84756         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
84757
84758 2003-09-07  Paul Eggert  <eggert@twinsun.com>
84759
84760         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
84761         copy_tm_result.  Bug reported by Simon Josefsson in
84762         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
84763
84764 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84765
84766         * m4/time_r.m4: New file.
84767         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
84768         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
84769         is. Check for timegm declaration.
84770         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
84771         Do not check for gmtime_r.
84772         Replace mktime if __mktime_internal does not exist and if mktime
84773         hasn't been replaced already.
84774
84775 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84776
84777         * lib/time_r.c, lib/time_r.h: New files.
84778
84779         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
84780         __localtime_r.
84781         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
84782         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
84783
84784         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
84785         __gmtime_r.
84786         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
84787         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
84788         Include <time_r.h>.
84789
84790         * lib/timegm.c: Switch to glibc implementation, with the following
84791         changes:
84792         [defined HAVE_CONFIG_H]: Include <config.h>.
84793         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
84794         (__mktime_internal) [!defined _LIBC]: New decl.
84795         (__gmtime_r) [!defined _LIBC]: New macro and function.
84796         (timegm): Use a prototype, since gnulib assumes C89.
84797         Do not bother declaring tmp to be const, as it's not really usefu.
84798         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
84799         (timegm): Declare only if HAVE_DECL_TIMEGM.
84800
84801 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84802
84803         * MODULES.html.sh (func_all_modules): Add time_r.
84804         * modules/time_r: New file.
84805         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
84806         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
84807
84808 2003-09-03  Paul Eggert  <eggert@twinsun.com>
84809
84810         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
84811         Bug reported by Lute Kamstra in
84812         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
84813
84814         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
84815         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
84816         course with correspondingly smaller numbers for tomorrow and
84817         yesterday.  From Tadayoshi Funaba.  Originally installed into
84818         sh-utils on 1999-08-07, but the patch got lost (I guess during the
84819         coreutils merge?).
84820
84821 2003-08-31  Simon Josefsson  <jas@extundo.com>
84822
84823         * modules/timegm: New file.
84824         * MODULES.html.sh (func_all_modules): Add timegm.
84825
84826 2003-08-31  Simon Josefsson  <jas@extundo.com>
84827
84828         * m4/timegm.m4: New file.
84829
84830 2003-08-31  Simon Josefsson  <jas@extundo.com>
84831
84832         * lib/timegm.h: New file.
84833         * lib/timegm.c: New file.  Based on
84834         wget-1.8.2/src/http.c:mktime_from_utc.
84835
84836 2003-08-31  Karl Berry  <karl@gnu.org>
84837
84838         * lib/argp.h: update from libc.
84839
84840 2003-08-28  Bruno Haible  <bruno@clisp.org>
84841
84842         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
84843         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
84844         followed by '#define fnmatch fnmatch_posix' gives an error.
84845
84846 2003-08-28  Bruno Haible  <bruno@clisp.org>
84847
84848         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
84849         warning on QNX, which defines O_BINARY to 000000.
84850
84851 2003-08-27  Jim Meyering  <jim@meyering.net>
84852
84853         * m4/mkstemp.m4: Require that the system mkstemp be able to create
84854         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
84855         would fail after 32.  Reported by Danny Levinson.  Details here:
84856         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
84857
84858 2003-08-24  Bruno Haible  <bruno@clisp.org>
84859
84860         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
84861         MSVC7 <stdio.h> is included later.
84862
84863 2003-08-22  Simon Josefsson  <jas@extundo.com>
84864
84865         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
84866
84867 2003-08-20  Karl Berry  <karl@gnu.org>
84868
84869         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
84870
84871 2003-08-20  Bruno Haible  <bruno@clisp.org>
84872
84873         * modules/progname: New file.
84874         * MODULES.html.sh (func_all_modules): Add progname.
84875
84876 2003-08-20  Bruno Haible  <bruno@clisp.org>
84877
84878         * lib/progname.h: New file, from GNU gettext.
84879         * lib/progname.c: New file, from GNU gettext.
84880         * lib/progreloc.c: New file, from GNU gettext.
84881
84882 2003-08-19  Jim Meyering  <jim@meyering.net>
84883
84884         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
84885         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
84886
84887 2003-08-19  Bruno Haible  <bruno@clisp.org>
84888
84889         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
84890         more.
84891
84892 2003-08-19  Bruno Haible  <bruno@clisp.org>
84893
84894         * lib/xstrdup.c: Assume <string.h> exists.
84895
84896 2003-08-18  Paul Eggert  <eggert@twinsun.com>
84897
84898         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
84899         in makefile rules.
84900
84901 2003-08-18  Jim Meyering  <jim@meyering.net>
84902
84903         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
84904         * m4/lib-ld.m4: Likewise.
84905
84906 2003-08-18  Jim Meyering  <jim@meyering.net>
84907
84908         * lib/setenv.h: Indent nested cpp directive.
84909         * lib/vasnprintf.c: Remove trailing blanks.
84910
84911 2003-08-17  Simon Josefsson  <jas@extundo.com>
84912
84913         * modules/xstrndup: New file.
84914         * MODULES.html.sh (func_all_modules): Add xstrndup.
84915
84916 2003-08-17  Simon Josefsson  <jas@extundo.com>
84917
84918         * modules/argp: Fix autoconf macro name. Add more dependencies.
84919
84920 2003-08-17  Simon Josefsson  <jas@extundo.com>
84921
84922         * m4/xstrndup.m4: New file.
84923
84924 2003-08-17  Simon Josefsson  <jas@extundo.com>
84925
84926         * m4/argp.m4: New file.
84927
84928 2003-08-17  Simon Josefsson  <jas@extundo.com>
84929             Bruno Haible  <bruno@clisp.org>
84930
84931         * lib/xstrndup.h: New file.
84932         * lib/xstrndup.c: New file.
84933
84934 2003-08-17  Bruno Haible  <bruno@clisp.org>
84935
84936         * modules/strndup (Files, Include): Add lib/strndup.h.
84937
84938 2003-08-17  Bruno Haible  <bruno@clisp.org>
84939
84940         * modules/euidaccess (Files): Add lib/euidaccess.h.
84941
84942 2003-08-17  Bruno Haible  <bruno@clisp.org>
84943
84944         * lib/strndup.h: New file.
84945
84946 2003-08-17  Bruno Haible  <bruno@clisp.org>
84947
84948         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
84949         like AC_GNU_SOURCE.
84950         * modules/extensions (configure.ac): Comment out the invocation of
84951         gl_USE_SYSTEM_EXTENSIONS.
84952
84953 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84954
84955         Merges from coreutils, etc.
84956         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
84957         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
84958         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
84959         fixing a typo.
84960         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
84961         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
84962
84963 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84964
84965         Document merge from coreutils.
84966         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
84967         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
84968         * modules/utime: Add m4/utimes-null.m4.
84969
84970 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84971
84972         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
84973         space, undoing this 2003-08-12 change:
84974         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
84975
84976 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84977
84978         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
84979         strtoul.c from libc, undoing this 2003-08-12 change:
84980         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
84981
84982 2003-08-16  Jim Meyering  <jim@meyering.net>
84983
84984         Merges from coreutils.
84985         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
84986         prefix.  Adjust cache variables similarly.  Create 500 rather than
84987         just 300 files, to exercise bug on Darwin6.5, too.
84988         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
84989         $missing_dir.
84990         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
84991         AM_SYS_POSIX_TERMIOS.
84992         Reported by mkc@mathdogs.com.
84993         Also change use of $am_cv_sys_posix_termios
84994         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
84995         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
84996         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
84997         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
84998         in /proc/mounts until it finds one with matching device number.  This
84999         is unnecessary when the FILE argument *is* a mount point.  No stat call
85000         is necessary in that case.  So, disable the statvfs-testing code on
85001         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
85002         as RedHat bug# 84846.
85003         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
85004         to 1MB, so as not to render systems with no stack size limit (e.g.,
85005         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
85006         Include <unistd.h>.  On some systems,
85007         it is required for the definition of _SC_PAGESIZE.
85008
85009 2003-08-16  Jim Meyering  <jim@meyering.net>
85010
85011         Merge from coreutils.
85012         * lib/xstrtoimax.c: #else #if -> #elif.
85013         * lib/xstrtoumax.c: Likewise.
85014
85015 2003-08-16  Jim Meyering  <jim@meyering.net>
85016
85017         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
85018         * m4/utimes.m4: Removed.
85019         * m4/utimes-null.m4: Renamed from utimes.m4.
85020
85021         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
85022         to 1MB, so as not to render systems with no stack size limit (e.g.,
85023         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
85024         Include <unistd.h>.  On some systems,
85025         it is required for the definition of _SC_PAGESIZE.
85026
85027 2003-08-16  Jim Meyering  <jim@meyering.net>
85028         and Paul Eggert  <eggert@cs.ucla.edu>
85029
85030         Merges from coreutils, etc.
85031
85032         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
85033         using the latest version from cvs.  This avoids problems with #line
85034         directives using a vendor (Sun) compiler.
85035         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
85036         Don't set GETGROUPS_LIB here; now it's
85037         done via getgroups.m4's wrapper function.
85038         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
85039         rather than just in sh-util/configure.in, so that the
85040         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
85041         same.
85042         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
85043         AC_FUNC_GETLOADAVG where to find getloadavg.c.
85044         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
85045         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
85046         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
85047         Remove code that is now done by the newly-required macros.
85048         Append $(EXEEXT) to DF_PROG.
85049         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
85050         Do not invoke or require the following here,
85051         since prereq.m4 or some gnulib .m4 now does this for us:
85052         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
85053         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
85054         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
85055         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
85056         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
85057         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
85058         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
85059         AC_FUNC_OBSTACK.
85060         Do not replace the following functions, as this is now the job
85061         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
85062         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
85063         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
85064         atexit getpass, strdup, getpagesize.
85065         Replace 'raise'.
85066         Do not check for the following functions, as this is now the job
85067         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
85068         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
85069         setregid.
85070         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
85071         Check for sys/sysctl.h.
85072         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
85073         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
85074         of checking for ssize_t ourselves.
85075
85076         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
85077         Require every macro that gnulib/modules/* suggests for us.
85078         (jm_PREREQ_ADDEXT): New macro.
85079         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
85080         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
85081
85082         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
85083         (gl_PHYSMEM): Use it.
85084         Also check for `table' function.
85085         Check for new headers and functions.
85086         Add check for sys/sysmp.h.
85087         With suggestions from Kaveh Ghazi.
85088         Ignore headers that are present but cannot be compiled.  This
85089         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
85090         C 5.4.
85091
85092 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85093
85094         Document merge from coreutils.
85095         * modules/userspec: Depend on posixver.
85096         * modules/strftime: Depend on tzset.
85097
85098 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85099
85100         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
85101         rather than tab, after '#' in shell-script copyright notices.
85102         Suggested by Bruno Haible.
85103
85104 2003-08-15  Paul Eggert  <eggert@twinsun.com>
85105
85106         * config/srclist-update: Use three spaces, rather than tab, after '#'
85107         in shell-script copyright notices.  Suggested by Bruno Haible.
85108         Remove unnecessary parenthesization in regular expression.
85109
85110 2003-08-15  Jim Meyering  <jim@meyering.net>
85111
85112         Merge from coreutils.
85113         * lib/xgethostname.c: Include <stdlib.h>.
85114         (xghostname): Don't exit for anything other than memory-related
85115         failure; just return NULL.
85116         * lib/userspec.c: Include "posixver.h".
85117         (parse_user_spec): Accept `.' as a separator only
85118         in pre-POSIX-200112 mode.
85119         * lib/strtoimax.c: Use #elif rather than #else #if.
85120         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
85121         Remove function, now that we can rely on a working tzset function.
85122         [!_LIBC]: Ensure that the required autoconf test has been run.
85123         [!defined _NL_CURRENT && HAVE_STRFTIME]:
85124         Use underlying_strftime for %r.
85125         * lib/sha.c: Merge in some clean-up and optimization changes from
85126         glibc.
85127         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
85128         Ensure that it is a multiple of 64.
85129         Rearrange loop exit tests so as to avoid performing an
85130         additional fread after encountering an error or EOF.
85131         * lib/realloc.c: Update copyright date.
85132
85133 2003-08-15  Jim Meyering  <jim@meyering.net>
85134         and Paul Eggert  <eggert@twinsun.com>
85135
85136         Merge from coreutils.
85137         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
85138         member but strut utmpx does not.  Needed for AIX 4.3.3.
85139         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
85140
85141 2003-08-15  Jim Meyering  <jim@meyering.net>
85142         and Paul Eggert  <eggert@cs.ucla.edu>
85143
85144         Merges from coreutils, etc.
85145         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
85146         Require gl_FUNC_TZSET_CLOBBER.
85147         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
85148         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
85149         members.
85150
85151 2003-08-14  Paul Eggert  <eggert@twinsun.com>
85152
85153         Help the merge from coreutils.
85154         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
85155         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
85156         * m4/tzset.m4: Use it too.
85157
85158 2003-08-14  Paul Eggert  <eggert@twinsun.com>
85159
85160         * modules/tzset: New file.
85161
85162 2003-08-14  Jim Meyering  <jim@meyering.net>
85163
85164         Merges from coreutils.
85165         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
85166         variable names, rather than @FNMATCH_H@.
85167         * modules/alloca: Likewise for $(ALLOCA_H).
85168
85169         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
85170         the three copies of the literal target, `fnmatch.h'.
85171         * modules/alloca (alloca.h): Likewise.
85172
85173 2003-08-14  Jim Meyering  <jim@meyering.net>
85174
85175         Merge from coreutils.
85176         * m4/tzset.m4: New file.
85177         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
85178         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
85179         otherwise, AIX 5.1 systems would end up using the latter.
85180         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
85181         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
85182         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
85183         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
85184
85185 2003-08-14  Jim Meyering  <jim@meyering.net>
85186
85187         Merge from coreutils.
85188         * lib/obstack.h: Whitespace changes.
85189         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
85190         and xcalloc return values.
85191         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
85192         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
85193         hang on OSF/1 5.1 for DIR on both local and remote file systems.
85194         Reported by (and fix confirmed by) Nelson H. F. Beebe.
85195         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
85196         error from mntctl.
85197         Use mntctl's return value to drive the entry-processing loop, since
85198         we can't rely on the value of the vmt_length member in the last
85199         entry.  On some systems doing so could result in exhausting
85200         virtual memory.  Based in part on a patch from Mike Jetzer.
85201
85202 2003-08-14  Jim Meyering  <jim@meyering.net>
85203         and Paul Eggert  <eggert@twinsun.com>
85204
85205         Merges from coreutils, plus other fixes.
85206         * lib/physmem.c: Merge in portability changes from gcc/libiberty
85207         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
85208         for credits and details.  Thanks to Kaveh Ghazi for helping
85209         to keep these files in sync.
85210         (ARRAY_SIZE): Define it.
85211         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
85212         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
85213         (memcasecmp): Don't assume size_t fits in unsigned int.
85214         Remove casts and duplicate code.
85215         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
85216         (memcpy): Remove definition.
85217         Merge in some clean-up and optimization changes from glibc.
85218         [BLOCKSIZE]: Move definition to top of file.
85219         Ensure that it is a multiple of 64.
85220         Rearrange loop exit tests so as to avoid performing an
85221         additional fread after encountering an error or EOF.
85222         * lib/md5.h (md5_uintptr): Define.
85223         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
85224         return to the initial working directory.  Preserve errno
85225         for caller.
85226         * lib/idcache.c: Include "xalloc.h".
85227         (xmalloc, xrealloc): Remove decls.
85228         (getuser): Remove casts no longer required in C89.
85229         * lib/human.c: Include stdio.h, for sprintf.
85230         * lib/group-member.c: Include "xalloc.h".
85231         (xmalloc, xrealloc): Remove decls.
85232         (get_group_info): Remove casts no longer required in C89.
85233         * lib/getusershell.c (readname): Remove casts no longer required in
85234         C89.
85235         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
85236         * lib/getline.c: Whitespace fix, from coreutils.
85237
85238 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85239
85240         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
85241         Check for isascii.
85242
85243         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
85244         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
85245         Undo previous (whitespace-only) change.
85246
85247 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85248
85249         * lib/exclude.c: Include <ctype.h>
85250         (IN_CTYPE_DOMAIN): New macro.
85251         (is_space): New fn.
85252         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
85253         and empty lines.
85254
85255         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
85256         Undo previous (whitespace-only) change.
85257
85258 2003-08-13  Paul Eggert  <eggert@twinsun.com>
85259
85260         * config/srclist-update: Change update back to the old behavior,
85261         leaving whitespace alone.  Use one 'sed' command rather than a
85262         pipeline.
85263         (fixlicense): Now a variable, not a function.
85264         (remove_trailing_blanks): Remove.
85265         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
85266         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
85267         Undo previous (whitespace-only) change.
85268
85269 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85270
85271         Merge from coreutils.
85272         * modules/euidaccess: Add lib_SOURCES, include for new
85273         file euidaccess.h
85274
85275 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85276
85277         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
85278         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
85279         Normalize leading white space and remove trailing white space.
85280
85281         Merge from coreutils
85282         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
85283
85284         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
85285         0.12.1.  These files are now being upgraded automatically by
85286         ../config/srclist-update.
85287
85288 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85289
85290         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
85291         Normalize leading white space and remove trailing white space.
85292         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
85293         notice, as per ../config/srclist-update.
85294
85295         Merge from coreutils.
85296         * lib/euidaccess.h: New file.
85297         * lib/euidaccess.c: Include it.
85298         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
85299         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
85300         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
85301
85302 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85303
85304         * config/srclist-update: Add copyright notice.
85305         (remove_id_lines, remove_trailing_blanks): New constants.
85306         (fixfile): Use them to normalize spacing a bit in copied files.
85307         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
85308         Normalize leading white space and remove trailing white space.
85309
85310         * config/texinfo.tex: Sync with texinfo.
85311
85312         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
85313         strtoul.c from libc, to merge coreutils whitespace changes.
85314
85315         * config/srclist.txt: Get the following m4 files from gettext:
85316         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
85317         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
85318         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
85319         wint_t.m4.
85320
85321 2003-08-12  Karl Berry  <karl@gnu.org>
85322
85323         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
85324         been made.
85325
85326 2003-08-11  Paul Eggert  <eggert@twinsun.com>
85327
85328         * modules/gnu-source, m4/gnu-source.m4:
85329         Remove; we're assuming Autoconf 2.54 or later now.
85330         Suggested by Bruno Haible.
85331         * MODULES.html.sh (func_all_modules): Remove gnu-source.
85332
85333 2003-08-11  Bruno Haible  <bruno@clisp.org>
85334
85335         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
85336
85337 2003-08-11  Bruno Haible  <bruno@clisp.org>
85338
85339         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
85340         (vasnprintf): Use it instead of wcslen.
85341
85342 2003-08-11  Bruno Haible  <bruno@clisp.org>
85343
85344         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
85345         value to ensure that _Bool promotes to int. Use #define for _Bool when
85346         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
85347
85348 2003-08-10  Karl Berry  <karl@gnu.org>
85349
85350         * lib/regex.h: update from libc (whitespace fix).
85351
85352 2003-08-09  Paul Eggert  <eggert@twinsun.com>
85353
85354         Merge some files from coreutils.  These changes were
85355         originally made by Jim Meyering.
85356         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
85357         many older Unixes require this.
85358         * lib/alloca.c (alloca): Remove cast to argument of free;
85359         no longer needed in C89.
85360         * lib/alloca_.h, regex.h: Fix white space to match
85361         what GNU indent does.
85362
85363 2003-08-09  Paul Eggert  <eggert@twinsun.com>
85364
85365         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
85366         apparently Emacs's Unicode mode got confused before my 2003-08-05
85367         checkin.
85368
85369 2003-08-08  Paul Eggert  <eggert@twinsun.com>
85370
85371         * m4/extensions.m4: New file.
85372         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
85373         Require gl_USE_SYSTEM_EXTENSIONS.
85374         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
85375         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
85376
85377 2003-08-08  Paul Eggert  <eggert@twinsun.com>
85378
85379         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
85380         * modules/extensions, modules/gnu-source: New files.
85381         * modules/timespec, modules/unlocked-io: Depend on extensions.
85382
85383 2003-08-07  Paul Eggert  <eggert@twinsun.com>
85384
85385         * modules/restrict: New file.
85386         * MODULES.html.sh (func_all_modules): Add restrict.
85387         * modules/regex: Depend on restrict.
85388
85389 2003-08-07  Paul Eggert  <eggert@twinsun.com>
85390
85391         * m4/restrict.m4: New file.
85392         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
85393
85394 2003-08-07  Bruno Haible  <bruno@clisp.org>
85395
85396         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
85397         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
85398
85399 2003-08-07  Bruno Haible  <bruno@clisp.org>
85400
85401         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
85402         makes the module 'getndelim2' compatible with the module 'getline'.
85403
85404 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85405
85406         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
85407         byte with "\201" to avoid glitches when editing that source file
85408         with multi-gnome-terminal.
85409
85410 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85411
85412         * lib/bumpalloc.h: Remove.
85413
85414 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85415
85416         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
85417         * modules/bumpalloc: Remove.
85418
85419 2003-08-04  Paul Eggert  <eggert@twinsun.com>
85420
85421         * lib/getloadavg.c: Change copyright notice and spacing to conform to
85422         GNU coding style.
85423
85424         Merge from coreutils.
85425         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
85426         1. From glibc.
85427         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
85428         from Karl Berry, implemented by Jim Meyering.
85429         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
85430         from Dmitry V. Levin.
85431         Remove anachronistic cast of xrealloc.
85432         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
85433         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
85434         type. Otherwise, it wouldn't compile with at least /bin/cc on
85435         ymp-cray-unicos9.0.2.X.
85436         Combine two mostly-identical uses of alloca into one.
85437         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
85438
85439 2003-08-04  Dave Love  <d.love@dl.ac.uk>
85440
85441         [From Emacs.]
85442
85443         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
85444         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
85445         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
85446         obsolete NLIST_NAME_UNION.
85447         [__GNU__]: Undef BSD and FSCALE.
85448         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
85449
85450 2003-08-03  Paul Eggert  <eggert@twinsun.com>
85451
85452         * lib/stdbool_.h (_Bool): Make it signed char, instead of
85453         an enum type, so that it's guaranteed to promote to int.  See:
85454         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
85455
85456 2003-08-03  Karl Berry  <karl@gnu.org>
85457
85458         * config/depcomp: update from automake.
85459
85460 2003-07-31  Paul Eggert  <eggert@twinsun.com>
85461
85462         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
85463         (strerror): Don't assume that a printable int fits in 14 bytes.
85464
85465 2003-07-31  Bruno Haible  <bruno@clisp.org>
85466
85467         * modules/getpass-gnu: New file.
85468         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
85469
85470 2003-07-31  Bruno Haible  <bruno@clisp.org>
85471
85472         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
85473
85474 2003-07-24  Karl Berry  <karl@gnu.org>
85475
85476         * config/missing: update from automake.
85477
85478 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
85479             Bruno Haible  <bruno@clisp.org>
85480
85481         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
85482         * lib/getline.c (getline, getdelim): Likewise.
85483         Remove _GNU_SOURCE define; now it's defined in config.h through
85484         m4/getline.m4.
85485
85486 2003-07-23  Karl Berry  <karl@gnu.org>
85487
85488         * config/config.sub: update from prep.
85489
85490 2003-07-22  Paul Eggert  <eggert@twinsun.com>
85491
85492         * modules/xalloc (Depends-on): Add exitfail.
85493         * modules/xmemcoll: Likewise.
85494
85495 2003-07-22  Paul Eggert  <eggert@twinsun.com>
85496
85497         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
85498         over-parenthesization in macros.
85499
85500         Sync with coreutils.
85501
85502         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
85503         required by C99.
85504
85505         Use `exit_failure' for xalloc and xmemcoll instead of their own
85506         private exit-failure variables.
85507         * lib/xalloc.h (xalloc_exit_failure): Remove.
85508         * lib/xmalloc.c: Likewise.  Include exitfail.h.
85509         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
85510         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
85511         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
85512         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
85513
85514 2003-07-20  Jim Meyering  <jim@meyering.net>
85515
85516         * modules/closeout (Depends-on): Add exitfail.
85517         Suggestion from Bruno Haible.
85518
85519 2003-07-19  Karl Berry  <karl@gnu.org>
85520
85521         * config/config.sub: update from prep.
85522
85523 2003-07-18  Paul Eggert  <eggert@twinsun.com>
85524
85525         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
85526         Remove.
85527         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
85528         to test that it can stand by itself.  Include "exitfail.h".
85529         Clients should set exit_failure instead.
85530         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
85531
85532 2003-07-18  Bruno Haible  <bruno@clisp.org>
85533
85534         * modules/getndelim2: New file.
85535         * modules/getline: Share files with module getndelim2.
85536         * modules/getnline: Depend on getndelim2 instead of sharing files with
85537         it. Add getnline.c to lib_SOURCES.
85538         * MODULES.html.sh (func_all_modules): Add getndelim2.
85539
85540 2003-07-18  Bruno Haible  <bruno@clisp.org>
85541
85542         * m4/getndelim2.m4: New file.
85543         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
85544         invoke gl_PREREQ_GETNDELIM2.
85545         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
85546         gl_PREREQ_GETNDELIM2.
85547         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
85548         gl_GETNDELIM2.
85549
85550 2003-07-18  Bruno Haible  <bruno@clisp.org>
85551
85552         * lib/getndelim2.h: New file.
85553         * lib/getndelim2.c: Make into a module of its own. Include config.h,
85554         getndelim2.h.
85555         (getndelim2): Make non-static. Change return type to ssize_t.
85556         * lib/getline.h: Change argument names.
85557         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
85558         * lib/getnline.c: Include getndelim2.h.
85559
85560 2003-07-18  Andreas Schwab  <schwab@suse.de>
85561
85562         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
85563
85564 2003-07-17  Karl Berry  <karl@gnu.org>
85565
85566         * config/config.sub: update from prep.
85567
85568 2003-07-17  Bruno Haible  <bruno@clisp.org>
85569
85570         * modules/getnline: New file.
85571         * modules/getline: Add lib/getndelim2.c to source file list.
85572         * MODULES.html.sh (func_all_modules): Add getnline.
85573
85574 2003-07-17  Bruno Haible  <bruno@clisp.org>
85575
85576         * m4/getnline.m4: New file.
85577
85578 2003-07-17  Bruno Haible  <bruno@clisp.org>
85579
85580         * m4/Makefile.am.in: Remove file.
85581         * m4/Makefile.am: Remove file.
85582         * m4/Makefile.in: Remove file.
85583
85584 2003-07-17  Bruno Haible  <bruno@clisp.org>
85585
85586         * lib/getnline.h: New file.
85587         * lib/getnline.c: New file.
85588         * lib/getndelim2.c: New file, extracted from getline.c.
85589         (getndelim2): Renamed from getdelim2, with added nmax argument.
85590         * lib/getline.c: Include getndelim2.c.
85591         (getdelim2): Moved out to getndelim2.c.
85592         (getline, getdelim): Update.
85593
85594 2003-07-17  Bruno Haible  <bruno@clisp.org>
85595
85596         * lib/Makefile.am: Remove file.
85597         * lib/Makefile.in: Remove file.
85598
85599 2003-07-17  Bruno Haible  <bruno@clisp.org>
85600
85601         * configure.in: Remove file.
85602         * Makefile.in: Remove file.
85603
85604 2003-07-17  Bruno Haible  <bruno@clisp.org>
85605
85606         * MODULES.html.sh: Put the </BODY> right before </HTML>.
85607
85608 2003-07-16  Karl Berry  <karl@gnu.org>
85609
85610         * config/srclist-update: was running fixlicense twice, which caused
85611                 texinfo.tex to be nullified for some reason.  Simplify,
85612                 $gplsrc is no longer needed as far as I can see?
85613
85614 2003-07-16  Jim Meyering  <jim@meyering.net>
85615
85616         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
85617
85618 2003-07-15  Paul Eggert  <eggert@twinsun.com>
85619
85620         * config/srclist.txt: Get the following files from gettext-runtime/intl
85621         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
85622         ref-del.sin.  From Bruno Haible.
85623         * config/srclist-update (fixfile): Change grep pattern again, since the
85624         previous fix didn't work (there was another trailing $).  Use
85625         '[$]' to escape the $s.
85626
85627 2003-07-15  Karl Berry  <karl@gnu.org>
85628
85629         * lib/vasnprintf.c: update from gettext.
85630
85631 2003-07-15  Karl Berry  <karl@gnu.org>
85632
85633         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
85634         gets expanded when surrounded by '$'.
85635
85636 2003-07-15  Jim Meyering  <jim@meyering.net>
85637
85638         * modules/save-cwd: Don't depend on error.  From Derek Price.
85639
85640 2003-07-15  Jim Meyering  <jim@meyering.net>
85641
85642         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
85643
85644 2003-07-14  Simon Josefsson  <jas@extundo.com>
85645
85646         * modules/mempcpy: New file.
85647         * MODULES.html.sh (func_all_modules): Add mempcpy.
85648
85649 2003-07-14  Simon Josefsson  <jas@extundo.com>
85650
85651         * m4/mempcpy.m4: New file.
85652
85653 2003-07-14  Simon Josefsson  <jas@extundo.com>
85654
85655         * lib/mempcpy.h: New file.
85656         * lib/mempcpy.c: New file.
85657
85658 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85659
85660         * modules/getdate, modules/posixtm: Depend on mktime.
85661
85662 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85663
85664         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
85665         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
85666         unicodeio.c, unicodeio.h, unlocked-io.h:
85667         Switch from LGPL to GPL.
85668
85669 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85670
85671         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
85672         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
85673         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
85674         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
85675         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
85676         updated automatically by ../config/srclist-update.  This changes
85677         their license from LPGL to GPL.
85678
85679 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85680
85681         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
85682         assumed to refer to the root of the most recent stable gettext version.
85683         * config/srclistvars.sh: Add defaults for eggert.
85684         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
85685         Match "This program" as well as "The program".  This is needed
85686         for gettext.
85687
85688 2003-07-14  Jim Meyering  <jim@meyering.net>
85689
85690         Don't emit diagnostics.  Let callers do that.
85691         * lib/save-cwd.c: Don't include "error.h".
85692         (save_cwd): Don't call error.  Ensure that errno is valid
85693         when returning nonzero.
85694
85695         * lib/save-cwd.h (restore_cwd): Update prototype.
85696         * lib/save-cwd.c (restore_cwd): Remove two parameters.
85697         Simplify.  Don't call error upon failure.  Let callers do that.
85698         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
85699         when auditing is enabled.  But don't bother updating the #if.
85700
85701 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
85702
85703         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
85704         it breaks C++ compilation.
85705         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
85706
85707 2003-07-10  Simon Josefsson  <jas@extundo.com>
85708
85709         * modules/strchrnul (Makefile.am): Add strchrnul.h.
85710
85711 2003-07-10  Jim Meyering  <jim@meyering.net>
85712
85713         * m4/clock_time.m4: Remove trailing blank.
85714         * m4/intmax_t.m4: Likewise.
85715
85716 2003-07-10  Jim Meyering  <jim@meyering.net>
85717
85718         * lib/vasnprintf.c: Remove trailing blanks.
85719         Make cpp indentation consistent.
85720
85721 2003-07-09  Paul Eggert  <eggert@twinsun.com>
85722
85723         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
85724         posixver.c, strftime.c, strnlen.c, strverscmp.c:
85725         Switch from LGPL to GPL.
85726
85727 2003-07-09  Paul Eggert  <eggert@twinsun.com>
85728
85729         * config/srclist.txt: Sort sublists.  Add
85730         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
85731         that differ from gnulib for one reason or another; we'd like this list
85732         to be smaller but for now let's document what we have.
85733
85734 2003-07-08  Paul Eggert  <eggert@twinsun.com>
85735
85736         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
85737         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
85738         and sweeter "eval x=$x".
85739         * config/srclist.txt: Get lib/argp* from glibc.
85740
85741 2003-07-07  Paul Eggert  <eggert@twinsun.com>
85742
85743         * lib/mktime.c: Fix some boundary cases and remove need for floating
85744         point.
85745
85746         Issue a compile-time diagnostic if time_t is floating point, or if
85747         two's complement arithmetic is not in effect, or if arithmetic
85748         right shift does not propagate the sign.  These assumptions were
85749         all in the original code but they weren't checked.
85750
85751         (TIME_T_MIDPOINT, verify): New macros.
85752         (__isleap): Remove; it has integer overflow problems.
85753         (leapyear): New function, without those problems.
85754         (ydhms_tm_diff): Remove; splitting into two parts.
85755         (ydhms_diff): New function, containing the arithmetic part of
85756         the old ydhms_tm_diff function.  Issue a compile-time
85757         diagnostic if we are not using C99 integer division.
85758         Avoid casts when possible.
85759         (guess_time_tm): New function, containing the checking part of
85760         the old ydhms_tm_diff function.  Return the new value, rather than
85761         the difference between it and the old.  Accept a new argument T
85762         so that *T specifies the old value.  Check for overflow in the result.
85763
85764         (__mktime_internal): Use a time_t offset, not a long int offset.
85765         This undoes the 2003-06-04 change, which is no longer needed now
85766         that we have better overflow checking.
85767         (localtime_offset): Likewise.
85768
85769         (__mktime_internal): Avoid harmful overflow on hosts where time_t
85770         and long are 64-bit but int is only 32-bit.
85771         (ydhms_diff): Use long int to store year1 and yday1.
85772         Issue a compile-time diagnostic if long int is not wide enough.
85773
85774         (__mktime_internal): Use long int to store adjusted year and yday.
85775         Use plain C rather than preprocessor commands, if that doesn't
85776         affect efficiency.
85777         Check for overflow (and try to repair) after each probe
85778         rather than checking only at the very end.  This avoids some bugs
85779         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
85780         does not equal GMT offset at maximum time).
85781         Use integer to check for overflow rather than floating point; this
85782         is more portable to non-IEEE hosts, and is a tad faster.
85783         When we detect that we are oscillating between two values,
85784         don't check whether tm_isdst has the requested value, since
85785         we already know the answer.  When tm_isdst has the wrong value,
85786         use a different heuristic to find the right one, based on the
85787         extreme values actually observed in practice in tz2003a,
85788         rather than the (overly optimistic) "previous 3 calendar quarters".
85789
85790         (not_equal_tm, print_tm, check_result): Use "const T" rather than
85791         "T const" to accommodate glibc style.
85792         (check_result): Use less-confusing report format.  "long" -> "long int.
85793         (main): Likewise.
85794         Don't loop if the iteration overflows time_t.
85795         Allow a negative step in the iteration.
85796
85797 2003-07-06  Karl Berry  <karl@gnu.org>
85798
85799         * config/depcomp: update from automake.
85800         * config/config.sub: update from prep.
85801
85802 2003-07-03  Karl Berry  <karl@gnu.org>
85803
85804         * config/config.guess: update from prep.
85805
85806 2003-07-01  Paul Eggert  <eggert@twinsun.com>
85807
85808         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
85809         xreadlink.c now includes it unconditionally.
85810
85811 2003-07-01  Paul Eggert  <eggert@twinsun.com>
85812
85813         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
85814         having it depend on HAVE_SYS_TYPES_H.
85815
85816 2003-07-01  Bruno Haible  <bruno@clisp.org>
85817
85818         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
85819         <sys/types.h> should be sufficient.
85820         Reported by Paul Eggert.
85821
85822 2003-06-26  Karl Berry  <karl@gnu.org>
85823
85824         * config/depcomp: update from automake.
85825
85826 2003-06-26  Bruno Haible  <bruno@clisp.org>
85827
85828         * modules/human: Depend on module stdbool.
85829
85830 2003-06-25  Bruno Haible  <bruno@clisp.org>
85831
85832         * modules/readlink: New file.
85833         * modules/xreadlink: Depend on it.
85834         * MODULES.html.sh (func_all_modules): Add readlink.
85835
85836 2003-06-25  Bruno Haible  <bruno@clisp.org>
85837
85838         * m4/readlink.m4: New file.
85839
85840 2003-06-25  Bruno Haible  <bruno@clisp.org>
85841
85842         * lib/readlink.c: New file.
85843
85844 2003-06-22  Karl Berry  <karl@gnu.org>
85845
85846         * config/srclist.txt: update mkinstalldirs from automake.
85847         * config/mkinstalldirs: update.
85848
85849 2003-06-22  Bruno Haible  <bruno@clisp.org>
85850
85851         Portability to mingw32.
85852         * m4/ssize_t.m4: New file, from GNU gettext.
85853         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
85854         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
85855
85856 2003-06-22  Bruno Haible  <bruno@clisp.org>
85857
85858         * modules/safe-read: Add m4/ssize_t.m4.
85859         * modules/xreadlink: Add m4/ssize_t.m4.
85860
85861 2003-06-20  Bruno Haible  <bruno@clisp.org>
85862
85863         Assume C89, so PARAMS isn't needed.
85864         * lib/unicodeio.h (PARAMS): Remove.
85865         * lib/unicodeio.c: Don't use PARAMS.
85866
85867 2003-06-18  Karl Berry  <karl@gnu.org>
85868
85869         * config/config.{guess,sub}: update from prep.
85870
85871 2003-06-18  Jim Meyering  <jim@meyering.net>
85872
85873         Merge changes from coreutils.
85874         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
85875         Remove explicit declarations of xmalloc and realloc.
85876         Include xalloc.h.
85877         (read_utmp): Remove anachronistic cast of xmalloc.
85878
85879 2003-06-17  Paul Eggert  <eggert@twinsun.com>
85880
85881         Assume C89, so PARAMS isn't needed.
85882         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
85883         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
85884         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
85885         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
85886         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
85887         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
85888         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
85889         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
85890         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
85891         lib/xstrtod.h, lib/xstrtol.h: Likewise.
85892         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
85893         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
85894         no longer needed. Anyway, config.h should always be included before any
85895         other file.
85896
85897 2003-06-11  Simon Josefsson  <jas@extundo.com>
85898
85899         * modules/sysexits: New file.
85900         * MODULES.html.sh (func_all_modules): Add sysexits.
85901
85902 2003-06-11  Simon Josefsson  <jas@extundo.com>
85903
85904         * lib/sysexit_.h: New file.
85905
85906 2003-06-11  Derek Price  <derek@ximbiot.com>
85907
85908         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
85909         necessary.
85910
85911 2003-06-11  Bruno Haible  <bruno@clisp.org>
85912
85913         * m4/sysexits.m4: New file.
85914
85915 2003-06-10  Simon Josefsson  <jas@extundo.com>
85916
85917         * lib/argp.h: New file, from glibc.
85918         * lib/argp-ba.c: New file, from glibc.
85919         * lib/argp-eexst.c: New file, from glibc.
85920         * lib/argp-fmtstream.c: New file, from glibc.
85921         * lib/argp-fmtstream.h: New file, from glibc.
85922         * lib/argp-fs-xinl.c: New file, from glibc.
85923         * lib/argp-help.c: New file, from glibc.
85924         * lib/argp-namefrob.h: New file, from glibc.
85925         * lib/argp-parse.c: New file, from glibc.
85926         * lib/argp-pv.c: New file, from glibc.
85927         * lib/argp-pvh.c: New file, from glibc.
85928         * lib/argp-xinl.c: New file, from glibc.
85929
85930 2003-06-10  Simon Josefsson  <jas@extundo.com>
85931
85932         * modules/strchrnul: New file.
85933
85934 2003-06-10  Simon Josefsson  <jas@extundo.com>
85935
85936         * modules/argp: New file.
85937
85938 2003-06-10  Simon Josefsson  <jas@extundo.com>
85939
85940         * m4/strchrnul.m4: New file.
85941
85942 2003-06-10  Simon Josefsson  <jas@extundo.com>
85943
85944         * lib/strchrnul.h: New file.
85945         * lib/strchrnul.c: New file.
85946
85947 2003-06-10  Bruno Haible  <bruno@clisp.org>
85948
85949         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
85950
85951 2003-06-07  Karl Berry  <karl@gnu.org>
85952
85953         * config/config.{guess,sub}: update from prep.
85954
85955 2003-06-07  Jim Meyering  <jim@meyering.net>
85956
85957         * modules/strtod: Use $(...) notation, not @...@ for
85958         AC_REPLACE'd variables.
85959         * modules/localcharset: Likewise.
85960
85961 2003-06-07  Jim Meyering  <jim@meyering.net>
85962
85963         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
85964         in place of my name in the copyright comment.
85965         Remove definition and uses of __P.
85966
85967         From coreutils.
85968         * lib/stat.c: Don't declare xmalloc explicitly.
85969         Instead, include "xalloc.h".
85970         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
85971         xrealloc, and xcalloc return values.
85972         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
85973         Improve comment.
85974         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
85975
85976 2003-06-07  Bruno Haible  <bruno@clisp.org>
85977
85978         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
85979         avoid AC_CONFIG_LINKS.
85980         * modules/fnmatch (Makefile.am): Use explicit creation rule for
85981         fnmatch.h, to avoid AC_CONFIG_LINKS.
85982         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
85983
85984 2003-06-07  Bruno Haible  <bruno@clisp.org>
85985
85986         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
85987         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
85988         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
85989         directory.
85990         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
85991         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
85992         directory.
85993
85994 2003-06-06  Jim Meyering  <jim@meyering.net>
85995
85996         Merge from coreutils.
85997         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
85998         Consolidate declarations and initializations of *_base* locals.
85999
86000         Merge from coreutils.
86001         This avoids a core dump on systems without GNU putenv,
86002         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
86003         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
86004         (unsetenv): New static function, from GNU libc.
86005         (rpl_putenv): Use it.
86006
86007         * lib/modechange.c: Remove trailing blanks.
86008
86009         Merge from coreutils.
86010         * lib/fsusage.c: Remove declaration of statfs.
86011         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
86012
86013         * lib/posixtm.c: Include <stdbool.h> unconditionally.
86014
86015 2003-06-06  Jim Meyering  <jim@meyering.net>
86016
86017         * lib/stdbool_.h: Renamed from stdbool.h.in.
86018
86019 2003-06-06  Jim Meyering  <jim@meyering.net>
86020             Bruno Haible  <bruno@clisp.org>
86021
86022         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
86023         Adjust Makefile.am snippet not to redirect directly to target.
86024         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
86025
86026 2003-06-05  Paul Eggert  <eggert@twinsun.com>
86027
86028         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
86029         mismatch, look in future quarters as well as past.  This fixes a
86030         bug when processing fall-backwards gaps immediately after a long
86031         period of daylight-saving time.
86032
86033         * lib/mktime.c: Assume freestanding C89 or better.
86034         (HAVE_LIMITS_H): Remove.  Assume it's 1.
86035         (__P): Remove; not used.
86036         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
86037         (mktime, not_equal_tm, print_tm, check_result,
86038         main): Use prototypes.  Use const * where appropriate.
86039         (main): Fix typo in testing code that uncovered by above changes.
86040         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
86041
86042 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86043
86044         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
86045         locale.h, localeconv.  This merges changes from coreutils.
86046
86047         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
86048         It can be removed after the next Autoconf is released.
86049         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
86050         needed.
86051
86052 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86053
86054         * lib/mktime.c: Fix Debian bug 177940
86055         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
86056         (localtime_offset): Now long int, not time_t, because we want it
86057         to be guaranteed to be signed.  All uses changed.
86058         (__mktime_internal): If overflow would occur when adding offset,
86059         don't add it.
86060
86061         Merge 'human' changes from coreutils.  Rewrite to support
86062         locale-specific notations like thousands separators.
86063         * lib/human.c: Simplify authorship notice.
86064         Include human.h immediately after config.h.
86065         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
86066         <limits.h>: Do not include, since human.h does.
86067         (SIZE_MAX, UINTMAX_MAX): New macros.
86068         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
86069         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
86070         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
86071         (power_letter): Renamed from suffixes.
86072         (generate_suffix_backwards): Remove.
86073         (adjust_value): Now takes int style (because of human.h changes)
86074         and long double value (for greater precision on some platforms).
86075         (group_number): New function.
86076         (human_readable): Use it.  Use integer options, not enum.
86077         Put the options before the sizes in the arg list.
86078         Support all the new options.
86079         The old human_readable function has been removed;
86080         use inttostr.h instead.
86081         (human_readable, default_block_size, humblock):
86082         Use uintmax_t, not int, for block sizes.
86083         (human_readable_inexact, block_size_types): Remove.
86084         (block_size_opts): New constant.
86085         (human_options): Renamed from human_block_size, with new signature
86086         that allows block sizes up to UINTMAX_MAX.  All callers changed.
86087         * lib/human.h: Add copyright and authorship notice.
86088         Include <limits.h> and <stdbool.h> unconditionally.
86089         (PARAMS): Remove.  All uses removed.
86090         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
86091         (enum human_inexact_style): Remove tag; now a nameless enum.
86092         (human_floor, human_ceiling, human_round_to_even): Now have
86093         values 2, 0, 1 rather than -1, 1, 0.
86094         (human_group_digits, human_suppress_point_zero, human_autoscale,
86095         human_base_1024, human_SI, human_B): New constants.
86096         (human_readable_inexact, human_block_size): Remove.
86097         (human_readable): Size args are now uintmax_t, not int.
86098         (human_options): New decl.
86099
86100         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
86101         unnecessary now that we assume C89 or better.  This change
86102         imported from coreutils.
86103
86104         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
86105         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
86106         in the 2003-05-30 sync from glibc.
86107
86108         .h files should stand alone, but we shouldn't include <sys/types.h>
86109         if we can get away with just <stddef.h>.
86110
86111         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
86112         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
86113         rather than <sys/types.h>, as we merely need size_t.
86114         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
86115         to get size_t.
86116         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
86117         Include <stdio.h>, to get FILE.
86118         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
86119         memcasecmp.h has included <stddef.h> and all we need is size_t.
86120         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
86121         our interface, instead of including <sys/types.h>
86122
86123 2003-06-04  Paul Eggert  <eggert@twinsun.com>
86124
86125         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
86126         now, as glibc mktime is buggy on non-glibc systems.
86127
86128 2003-06-03  Karl Berry  <karl@gnu.org>
86129
86130         * config/config.sub: update from prep.
86131
86132 2003-06-02  Paul Eggert  <eggert@twinsun.com>
86133
86134         [from coreutils]
86135         Fix some minor time-related bugs with POSIX time arguments.
86136         Some valid time stamps were being rejected (notably -1, and
86137         time stamps before 1900 on 64-bit hosts).  And some invalid
86138         time stamps were being accepted, e.g. September 31.
86139
86140         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
86141         that we can return (time_t) -1 successfully.
86142         * lib/posixtm.c: Likewise.
86143         [HAVE_STDBOOL_H]: Include <stdbool.h>.
86144         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
86145         (t): Remove static var.
86146         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
86147         of static var.  All uses changed.
86148         (year): Do not reject years before 1900; they can occur with
86149         64-bit time_t.
86150         (posix_time_parse): Do not check for out-of-range components;
86151         that is now the caller's responsibility, since our checks were
86152         only approximations.
86153         (posixtime): Use mktime to check for out-of-range components,
86154         since it knows them exactly.
86155         If mktime returns (time_t) -1, check whether an error actually occurred
86156         by invoking localtime on -1.
86157         (main) [TEST_POSIXTIME]: Check for input data errors, and report
86158         posixtime failures better.
86159         Improve the test data (in comments only).
86160
86161 2003-06-02  Karl Berry  <karl@gnu.org>
86162
86163         * config/mkinstalldirs (version): new variable.
86164         (--version): new option.
86165         (usage): improve message.
86166
86167 2003-05-30  Karl Berry  <karl@gnu.org>
86168
86169         * lib/mktime.c: update from libc.
86170
86171 2003-05-30  Bruno Haible  <bruno@clisp.org>
86172
86173         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
86174         * config/config.rpath: Upgrade to gettext-0.12.1.
86175
86176 2003-05-30  Bruno Haible  <bruno@clisp.org>
86177
86178         * m4/gettext.m4: Upgrade to gettext-0.12.1.
86179         * m4/nls.m4: New file, from gettext-0.12.1.
86180         * m4/po.m4: New file, from gettext-0.12.1.
86181         * m4/progtest.m4: Upgrade to gettext-0.12.1.
86182
86183 2003-05-30  Bruno Haible  <bruno@clisp.org>
86184
86185         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
86186         * lib/localcharset.h: Likewise.
86187         * lib/localcharset.c: Likewise.
86188
86189 2003-05-29  Karl Berry  <karl@gnu.org>
86190
86191         * config/config.rpath: update from gettext.
86192
86193 2003-05-28  Paul Eggert  <eggert@twinsun.com>
86194
86195         Assume the headers required for C89 freestanding compilers.
86196         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
86197         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
86198         * m4/human.m4 (gl_HUMAN): Likewise.
86199         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
86200         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
86201         * m4/userspec.m4 (gl_USERSPEC): Likewise.
86202         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
86203         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
86204         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
86205
86206 2003-05-28  Paul Eggert  <eggert@twinsun.com>
86207
86208         Assume the headers required for C89 freestanding compilers.
86209         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
86210         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
86211         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
86212         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
86213         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
86214         define, since <limits.h> is guaranteed to do that.
86215         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
86216         * lib/exclude.c: Include <stdbool.h> unconditionally.
86217         * lib/tempname.c: Include <stddef.h> unconditionally.
86218         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
86219         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
86220         <stddef.h> does that.
86221         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
86222         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
86223         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
86224         needed.
86225         * lib/xstrtol.c: Likewise.
86226         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
86227         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
86228
86229         * lib/addext.c (addext): Use assignment rather than cast, to avoid
86230         warnings on some platforms.
86231
86232         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
86233         arbitrarily.
86234
86235 2003-05-26  Jim Meyering  <jim@meyering.net>
86236
86237         Merge in a change from coreutils:
86238         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
86239         that is guaranteed to be `no'.  Use `no_such_member' to indicate
86240         that condition, rather than `-1' which is slightly misleading.
86241         Change the name of the cache variable to have the gl_ prefix.
86242         Prompted by a patch from Richard Dawe for DJGPP.
86243
86244 2003-05-24  Karl Berry  <karl@gnu.org>
86245
86246         * config/config.guess: update from prep.
86247
86248 2003-05-22  Karl Berry  <karl@gnu.org>
86249
86250         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
86251
86252 2003-05-20  Karl Berry  <karl@gnu.org>
86253
86254         * config/config.guess: update from prep.
86255
86256 2003-05-18  Karl Berry  <karl@gnu.org>
86257
86258         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
86259         might actually be set by the user.
86260
86261         * config/depcomp, install-sh, mdate-sh: update from automake.
86262
86263 2003-05-17  Bruno Haible  <bruno@clisp.org>
86264
86265         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
86266         invalid expansion for AC_EGREP_CPP.
86267         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
86268         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
86269         Suggested by Akim Demaille <akim@epita.fr> in
86270         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
86271
86272 2003-05-12  Jim Meyering  <jim@meyering.net>
86273
86274         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
86275         the space-padded-by-default conversion specifiers, %e, %k, %l.
86276
86277 2003-05-12  Bruno Haible  <bruno@clisp.org>
86278
86279         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
86280         the string is longer than 4 KB.
86281
86282 2003-05-11  Karl Berry  <karl@gnu.org>
86283
86284         * config/config.{guess,sub}: update from prep.
86285
86286 2003-05-09  Bruno Haible  <bruno@clisp.org>
86287
86288         * modules/error: Add m4/strerror_r.m4 to file list.
86289
86290 2003-05-03  Bruno Haible  <bruno@clisp.org>
86291
86292         Upgrade to Unicode-4.0.
86293         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
86294         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
86295         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
86296         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
86297         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
86298         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
86299         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
86300         Change width of U+E0100..U+E01EF from 1 to 0.
86301
86302 2003-04-25  Jim Meyering  <jim@meyering.net>
86303
86304         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
86305         of type size_t, not int.
86306
86307 2003-04-25  Bruno Haible  <bruno@clisp.org>
86308
86309         * lib/copy-file.c: Include <stddef.h>, for size_t.
86310
86311 2003-04-21  Paul Eggert  <eggert@twinsun.com>
86312
86313         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
86314         code which expansion is under static control.  Patch imported from
86315         Akim Demaille's patch to Bison; see
86316         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
86317
86318 2003-04-14  Bruno Haible  <bruno@clisp.org>
86319
86320         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
86321
86322 2003-04-11  Jim Meyering  <jim@meyering.net>
86323
86324         Merge changes from Coreutils.
86325
86326         2003-03-22  Jim Meyering  <jim@meyering.net>
86327
86328         * lib/strftime.c (widen): Cast alloca return value to proper type.
86329
86330         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
86331
86332         From GNU libc.
86333         * lib/strftime.c (my_strftime): Handle very large width
86334         specifications for numeric values correctly.  Improve checks for
86335         overflow.
86336
86337         2003-01-19  Jim Meyering  <jim@meyering.net>
86338
86339         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
86340         definitions.
86341         (nl_get_alt_digit) [! defined my_strftime]: Define.
86342         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
86343         _nl_get_alt_digit and _nl_get_walt_digit.
86344
86345         * lib/strftime.c (my_strftime): Merge in locale-related changes from
86346         libc. These changes have no effect outside of _LIBC.
86347
86348 2003-04-10  Bruno Haible  <bruno@clisp.org>
86349
86350         * modules/findprog: New file.
86351         * MODULES.html.sh (func_all_modules): Add it.
86352
86353 2003-04-10  Bruno Haible  <bruno@clisp.org>
86354
86355         * m4/findprog.m4: New file.
86356         * m4/eaccess.m4: New file.
86357
86358 2003-04-10  Bruno Haible  <bruno@clisp.org>
86359
86360         * lib/findprog.h: New file, from GNU gettext.
86361         * lib/findprog.c: New file, from GNU gettext.
86362
86363 2003-04-05  Jim Meyering  <jim@meyering.net>
86364
86365         Merge changes from Coreutils.
86366
86367         * lib/exclude.h (PARAMS): Remove definition and uses.
86368         * lib/exclude.c: Remove uses of `PARAMS'.
86369
86370         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
86371         Add test-cases for DOS filenames. Declare program_name.
86372         (main): Set up program_name.  Patch by Rich Dawe.
86373
86374         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
86375         error from mntctl.
86376         Use mntctl's return value to drive the entry-processing loop, since
86377         we can't rely on the value of the vmt_length member in the last
86378         entry.  On some systems doing so could result in exhausting
86379         virtual memory.  Based in part on a patch from Mike Jetzer.
86380
86381 2003-04-04  Bruno Haible  <bruno@clisp.org>
86382
86383         * modules/linebreak: New file.
86384         * MODULES.html.sh (func_all_modules): Add it.
86385
86386 2003-04-04  Bruno Haible  <bruno@clisp.org>
86387
86388         * m4/linebreak.m4: New file.
86389
86390 2003-04-04  Bruno Haible  <bruno@clisp.org>
86391
86392         * lib/linebreak.h: New file, from GNU gettext.
86393         * lib/linebreak.c: New file, from GNU gettext with slight
86394         modifications.
86395         * lib/lbrkprop.h: New file, from GNU gettext.
86396
86397 2003-04-03  Bruno Haible  <bruno@clisp.org>
86398
86399         * modules/utf8-ucs4: New file.
86400         * modules/utf16-ucs4: New file.
86401         * modules/ucs4-utf8: New file.
86402         * modules/ucs4-utf16: New file.
86403         * MODULES.html.sh (func_all_modules): Add them.
86404
86405 2003-04-03  Bruno Haible  <bruno@clisp.org>
86406
86407         * m4/utf-ucs4.m4: New file.
86408         * m4/ucs4-utf.m4: New file.
86409
86410 2003-04-03  Bruno Haible  <bruno@clisp.org>
86411
86412         * lib/utf8-ucs4.h: New file, from GNU gettext.
86413         * lib/utf16-ucs4.h: New file, from GNU gettext.
86414         * lib/ucs4-utf8.h: New file, from GNU gettext.
86415         * lib/ucs4-utf16.h: New file, from GNU gettext.
86416
86417 2003-04-02  Bruno Haible  <bruno@clisp.org>
86418
86419         * modules/binary-io: New file.
86420         * MODULES.html.sh (func_all_modules): Add it.
86421
86422 2003-04-02  Bruno Haible  <bruno@clisp.org>
86423
86424         * lib/binary-io.h: New file, from GNU gettext.
86425
86426 2003-04-01  Bruno Haible  <bruno@clisp.org>
86427
86428         * modules/pathname: New file.
86429         * MODULES.html.sh (func_all_modules): Add it.
86430
86431 2003-04-01  Bruno Haible  <bruno@clisp.org>
86432
86433         * lib/pathname.h: New file, from GNU gettext.
86434         * lib/concatpath.c: New file, from GNU gettext.
86435
86436 2003-03-30  Bruno Haible  <bruno@clisp.org>
86437
86438         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
86439
86440 2003-03-30  Bruno Haible  <bruno@clisp.org>
86441
86442         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
86443         function chown() doesn't exist.
86444
86445 2003-03-28  Bruno Haible  <bruno@clisp.org>
86446
86447         * modules/copy-file: New file.
86448         * MODULES.html.sh (func_all_modules): Add it.
86449
86450 2003-03-28  Bruno Haible  <bruno@clisp.org>
86451
86452         * m4/copy-file.m4: New file.
86453
86454 2003-03-28  Bruno Haible  <bruno@clisp.org>
86455
86456         * lib/copy-file.h: New file, from GNU gettext.
86457         * lib/copy-file.c: New file, from GNU gettext.
86458
86459 2003-03-18  Jim Meyering  <jim@meyering.net>
86460
86461         * lib/quote.c (quote_n): Fix typo in comment.
86462
86463 2003-03-18  Bruno Haible  <bruno@clisp.org>
86464
86465         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
86466         checking.
86467         * m4/onceonly_2_57.m4: Likewise.
86468
86469 2003-03-17  Bruno Haible  <bruno@clisp.org>
86470
86471         * m4/onceonly.m4: Require autoconf 2.54 or newer.
86472         (m4_quote): Remove macro.
86473         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
86474
86475 2003-03-14  Jim Meyering  <jim@meyering.net>
86476
86477         Merge changes from Coreutils.
86478         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
86479         to be const, in order to avoid warnings.
86480         (obstack_room): Likewise.
86481         (obstack_empty_p): Likewise.
86482
86483 2003-03-14  Bruno Haible  <bruno@clisp.org>
86484
86485         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
86486         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
86487
86488 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86489
86490         Merge changes from Bison.
86491         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
86492         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
86493         when compiling Bison 1.875's `bitset bset = obstack_alloc
86494         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
86495         * lib/hash.c: Include <stdbool.h> unconditionally.
86496
86497 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86498
86499         * m4/onceonly.m4 (m4_quote): New macro.
86500         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
86501         Quote AC_FOREACH variable-expansions properly.
86502
86503 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86504
86505         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
86506
86507 2003-03-09  Paul Eggert  <eggert@twinsun.com>
86508
86509         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
86510         Reported by Bruce Becker; see:
86511         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
86512
86513 2003-03-03  Paul Eggert  <eggert@twinsun.com>
86514             Bruno Haible  <bruno@clisp.org>
86515
86516         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
86517         Reported by John Hughes, see
86518         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
86519
86520 2003-02-20  Bruno Haible  <bruno@clisp.org>
86521
86522         * MODULES.html.sh (func_all_modules): Add poll.
86523
86524 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86525
86526         * modules/poll: New file.
86527
86528 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86529
86530         * lib/poll_.h: New file.
86531         * lib/poll.c: New file.
86532
86533 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86534
86535         * m4/poll.m4: New file.
86536
86537 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86538
86539         * modules/mathl: New file.
86540
86541 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86542
86543         * lib/mathl.h: New file.
86544         * lib/acosl.c: New file.
86545         * lib/asinl.c: New file.
86546         * lib/atanl.c: New file.
86547         * lib/ceill.c: New file.
86548         * lib/cosl.c: New file.
86549         * lib/expl.c: New file.
86550         * lib/floorl.c: New file.
86551         * lib/frexpl.c: New file.
86552         * lib/ldexpl.c: New file.
86553         * lib/logl.c: New file.
86554         * lib/sincosl.c: New file.
86555         * lib/sinl.c: New file.
86556         * lib/sqrtl.c: New file.
86557         * lib/tanl.c: New file.
86558         * lib/trigl.c: New file.
86559         * lib/trigl.h: New file.
86560
86561 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86562
86563         * m4/mathl.m4: New file.
86564
86565 2003-02-18  Bruno Haible  <bruno@clisp.org>
86566
86567         * MODULES.html.sh (func_all_modules): Add mathl.
86568
86569 2003-02-17  Bruno Haible  <bruno@clisp.org>
86570
86571         * modules/mkdtemp: New module.
86572         * MODULES.html.sh (func_all_modules): Add it.
86573
86574 2003-02-17  Bruno Haible  <bruno@clisp.org>
86575
86576         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
86577
86578 2003-02-17  Bruno Haible  <bruno@clisp.org>
86579
86580         * lib/mkdtemp.h: New file, from GNU gettext.
86581         * lib/mkdtemp.c: New file, from GNU gettext.
86582
86583 2003-02-02  Jim Meyering  <jim@meyering.net>
86584
86585         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
86586         e.g. glibc-2.2.93.
86587
86588 2003-01-31  Bruno Haible  <bruno@clisp.org>
86589
86590         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
86591         'rpl_rename'.
86592         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
86593         'rpl_strnlen'.
86594         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
86595         'rpl_strtod'.
86596         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
86597         'rpl_utime'.
86598
86599 2003-01-31  Bruno Haible  <bruno@clisp.org>
86600
86601         * lib/rename.c: #undef rename before defining rpl_rename.
86602         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
86603
86604 2003-01-30  Bruno Haible  <bruno@clisp.org>
86605
86606         * modules/vasnprintf, modules/vasprintf: New modules.
86607         * MODULES.html.sh (func_all_modules): Add them.
86608
86609 2003-01-30  Bruno Haible  <bruno@clisp.org>
86610
86611         * m4/signed.m4: New file, from GNU gettext.
86612         * m4/longdouble.m4: New file, from GNU gettext.
86613         * m4/wchar_t.m4: New file, from GNU gettext.
86614         * m4/wint_t.m4: New file, from GNU gettext.
86615         * m4/vasnprintf.m4: New file.
86616         * m4/vasprintf.m4: New file.
86617
86618 2003-01-30  Bruno Haible  <bruno@clisp.org>
86619
86620         * lib/printf-args.h: New file, from GNU gettext.
86621         * lib/printf-args.c: New file, from GNU gettext.
86622         * lib/printf-parse.h: New file, from GNU gettext.
86623         * lib/printf-parse.c: New file, from GNU gettext.
86624         * lib/vasnprintf.h: New file, from GNU gettext.
86625         * lib/vasnprintf.c: New file, from GNU gettext.
86626         * lib/asnprintf.c: New file, from GNU gettext.
86627         * lib/vasprintf.h: New file, from GNU gettext with modifications.
86628         * lib/vasprintf.c: New file, from GNU gettext.
86629         * lib/asprintf.c: New file, from GNU gettext.
86630
86631 2003-01-29  Bruno Haible  <bruno@clisp.org>
86632
86633         * modules/stpncpy: New module.
86634         * MODULES.html.sh (func_all_modules): Add it.
86635
86636 2003-01-29  Bruno Haible  <bruno@clisp.org>
86637
86638         * m4/stpncpy.m4: New file.
86639
86640 2003-01-29  Bruno Haible  <bruno@clisp.org>
86641
86642         * lib/stpncpy.h: New file, from GNU gettext with modifications.
86643         * lib/stpncpy.c: New file, from GNU gettext with modifications.
86644
86645 2003-01-28  Bruno Haible  <bruno@clisp.org>
86646
86647         * modules/c-ctype: New module.
86648         * MODULES.html.sh (func_all_modules): Add it.
86649
86650 2003-01-28  Bruno Haible  <bruno@clisp.org>
86651
86652         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
86653         Paul Eggert.
86654         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
86655         Paul Eggert.
86656
86657 2003-01-27  Bruno Haible  <bruno@clisp.org>
86658
86659         * modules/xsetenv: New module.
86660         * MODULES.html.sh (func_all_modules): Add it.
86661
86662 2003-01-27  Bruno Haible  <bruno@clisp.org>
86663
86664         * lib/xsetenv.h: New file, from GNU gettext.
86665         * lib/xsetenv.c: New file, from GNU gettext.
86666
86667 2003-01-23  Jim Meyering  <jim@meyering.net>
86668
86669         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
86670         from working on systems without dirfd (at least Irix and OSF1/Tru64).
86671
86672 2003-01-23  Bruno Haible  <bruno@clisp.org>
86673
86674         * modules/minmax: New module.
86675         * MODULES.html.sh (func_all_modules): Add it.
86676
86677 2003-01-23  Bruno Haible  <bruno@clisp.org>
86678
86679         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
86680         Eggert.
86681
86682 2003-01-22  Bruno Haible  <bruno@clisp.org>
86683
86684         * modules/exit: New module.
86685         * MODULES.html.sh (func_all_modules): Add it.
86686
86687 2003-01-22  Bruno Haible  <bruno@clisp.org>
86688
86689         * lib/exit.h: New file, from GNU gettext.
86690
86691 2003-01-19  Bruno Haible  <bruno@clisp.org>
86692
86693         * gnulib-tool: Recognize option --extract-maintainer.
86694         (func_get_maintainer): New function.
86695         * modules/*: Add Maintainer entry.
86696
86697 2003-01-16  Jim Meyering  <jim@meyering.net>
86698
86699         * m4/regex.m4: The `regex' struct is both input and output.
86700         Initialize it before each use.  Patch by Tim Waugh.
86701
86702 2003-01-16  Bruno Haible  <bruno@clisp.org>
86703
86704         * MODULES.html.sh: Add a table of contents. Add the module name as
86705         leftmost column. Add hyperlinks.
86706
86707 2003-01-15  Bruno Haible  <bruno@clisp.org>
86708
86709         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
86710
86711 2003-01-15  Bruno Haible  <bruno@clisp.org>
86712
86713         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
86714         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
86715         suffix.
86716
86717 2003-01-15  Bruno Haible  <bruno@clisp.org>
86718
86719         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
86720
86721 2003-01-15  Bruno Haible  <bruno@clisp.org>
86722
86723         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
86724         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
86725
86726 2003-01-14  Jim Meyering  <jim@meyering.net>
86727
86728         * lib/same.c (same_name): Tweak a comment.
86729
86730 2003-01-14  Bruno Haible  <bruno@clisp.org>
86731
86732         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
86733         when a string comparison is sufficient.
86734
86735 2003-01-14  Bruno Haible  <bruno@clisp.org>
86736
86737         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
86738         'unsigned int'.
86739
86740 2003-01-14  Bruno Haible  <bruno@clisp.org>
86741
86742         * lib/hash-pjw.c: Add comment about low quality of this function.
86743
86744 2003-01-13  Bruno Haible  <bruno@clisp.org>
86745
86746         * modules/stpcpy: Distribute lib/stpcpy.h.
86747         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
86748
86749 2003-01-13  Bruno Haible  <bruno@clisp.org>
86750
86751         * modules/*: Add a description.
86752         * modules/strpbrk: Fix Makefile.am snippet.
86753         * modules/strtoimax: Fix dependencies.
86754         * modules/strtoumax: Likewise.
86755
86756 2003-01-13  Bruno Haible  <bruno@clisp.org>
86757
86758         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
86759         * modules/alloca (Makefile.am): All object files depend on alloca.h.
86760         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
86761
86762 2003-01-13  Bruno Haible  <bruno@clisp.org>
86763
86764         * gnulib-tool (func_create_testdir): Store config/* files in the main
86765         directory.
86766         * config.rpath: Move to ...
86767         * config/config.rpath: ... here.
86768         * modules/gettext: Contains config/config.rpath, not config.rpath.
86769         * modules/iconv: Likewise.
86770
86771 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86772
86773         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86774         to avoid collisions with libcurses and libreadline.
86775
86776         * m4/getstr.m4: Remove.
86777         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
86778
86779 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86780
86781         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86782         to avoid collisions with libcurses and libreadline.
86783
86784         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
86785         * lib/getstr.h, getstr.c: Remove.
86786         * lib/getline.c: Include "getline.h", to check interface.
86787         Move body of old getstr.c here: this defines MIN_CHUNK and
86788         declares getdelim2, which is renamed from getstr.
86789         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
86790
86791         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
86792         All uses changed.
86793         * lib/linebuffer.h: Likewise.
86794         (readline): Remove backward-compatibility macro.
86795
86796 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86797
86798         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86799         to avoid collisions with libcurses and libreadline.
86800         * getstr: Remove.
86801         * MODULES.html.sh: Remove getstr.
86802         * modules/getline: Depend on unlocked-io, not getstr.
86803
86804 2003-01-12  Jim Meyering  <jim@meyering.net>
86805
86806         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
86807
86808 2003-01-10  Bruno Haible  <bruno@clisp.org>
86809
86810         * modules/alloca: Change Makefile.am requirements. Simplify Include
86811         requirements. Add lib/alloca_.h to file list.
86812
86813 2003-01-10  Bruno Haible  <bruno@clisp.org>
86814
86815         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
86816
86817 2003-01-10  Bruno Haible  <bruno@clisp.org>
86818
86819         * lib/alloca_.h: New file.
86820         * lib/getdate.y: Unconditionally include alloca.h.
86821         * lib/makepath.c: Likewise.
86822         * lib/setenv.c: Likewise.
86823         * lib/userspec.c: Likewise.
86824
86825 2003-01-09  Karl Berry  <karl@gnu.org>
86826
86827         * MODULES.html.sh: include `dirname $0` in PATH, to find
86828         gnulib-tool.
86829
86830 2003-01-09  Bruno Haible  <bruno@clisp.org>
86831
86832         * modules/stdbool: Change configure.ac, Makefile.am requirements.
86833         Simplify Include requirements. Add lib/stdbool.h.in to file list.
86834
86835 2003-01-09  Bruno Haible  <bruno@clisp.org>
86836
86837         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
86838
86839 2003-01-09  Bruno Haible  <bruno@clisp.org>
86840
86841         * lib/stdbool.h.in: New file.
86842
86843 2003-01-09  Bruno Haible  <bruno@clisp.org>
86844
86845         * gnulib-tool (func_all_modules): Ignore files ending in ~.
86846         * MODULES.html.sh: Likewise.
86847
86848 2003-01-08  Jim Meyering  <jim@meyering.net>
86849
86850         * lib/full-write.c: Undefine and define-away `const' after inclusion
86851         of errno.h, not before.  Suggestion from Bruno Haible.
86852
86853 2003-01-08  Bruno Haible  <bruno@clisp.org>
86854
86855         * modules/full-read: Depend on full-write.
86856
86857 2003-01-08  Bruno Haible  <bruno@clisp.org>
86858
86859         * lib/safe-read.c: Include specification header first, to ensure its
86860         selfcontainedness.
86861         * lib/full-write.c: Likewise.
86862
86863 2003-01-07  Jim Meyering  <jim@meyering.net>
86864
86865         * lib/full-write.c: Rework so that it may serve to define full_read,
86866         too.
86867         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
86868
86869 2003-01-07  Bruno Haible  <bruno@clisp.org>
86870
86871         * lib/strtoimax.c: Include <stdint.h> as an alternative to
86872         <inttypes.h>.
86873         * lib/xstrtol.h: Likewise.
86874         * lib/xstrtoimax.c: Likewise.
86875         * lib/xstrtoumax.c: Likewise.
86876         * lib/human.h: Likewise.
86877
86878         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
86879         on systems that have <inttypes.h> but not <stdint.h>.
86880
86881 2003-01-07  Bruno Haible  <bruno@clisp.org>
86882
86883         * MODULES.html.sh: Add copyright notice.
86884         (missed_files): Omit CVS directory entries.
86885         (func_module): Make it work with sed-3.02.
86886         * MODULES.txt: Remove file.
86887
86888 2003-01-06  Jim Meyering  <jim@meyering.net>
86889
86890         * lib/version-etc.c: Update year in translatable copyright string.
86891
86892 2003-01-03  Karl Berry  <karl@gnu.org>
86893
86894         * config/config.{guess,sub}: update from prep.
86895
86896 2003-01-02  Karl Berry  <karl@gnu.org>
86897
86898         * doc/COPYING.DOC: belatedly updated to 1.2.
86899
86900 2003-01-01  Karl Berry  <karl@gnu.org>
86901
86902         * gnulib-tool (func_verify_module): report module name $module in
86903         error message, not $1.
86904         * gnulib-tool (create-testdir): don't complain if destdir couldn't
86905         be created, only if it doesn't exist.
86906         * gnulib-tool (last_checkin_date): don't expand the $Date here.
86907
86908 2002-12-31  Paul Eggert  <eggert@twinsun.com>
86909
86910         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
86911
86912 2002-12-31  Paul Eggert  <eggert@twinsun.com>
86913
86914         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
86915         memcmp if strcoll doesn't work.
86916
86917 2002-12-31  Bruno Haible  <bruno@clisp.org>
86918
86919         * lib/utime.c (utime_null): No need to call ftruncate if the file was
86920         nonempty.
86921
86922 2002-12-31  Bruno Haible  <bruno@clisp.org>
86923
86924         * lib/memcoll.c (STRCOLL): New macro.
86925         (memcoll): Use it.
86926
86927 2002-12-31  Bruno Haible  <bruno@clisp.org>
86928
86929         * lib/localcharset.h: New file.
86930         * lib/localcharset.c: Include it.
86931         * lib/unicodeio.c: Likewise.
86932
86933 2002-12-31  Bruno Haible  <bruno@clisp.org>
86934
86935         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
86936         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
86937
86938 2002-12-31  Bruno Haible  <bruno@clisp.org>
86939
86940         * lib/getline.h: Include <stddef.h>, for size_t.
86941
86942         * lib/unicodeio.h: Include <stddef.h>, for size_t.
86943         * lib/unicodeio.c: Don't include <stddef.h>.
86944
86945 2002-12-31  Bruno Haible  <bruno@clisp.org>
86946
86947         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
86948         HAVE_TM_ZONE.
86949
86950 2002-12-24  Karl Berry  <karl@gnu.org>
86951
86952         * config/config.guess: update from prep.
86953
86954 2002-12-24  Bruno Haible  <bruno@clisp.org>
86955
86956         General infrasructure.
86957         * m4/README: Rewritten.
86958         * m4/onceonly.m4: New file.
86959         * m4/onceonly_2_57.m4: New file.
86960
86961         Module atexit.
86962         * m4/atexit.m4: New file.
86963
86964         Module strtod.
86965         * m4/strtod.m4: New file.
86966
86967         Module strtol.
86968         * m4/strtol.m4: New file.
86969
86970         Module strtoul.
86971         * m4/strtoul.m4: New file.
86972
86973         Module memchr.
86974         * m4/memchr.m4: New file.
86975
86976         Module memcmp.
86977         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
86978         (jm_FUNC_MEMCMP): Invoke it.
86979
86980         Module memcpy.
86981         * m4/memcpy.m4: New file.
86982
86983         Module memmove.
86984         * m4/memmove.m4: New file.
86985
86986         Module memset.
86987         * m4/memset.m4: New file.
86988
86989         Module strcspn.
86990         * m4/strcspn.m4: New file.
86991
86992         Module strpbrk.
86993         * m4/strpbrk.m4: New file.
86994
86995         Module strstr.
86996         * m4/strstr.m4: New file.
86997
86998         Module strerror.
86999         * m4/strerror.m4: New file.
87000
87001         Module mktime.
87002         * m4/mktime.m4: Renamed from jm-mktime.m4.
87003         (gl_PREREQ_MKTIME): New macro.
87004         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
87005
87006         Module malloc.
87007         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
87008         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
87009         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
87010
87011         Module realloc.
87012         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
87013         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
87014         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
87015
87016         Module strftime.
87017         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
87018         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
87019         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
87020         gl_TM_GMTOFF.
87021         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
87022
87023         Module xalloc.
87024         * m4/xalloc.m4: New file.
87025
87026         Module alloca.
87027         * m4/alloca.m4: New file.
87028
87029         Module putenv.
87030         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
87031         (jm_FUNC_PUTENV): Invoke it.
87032
87033         Module setenv.
87034         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
87035         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
87036         when invoked twice.
87037         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
87038         gt_FUNC_SETENV.
87039
87040         Module memrchr.
87041         * m4/memrchr.m4: New file.
87042
87043         Module stpcpy.
87044         * m4/stpcpy.m4: New file.
87045
87046         Module strcase.
87047         * m4/strcase.m4: New file.
87048
87049         Module strdup.
87050         * m4/strdup.m4: New file.
87051
87052         Module strnlen.
87053         * m4/strnlen.m4: New file.
87054
87055         Module strndup.
87056         * m4/strndup.m4: New file.
87057
87058         Module xstrtod.
87059         * m4/xstrtod.m4: New file.
87060
87061         Module xstrtol.
87062         * m4/xstrtol.m4: New file.
87063
87064         Module getdate.
87065         * m4/getdate.m4: New file.
87066
87067         Module unlocked-io.
87068         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
87069         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
87070         * m4/jm-glibc-io.m4n: Remove file.
87071
87072         Module long-options.
87073         * m4/long-options.m4: New file.
87074
87075         Module md5.
87076         * m4/md5.m4: New file.
87077
87078         Module sha.
87079         * m4/sha.m4: New file.
87080
87081         Module getstr.
87082         * m4/getstr.m4: New file.
87083
87084         Module getline.
87085         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
87086         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
87087         <sys/types.h>, for size_t. Use the function name gnu_getline, not
87088         simply getline. Infoke gl_PREREQ_GETLINE.
87089
87090         Module obstack.
87091         * m4/obstack.m4: New file.
87092
87093         Module hash.
87094         * m4/hash.m4: New file.
87095
87096         Module readtokens.
87097         * m4/readtokens.m4: New file.
87098
87099         Module strverscmp.
87100         * m4/strverscmp.m4: New file.
87101
87102         Module stdbool.
87103         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
87104         OSF/1.
87105
87106         Module strtoll.
87107         * m4/strtoll.m4: New file.
87108
87109         Module strtoull.
87110         * m4/strtoull.m4: New file.
87111
87112         Module strtoimax.
87113         * m4/strtoimax.m4: New file.
87114
87115         Module strtoumax.
87116         * m4/strtoumax.m4: New file.
87117
87118         Module xstrtoimax.
87119         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
87120         jm_AC_PREREQ_XSTRTOIMAX.
87121         Moved the strtol prerequisites to strtol.m4.
87122         Moved the strtoll prerequisites to strtoll.m4.
87123         Moved the strtoimax prerequisites to strtoimax.m4.
87124
87125         Module xstrtoumax.
87126         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
87127         jm_AC_PREREQ_XSTRTOUMAX.
87128         Moved the strtoul prerequisites to strtoul.m4.
87129         Moved the strtoull prerequisites to strtoull.m4.
87130         Moved the strtoumax prerequisites to strtoumax.m4.
87131
87132         Module chown.
87133         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
87134         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
87135
87136         Module dup2.
87137         * m4/dup2.m4: New file.
87138
87139         Module ftruncate.
87140         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
87141         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
87142
87143         Module getgroups.
87144         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
87145         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
87146
87147         Module gettimeofday.
87148         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
87149         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
87150         gl_PREREQ_GETTIMEOFDAY.
87151
87152         Module mkdir.
87153         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
87154         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
87155
87156         Module mkstemp.
87157         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
87158         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
87159         jm_AC_TYPE_UINTMAX_T.
87160         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
87161
87162         Module stat.
87163         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
87164         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
87165
87166         Module lstat.
87167         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
87168         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
87169
87170         Module timespec.
87171         * m4/timespec.m4 (gl_TIMESPEC): New macro.
87172         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
87173         * m4/st_mtim.m4: Indentation.
87174
87175         Module nanosleep.
87176         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
87177         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
87178         gl_PREREQ_NANOSLEEP.
87179
87180         Module regex.
87181         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
87182         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
87183         (gl_REGEX): New macro.
87184
87185         Module rename.
87186         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
87187         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
87188
87189         Module rmdir.
87190         * m4/rmdir.m4: New file.
87191
87192         Module utime.
87193         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
87194         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
87195         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
87196
87197         Module dirname.
87198         * m4/dirname.m4: New file.
87199
87200         Module getopt.
87201         * m4/getopt.m4: New file.
87202
87203         Module unistd-safer.
87204         * m4/unistd-safer.m4: New file.
87205
87206         Module fnmatch.
87207         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
87208         declaration.
87209         (gl_PREREQ_FNMATCH_EXTRA): New macro.
87210         (gl_FUNC_FNMATCH_POSIX): New macro.
87211         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
87212         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
87213         simply fnmatch.
87214
87215         Module exclude.
87216         * m4/exclude.m4: New file.
87217
87218         Module human.
87219         * m4/human.m4: New file.
87220
87221         Module acl.
87222         * m4/acl.m4: Nop.
87223
87224         Module backupfile.
87225         * m4/backupfile.m4: New file.
87226         * m4/d-ino.m4: Indentation.
87227
87228         Module fsusage.
87229         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
87230         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
87231         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
87232
87233         Module dirfd.
87234         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
87235         requirements.
87236
87237         Module euidaccess.
87238         * m4/euidaccess.m4: New file.
87239
87240         Module file-type.
87241         * m4/file-type.m4: New file.
87242
87243         Module fileblocks.
87244         * m4/fileblocks.m4: New file.
87245
87246         Module filemode.
87247         * m4/filemode.m4: New file.
87248
87249         Module isdir.
87250         * m4/isdir.m4: New file.
87251
87252         Module lchown.
87253         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
87254         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
87255
87256         Module makepath.
87257         * m4/makepath.m4: New file.
87258
87259         Module modechange.
87260         * m4/modechange.m4: New file.
87261
87262         Module mountlist.
87263         * m4/mountlist.m4: New file.
87264         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
87265         Indentation.
87266
87267         Module path-concat.
87268         * m4/path-concat.m4: New file.
87269
87270         Module pathmax.
87271         * m4/pathmax.m4: New file.
87272
87273         Module same.
87274         * m4/same.m4: New file.
87275
87276         Module save-cwd.
87277         * m4/save-cwd.m4: New file.
87278
87279         Module savedir.
87280         * m4/savedir.m4: New file.
87281
87282         Module xgetcwd.
87283         * m4/xgetcwd.m4: New file.
87284         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
87285
87286         Module xreadlink.
87287         * m4/xreadlink.m4: New file.
87288
87289         Module safe-read.
87290         * m4/safe-read.m4: New file.
87291
87292         Module safe-write.
87293         * m4/safe-write.m4: New file.
87294
87295         Module closeout.
87296         * m4/closeout.m4: New file.
87297
87298         Module stdio-safer.
87299         * m4/stdio-safer.m4: New file.
87300
87301         Module getpass.
87302         * m4/getpass.m4: New file.
87303
87304         Module getugroups.
87305         * m4/getugroups.m4: New file.
87306
87307         Module group-member.
87308         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
87309         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
87310
87311         Module idcache.
87312         * m4/idcache.m4: New file.
87313
87314         Module userspec.
87315         * m4/userspec.m4: New file.
87316
87317         Module gettime.
87318         * m4/clock_time.m4: New file.
87319         * m4/gettime.m4: New file.
87320
87321         Module settime.
87322         * m4/settime.m4: New file.
87323
87324         Module posixtm.
87325         * m4/posixtm.m4: New file.
87326
87327         Module gethostname.
87328         * m4/gethostname.m4: New file.
87329
87330         Module canon-host.
87331         * m4/canon-host.m4: New file.
87332
87333         Module gettext.
87334         * m4/codeset.m4: New file, from gettext-0.11.5.
87335         * m4/gettext.m4: New file, from gettext-0.11.5.
87336         * m4/glibc21.m4: New file, from gettext-0.11.5.
87337         * m4/iconv.m4: New file, from gettext-0.11.5.
87338         * m4/intdiv0.m4: New file, from gettext-0.11.5.
87339         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
87340         * m4/inttypes.m4: New file, from gettext-0.11.5.
87341         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
87342         * m4/isc-posix.m4: New file, from gettext-0.11.5.
87343         * m4/lcmessage.m4: New file, from gettext-0.11.5.
87344         * m4/lib-ld.m4: New file, from gettext-0.11.5.
87345         * m4/lib-link.m4: New file, from gettext-0.11.5.
87346         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
87347         * m4/progtest.m4: New file, from gettext-0.11.5.
87348         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
87349         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
87350         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
87351
87352         Module localcharset.
87353         * m4/localcharset.m4: New file.
87354
87355         Module hard-locale.
87356         * m4/hard-locale.m4: New file.
87357
87358         Module mbswidth.
87359         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
87360         onceonly macros.
87361         * m4/mbrtowc.m4: Add comment.
87362
87363         Module memcasecmp.
87364         * m4/memcasecmp.m4: New file.
87365
87366         Module memcoll.
87367         * m4/memcoll.m4: New file.
87368
87369         Module unicodeio.
87370         * m4/unicodeio.m4: New file.
87371
87372         Module rpmatch.
87373         * m4/rpmatch.m4: New file.
87374
87375         Module yesno.
87376         * m4/yesno.m4: New file.
87377
87378         Module exitfail.
87379         * m4/exitfail.m4: New file.
87380
87381         Module c-stack.
87382         * m4/c-stack.m4 (gl_C_STACK): New macro.
87383         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
87384
87385         Module error.
87386         * m4/error.m4 (gl_ERROR): New macro.
87387         (jm_PREREQ_ERROR): Use onceonly macros.
87388
87389         Module fatal.
87390         * m4/fatal.m4: New file.
87391
87392         Module getloadavg.
87393         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
87394         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
87395
87396         Module getpagesize.
87397         * m4/getpagesize.m4: New file.
87398
87399         Module getusershell.
87400         * m4/getusershell.m4: New file.
87401
87402         Module physmem.
87403         * m4/physmem.m4: New file.
87404
87405         Module posixver.
87406         * m4/posixver.m4: New file.
87407
87408         Module quotearg.
87409         * m4/quotearg.m4: New file.
87410
87411         Module quote.
87412         * m4/quote.m4: New file.
87413
87414         Module readutmp.
87415         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
87416
87417         Module sig2str.
87418         * m4/sig2str.m4: New file.
87419
87420         Other.
87421         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
87422         ulonglong.m4.
87423         * m4/intmax_t.m4: New file.
87424         * m4/d-type.m4: Indentation.
87425         * m4/jm-macros.m4: Update.
87426         * m4/prereq.m4 (jm_PREREQ): Update.
87427         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
87428         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
87429         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
87430         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
87431         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
87432         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
87433         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
87434         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
87435         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
87436         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
87437         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
87438         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
87439         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
87440         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
87441         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
87442         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
87443         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
87444         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
87445         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
87446
87447 2002-12-24  Bruno Haible  <bruno@clisp.org>
87448
87449         * MODULES.txt: Update according to m4/ changes.
87450
87451         Module gettext.
87452         * config.rpath: New file, from gettext-0.11.5.
87453
87454         * modules/*: New module descriptions.
87455         * gnulib-tool: New file.
87456         * MODULES.html.sh: New file.
87457
87458 2002-12-21  Karl Berry  <karl@gnu.org>
87459
87460         * doc/fdl.texi: update to version 1.2.
87461
87462 2002-12-19  Karl Berry  <karl@gnu.org>
87463
87464         * config/config.guess: update from prep.
87465
87466 2002-12-18  Bruno Haible  <bruno@clisp.org>
87467
87468         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
87469         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
87470
87471 2002-12-17  Bruno Haible  <bruno@clisp.org>
87472
87473         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
87474         stdlib.h, string.h.
87475
87476 2002-12-17  Bruno Haible  <bruno@clisp.org>
87477
87478         * lib/canon-host.c (strdup): Remove unused declaration.
87479
87480         * lib/fsusage.c: Include full_read.h.
87481         (get_fs_usage): Use full_read instead of safe_read.
87482
87483         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
87484
87485 2002-12-12  Karl Berry  <karl@gnu.org>
87486
87487         * config/config.guess: update from prep.
87488
87489 2002-12-11  Bruno Haible  <bruno@clisp.org>
87490
87491         * m4/setenv.m4: New file, from gettext-0.11.5.
87492
87493 2002-12-11  Bruno Haible  <bruno@clisp.org>
87494
87495         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
87496         not unsetenv().
87497         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
87498         modifications:
87499
87500         2002-12-11  Bruno Haible  <bruno@clisp.org>
87501
87502                 * setenv.c (alloca): Fall back to malloc.
87503                 (freea): New macro.
87504                 (setenv): Use freea() to free memory allocated with alloca().
87505
87506         2002-11-13  Bruno Haible  <bruno@clisp.org>
87507
87508                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
87509                 function declarations.
87510                 * unsetenv.c (unsetenv): Likewise.
87511
87512         2002-03-04  Bruno Haible  <bruno@clisp.org>
87513
87514                 Portability to AIX 4.3.3.
87515                 * unsetenv.c: New file, extracted from setenv.c.
87516                 * setenv.c: Move the unsetenv() function to unsetenv.c.
87517
87518         2001-12-20  Bruno Haible  <bruno@clisp.org>
87519
87520                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
87521                 use malloc instead. For SunOS 4.
87522
87523         2001-12-11  Bruno Haible  <bruno@clisp.org>
87524
87525                 * setenv.c: Declare alloca.
87526                 (compar_fn_t): New typedef.
87527                 (KNOWN_VALUE, STORE_VALUE): Use it.
87528
87529         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
87530         setenv.h.
87531
87532 2002-12-10  Paul Eggert  <eggert@twinsun.com>
87533
87534         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
87535         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
87536         Choose values that are less likely to collide with system fnmatch
87537         options.
87538         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
87539         defined (e.g., a pure POSIX system).
87540         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
87541         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
87542
87543 2002-12-06  Paul Eggert  <eggert@twinsun.com>
87544
87545         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
87546         a pain in practice to deal with generated m4 files.  This change
87547         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
87548
87549         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
87550         and jm-glibc-io.m4, as they are no longer a special case.
87551         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
87552         kludge and the auto-generation stuff.  Check only whether the
87553         functions are declared, not whether they exist, since older hosts
87554         that don't declare the functions can't use the optimization anyway.
87555
87556 2002-12-06  Jim Meyering  <jim@meyering.net>
87557
87558         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
87559
87560         Merge in changes from libc's misc/error.c, in preparation
87561         for the merge of gnulib's changes back into libc.
87562
87563         * lib/error.c (_): Define only if not already defined.
87564         Move definition to follow all #include directives.
87565         Include unlocked-io.h only if !_LIBC.
87566         [_LIBC]: Include <libio/libioP.h>.
87567         [USE_IN_LIBIO]: Include <libio/iolibio.h>
87568         (fflush): Tweak definition to use INTUSE.
87569         (putc): Define.
87570
87571 2002-12-05  Paul Eggert  <eggert@twinsun.com>
87572
87573         * lib/alloca.c [defined emacs]: Include "lisp.h".
87574         (xalloc_die) [defined emacs]: New macro.
87575         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
87576         [! defined emacs]: Include <xalloc.h>.
87577         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
87578         (pointer): Typedef to POINTER_TYPE *.
87579         (malloc): Remove decl; we now always use xmalloc.
87580         (alloca): Use old-style definition, since Emacs needs this.
87581         Check for arithmetic overflow when computing combined size.
87582
87583 2002-12-04  Paul Eggert  <eggert@twinsun.com>
87584
87585         Do not generate unlocked-io.h automatically, since it's easier to
87586         maintain it by hand.
87587
87588         * lib/unlocked-io.h: New file, from GNU diffutils,
87589         but with proper copyright notice and attribution.
87590         * lib/gen-uio: Remove.
87591         * lib/Makefile.am: Add copyright notice.
87592         (libfetish_a_SOURCES): Add unlocked-io.h.
87593         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
87594         (DISTCLEANFILES, io_functions): Remove macros.
87595         (EXTRA_DIST): Remove gen_uio.
87596         (unlocked-io.h): Remove rule.
87597
87598 2002-12-04  Jim Meyering  <jim@meyering.net>
87599
87600         Reflect the fact that stat.c and lstat.c are no longer generated.
87601         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
87602         (DISTCLEANFILES): Likewise.
87603         (EXTRA_DIST): Likewise.
87604         (all_local): Don't depend on stat.c or lstat.c.
87605         (stat.c, lstat.c): Remove rules.
87606         (EXTRA_DIST): Remove xstat.in.
87607
87608         * lib/xstat.in: Remove file.  Contents moved into stat.c.
87609         * lib/stat.c: New file.  Contents mostly from xstat.in.
87610         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
87611         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
87612
87613         * lib/safe-read.c: Rework so that it may serve to define safe_write,
87614         too.
87615         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
87616
87617 2002-12-03  Jim Meyering  <jim@meyering.net>
87618
87619         * lib/safe-read.c, safe-write.c: Change variable names and comments,
87620         but not semantics, to minimize the differences between these two files.
87621         (safe_read): Change comment to mention SAFE_READ_ERROR.
87622
87623         * lib/safe-read.c (IS_EINTR): Define.
87624         (safe_read): Use IS_EINTR in place of in-function cpp directives.
87625
87626 2002-12-02  Jim Meyering  <jim@meyering.net>
87627
87628         * lib/safe-read.c (EINTR): Define.
87629         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87630         (INT_MAX): Provide fallback.
87631         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
87632
87633         * lib/safe-read.h (SAFE_READ_ERROR): Define.
87634
87635 2002-12-02  Bruno Haible  <bruno@clisp.org>
87636
87637         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
87638         Define, taken from safe-read.c.
87639         (INT_MAX): Provide fallback.
87640         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
87641         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
87642
87643         * lib/safe-read.c (EINTR): Remove definition.
87644         (safe_read): Don't use EINTR if it is absent.
87645
87646 2002-12-01  Jim Meyering  <jim@meyering.net>
87647
87648         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
87649         zero.
87650         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
87651
87652 2002-11-27  Paul Eggert  <eggert@twinsun.com>
87653
87654         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
87655         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
87656         with `if (! (value < limit)) abort ();', for readability.
87657
87658 2002-11-26  Karl Berry  <karl@gnu.org>
87659
87660         * lib/strdup.c: copy from libc again, with jim's ok.
87661         * lib/.cppi-disable: re-add strdup.c
87662
87663 2002-11-25  Karl Berry  <karl@gnu.org>
87664
87665         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
87666         instead of "strtol.c".
87667
87668 2002-11-25  Karl Berry  <karl@gnu.org>
87669
87670         * config/install-sh: update from automake for variable quoting, $0 in
87671         error msgs, etc.
87672
87673         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
87674         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
87675         entry.
87676
87677 2002-11-25  Jim Meyering  <jim@meyering.net>
87678
87679         * lib/mktime.c: Sync from libc, now that it has the latest fix.
87680
87681 2002-11-24  Karl Berry  <karl@gnu.org>
87682
87683         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
87684         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
87685
87686 2002-11-24  Jim Meyering  <jim@meyering.net>
87687
87688         Update from coreutils:
87689
87690         * lib/mktime.c: Merge in changes from libc.
87691
87692         Avoid a link-time failure on some Linux systems.
87693         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
87694         (otherwise).
87695         (__mon_yday): Declare with the STATIC attribute.
87696         (__mktime_internal): Likewise.
87697         Based on a report from Greg Schafer.
87698
87699 2002-11-23  Jim Meyering  <jim@meyering.net>
87700
87701         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
87702         Use `unsigned', not `int', as type of index.
87703
87704         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
87705
87706         * lib/fsusage.c: Remove unneeded parentheses around operands of
87707         `defined'.
87708
87709 2002-11-22  Paul Eggert  <eggert@twinsun.com>
87710
87711         * lib/quotearg.h: Allow multiple inclusion by surrounding with
87712         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
87713         so that we can be included first.
87714         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
87715         * lib/quotearg.c: Include quotearg.h immediately after config.h.
87716         No need to include stddef.h or sys/types.h any more.
87717         Surround local include files with "", not "<>".
87718         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
87719         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
87720         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
87721         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
87722         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
87723         (ISPRINT): Remove; no longer needed now that we assume C89.
87724
87725         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
87726         Preserve errno.
87727
87728         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
87729         quotearg_char): Use SIZE_MAX rather than
87730         (size_t) -1 when we are talking about "infinity".
87731
87732         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
87733
87734 2002-11-22  Paul Eggert  <eggert@twinsun.com>
87735
87736         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
87737         hint that one should use `if (! x) abort ();' rather than `assert
87738         (x);', and anyway it's one less thing to worry about configuring.
87739         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
87740         hash_rehash, hash_insert): Use abort rather than assert.
87741
87742 2002-11-22  Bruno Haible  <bruno@clisp.org>
87743
87744         * lib/safe-read.h: Assume C89. Add comments.
87745         (safe_read): Change return type to size_t.
87746         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
87747         byte counts > SSIZE_MAX correctly.
87748         * lib/safe-write.h: New file.
87749         * lib/safe-write.c: New file.
87750         * lib/full-read.h: New file.
87751         * lib/full-read.c: New file.
87752         * lib/full-write.h: Assume C89. Add comments.
87753         * lib/full-write.c: Include safe-write.h.
87754         (full_write): Rewritten to use safe_write.
87755         Suggested by Jim Meyering and Paul Eggert.
87756
87757 2002-11-21  Jim Meyering  <jim@meyering.net>
87758
87759         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
87760
87761         Merge in changes from the coreutils.
87762
87763         2002-09-25  Paul Eggert  <eggert@twinsun.com>
87764         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
87765         <stdint.h>.
87766         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
87767         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
87768         int.  Work more efficiently if X is the same width as uintmax_t.
87769         Do not compare X to -1, to avoid bogus compiler warning.
87770         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
87771         Don't assume that f_frsize and f_bsize are the same type.
87772
87773         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
87774         warning on FreeBSD.
87775
87776         * lib/makepath.c (make_path): Restore umask *before* creating the final
87777         component.
87778         (make_path): Minor reformatting.
87779
87780         * lib/xmalloc.c: Adjust to work with new autoconf macros,
87781         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
87782         HAVE_MALLOC/HAVE_REALLOC.
87783
87784         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
87785         dummy ones.  At least on GNU/Linux systems, `auto' means something
87786         else.
87787         From Michael Stone.
87788
87789 2002-11-21  Bruno Haible  <bruno@clisp.org>
87790
87791         Remove case insensitive option matching.
87792         * lib/argmatch.h (argcasematch): Remove declaration.
87793         (ARGCASEMATCH): Remove macro.
87794         (__xargmatch_internal): Remove case_sensitive argument.
87795         (XARGMATCH): Update.
87796         (XARGCASEMATCH): Remove macro.
87797         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
87798         case_sensitive argument.
87799         (argcasematch): Remove function.
87800         (__xargmatch_internal): Remove case_sensitive argument.
87801         (main): Use XARGMATCH instead of XARGCASEMATCH.
87802
87803         * lib/xmalloc.c: Change compile-time error message. Add comment about
87804         required autoconf version.
87805
87806 2002-11-20  Paul Eggert  <eggert@twinsun.com>
87807
87808         Merge argmatch cleanups from Bison.  Assume C89.
87809
87810         * lib/argmatch.c: Include config.h here, not in argmatch.h.
87811         Include stdlib.h, for EXIT_FAILURE.
87812         Always include <string.h>, since we assume C89.
87813         (EXIT_FAILURE): Remove pre-C89 bug workaround.
87814         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
87815         Include <stddef.h> instead, since it's all we need for size_t.
87816         (PARAMS): Remove.  All uses removed.
87817         (ARRAY_CARDINALITY): Do not bother to #undef.
87818         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
87819         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
87820         Remove unnecessary parentheses.
87821         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
87822         Insert necessary parentheses.
87823         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
87824         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
87825
87826 2002-11-19  Bruno Haible  <bruno@clisp.org>
87827
87828         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
87829         * lib/mbswidth.h: Include <stddef.h>, for size_t.
87830
87831         * lib/mbswidth.h (PARAMS): Remove macro.
87832         (mbswidth, mbsnwidth): Use ANSI C function declarations.
87833         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
87834
87835         * lib/gcd.h (PARAMS): Remove macro.
87836         (gcd): Use ANSI C function declarations.
87837         * lib/gcd.c (gcd): Likewise.
87838
87839 2002-11-15  Bruno Haible  <bruno@clisp.org>
87840
87841         * lib/strcspn.c: Include <stddef.h>.
87842         (strcspn): Use ANSI C function declaration. Change return type to
87843         size_t. Use NULL.
87844         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
87845         (strpbrk): Use NULL.
87846         * lib/strpbrk.h (PARAMS): Remove macro.
87847         (strpbrk): Use ANSI C function declaration.
87848         * lib/strstr.c: Don't include <sys/types.h>.
87849         * lib/strstr.h (PARAMS): Remove macro.
87850         (strstr): Use ANSI C function declarations.
87851
87852 2002-11-14  Karl Berry  <karl@gnu.org>
87853
87854         * config/mkinstalldirs: `do' on separate line, instead of
87855         `for var; do'.
87856
87857 2002-11-06  Bruno Haible  <bruno@clisp.org>
87858
87859         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
87860         * lib/gcd.c (gcd): Likewise.
87861
87862 2002-11-05  Bruno Haible  <bruno@clisp.org>
87863
87864         * lib/gcd.h: New file, from gettext-0.11.5.
87865         * lib/gcd.c: New file, from gettext-0.11.5.
87866
87867 2002-11-05  Bruno Haible  <bruno@clisp.org>
87868
87869         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87870         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87871         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87872         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87873
87874         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
87875         <libintl.h>.
87876         * lib/makepath.c: Include gettext.h instead of <locale.h> and
87877         <libintl.h>.
87878
87879         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
87880         * lib/human.c: Include gettext.h instead of <libintl.h>.
87881         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
87882         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
87883         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
87884         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
87885         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
87886         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
87887         (textdomain): Remove definition.
87888         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
87889
87890         * lib/long-options.c: Remove include of <libintl.h> and definition of
87891         _.
87892         * lib/same.c: Remove include of <libintl.h> and definition of _.
87893
87894 2002-11-04  Owen Taylor  <otaylor@redhat.com>
87895
87896         * lib/config.charset: A few additions for Solaris.
87897
87898 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
87899
87900         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
87901         * lib/localcharset.c (locale_charset): Declare as extern "C".
87902
87903 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
87904
87905         * lib/config.charset: msdos in uk_UA uses CP1125.
87906
87907 2002-11-04  Bruno Haible  <bruno@clisp.org>
87908
87909         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
87910         * lib/strcase.h: New file, from GNU gettext-0.11.5.
87911         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
87912         * lib/strstr.h: New file, from GNU gettext-0.11.5.
87913         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
87914
87915 2002-11-04  Bruno Haible  <bruno@clisp.org>
87916
87917         * lib/localcharset.c (locale_charset): Don't return an empty string.
87918
87919 2002-11-04  Bruno Haible  <bruno@clisp.org>
87920
87921         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
87922         aliases.
87923
87924 2002-11-04  Bruno Haible  <bruno@clisp.org>
87925
87926         * lib/config.charset: Update for newest glibc. Add canonical names
87927         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
87928
87929 2002-11-04  Bruno Haible  <bruno@clisp.org>
87930
87931         * lib/config.charset: Add support for NetBSD.
87932
87933 2002-11-04  Bruno Haible  <bruno@clisp.org>
87934
87935         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
87936
87937 2002-11-01  Bruno Haible  <bruno@clisp.org>
87938
87939         * configure.in: Add AC_CONFIG_AUX_DIR call.
87940         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
87941         test/Makefile.
87942         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
87943
87944 2002-09-28  Karl Berry  <karl@gnu.org>
87945
87946         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
87947         installed automake until the next release, since changes have been
87948         made.
87949
87950 2002-09-25  Karl Berry  <karl@gnu.org>
87951
87952         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
87953         * lib/getopt*: copy from libc/posix.
87954         * lib/gettext.h: copy from gettext.
87955         * lib/.cppi-disable: add strdup.c, gettext.h.
87956
87957 2002-09-25  Karl Berry  <karl@gnu.org>
87958
87959         * config/srclist.txt: enable gettext.h check.
87960         * config/config.{guess,sub}: update from prep.
87961         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
87962                 from automake 1.6.3.
87963         See srclist*.
87964
87965 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
87966
87967         * regex.c (PATFETCH): Remove the translating fetch.
87968         (PATFETCH_RAW): Rename to PATFETCH.
87969         (set_image_of_range): New fun.
87970         (SET_RANGE_TABLE_WORK_AREA): Use it.
87971         (regex_compile): Don't translate the pattern chars so eagerly.
87972         Only do it when inserting an `exactn' bytecode or when handling
87973         a char-range.
87974         (mutually_exclusive_p): Avoid empty statement.
87975
87976 2002-07-06  Jim Meyering  <meyering@lucent.com>
87977
87978         * m4/README: Don't mention Makefile.am.in.
87979         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
87980
87981 2002-07-01  Jim Meyering  <meyering@lucent.com>
87982
87983         * lib/c-stack.c: Include sys/time.h.
87984         From Volker Borchert.
87985
87986 2002-06-26  Paul Eggert  <eggert@twinsun.com>
87987
87988         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
87989
87990 2002-06-26  Paul Eggert  <eggert@twinsun.com>
87991
87992         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
87993         New macro.  Use it uniformly instead of
87994         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
87995         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
87996         reported by Vin Shelton.
87997
87998 2002-06-22  Paul Eggert  <eggert@twinsun.com>
87999
88000         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
88001         Do not assume SA_SIGINFO behavior.
88002         Bug reported by Jim Meyering on NetBSD 1.5.2.
88003
88004 2002-06-22  Jim Meyering  <meyering@lucent.com>
88005
88006         * m4/c-stack.m4: New file, from diffutils-2.8.2.
88007         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
88008
88009         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
88010         now that configure.ac uses AC_GNU_SOURCE.
88011         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
88012         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
88013
88014         Update to latest tools.  Suggestions from Paul Eggert.
88015         * m4/stdbool.m4: New file, from diffutils-2.8.2.
88016         * m4/gnu-source.m4: Update from diffutils-2.8.2.
88017         * m4/fnmatch.m4: Likewise.
88018         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
88019         to AC_HEADER_STDBOOL
88020
88021 2002-06-22  Jim Meyering  <meyering@lucent.com>
88022
88023         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
88024         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
88025
88026 2002-06-22  Jim Meyering  <meyering@lucent.com>
88027
88028         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
88029
88030         * lib/exitfail.c, exitfail.h: Likewise.
88031         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
88032
88033         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
88034         of fnmatch.h.
88035         (EXTRA_DIST): Add fnmatch_loop.c.
88036         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
88037
88038         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
88039         * lib/fnmatch.c: Update from diffutils-2.8.2.
88040         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
88041         * lib/fnmatch.h: Remove file.
88042
88043 2002-06-21  Jim Meyering  <meyering@lucent.com>
88044
88045         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
88046         * m4/mbrtowc.m4: Likewise.
88047
88048         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
88049         * m4/mbswidth.m4: Reflect name change:
88050         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
88051         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88052
88053         * m4/lib-link.m4: Update from gettext-0.11.2.
88054         * m4/gettext.m4: Likewise.
88055
88056         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
88057         From Alfred M. Szmidt.
88058
88059 2002-06-18  Paul Eggert  <eggert@twinsun.com>
88060
88061         * lib/file-type.h: Report an error if neither S_ISREG nor
88062         S_IFREG is defined, instead of using a test specific to glibc
88063         2.2.  This should be safe, since POSIX requires S_ISREG and
88064         Unix Version 7 had S_IFREG.  We don't need to check for
88065         <sys/types.h> since we don't use any symbols that it defines.
88066
88067 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
88068
88069         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
88070         $@-t, so that each temporary file name is unique and valid in the first
88071         8 characters, for operation under DOS.
88072
88073 2002-06-15  Paul Eggert  <eggert@twinsun.com>
88074
88075         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
88076
88077 2002-06-15  Jim Meyering  <meyering@lucent.com>
88078
88079         Work even with DJGPP 2.03, which lacks support for symlinks.
88080         From Richard Dawe.
88081         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
88082         is defined.
88083         * lib/lchown.c (S_ISLNK): Likewise.
88084
88085 2002-06-15  Jim Meyering  <meyering@lucent.com>
88086
88087         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
88088         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
88089         have been included before this file.
88090
88091 2002-06-14  Jim Meyering  <meyering@lucent.com>
88092
88093         * lib/file-type.h: Use the version from diffutils-2.8.2.
88094         * lib/file-type.c: Likewise.
88095
88096 2002-06-07  Jim Meyering  <meyering@lucent.com>
88097
88098         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
88099         They're needed at least for NetBSD 1.5.2.
88100         ($statxfs_includes): Include those same headers.
88101         ($statxfs_includes): Include sys/vfs.h if available.
88102         ($statxfs_includes): Likewise for sys/statvfs.h.
88103         Check for the following members in both structs statfs and statvfs:
88104         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
88105
88106 2002-06-01  Jim Meyering  <meyering@lucent.com>
88107
88108         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
88109         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
88110
88111 2002-05-28  Jim Meyering  <meyering@lucent.com>
88112
88113         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
88114         Reported by Volker Borchert.
88115
88116 2002-05-27  Jim Meyering  <meyering@lucent.com>
88117
88118         Fix a problem seen only on nonconforming systems whereby ls.c's
88119         use of localtime, and then of gettimeofday would cause trouble:
88120         the localtime call used to initialize rpl_gettimeofday's save
88121         mechanism would clobber ls's current local time information so
88122         that in any long listing the first file would always be listed
88123         with date 1970-01-01.  Analysis by Volker Borchert.
88124
88125         * lib/gettimeofday.c (localtime): Undefine.
88126         (rpl_localtime): New function.
88127
88128 2002-05-27  Jim Meyering  <meyering@lucent.com>
88129
88130         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
88131         localtime.
88132
88133         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
88134         use the replacement function; it wouldn't resolve at link time.
88135         Reported by Volker Borchert.
88136
88137 2002-05-22  Jim Meyering  <meyering@lucent.com>
88138
88139         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
88140         file-type.h.
88141         * lib/file-type.h: New file.
88142         * lib/file-type.c (file_type): New file/function.  Extracted from
88143         diffutils.
88144
88145 2002-04-30  Jim Meyering  <meyering@lucent.com>
88146
88147         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
88148
88149 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88150
88151         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
88152
88153 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88154
88155         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
88156         Do not check for alloca.h (no longer used) or stdbool.h (was never
88157         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
88158
88159 2002-04-29  Paul Eggert  <eggert@twinsun.com>
88160
88161         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
88162
88163 2002-04-29  Jim Meyering  <meyering@lucent.com>
88164
88165         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
88166         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
88167         Use AC_FUNC_STRNLEN here instead.
88168
88169         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
88170         With autoconf-2.53a, it's part of AC_PROG_CC.
88171
88172 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88173
88174         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
88175         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
88176
88177 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88178
88179         * lib/sig2str.h, lib/sig2str.c: New files.
88180         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
88181
88182 2002-04-28  Paul Eggert  <eggert@twinsun.com>
88183
88184         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
88185         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
88186         of 127, since 64 is the largest conceivable number for ancient
88187         nonstandard hosts.
88188         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
88189
88190 2002-04-28  Jim Meyering  <meyering@lucent.com>
88191
88192         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
88193
88194 2002-04-24  Jim Meyering  <meyering@lucent.com>
88195
88196         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
88197         (jm_PREREQ): Use it.
88198
88199         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
88200         mach/mach.h fcntl.h.
88201         Check for this function: setlocale.
88202
88203 2002-04-24  Jim Meyering  <meyering@lucent.com>
88204
88205         * lib/gettext.h: New file, from Gettext.
88206         * lib/Makefile.am (INCLUDES): Remove -I../intl.
88207         (libfetish_a_SOURCES): Add gettext.h.
88208
88209 2002-04-16  Jim Meyering  <meyering@lucent.com>
88210
88211         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
88212         ut_pid, ut_id, ut_exit.
88213
88214 2002-04-16  Jim Meyering  <meyering@lucent.com>
88215
88216         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
88217         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
88218         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
88219
88220 2002-04-12  Jim Meyering  <meyering@lucent.com>
88221
88222         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
88223         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
88224         existence of the getmntinfo function.  Needed for Darwin 5.3.
88225
88226         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
88227         This is necessary at least on Darwin 5.3.
88228
88229         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
88230         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
88231         strnlen.o in the library, and that makes some versions of ranlib
88232         object.
88233
88234 2002-04-12  Jim Meyering  <meyering@lucent.com>
88235
88236         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
88237
88238 2002-04-09  Jim Meyering  <meyering@lucent.com>
88239
88240         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
88241         to be more precise.  Rather than saying we're checking whether the
88242         function `works', say what we're testing.
88243         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
88244         Reported by Bruno Haible.
88245
88246 2002-03-10  Jim Meyering  <meyering@lucent.com>
88247
88248         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
88249         Suggestion from Santiago Vila.
88250
88251 2002-03-08  Jim Meyering  <meyering@lucent.com>
88252
88253         * lib/rename.c: Mention that this wrapper is needed also on
88254         mips-dec-ultrix4.4 systems.
88255
88256 2002-03-02  Jim Meyering  <meyering@lucent.com>
88257
88258         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
88259         not HAVE_CLOCK_SETTIME.
88260
88261 2002-02-27  Paul Eggert  <eggert@twinsun.com>
88262
88263         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
88264         Check for clock_settime.
88265
88266 2002-02-27  Paul Eggert  <eggert@twinsun.com>
88267
88268         * lib/nanosleep.h: Rename to....
88269         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
88270
88271         * lib/gettime.c: New file.
88272         * lib/settime.c: New file.
88273         * lib/stime.c: Remove.
88274
88275         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
88276         timespec.h.  Remove nanosleep.h.
88277
88278 2002-02-25  Paul Eggert  <eggert@twinsun.com>
88279
88280         * m4/acl.m4: New file.
88281         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
88282         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
88283
88284 2002-02-25  Paul Eggert  <eggert@twinsun.com>
88285
88286         * lib/acl.c, lib/acl.h: New files.
88287         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
88288
88289 2002-02-24  Jim Meyering  <meyering@lucent.com>
88290
88291         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
88292         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
88293         cause trouble.  Reported by Nelson Beebe.
88294
88295 2002-02-23  Paul Eggert  <eggert@twinsun.com>
88296
88297         * lib/path-concat.c (xpath_concat): Reorder code to pacify
88298         compilers that don't know that xalloc_die never returns.
88299
88300 2002-02-20  Jim Meyering  <meyering@lucent.com>
88301
88302         * lib/getdate.c: Regenerate using bison-1.33.
88303
88304 2002-02-17  Jim Meyering  <meyering@lucent.com>
88305
88306         * config/config.guess (main): Don't use `head -1'; it's no longer
88307         portable. Use `sed 1q' instead.
88308
88309 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
88310
88311         * m4/codeset.m4: Upgrade to gettext-0.11.
88312         * m4/gettext.m4: Upgrade to gettext-0.11.
88313         * m4/glibc21.m4: Upgrade to gettext-0.11.
88314         * m4/iconv.m4: Upgrade to gettext-0.11.
88315         * m4/isc-posix.m4: Upgrade to gettext-0.11.
88316         * m4/lcmessage.m4: Upgrade to gettext-0.11.
88317         * m4/lib-ld.m4: New file, from gettext-0.11.
88318         * m4/lib-link.m4: New file, from gettext-0.11.
88319         * m4/lib-prefix.m4: New file, from gettext-0.11.
88320         * m4/progtest.m4: Upgrade to gettext-0.11.
88321
88322 2002-02-15  Paul Eggert  <eggert@twinsun.com>
88323
88324         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
88325         (jm_PREREQ): Use it.
88326
88327 2002-02-15  Paul Eggert  <eggert@twinsun.com>
88328
88329         * lib/posixver.c, lib/posixver.h: New files.
88330         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
88331
88332 2002-02-02  Paul Eggert  <eggert@twinsun.com>
88333             Bruno Haible  <bruno@clisp.org>
88334
88335         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
88336         (fwrite_success_callback): New declaration.
88337         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
88338         print_unicode_char. Call failure callback instead of error.
88339         (fwrite_success_callback): New function.
88340         (exit_failure_callback): New function.
88341         (fallback_failure_callback): New function.
88342         (print_unicode_char): Call unicode_to_mb.
88343
88344 2002-01-26  Jim Meyering  <meyering@lucent.com>
88345
88346         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
88347         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
88348
88349 2002-01-26  Jim Meyering  <meyering@lucent.com>
88350
88351         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
88352
88353 2002-01-22  Paul Eggert  <eggert@twinsun.com>
88354
88355         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
88356
88357 2002-01-22  Jim Meyering  <meyering@lucent.com>
88358
88359         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
88360         Otherwise, some versions of automake would omit the rule that makes
88361         Makefile from Makefile.in.
88362
88363 2002-01-21  Paul Eggert  <eggert@twinsun.com>
88364
88365         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
88366         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
88367         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
88368         (memcoll): Set errno to zero if there is no error.
88369
88370         * lib/quotearg.c (quotearg_buffer_restyled):
88371         Fix bug with quoting buffers containing NUL when backslashing escapes.
88372         This bug was exposed by the other changes in this patch.
88373         (quotearg_n_options): New arg ARGSIZE.
88374         All callers changed.
88375         (quoting_options_from_style): New function.
88376         (quotearg_n_style): Use it.
88377         (quotearg_n_style_mem): New function.
88378
88379         * lib/quotearg.h (quotearg_n_style_mem): New function.
88380
88381 2002-01-19  Jim Meyering  <meyering@lucent.com>
88382
88383         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
88384         Remove useless quotes: DF_PROG="df".
88385         * m4/strnlen.m4: New file.
88386
88387 2002-01-16  Paul Eggert  <eggert@twinsun.com>
88388
88389         * lib/backupfile.c (ISDIGIT): Comment fix.
88390         * lib/getdate.y (ISDIGIT): Likewise.
88391         * lib/posixtm.c (ISDIGIT, year): Likewise.
88392         * lib/strverscmp.c (ISDIGIT): Likewise.
88393         * lib/userspec.c (ISDIGIT): Likewise.
88394
88395 2002-01-16  Jim Meyering  <meyering@lucent.com>
88396
88397         * lib/getdate.y: Add three semicolons, each just before a closing
88398         brace. Bison (as of version 1.31) no longer papers over that mistake.
88399
88400 2002-01-05  Jim Meyering  <meyering@lucent.com>
88401
88402         * lib/version-etc.c (version_etc_copyright): Update copyright year.
88403
88404 2001-12-19  Paul Eggert  <eggert@twinsun.com>
88405
88406         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
88407         not silently exit merely because the output buffer happens to
88408         have nothing pending.
88409
88410 2001-12-18  Paul Eggert  <eggert@twinsun.com>
88411
88412         See the big note in ../ChangeLog.
88413         * lib/human.c (suffixes): Prefer K to k for 1024.
88414         (generate_suffix_backwards): New function.
88415         (human_readable_inexact): Use it.
88416         * lib/xstrtol.c (__xstrtol): If there is no number but there
88417         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
88418         Accept 'K' as well as 'k'.
88419
88420 2001-12-15  Jim Meyering  <meyering@lucent.com>
88421
88422         * lib/regex.h (__restrict_arr): Update from libc.
88423
88424         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
88425         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
88426         (STREQ): Define.
88427
88428 2001-12-14  Jim Meyering  <meyering@lucent.com>
88429
88430         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
88431         Suggestion from Bruno Haible.
88432
88433 2001-12-10  Jim Meyering  <meyering@lucent.com>
88434
88435         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
88436         xrealloc, Instead, include "xalloc.h".
88437         (initbuffer): Don't cast xmalloc return value to char*.
88438         (readline): Reword comment.
88439         Don't cast xrealloc return value to char*
88440         Return NULL, not 0.
88441
88442 2001-12-09  Jim Meyering  <meyering@lucent.com>
88443
88444         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
88445         about `signed and unsigned type in conditional expression'.
88446         * lib/posixtm.c (posix_time_parse): Likewise.
88447
88448         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
88449
88450         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
88451         to avoid a pedantic warning.
88452
88453         * lib/getstr.c: Don't include assert.h.
88454         (getstr): Remove warning-evoking assertions.
88455         Return -1 if offset parameter is out of bounds.
88456         Change the type of a local from int to size_t.
88457
88458         * lib/strftime.c (my_strftime_localtime_r): Include this function
88459         definition in the `#if ! HAVE_TM_GMTOFF' block.
88460
88461         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
88462         Include xalloc.h instead.
88463
88464 2001-12-02  Jim Meyering  <meyering@lucent.com>
88465
88466         * lib/tempname.c: Don't declare getenv, thus reverting the change of
88467         2001-11-18.  It's no longer necessary, now that stdlib.h is always
88468         included.
88469
88470         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
88471         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
88472
88473 2001-11-30  Akim Demaille  <akim@epita.fr>
88474
88475         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
88476         before being defined.
88477
88478 2001-11-27  Paul Eggert  <eggert@twinsun.com>
88479
88480         * lib/quotearg.h (quotearg_n, quotearg_n_style):
88481         First arg is int, not unsigned.
88482         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
88483         (SIZE_MAX, UINT_MAX): New macros.
88484         (quotearg_n_options): Abort if N is negative.
88485         Avoid overflow check on hosts where size_t is 64 bits and int
88486         is 32 bits, as overflow is impossible there.
88487         Fix off-by-one typo that caused unnecessary reallocation.
88488
88489 2001-11-27  Jim Meyering  <meyering@lucent.com>
88490
88491         * lib/tempname.c: Merge with version from libc.
88492         * lib/regex.c: Likewise.
88493
88494         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
88495         systems for which STDC_HEADERS is 0, it was not included, resulting in
88496         a warning about an integer-to-pointer conversion problem with getenv.
88497         Reported by Volker Borchert.
88498
88499 2001-11-26  Jim Meyering  <meyering@lucent.com>
88500
88501         * lib/gtod.h: Remove file.
88502         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
88503         * lib/gettimeofday.c: Don't include gtod.h.
88504         (GTOD_init): Remove function.
88505         (rpl_gettimeofday): Do its job here instead, rather than aborting.
88506         Suggestion from Volker Borchert.
88507
88508 2001-11-23  Jim Meyering  <meyering@lucent.com>
88509
88510         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
88511         it.
88512         * lib/hash.c (struct hash_table): Define it here instead.
88513
88514 2001-11-22  Jim Meyering  <meyering@lucent.com>
88515
88516         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
88517
88518 2001-11-20  Jim Meyering  <meyering@lucent.com>
88519
88520         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
88521         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
88522
88523 2001-11-19  Jim Meyering  <meyering@lucent.com>
88524
88525         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
88526         directory.  Use "conftestXXXXXX" as the template.
88527         Suggestion from Paul Eggert.
88528
88529         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
88530         immediately, so the test doesn't mistakenly hit the max-open-files
88531         limit.
88532
88533 2001-11-18  Paul Eggert  <eggert@twinsun.com>
88534
88535         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
88536         (TEMPORARIES): New macro.
88537         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
88538         removes an artificial limitation (e.g. HP-UX 10.20, where
88539         TMP_MAX is 17576).
88540
88541 2001-11-18  Jim Meyering  <meyering@lucent.com>
88542
88543         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
88544
88545 2001-11-18  Jim Meyering  <meyering@lucent.com>
88546
88547         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
88548         on SunOS 4.
88549
88550         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
88551         files will be created before anything else.
88552
88553 2001-11-17  Paul Eggert  <eggert@twinsun.com>
88554
88555         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
88556         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
88557
88558 2001-11-17  Jim Meyering  <meyering@lucent.com>
88559
88560         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
88561         Prompted by a report from Bob Proulx.
88562
88563         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
88564         Instead, require UTILS_FUNC_MKSTEMP.
88565
88566 2001-11-17  Jim Meyering  <meyering@lucent.com>
88567
88568         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
88569         Now, that's done as part of AC_FUNC_STRTOD.
88570
88571 2001-11-17  Jim Meyering  <meyering@lucent.com>
88572
88573         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
88574         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
88575         rather than group writable.  Patch by Juan F. Codagnone.
88576
88577         * lib/readtokens.c: Remove explicit declarations of xmalloc and
88578         xrealloc, Instead, include "xalloc.h".
88579
88580         * lib/mountlist.c: Include unlocked-io.h after all system headers.
88581         Remove explicit declarations of xmalloc, xrealloc,
88582         and xstrdup.  Instead, include "xalloc.h".
88583
88584         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
88585         unlocked-io.h.
88586         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
88587         Likewise.
88588         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
88589
88590         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
88591         Reported by Padraig Brady.
88592
88593         * lib/mkstemp.c: #undef mkstemp.
88594         Include config.h.
88595         (rpl_mkstemp): Rename from mkstemp.
88596         Protoize.
88597
88598 2001-11-16  Jim Meyering  <meyering@lucent.com>
88599
88600         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
88601         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
88602         determine the amount of total physical memory, use pstat_getstatic.
88603         HPUX-11 doesn't define _SC_PHYS_PAGES.
88604         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
88605         If sysconf couldn't be used to determine the amount of available
88606         physical memory, use both pstat_getstatic and pstat_getdynamic.
88607         Based on a patch from Bob Proulx.
88608
88609 2001-11-10  Jim Meyering  <meyering@lucent.com>
88610
88611         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
88612         (jm_PREREQ): Use it.
88613
88614 2001-11-09  Jim Meyering  <meyering@lucent.com>
88615
88616         * m4/jm-macros.m4: Require autoconf-2.52f.
88617         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
88618         Use these AC_-prefixed names, not the AM_-prefixed ones.
88619
88620         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
88621
88622 2001-11-05  Jim Meyering  <meyering@lucent.com>
88623
88624         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
88625
88626 2001-11-04  Jim Meyering  <meyering@lucent.com>
88627
88628         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
88629         $DEFS.
88630
88631 2001-11-03  Jim Meyering  <meyering@lucent.com>
88632
88633         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
88634         of AC_DEFUN.
88635
88636         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
88637         know the name of the variable in the macro definition.
88638
88639 2001-11-03  Jim Meyering  <meyering@lucent.com>
88640
88641         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
88642         in argmatch_to_argument call.
88643
88644         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
88645         argument.
88646
88647         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
88648         e.g., a fault due to an attempt to free a NULL pointer.
88649
88650 2001-11-01  Jim Meyering  <meyering@lucent.com>
88651
88652         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
88653         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
88654
88655 2001-11-01  Jim Meyering  <meyering@lucent.com>
88656
88657         * lib/dirfd.c, lib/dirfd.h: New files.
88658         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
88659
88660         * lib/hash.c (hash_print) [TESTING]: Clean up.
88661
88662 2001-10-22  Paul Eggert  <eggert@twinsun.com>
88663
88664         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
88665         to avoid a warning if -Wall.
88666
88667 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
88668
88669         * README: New file
88670         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
88671         (per RMS's instructions, this is now the canonical source)
88672         * lgpl/, gpl/: New directories.
88673
88674 2001-10-21  Paul Eggert  <eggert@twinsun.com>
88675
88676         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
88677
88678 2001-10-21  Jim Meyering  <meyering@lucent.com>
88679
88680         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
88681         this code would end up calling gettext even in packages built
88682         with --disable-nls.
88683         * lib/getopt.c (_): Likewise.
88684         * lib/regex.c (_): Likewise.
88685
88686 2001-10-20  Paul Eggert  <eggert@twinsun.com>
88687
88688         * m4/error.m4 (jm_PREREQ_ERROR):
88689         Do not invoke AC_CHECK_FUNCS with strerror_r, as
88690         AC_FUNC_STRERROR_R does that.
88691         Check for strerror declaration.
88692
88693         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
88694         are supposed to have them these days.
88695         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
88696         Merge changes from latest Autoconf CVS.
88697         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
88698         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
88699         POSIX decided to standardize on the int flavor of strerror_r.
88700
88701 2001-10-20  Paul Eggert  <eggert@twinsun.com>
88702
88703         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
88704         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
88705         Use strerror_r that is only a macro, even if it is not a function.
88706         (strerror): Check for HAVE_DECL_STRERROR before declaring.
88707         (private_strerror): Use prototypes, not old-style function definition.
88708         (print_errno_message): New function.
88709         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
88710         char*-flavored one.
88711         (error_tail, error, error_at_line): Use it.
88712
88713 2001-10-11  Jim Meyering  <meyering@lucent.com>
88714
88715         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
88716         and quote_n (1, ... to avoid clobbering a buffer.
88717
88718 2001-10-05  Jim Meyering  <meyering@lucent.com>
88719
88720         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
88721         hash-pjw.h.
88722         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
88723         * lib/hash-pjw.h: New file.
88724
88725 2001-09-30  Jim Meyering  <meyering@lucent.com>
88726
88727         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
88728         `struct fsstat' has the `f_fstypename' member.
88729         Use that to define FS_TYPE, which is now used to make
88730         the getfsstat link test tighter.
88731
88732 2001-09-30  Jim Meyering  <meyering@lucent.com>
88733
88734         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
88735         Include <sys/ucred.h>, for Apple Darwin.
88736         Include sys/mount.h and sys/fs_types.h only if available.
88737         (FS_TYPE): Define.
88738         (read_filesystem_list): Use FS_TYPE.
88739
88740 2001-09-29  Paul Eggert  <eggert@twinsun.com>
88741
88742         * lib/exclude.c (excluded_filename): 0 -> false, since it's
88743         a boolean context.
88744
88745 2001-09-29  Jim Meyering  <meyering@lucent.com>
88746
88747         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
88748         [one-argument getmntent function]): Include stdio.h before mntent.h.
88749         SunOS 4.1.x needs it for the declaration of `FILE'.
88750         Patch by Volker Borchert.
88751
88752         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
88753         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
88754         sys/fs_types.h, and make the link-test for getfsstat guard #include
88755         directives with appropriate #if HAVE_*_H tests so that we can
88756         detect getfsstat on Apple Darwin1.3.7 systems.
88757         Reported by Nelson Beebe.
88758         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
88759
88760 2001-09-28  Paul Eggert  <eggert@twinsun.com>
88761
88762         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
88763         #defines strtoimax.  Also treat the other strto* functions
88764         like strtoimax.
88765
88766         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
88767         Check for strtoul and strtoumax,
88768         as those declarations are made even in the signed case.
88769         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
88770         Likewise, for strtol and strtoimax.
88771
88772 2001-09-28  Paul Eggert  <eggert@twinsun.com>
88773
88774         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
88775         #defines strtoimax.  Also treat the other strto* functions
88776         like strtoimax.
88777
88778         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
88779         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
88780         (strtoimax, strtoumax): Do not declare if already defined as a macro.
88781
88782 2001-09-26  Jim Meyering  <meyering@lucent.com>
88783
88784         Most macros in unlocked-io.h had the wrong number of arguments.
88785         * lib/gen-uio: New script.
88786         (USE_UNLOCKED_IO): Define to 1 if not already defined.
88787         * lib/unlocked-io.hin: Remove file.
88788         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
88789         rather than trying to embed it here.
88790         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
88791         Reported by Padraig Brady.
88792
88793 2001-09-25  Volker Borchert  <bt@teknon.de>
88794
88795         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
88796         `result'.
88797
88798 2001-09-24  Jim Meyering  <meyering@lucent.com>
88799
88800         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
88801
88802 2001-09-23  Jim Meyering  <meyering@lucent.com>
88803
88804         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
88805         instead of the mere test for existence of mntent.h.  The latter
88806         would get a false-positive on AIX 3.4 systems.
88807         In the outer getmntent if-block, don't die if neither of the getmntent
88808         tests succeeds.  Instead, just fall through and continue with the
88809         remaining tests.
88810
88811 2001-09-23  Jim Meyering  <meyering@lucent.com>
88812
88813         * lib/mountlist.c: Remove useless parentheses in #if directives.
88814         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
88815         the deprecated MOUNTED symbol is no longer defined in mntent.h.
88816
88817 2001-09-22  Jim Meyering  <meyering@lucent.com>
88818
88819         * m4/gettext.m4: New file.  From gettext.
88820         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
88821         * m4/progtest.m4: Likewise
88822         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
88823         * m4/glibc21.m4: Likewise.
88824
88825         * m4/libintl.m4: Remove.  No longer used.
88826
88827 2001-09-22  Jim Meyering  <meyering@lucent.com>
88828
88829         * lib/localcharset.c: Update from latest gettext.
88830         * lib/config.charset: Likewise.
88831
88832 2001-09-20  Jim Meyering  <meyering@lucent.com>
88833
88834         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
88835         strtoimax.
88836         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
88837         strtoumax.
88838
88839 2001-09-20  Jim Meyering  <meyering@lucent.com>
88840
88841         * lib/xstrtol.c (strtoimax): Guard declaration with
88842         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
88843         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
88844         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
88845         (strtoumax): Likewise, for completeness (it wasn't necessary).
88846
88847 2001-09-17  Paul Eggert  <eggert@twinsun.com>
88848
88849         * lib/strtoimax.c (HAVE_LONG_LONG):
88850         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
88851         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
88852         to work around bug in IBM C compiler.
88853
88854 2001-09-17  Jim Meyering  <meyering@lucent.com>
88855
88856         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
88857         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
88858         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
88859         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
88860         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
88861         whenever the right hand side need not be expanded by the shell.
88862
88863 2001-09-16  Paul Eggert  <eggert@twinsun.com>
88864
88865         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
88866         library.  It's not correct, as some older glibcs are buggy.
88867         fnmatch wasn't fixed until glibc 2.2.
88868
88869         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
88870         special shell magic here.
88871
88872 2001-09-16  Jim Meyering  <meyering@lucent.com>
88873
88874         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
88875         * m4/jm-macros.m4: Require it.
88876
88877 2001-09-16  Jim Meyering  <meyering@lucent.com>
88878
88879         * lib/mkdir.c: New file.
88880
88881 2001-09-15  Jim Meyering  <meyering@lucent.com>
88882
88883         * m4/jm-macros.m4: Check for help2man.
88884
88885 2001-09-11  Jim Meyering  <meyering@lucent.com>
88886
88887         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
88888         The body, by Paul Eggert, was moved here from configure.in.
88889         * m4/jm-macros.m4: Require UTILS_HOST_OS.
88890
88891 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88892
88893         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
88894         (jm_PREREQ): Use it.
88895
88896 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88897
88898         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
88899         Use ssize_t, not int, to store result of readlink.
88900         Check for ssize_t overflow as well as size_t overflow,
88901         as POSIX says the result of readlink is implementation-defined
88902         when ssize_t overflows.
88903         Remove unnecessary cast to char*.
88904         Use free+malloc instead of realloc, as the storage doesn't need
88905         to be preserved and it's clearer and can be more efficient that way.
88906         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
88907         * lib/xreadlink.h (xreadlink): Update prototype.
88908
88909 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88910
88911         * lib/xgetcwd.c: Revert some of the previous change; intead,
88912         fix the HAVE_GETCWD_NULL code to behave more like the
88913         !HAVE_GETCWD_NULL code used to.
88914
88915         Include "xalloc.h".
88916         (xgetcwd): Do not return NULL when memory is exhausted; instead,
88917         invoke xalloc_die.
88918
88919 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88920
88921         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
88922         sys/param.h, as pathmax.h includes them.
88923
88924 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88925
88926         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
88927         (jm_PREREQ_XGETCWD): New macro.
88928
88929         * m4/getcwd.m4: New file.
88930
88931 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88932
88933         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
88934         like the HAVE_GETCWD_NULL code.
88935         Include pathmax.h if not HAVE_GETCWD.
88936         Do not include xalloc.h.
88937         (INITIAL_BUFFER_SIZE): New symbol.
88938         Do not use xmalloc / xrealloc, since the caller is responsible for
88939         handling errors.  Preserve errno around `free' during failure.
88940         Do not overrun buffer when using getwd.
88941
88942 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88943
88944         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
88945         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
88946         getcwd (NULL, 0).
88947
88948 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88949
88950         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
88951         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
88952         spotted by Jim Meyering.
88953
88954 2001-09-03  Jim Meyering  <meyering@lucent.com>
88955
88956         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
88957         failure.
88958
88959 2001-09-02  Jim Meyering  <meyering@lucent.com>
88960
88961         * lib/error.c: Update from GNU libc.
88962
88963 2001-09-01  Jim Meyering  <meyering@lucent.com>
88964
88965         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
88966         Used by df.
88967
88968 2001-09-01  Jim Meyering  <meyering@lucent.com>
88969
88970         * lib/xreadlink.c: New file.
88971         * lib/xreadlink.h: New file.
88972         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
88973         xreadlink.h.
88974
88975         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
88976         doesn't conflict with sparc Solaris 7's definition in
88977         /usr/include/sys/int_types.h.
88978
88979         * lib/exclude.c: Use `""', not `<>' to #include non-system header
88980         files.
88981         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
88982         and strncasecmp as r-values.  Unixware didn't have declarations.
88983
88984 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88985
88986         * lib/xstrtol.h: Add copyright notice.
88987         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
88988         LONGINT_INVALID_SUFFIX_CHAR.
88989
88990 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88991
88992         * lib/xstrtol.c (strtoimax): New decl.
88993
88994 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88995
88996         * lib/xgetcwd.c: Don't include pathmax.h.
88997         Include stdlib.h and unistd.h if available.
88998         Include xalloc.h.
88999         (xmalloc, xstrdup, free): Remove decls.
89000         (xgetcwd): Don't assume sizes fit in unsigned.
89001         Check for overflow when computing sizes.
89002         Simplify reallocation code.
89003
89004 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89005
89006         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
89007         a directory's st_size can have an arbitrary value, so the old
89008         usage could waste an arbitrary amount of memory.  All uses
89009         changed.
89010         * lib/savedir.h: Update prototype.
89011
89012 2001-08-31  Paul Eggert  <eggert@twinsun.com>
89013
89014         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
89015
89016         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
89017         old strtoimax.c.
89018
89019         Also, make the following further changes to make this file's
89020         configuration more similar to that of strtol.c:
89021         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
89022         (strtoumax, uintmax_t, strtoull, strtol): Remove.
89023         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
89024         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
89025         changed to signed values.
89026
89027         And make the following changes as well:
89028         Fix copyright notice, as 1999 was missing.
89029         (verify): New macro.
89030         (strtoimax): Check sizes at compile-time, not run-time.
89031         Prefer strtol to strtoll if both work.
89032         (main): Remove; it was not that useful and was a pain to maintain.
89033
89034         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
89035
89036 2001-08-31  Jim Meyering  <meyering@lucent.com>
89037
89038         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
89039         Use an initial, malloc'd, buffer of length 128 rather than
89040         a statically allocated one of length 1024.
89041
89042 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89043
89044         Simplify code, partly by assuming autoconf 2.52 semantics.
89045
89046         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
89047
89048         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
89049         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
89050         All uses removed.
89051         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
89052         Move AC_REQUIRE to next-to-top level, to avoid confusion.
89053         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
89054         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
89055         jm_AC_HEADER_INTTYPES_H.
89056         * m4/jm-macros.m4 (jm_MACROS): Likewise.
89057
89058         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
89059
89060         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
89061         Quote first arg of AC_DEFUN.
89062         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
89063         since they are needed to parse the include file even if we need
89064         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
89065         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
89066         but with opposite signedness.
89067
89068 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89069
89070         Merge 'exclude' changes from tar 1.13.22.
89071         This fixes one or two unlikely storage allocation overflow bugs,
89072         but doesn't change user-visible behavior otherwise.
89073
89074 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89075
89076         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
89077         (jm_PREREQ_EXCLUDE): New macro.
89078
89079 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89080
89081         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
89082         tm to be declared.
89083
89084 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89085
89086         * lib/hash.c: Remove '2001' from copyright notice.
89087
89088 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89089
89090         * lib/full-write.h: New file.
89091         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
89092         * lib/full-write.c: Correct credits, as cccp.c no longer
89093         exists and anyway it was so heavily changed from the old cccp
89094         code as to be unrecognizable.  Include full-write.h.
89095         (full_write): Return size_t, with short writes meaning failure.
89096         All callers changed.  This fixes a bug with large buffers
89097         on 64-bit hosts.
89098         * lib/utime.c: Include full-write.h.
89099
89100 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89101
89102         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
89103         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
89104         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
89105         Include if available.
89106         (<xalloc.h>): Include
89107         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
89108         (verify): New macro.  Use it to verify that EXCLUDE macros do not
89109         collide with FNM macros.
89110         (struct patopts): New struct.
89111         (struct exclude): Use it, as exclude patterns now come with options.
89112         (new_exclude): Support above changes.
89113         (new_exclude, add_exclude_file):
89114         Initial size must now be a power of two to simplify overflow checking.
89115         (free_exclude, fnmatch_no_wildcards): New function.
89116         (excluded_filename): No longer requires options arg, as the options
89117         are determined by add_exclude.  Now returns bool, not int.
89118         (excluded_filename, add_exclude):
89119         Add support for the fancy new exclusion options.
89120         (add_exclude, add_exclude_file): Now takes int options arg.
89121         Check for arithmetic overflow when computing sizes.
89122         (add_exclude_file): xrealloc might modify errno, so don't
89123         realloc until after errno might be used.
89124
89125         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
89126         New macros.
89127         (free_exclude): New decl.
89128         (add_exclude, add_exclude_file): Now takes int options arg.
89129         (excluded_filename): No longer requires options arg, as the options
89130         are determined by add_exclude.  Now returns bool, not int.
89131
89132 2001-08-30  Paul Eggert  <eggert@twinsun.com>
89133
89134         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
89135
89136 2001-08-27  Jim Meyering  <meyering@lucent.com>
89137
89138         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
89139
89140         * lib/version-etc.c (N_): Remove definition.
89141         Revert most of last change.
89142         Instead, simply don't mark the `Copyright...' string for translation.
89143         Based on advice from Paul Eggert.
89144
89145         * lib/strtoxmax.c: Tweak comment.
89146
89147 2001-08-26  Jim Meyering  <meyering@lucent.com>
89148
89149         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
89150
89151         * m4/xstrtoimax.m4: New file.
89152         * m4/xstrtoumax.m4: Add comments explaining why we
89153         AC_REPLACE_FUNCS(strtol).
89154
89155 2001-08-26  Jim Meyering  <meyering@lucent.com>
89156
89157         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
89158         of copyright with `%s' so translators don't get an untranslated
89159         message in 2002.
89160         (COPYRIGHT_YEAR): Define.
89161         (version_etc): Use fprintf rather than fputs.
89162         Suggestion from Ulrich Drepper.
89163
89164         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
89165
89166         * lib/strtoll.c: New file, from GNU libc.
89167         * lib/xstrtoimax.c: New file.
89168
89169         * lib/xstrtol.h: Add xstrtoimax.
89170         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
89171         * lib/strtoimax.c: New file.  Likewise, but first define
89172         STRTOUXMAX_SIGNED.
89173
89174         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
89175         ...
89176         * lib/strtoxmax.c: ... then renamed to this.
89177
89178 2001-08-18  Paul Eggert  <eggert@twinsun.com>
89179
89180         * m4/inttypes.m4: Add AC_PREREQ(2.13).
89181         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
89182         (jm_AC_TYPE_INTMAX_T): New macro.
89183         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
89184
89185         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
89186
89187         * m4/longlong.m4: Renamed from ulonglong.m4.
89188         * m4/inttypes.m4: Renamed from inttypes_h.m4.
89189         * m4/uintmax_t.m4: Removed.
89190
89191 2001-08-13  Paul Eggert  <eggert@twinsun.com>
89192
89193         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
89194         Port to Solaris 8, where 'sed' requires a space after the 'r'
89195         command, and where sh dislikes "$/".  Clean up the spacing a bit.
89196         Redirect output to $tmp just once.
89197
89198 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
89199
89200         * lib/addext.c (<errno.h>): Include.
89201         (errno): Declare if not defined.
89202         (addext): Work correctly when pathconf returns -1 and leaves
89203         errno alone because there is no limit.  Also, work even if
89204         pathconf returns a value greater than SIZE_MAX.
89205
89206 2001-08-12  Jim Meyering  <meyering@lucent.com>
89207
89208         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
89209         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
89210         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
89211         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
89212         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
89213         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
89214         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
89215         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
89216         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
89217         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
89218         utime.m4, utimes.m4, xstrtoumax.m4:
89219         Quote the first argument in each use of AC_DEFUN.
89220
89221 2001-08-12  Jim Meyering  <meyering@lucent.com>
89222
89223         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
89224         Simply `return getcwd (NULL, 0);'.
89225         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
89226         Use 1300 as initial value for length, not PATH_MAX.
89227
89228         * lib/pathmax.h: Clean up cpp syntax.
89229
89230 2001-08-12  Jim Meyering  <meyering@lucent.com>
89231
89232         * lib/gettimeofday.c: New file.
89233         * lib/gtod.h: New file.
89234         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
89235
89236 2001-08-05  Jim Meyering  <meyering@lucent.com>
89237
89238         * m4/jm-macros.m4: Require autoconf-2.52.
89239
89240 2001-08-04  Jim Meyering  <meyering@lucent.com>
89241
89242         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
89243         stmt, to get in sync with glibc.
89244
89245 2001-08-03  Paul Eggert  <eggert@twinsun.com>
89246
89247         The following changes are from gettext 0.10.39 as maintained by
89248         Bruno Haible.
89249
89250         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
89251         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
89252         with inverted sense.  All uses changed.
89253
89254         * lib/mbswidth.c: Don't include <limits.h>.
89255         Include <stdlib.h> and <string.h> unconditionally.
89256         (iswcntrl, mbsinit, ISCNTRL): New macros.
89257         (mbsnwidth): Use K&R style function declarations.
89258         Don't bother checking for MB_LEN_MAX == 1, since the compiler
89259         can optimize it when MB_CUR_MAX == 1.
89260         The width of control characters is zero, not 1.
89261
89262 2001-08-03  Paul Eggert  <eggert@twinsun.com>
89263
89264         The following changes are from gettext 0.10.39 as maintained by
89265         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
89266
89267         * m4/codeset.m4: Upgrade to serial AM1.
89268         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
89269         all uses changed.  Quote first arg of AC_DEFUN.
89270         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
89271
89272         * m4/iconv.m4: Upgrade to serial AM2.
89273         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
89274         Add --with-libconv-prefix.
89275         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
89276         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
89277         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
89278         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
89279         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
89280
89281         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
89282         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
89283         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
89284         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
89285         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
89286         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
89287         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
89288         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
89289         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
89290
89291         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
89292         string.h any more.
89293
89294         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
89295         not the default value.
89296
89297         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
89298         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
89299         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
89300         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
89301         Also check for iswcntrl, used for wcwidth fallback.
89302         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
89303         to Autoconf 2.13.
89304
89305 2001-08-03  Jim Meyering  <meyering@lucent.com>
89306
89307         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
89308         as it was in the original.  Reported by Paul Eggert.
89309
89310 2001-07-16  Jim Meyering  <meyering@lucent.com>
89311
89312         * m4/gettimeofday.m4: New file.
89313         Prompted by a report from Bernhard Baehr.
89314
89315 2001-07-15  Jim Meyering  <meyering@lucent.com>
89316
89317         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
89318         stuff. Now it's in ../Makefile.cfg.
89319
89320 2001-07-15  Jim Meyering  <meyering@lucent.com>
89321
89322         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
89323         (BUILT_SOURCES): Add unlocked-io.h.
89324         (io_functions): Define.
89325         (unlocked-io.h): New rule.
89326         (DISTCLEANFILES): Add unlocked-io.h.
89327         (all-local): Depend on unlocked-io.h, to ensure it is created.
89328
89329         * lib/unlocked-io.hin: New file
89330
89331         * lib/regex.c: Update from glibc.
89332
89333 2001-07-05  Jim Meyering  <meyering@lucent.com>
89334
89335         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
89336         recommendation.
89337         (libfetish_a_SOURCES): Put all .h files here instead.
89338         Remove a thus-exposed (better checks in automake) duplicate and
89339         two unnecessary .h files.
89340
89341 2001-07-04  Jim Meyering  <meyering@lucent.com>
89342
89343         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
89344         that generates jm-glibc-io.m4 so that it doesn't trigger any make
89345         distcheck failure.
89346
89347 2001-07-02  Jim Meyering  <meyering@lucent.com>
89348
89349         The following changes were prompted by suggestions from Bruno Haible.
89350
89351         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
89352         is now generated.
89353         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
89354         definition of EXTRA_DIST.
89355         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
89356         ensure that the generated file is created/updated whenever the list
89357         of $(unlocked_functions) is changed.
89358         (jm-glibc-io.m4): New rule.
89359         (unlocked-io.h): New rule -- currently unused.
89360
89361 2001-06-24  Jim Meyering  <meyering@lucent.com>
89362
89363         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
89364         unmatched right bracket, rather than kludging it with an extra,
89365         falsely-matching quote in a comment.  Patch by Akim Demaille.
89366
89367 2001-06-11  Jim Meyering  <meyering@lucent.com>
89368
89369         * lib/regex.c: Update from GNU libc.
89370
89371 2001-05-27  Jim Meyering  <meyering@lucent.com>
89372
89373         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
89374         Check for ut_type in struct utmp.
89375
89376 2001-05-27  Jim Meyering  <meyering@lucent.com>
89377
89378         * lib/readutmp.h (UT_TYPE): Define.
89379
89380 2001-05-24  Jim Meyering  <meyering@lucent.com>
89381
89382         * lib/argmatch.c: Include "quote.h".
89383         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
89384         quote function.  Reported by Göran Uddeborg.
89385
89386 2001-05-22  Jim Meyering  <meyering@lucent.com>
89387
89388         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
89389         now that we use the package-supplied version unconditionally.
89390         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
89391
89392 2001-05-21  Jim Meyering  <meyering@lucent.com>
89393
89394         * m4/regex.m4: Change a couple backticks to single quotes to avoid
89395         shell syntax errors.
89396
89397 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
89398
89399         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
89400
89401 2001-05-20  Paul Eggert  <eggert@twinsun.com>
89402
89403         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
89404         Don't bother to check library strftime, since
89405         we'll be using our own my_strftime function anyway.
89406         Define my_strftime instead of strftime.
89407
89408 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
89409
89410         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
89411         which is not yet declared.
89412
89413 2001-05-15  Jim Meyering  <meyering@lucent.com>
89414
89415         * m4/regex.m4: Use proper quoting so brackets appear in the test
89416         program.
89417         Reported by, and with help from, Bruno Haible.
89418
89419 2001-05-13  Jim Meyering  <meyering@lucent.com>
89420
89421         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
89422         undefined.
89423
89424 2001-05-11  Paul Eggert  <eggert@twinsun.com>
89425
89426         dirname code cleanup.  base_name now behaves more compatibly
89427         with POSIX basename when given file names that have trailing
89428         slashes, and similarly for dir_name.  Add new primitives
89429         base_len and dir_len.  Put the directory-name-related decls
89430         into dirname.h.
89431
89432         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
89433         * lib/backupfile.c (base_name): Likewise.
89434         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
89435         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
89436         * lib/makepath.c (strip_trailing_slashes): Likewise.
89437         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
89438         ISSLASH): Likewise.
89439         * lib/rename.c (strip_trailing_slashes): Likewise.
89440         * lib/same.c (base_name): Likewise.
89441         * lib/stripslash.c (ISSLASH): Likewise.
89442
89443         * lib/addext.c: Include <dirname.h> after size_t is defined.
89444         * lib/backupfile.c: Likewise.
89445
89446         * lib/addext.c (addext): Use base_len to trim redundant
89447         trailing slashes instead of doing it ourselves.
89448         But do not trim the last slash if it is not redundant.
89449
89450         * lib/backupfile.c (find_backup_file_name,
89451         max_backup_version): Use base_len instead of rolling it ourselves.
89452         Handle the case of "" and (on DOS) "C:" correctly.
89453
89454         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
89455         needed. Include <string.h>, <dirname.h>.
89456         (base_name): Allow file names ending in slashes, other than names
89457         that are all slashes.  In this case, return the basename followed
89458         by the slashes.  This is more general, and can be used in places
89459         where the original base_name purposely had an assertion failure.
89460         (base_len): New function.
89461
89462         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
89463         Do not include <assert.h>; no longer needed.
89464         Include xalloc.h.
89465         (memrchr): Remove decl.
89466         (dir_name_r): Remove.
89467         (dir_len): Renamed from dirlen.  All callers changed.
89468         Rewrite in terms of base_name, for simplicity and consistency.
89469         (dir_name): Never return NULL.  All callers changed.
89470         Do not include <stdlib.h> in test program; no longer needed.
89471         return 0; is fine for test program.
89472
89473         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
89474         New macros.
89475         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
89476
89477         * lib/path-concat.c (path_concat): Use base_len to compute
89478         base length, not strlen; this means we cannot rely on memcpy
89479         to null-terminate.
89480
89481         * lib/same.c (STREQ): Remove.
89482         (same_name): Handle the case where the basename ends in trailing '/'.
89483
89484         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
89485         a slash was stripped.  Do not strip the last slash after a
89486         file system prefix.
89487
89488 2001-05-11  Paul Eggert  <eggert@twinsun.com>
89489
89490         * lib/Makefile.am (libfetish_a_SOURCES):
89491         Add strftime.c, since we now compile it on all hosts.
89492
89493         * lib/strftime.c (my_strftime):
89494         Define to nstrftime if emacs, but only if my_strftime is not defined.
89495         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
89496         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
89497         Add one more extra argument: a nanoseconds value.
89498         All uses changed.
89499         (ns): New macro.
89500         (my_strftime function): Add %N format.
89501         (emacs_strftimeu): Renamed from emacs_strftime,
89502         with extra ut argument.
89503
89504 2001-05-09  Paul Eggert  <eggert@twinsun.com>
89505
89506         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
89507
89508 2001-04-21  Jim Meyering  <meyering@lucent.com>
89509
89510         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
89511         doesn't interfere.
89512
89513 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
89514
89515         * m4/ftruncate.m4: Check for chsize.
89516         Link with ftruncate.o unconditionally if ftruncate is missing.
89517         This was required when cross-compiling to i586-mingw32msvc.
89518
89519 2001-04-08  Jim Meyering  <meyering@lucent.com>
89520
89521         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
89522         recomputed; that's necessary when the offset spans a DST transition.
89523         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
89524
89525 2001-04-02  Jim Meyering  <meyering@lucent.com>
89526
89527         * lib/regex.h, regex.c: Update from GNU libc.
89528
89529 2001-03-24  Jim Meyering  <meyering@lucent.com>
89530
89531         * m4/jm-macros.m4: Require autoconf-2.49d.
89532
89533 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
89534
89535         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
89536
89537 2001-03-19  Paul Eggert  <eggert@twinsun.com>
89538
89539         * lib/version-etc.c (version_etc_copyright): Update to 2001.
89540
89541 2001-03-17  Jim Meyering  <meyering@lucent.com>
89542
89543         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
89544         now that the version in autoconf is equivalent.
89545         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
89546
89547         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
89548         Suggestion from Akim Demaille.
89549
89550         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
89551         (jm_PREREQ_TEMPNAME): New function.
89552
89553 2001-03-16  Paul Eggert  <eggert@twinsun.com>
89554
89555         * lib/tempname.c (uint64_t): Define to uintmax_t if
89556         not defined, and if UINT64_MAX is not defined.
89557         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
89558         Reported by John David Anglin.
89559
89560 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
89561
89562         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
89563         resolve alias if codeset is empty.
89564         * lib/config.charset (BeOS): Use wildcard syntax.
89565
89566 2001-03-13  Jim Meyering  <meyering@lucent.com>
89567
89568         * lib/path-concat.c (path_concat)
89569         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
89570         concatenating e.g., `C:' and `foo'.
89571         From Bruno Haible.
89572
89573 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
89574
89575         * lib/localcharset.c (locale_charset): Don't use
89576         setlocale(LC_CTYPE,NULL). Don't return NULL.
89577         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
89578
89579 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
89580
89581         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
89582         support for DOS/DJGPP.
89583
89584 2001-03-01  Paul Eggert  <eggert@twinsun.com>
89585
89586         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
89587         lacks mkstemp.  Compile our own tempname.c if we compile our own
89588         mkstemp.c, as mkstemp relies on tempname.
89589
89590 2001-03-01  Jim Meyering  <meyering@lucent.com>
89591
89592         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
89593         AH_VERBATIM really does output its argument verbatim.
89594
89595 2001-02-28  Paul Eggert  <eggert@twinsun.com>
89596
89597         * lib/Makefile.am (libfetish_a_SOURCES):
89598         Add dup-safer.c, fopen-safer.c.
89599         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
89600
89601         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
89602         * lib/unistd-safer.h: New files.
89603
89604 2001-02-25  Paul Eggert  <eggert@twinsun.com>
89605
89606         The mkstemp replacement is taken from glibc 2.2.2, with some
89607         portability fixes for use outside glibc, as follows:
89608
89609         * lib/tempname.c (struct_stat64): New macro.
89610         (direxists, __gen_tempname): Use it.
89611         This avoids a portability problem with Solaris 8.
89612
89613         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
89614         (<stddef.h>, <stdint.h>, <string.h>):
89615         Include only if STDC_HEADERS || _LIBC.
89616         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
89617         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
89618         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
89619         (__set_errno): Define this macro if <errno.h> doesn't.
89620         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
89621         Define these macros if <stdio.h> doesn't.
89622         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
89623         Define these macros if <sys/stat.h>
89624         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
89625         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
89626         __xstat64): Define if not _LIBC.
89627         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
89628         (__gen_tempname): Invoke gettimeofday only if
89629         HAVE_GETTIMEOFDAY || _LIBC;
89630         otherwise, fall back on plain "time".
89631         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
89632
89633         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
89634
89635         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
89636
89637 2001-02-18  Paul Eggert  <eggert@twinsun.com>
89638
89639         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
89640
89641 2001-02-17  Paul Eggert  <eggert@twinsun.com>
89642
89643         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
89644         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
89645         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
89646         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
89647
89648 2001-02-17  Paul Eggert  <eggert@twinsun.com>
89649
89650         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
89651         Remove workaround macros for hosts that have mbrtowc but not
89652         mbstate_t, as we now insist on proper declarations for both
89653         before using mbrtowc.
89654
89655 2001-02-17  Jim Meyering  <meyering@lucent.com>
89656
89657         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
89658         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
89659         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
89660         UnixWare 7.1.1.
89661
89662         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
89663         rather than AC_CACHE_VAL.
89664
89665 2001-02-17  Jim Meyering  <meyering@lucent.com>
89666
89667         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
89668         around included file name.
89669
89670         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
89671
89672         * lib/strftime.c: Update from GNU libc (the only changes were to
89673         comments).
89674
89675 2001-02-17  Jim Meyering  <meyering@lucent.com>
89676
89677         * lib/regex.c: Update from libc.
89678
89679 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
89680
89681         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
89682         clash.
89683
89684 2001-02-16  Paul Eggert  <eggert@twinsun.com>
89685
89686         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
89687         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
89688         Reported by Mark Hounschell via Paul Eggert.
89689
89690 2001-02-07  Jim Meyering  <meyering@lucent.com>
89691
89692         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
89693
89694 2001-02-05  Jim Meyering  <meyering@lucent.com>
89695
89696         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
89697         it includes the patch required for `large file' support with at least
89698         HP-UX's 10.20 /bin/cc.
89699
89700 2001-02-03  Jim Meyering  <meyering@lucent.com>
89701
89702         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
89703         AS_IF, now that it works once again (mysteriously).
89704         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
89705
89706 2001-01-30  Jim Meyering  <meyering@lucent.com>
89707
89708         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
89709         * m4/chown.m4: Rename conftestchown to conftest.chown.
89710         * m4/rename.m4: s/conftestdir/conftest.d1/ and
89711         s/conftestdir2/conftest.d2/.
89712         * m4/utimes.m4: s/conftestdata/conftest.data/
89713         Inspired by Pavel Roskin's change in autoconf.
89714
89715 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
89716
89717         * lib/config.charset: Update for FreeBSD 4.2.
89718
89719 2001-01-27  Jim Meyering  <meyering@lucent.com>
89720
89721         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
89722         a use of AS_IF.
89723         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
89724
89725 2001-01-26  Jim Meyering  <meyering@lucent.com>
89726
89727         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
89728         quotearg.c includes it.
89729
89730 2001-01-26  Jim Meyering  <meyering@lucent.com>
89731
89732         * lib/quotearg.c: Include stddef.h.
89733         * lib/quote.c: Include stddef.h.
89734         Reported by Axel Kittenberger.
89735
89736         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
89737         line in double quotes so that it evokes a better diagnostic.
89738         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
89739         Reported by Axel Kittenberger.
89740
89741 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
89742
89743         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
89744         as if it was a `charset'.
89745
89746 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
89747
89748         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
89749         has const.
89750
89751 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
89752
89753         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
89754         to avoid a warning.  Add back 'const' to inptr.
89755
89756 2001-01-20  Jim Meyering  <meyering@lucent.com>
89757
89758         Be sure that headers are checked before used in code compiled
89759         for the type checks.
89760         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
89761         In place of that, invoke jm_CHECK_ALL_TYPES.
89762         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
89763         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
89764         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
89765         The check for ssize_t was mistakenly run before the test for unistd.h.
89766
89767         The configure-time check for stdbool.h was missing.
89768         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
89769         (jm_PREREQ_HASH): New function.
89770
89771 2001-01-17  Jim Meyering  <meyering@lucent.com>
89772
89773         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
89774         for autoconf-2.49c.
89775         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
89776
89777 2001-01-16  Jim Meyering  <meyering@lucent.com>
89778
89779         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
89780         From Bruno Haible.
89781
89782 2001-01-14  Jim Meyering  <meyering@lucent.com>
89783
89784         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
89785         foo and bar.  Create conftestdir/ in the script, not in the C code.
89786         Remove directories in the script, not in the C code.
89787         Remove conftestdir{,2} before trying to create the directory.
89788         Make the entire configure script fail if the mkdir fails.
89789
89790 2001-01-14  Jim Meyering  <meyering@lucent.com>
89791
89792         * lib/rename.c: New file.  From Volker Borchert.
89793         Include stdlib.h, string.h or strings.h, and xalloc.h.
89794         Use strip_trailing_slashes rather than open-coding it.
89795
89796 2001-01-03  Paul Eggert  <eggert@twinsun.com>
89797
89798         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
89799
89800 2001-01-03  Jim Meyering  <meyering@lucent.com>
89801
89802         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
89803         of local `inptr' to avoid warning with some system declarations of
89804         iconv.
89805
89806 2001-01-02  Volker Borchert  <bt@teknon.de>
89807
89808         * m4/rename.m4: New file.
89809         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
89810
89811 2001-01-01  Jim Meyering  <meyering@lucent.com>
89812
89813         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
89814         even on systems with utmpx.h.  It's necessary for the declaration of
89815         utmp's ut_user member.  Reported by Andreas Jaeger.
89816
89817         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
89818         available. They are required for the declarations of getgrgid and
89819         getpwuid resp.
89820         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
89821         Reported by Andreas Jaeger.
89822
89823 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
89824
89825         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
89826         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
89827         so `make install' also works in VPATH builds.
89828
89829 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
89830
89831         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
89832         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
89833         can be used in subdirectories.
89834
89835 2000-12-29  Paul Eggert  <eggert@twinsun.com>
89836
89837         * lib/modechange.c: Do not assume that mode_t uses the
89838         traditional octal encoding.  E.g. "chmod 1 FOO" should set
89839         the other-execute bit of FOO even if S_IXOTH != 1.
89840
89841         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
89842         WOTH, XOTH, ALLM): New macros.
89843         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
89844          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
89845         Use them.
89846         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
89847         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
89848         (mode_compile):
89849         No need to use uintmax_t; unsigned long is long enough.
89850         Don't bother to get suffix since we don't use it.
89851
89852 2000-12-26  Jim Meyering  <meyering@lucent.com>
89853
89854         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
89855         better with autoheader.
89856
89857 2000-12-24  Jim Meyering  <meyering@lucent.com>
89858
89859         * lib/hash.c (is_prime): Return explicit boolean values.
89860         (hash_get_first): Return NULL to appease Irix5.6's 89.
89861         Reported by Nelson Beebe.
89862
89863 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
89864
89865         * lib/localcharset.c (locale_charset): Add support for Win32.
89866
89867 2000-12-18  Paul Eggert  <eggert@twinsun.com>
89868
89869         * lib/physmem.h, lib/physmem.c: New files.
89870
89871         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
89872         (noinst_HEADERS): Add physmem.h.
89873
89874         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
89875         't' for compatibility with Solaris 8 sort.
89876
89877 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
89878
89879         * lib/config.charset: Add support for BeOS.
89880
89881 2000-12-17  Jim Meyering  <meyering@lucent.com>
89882
89883         * m4/dos.m4 (jm_AC_DOS): New file and macro.
89884         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
89885
89886 2000-12-16  Jim Meyering  <meyering@lucent.com>
89887
89888         This bug had a serious impact on chown: `chown N:M FILE' (for integer
89889         N and M) would have treated it like `chown N:N FILE'.
89890
89891         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
89892
89893 2000-12-16  Jim Meyering  <meyering@lucent.com>
89894
89895         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
89896         SHELLS_FILE to a file name that's useful on djgpp systems.
89897         Include stdlib.h.
89898         (ADDITIONAL_DEFAULT_SHELLS): Define.
89899         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
89900         Based mostly on a patch from Prashant TR.
89901
89902 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
89903
89904         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
89905         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
89906         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
89907
89908 2000-12-08  Andreas Schwab  <schwab@suse.de>
89909
89910         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
89911         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
89912
89913 2000-12-07  Jim Meyering  <meyering@lucent.com>
89914
89915         * lib/stripslash.c (ISSLASH): Define.
89916         (strip_trailing_slashes): Use ISSLASH rather than comparing against
89917         `/'.
89918         From Prashant TR.
89919
89920         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
89921         (dir_name_r): Declare this function as static.
89922         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
89923         manifest itself on a name containing a mix of slashes and
89924         backslashes.
89925         Make this function work with names starting with a DOS-style
89926         drive letter and colon prefix.
89927         (dir_name): Append `.' if necessary.
89928         Based mostly on patches from Prashant TR and Eli Zaretskii.
89929
89930         * lib/dirname.h (dir_name_r): Remove prototype.
89931
89932 2000-12-06  Paul Eggert  <eggert@twinsun.com>
89933
89934         * m4/off_t-format.m4: Remove this file.
89935         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
89936
89937 2000-12-06  Jim Meyering  <meyering@lucent.com>
89938
89939         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
89940         replacement strtoull, we may well need the replacement strtoul, too.
89941         Check for declarations of strtoul and strtoull.
89942         Check for strtol.  Mainly as a cue to cause automake to include
89943         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
89944         Check for limits.h -- strtol.c needs it.
89945
89946 2000-12-05  Jim Meyering  <meyering@lucent.com>
89947
89948         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
89949
89950 2000-12-04  Jim Meyering  <meyering@lucent.com>
89951
89952         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
89953         Also include memory.h, stdlib.h, unistd.h if appropriate.
89954         Reported by Andreas Jaeger (conflicting declaration of malloc).
89955
89956 2000-12-02  Jim Meyering  <meyering@lucent.com>
89957
89958         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
89959         * m4/jm-macros.m4 (jm_MACROS): require it.
89960
89961 2000-12-02  Jim Meyering  <meyering@lucent.com>
89962
89963         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
89964
89965 2000-12-01  Paul Eggert  <eggert@twinsun.com>
89966
89967         * lib/memrchr.c: Include <config.h> before any system include file.
89968
89969 2000-11-30  Jim Meyering  <meyering@lucent.com>
89970
89971         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
89972
89973 2000-11-30  Jim Meyering  <meyering@lucent.com>
89974
89975         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
89976
89977 2000-11-29  Paul Eggert  <eggert@twinsun.com>
89978
89979         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
89980
89981 2000-11-26  Jim Meyering  <meyering@lucent.com>
89982
89983         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
89984
89985 2000-11-22  Paul Eggert  <eggert@twinsun.com>
89986
89987         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
89988         size of (size_t) -1; it's not portable.
89989
89990 2000-11-17  Jim Meyering  <meyering@lucent.com>
89991
89992         * lib/strstr.c: Update from GNU libc.
89993
89994 2000-11-17  Akim Demaille  <akim@epita.fr>
89995
89996         * lib/obstack.h: Formatting changes.
89997         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
89998         prevent type checking.
89999         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
90000         cast the value to (void *): assigning a `foo *' to a `void *'
90001         variable is valid.
90002         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
90003
90004 2000-11-16  Jim Meyering  <meyering@lucent.com>
90005
90006         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
90007
90008 2000-11-11  Jim Meyering  <meyering@lucent.com>
90009
90010         * lib/error.c: Add a couple #includes, merging from GNU libc version.
90011
90012 2000-11-10  Jim Meyering  <meyering@lucent.com>
90013
90014         * lib/obstack.h: Update from GNU libc.
90015         * lib/obstack.c: Likewise.
90016
90017 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
90018
90019         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
90020
90021 2000-11-06  Paul Eggert  <eggert@twinsun.com>
90022
90023         * lib/getusershell.c (setusershell): Use rewind rather than
90024         fseek/fseeko, to avoid configuration hassles with fseeko.
90025         Don't bother opening SHELLS_FILE if shellstream is NULL;
90026         it's not necessary.
90027
90028 2000-11-05  Jim Meyering  <meyering@lucent.com>
90029
90030         * lib/makepath.h (make_dir): Declare.
90031         * lib/makepath.c (make_dir): Remove `static' attribute.
90032         Tweak a comment.
90033
90034 2000-11-04  Jim Meyering  <meyering@lucent.com>
90035
90036         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
90037
90038 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
90039
90040         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
90041         last one in a bucket, advance to the next bucket.
90042
90043 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
90044
90045         * lib/fnmatch.c: Do not comment out all the code if we are using
90046         the GNU C library, because in some cases we are replacing buggy
90047         code in the GNU C library itself.
90048
90049 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
90050
90051         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
90052         (regex_compile): Catch bogus \(\1\).
90053
90054 2000-10-30  Paul Eggert  <eggert@twinsun.com>
90055
90056         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
90057         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
90058         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
90059
90060 2000-10-30  Paul Eggert  <eggert@twinsun.com>
90061
90062         * lib/error.h, getline.h, modechange.h:
90063         Remove "2000" from Copyright line, as the file hasn't been
90064         changed this year other than in the copyright notice.
90065
90066         * lib/xalloc.h: Add "2000" to Copyright line, as this file
90067         was changed this year.
90068
90069 2000-10-29  Jim Meyering  <meyering@lucent.com>
90070
90071         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
90072         renaming.
90073         * m4/ls-mntd-fs.m4: Likewise
90074
90075 2000-10-29  Jim Meyering  <meyering@lucent.com>
90076
90077         * lib/xstat.in: Fix grammar in comment.
90078
90079 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
90080
90081         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
90082         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
90083         doesn't define __restrict_arr.
90084
90085 2000-10-28  Jim Meyering  <meyering@lucent.com>
90086
90087         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
90088         (jm_PREREQ_MEMCHR): New function.
90089
90090 2000-10-28  Jim Meyering  <meyering@lucent.com>
90091
90092         * lib/memchr.c: Update from libc.
90093         Adjust for portability:
90094         [HAVE_STDLIB_H]: Include stdlib.h.
90095         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
90096         Undef __memchr, too.
90097         [!weak_alias]: Define __memchr to memchr.
90098
90099         * lib/regex.c: Update from libc.
90100         * lib/regex.h: Likewise.
90101         * lib/getopt1.c: Likewise.
90102         * lib/memcmp.c: Likewise.
90103
90104         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
90105         Avoid using fseek, when possible -- it's broken by design.
90106         Patch by Ulrich Drepper.
90107
90108 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
90109
90110         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
90111         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
90112         Giving in to popular pressure to shut up the compiler with casts.
90113
90114 2000-10-26  Jim Meyering  <meyering@lucent.com>
90115
90116         * lib/strftime.c: Update from libc.
90117
90118 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
90119
90120         * regex.c: More `unsigned char' -> `re_char' changes.
90121         Also change several `int' into `re_wchar_t'.
90122         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
90123         (PUSH_FAILURE_POINTER): Don't cast any more.
90124         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
90125         We want GCC to complain, since this piece of code makes
90126         re_match non-reentrant, which *should* be fixed.
90127         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
90128         (EXTEND_BUFFER): Use RETALLOC.
90129         (SET_LIST_BIT): Don't cast.
90130         (re_wchar_t): New type.
90131         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
90132         that those two functions will always properly return.
90133         (IMMEDIATE_QUIT_CHECK): Cast to void.
90134         (analyse_first): Use recursion rather than an explicit stack.
90135         (re_compile_fastmap): Can't fail anymore.
90136         (re_search_2): Don't check re_compile_fastmap for failure.
90137         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
90138         Now also sets the new value (passed in a new argument).
90139         (re_match_2_internal): Use it.
90140         Also, use a new var `reg' of type size_t when looping through regs
90141         rather than reuse the inappropriate `mcnt'.
90142
90143 2000-10-25  Jim Meyering  <meyering@lucent.com>
90144
90145         * lib/obstack.c: Update from libc.
90146
90147 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
90148
90149         * regex.c (regex_compile): Change the way of handling a range from
90150         a char less than 256 to a char not less than 256.
90151
90152 2000-10-24  Andrew Innes  <andrewi@gnu.org>
90153
90154         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
90155         NT-Emacs only.
90156         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
90157         so that re_search functions only quit when callers expect them to.
90158
90159 2000-10-23  Jim Meyering  <meyering@lucent.com>
90160
90161         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
90162         wrong.  That set_locale call must not have any side effects.
90163         From Paul Eggert.
90164
90165 2000-10-22  Jim Meyering  <meyering@lucent.com>
90166
90167         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
90168         [CYCLIC]: Remove now-unused definition.
90169
90170         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
90171         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
90172         Suggestion from Ulrich Drepper.
90173
90174 2000-10-21  Jim Meyering  <meyering@lucent.com>
90175
90176         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
90177         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
90178         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
90179
90180 2000-10-21  Jim Meyering  <meyering@lucent.com>
90181
90182         * lib/dirname.c (memrchr): Declare if necessary.
90183         (dir_name): Remove the restriction that there be no
90184         trailing slashes.  Now, this code skips past them, effectively
90185         ignoring them.
90186         [TEST_DIRNAME] (main): New unit tests.
90187
90188         * lib/memrchr.c: New file from GNU libc.
90189         Undef __memrchr, too.
90190         [!weak_alias]: Define __memrchr to memrchr.
90191         Guard weak_alias use with `#ifdef weak_alias'.
90192
90193 2000-10-21  Jim Meyering  <meyering@lucent.com>
90194
90195         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
90196         (dir_name): Use dir_name_r.
90197         * lib/dirname.h (dir_name_r): Declare it.
90198
90199 2000-10-17  Jim Meyering  <meyering@lucent.com>
90200
90201         * lib/quote.h (PARAMS): Define and use.
90202         Reported by Akim Demaille.
90203
90204         * lib/getopt.c: Update from libc.
90205
90206 2000-10-16  Jim Meyering  <meyering@lucent.com>
90207
90208         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
90209         setlocale.
90210         From Jan Fedak.
90211
90212 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
90213
90214         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
90215
90216 2000-09-25  Jim Meyering  <meyering@lucent.com>
90217
90218         * lib/md5.h (rol): Define (from GnuPG).
90219
90220         * lib/sha.c: Give credit (GnuPG) where due.
90221         (M): Use rol rather than open-coding it.
90222         Add a FIXME comment.
90223
90224 2000-09-21  Jim Meyering  <meyering@lucent.com>
90225
90226         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
90227         Reported by Michael Stone.
90228
90229 2000-09-20  Jim Meyering  <meyering@lucent.com>
90230
90231         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
90232         (noinst_HEADERS): Add sha.h.
90233         Based on code from Scott G. Miller and from GnuPG.
90234
90235 2000-09-18  Jim Meyering  <meyering@lucent.com>
90236
90237         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
90238         LIBS. Otherwise, everyone ends up linking with -lelf for some
90239         configurations.
90240         Reported by Mike Stone.
90241
90242 2000-09-15  Jim Meyering  <meyering@lucent.com>
90243
90244         * lib/regex.c: Update from libc.
90245
90246 2000-09-10  Jim Meyering  <meyering@lucent.com>
90247
90248         * lib/getopt.c (_getopt_internal): Update from glibc.
90249
90250 2000-09-09  Jim Meyering  <meyering@lucent.com>
90251
90252         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
90253         think it should be used as a general replacement for isascii.
90254         * lib/fnmatch.c: Likewise.
90255         * lib/mbswidth.c: Likewise
90256         * lib/regex.c: Likewise.
90257
90258         Don't use atoi.
90259         * lib/userspec.c: Include sys/param.h and limits.h.
90260         Include xstrtol.h.
90261         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90262         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
90263         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
90264         UID, GID.  Check range.
90265
90266 2000-09-06  Jim Meyering  <meyering@lucent.com>
90267
90268         * lib/getopt.c (_getopt_internal): Update from glibc.
90269
90270 2000-08-30  Jim Meyering  <meyering@lucent.com>
90271
90272         * lib/strftime.c: Merge in changes from GNU libc.
90273
90274 2000-08-26  Jim Meyering  <meyering@lucent.com>
90275
90276         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
90277         * m4/fpending.m4: New file.
90278
90279 2000-08-26  Jim Meyering  <meyering@lucent.com>
90280
90281         * lib/closeout.c: Include "__fpending.h".
90282         (close_stdout_status): Return right away if there's nothing to flush.
90283
90284         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
90285         * lib/__fpending.c: New file.
90286         * lib/__fpending.h: New file.
90287
90288 2000-08-20  Jim Meyering  <meyering@lucent.com>
90289
90290         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
90291         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
90292         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
90293
90294 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
90295
90296         Improve fileutils installation on systems where running
90297         programs (like install) can't be unlinked.
90298         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
90299         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
90300
90301 2000-08-07  Paul Eggert  <eggert@twinsun.com>
90302
90303         Standardize on "memory exhausted" instead of "Memory exhausted"
90304         or "virtual memory exhausted".
90305         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
90306         "virtual memory exhausted".
90307         * lib/same.c (same_name): Invoke xalloc_die instead of printing
90308         our own message.
90309         * lib/userspec.c (parse_user_spec): Likewise.
90310         * lib/bumpalloc.h: comment fix
90311         * lib/same.c, userspec.c: Include xalloc.h.
90312
90313         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
90314         not char *const and pointing to a constant array.
90315         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
90316         (xrealloc): Comment fix.
90317
90318         * lib/userspec.c (parse_user_spec):
90319         Don't translate a message until just before returning,
90320         to avoid unnecessary translation.
90321
90322 2000-08-07  Jim Meyering  <meyering@lucent.com>
90323
90324         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
90325         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
90326         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
90327         getgroups.c, gethostname.c, getopt.h, group-member.c,
90328         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
90329         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
90330         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
90331         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
90332         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
90333         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
90334         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
90335         yesno.c: Back out Copyright date changes for each file with no change
90336         this year.  This eases coordination with other programs using the same
90337         source code modules.  From Paul Eggert.
90338
90339 2000-08-06  Paul Eggert  <eggert@twinsun.com>
90340
90341         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
90342         not char, for compatibility with glibc 2.1.3 strftime.c.
90343
90344 2000-08-03  Greg McGary  <greg@mcgary.org>
90345
90346         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
90347         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
90348         (EXTEND_BUFFER): Use them.
90349
90350 2000-08-01  Jim Meyering  <meyering@lucent.com>
90351
90352         * lib/dirname.c (ISSLASH): Define.
90353         (BACKSLASH_IS_PATH_SEPARATOR): Define.
90354         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
90355         both `\' and `/' may be use as path separators.
90356         Based on a patch from Prashant TR.
90357
90358 2000-07-31  Paul Eggert  <eggert@twinsun.com>
90359
90360         * lib/quotearg.c (quotearg_n_options): Don't make the initial
90361         slot vector a constant, since it might get modified.
90362
90363 2000-07-31  Jim Meyering  <meyering@lucent.com>
90364
90365         * lib/xmalloc.c: Use `virtual memory exhausted', not
90366         `Memory exhausted'.
90367         * lib/obstack.c (print_and_abort): Likewise.
90368
90369 2000-07-30  Paul Eggert  <eggert@twinsun.com>
90370
90371         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
90372         buffer, so that the caller can always quote one small
90373         component of a "memory exhausted" message in slot 0.
90374         From a suggestion by Jim Meyering.
90375
90376 2000-07-30  Jim Meyering  <meyering@lucent.com>
90377
90378         * lib/makepath.c (make_path): Quote the other instance, too.
90379
90380         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
90381         (STATIC_BUF_SIZE): Define.
90382         (quotearg_n_options): Use only statically allocated storage when
90383         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
90384         than STATIC_BUF_SIZE.
90385
90386 2000-07-29  Jim Meyering  <meyering@lucent.com>
90387
90388         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
90389         * lib/dirname.c (dir_name): Likewise.
90390
90391         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
90392         `/'.
90393
90394         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
90395         (dir_name): Assert that there are no trailing slashes.
90396
90397 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
90398
90399         * lib/mbswidth.h (mbswidth): Add a flags argument.
90400         (mbswidth): New declaration.
90401         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
90402         * lib/mbswidth.c (mbswidth): Add a flags argument.
90403         (mbsnwidth): New function.
90404
90405 2000-07-24  Jim Meyering  <meyering@lucent.com>
90406
90407         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
90408
90409 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90410
90411         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
90412
90413 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90414
90415         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
90416         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
90417         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
90418         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
90419         invoke multibyte primitives.
90420
90421 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90422
90423         * lib/quotearg.c:
90424         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
90425         so that mbstate_t is always defined.
90426
90427         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
90428         be 1 in at least one GCC installation, and this configuration
90429         error is likely to be common.  Ignoring MB_LEN_MAX hurts
90430         performance on hosts that have mbrtowc but have only unibyte
90431         locales, but I assume these hosts are rare.
90432
90433 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90434
90435         * lib/mbswidth.c (_XOPEN_SOURCE):
90436         Don't define; this causes problems on Solaris 7.
90437         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
90438
90439 2000-07-23  Jim Meyering  <meyering@lucent.com>
90440
90441         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
90442         too: getgrgid, getpwuid, getuid.
90443
90444 2000-07-23  Jim Meyering  <meyering@lucent.com>
90445
90446         * lib/basename.c (base_name): Add an assertion.
90447
90448 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
90449
90450         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
90451         shadow its mbsinit function.
90452
90453 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
90454
90455         * lib/mbswidth.h: New file.
90456         * lib/mbswidth.c: New file.
90457         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
90458         (noinst_HEADERS): Add mbswidth.h.
90459
90460 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
90461
90462         * lib/config.charset: Add support for FreeBSD. Improve support for
90463         HP-UX and IRIX 6.
90464
90465 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
90466
90467         * m4/mbswidth.m4: New file.
90468         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
90469
90470 2000-07-15  Jim Meyering  <meyering@lucent.com>
90471
90472         * lib/makepath.c: Include quote.h.
90473         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
90474         corresponding argument in a `quote (...)' call.
90475         Give better diagnostics.
90476
90477         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
90478         (noinst_HEADERS): Add quote.h.
90479
90480         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
90481         from tar's src/misc.c.
90482         * lib/quote.h: New file.  Prototypes for same.
90483
90484 2000-07-14  Paul Eggert  <eggert@twinsun.com>
90485
90486         From a suggestion by Bruno Haible.
90487         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
90488         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
90489         to decide whether to define the BeOS workaround macro;
90490         this adjusts to the change to AC_MBSTATE_T.
90491
90492 2000-07-14  Jim Meyering  <meyering@lucent.com>
90493
90494         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
90495         jm_AC_TYPE_UINTMAX_T.
90496
90497 2000-07-13  Paul Eggert  <eggert@twinsun.com>
90498
90499         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
90500
90501         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
90502         quotearg_buffer_restyled): Add support for
90503         clocale_quoting_style.  Undo previous change to
90504         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
90505         and "{RIGHT QUOTATION MARK}" msgids.
90506
90507 2000-07-10  Paul Eggert  <eggert@twinsun.com>
90508
90509         From a suggestion by Bruno Haible.
90510         * m4/mbstate_t.m4 (AC_MBSTATE_T):
90511         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
90512         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
90513         and mbstate_t, to a single-part test that simply defines mbstate_t.
90514         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
90515         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
90516
90517 2000-07-10  Jim Meyering  <meyering@lucent.com>
90518
90519         * m4/strerror_r.m4: Mirror the correction made in autoconf.
90520
90521         * m4/gnu-source.m4: Output to confdefs.h directly.
90522         Suggestion from Akim Demaille.
90523
90524 2000-07-09  Paul Eggert  <eggert@twinsun.com>
90525
90526         The old behavior of quoting `like this' doesn't look good with
90527         newer, ISO-style fonts.  See:
90528         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
90529
90530         Instead, quote "like this" by default.  Let the translator
90531         tailor the locale-specific quoting behavior by providing
90532         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
90533
90534         * lib/quotearg.c (N_): New macro.
90535         (gettext_default): New function.
90536         (quotearg_buffer_restyled): Use
90537         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
90538         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
90539
90540 2000-07-09  Jim Meyering  <meyering@lucent.com>
90541
90542         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
90543         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
90544
90545         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
90546         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
90547
90548 2000-07-09  Jim Meyering  <meyering@lucent.com>
90549
90550         * lib/Most files: Update copyright dates to include 2000.
90551
90552 2000-07-08  Jim Meyering  <meyering@lucent.com>
90553
90554         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
90555         if not defined.
90556         (xgethostname): Remove now-unnecessary #ifdef.
90557         Move declaration of `err' into loop where it's used.
90558
90559 2000-07-05  Paul Eggert  <eggert@twinsun.com>
90560         and Bruno Haible  <haible@clisp.cons.org>
90561
90562         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
90563         only if the test for an object-type mbstate_t fails.  This
90564         prevents us from mistakenly reporting that mbstate_t is a
90565         system object type after we "#define mbstate_t int" to work
90566         around its lack.
90567
90568 2000-07-05  Paul Eggert  <eggert@twinsun.com>
90569         and Bruno Haible  <haible@clisp.cons.org>
90570
90571         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
90572
90573 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90574
90575         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
90576         to strerror_r.
90577         Include <ctype.h> for use of isalpha.
90578
90579 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90580
90581         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
90582         by allocating a larger buffer. Test the gethostname return value for
90583         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
90584         returns an error and ENAMETOOLONG isn't defined.
90585
90586 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90587
90588         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
90589         dimension.
90590
90591 2000-07-04  Jim Meyering  <meyering@lucent.com>
90592
90593         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
90594         of the deprecated AC_CHECKING.
90595
90596 2000-07-04  Jim Meyering  <meyering@lucent.com>
90597
90598         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
90599         Reported by Bruno Haible.
90600
90601 2000-07-04  Jim Meyering  <meyering@lucent.com>
90602
90603         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
90604         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
90605         lacks mbrtowc.
90606
90607 2000-07-03  Paul Eggert  <eggert@twinsun.com>
90608
90609         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
90610         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
90611
90612 2000-07-03  Paul Eggert  <eggert@twinsun.com>
90613         and Bruno Haible  <haible@clisp.cons.org>
90614
90615         * lib/quotearg.c (mbrtowc):
90616         Assign to *pwc, and return 1 only if result is nonzero.
90617         (iswprint): Use ISPRINT when substituting our own mbrtowc.
90618
90619 2000-07-03  Jim Meyering  <meyering@lucent.com>
90620
90621         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
90622
90623 2000-07-03  Jim Meyering  <meyering@lucent.com>
90624
90625         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
90626         This is necessary to get a definition of e.g., UTMP_FILE on
90627         HP-UX 10.20.
90628         From Bob Proulx.
90629
90630 2000-07-02  Jim Meyering  <meyering@lucent.com>
90631
90632         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
90633
90634         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
90635         AC_LIBOBJ(function_name).
90636         * m4/chown.m4: Likewise.
90637         * m4/fnmatch.m4: Likewise.
90638         * m4/ftruncate.m4: Likewise.
90639         * m4/getgroups.m4: Likewise.
90640         * m4/getline.m4: Likewise.
90641         * m4/group-member.m4: Likewise.
90642         * m4/jm-macros.m4: Likewise.
90643         * m4/lstat.m4: Likewise.
90644         * m4/malloc.m4: Likewise.
90645         * m4/memcmp.m4: Likewise.
90646         * m4/nanosleep.m4: Likewise.
90647         * m4/putenv.m4: Likewise.
90648         * m4/realloc.m4: Likewise.
90649         * m4/regex.m4: Likewise.
90650         * m4/stat.m4: Likewise.
90651         * m4/strftime.m4: Likewise.
90652
90653 2000-07-02  Jim Meyering  <meyering@lucent.com>
90654
90655         * lib/quotearg.c (mbstate_t): Don't define here.
90656
90657 2000-07-02  Jim Meyering  <meyering@lucent.com>
90658
90659         * lib/nanosleep.c (SIGCONT): Define if not already defined.
90660
90661 2000-07-01  Jim Meyering  <meyering@lucent.com>
90662
90663         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
90664
90665 2000-07-01  Jim Meyering  <meyering@lucent.com>
90666
90667         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
90668         problem.
90669
90670 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
90671
90672         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
90673         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
90674
90675 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
90676
90677         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
90678         per change in ../m4/ls-mntd-fs.m4.
90679         (read_filesystem_list): Ignore symbolic links.
90680
90681 2000-06-29  Jim Meyering  <meyering@lucent.com>
90682
90683         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
90684         for declaration of strcmp.
90685
90686         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
90687
90688         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
90689         Avoid warning by casting result to `char *' to remove `const'.
90690
90691 2000-06-28  Jim Meyering  <meyering@lucent.com>
90692
90693         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
90694         included by quotearg.c, for which we perform this test.  From
90695         Bruno Haible.
90696
90697 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
90698
90699         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
90700         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
90701         <utmpx.h> exists, put readutmp.o into LIBOBJS.
90702
90703 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
90704
90705         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
90706
90707 2000-06-26  Paul Eggert  <eggert@twinsun.com>
90708
90709         savedir now sets errno on failure and invokes xmalloc to get memory.
90710         Fix a couple of other minor bugs while we're at it.
90711
90712         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
90713         (NAMLEN): Remove macro.
90714         (malloc, realloc): Remove decls.
90715         (stpcpy): Likewise.
90716         ("xalloc.h"): Include.
90717         (NAME_SIZE_DEFAULT): New macro.
90718         (savedir): Use xmalloc / xrealloc to allocate memory.
90719         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
90720         Skip "" directory entries.
90721         Use strlen to calculate directory entry length, since the old method
90722         is rarely used these days and isn't worth supporting.
90723         Don't use a pointer after freeing it.
90724         Check for integer overflow when calculating allocation size.
90725         Use memcpy to copy entries, instead of stpcpy.
90726         Set errno properly when returning NULL.
90727         Check for readdir error.
90728
90729 2000-06-26  Jim Meyering  <meyering@lucent.com>
90730
90731         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
90732
90733 2000-06-25  Jim Meyering  <meyering@lucent.com>
90734
90735         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
90736         Linux header bug when _XOPEN_SOURCE is defined to 500.
90737
90738 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
90739
90740         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
90741         deficiency.
90742
90743 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
90744
90745         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
90746         Include xalloc.h.
90747         Don't include <stdlib.h>.  Don't declare malloc, realloc.
90748
90749 2000-06-24  Jim Meyering  <meyering@lucent.com>
90750
90751         * m4/strerror_r.m4: Revive this file -- to try out an experimental
90752         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
90753         for which strerror does return char*, but which lacks a conveniently
90754         accessible declaration of the function.  If the compile-test says
90755         strerror_r doesn't work, then resort to a `run'-test that works on
90756         BeOS and segfaults on DEC Unix.
90757
90758 2000-06-24  Jim Meyering  <meyering@lucent.com>
90759
90760         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
90761
90762 2000-06-23  Paul Eggert  <eggert@twinsun.com>
90763
90764         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
90765         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
90766
90767 2000-06-23  Paul Eggert  <eggert@twinsun.com>
90768
90769         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
90770         (mbrtowc, mbstate_t): Define substitutes if
90771         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
90772         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
90773         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
90774
90775 2000-06-23  Jim Meyering  <meyering@lucent.com>
90776
90777         * m4/afs.m4: Add missing AC_MSG_RESULT.
90778         Reported by Bruno Haible.
90779
90780         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
90781         Suggestion from Bruno Haible.
90782
90783 2000-06-23  Jim Meyering  <meyering@lucent.com>
90784
90785         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
90786
90787 2000-06-21  Jim Meyering  <meyering@lucent.com>
90788
90789         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
90790
90791 2000-06-21  Jim Meyering  <meyering@lucent.com>
90792
90793         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
90794         (noinst_HEADERS): Add getstr.h.
90795
90796         * lib/getline.c (getstr): Move into a separate file.
90797         * lib/getstr.c (getstr): New file, extracted from getline.c, with
90798         the following changes: new parameter, delim2; both delim[12]
90799         parameters have type `int', not `char'.  The latter would lose
90800         with 8-bit delimiters.
90801         * lib/getstr.h: New file.
90802
90803 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90804
90805         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
90806         than 1024, return a memory chunk of least possible size, instead
90807         of size PATH_MAX + 2. In the loop, increment the size proportionally.
90808         Use free/xmalloc instead of xrealloc to avoid copying for very long
90809         paths.
90810
90811 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90812
90813         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
90814         the empty string.
90815
90816 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90817
90818         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
90819         address, not strdup.  Include <stdlib.h> and don't declare free().
90820
90821 2000-06-19  Jim Meyering  <meyering@lucent.com>
90822
90823         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
90824
90825 2000-06-18  Jim Meyering  <meyering@lucent.com>
90826
90827         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
90828
90829         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
90830         `checking whether...' message to be consistent with that of the
90831         lstat test.
90832
90833 2000-06-18  Jim Meyering  <meyering@lucent.com>
90834
90835         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
90836         Besides, these days every porting target provides a mkdir function.
90837
90838         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
90839         needed. (this snippet comes from src/system.h).
90840
90841 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
90842
90843         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
90844
90845 2000-06-15  Paul Eggert  <eggert@twinsun.com>
90846
90847         * lib/human.c (adjust_value): New function.
90848         (human_readable_inexact): Apply rounding style even when
90849         printing approximate values.
90850
90851 2000-06-14  Paul Eggert  <eggert@twinsun.com>
90852
90853         * lib/human.c (human_readable_inexact): Allow an input block
90854         size that is not a multiple of the output block size, and vice versa.
90855         Reported by Piergiorgio Sartor.
90856
90857 2000-06-14  Paul Eggert  <eggert@twinsun.com>
90858
90859         * lib/getdate.y (get_date): Apply relative times after time
90860         zone indicator, not before.  Reported by Todd A. Jacobs.
90861
90862 2000-06-13  Jim Meyering  <meyering@lucent.com>
90863
90864         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
90865
90866         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
90867
90868 2000-06-12  Paul Eggert  <eggert@twinsun.com>
90869
90870         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
90871
90872 2000-06-12  Jim Meyering  <meyering@lucent.com>
90873
90874         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
90875         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
90876         optional argument.
90877         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
90878         the optional argument, `lib'.
90879
90880 2000-06-08  Jim Meyering  <meyering@lucent.com>
90881
90882         * m4/largefile.m4: Remove file (now that it's part of autoconf).
90883
90884 2000-06-04  Paul Eggert  <eggert@twinsun.com>
90885
90886         Rewrite largefile configuration so that we don't need to run
90887         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
90888         AC_CANONICAL_HOST in configure.in -- jmm]
90889
90890         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
90891         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
90892         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
90893         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
90894         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
90895         All uses changed.
90896         Instead of inspecting the output of getconf, try to compile the
90897         test program without and with the macro definition.
90898         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
90899         for getconf.  Instead, check for the needed flags by compiling
90900         test programs.
90901
90902 2000-06-04  Paul Eggert  <eggert@twinsun.com>
90903
90904         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
90905
90906 2000-06-04  Jim Meyering  <meyering@lucent.com>
90907
90908         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
90909         SunOS 4.1.4 for which gid_t is an unsigned type.
90910
90911 2000-06-03  Jim Meyering  <meyering@lucent.com>
90912
90913         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
90914         now that autoconf requires that.
90915
90916         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
90917         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
90918         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
90919
90920 2000-06-03  Jim Meyering  <meyering@lucent.com>
90921
90922         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
90923
90924 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
90925
90926         * m4/glibc21.m4: New file.
90927         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
90928
90929 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
90930
90931         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
90932         newer, don't install charset.alias.
90933         * lib/config.charset: Change the Linux/glibc rules so they become empty
90934         on glibc-2.1 or newer.
90935
90936 2000-06-02  Jim Meyering  <meyering@lucent.com>
90937
90938         * lib/mountlist.c: Back out last change.  Instead, do this...
90939         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
90940         me_dummy member using the same `ignore'-testing code.
90941         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
90942         fs_type strings.
90943         From Mark D. Roth.
90944
90945 2000-05-29  Jim Meyering  <meyering@lucent.com>
90946
90947         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
90948         mounts with the `ignore' attribute.  Based on a patch from
90949         Mark D. Roth.
90950
90951 2000-05-28  Jim Meyering  <meyering@lucent.com>
90952
90953         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
90954         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90955         * m4/stat.m4: Likewise.
90956         * m4/lstat.m4: Likewise.
90957         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
90958
90959         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
90960         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
90961
90962 2000-05-26  Jim Meyering  <meyering@lucent.com>
90963
90964         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
90965
90966 2000-05-24  Jim Meyering  <meyering@lucent.com>
90967
90968         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
90969         autoconf requires that.
90970         * m4/lib-check.m4: Likewise.
90971         * m4/jm-macros.m4: Likewise.
90972         * m4/strftime.m4: Likewise.
90973
90974         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
90975         AC_CHECK_DECLS, now that autoconf requires that.
90976
90977 2000-05-22  Jim Meyering  <meyering@lucent.com>
90978
90979         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90980         * m4/lstat.m4: Likewise.
90981
90982 2000-05-22  Jim Meyering  <meyering@lucent.com>
90983
90984         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
90985
90986 2000-05-20  Jim Meyering  <meyering@lucent.com>
90987
90988         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
90989         (jm_PREREQ): Use it.
90990
90991 2000-05-18  Jim Meyering  <meyering@lucent.com>
90992
90993         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
90994         back, too, since it may have been modified by allocate_entry.
90995         (hash_delete): Rewrite to use neither the assignment operator
90996         nor the comma operator in an if-expression.
90997
90998 2000-05-15  Paul Eggert  <eggert@twinsun.com>
90999
91000         * lib/closeout.c:
91001         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
91002         Remove; no longer needed.
91003         "quotearg.h": Add include.
91004         (file_name): Do not bother to explicitly initialize to NULL; it's less
91005         efficient on some hosts.
91006         (close_stdout_status): Remove test as to whether stdout was already
91007         closed; it breaks for the case "echo x | sort >&-".
91008         Quote file name colons.
91009         Do not assume that _("write error") lacks format strings.
91010
91011 2000-05-15  Jim Meyering  <meyering@lucent.com>
91012
91013         * lib/version-etc.c (version_etc_copyright): Update the copyright
91014         string used in all --version output.
91015
91016 2000-05-14  Jim Meyering  <meyering@lucent.com>
91017
91018         * lib/closeout.c (close_stdout_set_file_name): New function.
91019         (close_stdout_status): Use new file-scoped global.
91020         Return right away if fstat says the stdout file descriptor is invalid.
91021         * lib/closeout.h (close_stdout_set_file_name): Declare.
91022
91023 2000-05-10  Jim Meyering  <meyering@lucent.com>
91024
91025         * lib/closeout.c [default_exit_status]: New file-scoped variable.
91026         (close_stdout_set_status): New function.
91027         * lib/closeout.h (close_stdout_set_status): Declare.
91028
91029 2000-05-09  Jim Meyering  <meyering@lucent.com>
91030
91031         * m4/gettext.m4: Rename this...
91032         * m4/libintl.m4: ...to this.
91033
91034 2000-05-08  Jim Meyering  <meyering@lucent.com>
91035
91036         * lib/long-options.c: Don't include closeout.h.
91037         (parse_long_options): Don't call close_stdout for --version.
91038
91039 2000-05-06  Paul Eggert  <eggert@twinsun.com>
91040
91041         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
91042         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
91043         2.1.3 bug.  This avoids a clash when files like regex.c define
91044         _GNU_SOURCE.
91045
91046 2000-05-06  Jim Meyering  <meyering@lucent.com>
91047
91048         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
91049         (AC_REPLACE_FUNCS): Add strnlen.
91050
91051         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
91052         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
91053
91054         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
91055         AC_SEARCH_LIBS call for nanosleep.
91056         (LIB_NANOSLEEP): Set and AC_SUBST.
91057
91058 2000-05-06  Jim Meyering  <meyering@lucent.com>
91059
91060         * lib/strnlen.c: Undefine __strnlen and strnlen.
91061         [!weak_alias]: Define __strnlen to strnlen.
91062
91063         * lib/atexit.c: New file, from libiberty.
91064
91065 2000-05-06  Jim Meyering  <meyering@lucent.com>
91066
91067         * lib/closeout.c (close_stdout_status): Also check for errors on the
91068         stderr stream.
91069
91070 2000-05-05  Jim Meyering  <meyering@lucent.com>
91071
91072         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
91073         AC_SEARCH_LIBS call for clock_gettime.
91074         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
91075
91076         * m4/search-libs.m4: Update from autoconf.
91077
91078         su doesn't work on Solaris 2.6.
91079         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
91080         <shadow.h>.  Reported by Dragos Harabor.
91081
91082 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
91083
91084         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
91085         memcpy instead of xmalloc, xrealloc, path_concat.
91086         (locale_charset): Treat empty environment variables as absent.
91087         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
91088
91089 2000-05-04  Jim Meyering  <meyering@lucent.com>
91090
91091         * lib/getopt.c: Update from glibc.
91092         * lib/obstack.c: Likewise.
91093         * lib/obstack.h: Likewise.
91094         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
91095         file
91096
91097         * lib/regex.h: Likewise.
91098         * lib/strndup.c: Likewise.
91099         * lib/strnlen.c: New file, from glibc.
91100
91101 2000-05-03  Jim Meyering  <meyering@lucent.com>
91102
91103         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
91104
91105 2000-05-02  Paul Eggert  <eggert@twinsun.com>
91106
91107         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
91108         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
91109         compile-time test, rather than inspecting host and OS, to
91110         decide whether to define _LARGEFILE_SOURCE.
91111
91112 2000-05-01  Jim Meyering  <meyering@lucent.com>
91113
91114         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
91115
91116         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
91117         Based on a patch from Bruno Haible.
91118
91119 2000-05-01  Jim Meyering  <meyering@lucent.com>
91120
91121         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
91122
91123 2000-04-29  Jim Meyering  <meyering@lucent.com>
91124
91125         * lib/path-concat.c: Declare strdup only if it's not defined.
91126         * lib/canon-host.c: Likewise.
91127
91128 2000-04-28  Jim Meyering  <meyering@lucent.com>
91129
91130         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
91131         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
91132         is included first, then limits.h is included by locale.h by libintl.h.
91133         From John David Anglin.
91134
91135 2000-04-25  Jim Meyering  <meyering@lucent.com>
91136
91137         * lib/makepath.c (S_IRWXUGO): Define.
91138         (make_path): Always perform explicit chmod if MODE specifies any
91139         of the `special' permission bits.  Prompted by a bug report against
91140         install from Mate Wierdl and Joost van Baal.
91141
91142 2000-04-18  Jim Meyering  <meyering@lucent.com>
91143
91144         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
91145         (jm_PREREQ): Use it.
91146
91147 2000-04-18  Jim Meyering  <meyering@lucent.com>
91148
91149         * lib/README: New file.
91150
91151         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
91152         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
91153
91154 2000-04-17  Jim Meyering  <meyering@lucent.com>
91155
91156         Get it right :-)
91157         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
91158         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
91159         Suggestion from Akim Demaille.
91160
91161 2000-04-17  Jim Meyering  <meyering@lucent.com>
91162
91163         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
91164         the definition of it to rpl_strftime also defined-away the system's
91165         declaration.
91166
91167 2000-04-15  Jim Meyering  <meyering@lucent.com>
91168
91169         Use `C' to denote so-called `contiguous' files, the same way
91170         that tar does.
91171         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
91172         (ftypelet): Use S_ISCTG.
91173         From Michael Deutschmann.
91174
91175 2000-04-14  Jim Meyering  <meyering@lucent.com>
91176
91177         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
91178         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
91179         clobbered.
91180
91181 2000-04-14  Jim Meyering  <meyering@lucent.com>
91182
91183         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
91184
91185 2000-04-13  Jim Meyering  <meyering@lucent.com>
91186
91187         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
91188         AH_VERBATIM to insert required #ifndef into config.h.in.
91189         Suggestion from Akim Demaille.
91190
91191 2000-04-12  Jim Meyering  <meyering@lucent.com>
91192
91193         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
91194         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
91195         Christian Krackowizer.
91196
91197         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
91198         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
91199         (AC_SYS_LARGEFILE): Require.
91200         (AM_C_PROTOTYPES): Require.
91201
91202 2000-04-08  Jim Meyering  <meyering@lucent.com>
91203
91204         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
91205         names don't conflict.  Reported by Eli Zaretskii.
91206
91207 2000-04-07  Jim Meyering  <meyering@lucent.com>
91208
91209         * lib/putenv.c: Move inclusion of errno.h so it follows that of
91210         sys/types.h, to work around system header problems on AIX 3.2.5.
91211         From Bruno Haible.
91212
91213 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
91214
91215         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
91216         bug.  Deal with the different error behavior of Irix iconv.
91217
91218 2000-04-05  Paul Eggert  <eggert@twinsun.com>
91219
91220         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
91221         IRIX if the installer said otherwise.
91222
91223 2000-04-05  Jim Meyering  <meyering@lucent.com>
91224
91225         Portability tweaks required for ultrix4.3.
91226         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
91227         (jm_CHECK_DECLS): Add getutent to the list of functions.
91228         (_jm_DECL_HEADERS): Add utmpx.h.
91229         From John David Anglin.
91230
91231         * m4/strftime.m4: Back out the 2000-04-02 change.
91232         Instead of that change, simply undefine putenv in the test program.
91233
91234 2000-04-05  Jim Meyering  <meyering@lucent.com>
91235
91236         Portability tweaks required for ultrix4.3.
91237         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
91238         getutent.
91239         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
91240         * lib/canon-host.c: Declare strdup.
91241         * lib/path-concat.c: Likewise.
91242         From John David Anglin.
91243
91244 2000-04-04  Jim Meyering  <meyering@lucent.com>
91245
91246         Be more DOS 8.3-friendly.
91247         * lib/ref-add.sin: Renamed from ref-add.sed.in.
91248         * lib/ref-del.sin: Renamed from ref-del.sed.in.
91249         * lib/Makefile.am: Reflect renaming.
91250         Reported by Eli Zaretskii.
91251
91252         Use a temporary file name that won't clash with `charset.alias'
91253         in the DOS 8.3 name space.
91254         * lib/Makefile.am (charset_tmp): Define.
91255         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
91256         (uninstall-local): Likewise.
91257         Reported by Eli Zaretskii.
91258
91259 2000-04-03  Jim Meyering  <meyering@lucent.com>
91260
91261         * m4/gettext.m4: Fix typo in comment.
91262
91263         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
91264         textutils/configure.in).  Suggestion from Paul Eggert.
91265         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
91266
91267 2000-04-02  Paul Eggert  <eggert@twinsun.com>
91268
91269         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
91270         variable in the shell rather than using putenv, which isn't
91271         portable.  This avoids the configure-time inter-test dependency
91272         on the potentially-renamed putenv function.
91273
91274 2000-03-30  Paul Eggert  <eggert@twinsun.com>
91275
91276         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
91277         before checking struct stat.st_blksize, so that
91278         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
91279
91280 2000-03-29  Paul Eggert  <eggert@twinsun.com>
91281
91282         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
91283         since strftime.c uses HAVE_STRFTIME to decide whether to use
91284         the underlying strftime.
91285
91286 2000-03-29  Paul Eggert  <eggert@twinsun.com>
91287
91288         * lib/time/strftime.c (my_strftime): Make sure we call the system
91289         strftime, not ourselves, when invoking the underlying strftime.
91290
91291 2000-03-24  Jim Meyering  <meyering@lucent.com>
91292
91293         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
91294         (charset_alias): Define.
91295         (install-exec-local): Factor out common code.
91296         (uninstall-local): Split lines longer than 80.
91297         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
91298         (SUFFIXES): Define.
91299         (.sed.in.sed): New rule.  Don't redirect directly to $@.
91300         (CLEANFILES): Add ref-add.sed and ref-del.sed.
91301
91302 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
91303
91304         * lib/config.charset: Output a line containing "Packages using this
91305         file".
91306         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
91307         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
91308         ref-del.sed): New rules.
91309
91310 2000-03-17  Jim Meyering  <meyering@lucent.com>
91311
91312         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
91313         Otherwise, include <strings.h>
91314
91315 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
91316
91317         * lib/unicodeio.c (utf8_wctomb): New function.
91318         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
91319         format instead of in UCS-4 with platform dependent endianness.
91320
91321 2000-03-10  Jim Meyering  <meyering@lucent.com>
91322
91323         * m4/lib-check.m4: Look for getspnam in -lgen, too.
91324         From Marco Franzen.
91325
91326 2000-03-07  Paul Eggert  <eggert@twinsun.com>
91327
91328         * lib/savedir.c (savedir): Work even if directory size is
91329         negative; this can happen with some screwy NFS configurations.
91330
91331 2000-03-06  Jim Meyering  <meyering@lucent.com>
91332
91333         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
91334         if it's NULL (because we ran out of memory).  From Bruno Haible.
91335
91336 2000-03-05  Jim Meyering  <meyering@lucent.com>
91337
91338         * lib/localcharset.c ("path-concat.h"): Include.
91339         (get_charset_aliases): Use path_concat instead of ANSI string
91340         concatenation.
91341
91342         * lib/unicodeio.h (PARAMS): Define.
91343         Use it to guard prototype.
91344
91345 2000-03-04  Jim Meyering  <meyering@lucent.com>
91346
91347         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
91348         for lib/localcharset.c.
91349
91350 2000-03-04  Jim Meyering  <meyering@lucent.com>
91351
91352         * lib/Makefile.am (install-exec-local): Create $(libdir) before
91353         installing into it.
91354         (uninstall-local): Uncomment this rule so `make distcheck' works
91355         once again.
91356
91357         * lib/unicodeio.c (<errno.h>): Include it.
91358         (errno): Declare if not defined.
91359
91360         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
91361
91362         * lib/config.charset: New version, incorporating remarks from a linux
91363         i18n mailing list.  From Bruno Haible.
91364
91365 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
91366
91367         * m4/codeset.m4: New file.
91368         * m4/iconv.m4: New file.
91369         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
91370
91371 2000-03-03  Jim Meyering  <meyering@lucent.com>
91372
91373         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
91374
91375 2000-03-02  Jim Meyering  <meyering@lucent.com>
91376
91377         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
91378         the messages come out on separate lines.
91379
91380         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
91381         rather than jm_CHECK_DECLARATIONS.
91382         * m4/decl.m4: Remove now-unused file.
91383
91384         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
91385         geteuid.
91386
91387 2000-03-02  Jim Meyering  <meyering@lucent.com>
91388
91389         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
91390
91391 2000-03-01  Jim Meyering  <meyering@lucent.com>
91392
91393         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
91394         * lib/unicodeio.c: Likewise.
91395
91396 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
91397
91398         * lib/config.charset: New file.
91399         * lib/localcharset.c: New file.
91400         * lib/unicodeio.h, lib/unicodeio.c: New files.
91401         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
91402         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
91403         (noinst_HEADERS): Add unicodeio.h.
91404         (all-local, install-exec-local, charset.alias): New targets.
91405
91406 2000-02-28  Paul Eggert  <eggert@twinsun.com>
91407
91408         * lib/quotearg.c (ALERT_CHAR): New macro.
91409         (quotearg_buffer_restyled): Use it.
91410
91411 2000-02-27  Jim Meyering  <meyering@lucent.com>
91412
91413         * m4/check-decl.m4: Add getenv to the list.
91414
91415 2000-02-27  Jim Meyering  <meyering@lucent.com>
91416
91417         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
91418         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
91419
91420         * lib/backupfile.c: Guard inclusion of stdlib.h with
91421         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
91422         Declare malloc if needed.
91423
91424         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
91425         `#ifndef HAVE_DECL..'
91426         now that autoconf always defines the HAVE_DECL_ symbols.
91427         * lib/human.c: Likewise.
91428         * lib/same.c: Likewise.
91429         * lib/strtoumax.c: Likewise.
91430
91431         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
91432         declaration check was not run.
91433         * lib/hash.c: Likewise.
91434         * lib/human.c: Likewise.
91435         * lib/same.c: Likewise.
91436         * lib/strtoumax.c: Likewise.
91437
91438         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
91439         `.', then first look up the entire `.'-containing string as a login
91440         name.
91441
91442 2000-02-23  Jim Meyering  <meyering@lucent.com>
91443
91444         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
91445         in place of my hack.
91446
91447 2000-02-18  Paul Eggert  <eggert@twinsun.com>
91448
91449         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
91450         (textint): New typedef.
91451         (parser_control): Member year changed from int to textint.
91452         All uses changed.
91453         (YYSTYPE): Removed; replaced by %union with int and textint members.
91454         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
91455         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
91456         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
91457         (tSNUMBER, tUNUMBER): Now of type <textintval>.
91458         (date, number, to_year): Use width of number in digits, not its value,
91459         to determine whether it's a 2-digit year, or a 2-digit time.
91460         (yylex): Store number of digits of numeric tokens.
91461         Reported by John Kendall.
91462
91463         (parser_control): Changed from struct parser_control to typedef (for
91464         consistency).  All uses changed.
91465
91466         (tID): Removed; not used.
91467         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
91468
91469 2000-02-14  Paul Eggert  <eggert@twinsun.com>
91470
91471         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
91472         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
91473
91474 2000-02-12  Jim Meyering  <meyering@lucent.com>
91475
91476         * lib/userspec.c (ISDIGIT): Define it.
91477         (isdigit): Remove definition.
91478         (is_number): Use ISDIGIT, not isdigit.
91479         <libintl.h>: Include.
91480         (_ and N_): Define.
91481         (parse_user_spec): Mark translatable strings.
91482
91483 2000-02-10  Jim Meyering  <meyering@lucent.com>
91484
91485         With these changes, nanosleep.[ch] are finally enough like the other
91486         lib/* replacement files to compile on a few more losing systems.
91487
91488         * lib/nanosleep.h: Don't include config.h.
91489         Remove prototype from declaration of nanosleep.
91490         (PARAMS): Remove now-unneeded definition.
91491         * lib/nanosleep.c: #undef nanosleep.
91492         (rpl_nanosleep): Rename from nanosleep.
91493
91494 2000-02-10  Jim Meyering  <meyering@lucent.com>
91495
91496         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
91497         gnu_nanosleep to rpl_nanosleep.
91498
91499 2000-02-09  Jim Meyering  <meyering@lucent.com>
91500
91501         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
91502         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
91503
91504 2000-02-08  Akim Demaille  <akim@epita.fr>
91505
91506         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
91507         `[' and `]' and remove uses of `changequote'.
91508         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
91509         (AC_SYS_LARGEFILE): Likewise.
91510         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
91511         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
91512         of changequote.
91513         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
91514         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
91515         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
91516         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
91517
91518 2000-02-05  Jim Meyering  <meyering@lucent.com>
91519
91520         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
91521         Remove explicit use of AC_HEADER_TIME.  It is required by
91522         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
91523         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
91524         in autoconf whereby the expansion of the latter ended up preceding
91525         the expansion of its prerequisite, AC_HEADER_TIME.
91526         Reported by Volker Borchert.
91527
91528 2000-02-03  Jim Meyering  <meyering@lucent.com>
91529
91530         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
91531
91532 2000-02-03  Jim Meyering  <meyering@lucent.com>
91533
91534         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
91535         rather than with `#if HAVE_UTMPNAME'.
91536
91537 2000-02-02  Jim Meyering  <meyering@lucent.com>
91538
91539         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
91540         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
91541         Reported by Eli Zaretskii.
91542
91543 2000-02-01  Jim Meyering  <meyering@lucent.com>
91544
91545         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
91546
91547 2000-01-31  Jim Meyering  <meyering@lucent.com>
91548
91549         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
91550         functions.  Add the time.h and sys/time.h headers along with the
91551         AC_REQUIRE'ment of AC_HEADER_TIME.
91552
91553 2000-01-31  Jim Meyering  <meyering@lucent.com>
91554
91555         * lib/nanosleep.h (nanosleep): Guard declaration with
91556         `#if ! HAVE_DECL_NANOSLEEP'.
91557         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
91558         the declaration in that vendor's sys/timers.h.
91559         Reported by Christian Krackowizer.
91560
91561         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
91562         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
91563         (ISPRINT): Likewise.
91564         Reported by Tom Tromey.
91565
91566 2000-01-30  Jim Meyering  <meyering@lucent.com>
91567
91568         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
91569
91570         * m4/prereq.m4 (utmp_includes): Define.
91571         Check for ut_user and ut_name members in both struct utmpx
91572         and struct utmp.
91573
91574 2000-01-30  Jim Meyering  <meyering@lucent.com>
91575
91576         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
91577         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
91578         header files where only utmpx.ut_user is declared.
91579
91580         * lib/readutmp.h (UT_USER): Define.
91581
91582 2000-01-29  Jim Meyering  <meyering@lucent.com>
91583
91584         * m4/lib-check.m4: New file containing library-related checks from
91585         fileutils and sh-utils (textutils had none).
91586
91587 2000-01-28  Jim Meyering  <meyering@lucent.com>
91588
91589         * m4/perl.m4: Change format of warning message to look more like that
91590         from the missing script.  Suggestion from François Pinard.
91591
91592 2000-01-25  Jim Meyering  <meyering@lucent.com>
91593
91594         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
91595         well as time.h in the compile check.
91596         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
91597         Fix typo in cross-compiling case: s/yes/no/.
91598
91599 2000-01-23  Jim Meyering  <meyering@lucent.com>
91600
91601         * m4/jm-macros.m4: Move df-related tests here from
91602         fileutils/configure.in
91603
91604         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
91605         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
91606
91607         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
91608         s/space/ac_fsusage_space/.
91609         (jm_FILE_SYSTEM_USAGE): Take two parameters.
91610
91611         * m4/ftruncate.m4: New file (derived from part of
91612         fileutils/configure.in).
91613         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
91614         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
91615
91616         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
91617         AC_SUBST these here, rather than just in sh-util/configure.in, so
91618         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
91619         all the same.
91620         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
91621         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
91622         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
91623         (AC_SUBST(POW_LIBM)): Likewise.
91624         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
91625
91626 2000-01-23  Jim Meyering  <meyering@lucent.com>
91627
91628         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
91629         obstack.c.
91630
91631 2000-01-22  Jim Meyering  <meyering@lucent.com>
91632
91633         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
91634
91635         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
91636
91637         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
91638         configure.in
91639         (AC_CHECK_HEADERS): Likewise for sh-utils.
91640         (AC_CHECK_HEADERS): Likewise for textutils.
91641         Merge the three lists of headers.
91642
91643         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
91644         from fileutils' configure.in.
91645
91646         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
91647         code. Moved tests into their own function (_jm_DECL_HEADERS) in
91648         check-decl.m4.
91649
91650         * m4/check-decl.m4: Use #if rather than #ifdef.
91651         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
91652         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
91653         (_jm_DECL_HEADERS): Define new function.
91654         (jm_CHECK_DECLARATIONS): Require it.
91655
91656 2000-01-22  Jim Meyering  <meyering@lucent.com>
91657
91658         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
91659         [! HAVE_DECL_STRTOULL]: Declare strtoull.
91660         Required for some AIX systems.  Reported by Christian Krackowizer.
91661         [TESTING] (main): New function.
91662
91663         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
91664         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
91665         letters.
91666
91667         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
91668         iswprint.
91669
91670         * lib/strverscmp.c (ISDIGIT): Define.
91671         (strverscmp): Use ISDIGIT, not isdigit.
91672
91673 2000-01-19  Jim Meyering  <meyering@lucent.com>
91674
91675         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
91676         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
91677         defines `struct timespec' in <sys/time.h>
91678
91679         * m4/c-bs-a.m4: Remove uses of changequote altogether.
91680         Thanks to Akim for explaining.
91681
91682 2000-01-17  Paul Eggert  <eggert@twinsun.com>
91683
91684         * lib/nanosleep.c (nanosleep):
91685         Don't use SA_INTERRUPT to decide whether to call sigaction, as
91686         POSIX.1 doesn't require SA_INTERRUPT and some systems
91687         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
91688         it's been part of POSIX.1 since day 1 (in 1988).
91689
91690 2000-01-17  Jim Meyering  <meyering@lucent.com>
91691
91692         * lib/interlock: Remove unused file.  Reported by François Pinard.
91693
91694 2000-01-16  Paul Eggert  <eggert@twinsun.com>
91695
91696         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
91697         alert, backslash, formfeed, and vertical tab unnecessarily in
91698         shell quoting style.
91699
91700 2000-01-16  Jim Meyering  <meyering@lucent.com>
91701
91702         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
91703         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
91704         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
91705         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
91706
91707 2000-01-16  Jim Meyering  <meyering@lucent.com>
91708
91709         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
91710         because the latter didn't work.
91711
91712 2000-01-15  Jim Meyering  <meyering@lucent.com>
91713
91714         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
91715         (AC_REPLACE_FUNCS): Add memcpy and memset.
91716         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
91717         Add strpbrk.
91718         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
91719
91720 2000-01-12  Jim Meyering  <meyering@lucent.com>
91721
91722         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
91723         (jm_PREREQ): Use it.
91724         (jm_PREREQ_READUTMP): New macro.
91725         (jm_PREREQ): Use it.
91726
91727 2000-01-11  Paul Eggert  <eggert@twinsun.com>
91728
91729         Quote multibyte characters correctly.
91730         * m4/c-bs-a.m4: New file.
91731         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
91732         (jm_PREREQ): Use it.
91733
91734 2000-01-11  Paul Eggert  <eggert@twinsun.com>
91735
91736         * m4/uintmax_t.m4: Port to autoconf 2.13.
91737
91738 2000-01-08  Jim Meyering  <meyering@ascend.com>
91739
91740         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
91741         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
91742
91743 2000-01-04  Jim Meyering  <meyering@ascend.com>
91744
91745         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
91746         jm_STRUCT_DIRENT_D_TYPE.
91747         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
91748         jm_STRUCT_DIRENT_D_INO.
91749         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
91750         jm_STRUCT_UTIMBUF.
91751         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
91752         renamings.
91753         * m4/utime.m4: Likewise.
91754
91755         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
91756         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
91757
91758 2000-01-03  Paul Eggert  <eggert@twinsun.com>
91759
91760         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
91761         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
91762
91763 2000-01-02  Jim Meyering  <meyering@ascend.com>
91764
91765         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
91766         remember if this is necessary.
91767
91768 1999-12-26  Jim Meyering  <meyering@ascend.com>
91769
91770         * m4/jm-macros.m4: Use it here.
91771         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
91772
91773 1999-12-23  Jim Meyering  <meyering@ascend.com>
91774
91775         * m4/jm-macros.m4: Check for clock_gettime (moved from
91776         fileutils/configure.in)
91777         Check for gettimeofday.
91778
91779 1999-12-20  Jim Meyering  <meyering@ascend.com>
91780
91781         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
91782         autoconf-2.14a-1999-12-20.
91783
91784 1999-12-19  Jim Meyering  <meyering@ascend.com>
91785
91786         * m4/lstat-slash.m4: New file.
91787         * m4/jm-macros.m4: Use the new macro:
91788         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91789
91790 1999-12-07  Jim Meyering  <meyering@ascend.com>
91791
91792         * m4/perl.m4: Require that File::Compare be available, too.
91793         Too many systems seem to lack it.
91794
91795         * m4/strftime.m4: Add checks for most of the cpp macros tested in
91796         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
91797
91798 1999-11-18  Paul Eggert  <eggert@twinsun.com>
91799
91800         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
91801         problem with the QNX 4.25 shell, which doesn't propagate exit
91802         status of failed commands inside shell assignments.
91803
91804 1999-11-17  Jim Meyering  <meyering@ascend.com>
91805
91806         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
91807
91808 1999-11-07  Jim Meyering  <meyering@ascend.com>
91809
91810         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
91811
91812 1999-11-06  Jim Meyering  <meyering@ascend.com>
91813
91814         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
91815         * m4/jm-macros.m4 (jm_MACROS): Use it here.
91816
91817 1999-11-05  Jim Meyering  <meyering@ascend.com>
91818
91819         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
91820         configure.in of textutils, fileutils, and sh-utils into this one
91821         (shared between those packages) file.
91822         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
91823         AC_STRUCT_ST_BLKSIZE.
91824
91825 1999-11-03  Jim Meyering  <meyering@ascend.com>
91826
91827         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
91828         of AC_CHECK_TYPE checks includes unistd.h.
91829         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
91830         Suggestion from Akim Demaille.
91831
91832 1999-10-30  Jim Meyering  <meyering@ascend.com>
91833
91834         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
91835         m4-quoted string.
91836         * m4/ls-mntd-fs.m4: Likewise.
91837         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
91838         * m4/jm-winsz1.m4: Likewise.
91839
91840         * m4/const.m4: Remove file, since the fix made it into the experimental
91841         version of autoconf.
91842         * m4/mktime.m4: Likewise.
91843
91844         * m4/check-type.m4: Remove file, now that the latest version of
91845         AC_CHECK_TYPE takes a third arg to specify additional #includes.
91846
91847         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
91848         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
91849         AC_CHECK_TYPE.
91850
91851 1999-10-04  Jim Meyering  <meyering@ascend.com>
91852
91853         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
91854
91855 1999-09-22  Paul Eggert  <eggert@twinsun.com>
91856
91857         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
91858         2.95.1 bug with HP-UX 10.20.
91859
91860 1999-09-17  Jim Meyering  <meyering@ascend.com>
91861
91862         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
91863         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
91864         due to missing strdup (against sh-utils-2.0).
91865
91866 1999-08-29  Jim Meyering  <meyering@ascend.com>
91867
91868         * m4/jm-macros.m4: Require jm_BISON.
91869         * m4/bison.m4: New file.
91870
91871 1999-08-17  Paul Eggert  <eggert@twinsun.com>
91872
91873         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
91874         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
91875
91876 1999-08-05  Jim Meyering  <meyering@ascend.com>
91877
91878         * m4/getline.m4: Rename test file from conftestdata to conftest.data
91879         to avoid conflicts with `conftest' on 8+3 filesystems.
91880         Suggestion from Eli Zaretskii.
91881
91882 1999-08-04  Jim Meyering  <meyering@ascend.com>
91883
91884         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
91885         fileutils and sh-utils (textutils's getline test was inadequate).
91886         (AM_FUNC_GETLINE): Run this test.
91887         (AC_CHECK_FUNCS): Check for getdelim.
91888         Reported by Bob Proulx.
91889
91890 1999-08-02  Jim Meyering  <meyering@ascend.com>
91891
91892         * m4/jm-macros.m4: Add a comment.
91893
91894 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91895
91896         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
91897         <inttypes.h> defines strtoumax as a macro (and not as a
91898         function).
91899
91900 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91901
91902         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
91903         that we can shift, multiply and divide unsigned long long
91904         values; Ultrix cc can't do it.
91905
91906 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91907
91908         * m4/mktime.m4: New file, which is a preview of what should appear
91909         in the next public autoconf release.
91910
91911 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91912
91913         * m4/lfs.m4: Remove this file.
91914         * m4/largefile.m4: New file.  It contains the old contents of
91915         lfs.m4, except that all names with prefix AC_LFS have been
91916         changed to use the prefix AC_SYS_LARGEFILE instead, to be
91917         compatible with future autoconf versions.  Also, some minor m4
91918         quoting problems have been fixed.
91919
91920 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91921
91922         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
91923         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
91924         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
91925         and simplify the shell code.
91926
91927 1999-08-01  Jim Meyering  <meyering@ascend.com>
91928
91929         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
91930         m4.
91931
91932 1999-07-20  Jim Meyering  <meyering@ascend.com>
91933
91934         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
91935
91936 1999-07-15  Jim Meyering  <meyering@ascend.com>
91937
91938         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
91939
91940 1999-05-22  Jim Meyering  <meyering@ascend.com>
91941
91942         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
91943
91944 1999-05-20  Jim Meyering  <meyering@ascend.com>
91945
91946         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
91947         Add a colon after each `then' in case $4 is empty.
91948
91949 1999-05-16  Jim Meyering  <meyering@ascend.com>
91950
91951         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
91952
91953 1999-05-10  Jim Meyering  <meyering@ascend.com>
91954
91955         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
91956
91957         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
91958         AC_FUNC_MKTIME.
91959
91960 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
91961
91962         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
91963
91964 1999-05-04  Paul Eggert  <eggert@twinsun.com>
91965
91966         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
91967         not CPPFLAGS, so that linking works correctly in IRIX.
91968
91969 1999-04-30  Paul Eggert  <eggert@twinsun.com>
91970
91971         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
91972
91973 1999-04-20  Paul Eggert  <eggert@twinsun.com>
91974
91975         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
91976         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
91977         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
91978         jm_AC_TYPE_UNSIGNED_LONG_LONG.
91979         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
91980
91981         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
91982
91983 1999-04-20  Jim Meyering  <meyering@ascend.com>
91984
91985         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
91986         AC_REPLACE xstroull if necessary.  From Paul Eggert.
91987         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
91988
91989 1999-04-18  Jim Meyering  <meyering@ascend.com>
91990
91991         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
91992         * m4/jm-macros.m4: Use it.
91993
91994 1999-04-06  Jim Meyering  <meyering@ascend.com>
91995
91996         * m4/strftime.m4: Remove test for %f.
91997
91998 1999-03-29  Jim Meyering  <meyering@ascend.com>
91999
92000         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
92001         superset of the AC_TYPE_* checks in the textutils, fileutils,
92002         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
92003         AC_TYPE_PID_T.
92004
92005 1999-03-28  Jim Meyering  <meyering@ascend.com>
92006
92007         * m4/jm-macros.m4: Define GNU_PACKAGE here.
92008         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
92009         replaced e.g., in the *.sh files of the sh-utils.
92010
92011 1999-03-20  Jim Meyering  <meyering@ascend.com>
92012
92013         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
92014         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
92015         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
92016
92017 1999-03-19  Jim Meyering  <meyering@ascend.com>
92018
92019         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
92020
92021 1999-03-12  Jim Meyering  <meyering@ascend.com>
92022
92023         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
92024
92025 1999-03-07  Jim Meyering  <meyering@ascend.com>
92026
92027         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
92028         declared.
92029
92030 1999-02-17  Jim Meyering  <meyering@ascend.com>
92031
92032         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
92033         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
92034
92035 1999-02-07  Jim Meyering  <meyering@ascend.com>
92036
92037         * m4/group-member.m4: New file -- extracted from sh-utils'
92038         configure.in.
92039
92040         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
92041         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
92042
92043 1999-02-06  Jim Meyering  <meyering@ascend.com>
92044
92045         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
92046         * m4/fnmatch.m4: Likewise.
92047         * m4/getgroups.m4: Likewise.
92048         * m4/lstat.m4: Likewise.
92049         * m4/malloc.m4: Likewise.
92050         * m4/putenv.m4: Likewise.
92051         * m4/realloc.m4: Likewise.
92052         * m4/regex.m4: Likewise.
92053         * m4/stat.m4: Likewise.
92054         * m4/strftime.m4: Likewise.
92055         Suggestion from Alain Magloire.
92056
92057         * m4/chown.m4: Use `.$ac_objext', not `.o'.
92058         * m4/fnmatch.m4: Likewise.
92059         * m4/getgroups.m4: Likewise.
92060         * m4/getline.m4: Likewise.
92061         * m4/lstat.m4: Likewise.
92062         * m4/malloc.m4: Likewise.
92063         * m4/memcmp.m4: Likewise.
92064         * m4/putenv.m4: Likewise.
92065         * m4/realloc.m4: Likewise.
92066         * m4/regex.m4: Likewise.
92067         * m4/stat.m4: Likewise.
92068         * m4/strftime.m4: Likewise.
92069         Suggestion from Alain Magloire.
92070
92071         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
92072         an argument.
92073
92074         * m4/regex.m4: Add a run-time Test for proper operation of
92075         re_compile_pattern.
92076
92077 1999-01-31  Jim Meyering  <meyering@ascend.com>
92078
92079         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
92080
92081 1999-01-30  Jim Meyering  <meyering@ascend.com>
92082
92083         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
92084
92085         * m4/jm-mktime.m4: Make this a wrapper around the official
92086         AM_FUNC_MKTIME rather than my private copy, now that the official one
92087         is up to date.
92088         * m4/mktime.m4: Remove file.
92089
92090         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
92091         * m4/uptime.m4: Likewise.
92092         * m4/uintmax_t.m4: Likewise.
92093
92094 1999-01-28  Jim Meyering  <meyering@ascend.com>
92095
92096         * m4/jm-macros.m4: Use jm_AFS.
92097         * m4/afs.m4: New file (from fileutils' configure.in).
92098
92099         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
92100         * m4/chown.m4: Likewise.
92101         * m4/d-ino.m4: Likewise.
92102         * m4/d-type.m4: Likewise.
92103         * m4/fnmatch.m4: Likewise.
92104         * m4/getgroups.m4: Likewise.
92105         * m4/gettext.m4: Likewise.
92106         * m4/jm-mktime.m4: Likewise.
92107         * m4/jm-winsz2.m4: Likewise.
92108         * m4/lcmessage.m4: Likewise.
92109         * m4/ls-mntd-fs.m4: Likewise.
92110         * m4/malloc.m4: Likewise.
92111         * m4/memcmp.m4: Likewise.
92112         * m4/putenv.m4: Likewise.
92113         * m4/realloc.m4: Likewise.
92114         * m4/st_mtim.m4: Likewise.
92115         * m4/strftime.m4: Likewise.
92116
92117 1999-01-16  Jim Meyering  <meyering@ascend.com>
92118
92119         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
92120         (ARGMATCH_DIE_DECL): Define.
92121
92122 1999-01-12  Jim Meyering  <meyering@ascend.com>
92123
92124         * m4/Makefile.am.in: Rewrite to avoid using fmt.
92125         Reported by Lars Hecking.
92126
92127 1999-01-10  Jim Meyering  <meyering@ascend.com>
92128
92129         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
92130         gross kludge.
92131         * m4/inttypes_h.m4: Likewise.
92132         * m4/lstat.m4: Likewise.
92133         * m4/malloc.m4: Likewise.
92134         * m4/readdir.m4: Likewise.
92135         * m4/realloc.m4: Likewise.
92136         * m4/st_dm_mode.m4: Likewise.
92137         * m4/stat.m4: Likewise.
92138         * m4/utimbuf.m4: Likewise.
92139         * m4/utimes.m4: Likewise.
92140
92141         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
92142         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
92143         comments in config.h.in are meaningful.
92144
92145         * m4/jm-macros.m4: Require autoconf-2.13 here.
92146
92147         * m4/regex.m4: By default, don't use the included regex.c on systems
92148         with glibc 2.  Suggestion from Uli Drepper.
92149
92150 1999-01-02  Jim Meyering  <meyering@ascend.com>
92151
92152         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
92153
92154 1998-12-18  Jim Meyering  <meyering@ascend.com>
92155
92156         * m4/Makefile.am.in (Makefile.am): Simplify rule.
92157         Based on a suggestion from Lars Hecking.
92158
92159 1998-11-16  Paul Eggert  <eggert@twinsun.com>
92160
92161         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
92162
92163 1998-11-16  Jim Meyering  <meyering@ascend.com>
92164
92165         * m4/lfs.m4: Double-quote the `uname...` expression.
92166
92167 1998-11-14  Jim Meyering  <meyering@ascend.com>
92168
92169         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
92170         * m4/stat.m4: Likewise.
92171
92172 1998-11-03  Jim Meyering  <meyering@ascend.com>
92173
92174         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
92175         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
92176
92177 1998-10-18  Jim Meyering  <meyering@ascend.com>
92178
92179         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
92180
92181 1998-10-17  Jim Meyering  <meyering@ascend.com>
92182
92183         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
92184         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
92185         calls for those previously hard-coded headers.  Instead, take a new
92186         parameter.
92187         (jm_CHECK_DECLARATIONS): Reflect interface change.
92188         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
92189         (jm_CHECK_DECL_LOCALTIME_R): New macro.
92190
92191         * m4/mktime.m4: Test for spring-forward gap before long-running test.
92192
92193 1998-10-14  Jim Meyering  <meyering@ascend.com>
92194
92195         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
92196         instead of "TZ=America/Vancouver".  From Paul Eggert.
92197
92198 1998-10-11  Jim Meyering  <meyering@ascend.com>
92199
92200         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
92201         This adds a test for a recently added compatibility fix for mktime.c.
92202         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
92203
92204 1998-09-27  Jim Meyering  <meyering@ascend.com>
92205
92206         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
92207
92208         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
92209         ../configure.in, including a change from Gordon Matzigkeit to allow
92210         cross-compiling for the Hurd.
92211
92212         * m4/glibc.m4: New file/macro to test for the GNU C Library
92213         versions 1 and 2.  From Gordon Matzigkeit.
92214         Indent.
92215
92216 1998-09-21  Jim Meyering  <meyering@ascend.com>
92217
92218         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
92219
92220 1998-08-18  Paul Eggert  <eggert@twinsun.com>
92221
92222         Port nanosecond-resolution times to UnixWare 2.1.2 and
92223         pedantic Solaris 2.6.
92224
92225         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
92226         AC_STRUCT_ST_MTIM.
92227         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
92228         Generate name of ns member, instead of just 1 or undef.
92229         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
92230
92231 1998-08-15  Jim Meyering  <meyering@ascend.com>
92232
92233         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
92234         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
92235         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
92236         instead of jm_TYPE_SSIZE_T.
92237
92238 1998-08-12  Jim Meyering  <meyering@ascend.com>
92239
92240         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
92241
92242 1998-08-02  Jim Meyering  <meyering@ascend.com>
92243
92244         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
92245         in acconfig.h manually.
92246
92247 1998-07-31  Paul Eggert  <eggert@twinsun.com>
92248
92249         * m4/st_mtim.m4: New file.
92250
92251 1998-07-28  Jim Meyering  <meyering@ascend.com>
92252
92253         * m4/utimes.m4: Undef stat.
92254
92255 1998-07-25  Jim Meyering  <meyering@ascend.com>
92256
92257         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
92258         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
92259
92260 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
92261
92262         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
92263         uid and gid actually remain unchanged.
92264
92265 1998-07-07  Jim Meyering  <meyering@ascend.com>
92266
92267         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
92268
92269 1998-07-04  Jim Meyering  <meyering@ascend.com>
92270
92271         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
92272         to prove that this macro can be used in packages without regex.c.
92273
92274 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
92275
92276         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
92277         is to be used.
92278
92279 1998-07-03  Jim Meyering  <meyering@ascend.com>
92280
92281         * m4/gettext.m4: Add -lintl if it's found to be necessary.
92282
92283         * m4/gettext.m4: New file -- from gettext-0.10.35.
92284         * m4/lcmessage.m4: Likewise.
92285         * m4/progtest.m4: Likewise.
92286
92287         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
92288         * m4/jm-macros.m4: Require the new macro.
92289
92290 1998-06-29  Jim Meyering  <meyering@ascend.com>
92291
92292         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
92293         for the definition of NGROUPS (used in a system header included
92294         by sys/mount.h).
92295
92296 1998-06-28  Jim Meyering  <meyering@ascend.com>
92297
92298         * m4/ls-mntd-fs.m4: New file.
92299         * m4/fstypename.m4: New file.
92300
92301         * m4/jm-macros.m4: Require the new macro.
92302         * m4/jm-glibc-io.m4: New file.
92303
92304 1998-05-19  Jim Meyering  <meyering@ascend.com>
92305
92306         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
92307         * m4/lchown.m4: New file.
92308
92309         * m4/Makefile.am.in: New file.
92310         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
92311
92312 1998-05-14  Jim Meyering  <meyering@ascend.com>
92313
92314         * m4/Makefile.am (EXTRA_DIST): Add them.
92315         * m4/jm-macros.m4: New file.
92316         * m4/utimbuf.m4: New file.
92317
92318 1998-05-12  Jim Meyering  <meyering@ascend.com>
92319
92320         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
92321
92322 1998-05-11  Jim Meyering  <meyering@ascend.com>
92323
92324         * m4/isc-posix.m4: New file.
92325
92326 1998-05-10  Jim Meyering  <meyering@ascend.com>
92327
92328         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
92329
92330 1998-05-09  Jim Meyering  <meyering@ascend.com>
92331
92332         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
92333         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
92334         with automake.
92335
92336         * m4/ssize_t.m4: New file.
92337         * m4/mktime.m4: Remove file -- the new automake has this now.
92338
92339 1998-04-26  Jim Meyering  <meyering@ascend.com>
92340
92341         * m4/assert.m4: New file.
92342         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
92343
92344 1998-04-05  Jim Meyering  <meyering@ascend.com>
92345
92346         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
92347         (jm_PREREQ): Use it here.
92348
92349 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
92350
92351         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
92352         in acconfig.h.
92353
92354 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
92355
92356         * m4/prereq.m4: New file.
92357         * m4/error.m4: New file.
92358         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
92359
92360 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
92361
92362         * m4/getline.m4: Don't set am_cv_func_working_getline before the
92363         cache-check for the same variable -- that defeated the purpose of
92364         the test; the test program was never run.  This was a problem only
92365         on systems with losing getline functions -- HP-UX 10.20 is one.
92366         Reported by Bjorn Helgaas.
92367
92368 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
92369
92370         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
92371
92372 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
92373
92374         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
92375
92376         * m4/const.m4: New file.  Use an initializer in this declaration
92377         typedef int charset[2]; const charset x;
92378         Reported by Bob Glickstein.
92379
92380 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
92381
92382         * m4/chown.m4: Fix reversed types on -1 args to chown.
92383         From Kaveh Ghazi.
92384
92385 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
92386
92387         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
92388         Add lseek and memchr.
92389
92390         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
92391         T.E.Dickey <dickey@clark.net> said that some older preprocessors
92392         have a 20-character limit on names.
92393
92394 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
92395
92396         * m4/inttypes_h.m4: New file.
92397         * m4/uintmax_t.m4: New file.
92398         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
92399
92400
92401         -----
92402
92403         Local Variables:
92404         coding: utf-8
92405         End:
92406
92407         Copyright (C) 1997-2012 Free Software Foundation, Inc.
92408
92409         Copying and distribution of this file, with or without
92410         modification, are permitted provided the copyright notice
92411         and this notice are preserved.