getline: Move AC_LIBOBJ invocations to module description.
[gnulib.git] / ChangeLog
1 2011-05-08  Bruno Haible  <bruno@clisp.org>
2
3         getline: Move AC_LIBOBJ invocations to module description.
4         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
5         invocations from here...
6         * modules/getline (configure.ac): ... to here.
7
8 2011-05-08  Bruno Haible  <bruno@clisp.org>
9
10         getline: Simplify.
11         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
12         It's already handled through the module dependency.
13
14 2011-05-08  Bruno Haible  <bruno@clisp.org>
15
16         getdelim: Move AC_LIBOBJ invocations to module description.
17         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
18         and gl_PREREQ_GETDELIM invocations from here...
19         * modules/getdelim (configure.ac): ... to here.
20         (Depends-on): Fix condition.
21
22 2011-05-08  Bruno Haible  <bruno@clisp.org>
23
24         getcwd: Move AC_LIBOBJ invocations to module description.
25         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
26         invocations from here...
27         * modules/getcwd (configure.ac): ... to here.
28
29 2011-05-08  Bruno Haible  <bruno@clisp.org>
30
31         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
32         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
33         here...
34         * modules/getcwd-lgpl (configure.ac): ... to here.
35
36 2011-05-07  Bruno Haible  <bruno@clisp.org>
37
38         crypto/gc: Move AC_LIBOBJ invocations to module description.
39         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
40         * modules/crypto/gc (configure.ac): ... to here.
41
42 2011-05-07  Bruno Haible  <bruno@clisp.org>
43
44         fwriting: Move AC_LIBOBJ invocations to module description.
45         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
46         here...
47         * modules/fwriting (configure.ac): ... to here.
48
49 2011-05-07  Bruno Haible  <bruno@clisp.org>
50
51         fwritable: Move AC_LIBOBJ invocations to module description.
52         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
53         here...
54         * modules/fwritable (configure.ac): ... to here.
55
56 2011-05-07  Bruno Haible  <bruno@clisp.org>
57
58         futimens: Move AC_LIBOBJ invocations to module description.
59         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
60         here...
61         * modules/futimens (configure.ac): ... to here.
62
63 2011-05-07  Bruno Haible  <bruno@clisp.org>
64
65         ftruncate: Move AC_LIBOBJ invocations to module description.
66         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
67         gl_PREREQ_FTRUNCATE invocations from here...
68         * modules/ftruncate (configure.ac): ... to here.
69
70 2011-05-07  Bruno Haible  <bruno@clisp.org>
71
72         fsync: Move AC_LIBOBJ invocations to module description.
73         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
74         invocations from here...
75         * modules/fsync (configure.ac): ... to here.
76
77 2011-05-07  Bruno Haible  <bruno@clisp.org>
78
79         fsusage: Move AC_LIBOBJ invocations to module description.
80         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
81         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
82         * modules/fsusage (configure.ac): ... to here.
83
84 2011-05-07  Bruno Haible  <bruno@clisp.org>
85
86         freopen: Move AC_LIBOBJ invocations to module description.
87         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
88         invocations from here...
89         * modules/freopen (configure.ac): ... to here.
90
91 2011-05-07  Bruno Haible  <bruno@clisp.org>
92
93         free: Move AC_LIBOBJ invocations to module description.
94         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
95         invocations from here...
96         * modules/free (configure.ac): ... to here.
97
98 2011-05-07  Bruno Haible  <bruno@clisp.org>
99
100         freadable: Move AC_LIBOBJ invocations to module description.
101         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
102         here...
103         * modules/freadable (configure.ac): ... to here.
104
105 2011-05-07  Bruno Haible  <bruno@clisp.org>
106
107         fpurge: Move AC_LIBOBJ invocations to module description.
108         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
109         invocations from here...
110         * modules/fpurge (configure.ac): ... to here.
111
112 2011-05-07  Bruno Haible  <bruno@clisp.org>
113
114         fpending: Move AC_LIBOBJ invocations to module description.
115         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
116         gl_FUNC_FPENDING.
117         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
118         invocations from here...
119         * modules/fpending (configure.ac): ... to here.
120
121 2011-05-07  Bruno Haible  <bruno@clisp.org>
122
123         fopen: Move AC_LIBOBJ invocations to module description.
124         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
125         invocations from here...
126         * modules/fopen (configure.ac): ... to here.
127
128 2011-05-07  Bruno Haible  <bruno@clisp.org>
129
130         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
131         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
132         gl_FUNC_FNMATCH_POSIX.
133         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
134         invocations from here...
135         * modules/fnmatch (configure.ac): ... to here.
136         * modules/fnmatch-gnu (configure.ac): ... and here.
137
138 2011-05-07  Bruno Haible  <bruno@clisp.org>
139
140         flock: Move AC_LIBOBJ invocations to module description.
141         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
142         invocations from here...
143         * modules/flock (configure.ac): ... to here.
144
145 2011-05-07  Bruno Haible  <bruno@clisp.org>
146
147         fileblocks: Move AC_LIBOBJ invocations to module description.
148         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
149         gl_PREREQ_FILEBLOCKS invocations from here...
150         * modules/fileblocks (configure.ac): ... to here.
151
152 2011-05-06  Bruno Haible  <bruno@clisp.org>
153
154         fflush: Move AC_LIBOBJ invocations to module description.
155         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
156         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
157         invocations from here...
158         * modules/fflush (configure.ac): ... to here.
159
160 2011-05-06  Bruno Haible  <bruno@clisp.org>
161
162         fdopendir: Move AC_LIBOBJ invocations to module description.
163         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
164         here...
165         * modules/fdopendir (configure.ac): ... to here.
166         (Depends-on): Improve conditions.
167
168 2011-05-06  Bruno Haible  <bruno@clisp.org>
169
170         _Exit: Move AC_LIBOBJ invocations to module description.
171         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
172         invocations from here...
173         * modules/_Exit (configure.ac): ... to here.
174
175 2011-05-21  Bruno Haible  <bruno@clisp.org>
176
177         euidaccess: Respect rules for use of AC_LIBOBJ.
178         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
179         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
180         from here...
181         * modules/euidaccess (configure.ac): ... to here.
182
183 2011-05-06  Bruno Haible  <bruno@clisp.org>
184
185         error: Move AC_LIBOBJ invocations to module description.
186         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
187         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
188         invocations from here...
189         * modules/error (configure.ac): ... to here.
190
191 2011-05-06  Bruno Haible  <bruno@clisp.org>
192
193         duplocale: Move AC_LIBOBJ invocations to module description.
194         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
195         gl_PREREQ_DUPLOCALE invocations from here...
196         * modules/duplocale (configure.ac): ... to here.
197
198 2011-05-05  Bruno Haible  <bruno@clisp.org>
199
200         dirfd: Move AC_LIBOBJ invocations to module description.
201         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
202         gl_FUNC_DIRFD.
203         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
204         here...
205         * modules/dirfd (configure.ac): ... to here.
206         (Depends-on): Fix condition.
207
208 2011-05-05  Bruno Haible  <bruno@clisp.org>
209
210         chown: Respect rules for use of AC_LIBOBJ.
211         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
212         * modules/chown (configure.ac): ... to here.
213
214 2011-05-05  Bruno Haible  <bruno@clisp.org>
215
216         chdir-long: Move AC_LIBOBJ invocations to module description.
217         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
218         gl_PREREQ_CHDIR_LONG invocations from here...
219         * modules/chdir-long (configure.ac): ... to here.
220
221 2011-05-05  Bruno Haible  <bruno@clisp.org>
222
223         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
224         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
225         from here...
226         * modules/canonicalize-lgpl (configure.ac): ... to here.
227
228 2011-05-05  Bruno Haible  <bruno@clisp.org>
229
230         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
231         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
232         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
233         REPLACE_CALLOC.
234         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
235         * modules/calloc-gnu (configure.ac): Likewise.
236
237 2011-05-05  Bruno Haible  <bruno@clisp.org>
238
239         btowc: Move AC_LIBOBJ invocations to module description.
240         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
241         invocations from here...
242         * modules/btowc (configure.ac): ... to here.
243
244 2011-05-21  Bruno Haible  <bruno@clisp.org>
245
246         atexit: Move AC_LIBOBJ invocations to module description.
247         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
248         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
249         here...
250         * modules/atexit (configure.ac): ... to here.
251
252 2011-05-05  Bruno Haible  <bruno@clisp.org>
253
254         atoll: Move AC_LIBOBJ invocations to module description.
255         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
256         invocations from here...
257         * modules/atoll (configure.ac): ... to here.
258
259 2011-05-05  Bruno Haible  <bruno@clisp.org>
260
261         argz: Move AC_LIBOBJ invocations to module description.
262         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
263         * modules/argz (configure.ac): ... to here.
264
265 2011-05-05  Bruno Haible  <bruno@clisp.org>
266
267         alphasort: Move AC_LIBOBJ invocations to module description.
268         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
269         gl_PREREQ_ALPHASORT invocations from here...
270         * modules/alphasort (configure.ac): ... to here.
271
272 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
273
274         verify: new macro verify_expr; verify_true deprecated
275         * NEWS: Mention this.
276         * doc/verify.texi (Compile-time Assertions): Document this.
277         * lib/verify.h (verify_true): Deprecate.
278         (verify_expr): New macro.
279         * tests/test-verify.c (function): Test verify_expr.
280
281 2011-06-14  Jim Meyering  <meyering@redhat.com>
282
283         init.sh: give more portable redirection-related advice in a comment
284         * tests/init.sh (stderr_fileno_): Update the advice in comments.
285         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
286         for lots of discussion.  Stefano Lattarini suggested the solution
287         of putting "9>&2" after the command.  Reported by Bruno Haible.
288
289 2011-06-13  Bruno Haible  <bruno@clisp.org>
290
291         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
292         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
293         'none'.
294
295 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
296
297         ftoastr: use strtof only if HAVE_STRTOF
298         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
299         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
300         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
301         * modules/ftoastr (configure.ac): Check for strtof.
302
303 2011-06-13  Bruno Haible  <bruno@clisp.org>
304
305         gnulib-tool: Addendum to 2011-06-08 commit.
306         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
307         and --witness-c-macro have been given, augment AM_CPPFLAGS.
308
309 2011-06-13  Bruno Haible  <bruno@clisp.org>
310
311         fseeko: Provide a non-inline replacement of fseek().
312         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
313         * modules/fseeko (Depends-on): Add fseek.
314         * modules/fseek (License): Change to LGPLv2+.
315
316 2011-06-13  Bruno Haible  <bruno@clisp.org>
317
318         ftello: Provide a non-inline replacement of ftell().
319         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
320         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
321         not have ftello() (such as on mingw).
322         * modules/ftello (Depends-on): Add ftell.
323         * modules/ftell (License): Change to LGPLv2+.
324
325 2011-05-07  Bruno Haible  <bruno@clisp.org>
326
327         ftell: Move AC_LIBOBJ invocations to module description.
328         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
329         * modules/ftell (configure.ac): ... to here.
330
331 2011-05-07  Bruno Haible  <bruno@clisp.org>
332
333         ftello: Respect rules for use of AC_LIBOBJ.
334         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
335         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
336         here...
337         * modules/ftello (configure.ac): ... to here.
338
339 2011-05-07  Bruno Haible  <bruno@clisp.org>
340
341         fseeko: Simplify.
342         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
343         (gl_FUNC_FSEEKO): Inline it here.
344
345 2011-05-07  Bruno Haible  <bruno@clisp.org>
346
347         fseek: Move AC_LIBOBJ invocations to module description.
348         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
349         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
350         * modules/fseek (configure.ac): ... to here.
351
352 2011-05-07  Bruno Haible  <bruno@clisp.org>
353
354         fseek: Respect rules for use of AC_LIBOBJ.
355         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
356         here...
357         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
358
359 2011-05-07  Bruno Haible  <bruno@clisp.org>
360
361         fseeko: Respect rules for use of AC_LIBOBJ.
362         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
363         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
364         here...
365         * modules/fseeko (configure.ac): ... to here.
366
367 2011-06-13  Bruno Haible  <bruno@clisp.org>
368
369         gnulib-tool: Allow comments in the 'Depends-on' section.
370         * doc/gnulib.texi (Module description): Mention comment syntax in the
371         Depends-on section.
372         * gnulib-tool (func_get_dependencies): Filter out comment lines.
373
374 2011-06-13  Bruno Haible  <bruno@clisp.org>
375
376         file-set.h: guard __attibute__ use, now that it's not always defined
377         * lib/file-set.h (record_file): Use __attribute__ only with compiler
378         versions that support it.  This fixes a coreutils build failure with
379         the vendor cc on HP-UX 11.31.
380
381 2011-06-12  Bruno Haible  <bruno@clisp.org>
382
383         acl: Add support for HP-UX >= 11.11 JFS ACLs.
384         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
385         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
386         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
387         (acl, aclsort): New declarations.
388         (aclv_nontrivial): New declaration.
389         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
390         (file_has_acl): Read also the second kind of HP-UX ACLs.
391         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
392         kind of HP-UX ACLs if the first kind fails.
393         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
394         second kind of HP-UX ACLs.
395         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
396         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
397         agree.
398         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
399         hpuxjfs.
400         Handle hpuxjfs.
401         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
402         hpuxjfs.
403         Handle hpuxjfs.
404         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
405         (func_test_same_acls): Use both lsacl and getacl.
406         Handle hpuxjfs.
407         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
408         (func_test_same_acls): Use both lsacl and getacl.
409         Handle hpuxjfs.
410
411 2011-06-12  Bruno Haible  <bruno@clisp.org>
412
413         acl: Complete the 2010-08-10 fix.
414         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
415         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
416         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
417         explicitly.
418         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
419         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
420
421 2011-06-12  Bruno Haible  <bruno@clisp.org>
422
423         spawn-pipe tests: Comments.
424         * tests/test-spawn-pipe-child.c (main): Update comment.
425         Reported by James Youngman <jay@gnu.org>.
426
427 2011-06-11  James Youngman  <jay@gnu.org>
428
429         New module 'stat-size'.
430         * modules/stat-size: New module.  Provides macros for accessing
431         file size information in instances of struct stat.  Depends on the
432         fileblocks module because it calls st_blocks.
433         * lib/stat-size.h: New file, adapted from coreutils' system.h.
434         * doc/gnulib.texi: Include stat-size.texi.
435         * doc/stat-size.texi: Documentation for this module.
436         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
437         * m4/fileblocks.m4: Mention that stat-size depends on the call to
438         AC_STRUCT_ST_BLOCKS.
439
440 2011-06-09  Bruno Haible  <bruno@clisp.org>
441
442         thread: Support pthreads-win32.
443         * lib/glthread/thread.h (gl_thread_self): Define differently on
444         pthreads-win32.
445         (gl_null_thread): New declaration.
446         (gl_thread_self_pointer): New macro.
447         * lib/glthread/thread.c (gl_null_thread): New constant.
448         * tests/test-lock.c: Use gl_thread_self_pointer instead of
449         gl_thread_self.
450         * tests/test-tls.c: Likewise.
451         Suggested by Paul Eggert. Reported by Eric Blake.
452
453 2011-06-09  Bruno Haible  <bruno@clisp.org>
454
455         thread: Fix confusion between NULL and 0.
456         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
457         Reported by Paul Eggert.
458
459 2011-06-09  Bruno Haible  <bruno@clisp.org>
460
461         spawn-pipe tests: Avoid test failure on HP-UX 11.
462         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
463         is closed.
464
465 2011-06-09  Bruno Haible  <bruno@clisp.org>
466
467         acl tests: Fix compilation error on HP-UX 11.
468         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
469
470 2011-06-09  Bruno Haible  <bruno@clisp.org>
471
472         rmdir: Avoid test failure on HP-UX 10.20.
473         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
474         EEXIST.
475
476 2011-06-08  Eric Blake  <eblake@redhat.com>
477
478         perror: fix test on mingw
479         * modules/perror-tests (Depends-on): Add dup2.
480
481         strerror_r-posix: fix on MacOS
482         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
483         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
484         logic bug.
485         * lib/strerror_r.c (strerror_r): Fix the bug.
486         * lib/strerror.c (strerror): Likewise.
487         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
488         problem.
489         * doc/posix-functions/strerror.texi (strerror): Likewise.
490         * doc/posix-functions/perror.texi (perror): Likewise.
491         * tests/test-strerror.c (main): Enhance test.
492         * tests/test-strerror_r.c (main): Likewise.
493
494 2011-06-08  Bruno Haible  <bruno@clisp.org>
495
496         gnulib-tool: Better isolation between different gnulib-tool invocations.
497         * gnulib-tool: New option --witness-c-macro.
498         (witness_c_macro): New variable.
499         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
500         AM_CPPFLAGS define it as a C macro.
501         (func_emit_tests_Makefile_am): Likewise.
502         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
503         read it from there.
504         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
505         m4_define, not AC_DEFUN.
506         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
507         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
508         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
509         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
510         s|...|...|, to substitute the values of the GNULIB_* module indicator
511         variables.
512         * modules/dirent (Makefile.am): Likewise.
513         * modules/fcntl-h (Makefile.am): Likewise.
514         * modules/iconv-h (Makefile.am): Likewise.
515         * modules/langinfo (Makefile.am): Likewise.
516         * modules/locale (Makefile.am): Likewise.
517         * modules/math (Makefile.am): Likewise.
518         * modules/netdb (Makefile.am): Likewise.
519         * modules/poll-h (Makefile.am): Likewise.
520         * modules/pty (Makefile.am): Likewise.
521         * modules/search (Makefile.am): Likewise.
522         * modules/signal (Makefile.am): Likewise.
523         * modules/spawn (Makefile.am): Likewise.
524         * modules/stdio (Makefile.am): Likewise.
525         * modules/stdlib (Makefile.am): Likewise.
526         * modules/string (Makefile.am): Likewise.
527         * modules/sys_ioctl (Makefile.am): Likewise.
528         * modules/sys_select (Makefile.am): Likewise.
529         * modules/sys_socket (Makefile.am): Likewise.
530         * modules/sys_stat (Makefile.am): Likewise.
531         * modules/sys_times (Makefile.am): Likewise.
532         * modules/sys_utsname (Makefile.am): Likewise.
533         * modules/sys_wait (Makefile.am): Likewise.
534         * modules/termios (Makefile.am): Likewise.
535         * modules/time (Makefile.am): Likewise.
536         * modules/unistd (Makefile.am): Likewise.
537         * modules/wchar (Makefile.am): Likewise.
538
539 2011-06-08  Eric Blake  <eblake@redhat.com>
540
541         strerror: simplify replacement
542         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
543         * modules/strerror (configure.ac): No prereqs needed here...
544         * modules/strerror-override (configure.ac): ...but this needs it.
545         (Files): Add file for needed prereq macro.
546
547 2011-06-08  Bruno Haible  <bruno@clisp.org>
548
549         strerror_r-posix: Tweaks.
550         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
551         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
552         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
553         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
554         (gl_FUNC_STRERROR_R): ... to here.
555         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
556
557 2011-06-07  Eric Blake  <eblake@redhat.com>
558
559         perror: document fixed bugs
560         * doc/posix-functions/perror.texi (perror): Document recent
561         patches.
562
563 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
564
565         stat-time: get_stat_birthtime failure is better-defined
566         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
567         return a timestamp whose tv_sec and tv_nsec values are both -1.
568         Previously, the spec said only that the tv_nsec value was negative.
569         This upward-compatible change simplifies GNU tar a bit.
570
571 2011-06-07  Eric Blake  <eblake@redhat.com>
572
573         strerror_r-posix: work around cygwin 1.7.9
574         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
575         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
576         bug without replacing strerror_r.
577         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
578         strerror_r is buggy, but without requiring strerror_r compilation.
579         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
580
581         test-perror: relax test to ignore cygwin bug
582         * tests/test-perror2.c (main): Relax test on requiring detection
583         of stream errors, and use unbuffered stream.
584         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
585         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
586         * doc/posix-functions/fputc.texi (fputc): Likewise.
587         * doc/posix-functions/fputs.texi (fputs): Likewise.
588         * doc/posix-functions/fputws.texi (fputws): Likewise.
589         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
590         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
591         * doc/posix-functions/getopt.texi (getopt): Likewise.
592         * doc/posix-functions/perror.texi (perror): Likewise.
593         * doc/posix-functions/printf.texi (printf): Likewise.
594         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
595         * doc/posix-functions/psignal.texi (psignal): Likewise.
596         * doc/posix-functions/putc.texi (putc): Likewise.
597         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
598         Likewise.
599         * doc/posix-functions/putchar.texi (putchar): Likewise.
600         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
601         Likewise.
602         * doc/posix-functions/puts.texi (puts): Likewise.
603         * doc/posix-functions/putwc.texi (putwc): Likewise.
604         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
605         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
606         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
607         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
608         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
609         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
610         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
611         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
612
613 2011-05-22  Bruno Haible  <bruno@clisp.org>
614
615         strerror: Move AC_LIBOBJ invocations to module description.
616         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
617         gl_PREREQ_STRERROR invocations from here...
618         * modules/strerror (configure.ac): ... to here.
619
620 2011-05-21  Bruno Haible  <bruno@clisp.org>
621
622         perror: Use common idiom.
623         * modules/perror (configure.ac): Reorder statements.
624
625 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
626
627         tests: fix usage message in 'mktempd_'
628         * tests/init.sh (mktempd_): In the usage message, use literal
629         'mktempd_', not '$ME' (which is even undefined), as the name of
630         the subroutine.
631
632 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
633
634         tests init: new function 'fatal_', for hard errors
635         Before this patch, the only way offered by tests/init.sh to
636         properly signal a hard error was the `framework_failure_'
637         function.  But the error message issued by that function,
638         as its name would suggest, refers to a set-up failure in the
639         testsuite, while hard errors can obviously also be due to
640         other reasons.  The best way to fix this inconsistency is to
641         introduce a new function with a more general error message.
642         * tests/init.sh (fatal_): New function.
643
644 2011-06-06  Eric Blake  <eblake@redhat.com>
645
646         canonicalize-lgpl: use common idiom
647         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
648         over newer POSIX -Rf.
649         Reported by Bruno Haible.
650
651         canonicalize-lgpl: work around AIX realpath bug
652         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
653         * doc/posix-functions/realpath.texi (realpath): Document it.
654         Reported by Bruno Haible.
655
656         strerror: work around FreeBSD bug
657         * lib/strerror.c (strerror): Special case 0.
658         Reported by Bruno Haible.
659
660         strerror-override: avoid bloating errno module
661         * modules/errno (Files, configure.ac): Move replacement strings...
662         * modules/strerror-override: ...to new module.
663         * modules/strerror (Depends-on): Add strerror-override.
664         * modules/strerror_r-posix (Depends-on): Likewise.
665         * MODULES.html.sh: Document new module.
666         Reported by Bruno Haible.
667
668 2011-06-06  Bruno Haible  <bruno@clisp.org>
669
670         spawn-pipe tests: Rename program.
671         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
672         * tests/test-spawn-pipe-child.c: Update comment.
673         * tests/test-spawn-pipe.sh: Update.
674         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
675
676         spawn-pipe tests: Link the child program only against libc.
677         * tests/test-spawn-pipe-child.c: New file, extracted from
678         tests/test-spawn-pipe.c.
679         (main): Expect only one argument.
680         (is_open): New function, copied from tests/test-pipe.c.
681         * tests/test-spawn-pipe.c: Don't include <errno.h>.
682         (child_main): Remove function.
683         (test_pipe): Pass only one argument to the child program.
684         (main): Remove child process code. Expect the child program's name as
685         first argument.
686         * tests/test-spawn-pipe.sh: Pass the child program's name as first
687         argument.
688         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
689         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
690         test-spawn-pipe-child against no libraries.
691
692 2011-06-06  Bruno Haible  <bruno@clisp.org>
693
694         careadlinkat: Avoid mismatch between ssize_t and int.
695         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
696         * lib/careadlinkat.c (careadlinkatcwd): Define always.
697
698 2011-06-06  Jim Meyering  <meyering@redhat.com>
699
700         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
701         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
702         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
703
704 2011-06-05  Bruno Haible  <bruno@clisp.org>
705
706         ansi-c++-opt: Interoperability with libtool.
707         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
708         set the variable to "no", not to ":".
709         * NEWS: Mention the change.
710
711 2011-06-05  Bruno Haible  <bruno@clisp.org>
712
713         acl: Fix test failure on AIX 7.
714         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
715         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
716
717 2011-06-05  Bruno Haible  <bruno@clisp.org>
718
719         pipe-filter-ii: Fix test failure on AIX and IRIX.
720         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
721         with EAGAIN, retry with a smaller buffer size.
722
723 2011-06-05  Bruno Haible  <bruno@clisp.org>
724
725         localename: Fix link dependencies.
726         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
727         * modules/localename-tests (Makefile.am): Link test-localename with
728         $(LIBTHREAD).
729
730 2011-06-05  Bruno Haible  <bruno@clisp.org>
731
732         error: Avoid gcc warning.
733         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
734
735 2011-06-05  Bruno Haible  <bruno@clisp.org>
736
737         unsetenv: Avoid gcc warning.
738         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
739
740 2011-06-05  Bruno Haible  <bruno@clisp.org>
741
742         setenv: Avoid gcc warning.
743         * lib/setenv.c (setenv): Provide declaration if system lacks it.
744
745 2011-06-05  Bruno Haible  <bruno@clisp.org>
746
747         sys_select: Ensure memset is declared also on AIX 7.
748         * lib/sys_select.in.h: Include <string.h> also on AIX.
749         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
750         self-contained also on AIX 7.1.
751
752 2011-06-04  Jim Meyering  <meyering@redhat.com>
753
754         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
755         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
756         function name, "error".
757         (_gl_translatable_diag_func_re): New configurable variable.
758
759 2011-06-04  Bruno Haible  <bruno@clisp.org>
760
761         getopt: Avoid gcc warning.
762         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
763
764 2011-06-04  Bruno Haible  <bruno@clisp.org>
765
766         strerror_r: Fix comments.
767         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
768         commit.
769
770 2011-06-04  Bruno Haible  <bruno@clisp.org>
771
772         perror: Fix compilation error.
773         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
774         Undefine fprintf, not sprintf.
775         * modules/perror (Depends-on): Remove intprops, verify.
776
777 2011-06-04  Bruno Haible  <bruno@clisp.org>
778
779         setlocale: Enable replacement on Cygwin 1.5.
780         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
781         Cygwin 1.5.x.
782         * doc/posix-functions/setlocale.texi: Mention that the problem with the
783         LC_CTYPE category also exists on Cygwin 1.5.x.
784
785 2011-06-04  Bruno Haible  <bruno@clisp.org>
786
787         strerror-override: Don't disable symbol renamings.
788         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
789         * lib/strerror-override.c: Include config.h.
790         (strerror_override): Don't undefine.
791
792 2011-06-03  Bruno Haible  <bruno@clisp.org>
793
794         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
795         * lib/localename.h: Update copyright header.
796         * lib/localename.c: Likewise.
797         * lib/relocatable.h: Likewise.
798         * lib/relocatable.c: Likewise.
799
800 2011-06-02  Bruno Haible  <bruno@clisp.org>
801
802         doc: Fix a module name.
803         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
804
805 2011-06-02  Bruno Haible  <bruno@clisp.org>
806
807         pipe2: Remove dependency on 'nonblocking' module.
808         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
809         O_NONBLOCK is defined by gnulib.
810         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
811         is zero.
812         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
813         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
814         defined by gnulib.
815         (get_nonblocking_flag): New function.
816         (main): Test O_NONBLOCK flag only if it is nonzero.
817         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
818
819 2011-06-03  Jim Meyering  <meyering@redhat.com>
820
821         maint: three new prohibit-header-without-use rules
822         Prohibit use of cloexec.h, posixver.h, same.h without use.
823         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
824         (sc_prohibit_posixver_without_use): Likewise.
825         (sc_prohibit_same_without_use): Likewise.
826
827 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
828
829         allocator: 'die' routine is now given requested size
830         * lib/allocator.h (struct allocator.die): New size arg.
831         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
832         If the actual problem is an ssize_t limitation, not a size_t or
833         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
834
835 2011-06-01  Eric Blake  <eblake@redhat.com>
836
837         strerror: drop strerror_r dependency
838         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
839         * lib/strerror-override.c (strerror_override): ...to new file.
840         * lib/strerror-override.h: Add prototype.
841         * lib/strerror-impl.h: Delete.
842         * lib/strerror.c (strerror): New implementation.
843         * modules/errno (Files): Add new files.
844         (configure.ac): Compile new file as appropriate.
845         * modules/strerror (Files): Drop unused file.
846         (Depends-on): Drop strerror_r-posix.
847         * MODULES.html.sh: Document strerror_r-posix.
848         Requested by Sam Steingold.
849
850         perror: call strerror_r directly
851         * modules/perror (Files): Drop strerror-impl.h.
852         * lib/perror.c (perror): Use our own stack buffer, rather than
853         calling a wrapper that uses static storage.
854         * doc/posix-functions/perror.texi (perror): Document a limitation
855         of our replacement.
856
857         strerror_r: fix includes for FreeBSD
858         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
859         since we use abort on some platforms.
860         Reported by Matthias Bolte.
861
862 2011-05-31  Bruno Haible  <bruno@clisp.org>
863
864         Fix link errors in tests: openat-die uses gettext-h.
865         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
866         against $(LIBINTL).
867         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
868         against $(LIBINTL).
869         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
870         $(LIBINTL).
871         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
872         against $(LIBINTL).
873         * modules/linkat-tests (Makefile.am): Link test-linkat against
874         $(LIBINTL).
875         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
876         $(LIBINTL).
877         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
878         against $(LIBINTL).
879         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
880         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
881         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
882         $(LIBINTL).
883         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
884         $(LIBINTL).
885         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
886         $(LIBINTL).
887         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
888
889 2011-05-31  Bruno Haible  <bruno@clisp.org>
890
891         Fix link errors in tests: wait-process uses gettext-h.
892         * modules/nonblocking-pipe-tests (Makefile.am): Set
893         test_nonblocking_pipe_main_LDADD.
894         * modules/nonblocking-socket-tests (Makefile.am): Link
895         test-nonblocking-socket-main against $(LIBINTL).
896         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
897
898 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
899
900         assert-h: work around 'verify' incompatibility
901         * lib/verify.h: Use @...@ directives, not ifdef.
902         * modules/assert-h (assert.h): Implement the directives.
903         (assert.h): Substitute the symbol-prefix more consistently.
904
905 2011-05-29  Jim Meyering  <meyering@redhat.com>
906
907         trim: remove three superfluous assignments
908         * lib/trim.c (trim2): Remove three superfluous assignments
909         and correct brace positioning.
910
911 2011-05-29  Bruno Haible  <bruno@clisp.org>
912
913         wctype-h: Avoid namespace pollution on Solaris 2.6.
914         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
915         identifiers.
916         * doc/posix-headers/wctype.texi: Mention the problem.
917         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
918
919 2011-05-28  Jim Meyering  <meyering@redhat.com>
920
921         parse-datetime.y: accommodate -Wstrict-overflow
922         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
923         placate -Wstrict-overflow.
924
925         trim: avoid a warning from -O2 -Wstrict-overflow
926         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
927
928 2011-05-29  Bruno Haible  <bruno@clisp.org>
929
930         gnulib-tool: Fix bug in yesterday's commit.
931         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
932         twice.
933
934 2011-05-29  Bruno Haible  <bruno@clisp.org>
935
936         Allow multiple gnulib generated include files to be combined.
937         * gnulib-tool (func_compute_include_guard_prefix): New function.
938         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
939         ${gl_include_guard_prefix} references.
940         (func_import, func_create_testdir): Invoke
941         func_compute_include_guard_prefix.
942         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
943         * lib/ctype.in.h: Likewise.
944         * lib/dirent.in.h: Likewise.
945         * lib/errno.in.h: Likewise.
946         * lib/fcntl.in.h: Likewise.
947         * lib/float.in.h: Likewise.
948         * lib/getopt.in.h: Likewise.
949         * lib/iconv.in.h: Likewise.
950         * lib/langinfo.in.h: Likewise.
951         * lib/locale.in.h: Likewise.
952         * lib/math.in.h: Likewise.
953         * lib/netdb.in.h: Likewise.
954         * lib/netinet_in.in.h: Likewise.
955         * lib/poll.in.h: Likewise.
956         * lib/pthread.in.h: Likewise.
957         * lib/pty.in.h: Likewise.
958         * lib/sched.in.h: Likewise.
959         * lib/se-selinux.in.h: Likewise.
960         * lib/search.in.h: Likewise.
961         * lib/signal.in.h: Likewise.
962         * lib/spawn.in.h: Likewise.
963         * lib/stdarg.in.h: Likewise.
964         * lib/stddef.in.h: Likewise.
965         * lib/stdint.in.h: Likewise.
966         * lib/stdio.in.h: Likewise.
967         * lib/stdlib.in.h: Likewise.
968         * lib/string.in.h: Likewise.
969         * lib/strings.in.h: Likewise.
970         * lib/sys_file.in.h: Likewise.
971         * lib/sys_ioctl.in.h: Likewise.
972         * lib/sys_select.in.h: Likewise.
973         * lib/sys_socket.in.h: Likewise.
974         * lib/sys_stat.in.h: Likewise.
975         * lib/sys_time.in.h: Likewise.
976         * lib/sys_times.in.h: Likewise.
977         * lib/sys_uio.in.h: Likewise.
978         * lib/sys_utsname.in.h: Likewise.
979         * lib/sys_wait.in.h: Likewise.
980         * lib/sysexits.in.h: Likewise.
981         * lib/termios.in.h: Likewise.
982         * lib/time.in.h: Likewise.
983         * lib/unistd.in.h: Likewise.
984         * lib/wchar.in.h: Likewise.
985         * lib/wctype.in.h: Likewise.
986         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
987         * modules/ctype (Makefile.am): Likewise.
988         * modules/dirent (Makefile.am): Likewise.
989         * modules/errno (Makefile.am): Likewise.
990         * modules/fcntl-h (Makefile.am): Likewise.
991         * modules/float (Makefile.am): Likewise.
992         * modules/getopt-posix (Makefile.am): Likewise.
993         * modules/iconv-h (Makefile.am): Likewise.
994         * modules/langinfo (Makefile.am): Likewise.
995         * modules/locale (Makefile.am): Likewise.
996         * modules/math (Makefile.am): Likewise.
997         * modules/netdb (Makefile.am): Likewise.
998         * modules/netinet_in (Makefile.am): Likewise.
999         * modules/poll-h (Makefile.am): Likewise.
1000         * modules/pthread (Makefile.am): Likewise.
1001         * modules/pty (Makefile.am): Likewise.
1002         * modules/sched (Makefile.am): Likewise.
1003         * modules/search (Makefile.am): Likewise.
1004         * modules/selinux-h (Makefile.am): Likewise.
1005         * modules/signal (Makefile.am): Likewise.
1006         * modules/spawn (Makefile.am): Likewise.
1007         * modules/stdarg (Makefile.am): Likewise.
1008         * modules/stddef (Makefile.am): Likewise.
1009         * modules/stdint (Makefile.am): Likewise.
1010         * modules/stdio (Makefile.am): Likewise.
1011         * modules/stdlib (Makefile.am): Likewise.
1012         * modules/string (Makefile.am): Likewise.
1013         * modules/strings (Makefile.am): Likewise.
1014         * modules/sys_file (Makefile.am): Likewise.
1015         * modules/sys_ioctl (Makefile.am): Likewise.
1016         * modules/sys_select (Makefile.am): Likewise.
1017         * modules/sys_socket (Makefile.am): Likewise.
1018         * modules/sys_stat (Makefile.am): Likewise.
1019         * modules/sys_time (Makefile.am): Likewise.
1020         * modules/sys_times (Makefile.am): Likewise.
1021         * modules/sys_uio (Makefile.am): Likewise.
1022         * modules/sys_utsname (Makefile.am): Likewise.
1023         * modules/sys_wait (Makefile.am): Likewise.
1024         * modules/sysexits (Makefile.am): Likewise.
1025         * modules/termios (Makefile.am): Likewise.
1026         * modules/time (Makefile.am): Likewise.
1027         * modules/unistd (Makefile.am): Likewise.
1028         * modules/wchar (Makefile.am): Likewise.
1029         * modules/wctype-h (Makefile.am): Likewise.
1030         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
1031
1032 2011-05-29  Bruno Haible  <bruno@clisp.org>
1033
1034         assert-h: Allow multiple gnulib generated replacements to coexist.
1035         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
1036
1037 2011-05-29  Bruno Haible  <bruno@clisp.org>
1038
1039         argp: Allow coexistence with strerror_r-posix module.
1040         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
1041         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
1042         by gnulib's <string.h> replacement), assume it has the POSIX signature,
1043         not the glibc signature.
1044
1045 2011-05-28  Bruno Haible  <bruno@clisp.org>
1046
1047         gnulib-tool: Alternative structure of testdirs, similar to --import.
1048         * gnulib-tool: New option --single-configure.
1049         (func_usage): Document it.
1050         (single_configure): New variable.
1051         (func_modules_transitive_closure_separately,
1052         func_modules_transitive_closure_separately,
1053         func_determine_use_libtests, func_modules_add_dummy_separately,
1054         func_modules_to_filelist_separately): New functions, extracted from
1055         func_import.
1056         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
1057         (func_import): Use the new functions.
1058         (func_create_testdir): Set final_modules. Handle $single_configure =
1059         true case.
1060
1061 2011-05-28  Bruno Haible  <bruno@clisp.org>
1062
1063         getloadavg: Remove an unreliable safety check.
1064         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
1065         getloadavg.c is in place.
1066         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
1067         Reported by Sam Steingold <sds@gnu.org>.
1068
1069 2011-05-28  Bruno Haible  <bruno@clisp.org>
1070
1071         doc: Cleanup yet another file produced by texinfo.tex.
1072         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
1073
1074 2011-05-28  Bruno Haible  <bruno@clisp.org>
1075
1076         Finish the conditional dependencies mechanism.
1077         * gnulib-tool: New option --no-conditional-dependencies.
1078         (func_usage): Document it. Don't mark --conditional-dependencies as
1079         experimental.
1080         (cond_dependencies): The possible values can now be true, false, empty.
1081         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
1082         (func_import): Store setting in gnulib-cache.m4 and read it from there.
1083         * doc/gnulib-tool.texi (Conditional dependencies): New section.
1084
1085 2011-05-28  Bruno Haible  <bruno@clisp.org>
1086
1087         doc: Use a recent texinfo.tex.
1088         * doc/Makefile (tex_opts): New variable.
1089         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
1090
1091 2011-05-28  Jim Meyering  <meyering@redhat.com>
1092
1093         intprops.h: adjust comment to match code change
1094         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
1095         only once, it *may* have side effects.  Also fix an unrelated typo.
1096         (_GL_INT_SIGNED): Likewise.
1097
1098 2011-05-26  Simon Josefsson  <simon@josefsson.org>
1099
1100         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
1101
1102 2011-05-26  Bruno Haible  <bruno@clisp.org>
1103
1104         mbsrchr: Avoid collision with system function on Interix.
1105         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
1106         Reported by Markus Duft <mduft@gentoo.org>.
1107
1108 2011-05-15  James Youngman  <jay@gnu.org>
1109
1110         getopt: for ambiguous options, enumerate the possibilities.
1111         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
1112         the ambiguous options when an ambiguous prefix is given. This was
1113         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
1114         glibc change was
1115         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
1116
1117 2011-05-25  Eric Blake  <eblake@redhat.com>
1118
1119         getcwd: work around mingw bug
1120         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
1121         * doc/posix-functions/getcwd.texi (getcwd): Document it.
1122         Reported by Matthias Bolte.
1123
1124 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
1125
1126         test-intprops: disable -Wtype-limits diagnostics
1127         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
1128         diagnostics.  Otherwise, the integer overflow macros generate many
1129         diagnostics.  Reported by Jim Meyering in
1130         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
1131
1132         intprops: shorten, to pacify gcc -Woverlength-strings
1133         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
1134         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
1135         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
1136         likely to run afoul of C compiler limits for string constant lengths.
1137         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
1138
1139 2011-05-24  Eric Blake  <eblake@redhat.com>
1140
1141         docs: document recently fixed glibc printf bug
1142         * doc/posix-functions/fprintf.texi (fprintf): Document it.
1143         * doc/posix-functions/printf.texi (printf): Likewise.
1144         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
1145         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
1146
1147         closein-tests: convert to init.sh
1148         * modules/closein-tests (Files): Add init.sh
1149         * tests/test-closein.sh Use it.
1150
1151         yesno-tests: convert to init.sh
1152         * modules/yesno-tests (Files): Add init.sh.
1153         * tests/test-yesno.sh: Use it.
1154
1155         atexit-tests: ensure reliable exit status
1156         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
1157         Reported by Bruno Haible.
1158
1159 2011-05-24  Bruno Haible  <bruno@clisp.org>
1160
1161         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
1162         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
1163         gl_PREREQ_STRERROR_R invocations from here...
1164         * modules/strerror_r-posix (configure.ac): ... to here.
1165
1166 2011-05-24  Eric Blake  <eblake@redhat.com>
1167
1168         strerror_r: fix missing header
1169         * lib/strerror_r.c: Avoid compiler warning about snprintf.
1170
1171         strerror_r: fix AIX test failures
1172         * lib/strerror_r.c (strerror_r): Convert silent truncation to
1173         ERANGE failure.
1174
1175         strerror_r: fix Solaris test failures
1176         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
1177         failures.
1178         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
1179
1180         strerror_r: enforce POSIX recommendations
1181         * lib/strerror_r.c (safe_copy): New helper method.
1182         (strerror_r): Guarantee a non-empty string.
1183         * tests/test-strerror_r.c (main): Enhance tests to incorporate
1184         recent POSIX rulings and to match our strerror guarantees.
1185         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
1186
1187 2011-05-24  Jim Meyering  <meyering@redhat.com>
1188
1189         test-perror2.c: avoid warning about unused variable
1190         * tests/test-perror2.c (main): Remove declaration of unused "fp".
1191
1192 2011-05-24  Eric Blake  <eblake@redhat.com>
1193
1194         perror: avoid spurious test failure on HP-UX
1195         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
1196
1197         tests: fix logic bug in init.sh
1198         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
1199         shell.
1200
1201 2011-05-24  Jim Meyering  <meyering@redhat.com>
1202
1203         utimensat: do not reference an out-of-scope buffer
1204         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
1205         declared in an inner scope, yet "times" would be dereferenced outside
1206         the scope in which "ts" was valid.
1207         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
1208         of ts[2] "out/up", so that the use of aliased "times" (via
1209         "times = ts;") does not end up referencing an out-of-scope "ts"
1210
1211         opendir-safer.c: don't clobber errno; don't close negative FD
1212         * lib/opendir-safer.c (opendir_safer):
1213         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
1214         file descriptor, and more importantly, don't clobber the
1215         offending errno value with EINVAL.  Before, upon failure
1216         of dup_safer, we would pass the negative file descriptor to
1217         fdopendir, which would clobber errno.
1218
1219 2011-05-23  Bruno Haible  <bruno@clisp.org>
1220
1221         idcache: Fix module description.
1222         * modules/idcache (Include): Set to "idcache.h".
1223
1224 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1225
1226         gnulib-tool: fix portability problem with MacOS sed
1227         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
1228         before the "}".  Problem reported by Leo in
1229         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
1230         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
1231         sed_extract_condition1, sed_extract_condition2.
1232
1233 2011-05-23  Bruno Haible  <bruno@clisp.org>
1234
1235         hash: Simplify autoconf macro.
1236         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
1237
1238 2011-05-23  Bruno Haible  <bruno@clisp.org>
1239
1240         getugroups: Fix module description.
1241         * modules/getugroups (Include): Set to "getugroups.h".
1242
1243 2011-05-23  Bruno Haible  <bruno@clisp.org>
1244
1245         linkat: Simplify autoconf macro.
1246         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
1247
1248 2011-05-23  Bruno Haible  <bruno@clisp.org>
1249             Eric Blake  <eblake@redhat.com>
1250
1251         linkat, renameat: Update dependencies.
1252         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
1253         * modules/linkat (Depends-on): Likewise. Remove also readlink,
1254         symlinkat.
1255
1256 2011-05-23  Jim Meyering  <meyering@redhat.com>
1257
1258         maint.mk: more tight_scope improvements
1259         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
1260         (_gl_TS_headers): Define only in if-0'd block.
1261         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
1262         sometimes we must *not* use it.  Adjust uses accordingly.
1263         (sc_tight_scope): Use much simpler grep-based test to determine
1264         whether we skip this rule.
1265
1266         maint.mk: generalize/improve the tight-scope rule
1267         * top/maint.mk: Emit a warning when the test is skipped.
1268         (_gl_TS_dir): Add $(srcdir)/ prefix.
1269         (_gl_TS_function_match): Simplify, rather than trying
1270         to enumerate common types.  Otherwise, it would fail to match an
1271         "extern unsigned char const *" declaration in idutils.
1272         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
1273         a way to support use of that type of macro.
1274         (_gl_TS_var_match): Simplify regexp.
1275         (_gl_TS_obj_files): New configurable variable.
1276         (_gl_TS_headers): Likewise.
1277
1278 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
1279
1280         verify: fix bug when gnulib <assert.h> is also included
1281         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
1282         is defined, not if _GL_STATIC_ASSERT_H is not defined.
1283         Perhaps there's a better way, but this fixes the immediate problem.
1284         Problem reported by Bruno Haible in
1285         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
1286
1287 2011-05-22  Bruno Haible  <bruno@clisp.org>
1288
1289         xgetcwd: Simplify autoconf macro.
1290         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
1291
1292 2011-05-22  Bruno Haible  <bruno@clisp.org>
1293
1294         New module 'mktime-internal'.
1295         * modules/mktime-internal: New file.
1296         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
1297         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
1298         mktime_internal as a C macro if libc has __mktime_internal.
1299         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
1300         conditions.
1301         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
1302
1303 2011-05-22  Bruno Haible  <bruno@clisp.org>
1304
1305         timegm: Correct mktime replacement statements.
1306         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
1307         defining mktime as a C macro. This completes a 2009-07-28 commit.
1308
1309 2011-05-22  Bruno Haible  <bruno@clisp.org>
1310
1311         timegm: Simplify autoconf macro.
1312         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
1313
1314 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
1315
1316         clock-time: change to LGPLv2+.
1317         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
1318         BSD-like but we have no mark for that; this is good enough for now.
1319
1320 2011-05-21  Bruno Haible  <bruno@clisp.org>
1321
1322         strerror_r: Fix comments.
1323         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
1324
1325 2011-05-21  Bruno Haible  <bruno@clisp.org>
1326
1327         relocatable-prog-wrapper: Fix possible link error.
1328         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
1329         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
1330         (gl_FUNC_SETENV): ... to here.
1331         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
1332         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
1333
1334 2011-05-21  Bruno Haible  <bruno@clisp.org>
1335
1336         relocatable-prog-wrapper: Assume strerror() exists.
1337         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
1338         m4/strerror.m4.
1339         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
1340         * lib/relocwrapper.c: Remove mention of strerror module.
1341         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
1342         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
1343         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
1344         C macro.
1345
1346 2011-05-21  Bruno Haible  <bruno@clisp.org>
1347
1348         select: Simplify replacement idiom.
1349         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
1350         Win32 platforms.
1351         * lib/sys_select.in.h (select): Simplify accordingly.
1352         * modules/select (Depends-on): Likewise.
1353
1354 2011-05-21  Bruno Haible  <bruno@clisp.org>
1355
1356         mkdir-p: Simplify autoconf macro.
1357         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
1358         gl_FUNC_LCHOWN.
1359
1360 2011-05-21  Eric Blake  <eblake@redhat.com>
1361
1362         strerror_r: avoid clobbering strerror on cygwin
1363         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
1364         fall back instead to sys_errlist.
1365         * modules/strerror (configure.ac): Add witness.
1366         * tests/test-strerror_r.c (main): Enhance test.
1367         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1368         * tests/test-perror2.c (main): Free memory before exit.
1369
1370 2011-05-21  Bruno Haible  <bruno@clisp.org>
1371
1372         mkdtemp: Use gnulib naming conventions.
1373         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
1374         * modules/mkdtemp (configure.ac): Update.
1375
1376 2011-05-20  Eric Blake  <eblake@redhat.com>
1377
1378         strerror_r: avoid corrupting errno on Solaris
1379         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
1380         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
1381
1382         strerror_r: avoid compiler warning
1383         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
1384
1385         strerror_r: simplify AIX code
1386         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
1387
1388         test-perror: avoid spurious failure on FreeBSD
1389         * modules/perror-tests (Depends-on): Add strerror, now that
1390         strerror_r no longer pulls it in.
1391
1392 2011-05-20  Bruno Haible  <bruno@clisp.org>
1393
1394         strerror_r-posix: Remove unused dependencies.
1395         * modules/strerror_r-posix (Depends-on): Remove strerror.
1396         Reported by Eric Blake.
1397
1398 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
1399
1400         intprops: remove assumption about A|B representation
1401         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
1402         is a valid integer if both A and B are.  Although this is true for
1403         all known practical hosts, the C standard doesn't guarantee it,
1404         and the code need not assume it.  Also, this change may work around
1405         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
1406         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
1407
1408 2011-05-20  Eric Blake  <eblake@redhat.com>
1409
1410         perror: work around FreeBSD bug
1411         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
1412         is broken.  Move AC_LIBOBJ...
1413         * modules/perror (configure.ac): Here.
1414         * doc/posix-functions/perror.texi (perror): Document this.
1415         * tests/test-perror2.c (main): Enhance test.
1416
1417         test-perror: check for strerror interactions
1418         * tests/macros.h (STREQ): Add macro.
1419         * modules/perror-tests (Files): Add second test.
1420         * tests/test-perror2.c (main): New file.
1421         * doc/posix-functions/perror.texi (perror): Document glibc bug.
1422
1423         test-perror: rewrite to use init script
1424         * modules/perror-tests (Files): Add init.sh.
1425         * tests/test-perror.sh: Use temporary directory.
1426
1427 2011-05-20  Jim Meyering  <meyering@redhat.com>
1428
1429         maint: replace misused "a" with "an"
1430         * doc/intprops.texi: "a integer"
1431         * doc/regex.texi: "a explanation"
1432         * lib/alignof.h: "a object"
1433         * lib/argmatch.h: "a explanation"
1434         * lib/argp-help.c: "a option" and "a OPTION_DOC"
1435         * lib/stdint.in.h: "a integer"
1436         * lib/userspec.c: "a owner"
1437         * doc/gnulib.texi: Fix "a idea", and reword.
1438
1439 2011-05-19  Jim Meyering  <meyering@redhat.com>
1440
1441         maint: correct misuse of "a" and "an"
1442         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
1443         * lib/argp-help.c: "an docum...": s/an/a/
1444         * lib/argp-parse.c: "An vector": s/An/A/
1445         * lib/execute.c: "an native": s/an/a/
1446         * lib/spawn-pipe.c: Likewise.
1447         * lib/gc.h: "an Gc_rc": s/an/a/
1448         * lib/unigbrk.in.h: "an grapheme": s/an/a/
1449         * lib/fts.c: "an stat.st_dev": s/an/a/
1450
1451 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1452
1453         intprops-tests: work around HP-UX 11.23 cc bug with constants
1454         * tests/test-intprops.c (VERIFY): New macro.
1455         (main): Use it, instead of verify, to work around the compiler bug; see
1456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1457
1458         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
1459         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
1460         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
1461         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
1462         (_GL_REMAINDER_OVERFLOW): Use it.
1463
1464         intprops-tests: revert unsigned part of previous change
1465         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
1466         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
1467         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
1468         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
1469
1470 2011-05-19  Bruno Haible  <bruno@clisp.org>
1471
1472         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
1473         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
1474         strerror_r() returned without filling the buffer.
1475         Reported by Eric Blake.
1476
1477 2011-05-19  Eric Blake  <eblake@redhat.com>
1478
1479         strerror_r: guarantee unchanged errno
1480         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
1481         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
1482         failure.
1483         * tests/test-strerror_r.c (main): Enhance test.
1484
1485 2011-05-19  Bruno Haible  <bruno@clisp.org>
1486
1487         strerror_r: Reorder #if blocks.
1488         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
1489         for consistency with the previous commit.
1490
1491 2011-05-19  Bruno Haible  <bruno@clisp.org>
1492
1493         perror: Avoid clobbering the strerror buffer when possible.
1494         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
1495         * lib/strerror.c: Include it.
1496         * modules/strerror (Files): Add lib/strerror-impl.h.
1497         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
1498         (my_strerror): New function, defined through lib/strerror-impl.h.
1499         (perror): Use it instead of strerror.
1500         * modules/perror (Files): Add lib/strerror-impl.h.
1501         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
1502
1503 2011-05-19  Eric Blake  <eblake@redhat.com>
1504
1505         strerror_r: fix on newer cygwin
1506         * lib/strerror_r.c (strerror_r): Cygwin now has
1507         __xpg_strerror_r, use it.
1508
1509 2011-05-19  Bruno Haible  <bruno@clisp.org>
1510
1511         strerror_r: Avoid clobbering the strerror buffer when possible.
1512         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
1513         (sys_nerr, sys_errlist): New declarations.
1514         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
1515         HP-UX, native Win32, IRIX, and 32-bit Solaris.
1516         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
1517
1518 2011-05-19  Bruno Haible  <bruno@clisp.org>
1519
1520         strerror_r: Fix test failure on mingw.
1521         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
1522         EXTEND_STRERROR_R.
1523         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
1524         macros from errno.in.h instead.
1525
1526 2011-05-19  Eric Blake  <eblake@redhat.com>
1527
1528         strerror: relax test for Solaris
1529         * tests/test-strerror.c (main): Permit Solaris behavior.
1530         * tests/test-strerror_r.c (main): Likewise.
1531
1532         strerror: enforce POSIX ruling on strerror(0)
1533         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
1534         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
1535         * lib/strerror_r.c (rpl_strerror_r): Work around it.
1536         * doc/posix-functions/strerror.texi (strerror): Document it.
1537         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
1538         * tests/test-strerror.c (main): Strengthen test.
1539         * tests/test-strerror_r.c (main): Likewise.
1540
1541 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
1542
1543         intprop-tests: port to older and more-pedantic compilers
1544         * modules/intprops-tests (Files): Add tests/macros.h.
1545         * tests/test-intprops.c: Include macros.h.
1546         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
1547         it's no longer documented to expand to an integer constant expression.
1548         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
1549         argument is floating point, as it's no longer documented to expand
1550         to an integer constant expression in that case.
1551         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
1552         compiler bugs reported by Bruno Haible.  See
1553         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1554         (U0, U1): New constants, to work around the same bugs.  Also,
1555         in tests, use e.g., "(unsigned int) 39" rather than "39u".
1556
1557         intprops: work around C compiler bugs
1558         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
1559         bug in Sun C 5.11 2010/08/13 and other compilers; see
1560         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
1561
1562         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
1563         * doc/intprops.texi (Integer Type Determination): Fix
1564         documentation for TYPE_IS_INTEGER: it returns an constant
1565         expression, not an integer constant expression.  Fix doc for
1566         TYPE_SIGNED: it returns an integer constant expression only if its
1567         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
1568         hardly worth documented that way....)
1569
1570 2011-05-18  Bruno Haible  <bruno@clisp.org>
1571
1572         strerror_r: Avoid clobbering the strerror buffer when possible.
1573         * lib/strerror_r.c (strerror_r): Merge the three implementations.
1574         Handle gnulib defined errno values here. When strerror() returns NULL
1575         or an empty string, return EINVAL.
1576         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
1577         gnulib defined errno values here.
1578         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
1579
1580 2011-05-18  Eric Blake  <eblake@redhat.com>
1581
1582         fnmatch: avoid compiler warning
1583         * lib/fnmatch_loop.c (FCT): Use correct type.
1584         Reported by Matthias Bolte.
1585
1586 2011-05-13  Jim Meyering  <meyering@redhat.com>
1587
1588         maint.mk: three new prohibit_<HDR>_without_use rules
1589         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
1590         (sc_prohibit_stdio-safer_without_use): Likewise.
1591         (sc_prohibit_xfreopen_without_use): Likewise.
1592
1593 2011-05-17  Jim Meyering  <meyering@redhat.com>
1594
1595         announce-gen: fail if the NEWS delta is empty
1596         If there's nothing noteworthy in NEWS, then either you forgot
1597         or you shouldn't be releasing.
1598         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
1599
1600 2011-05-17  Pádraig Brady <P@draigBrady.com>
1601
1602         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
1603         reserved symbols starting with double underscore from the check.
1604
1605 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
1606
1607         intprops: add doc
1608         * doc/intprops.texi: New file, documenting intprops.
1609         * doc/gnulib.texi (Particular Modules): Include it.
1610
1611         verify: add doc to gnulib manual and fix example
1612         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
1613         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
1614         (Compile-time Assertions): Fix example so it can't overflow.
1615
1616 2011-05-17  Jim Meyering  <meyering@redhat.com>
1617
1618         warnings.m4: don't usurp save_CPPFLAGS variable name
1619         * m4/warnings.m4: Prefix local temporary variable name with gl_.
1620
1621         doc: fix typo
1622         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
1623
1624 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1625             Bruno Haible  <bruno@clisp.org>
1626
1627         doc: Tweak recent change.
1628         * README (Portability guidelines): Tweak new text.
1629         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
1630         Interix 6.1.
1631
1632 2011-05-16  Eric Blake  <eblake@redhat.com>
1633
1634         inttypes: avoid autoconf warning
1635         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
1636         * m4/stdint.m4 (gl_STDINT_H): Likewise.
1637
1638 2011-05-16  Sam Steingold <sds@gnu.org>
1639         and Eric Blake  <eblake@redhat.com>
1640
1641         vc-list-files: accept multiple directory operands
1642         * build-aux/vc-list-files: Iterate over all remaining operands.
1643
1644 2011-05-16  Bruno Haible  <bruno@clisp.org>
1645
1646         Fix confusion regarding deprecated modules.
1647         * modules/calloc (Status, Notice): Mark module as deprecated, not
1648         obsolete.
1649         * modules/fnmatch-posix (Status, Notice): Likewise.
1650         * modules/getdate (Status, Notice): Likewise.
1651         * modules/getopt (Status, Notice): Likewise.
1652         * modules/malloc (Status, Notice): Likewise.
1653         * modules/pipe (Status, Notice): Likewise.
1654         * modules/realloc (Status, Notice): Likewise.
1655         * modules/rename-dest-slash (Status, Notice): Likewise.
1656         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
1657         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
1658         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
1659         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
1660         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
1661
1662 2011-05-16  Bruno Haible  <bruno@clisp.org>
1663
1664         doc: List the target platforms.
1665         * doc/gnulib-intro.texi (Target Platforms): New section.
1666         * doc/gnulib.texi (Introduction): Update menu.
1667         * README (Portability guidelines): Refer to the new section. Update
1668         statement about oldest supported environment. Remove rationale why
1669         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
1670         unportable C89 function.
1671         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
1672         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
1673
1674 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
1675
1676         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
1677
1678 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
1679
1680         intprops-tests: new module
1681         * modules/intprops-tests, tests/test-intprops.c: New files.
1682
1683         intprops: add safe, portable integer overflow checking
1684         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
1685         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
1686         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
1687         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
1688         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
1689         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
1690         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
1691         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
1692         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
1693         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
1694         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
1695
1696 2011-05-12  James Youngman  <jay@gnu.org>
1697
1698         Add a test for glibc's Bugzilla bug #12378.
1699         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
1700         doesn't allow the literal matching of a lone "[" (which is
1701         required by POSIX).
1702         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
1703
1704 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
1705
1706         Sync glibc change fixing Bugzilla bug #12378.
1707         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
1708         beginning and fall back to matching as normal character if the
1709         string ends before the matching ']' is found.  This is what POSIX
1710         requires.
1711
1712 2011-05-13  Eric Blake  <eblake@redhat.com>
1713
1714         getcwd-lgpl: relax test for FreeBSD
1715         * doc/posix-functions/getcwd.texi (getcwd): Document portability
1716         issue.
1717         * tests/test-getcwd-lgpl.c (main): Relax test.
1718         Reported by Matthias Bolte.
1719
1720 2011-05-11  Eric Blake  <eblake@redhat.com>
1721
1722         test-fflush: silence compiler warning
1723         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
1724
1725 2011-05-11  Bruno Haible  <bruno@clisp.org>
1726
1727         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
1728         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
1729         * modules/canonicalize (Depends-on): Add 'nocrash'.
1730         * modules/canonicalize-lgpl (Depends-on): Likewise.
1731         * doc/posix-functions/realpath.texi: Update platforms list.
1732         Reported by Ryan Schmidt <ryandesign@macports.org>.
1733
1734 2011-05-11  Bruno Haible  <bruno@clisp.org>
1735
1736         group-member: Declare function in <unistd.h>.
1737         * lib/unistd.in.h (group_member): New declaration.
1738         * lib/group-member.h: Remove file.
1739         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
1740         * tests/test-unistd-c++.cc: Check signature of group_member.
1741         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
1742         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
1743         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
1744         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
1745         HAVE_GROUP_MEMBER.
1746         * modules/group-member (Files): Remove lib/group-member.h.
1747         (Depends-on): Add unistd. Specify conditions.
1748         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1749         (Include): Change to <unistd.h>.
1750         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
1751         HAVE_GROUP_MEMBER.
1752         * NEWS: Mention the change.
1753         * lib/euidaccess.c: Don't include group-member.h.
1754
1755 2011-05-11  Bruno Haible  <bruno@clisp.org>
1756
1757         group-member: Document module.
1758         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
1759         module.
1760
1761 2011-05-11  Bruno Haible  <bruno@clisp.org>
1762
1763         fclose: Fix mistake earlier today.
1764         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
1765
1766 2011-05-11  Eric Blake  <eblake@redhat.com>
1767
1768         fclose: preserve fflush errors
1769         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
1770         Reported by Jim Meyering.
1771
1772         bootstrap: support a prereq of 'rpcgen -' on RHEL5
1773         * build-aux/bootstrap (check_versions): When no specific version
1774         is required, merely check that the app produces an exit status
1775         that indicates its existence.
1776
1777         maint.mk: drop redundant check
1778         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
1779         the same but better.
1780
1781 2011-05-11  Bruno Haible  <bruno@clisp.org>
1782
1783         fclose: Fix possible link error.
1784         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
1785         unregister_shadow_fd. Improve comments.
1786         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
1787         Eric Blake.
1788
1789 2011-05-11  Jim Meyering  <meyering@redhat.com>
1790
1791         maint.mk: improve "can not" detection and generalize rule name
1792         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
1793         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
1794         Use the same technique as in sc_prohibit_doubled_word, so that
1795         we recognize "can not" also when the words are separated by a newline.
1796         Suggested by Eric Blake.
1797         (perl_filename_lineno_text_): Define.  Factored out of...
1798         (prohibit_doubled_word_): ...here.  Use the new definition.
1799         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
1800         (prohibit_undesirable_word_seq_RE_): New overridable variable.
1801         (ignore_undesirable_word_sequence_RE_): New overridable variable.
1802
1803 2011-05-10  Eric Blake  <eblake@redhat.com>
1804
1805         fclose: avoid double close race when possible
1806         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
1807         all but WINDOWS_SOCKETS.
1808
1809 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
1810
1811         openat: correct new comment
1812         * lib/openat-proc.c (openat_proc_name): Correct the comment.
1813
1814 2011-05-10  Jim Meyering  <meyering@redhat.com>
1815
1816         openat: add comments
1817         * lib/openat-proc.c (openat_proc_name): Add comments,
1818         mostly from Eric Blake.
1819
1820 2011-05-09  Eric Blake  <eblake@redhat.com>
1821
1822         openat: reduce syscalls in first probe of /proc
1823         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
1824         be a directory.  Simplify the probe for .. bugs.
1825         * modules/openat (Depends-on): Drop same-inode.
1826         Reported by Bastien ROUCARIES.
1827
1828 2011-05-09  Jim Meyering  <meyering@redhat.com>
1829
1830         maint.mk: change semantics/name of tight_scope variables
1831         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
1832         Rename variables to align with semantics that make them more useful.
1833
1834         maint.mk: tweak new rule's name not to impinge
1835         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
1836         (sc_tight_scope): Use new rule name rather than $@-0.
1837
1838         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
1839         * top/maint.mk (sc_tight_scope): New rule.
1840         (sc_tight_scope-0): New rule, ifdef'd out.
1841         (_gl_TS_dir): Default.
1842         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
1843         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
1844
1845 2011-05-09  Simon Josefsson  <simon@josefsson.org>
1846
1847         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
1848         Haible <bruno@clisp.org>.
1849
1850 2011-05-08  Bruno Haible  <bruno@clisp.org>
1851
1852         Comments.
1853         * m4/isnanf.m4: Add comment.
1854         * m4/isnanl.m4: Likewise.
1855
1856 2011-05-08  Bruno Haible  <bruno@clisp.org>
1857
1858         glob: Remove obsolete macro.
1859         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
1860
1861 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
1862
1863         intprops: Sun C 5.11 supports __typeof__
1864         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
1865         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
1866         which is new.
1867         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
1868
1869         intprops: switch to usual gnulib indenting and naming
1870         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
1871         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
1872
1873         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
1874
1875 2011-05-08  Jim Meyering  <meyering@redhat.com>
1876
1877         maint.mk: suppress "Entering/Leaving directory" diag in announcement
1878         * top/maint.mk (release-prep): Use make's --no-print-directory
1879         option when generating the announcement.  This eliminates the
1880         pesky "make[2]: Entering/Leaving directory" diagnostics in the
1881         generated announcement template.
1882
1883 2011-05-08  Bruno Haible  <bruno@clisp.org>
1884
1885         tzset: Fix gettimeofday wrapper on Solaris 2.6.
1886         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
1887         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
1888
1889 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1890
1891         ignore-value, verify: Omit include files from lib_SOURCES.
1892         * modules/ignore-value, modules/verify (Makefile.am):
1893         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
1894         that leads Automake to duplicate use of am__objects_... variables
1895         in Makefile.in.  See
1896         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
1897
1898 2011-05-07  Bruno Haible  <bruno@clisp.org>
1899
1900         fclose: Simplify autoconf macro.
1901         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
1902         defined.
1903
1904 2011-05-07  Bruno Haible  <bruno@clisp.org>
1905
1906         canonicalize-lgpl: Fix autoconf macro ordering bug.
1907         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
1908         gl_STDLIB_H_DEFAULTS.
1909
1910 2011-05-06  Eric Blake  <eblake@redhat.com>
1911
1912         maintainer-makefile: make sc_po_check easier to tune
1913         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
1914         to probe for strings, such as an alternate location for gnulib.
1915
1916         fclose: guarantee behavior on seekable stdin
1917         * modules/fclose (Depends-on): Add fflush.
1918         * doc/posix-functions/fclose.texi (fclose): Document this.
1919         * tests/test-fclose.c (main): Make test for this unconditional.
1920
1921 2011-05-06  Bruno Haible  <bruno@clisp.org>
1922
1923         fflush, fpurge: Relicense under LGPLv2+.
1924         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
1925         * modules/fpurge (License): Likewise.
1926         With permission from Eric Blake and Jim Meyering.
1927         Suggested by Eric Blake.
1928
1929 2011-05-06  Karl Berry  <karl@gnu.org>
1930
1931         * MODULES.html.sh (func_all_modules): remove exit.
1932
1933 2011-05-06  Jim Meyering  <meyering@redhat.com>
1934
1935         maint.mk: use info-gnu@ as the default only for a stable release
1936         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
1937         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
1938         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
1939         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
1940
1941 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
1942
1943         assert-h: new module, which supports C1X-style static_assert
1944         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
1945         * lib/verify.h: Revamp so that this can be copied into assert.h,
1946         while retaining the ability to use it standalone as before.
1947         Rename private identifiers so as not to encroach on the
1948         standard C namespace, since this is now used by assert.h.
1949         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
1950         the old verify_true.
1951         (_GL_VERIFY_TRUE): New macro, with much of the contents of
1952         the old verify_true.  Use _GL_VERIFY_TYPE.
1953         (_GL_VERIFY): New macro, with much of the contents of the old verify.
1954         (static_assert): New macro, if _GL_STATIC_ASSERT_H
1955         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
1956         defined when this file is copied into the replacement assert.h.
1957         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
1958         and _Static_assert is not built in.
1959         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
1960         defined, and use the new macros mentioned above.
1961         * doc/posix-headers/assert.texi: Document this.
1962
1963 2011-05-05  Bruno Haible  <bruno@clisp.org>
1964
1965         fclose, fflush: Respect rules for use of AC_LIBOBJ.
1966         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
1967         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
1968         gl_REPLACE_FCLOSE here.
1969         * modules/fflush (Depends-on): Remove fclose.
1970         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
1971         combination with module 'fclose'.
1972
1973 2011-05-05  Bruno Haible  <bruno@clisp.org>
1974
1975         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
1976         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
1977         gl_FUNC_FFLUSH.
1978         (gl_FUNC_FFLUSH): Use it.
1979         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
1980         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
1981         gl_REPLACE_FSEEKO here.
1982
1983 2011-05-05  Bruno Haible  <bruno@clisp.org>
1984
1985         tzset: Relicense under LGPL.
1986         * modules/tzset (License): Change to LGPL.
1987         No agreement needed; it's a no-op.
1988
1989         strtoimax, strtoumax: Relicense under LGPL.
1990         * modules/strtoimax (License): Change to LGPL.
1991         * modules/strtoumax (License): Likewise.
1992         With permission from Jim Meyering, Paul Eggert:
1993         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
1994         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
1995
1996         getgroups: Relicense under LGPL.
1997         * modules/getgroups (License): Change to LGPL.
1998         With permission from Jim Meyering, Paul Eggert, Eric Blake:
1999         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
2000         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
2001         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2002
2003         nanosleep: Relicense under LGPL.
2004         * modules/nanosleep (License): Change to LGPL.
2005         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
2006         Haible:
2007         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
2008         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
2009         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2010         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
2011
2012         futimens: Relicense under LGPL.
2013         * modules/futimens (License): Change to LGPL.
2014         With permission from Eric Blake:
2015         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2016
2017         fflush: Relicense under LGPL.
2018         * modules/fflush (License): Change to LGPL.
2019         With permission from Eric Blake, Bruno Haible, Jim Meyering:
2020         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
2021         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
2022         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
2023
2024         tmpfile: Relicense under LGPL.
2025         * modules/tmpfile (License): Change to LGPL.
2026         With permission from Ben Pfaff:
2027         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
2028
2029         isfinite: Relicense under LGPL.
2030         * modules/isfinite (License): Change to LGPL.
2031         With permission from Ben Pfaff, Bruno Haible:
2032         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
2033         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
2034
2035         acosl..tanl: Relicense under LGPL.
2036         * modules/acosl (License): Change to LGPL.
2037         * modules/asinl (License): Likewise.
2038         * modules/atanl (License): Likewise.
2039         * modules/cosl (License): Likewise.
2040         * modules/expl (License): Likewise.
2041         * modules/logl (License): Likewise.
2042         * modules/sinl (License): Likewise.
2043         * modules/sqrtl (License): Likewise.
2044         * modules/tanl (License): Likewise.
2045         Source code originally from glibc and Paolo Bonzini. Agreements:
2046         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
2047         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
2048
2049 2011-05-05  Bruno Haible  <bruno@clisp.org>
2050
2051         signal: Define sighandler_t.
2052         * lib/signal.in.h (sighandler_t): New type.
2053         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
2054         whether sighandler_t is defined.
2055         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
2056         * modules/signal (Depends-on): Add extensions.
2057         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
2058         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
2059         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
2060
2061 2011-05-05  Eric Blake  <eblake@redhat.com>
2062
2063         maint: remove useless REPLACE_*_H macros
2064         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
2065         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
2066         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
2067         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
2068         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
2069         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
2070         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
2071         * m4/btowc.m4: Update callers.
2072         * m4/dirfd.m4: Likewise.
2073         * m4/duplocale.m4: Likewise.
2074         * m4/fchdir.m4: Likewise.
2075         * m4/fdopendir.m4: Likewise.
2076         * m4/inet_ntop.m4: Likewise.
2077         * m4/inet_pton.m4: Likewise.
2078         * m4/ioctl.m4: Likewise.
2079         * m4/mbrlen.m4: Likewise.
2080         * m4/mbrtowc.m4: Likewise.
2081         * m4/mbsinit.m4: Likewise.
2082         * m4/mbsnrtowcs.m4: Likewise.
2083         * m4/mbsrtowcs.m4: Likewise.
2084         * m4/poll.m4: Likewise.
2085         * m4/setlocale.m4: Likewise.
2086         * m4/wcrtomb.m4: Likewise.
2087         * m4/wcsnrtombs.m4: Likewise.
2088         * m4/wcsrtombs.m4: Likewise.
2089         * m4/wctob.m4: Likewise.
2090         * m4/wcwidth.m4: Likewise.
2091         * modules/posix_spawn: Likewise.
2092         * modules/posix_spawn_file_actions_addclose: Likewise.
2093         * modules/posix_spawn_file_actions_adddup2: Likewise.
2094         * modules/posix_spawn_file_actions_addopen: Likewise.
2095         * modules/posix_spawn_file_actions_destroy: Likewise.
2096         * modules/posix_spawn_file_actions_init: Likewise.
2097         * modules/posix_spawnattr_destroy: Likewise.
2098         * modules/posix_spawnattr_getflags: Likewise.
2099         * modules/posix_spawnattr_getpgroup: Likewise.
2100         * modules/posix_spawnattr_getschedparam: Likewise.
2101         * modules/posix_spawnattr_getschedpolicy: Likewise.
2102         * modules/posix_spawnattr_getsigdefault: Likewise.
2103         * modules/posix_spawnattr_getsigmask: Likewise.
2104         * modules/posix_spawnattr_init: Likewise.
2105         * modules/posix_spawnattr_setflags: Likewise.
2106         * modules/posix_spawnattr_setpgroup: Likewise.
2107         * modules/posix_spawnattr_setschedparam: Likewise.
2108         * modules/posix_spawnattr_setschedpolicy: Likewise.
2109         * modules/posix_spawnattr_setsigdefault: Likewise.
2110         * modules/posix_spawnattr_setsigmask: Likewise.
2111         * modules/posix_spawnp: Likewise.
2112
2113 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
2114
2115         Add option to do-release-commit-and-tag to specify branch.
2116         * build-aux/do-release-commit-and-tag: Add --branch.
2117
2118 2011-05-03  Bruno Haible  <bruno@clisp.org>
2119
2120         Avoid unnecessary compilation units, through conditional dependencies.
2121         * modules/accept (Depends-on): Add conditions to the dependencies.
2122         * modules/acosl (Depends-on): Likewise.
2123         * modules/argz (Depends-on): Likewise.
2124         * modules/asinl (Depends-on): Likewise.
2125         * modules/atanl (Depends-on): Likewise.
2126         * modules/atoll (Depends-on): Likewise.
2127         * modules/bind (Depends-on): Likewise.
2128         * modules/btowc (Depends-on): Likewise.
2129         * modules/canonicalize-lgpl (Depends-on): Likewise.
2130         * modules/ceil (Depends-on): Likewise.
2131         * modules/ceilf (Depends-on): Likewise.
2132         * modules/ceill (Depends-on): Likewise.
2133         * modules/chdir-long (Depends-on): Likewise.
2134         * modules/chown (Depends-on): Likewise.
2135         * modules/close (Depends-on): Likewise.
2136         * modules/connect (Depends-on): Likewise.
2137         * modules/cosl (Depends-on): Likewise.
2138         * modules/dirfd (Depends-on): Likewise.
2139         * modules/dprintf (Depends-on): Likewise.
2140         * modules/dprintf-posix (Depends-on): Likewise.
2141         * modules/error (Depends-on): Likewise.
2142         * modules/euidaccess (Depends-on): Likewise.
2143         * modules/expl (Depends-on): Likewise.
2144         * modules/faccessat (Depends-on): Likewise.
2145         * modules/fchdir (Depends-on): Likewise.
2146         * modules/fclose (Depends-on): Likewise.
2147         * modules/fcntl (Depends-on): Likewise.
2148         * modules/fdopendir (Depends-on): Likewise.
2149         * modules/fflush (Depends-on): Likewise.
2150         * modules/floor (Depends-on): Likewise.
2151         * modules/floorf (Depends-on): Likewise.
2152         * modules/floorl (Depends-on): Likewise.
2153         * modules/fnmatch (Depends-on): Likewise.
2154         * modules/fopen (Depends-on): Likewise.
2155         * modules/fprintf-posix (Depends-on): Likewise.
2156         * modules/frexp (Depends-on): Likewise.
2157         * modules/frexp-nolibm (Depends-on): Likewise.
2158         * modules/frexpl (Depends-on): Likewise.
2159         * modules/frexpl-nolibm (Depends-on): Likewise.
2160         * modules/fseek (Depends-on): Likewise.
2161         * modules/fsusage (Depends-on): Likewise.
2162         * modules/ftell (Depends-on): Likewise.
2163         * modules/ftello (Depends-on): Likewise.
2164         * modules/futimens (Depends-on): Likewise.
2165         * modules/getcwd (Depends-on): Likewise.
2166         * modules/getcwd-lgpl (Depends-on): Likewise.
2167         * modules/getdelim (Depends-on): Likewise.
2168         * modules/getdomainname (Depends-on): Likewise.
2169         * modules/getgroups (Depends-on): Likewise.
2170         * modules/gethostname (Depends-on): Likewise.
2171         * modules/getline (Depends-on): Likewise.
2172         * modules/getlogin_r (Depends-on): Likewise.
2173         * modules/getopt-posix (Depends-on): Likewise.
2174         * modules/getpeername (Depends-on): Likewise.
2175         * modules/getsockname (Depends-on): Likewise.
2176         * modules/getsockopt (Depends-on): Likewise.
2177         * modules/getsubopt (Depends-on): Likewise.
2178         * modules/getusershell (Depends-on): Likewise.
2179         * modules/glob (Depends-on): Likewise.
2180         * modules/grantpt (Depends-on): Likewise.
2181         * modules/iconv_open (Depends-on): Likewise.
2182         * modules/iconv_open-utf (Depends-on): Likewise.
2183         * modules/inet_ntop (Depends-on): Likewise.
2184         * modules/inet_pton (Depends-on): Likewise.
2185         * modules/ioctl (Depends-on): Likewise.
2186         * modules/isapipe (Depends-on): Likewise.
2187         * modules/isfinite (Depends-on): Likewise.
2188         * modules/isinf (Depends-on): Likewise.
2189         * modules/lchown (Depends-on): Likewise.
2190         * modules/ldexpl (Depends-on): Likewise.
2191         * modules/link (Depends-on): Likewise.
2192         * modules/linkat (Depends-on): Likewise.
2193         * modules/listen (Depends-on): Likewise.
2194         * modules/logl (Depends-on): Likewise.
2195         * modules/lstat (Depends-on): Likewise.
2196         * modules/mbrlen (Depends-on): Likewise.
2197         * modules/mbrtowc (Depends-on): Likewise.
2198         * modules/mbsinit (Depends-on): Likewise.
2199         * modules/mbsnrtowcs (Depends-on): Likewise.
2200         * modules/mbsrtowcs (Depends-on): Likewise.
2201         * modules/mbtowc (Depends-on): Likewise.
2202         * modules/memcmp (Depends-on): Likewise.
2203         * modules/mkdir (Depends-on): Likewise.
2204         * modules/mkdtemp (Depends-on): Likewise.
2205         * modules/mkfifo (Depends-on): Likewise.
2206         * modules/mkfifoat (Depends-on): Likewise.
2207         * modules/mknod (Depends-on): Likewise.
2208         * modules/mkostemp (Depends-on): Likewise.
2209         * modules/mkostemps (Depends-on): Likewise.
2210         * modules/mkstemp (Depends-on): Likewise.
2211         * modules/mkstemps (Depends-on): Likewise.
2212         * modules/mktime (Depends-on): Likewise.
2213         * modules/nanosleep (Depends-on): Likewise.
2214         * modules/open (Depends-on): Likewise.
2215         * modules/openat (Depends-on): Likewise.
2216         * modules/perror (Depends-on): Likewise.
2217         * modules/poll (Depends-on): Likewise.
2218         * modules/popen (Depends-on): Likewise.
2219         * modules/posix_spawn (Depends-on): Likewise.
2220         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
2221         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
2222         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
2223         * modules/posix_spawnp (Depends-on): Likewise.
2224         * modules/pread (Depends-on): Likewise.
2225         * modules/printf-posix (Depends-on): Likewise.
2226         * modules/ptsname (Depends-on): Likewise.
2227         * modules/putenv (Depends-on): Likewise.
2228         * modules/pwrite (Depends-on): Likewise.
2229         * modules/readline (Depends-on): Likewise.
2230         * modules/readlink (Depends-on): Likewise.
2231         * modules/readlinkat (Depends-on): Likewise.
2232         * modules/recv (Depends-on): Likewise.
2233         * modules/recvfrom (Depends-on): Likewise.
2234         * modules/regex (Depends-on): Likewise.
2235         * modules/remove (Depends-on): Likewise.
2236         * modules/rename (Depends-on): Likewise.
2237         * modules/renameat (Depends-on): Likewise.
2238         * modules/rmdir (Depends-on): Likewise.
2239         * modules/round (Depends-on): Likewise.
2240         * modules/roundf (Depends-on): Likewise.
2241         * modules/roundl (Depends-on): Likewise.
2242         * modules/rpmatch (Depends-on): Likewise.
2243         * modules/select (Depends-on): Likewise.
2244         * modules/send (Depends-on): Likewise.
2245         * modules/sendto (Depends-on): Likewise.
2246         * modules/setenv (Depends-on): Likewise.
2247         * modules/setlocale (Depends-on): Likewise.
2248         * modules/setsockopt (Depends-on): Likewise.
2249         * modules/shutdown (Depends-on): Likewise.
2250         * modules/sigaction (Depends-on): Likewise.
2251         * modules/signbit (Depends-on): Likewise.
2252         * modules/sigprocmask (Depends-on): Likewise.
2253         * modules/sinl (Depends-on): Likewise.
2254         * modules/sleep (Depends-on): Likewise.
2255         * modules/snprintf (Depends-on): Likewise.
2256         * modules/snprintf-posix (Depends-on): Likewise.
2257         * modules/socket (Depends-on): Likewise.
2258         * modules/sprintf-posix (Depends-on): Likewise.
2259         * modules/sqrtl (Depends-on): Likewise.
2260         * modules/stat (Depends-on): Likewise.
2261         * modules/strchrnul (Depends-on): Likewise.
2262         * modules/strdup-posix (Depends-on): Likewise.
2263         * modules/strerror (Depends-on): Likewise.
2264         * modules/strerror_r-posix (Depends-on): Likewise.
2265         * modules/strndup (Depends-on): Likewise.
2266         * modules/strnlen (Depends-on): Likewise.
2267         * modules/strptime (Depends-on): Likewise.
2268         * modules/strsep (Depends-on): Likewise.
2269         * modules/strsignal (Depends-on): Likewise.
2270         * modules/strstr-simple (Depends-on): Likewise.
2271         * modules/strtod (Depends-on): Likewise.
2272         * modules/strtoimax (Depends-on): Likewise.
2273         * modules/strtok_r (Depends-on): Likewise.
2274         * modules/strtoumax (Depends-on): Likewise.
2275         * modules/symlink (Depends-on): Likewise.
2276         * modules/symlinkat (Depends-on): Likewise.
2277         * modules/tanl (Depends-on): Likewise.
2278         * modules/tcgetsid (Depends-on): Likewise.
2279         * modules/tmpfile (Depends-on): Likewise.
2280         * modules/trunc (Depends-on): Likewise.
2281         * modules/truncf (Depends-on): Likewise.
2282         * modules/truncl (Depends-on): Likewise.
2283         * modules/uname (Depends-on): Likewise.
2284         * modules/unlink (Depends-on): Likewise.
2285         * modules/unlockpt (Depends-on): Likewise.
2286         * modules/unsetenv (Depends-on): Likewise.
2287         * modules/usleep (Depends-on): Likewise.
2288         * modules/utimensat (Depends-on): Likewise.
2289         * modules/vasprintf (Depends-on): Likewise.
2290         * modules/vdprintf (Depends-on): Likewise.
2291         * modules/vdprintf-posix (Depends-on): Likewise.
2292         * modules/vfprintf-posix (Depends-on): Likewise.
2293         * modules/vprintf-posix (Depends-on): Likewise.
2294         * modules/vsnprintf (Depends-on): Likewise.
2295         * modules/vsnprintf-posix (Depends-on): Likewise.
2296         * modules/vsprintf-posix (Depends-on): Likewise.
2297         * modules/wcrtomb (Depends-on): Likewise.
2298         * modules/wcscasecmp (Depends-on): Likewise.
2299         * modules/wcscspn (Depends-on): Likewise.
2300         * modules/wcsdup (Depends-on): Likewise.
2301         * modules/wcsncasecmp (Depends-on): Likewise.
2302         * modules/wcsnrtombs (Depends-on): Likewise.
2303         * modules/wcspbrk (Depends-on): Likewise.
2304         * modules/wcsrtombs (Depends-on): Likewise.
2305         * modules/wcsspn (Depends-on): Likewise.
2306         * modules/wcsstr (Depends-on): Likewise.
2307         * modules/wcstok (Depends-on): Likewise.
2308         * modules/wcswidth (Depends-on): Likewise.
2309         * modules/wctob (Depends-on): Likewise.
2310         * modules/wctomb (Depends-on): Likewise.
2311         * modules/wctype (Depends-on): Likewise.
2312         * modules/wcwidth (Depends-on): Likewise.
2313         * modules/write (Depends-on): Likewise.
2314
2315 2011-05-03  Bruno Haible  <bruno@clisp.org>
2316
2317         Support for conditional dependencies.
2318         * doc/gnulib.texi (Module description): Document the syntax of
2319         conditional dependencies.
2320         * gnulib-tool: New option --conditional-dependencies.
2321         (func_usage): Document it.
2322         (cond_dependencies): New variable.
2323         (func_get_automake_snippet_conditional,
2324         func_get_automake_snippet_unconditional): New functions, extracted from
2325         func_get_automake_snippet.
2326         (func_get_automake_snippet): Use them.
2327         (sed_first_32_chars): New variable.
2328         (func_module_shellfunc_name): New function.
2329         (func_module_shellvar_name): New function.
2330         (func_module_conditional_name): New function.
2331         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
2332         func_cond_module_condition): New functions.
2333         (func_modules_transitive_closure): Add support for conditional
2334         dependencies.
2335         (func_emit_lib_Makefile_am): For a conditional module, enclose the
2336         conditional automake snippet in an automake conditional.
2337         (func_emit_autoconf_snippets): Emit shell functions that contain the
2338         code for conditional modules.
2339         (func_import, func_create_testdir): Update specification.
2340
2341 2011-05-03  Eric Blake  <eblake@redhat.com>
2342
2343         test-getaddrinfo: report error information
2344         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
2345
2346 2011-05-03  Jim Meyering  <meyering@redhat.com>
2347
2348         bootstrap: avoid build failure when $GZIP is set
2349         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
2350         program name.  If defined at all, it is supposed to list gzip options.
2351         Reported by Alan Curry in http://debbugs.gnu.org/8609
2352
2353 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
2354
2355         readme-release: new module with release instructions
2356         * modules/readme-release: New module.
2357         * top/README-release: New file, from coreutils, grep, diffutils.
2358         * MODULES.html.sh (Support for maintaining and releasing): Add it.
2359
2360 2011-05-02  Eric Blake  <eblake@redhat.com>
2361
2362         fflush: also replace fclose when fixing fflush
2363         * modules/fflush (Depends-on): Add fclose.
2364         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
2365         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
2366         memstreams with no backing fd.
2367         * doc/posix-functions/fclose.texi (fclose): Document the use of
2368         fflush module to fix the bug.
2369         * tests/test-fclose.c (main): Relax test when fclose is used in
2370         isolation.
2371
2372         fclose: add some tests
2373         * modules/fclose-tests: New test module.
2374         * tests/test-fclose.c: New file.
2375         * doc/posix-functions/fclose.texi (fclose): Document the bug.
2376
2377         fclose: reduced dependencies
2378         * modules/fclose (Depends-on): Switch from fflush/fseeko to
2379         simpler lseek.
2380         * lib/fclose.c (rpl_fclose): Likewise.
2381         Reported by Simon Josefsson.
2382
2383         exit: drop remaining clients
2384         * modules/argmatch (Depends-on): Replace exit with stdlib.
2385         * modules/copy-file (Depends-on): Likewise.
2386         * modules/execute (Depends-on): Likewise.
2387         * modules/exitfail (Depends-on): Likewise.
2388         * modules/obstack (Depends-on): Likewise.
2389         * modules/pagealign_alloc (Depends-on): Likewise.
2390         * modules/pipe-filter-gi (Depends-on): Likewise.
2391         * modules/pipe-filter-ii (Depends-on): Likewise.
2392         * modules/savewd (Depends-on): Likewise.
2393         * modules/spawn-pipe (Depends-on): Likewise.
2394         * modules/wait-process (Depends-on): Likewise.
2395         * modules/xsetenv (Depends-on): Likewise.
2396         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
2397         * modules/git-merge-changelog (Depends-on): Likewise.
2398         * modules/long-options (Depends-on): Likewise.
2399         * modules/pt_chown (Depends-on): Likewise.
2400         * modules/sysexits (Depends-on): Likewise.
2401
2402         freading: relax license from LGPLv3+ to LGPLv2+
2403         * modules/freading (License): Relax LGPL version.
2404
2405 2011-05-02  Bruno Haible  <bruno@clisp.org>
2406
2407         fchdir: Remove unused dependencies.
2408         * modules/fchdir (Depends-on): Remove include_next.
2409
2410 2011-05-02  Bruno Haible  <bruno@clisp.org>
2411
2412         gnulib-tool: Refactor.
2413         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
2414         from func_emit_autoconf_snippets.
2415         (func_emit_autoconf_snippets): Use it.
2416
2417 2011-05-02  Simon Josefsson  <simon@josefsson.org>
2418
2419         * NEWS: Document removal of 'exit'.
2420         * modules/exit: Remove file.
2421
2422 2011-05-01  Bruno Haible  <bruno@clisp.org>
2423
2424         Update DEPENDENCIES.
2425         * DEPENDENCIES (gettext): Recommend the newest release.
2426         Reported by Simon Josefsson.
2427
2428 2011-05-01  Bruno Haible  <bruno@clisp.org>
2429
2430         gnulib-tool: Reduce code duplication.
2431         * gnulib-tool (func_emit_autoconf_snippets): New function.
2432         (func_import, func_create_testdir): Use it.
2433
2434 2011-04-30  Eric Blake  <eblake@redhat.com>
2435
2436         fclose: don't fail on non-seekable input stream
2437         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
2438         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
2439         since fflush is allowed to fail in that case.
2440
2441 2011-04-30  Bruno Haible  <bruno@clisp.org>
2442
2443         dup3: cleanup
2444         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
2445
2446 2011-04-30  Bruno Haible  <bruno@clisp.org>
2447
2448         netdb: Make it work in C++ mode.
2449         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
2450         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
2451         module.
2452         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
2453         gl_MODULE_INDICATOR_FOR_TESTS.
2454         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
2455         * modules/netdb-c++-tests: New file.
2456         * tests/test-netdb-c++.cc: New file.
2457
2458 2011-04-30  Bruno Haible  <bruno@clisp.org>
2459
2460         New modules 'vfscanf', 'vscanf'.
2461         * modules/vfscanf: New file.
2462         * modules/vscanf: New file.
2463         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
2464         here.
2465         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
2466         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
2467
2468 2011-04-30  Bruno Haible  <bruno@clisp.org>
2469
2470         passfd: Add comments.
2471         * lib/passfd.c: Add comments about platforms.
2472
2473 2011-04-30  Bruno Haible  <bruno@clisp.org>
2474
2475         sys_uio: Make <sys/uio.h> self-contained.
2476         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
2477         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
2478
2479 2011-04-30  Bruno Haible  <bruno@clisp.org>
2480
2481         sys_socket: Ensure 'struct iovec' definition.
2482         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
2483         <sys/socket.h>.
2484         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
2485
2486 2011-04-30  Bruno Haible  <bruno@clisp.org>
2487
2488         sys_uio: Protect definition of 'struct iovec'.
2489         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
2490         it as a C struct.
2491
2492 2011-04-30  Bruno Haible  <bruno@clisp.org>
2493
2494         manywarnings: fix indentation
2495         * m4/manywarnings.m4: Indent by 2 spaces consistently.
2496
2497 2011-04-30  Pádraig Brady <P@draigBrady.com>
2498
2499         manywarnings: add -Wno-missing-field-initializers if needed.
2500         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
2501         option if it's needed to allow initialization with { 0, }
2502
2503 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
2504
2505         announce-gen: cosmetic improvement
2506         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
2507
2508 2011-04-29  Jim Meyering  <meyering@redhat.com>
2509
2510         vc-list-files: indent with spaces, not TABs
2511         * build-aux/vc-list-files: Convert leading TABs to spaces,
2512         to match the style of most other files in gnulib.
2513
2514         announce-gen: indent with spaces, not TABs
2515         * build-aux/announce-gen: Convert all TABs to spaces, to match
2516         the style of most other files in gnulib.
2517
2518 2011-04-29  Eric Blake  <eblake@redhat.com>
2519
2520         quotearg: avoid uninitialized variable use
2521         * lib/quotearg.c (quoting_options_from_style): Initialize
2522         remaining fields, and ensure that custom styles are only used via
2523         quoting_options rather than quoting_style.
2524
2525 2011-04-29  Jim Meyering  <meyering@redhat.com>
2526
2527         maint.mk: remove unused VC-tag variable
2528         * top/maint.mk (VC-tag): Remove unused variable.
2529
2530 2011-04-29  Bruno Haible  <bruno@clisp.org>
2531
2532         netdb: fix gai_strerror replacements
2533         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
2534         * modules/netdb: Substitute it.
2535
2536 2011-04-29  Jim Meyering  <meyering@redhat.com>
2537
2538         test-getcwd.c: avoid new set-but-not-used warning
2539         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
2540         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
2541         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
2542         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
2543
2544         test-hash.c: avoid a new shadowing warning
2545         * tests/test-hash.c (main): Don't shadow "dup".
2546
2547 2011-04-28  Eric Blake  <eblake@redhat.com>
2548
2549         getaddrinfo: fix gai_strerror signature
2550         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
2551         and work around mingw with UNICODE defined.
2552         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
2553         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
2554         * modules/netdb (Makefile.am): Substitute it.
2555         * lib/netdb.in.h (gai_strerror): Declare replacement.
2556         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
2557         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
2558         the fix.
2559
2560         getsockopt: avoid compiler warning
2561         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
2562         Reported by Matthias Bolte.
2563
2564         tests: drop unused link dependency
2565         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
2566         * modules/dirent-safer-tests (Makefile.am): Likewise.
2567         * modules/fdopendir-tests (Makefile.am): Likewise.
2568         * modules/mkfifoat-tests (Makefile.am): Likewise.
2569         * modules/openat-safer-tests (Makefile.am): Likewise.
2570         * modules/openat-tests (Makefile.am): Likewise.
2571         * modules/readlinkat-tests (Makefile.am): Likewise.
2572         * modules/symlinkat-tests (Makefile.am): Likewise.
2573         * modules/linkat-tests (Makefile.am): Likewise.
2574         (Depends-on): Switch to filenamecat-lgpl.
2575         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
2576         LIBINTL.
2577         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
2578         * tests/test-linkat.c (main): Don't require xalloc.
2579
2580         hash, mgetgroups: drop xalloc dependency
2581         * lib/hash.c (includes): Adjust includes.
2582         * lib/mgetgroups.c (includes): Likewise.
2583         (xgetgroups): Move...
2584         * lib/xgetgroups.c: ...to new file.
2585         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
2586         * modules/xgetgroups: New file, split from...
2587         * modules/mgetgroups: ...here.
2588         (Depends-on): Add xalloc-oversized.
2589         * modules/hash (Depends-on): Likewise.
2590         * modules/hash-tests (Depends-on): Drop xalloc.
2591         (test_hash_LDADD): Drop unused library.
2592         * tests/test-hash.c (main): Break xalloc dependency.
2593         (includes): Drop unused include.
2594
2595         xalloc-oversized: new module
2596         * modules/xalloc-oversized: New module.
2597         * modules/xalloc (Depends-on): Add it.
2598         * lib/xalloc.h (xalloc_oversized): Move...
2599         * lib/xalloc-oversized.h: ...into new file.
2600
2601         utimecmp: drop dependency on xmalloc
2602         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
2603         due to memory pressure.
2604         * modules/utimecmp (Depends-on): Drop xalloc.
2605
2606 2011-04-27  Eric Blake  <eblake@redhat.com>
2607
2608         getcwd: fix mingw bugs
2609         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
2610         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
2611         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
2612
2613 2011-04-27  Bruno Haible  <bruno@clisp.org>
2614
2615         mkstemps: Ensure declaration on MacOS X 10.5.
2616         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
2617         * doc/glibc-functions/mkstemps.texi: Document header file problem on
2618         MacOS X.
2619
2620 2011-04-27  Bruno Haible  <bruno@clisp.org>
2621
2622         mkstemp: More documentation.
2623         * doc/posix-functions/mkstemp.texi: Document header file problem on
2624         MacOS X.
2625
2626 2011-04-27  Bruno Haible  <bruno@clisp.org>
2627
2628         mkstemp: Tweak configure message when cross-compiling.
2629         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
2630         result as a guess.
2631
2632 2011-04-27  Bruno Haible  <bruno@clisp.org>
2633
2634         clean-temp: Clarify what it does.
2635         * lib/clean-temp.h: Add more comments.
2636         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
2637         module.
2638         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
2639         * doc/glibc-functions/mkstemps.texi: Likewise.
2640         * doc/glibc-functions/mkostemps.texi: Likewise.
2641
2642 2011-04-27  Eric Blake  <eblake@redhat.com>
2643
2644         fchdir: avoid extra chdir and fix test
2645         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
2646         getcwd-lgpl.
2647         * lib/fchdir.c (get_name): Any absolute name will do; it does not
2648         have to be canonical.
2649         (canonicalize_file_name): Drop unused macro.
2650         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
2651
2652         filenamecat-lgpl: fix licence
2653         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
2654         when it was first created.
2655
2656         linkat, renameat: add missing dependency
2657         * modules/linkat (Depends-on): Require getcwd-lgpl.
2658         * modules/renameat (Depends-on): Likewise.
2659
2660         tests: reduce dependencies
2661         * tests/test-linkat.c (main): Use lighter-weight getcwd.
2662         * tests/test-renameat.c (main): Likewise.
2663         * modules/linkat-tests (Depends-on): Relax dependency.
2664         * modules/renameat-tests (Depends-on): Likewise.
2665         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
2666         dependency explicit.
2667
2668         save-cwd: reduce default dependency
2669         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
2670         * lib/save-cwd.c: Update comments.
2671         * NEWS: Document the semantic change.
2672
2673         getcwd: enhance tests
2674         * tests/test-getcwd-lgpl.c: New file, taken from...
2675         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
2676         repeat long path stress tests from m4 probe.
2677         * modules/getcwd-lgpl-tests: New module.
2678         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
2679         * m4/getcwd-abort-bug.m4: Update comment.
2680         * m4/getcwd-path-max.m4: Likewise.
2681
2682         getcwd-lgpl: new module
2683         * modules/getcwd-lgpl: New module.
2684         * lib/getcwd-lgpl.c: New file.
2685         * doc/posix-functions/getcwd.texi (getcwd): Document it.
2686         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2687         * modules/getcwd (configure.ac): Set C witness.
2688         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
2689
2690         getcwd: tweak comments
2691         * m4/getcwd-abort-bug.m4: Fix comments.
2692         * m4/getcwd-path-max.m4: Likewise.
2693         * m4/getcwd.m4: Likewise.
2694
2695 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2696         and Eric Blake  <eblake@redhat.com>
2697
2698         mkstemp: replace if system version uses wrong permissions
2699         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
2700         read/write mode bits set in file created by mkstemp.
2701         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
2702
2703 2011-04-27  Eric Blake  <eblake@redhat.com>
2704
2705         passfd: avoid compiler warning
2706         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
2707         Reported by Laine Stump.
2708
2709 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
2710
2711         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
2712         required by the NetBSD (and perhaps other 4.4BSD derived) join.
2713
2714 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
2715         and Eric Blake  <eblake@redhat.com>
2716
2717         mkstemp: mention clean-temp module
2718         * lib/mkstemp.c: Add comment.
2719         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
2720
2721 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
2722
2723         inttypes: also provide default values for 32-bit tests
2724         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
2725         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
2726
2727 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
2728
2729         strtoumax: remove dependency on strtoimax
2730         This is like the strtoull change of yesterday.
2731         * modules/strtoumax (Files): Add lib/strtoimax.c.
2732         (Depends-on): Remove strtoimax and add verify.
2733
2734         inttypes-incomplete: new module
2735         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
2736         all but the PRI* and SCN* parts of gl_INTTYPES_H.
2737         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
2738         of gl_INTTYPES_H.
2739         (gl_INTTYPES_H): Rewrite in terms of these new macros.
2740         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
2741         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
2742         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
2743         * modules/strtoumax, modules/xstrtol (Depends-on):
2744         Depend on inttypes-incomplete, not inttypes.
2745         * modules/inttypes-incomplete: New module, containing the contents
2746         of the old modules/inttypes module, except that the Files: section
2747         omits m4/inttypes-pri.m4, and the configure.ac section invokes
2748         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
2749         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
2750         (Depends-on): Depend only on inttypes-incomplete.
2751         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
2752
2753         inttypes: omit now-redundant strtoimax and strtoumax work
2754         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
2755         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
2756
2757         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
2758         This supports apps that need pointers to strtoimax and strtoumax,
2759         and ports to HP-UX 11.00 64.bit, which has macros that expand to
2760         nonexistent functions.  See
2761         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
2762         et seq.
2763         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
2764         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
2765         a macro.
2766         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
2767
2768 2011-04-25  Simon Josefsson  <simon@josefsson.org>
2769
2770         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
2771
2772 2011-04-25  Bruno Haible  <bruno@clisp.org>
2773
2774         strtol, strtoul: Mark modules as obsolete.
2775         * modules/strtol (Status, Notice): New sections.
2776         * modules/strtoul (Status, Notice): New sections.
2777
2778 2011-04-25  Bruno Haible  <bruno@clisp.org>
2779
2780         strtod: Remove check for strtod, unless supporting old platforms.
2781         * modules/strtod-obsolete: New file.
2782         * m4/strtod-obsolete.m4: New file.
2783         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
2784         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
2785         * modules/strtod (Depends-on): Add strtod-obsolete.
2786         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
2787
2788 2011-04-25  Bruno Haible  <bruno@clisp.org>
2789
2790         strcase: Make module obsolete.
2791         * modules/strcase (Status, Notice): New sections.
2792
2793 2011-04-25  Bruno Haible  <bruno@clisp.org>
2794
2795         dup2: Remove check for dup2, unless supporting old obsolete platforms.
2796         * modules/dup2-obsolete: New file.
2797         * m4/dup2-obsolete.m4: New file.
2798         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
2799         gl_FUNC_DUP2_OBSOLETE is not also defined.
2800         * modules/dup2 (Depends-on): Add dup2-obsolete.
2801         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
2802
2803 2011-04-25  Bruno Haible  <bruno@clisp.org>
2804
2805         strnlen: Avoid memchr related link error on old obsolete platforms.
2806         * modules/memchr-obsolete: New file.
2807         * m4/memchr-obsolete.m4: New file.
2808         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
2809         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
2810         * modules/memchr (Depends-on): Add memchr-obsolete.
2811         * modules/strnlen (Depends-on): Likewise.
2812         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
2813
2814 2011-04-25  Jim Meyering  <meyering@redhat.com>
2815
2816         maint.mk: makefile_at_at_check extend and clean up
2817         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
2818         in addition to */Makefile.am.
2819         Exempt legitimate uses of @VAR@ notation, e.g.,
2820         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
2821         Remove obsolete coreutils-specific comment.
2822         Prompted by discussion here:
2823         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
2824
2825 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
2826
2827         strtoul: remove dependency on strtol
2828         This is so that 'configure' need not check for strtol merely because
2829         the application needs strtoul.
2830         * modules/strtoul (Files): Add lib/strtol.c.
2831         (Depends-on): Remove strtol.
2832
2833         strtoull: remove dependency on strtoul
2834         This is like the strtoll change.
2835         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
2836         (Depends-on): Remove strtoul.
2837
2838         strtoll: remove dependency on strtol
2839         This is so that 'configure' need not check for strtol merely because
2840         the application needs strtoll.
2841         * modules/strtoll (Files): Add lib/strtol.c.
2842         (Depends-on): Remove strtol.
2843
2844 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2845
2846         inttypes: Move some configure check to module 'imaxdiv'.
2847         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
2848         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
2849         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
2850
2851 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2852
2853         inttypes: Move some configure check to module 'imaxabs'.
2854         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
2855         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
2856         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
2857
2858 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2859
2860         inttypes: Remove configure tests that are not needed since 2009-12-31.
2861         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
2862         gl_cv_header_working_inttypes_h.
2863
2864 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
2865
2866         * modules/strnlen (Depends-on): Remove memchr.
2867         The strnlen implementation doesn't need the memchr module's fixes; see
2868         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
2869
2870         strtol: remove dependency on wchar
2871         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
2872         * modules/strtol (Depends-on): Remove wchar.
2873
2874 2011-04-21  Eric Blake  <eblake@redhat.com>
2875
2876         passfd: fix test regression on Linux
2877         * modules/passfd-tests (configure.ac): Correct socketpair check.
2878
2879         passfd: speed up configure and drop unused code
2880         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
2881         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
2882         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
2883         Instead of probing at configure for unix_scm_rights_bsd44_way,
2884         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
2885         check to a struct member probe.
2886         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
2887         (sendfd, recvfd): Update preprocessor checks.
2888         * modules/passfd (Files): Reflect rename, and drop unused file.
2889         (Depends-on): Drop unused dependency.
2890
2891         passfd: allow compilation on mingw
2892         * modules/sys_socket (Depends-on): Add sys_uio.
2893         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
2894         iovec and a minimal struct msghdr.
2895         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
2896         * tests/test-sys_socket.c (main): Enhance test.
2897         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
2898         guaranteed to provide what we need.
2899         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
2900         * modules/passfd-tests (Depends-on): Add sys_wait.
2901         * tests/test-passfd.c (main): Skip test on mingw, for now.
2902         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
2903         partial 'struct msghdr' implementation.
2904
2905         sys_uio: new module
2906         * modules/sys_uio: New module.
2907         * modules/sys_uio-tests: Likewise.
2908         * lib/sys_uio.in.h: New file.
2909         * m4/sys_uio_h.m4: Likewise.
2910         * tests/test-sys_uio.c: Likewise.
2911         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
2912         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
2913
2914 2011-04-20  Jim Meyering  <meyering@redhat.com>
2915
2916         useless-if-before-free: avoid false-positive
2917         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
2918         disjunct so that it too requires a terminating ";".  Without that,
2919         this script would identify as useless one statement from gcc that
2920         was not:
2921           if (aligned_ptr)
2922             free (((void **) aligned_ptr) [-1]);
2923
2924 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
2925
2926         doc: update users.txt.
2927         * users.txt: Add barcode.
2928
2929 2011-04-19  Bruno Haible  <bruno@clisp.org>
2930
2931         ioctl: Remove link dependency on native Windows.
2932         * lib/fd-hook.h: Renamed from lib/close-hook.h.
2933         (gl_close_fn, gl_ioctl_fn): New types.
2934         (struct fd_hook): Renamed from struct close_hook. Change type of
2935         private_close_fn field. Add private_ioctl_fn field.
2936         (close_hook_fn): Add parameter for primary close method.
2937         (execute_close_hooks, execute_all_close_hooks): Likewise.
2938         (ioctl_hook_fn): New type.
2939         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
2940         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2941         argument.
2942         (unregister_fd_hook): Renamed from unregister_close_hook.
2943         * lib/fd-hook.c: Renamed from lib/close-hook.c.
2944         Don't include <unistd.h>.
2945         (close): Remove undef.
2946         (anchor): Update.
2947         (execute_close_hooks): Add argument for primary close method.
2948         (execute_all_close_hooks): Likewise.
2949         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
2950         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
2951         argument. Allow each argument to be NULL.
2952         (unregister_fd_hook): Renamed from unregister_close_hook.
2953         * lib/close.c (rpl_close): Pass 'close' function pointer to
2954         execute_all_close_hooks.
2955         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
2956         (primary_ioctl): New function.
2957         (ioctl): Don't call ioctlsocket here. Instead, call
2958         execute_all_ioctl_hooks.
2959         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
2960         close method.
2961         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
2962         (fd_sockets_hook): Renamed from close_sockets_hook.
2963         (gl_sockets_startup, gl_sockets_cleanup): Update.
2964         * modules/fd-hook: Renamed from modules/close-hook. Update.
2965         * modules/close (Depends-on): Add fd-hook, remove close-hook.
2966         * modules/sockets (Depends-on): Likewise.
2967         * modules/ioctl (Depends-on): Add fd-hook.
2968         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
2969         GNULIB_SOCKET.
2970
2971 2011-04-19  Bruno Haible  <bruno@clisp.org>
2972
2973         Move the support of O_NONBLOCK in open() to the 'open' module.
2974         * modules/nonblocking (Depends-on): Remove 'open'.
2975         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
2976         gl_cv_have_open_O_NONBLOCK.
2977         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
2978         O_NONBLOCK support.
2979         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
2980
2981 2011-04-17  Bruno Haible  <bruno@clisp.org>
2982
2983         pipe2: Simplify code.
2984         * lib/pipe2.c (pipe2): Reduce code duplication.
2985
2986 2011-04-17  Bruno Haible  <bruno@clisp.org>
2987
2988         nonblocking: Add comment.
2989         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
2990
2991 2011-04-17  Bruno Haible  <bruno@clisp.org>
2992
2993         nonblocking: Add tests for sockets.
2994         * tests/test-nonblocking-socket.sh: New file.
2995         * tests/test-nonblocking-socket-main.c: New file.
2996         * tests/test-nonblocking-socket-child.c: New file.
2997         * tests/test-nonblocking-socket.h: New file.
2998         * tests/socket-server.h: New file.
2999         * tests/socket-client.h: New file.
3000         * modules/nonblocking-socket-tests: New file.
3001         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
3002
3003 2011-04-17  Bruno Haible  <bruno@clisp.org>
3004
3005         nonblocking: Add tests for pipes.
3006         * tests/test-nonblocking-pipe.sh: New file.
3007         * tests/test-nonblocking-pipe-main.c: New file.
3008         * tests/test-nonblocking-pipe-child.c: New file.
3009         * tests/test-nonblocking-pipe.h: New file.
3010         * tests/test-nonblocking-writer.h: New file.
3011         * tests/test-nonblocking-reader.h: New file.
3012         * tests/test-nonblocking-misc.h: New file.
3013         * modules/nonblocking-pipe-tests: New file.
3014         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
3015
3016 2011-04-16  Bruno Haible  <bruno@clisp.org>
3017
3018         gettext: Clarify the needed programmer actions.
3019         * modules/gettext (Notice): New field.
3020         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
3021
3022 2011-04-16  Bruno Haible  <bruno@clisp.org>
3023
3024         strchrnul: Tweak last commit.
3025         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
3026         bug.
3027         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
3028         as in _GL_FUNCDECL_SYS.
3029         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
3030         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
3031
3032 2011-04-15  Eric Blake  <eblake@redhat.com>
3033
3034         strchrnul: work around cygwin bug
3035         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
3036         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
3037         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
3038         * modules/string (Makefile.am): Substitute it.
3039         * lib/string.in.h (strchrnul): Use it.
3040
3041 2011-04-15  Bruno Haible  <bruno@clisp.org>
3042
3043         Don't require lib/stdio-write.c when only module 'stdio' is used.
3044         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
3045         invocation.
3046         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
3047
3048 2011-04-14  Bruno Haible  <bruno@clisp.org>
3049
3050         Support non-blocking pipe I/O in read() on native Windows.
3051         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
3052         (read): New declaration.
3053         * lib/read.c: New file.
3054         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
3055         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
3056         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
3057         vscanf): New declarations.
3058         * lib/stdio-read.c: New file.
3059         * m4/read.m4: New file.
3060         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
3061         REPLACE_READ.
3062         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
3063         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3064         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
3065         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
3066         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
3067         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3068         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
3069         * modules/read: New file.
3070         * modules/nonblocking (Files): Add lib/stdio-read.c.
3071         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
3072         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
3073         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
3074         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
3075         * modules/pread (Depends-on): Add read.
3076         * modules/safe-read (Depends-on): Likewise.
3077         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
3078         gets, scanf, vfscanf, vscanf): Verify signatures.
3079         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
3080         problem with non-blocking pipes.
3081         * doc/posix-functions/fgetc.texi: Likewise.
3082         * doc/posix-functions/fgets.texi: Likewise.
3083         * doc/posix-functions/fread.texi: Likewise.
3084         * doc/posix-functions/fscanf.texi: Likewise.
3085         * doc/posix-functions/getc.texi: Likewise.
3086         * doc/posix-functions/getchar.texi: Likewise.
3087         * doc/posix-functions/gets.texi: Likewise.
3088         * doc/posix-functions/scanf.texi: Likewise.
3089         * doc/posix-functions/vfscanf.texi: Likewise.
3090         * doc/posix-functions/vscanf.texi: Likewise.
3091
3092 2011-04-14  Bruno Haible  <bruno@clisp.org>
3093
3094         Support non-blocking pipe I/O in write() on native Windows.
3095         * lib/write.c (rpl_write): Split a write request that failed merely
3096         because the byte count was larger than the pipe buffer's size.
3097         * doc/posix-functions/write.texi: Mention the problem with large byte
3098         counts.
3099
3100 2011-04-14  Bruno Haible  <bruno@clisp.org>
3101
3102         wchar: Ensure that wchar_t gets defined on uClibc.
3103         * lib/wchar.in.h: On uClibc, include <stddef.h>.
3104         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
3105
3106 2011-04-13  Bruno Haible  <bruno@clisp.org>
3107
3108         safe-write, full-read: Avoid unnecessary compilation units.
3109         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
3110         (Depends-on): Remove safe-read. Add ssize_t.
3111         * modules/full-read (Files): Add lib/full-write.c.
3112         (Depends-on): Add full-write.
3113
3114 2011-04-13  Bruno Haible  <bruno@clisp.org>
3115
3116         Support non-blocking pipe I/O and SIGPIPE in pwrite().
3117         * modules/pwrite (Depends-on): Add 'write'.
3118
3119 2011-04-13  Bruno Haible  <bruno@clisp.org>
3120
3121         Support non-blocking pipe I/O in write() on native Windows.
3122         * lib/unistd.in.h (write): Enable replacement also if
3123         GNULIB_UNISTD_H_NONBLOCKING is 1.
3124         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
3125         (rpl_write): When failing to write on a non-blocking pipe, change
3126         errno from ENOSPC to EAGAIN.
3127         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
3128         putchar, puts, vfprintf, vprintf): Enable replacement also if
3129         GNULIB_STDIO_H_NONBLOCKING is 1.
3130         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
3131         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
3132         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
3133         CALL_WITH_SIGPIPE_EMULATION.
3134         (CALL_WITH_SIGPIPE_EMULATION): Use them.
3135         * m4/nonblocking.m4: New file.
3136         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
3137         for non-blocking I/O support.
3138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3139         GNULIB_UNISTD_H_NONBLOCKING.
3140         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
3141         required for non-blocking I/O support.
3142         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
3143         * modules/nonblocking (Files): Add m4/nonblocking.m4,
3144         lib/stdio-write.c, m4/asm-underscore.m4.
3145         (Depends-on): Add stdio, unistd.
3146         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
3147         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
3148         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
3149         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
3150         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
3151         problem with non-blocking pipes.
3152         * doc/posix-functions/fputc.texi: Likewise.
3153         * doc/posix-functions/fputs.texi: Likewise.
3154         * doc/posix-functions/fwrite.texi: Likewise.
3155         * doc/posix-functions/printf.texi: Likewise.
3156         * doc/posix-functions/putc.texi: Likewise.
3157         * doc/posix-functions/putchar.texi: Likewise.
3158         * doc/posix-functions/puts.texi: Likewise.
3159         * doc/posix-functions/vfprintf.texi: Likewise.
3160         * doc/posix-functions/vprintf.texi: Likewise.
3161         * doc/posix-functions/write.texi: Likewise.
3162
3163 2011-04-10  Jim Meyering  <meyering@redhat.com>
3164
3165         maint.mk: prohibit doubled words
3166         Detect them also when they're separated by a newline.
3167         There are 3 ways to customize it:
3168           - disable the test on a per file basis, as usual with rules using
3169             $(VC_LIST_EXCEPT)
3170           - replace the default doubled-word-selecting regexp (affects all files)
3171           - ignore a particular file-vs-doubled-word match
3172         I nearly used that last one to ignore the "is is" match in
3173         coreutils' NEWS file, since the text was "ls -is is ..."
3174         To do that, I would have added this line to cfg.mk:
3175           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
3176         but it would have ignored any "is is" match in NEWS.
3177         Low probability, but still...
3178         Instead, I changed the text, slightly:
3179           -  ls -is is now consistent with ls -lis in ignoring values returned
3180           +  "ls -is" is now consistent with ls -lis in ignoring values returned
3181         * top/maint.mk (prohibit_double_word_RE_): Provide default.
3182         (prohibit_doubled_word_): Define.
3183         (sc_prohibit_doubled_word): New rule.
3184         (sc_prohibit_the_the): Remove.  Subsumed by the above.
3185
3186 2011-04-10  Jim Meyering  <meyering@redhat.com>
3187
3188         maint: fix doubled-word typo in comment
3189         * m4/gethostname.m4: s/is is/it is/
3190         * m4/getdomainname.m4: Likewise.
3191
3192 2011-04-10  Jim Meyering  <meyering@redhat.com>
3193
3194         maint: remove doubled word: s/it it/it/
3195         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
3196
3197 2011-04-10  Jim Meyering  <meyering@redhat.com>
3198
3199         maint.mk: remove useless semicolon and backslash
3200         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
3201         semicolon and backslash.
3202
3203 2011-04-10  Bruno Haible  <bruno@clisp.org>
3204
3205         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
3206         * modules/stdint-tests (Depends-on): Add wchar.
3207
3208 2011-04-10  Jim Meyering  <meyering@redhat.com>
3209
3210         maint: remove doubled words in comments, e.g., s/a a/a/
3211         * lib/strptime.c (day_of_the_week): s/the the/the/
3212         * tests/test-chown.h (test_chown): s/a a/a/
3213
3214         test-chown.h: correct a cast
3215         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
3216         when the destination is a stat.st_gid.
3217
3218 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
3219
3220         getaddrinfo: Fix test for sa_len member.
3221         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
3222         include <sys/types.h> before <sys/socket.h>.
3223
3224 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
3225
3226         maint: change "can not" to "cannot"
3227         * doc/posix-functions/iconv.texi (iconv): This one crossed line
3228         boundaries.
3229
3230 2011-04-09  Jim Meyering  <meyering@redhat.com>
3231
3232         maint: change "a a" to "a"
3233         * tests/test-lchown.h (test_lchown): s/a a/a/
3234
3235         maint.mk: prohibit \<the the\>
3236         * top/maint.mk (sc_prohibit_the_the): New rule.
3237
3238         maint: fix "the the" in comment
3239         * lib/count-one-bits.h: s/the the/the/
3240
3241         maint: change "can not" to "cannot"
3242         But do not change the occurrences in maintain.texi or in
3243         build-aux/po/Makefile.in.in, which I presume comes from gettext.
3244         * doc/gnulib-tool.texi: s/can not/cannot/
3245         * doc/posix-functions/accept.texi (accept): Likewise.
3246         * doc/posix-functions/socket.texi (socket): Likewise.
3247         * lib/mbrtowc.c: Likewise.
3248
3249         maint.mk: prohibit use of "can not"
3250         * top/maint.mk (sc_prohibit_can_not): New rule.
3251         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
3252
3253 2011-04-09  Bruno Haible  <bruno@clisp.org>
3254
3255         careadlinkat: Guard against misuse of careadlinkatcwd.
3256         * lib/careadlinkat.c: Include <stdlib.h>.
3257         (careadlinkatcwd): Check that the fd argument is as expected.
3258
3259 2011-04-09  Bruno Haible  <bruno@clisp.org>
3260
3261         careadlinkat: Use common coding style.
3262         * lib/careadlinkat.c: Move gnulib includes after system includes.
3263
3264 2011-04-09  Bruno Haible  <bruno@clisp.org>
3265
3266         careadlinkat: Clarify specification.
3267         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
3268         (careadlinkatcwd): Add comment.
3269         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
3270
3271 2011-04-09  Bruno Haible  <bruno@clisp.org>
3272
3273         areadlinkat: Avoid link error on many platforms.
3274         * modules/areadlinkat (Depends-on): Add areadlink.
3275
3276 2011-04-09  Bruno Haible  <bruno@clisp.org>
3277
3278         allocator, careadlinkat: Fix double-inclusion guard.
3279         * lib/allocator.h: Fix double-inclusion guard.
3280         * lib/careadlinkat.h: Likewise.
3281
3282 2011-04-09  Bruno Haible  <bruno@clisp.org>
3283
3284         relocatable-prog-wrapper: Update after module 'areadlink' changed.
3285         * lib/relocwrapper.c: Update dependencies hierarchy.
3286         * build-aux/install-reloc: Update list of files to be compiled.
3287         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
3288         lib/allocator.[hc].
3289
3290 2011-04-08  Eric Blake  <eblake@redhat.com>
3291
3292         strftime: silence gnulib-tool warning
3293         * modules/strftime-tests (Depends-on): Drop automatic dependency.
3294
3295 2011-04-08  Bruno Haible  <bruno@clisp.org>
3296
3297         verify: Fix syntax error with GCC 4.6 in C++ mode.
3298         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
3299         (HAVE_STATIC_ASSERT): New macro.
3300         (verify_true, verify): Use 'static_assert' if it is supported and
3301         '_Static_assert' is not supported.
3302
3303 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
3304
3305         allocator: New module.
3306         * modules/allocator, lib/allocator.c: New files.
3307         * lib/allocator.h (stdlib_allocator): New decl.
3308         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
3309         Remove.  Do not include <stdlib.h>.
3310         (careadlinkat): Use stdlib_allocator instead of rolling our own.
3311         * modules/careadlinkat (Files): Remove lib/allocator.h.
3312         (Depends-on): Add allocator.
3313
3314         stdlib: let modules use system malloc, realloc
3315         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
3316         if !_GL_USE_STDLIB_ALLOC.
3317         (malloc, realloc): Limit this change to a smaller scope.
3318
3319         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
3320         (malloc, realloc): Don't #undef; no longer needed.
3321         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3322         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3323         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3324         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3325         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3326         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3327         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
3328         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
3329
3330         careadlinkat: rename members to avoid problem
3331         * lib/allocator.h (struct allocator): Rename members from
3332         malloc/realloc to allocate/reallocate, to avoid problems if malloc
3333         and realloc are #define'd.  Reported by Eric Blake in
3334         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
3335         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
3336
3337 2011-04-08  Eric Blake  <eblake@redhat.com>
3338
3339         nonblocking: reduce dependency
3340         * tests/test-nonblocking.c: Only test sockets when in use.
3341         * modules/nonblocking-tests (Depends-on): Drop socket.
3342         (Makefile.am): Link even if sockets are not present.
3343         * modules/pipe2-tests (Makefile.am): Likewise.
3344         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
3345
3346         pipe2: fix O_NONBLOCK support on mingw
3347         * modules/pipe2 (Depends-on): Add nonblocking.
3348         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
3349         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
3350         * tests/test-nonblocking.c (main): Likewise.
3351         * modules/pipe2-tests (Makefile.am): Avoid link failure.
3352
3353         fcntl-h: fix O_ACCMODE on cygwin
3354         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
3355         * lib/fcntl.in.h (O_ACCMODE): Fix it.
3356
3357         pipe-filter: drop O_NONBLOCK workarounds
3358         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
3359         * modules/pipe-filter-ii (Depends-on): Likewise.
3360         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
3361
3362         nonblocking: provide O_NONBLOCK for mingw
3363         * modules/nonblocking (Depends-on): Add open.
3364         (configure.ac): Set new witness macro.
3365         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
3366         * modules/fcntl-h (Makefile.am): Substitute it.
3367         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
3368         nonblocking module is in use.
3369         * lib/nonblocking.c: Adjust portability test.
3370         * lib/open.c (open): Don't let native open see gnulib flag.
3371         * tests/test-fcntl-h.c (main): Enhance test.
3372         * tests/test-open.h (test_open): Likewise.
3373         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
3374
3375         careadlinkat: fix compilation error on mingw
3376         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
3377         within struct allocator.
3378
3379 2011-04-06  Eric Blake  <eblake@redhat.com>
3380
3381         binary-io: relicense under LGPLv2+
3382         * modules/binary-io (License): Relax to LGPLv2+.
3383         Requested for libvirt, and required by pipe2.
3384
3385 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
3386
3387         verify: use _Static_assert if available
3388         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
3389         (verify_true, verify): Use it if available.  This generates better
3390         diagnostics with GCC 4.6.0 and later.
3391
3392 2011-04-05  Bruno Haible  <bruno@clisp.org>
3393
3394         Remove leftover generated .h files after config.status changed.
3395
3396         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
3397         GL_GENERATE_ALLOCA_H.
3398         * modules/alloca-opt (Makefile.am): Remove alloca.h if
3399         GL_GENERATE_ALLOCA_H evaluates to false.
3400
3401         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
3402         GL_GENERATE_ARGZ_H.
3403         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
3404         evaluates to false.
3405
3406         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
3407         GL_GENERATE_BYTESWAP_H.
3408         * modules/byteswap (Makefile.am): Remove byteswap.h if
3409         GL_GENERATE_BYTESWAP_H evaluates to false.
3410
3411         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
3412         GL_GENERATE_ERRNO_H.
3413         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
3414         evaluates to false.
3415
3416         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
3417         GL_GENERATE_FLOAT_H.
3418         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
3419         evaluates to false.
3420
3421         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
3422         GL_GENERATE_FNMATCH_H.
3423         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
3424         GL_GENERATE_FNMATCH_H evaluates to false.
3425
3426         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
3427         GL_GENERATE_GLOB_H.
3428         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
3429         evaluates to false.
3430
3431         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
3432         automake conditional GL_GENERATE_ICONV_H.
3433         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
3434         evaluates to false.
3435
3436         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
3437         GL_GENERATE_NETINET_IN_H.
3438         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
3439         GL_GENERATE_NETINET_IN_H evaluates to false.
3440
3441         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
3442         conditional GL_GENERATE_PTHREAD_H.
3443         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
3444         * modules/pthread (Makefile.am): Remove pthread.h if
3445         GL_GENERATE_PTHREAD_H evaluates to false.
3446
3447         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
3448         GL_GENERATE_SCHED_H.
3449         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
3450         evaluates to false.
3451
3452         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
3453         conditional GL_GENERATE_SELINUX_CONTEXT_H.
3454         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
3455         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
3456
3457         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
3458         GL_GENERATE_STDARG_H.
3459         * modules/stdarg (Makefile.am): Remove stdarg.h if
3460         GL_GENERATE_STDARG_H evaluates to false.
3461
3462         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
3463         GL_GENERATE_STDBOOL_H.
3464         * modules/stdbool (Makefile.am): Remove stdbool.h if
3465         GL_GENERATE_STDBOOL_H evaluates to false.
3466
3467         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
3468         conditional GL_GENERATE_STDDEF_H.
3469         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
3470         * modules/stddef (Makefile.am): Remove stddef.h if
3471         GL_GENERATE_STDDEF_H evaluates to false.
3472
3473         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
3474         GL_GENERATE_STDINT_H.
3475         * modules/stdint (Makefile.am): Remove stdint.h if
3476         GL_GENERATE_STDINT_H evaluates to false.
3477
3478         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
3479         GL_GENERATE_SYSEXITS_H.
3480         * modules/sysexits (Makefile.am): Remove sysexits.h if
3481         GL_GENERATE_SYSEXITS_H evaluates to false.
3482
3483         Reported by Karl Berry and Ralf Wildenhues.
3484
3485 2011-04-05  Bruno Haible  <bruno@clisp.org>
3486
3487         Ensure to rebuild generated .h files when config.status has changed.
3488         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
3489         config.status.
3490         * modules/ctype (Makefile.am): Likewise.
3491         * modules/dirent (Makefile.am): Likewise.
3492         * modules/errno (Makefile.am): Likewise.
3493         * modules/fcntl-h (Makefile.am): Likewise.
3494         * modules/float (Makefile.am): Likewise.
3495         * modules/getopt-posix (Makefile.am): Likewise.
3496         * modules/glob (Makefile.am): Likewise.
3497         * modules/iconv-h (Makefile.am): Likewise.
3498         * modules/inttypes (Makefile.am): Likewise.
3499         * modules/langinfo (Makefile.am): Likewise.
3500         * modules/locale (Makefile.am): Likewise.
3501         * modules/math (Makefile.am): Likewise.
3502         * modules/netdb (Makefile.am): Likewise.
3503         * modules/netinet_in (Makefile.am): Likewise.
3504         * modules/poll-h (Makefile.am): Likewise.
3505         * modules/pthread (Makefile.am): Likewise.
3506         * modules/pty (Makefile.am): Likewise.
3507         * modules/sched (Makefile.am): Likewise.
3508         * modules/search (Makefile.am): Likewise.
3509         * modules/selinux-h (Makefile.am): Likewise.
3510         * modules/signal (Makefile.am): Likewise.
3511         * modules/spawn (Makefile.am): Likewise.
3512         * modules/stdarg (Makefile.am): Likewise.
3513         * modules/stdbool (Makefile.am): Likewise.
3514         * modules/stddef (Makefile.am): Likewise.
3515         * modules/stdint (Makefile.am): Likewise.
3516         * modules/stdio (Makefile.am): Likewise.
3517         * modules/stdlib (Makefile.am): Likewise.
3518         * modules/string (Makefile.am): Likewise.
3519         * modules/strings (Makefile.am): Likewise.
3520         * modules/sys_file (Makefile.am): Likewise.
3521         * modules/sys_ioctl (Makefile.am): Likewise.
3522         * modules/sys_select (Makefile.am): Likewise.
3523         * modules/sys_socket (Makefile.am): Likewise.
3524         * modules/sys_stat (Makefile.am): Likewise.
3525         * modules/sys_time (Makefile.am): Likewise.
3526         * modules/sys_times (Makefile.am): Likewise.
3527         * modules/sys_utsname (Makefile.am): Likewise.
3528         * modules/sys_wait (Makefile.am): Likewise.
3529         * modules/sysexits (Makefile.am): Likewise.
3530         * modules/termios (Makefile.am): Likewise.
3531         * modules/time (Makefile.am): Likewise.
3532         * modules/unistd (Makefile.am): Likewise.
3533         * modules/wchar (Makefile.am): Likewise.
3534         * modules/wctype-h (Makefile.am): Likewise.
3535         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
3536
3537 2011-04-05  Bruno Haible  <bruno@clisp.org>
3538
3539         pipe2: Relicense under LGPLv2+.
3540         * modules/pipe2 (License): Change to LGPLv2+.
3541         Requested by Eric Blake, for libvirt.
3542
3543 2011-04-05  Bruce Korb  <bkorb@gnu.org>
3544
3545         bootstrap: compute gnulib_extra_files after updating build_aux
3546         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
3547         change build_aux or also supply gnulib_extra_files.  Handle correctly.
3548
3549 2011-04-05  Eric Blake  <eblake@redhat.com>
3550
3551         bootstrap: preserve git whitelist item sorting
3552         * build-aux/bootstrap (sort_patterns): New function.
3553         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
3554
3555 2011-04-05  Simon Josefsson  <simon@josefsson.org>
3556
3557         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
3558         sc_space_tab check.
3559
3560 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
3561
3562         areadlink, areadlinkat: rewrite in terms of careadlinkat
3563         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
3564         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
3565         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
3566         (malloc, realloc): Remove #undefs.
3567         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
3568         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
3569         readlink, ssize_t, stdint, unistd.
3570         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
3571         areadlink, stdint.
3572
3573         careadlinkat: new module
3574         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
3575         * modules/careadlinkat: New files, written by me with
3576         a review and feedback from Ben Pfaff in
3577         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
3578
3579 2011-04-01  Bruno Haible  <bruno@clisp.org>
3580
3581         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
3582         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
3583         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
3584         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
3585         Reported by Bruce Korb <bruce.korb@gmail.com>.
3586
3587 2011-04-01  Bruno Haible  <bruno@clisp.org>
3588
3589         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
3590         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
3591         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
3592         * modules/wcpcpy (Depends-on): Add extensions.
3593         * modules/wcpncpy (Depends-on): Likewise.
3594         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
3595         systems.
3596         * doc/posix-functions/wcpncpy.texi: Likewise.
3597         * doc/posix-functions/wcwidth.texi: Likewise.
3598
3599 2011-03-31  Eric Blake  <eblake@redhat.com>
3600
3601         nonblocking: fix mingw test failures
3602         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
3603         non-blocking flag on regular file.
3604         (get_nonblocking_flag): Set errno on invalid fd.
3605         * tests/test-nonblocking.c (main): Avoid test failure on
3606         directories if fchdir is not active.
3607         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
3608
3609 2011-03-31  Bruno Haible  <bruno@clisp.org>
3610
3611         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
3612         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
3613         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
3614         Reported by Simon Josefsson <simon@josefsson.org>.
3615
3616 2011-03-31  Bruno Haible  <bruno@clisp.org>
3617         and Eric Blake  <eblake@redhat.com>
3618
3619         nonblocking: new module
3620         * modules/nonblocking: New module.
3621         * modules/nonblocking-tests: Likewise.
3622         * lib/nonblocking.h: New file.
3623         * lib/nonblocking.c: Likewise.
3624         * tests/test-nonblocking.c: New test.
3625         * lib/ioctl.c (ioctl) [mingw]: Update comment.
3626
3627 2011-03-30  Bruno Haible  <bruno@clisp.org>
3628
3629         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
3630         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
3631         instead of 'printf' format for GCC >= 4.4.
3632         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
3633         (fprintf, printf, vfprintf, vprintf): Declare with
3634         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
3635         the system's vfprintf() function.
3636         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
3637
3638 2011-03-30  Eric Blake  <eblake@redhat.com>
3639
3640         passfd: fix scoping bug
3641         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
3642         before sendmsg/recvmsg.
3643
3644         passfd: standardize coding conventions
3645         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
3646         can be learned at compile time.
3647         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
3648         ifdefs.
3649         (sendfd, recvfd): Follow gnulib code conventions.
3650
3651         passfd: fix incorrect sendmsg arguments
3652         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
3653         incorrect msg_controllen value.
3654         * modules/passfd-tests (Depends-on): Check for alarm.
3655         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
3656         Reported by Bastien ROUCARIES.
3657
3658 2011-03-30  Bruno Haible  <bruno@clisp.org>
3659
3660         c-strcasestr: Relicense under LGPLv2+.
3661         * modules/c-strcasestr (License): Change to LGPLv2+.
3662         Requested by Eric Blake, for libvirt.
3663
3664 2011-03-30  Simon Josefsson  <simon@josefsson.org>
3665
3666         * users.txt: Add libidn2.  Fix libtasn1 link.
3667
3668 2011-03-30  Jim Meyering  <meyering@redhat.com>
3669
3670         tests: readlink* ("",... fails with EINVAL on newer kernels
3671         readlink and readlinkat have typically failed with ENOENT for
3672         the invalid, empty file name,  "".  However, with the advent
3673         of linux-2.6.39, they fail with EINVAL.
3674         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
3675         when operating on the empty file name.
3676         * tests/test-readlink.h (test_readlink): Likewise.
3677
3678 2011-03-29  Bruno Haible  <bruno@clisp.org>
3679
3680         Relicense some modules under LGPLv2+, for libidn2.
3681         * modules/array-mergesort (License): Change to LGPLv2+.
3682         * modules/c-strcaseeq (License): Likewise.
3683         * modules/striconveh (License): Likewise.
3684         * modules/striconveha (License): Likewise.
3685         * modules/uniconv/base (License): Likewise.
3686         * modules/uniconv/u8-conv-from-enc (License): Likewise.
3687         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
3688         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
3689         * modules/unictype/base (License): Likewise.
3690         * modules/unictype/bidiclass-of (License): Likewise.
3691         * modules/unictype/category-M (License): Likewise.
3692         * modules/unictype/category-none (License): Likewise.
3693         * modules/unictype/category-of (License): Likewise.
3694         * modules/unictype/category-test (License): Likewise.
3695         * modules/unictype/category-test-withtable (License): Likewise.
3696         * modules/unictype/combining-class (License): Likewise.
3697         * modules/unictype/joiningtype-of (License): Likewise.
3698         * modules/unictype/scripts (License): Likewise.
3699         * modules/uninorm/base (License): Likewise.
3700         * modules/uninorm/canonical-decomposition (License): Likewise.
3701         * modules/uninorm/composition (License): Likewise.
3702         * modules/uninorm/decompose-internal (License): Likewise.
3703         * modules/uninorm/decomposition-table (License): Likewise.
3704         * modules/uninorm/nfc (License): Likewise.
3705         * modules/uninorm/nfd (License): Likewise.
3706         * modules/uninorm/u32-normalize (License): Likewise.
3707         * modules/unistr/base (License): Likewise.
3708         * modules/unistr/u32-cpy (License): Likewise.
3709         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
3710         * modules/unistr/u32-to-u8 (License): Likewise.
3711         * modules/unistr/u32-uctomb (License): Likewise.
3712         * modules/unistr/u8-check (License): Likewise.
3713         * modules/unistr/u8-mblen (License): Likewise.
3714         * modules/unistr/u8-mbtouc (License): Likewise.
3715         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
3716         * modules/unistr/u8-mbtoucr (License): Likewise.
3717         * modules/unistr/u8-prev (License): Likewise.
3718         * modules/unistr/u8-strlen (License): Likewise.
3719         * modules/unistr/u8-to-u32 (License): Likewise.
3720         * modules/unistr/u8-uctomb (License): Likewise.
3721         * modules/unitypes (License): Likewise.
3722         Requested by Simon Josefsson.
3723
3724 2011-03-29  Simon Josefsson  <simon@josefsson.org>
3725
3726         lib-symbol-visibility: Add a notice.
3727         * modules/lib-symbol-visibility (Notice): New field.
3728
3729 2011-03-29  Bruno Haible  <bruno@clisp.org>
3730
3731         getaddrinfo: Doc fix.
3732         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
3733         section "fixed in Gnulib".
3734
3735 2011-03-28  Simon Josefsson  <simon@josefsson.org>
3736
3737         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
3738         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
3739
3740 2011-03-26  Bruno Haible  <bruno@clisp.org>
3741
3742         unictype/property-byname: Reduce the number of load-time relocations.
3743         * lib/unictype/pr_byname.c: Include <stdlib.h>.
3744         (UC_PROPERTY_INDEX_*): New enumeration values.
3745         (uc_property_byname): Convert an index from the lookup table to an
3746         uc_property_t.
3747         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
3748         values.
3749
3750 2011-03-26  Bruno Haible  <bruno@clisp.org>
3751
3752         unictype/property-byname: Allow omitted word separators and aliases.
3753         * lib/unictype/pr_byname.gperf: Add property names without word
3754         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
3755         for 'space'.
3756
3757 2011-03-26  Bruno Haible  <bruno@clisp.org>
3758
3759         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
3760         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
3761         also hyphens to space.
3762         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
3763         without spaces.
3764         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
3765
3766 2011-03-26  Bruno Haible  <bruno@clisp.org>
3767
3768         unictype/joiningtype-byname: Recognize long names as well.
3769         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
3770         a long name.
3771         * lib/unictype/joiningtype_byname.c: Include <string.h>,
3772         unictype/joiningtype_byname.h.
3773         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
3774         * lib/unictype/joiningtype_byname.gperf: New file.
3775         * modules/unictype/joiningtype-byname (Files): Add
3776         lib/unictype/joiningtype_byname.gperf.
3777         (Depends-on): Add gperf.
3778         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
3779         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
3780         long names.
3781
3782         Tests for module 'unictype/joiningtype-longname'.
3783         * modules/unictype/joiningtype-longname-tests: New file.
3784         * tests/unictype/test-joiningtype_longname.c: New file.
3785
3786         New module 'unictype/joiningtype-longname'.
3787         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
3788         * lib/unictype/joiningtype_longname.c: New file.
3789         * modules/unictype/joiningtype-longname: New file.
3790         * modules/unictype/joiningtype-all (Depends-on): Add
3791         unictype/joiningtype-longname.
3792
3793 2011-03-26  Bruno Haible  <bruno@clisp.org>
3794
3795         unictype/bidiclass-byname: Recognize long names as well.
3796         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
3797         name.
3798         * lib/unictype/bidi_byname.c: Include <string.h>,
3799         unictype/bidi_byname.h.
3800         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
3801         * lib/unictype/bidi_byname.gperf: New file.
3802         * modules/unictype/bidiclass-byname (Files): Add
3803         lib/unictype/bidi_byname.gperf.
3804         (Depends-on): Add gperf.
3805         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
3806         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
3807         long names.
3808
3809         Tests for module 'unictype/bidiclass-longname'.
3810         * modules/unictype/bidiclass-longname-tests: New file.
3811         * tests/unictype/test-bidi_longname.c: New file.
3812
3813         New module 'unictype/bidiclass-longname'.
3814         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
3815         * lib/unictype/bidi_longname.c: New file.
3816         * modules/unictype/bidiclass-longname: New file.
3817         * modules/unictype/bidiclass-all (Depends-on): Add
3818         unictype/bidiclass-longname.
3819
3820 2011-03-26  Bruno Haible  <bruno@clisp.org>
3821
3822         unictype/bidi*: Rename modules.
3823         * modules/unictype/bidiclass-all: Renamed from
3824         modules/unictype/bidicategory-all.
3825         * modules/unictype/bidiclass-name: Renamed from
3826         modules/unictype/bidiclass-name.
3827         (Description): Update.
3828         * modules/unictype/bidiclass-name-tests: Renamed from
3829         modules/unictype/bidicategory-name-tests.
3830         * modules/unictype/bidiclass-byname: Renamed from
3831         modules/unictype/bidicategory-byname.
3832         (Description): Update.
3833         * modules/unictype/bidiclass-byname-tests: Renamed from
3834         modules/unictype/bidicategory-byname-tests.
3835         * modules/unictype/bidiclass-of: Renamed from
3836         modules/unictype/bidicategory-of.
3837         (Description): Update.
3838         * modules/unictype/bidiclass-of-tests: Renamed from
3839         modules/unictype/bidicategory-of-tests.
3840         * modules/unictype/bidiclass-test: Renamed from
3841         modules/unictype/bidicategory-test.
3842         (Description): Update.
3843         * modules/unictype/bidiclass-test-tests: Renamed from
3844         modules/unictype/bidicategory-test-tests.
3845         * modules/unictype/bidicategory-all: New file, a simple redirection.
3846         * modules/unictype/bidicategory-name: Likewise.
3847         * modules/unictype/bidicategory-byname: Likewise.
3848         * modules/unictype/bidicategory-of: Likewise.
3849         * modules/unictype/bidicategory-test: Likewise.
3850         * modules/unictype/property-bidi-* (Dependencies): Update.
3851         * lib/unictype/bidi_*.c: Update comment.
3852
3853 2011-03-26  Bruno Haible  <bruno@clisp.org>
3854
3855         unictype/bidi*: Rename functions, part 2.
3856         * modules/unictype/bidicategory-name (configure.ac): Update required
3857         libunistring version.
3858         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
3859
3860 2011-03-25  Bruno Haible  <bruno@clisp.org>
3861
3862         New module 'unictype/combining-class-all'.
3863         * modules/unictype/combining-class-all: New file.
3864
3865         Tests for module 'unictype/combining-class-byname'.
3866         * modules/unictype/combining-class-byname-tests: New file.
3867         * tests/unictype/test-combiningclass_byname.c: New file.
3868
3869         New module 'unictype/combining-class-byname'.
3870         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
3871         * lib/unictype/combiningclass_byname.c: New file.
3872         * lib/unictype/combiningclass_byname.gperf: New file.
3873         * modules/unictype/combining-class-byname: New file.
3874
3875         Tests for module 'unictype/combining-class-longname'.
3876         * modules/unictype/combining-class-longname-tests: New file.
3877         * tests/unictype/test-combiningclass_longname.c: New file.
3878
3879         New module 'unictype/combining-class-longname'.
3880         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
3881         * lib/unictype/combiningclass_longname.c: New file.
3882         * modules/unictype/combining-class-longname: New file.
3883
3884         Tests for module 'unictype/combining-class-name'.
3885         * modules/unictype/combining-class-name-tests: New file.
3886         * tests/unictype/test-combiningclass_name.c: New file.
3887
3888         New module 'unictype/combining-class-name'.
3889         * lib/unictype.in.h (uc_combining_class_name): New declaration.
3890         * lib/unictype/combiningclass_name.c: New file.
3891         * modules/unictype/combining-class-name: New file.
3892
3893 2011-03-25  Bruno Haible  <bruno@clisp.org>
3894
3895         unictype/combining-class: Rename source files.
3896         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
3897         of unictype/combining.h.
3898         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
3899         Update.
3900         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
3901         * modules/unictype/combining-class (Description): Fix.
3902         (Files, Makefile.am): Update.
3903         * tests/unictype/test-combiningclass.c: Renamed from
3904         tests/unictype/test-combining.c.
3905         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
3906
3907 2011-03-25  Bruno Haible  <bruno@clisp.org>
3908
3909         unictype: Update list of canonical combining classes.
3910         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
3911
3912 2011-03-25  Bruno Haible  <bruno@clisp.org>
3913
3914         unictype/category-byname: Recognize long names as well.
3915         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
3916         a long name.
3917         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
3918         unictype/categ_byname.h.
3919         (UC_CATEGORY_INDEX_*): New enumeration values.
3920         (uc_general_category_byname): Use uc_general_category_lookup and
3921         convert from index to value.
3922         * lib/unictype/categ_byname.gperf: New file.
3923         * modules/unictype/category-byname (Files): Add
3924         lib/unictype/categ_byname.gperf.
3925         (Depends-on): Add gperf.
3926         (Makefile.am): Add rule for generating unictype/categ_byname.h.
3927         * tests/unictype/test-categ_byname.c (main): Test the recognition of
3928         long names.
3929
3930         Tests for module 'unictype/category-longname'.
3931         * modules/unictype/category-longname-tests: New file.
3932         * tests/unictype/test-categ_longname.c: New file.
3933
3934         New module 'unictype/category-longname'.
3935         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
3936         * lib/unictype/categ_longname.c: New file.
3937         * modules/unictype/category-longname: New file.
3938         * modules/unictype/category-all (Depends-on): Add it.
3939
3940 2011-03-25  Bruno Haible  <bruno@clisp.org>
3941
3942         Tests for module 'unictype/category-LC'.
3943         * modules/unictype/category-LC-tests: New file.
3944         * tests/unictype/test-categ_LC.c: New file, automatically generated.
3945
3946         New module 'unictype/category-LC'.
3947         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
3948         (UC_CATEGORY_LC): New declaration.
3949         (UC_CASED_LETTER): New macro.
3950         * lib/gen-uni-tables.c (is_category_LC): New function.
3951         (output_categories): Also handle category LC.
3952         (UC_CATEGORY_MASK_LC): New enumeration value.
3953         (general_category_byname): Also handle category LC.
3954         * lib/unictype/categ_LC.c: New file.
3955         * lib/unictype/categ_LC.h: New file, automatically generated.
3956         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
3957         category LC.
3958         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
3959         * modules/unictype/category-LC: New file.
3960         * modules/unictype/category-byname (Depends-on): Add
3961         unictype/category-LC.
3962         * modules/unictype/category-all (Depends-on): Likewise.
3963
3964 2011-03-25  Eric Blake  <eblake@redhat.com>
3965
3966         xmalloc: revert yesterday's regression
3967         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
3968         realloc's underlying behavior (allowing allocation of zero-size
3969         objects, especially if malloc-gnu is also in use).
3970
3971 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
3972
3973         maint.mk: add missing version to VC-tag
3974         * top/maint.mk: git tag was missing actual tag name; add it.
3975
3976         valgrind: do leak checking, and exit with code 1 on error (not 0)
3977         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
3978         to VALGRIND.
3979
3980 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
3981
3982         posix-modules: say what it does.
3983         * posix-modules: Add a line to the --help output saying what it does.
3984
3985 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
3986
3987         xmalloc: Do not leak if underlying realloc is C99 compatible.
3988         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
3989         This avoids a leak on C99-based systems.  See
3990         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
3991
3992 2011-03-24  Eric Blake  <eblake@redhat.com>
3993
3994         realloc: document portability problem
3995         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
3996         passing 0 size to realloc.
3997
3998 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
3999
4000         doc: update users.txt
4001         * users.txt: Add cvsps, tmpwatch
4002
4003 2011-03-23  Matt Rice  <ratmice@gmail.com>
4004
4005         doc: update users.txt
4006         * users.txt: Add gdb.
4007
4008 2011-03-23  Jim Meyering  <meyering@redhat.com>
4009
4010         doc: update users.txt
4011         Looking through matches up to the following URL (there are still
4012         several more pages), I found several projects that use gnulib:
4013         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
4014         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
4015         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
4016
4017 2011-03-22  Bruno Haible  <bruno@clisp.org>
4018
4019         unictype/bidi*: Rename functions.
4020         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
4021         uc_bidi_class, uc_is_bidi_class): New declarations.
4022         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
4023         uc_bidi_category_byname.
4024         (uc_bidi_category_byname): New function.
4025         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
4026         u_bidi_category_name.
4027         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
4028         (uc_bidi_category_name): New function.
4029         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
4030         uc_bidi_category.
4031         (uc_bidi_category): New function.
4032         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
4033         uc_is_bidi_category. Invoke uc_bidi_class.
4034         (uc_is_bidi_category): New function.
4035         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
4036         instead of uc_bidi_category_byname.
4037         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
4038         instead of uc_bidi_category_name.
4039         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
4040         uc_bidi_category.
4041         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
4042         instead of uc_is_bidi_category.
4043
4044 2011-03-21  Bruno Haible  <bruno@clisp.org>
4045
4046         New module 'unictype/joininggroup-all'.
4047         * modules/unictype/joininggroup-all: New file.
4048
4049         Tests for module 'unictype/joininggroup-of'.
4050         * modules/unictype/joininggroup-of-tests: New file.
4051         * tests/unictype/test-joininggroup_of.c: New file.
4052         * tests/unictype/test-joininggroup_of.h: New file, automatically
4053         generated by gen-uni-tables.
4054
4055         New module 'unictype/joininggroup-of'.
4056         * modules/unictype/joininggroup-of: New file.
4057         * lib/unictype/joininggroup_of.c: New file.
4058         * lib/unictype/joininggroup_of.h: New file, automatically generated by
4059         gen-uni-tables.
4060
4061         Tests for module 'unictype/joininggroup-byname'.
4062         * modules/unictype/joininggroup-byname-tests: New file.
4063         * tests/unictype/test-joininggroup_byname.c: New file.
4064
4065         New module 'unictype/joininggroup-byname'.
4066         * modules/unictype/joininggroup-byname: New file.
4067         * lib/unictype/joininggroup_byname.c: New file.
4068         * lib/unictype/joininggroup_byname.gperf: New file.
4069
4070         Tests for module 'unictype/joininggroup-name'.
4071         * modules/unictype/joininggroup-name-tests: New file.
4072         * tests/unictype/test-joininggroup_name.c: New file.
4073
4074         New module 'unictype/joininggroup-name'.
4075         * modules/unictype/joininggroup-name: New file.
4076         * lib/unictype/joininggroup_name.c: New file.
4077         * lib/unictype/joininggroup_name.h: New file.
4078
4079         New module 'unictype/joiningtype-all'.
4080         * modules/unictype/joiningtype-all: New file.
4081
4082         Tests for module 'unictype/joiningtype-of'.
4083         * modules/unictype/joiningtype-of-tests: New file.
4084         * tests/unictype/test-joiningtype_of.c: New file.
4085         * tests/unictype/test-joiningtype_of.h: New file, automatically
4086         generated by gen-uni-tables.
4087
4088         New module 'unictype/joiningtype-of'.
4089         * modules/unictype/joiningtype-of: New file.
4090         * lib/unictype/joiningtype_of.c: New file.
4091         * lib/unictype/joiningtype_of.h: New file, automatically generated by
4092         gen-uni-tables.
4093
4094         Tests for module 'unictype/joiningtype-byname'.
4095         * modules/unictype/joiningtype-byname-tests: New file.
4096         * tests/unictype/test-joiningtype_byname.c: New file.
4097
4098         New module 'unictype/joiningtype-byname'.
4099         * modules/unictype/joiningtype-byname: New file.
4100         * lib/unictype/joiningtype_byname.c: New file.
4101
4102         Tests for module 'unictype/joiningtype-name'.
4103         * modules/unictype/joiningtype-name-tests: New file.
4104         * tests/unictype/test-joiningtype_name.c: New file.
4105
4106         New module 'unictype/joiningtype-name'.
4107         * modules/unictype/joiningtype-name: New file.
4108         * lib/unictype/joiningtype_name.c: New file.
4109
4110         unictype: Add support for Arabic shaping properties.
4111         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
4112         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
4113         declarations.
4114         (UC_JOINING_GROUP_*): New enumeration values.
4115         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
4116         declarations.
4117         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
4118         (unicode_joining_type): New variable.
4119         (UC_JOINING_GROUP_*): New enumeration values.
4120         (unicode_joining_group): New variable.
4121         (fill_arabicshaping, joining_type_as_c_identifier,
4122         output_joining_type_test, output_joining_type,
4123         joining_group_as_c_identifier, output_joining_group_test,
4124         output_joining_group): New functions.
4125         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
4126         fill_arabicshaping and output_joining_type_test, output_joining_type,
4127         output_joining_group_test, output_joining_group.
4128         Reported by Simon Josefsson.
4129
4130 2011-03-21  Jim Meyering  <meyering@redhat.com>
4131
4132         strftime: fix a bug in yesterday's change
4133         * lib/strftime.c (add): Accommodate width's initial value of -1.
4134         Otherwise, nstrftime would copy uninitialized data into
4135         the result buffer.
4136
4137 2011-03-21  Jim Meyering  <meyering@redhat.com>
4138
4139         tests: add strftime-tests module
4140         * tests/test-strftime.c: New file.
4141         * modules/strftime-tests: New module.
4142
4143 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4144
4145         strftime: don't assume a byte count fits in 'int'
4146         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
4147         found this problem by static analysis, using gcc -Wstrict-overflow
4148         (GCC 4.5.2, x86-64).  This reported an optimization that depended
4149         on an integer overflow having undefined behavior, but it turns out
4150         that the argument is a size, which might not fit in 'int' anyway,
4151
4152 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4153
4154         stdio: don't require ignore_value around fwrite
4155
4156         This patch works around libc bug 11959
4157         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
4158         Without this patch, applications must often write
4159         ignore_value (fwrite (...)) even though the ignore_value is
4160         not helpful here.  It's common to write many objects, using
4161         fwrite/printf/etc., and then use ferror to detect output error.
4162
4163         I considered making this patch optional, but decided against it,
4164         because libc is obviously being inconsistent here: there is no
4165         reason libc should insist that user code must inspect fwrite
4166         return's value without also insisting that it inspect printf's,
4167         putchar's, etc.  If user code wants to have a strict style where
4168         all these functions' values are checked (so that ferror need not
4169         be checked), we could add support for that style in a new gnulib
4170         module, but in the meantime it's better to be consistent and to
4171         support common usage.
4172
4173         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
4174         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
4175         that we are compiling in checking mode, and if not C++, and
4176         if not already wrapping fwrite for some other reason.
4177         (fwrite): #define to rpl_fwrite if the latter is defined.
4178
4179 2011-03-20  Bruno Haible  <bruno@clisp.org>
4180
4181         verror: Fix compilation error introduced on 2011-02-13.
4182         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
4183         instead of __attribute__.
4184         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4185
4186 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
4187             Bruno Haible  <bruno@clisp.org>
4188
4189         socklen: do not depend on sys_socket
4190         While trying to modify Emacs to use gnulib's socklen module,
4191         I discovered a circular dependency: socklen depends on sys_socket
4192         and vice versa.  Emacs can use socklen, but it does not need
4193         sys_socket because it has its own substitute for sys/socket.h.
4194         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
4195         gl_TYPE_SOCKLEN_T.
4196         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
4197         gl_PREREQ_SYS_H_SOCKET.
4198         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
4199         gl_PREREQ_SYS_H_SOCKET.
4200         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
4201         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
4202         * modules/socklen (Depends-on): Do not depend on sys_socket.
4203         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
4204
4205 2011-03-20  Jim Meyering  <meyering@redhat.com>
4206
4207         maint.mk: sort file names *after* new transformation
4208         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
4209         prefix would have led to an unwarranted failure in GNU parted.
4210         Sort after that transformation.
4211
4212 2011-03-19  Jim Meyering  <meyering@redhat.com>
4213
4214         maint.mk: fix po-file syntax-check rule
4215         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
4216         Patch by Bruno Haible.
4217
4218 2011-03-19  Bruno Haible  <bruno@clisp.org>
4219
4220         socklen: Update comment.
4221         * m4/socklen.m4: Update comment about platforms.
4222
4223 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4224             Bruno Haible  <bruno@clisp.org>
4225
4226         inet_ntop, inet_pton: Simplify.
4227         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
4228         documented to provide socklen_t and we already depend on sys_socket.
4229         * modules/inet_pton (Depends-on): Likewise.
4230         * lib/arpa_inet.in.h: Adjust comment.
4231
4232 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
4233             Bruno Haible  <bruno@clisp.org>
4234
4235         netdb: Simplify.
4236         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
4237         documented to provide socklen_t and we already depend on sys_socket.
4238         * lib/netdb.in.h: Adjust comment.
4239
4240 2011-03-19  Bruno Haible  <bruno@clisp.org>
4241
4242         sys_socket, netdb: Document problem with socklen_t.
4243         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
4244         platforms.
4245         * doc/posix-headers/netdb.texi: Likewise.
4246
4247 2011-03-18  Eric Blake  <eblake@redhat.com>
4248
4249         maint.mk: let po check work in VPATH build
4250         * top/maint.mk (po_file): Allow cfg.mk override.
4251         (sc_po_check): Allow VPATH use.
4252         Reported by Jiri Denemark.
4253
4254 2011-03-16  Jim Meyering  <meyering@redhat.com>
4255
4256         maint.mk: allow fine-grained syntax-check exclusion via Make variables
4257         Before, you would have had to create one .x-sc_ file per rule in order
4258         to exempt offending files.  Now, you may instead use a Make variable --
4259         usually defined in cfg.mk -- whose name identifies the affected rule.
4260         * top/maint.mk (_sc_excl): Define.
4261         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
4262         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
4263
4264 2011-03-13  Bruno Haible  <bruno@clisp.org>
4265
4266         ignore-value tests: Avoid warnings.
4267         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
4268         empty for gcc < 3.4.
4269
4270 2011-03-13  Bruno Haible  <bruno@clisp.org>
4271
4272         passfd: Fix link error on Solaris.
4273         * modules/passfd (Description): Correct.
4274         (Depends-on): Add socketlib.
4275         (Link): New section.
4276         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
4277
4278 2011-03-13  Bruno Haible  <bruno@clisp.org>
4279
4280         passfd: Fix link error on AIX 5.2.
4281         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
4282
4283 2011-03-13  Bruno Haible  <bruno@clisp.org>
4284
4285         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
4286         * lib/sys_socket.in.h: Include <stddef.h>.
4287         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
4288         CMSG_FIRSTHDR. Remove unused variable.
4289
4290 2011-03-13  Bruno Haible  <bruno@clisp.org>
4291
4292         passfd: Fix compilation error on OpenBSD.
4293         * lib/passfd.c: Include <sys/uio.h>.
4294
4295 2011-03-13  Bruno Haible  <bruno@clisp.org>
4296
4297         passfd test: Fix warnings.
4298         * tests/test-passfd.c: Include <sys/wait.h>.
4299         (main): Fix typo.
4300
4301 2011-03-13  Bruno Haible  <bruno@clisp.org>
4302
4303         passfd module, part 4, tweaks.
4304         * tests/test-passfd.c: Reorder includes.
4305         (main): Fix perror and printf calls.
4306
4307 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4308
4309         passfd module, part 4.
4310         * modules/passfd-tests: New file.
4311         * tests/test-passfd.c: New file.
4312
4313 2011-03-13  Jim Meyering  <meyering@redhat.com>
4314
4315         Makefile: rely on GNU make; derive syntax-check rule names
4316         Rather than requiring that each sc_ rule be listed as a dependent
4317         of "check", use features of GNU make to derive the list.
4318         * Makefile (syntax-check-rules): Define.
4319         (check): Depend on the new variable, not the hard-coded list.
4320
4321 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
4322             Bruno Haible  <bruno@clisp.org>
4323
4324         passfd module, part 3.
4325         * lib/passfd.h (recvfd): Add a flags argument.
4326         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
4327         (recvfd): Add a flags argument.
4328         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
4329         exists.
4330         * modules/passfd (Depends-on): Add cloexec.
4331         Suggested by Eric Blake.
4332
4333 2011-03-13  Bruno Haible  <bruno@clisp.org>
4334
4335         passfd module, part 2, tweaks.
4336         * modules/passfd (Files): Reorder.
4337         (Depends-on): Remove errno.
4338         (Include): Remove <sys/socket.h>, <sys/un.h>.
4339         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
4340         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
4341         specification header. Include <sys/socket.h> always. Don't include
4342         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
4343         (sendfd): Clarify that it sets errno when it fails.
4344         (recvfd): Fix specification.
4345
4346 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4347
4348         passfd module, part 2.
4349         * modules/passfd: New file.
4350         * lib/passfd.h: New file.
4351         * lib/passfd.c: New file.
4352
4353 2011-03-12  Bruno Haible  <bruno@clisp.org>
4354
4355         wcswidth, mbswidth: Avoid integer overflow.
4356         * lib/wcswidth.c: Include <limits.h>.
4357         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
4358         * lib/mbswidth.c: Include <limits.h>.
4359         (mbsnwidth): Avoid 'int' overflow.
4360         Reported by Jim Meyering.
4361
4362 2011-03-12  Bruno Haible  <bruno@clisp.org>
4363
4364         futimens, utimensat: Avoid endless recursion on Solaris 10.
4365         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
4366         Solaris.
4367         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
4368         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
4369
4370 2011-03-11  Jim Meyering  <meyering@redhat.com>
4371
4372         maint.mk: relax a regexp to accommodate other formatting styles
4373         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
4374         between "ngettext" and the following "(".
4375
4376 2011-03-11  Pádraig Brady <P@draigBrady.com>
4377
4378         maint.mk: suppress a false positive warning
4379         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
4380         diagnostics are marked with ngettext.
4381
4382 2011-03-10  Eric Blake  <eblake@redhat.com>
4383
4384         wchar: add explicit dependencies, for Tru64
4385         * modules/mbmemcasecoll (Depends-on): Add wchar.
4386         * modules/mbtowc (Depends-on): Likewise.
4387         * modules/vasnprintf (Depends-on): Likewise.
4388         * modules/unistdio/u-printf-args (Depends-on): Likewise.
4389         * modules/wctomb (Depends-on): Likewise.
4390         Reported by Peter O'Gorman.
4391
4392 2011-03-08  Bruno Haible  <bruno@clisp.org>
4393
4394         passfd module, part 1, tweaks.
4395         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
4396         Improve indentation. Improve AC_MSG_CHECKING messages.
4397         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
4398         gl_SOCKET_FAMILIES.
4399
4400 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
4401
4402         passfd module, part 1.
4403         * m4/afunix.m4: New file.
4404         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
4405         sockets.
4406
4407 2011-03-08  Bruno Haible  <bruno@clisp.org>
4408
4409         regex-quote: New API.
4410         * lib/regex-quote.h: Include <stdbool.h>.
4411         (struct regex_quote_spec): New type.
4412         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4413         New declarations.
4414         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4415         'const struct regex_quote_spec *' argument.
4416         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
4417         (pcre_special): New constant.
4418         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
4419         New functions.
4420         (regex_quote_length, regex_quote_copy, regex_quote): Take a
4421         'const struct regex_quote_spec *' argument.
4422         * modules/regex-quote (Depends-on): Add stdbool.
4423         * tests/test-regex-quote.c (check): Update for new API. Add test for
4424         anchored results.
4425         * NEWS: Mention the API change.
4426         Reported by Reuben Thomas and Eric Blake.
4427
4428 2011-03-06  Bruno Haible  <bruno@clisp.org>
4429
4430         regex-quote: Fix creation of POSIX extended regular expressions.
4431         * lib/regex-quote.c (ere_special): Add grouping and alternation
4432         operators.
4433
4434 2011-03-05  Bruno Haible  <bruno@clisp.org>
4435
4436         doc: Improve doc regarding autopoint vs. gnulib.
4437         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
4438         disable autopoint while running autoreconf.
4439         Suggested by Ralf Wildenhues.
4440
4441 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4442
4443         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
4444         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
4445
4446 2011-03-03  Bruce Korb  <bkorb@gnu.org>
4447
4448         parse-duration: remove xalloc.h dependency
4449         * lib/parse-duration.c (parse_period): handle NULL return from
4450         strdup instead of calling xstrdup().
4451         * modules/parse-duration: remove "xalloc" dependency
4452
4453 2011-03-03  Matthew Booth  <mbooth@redhat.com>
4454
4455         bootstrap: honor m4_base when running aclocal
4456         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
4457
4458 2011-03-02  Jim Meyering  <meyering@redhat.com>
4459
4460         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
4461         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
4462         on request from Matt Booth.
4463
4464 2011-03-01  Eric Blake  <eblake@redhat.com>
4465
4466         test-link: work on Hurd
4467         * tests/test-link.h (test_link): Hurd rejects linking directories
4468         with EISDIR instead of the POSIX-mandated EPERM.
4469
4470 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
4471
4472         stdio: simplify by moving files to printf-posix, sigpipe
4473         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
4474         since this symbol is needed only if printf is replaced.
4475         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
4476         Require gl_ASM_SYMBOL_PREFIX.
4477         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
4478         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
4479         (Depends-on): Add 'raise'.
4480         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
4481         * modules/stdio (Files): Remove lib/stdio-write.c,
4482         m4/asm-underscore.m4.
4483         (Depends-on): Remove 'raise'.
4484
4485         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
4486         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
4487         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
4488         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
4489
4490 2011-02-28  Bruno Haible  <bruno@clisp.org>
4491
4492         localcharset: Assume ANSI C behaviour of free().
4493         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
4494         calling free().
4495         Suggested by Simon Josefsson <simon@josefsson.org>.
4496
4497 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
4498             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
4499             Bruno Haible  <bruno@clisp.org>  (tiny change)
4500
4501         On Cygwin, use /proc file system instead of win32 API.
4502         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
4503         Win32 file names.
4504         (DllMain): Simplify by removing Cygwin specific code.
4505         (find_shared_library_fullname): Use Linux specific implementation also
4506         for Cygwin.
4507         (get_shared_library_fullname): Update accordingly.
4508         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
4509         Win32 file names.
4510         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
4511         Cygwin specific code.
4512
4513 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
4514             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
4515
4516         Fix OpenMP flag detection for various Fortran compilers.
4517         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
4518         OpenMP-conditional compilation construct, to force compile
4519         failure with missing OpenMP flag.
4520         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
4521
4522 2011-02-25  Eric Blake  <eblake@redhat.com>
4523
4524         strstr: expand test coverage
4525         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
4526         compilation.
4527         * tests/test-memmem.c (main): Duplicate tests.
4528         * tests/test-strcasestr.c (main): Likewise.
4529         * tests/test-c-strcasestr.c (main): Likewise.
4530
4531 2011-02-25  Jim Meyering  <meyering@redhat.com>
4532
4533         maint.mk: detect missing-NL-at-EOF, too
4534         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
4535         it also detects when a file lacks a newline at EOF.
4536         (require_exactly_one_NL_at_EOF_): Renamed from
4537         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
4538         since people may well have .x-sc_... file names tied to the
4539         existing name.  Suggested by Eric Blake.
4540
4541 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
4542
4543         dirname: move m4/dos.m4 functionality into lib/dosname.h
4544
4545         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
4546         extracts symbols from it, puts them into config.h; but it's much
4547         easier to use the symbols directly.  filename.h already does this,
4548         but it disagrees with dos.m4 in some respects.  This patch
4549         introduces a different include file dosname.h that packages up
4550         dos.m4, and then later we can work on merging filename.h and
4551         dosname.h.  Applications that need only the easy-to-configure
4552         symbols should consider including dosname.h rather than dirname.h.
4553         * NEWS: Mention incompatible changes.
4554         * m4/dos.m4: Remove.
4555         * lib/dosname.h, modules/dosname: New files.
4556         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
4557         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
4558         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
4559         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
4560         Include dosname.h, not dirname.h.
4561         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
4562         Include dosname.h, for definitions of symbols like ISSLASH
4563         that used to be in config.h.
4564         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
4565         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4566         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4567         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4568         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
4569         * modules/rmdir (Files): Likewise.
4570         * modules/stat (Files): Likewise.
4571         * modules/unlink (Files): Likewise.
4572         * modules/dirname-lgpl (Depends-on): Add dosname.
4573         * modules/lstat (Depends-on): Likewise.
4574         * modules/openat (Depends-on): Likewise.
4575         * modules/rmdir (Depends-on): Likewise.
4576         * modules/savewd (Depends-on): Likewise.
4577         * modules/stat (Depends-on): Likewise.
4578         * modules/unlink (Depends-on): Likewise.
4579         * modules/openat (Depends-on): Remove dirname-lgpl.
4580         * modules/savewd (Depends-on): Likewise.
4581         * tests/test-dirname.c: Do not use removed symbols like
4582         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
4583         the remaining symbols, e.g., ISSLASH ('\\').
4584
4585 2011-02-25  Eric Blake  <eblake@redhat.com>
4586
4587         strstr: revert patches that introduced bug and pessimization
4588         * lib/str-two-way.h: Add another reference.
4589         (two_way_short_needle, two_way_long_needle): Revert changes from
4590         2011-02-24; they pessimize search speed.
4591         (critical_factorization): Partially revert changes from
4592         2010-06-22; they violate the requirement that the left half of the
4593         needle be smaller than the period of the needle.
4594
4595 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
4596
4597         filenamecat: remove unnecessary dependency on dirname-lgpl
4598         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
4599         is no direct dependency, just an indirect one via filenamecat-lgpl.
4600
4601         remove: remove unnecessary use of m4/dos.m4
4602         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
4603         * modules/remove (FILES): Remove m4/dos.m4.
4604
4605         * lib/openat-proc.c: Don't include dirname.h; not needed.
4606
4607         backupfile: remove unnecessary use of m4/dos.m4
4608         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
4609         of its symbols are used by the backupfile code.  backupfile.c does
4610         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
4611         for the rare case of programs that want all their backup file
4612         names to live within 8+3 limits, and dos.m4 doesn't address that.
4613         * modules/backupfile (Files): Remove m4/dos.m4.
4614
4615 2011-02-24  Jim Meyering  <meyering@redhat.com>
4616
4617         strstr: fix a bug whereby strstr would mistakenly return NULL
4618         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
4619         in period calculation.
4620         (two_way_long_needle): Likewise.
4621         The original problem was reported by Mike Stump in
4622         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
4623         Ralf Wildenhues provided the short needle and haystack.
4624         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
4625         Add a more involved test to trigger the bug in two_way_long_needle.
4626
4627 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
4628
4629         gnulib-tool: remove use of bold display in help screen
4630         * gnulib-tool (func_usage): Do not use bold display anymore in the
4631         help screen.  That was just meant to be a temporary emphasis for a
4632         backward-incompatible change.
4633
4634 2011-02-23  Bruno Haible  <bruno@clisp.org>
4635
4636         Fix misindentation of preprocessor directives.
4637         * lib/argp-namefrob.h: Reindent preprocessor directives.
4638         * lib/getopt_int.h (struct _getopt_data): Likewise.
4639         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
4640         * lib/vasnprintf.c (decode_long_double): Likewise.
4641         * tests/test-argmatch.c: Insert blank lines, for clarity.
4642         * tests/test-exclude.c: Likewise.
4643
4644 2011-02-22  Bruno Haible  <bruno@clisp.org>
4645
4646         ioctl: Fix for MacOS X in 64-bit mode.
4647         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
4648         value.
4649         Suggested by Eric Blake.
4650         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
4651
4652 2011-02-22  Jim Meyering  <meyering@redhat.com>
4653
4654         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
4655         * Makefile (sc_cpp_indent_check): Don't limit the check to files
4656         in lib/.
4657
4658 2011-02-22  Eric Blake  <eblake@redhat.com>
4659
4660         maint: avoid any CDPATH issue
4661         * Makefile (sc_cpp_indent_check): Anchor cd argument.
4662
4663         maint: adjust cpp indentation for my modules, as well
4664         * Makefile (sc_cpp_indent_check): Add my name.
4665         * lib/fbufmode.c: Filter through cppi.
4666         * lib/fpurge.c: Likewise.
4667         * lib/freadable.c: Likewise.
4668         * lib/freading.c: Likewise.
4669         * lib/fwritable.c: Likewise.
4670         * lib/fwriting.c: Likewise.
4671         * lib/sigaction.c: Likewise.
4672
4673 2011-02-22  Jim Meyering  <meyering@redhat.com>
4674
4675         maint: adjust cpp indentation to reflect nesting depth
4676         I.e., in a block of code that begins with an unnested "#if",
4677         put one space between the "#" in column 1 and following token.
4678         For example,
4679         -#include <sys/vfs.h>
4680         +# include <sys/vfs.h>
4681         Do this only in .c files that are part of a module I maintain.
4682         * lib/linkat.c: Filter through cppi.
4683         * lib/nanosleep.c: Likewise.
4684         * lib/openat.c: Likewise.
4685         * lib/openat-die.c: Likewise.
4686         * lib/dup3.c: Likewise.
4687         * lib/fchownat.c: Likewise.
4688         * lib/flock.c: Likewise.
4689         * lib/fsync.c: Likewise.
4690         * lib/fts.c: Likewise.
4691         * lib/getpass.c: Likewise.
4692         * lib/gettimeofday.c: Likewise.
4693         * lib/userspec.c: Likewise.
4694         * Makefile (sc_cpp_indent_check): New rule, to check this.
4695
4696 2011-02-22  Bruno Haible  <bruno@clisp.org>
4697
4698         New module 'wctomb'.
4699         * lib/stdlib.in.h (wctomb): New declaration.
4700         * lib/wctomb.c: New file.
4701         * lib/wctomb-impl.h: New file.
4702         * m4/wctomb.m4: New file.
4703         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
4704         REPLACE_WCTOMB.
4705         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
4706         REPLACE_WCTOMB.
4707         * modules/wctomb: New file.
4708         * tests/test-stdlib-c++.cc: Test signature of wctomb.
4709         * doc/posix-functions/wctomb.texi: Mention the new module.
4710         * modules/wctob (Depends-on): Add wctomb.
4711
4712 2011-02-22  Bruno Haible  <bruno@clisp.org>
4713
4714         New module 'mbtowc'.
4715         * lib/stdlib.in.h (mbtowc): New declaration.
4716         * lib/mbtowc.c: New file.
4717         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
4718         * m4/mbtowc.m4: New file.
4719         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
4720         REPLACE_MBTOWC.
4721         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
4722         REPLACE_MBTOWC.
4723         * modules/mbtowc: New file.
4724         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
4725         * doc/posix-functions/mbtowc.texi: Mention the new module.
4726         * modules/btowc (Depends-on): Add mbtowc.
4727
4728 2011-02-22  Bruno Haible  <bruno@clisp.org>
4729
4730         wcrtomb: Add more tests for native Windows platforms.
4731         * tests/test-wcrtomb-w32-1.sh: New file.
4732         * tests/test-wcrtomb-w32-2.sh: New file.
4733         * tests/test-wcrtomb-w32-3.sh: New file.
4734         * tests/test-wcrtomb-w32-4.sh: New file.
4735         * tests/test-wcrtomb-w32-5.sh: New file.
4736         * tests/test-wcrtomb-w32.c: New file.
4737         * modules/wcrtomb-tests (Files): Add them.
4738         (Makefile.am): Arrange to run these tests.
4739         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
4740         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
4741
4742 2011-02-20  Bruno Haible  <bruno@clisp.org>
4743
4744         wcrtomb: Enhance test.
4745         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
4746
4747 2011-02-20  Bruno Haible  <bruno@clisp.org>
4748
4749         mbrtowc: Tiny optimization.
4750         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
4751
4752 2011-02-20  Jim Meyering  <meyering@redhat.com>
4753
4754         test-exclude.c: remove unmatched #endif
4755         * tests/test-exclude.c: Remove stray #endif, left over from
4756         the change of a week ago.
4757
4758 2011-02-19  Jim Meyering  <meyering@redhat.com>
4759
4760         git-version-gen: skip "-dirty" check when appropriate
4761         * build-aux/git-version-gen: Don't run any git commands when the
4762         version string comes from .tarball-version.  Prior to this, we
4763         would run git update-index --refresh even from a just-unpacked
4764         tarball directory, and that could affect a .git/ directory in a
4765         parent of the build directory.  Reported by Mike Frysinger.
4766
4767 2011-02-19  Bruno Haible  <bruno@clisp.org>
4768
4769         unictype/property-byname: Reduce the size of the 'data' segment.
4770         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
4771
4772 2011-02-19  Bruno Haible  <bruno@clisp.org>
4773
4774         unictype/scripts: Reduce the size of the 'data' segment.
4775         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
4776         '%pic'.
4777         * lib/unictype/scripts_byname.gperf: Regenerated.
4778
4779 2011-02-19  Bruno Haible  <bruno@clisp.org>
4780
4781         stdint: Update documentation.
4782         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
4783
4784 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
4785
4786         stdint: omit redundant check for wchar.h
4787         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
4788         always tests whether wchar.h exists, so remove the now-redundant test.
4789
4790 2011-02-18  Bruno Haible  <bruno@clisp.org>
4791
4792         stdint: Cut dependency to module 'wchar'.
4793         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
4794         include the necessary prerequisites.
4795         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
4796         * modules/stdint (Depends-on): Remove wchar.
4797         (Makefile.am): Substitute HAVE_WCHAR_H.
4798         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
4799
4800 2011-02-18  Eric Blake  <eblake@redhat.com>
4801
4802         longlong: skip, rather than fail, on cross-compilation
4803         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
4804         when cross-compiling; regression from 2011-02-16.
4805
4806 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
4807
4808         * NEWS: Mention 2011-02-08 change to stdlib.
4809
4810 2011-02-17  Bruno Haible  <bruno@clisp.org>
4811
4812         getloadavg: Add comments about platforms.
4813         * m4/getloadavg.m4: Add comment.
4814         * lib/getloadavg.c: Likewise.
4815
4816 2011-02-17  Bruno Haible  <bruno@clisp.org>
4817
4818         getloadavg: Fix link error on Solaris 2.6.
4819         * modules/getloadavg (Link): New section.
4820         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
4821         linking test-getloadavg.
4822         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
4823         getloadavg.
4824
4825 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
4826
4827         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
4828         It was 'int', but this doesn't match the IRIX 6.5 manual.
4829         Suggested by Bruno Haible in
4830         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
4831
4832 2011-02-17  Bruno Haible  <bruno@clisp.org>
4833
4834         havelib: Fix comments.
4835         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
4836         change.
4837
4838 2011-02-17  Bruno Haible  <bruno@clisp.org>
4839
4840         havelib: Update config.rpath.
4841         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
4842
4843 2011-02-17  Bruno Haible  <bruno@clisp.org>
4844
4845         getloadavg test: Add some plausibility checks.
4846         * tests/test-getloadavg.c (check_avg): Print a warning when the value
4847         is improbable.
4848
4849 2011-02-16  Eric Blake  <eblake@redhat.com>
4850
4851         maintainer-makefile: make syntax-check a no-op from tarballs
4852         * top/maint.mk (no-vc-detected): New rule.
4853         (local-checks-available): Use it to avoid hanging if someone tries
4854         'make syntax-check' from a tarball.  Also append to any non-syntax
4855         checks already defined in cfg.mk.
4856
4857 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
4858
4859         longlong: tune, particularly for common case of c99
4860
4861         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
4862         or running anything if c99, or if unsigned long long int does not
4863         work.  In either case, we know the answer without further tests.
4864         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
4865         it at most once, and use its results for both long long int and
4866         unsigned long long int.  This is more likely to be efficient in
4867         the common case where the program wants to check for both long
4868         long int and unsigned long long int.
4869         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
4870         since the answer is already known.
4871
4872 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
4873
4874         getloadavg: set errno
4875         * lib/getloadavg.c: Set errno when returning -1.  If no other
4876         error number looks appropriate, set it to ENOSYS if the getloadavg
4877         looks like it can't possibly ever work, ENOTSUP otherwise.
4878         Suggested by Bruno Haible in
4879         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
4880
4881         getloadavg: trim unused parts and speed up 'configure'
4882         * NEWS: Document this.
4883         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
4884         always compiled if getloadavg is absent.
4885         Move test code to ...
4886         * tests/test-getloadavg.c: New file, containing previous
4887         contents of test from lib/getloadavg.c.  It also contains
4888         suggestions by Bruno Haible in
4889         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
4890         * modules/getloadavg-tests: New file.
4891         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
4892         Do tests in the same order as they're needed for getloadavg.c.
4893         Omit setgid-related tests that generate symbols KMEM_GROUP,
4894         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
4895         Do only the tests that are needed to see whether the system has
4896         getloadavg, moving the other tests into ...
4897         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
4898         NLIST_NAME_UNION; nobody should be using it.  Do not define
4899         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
4900         relevant, as the user of this module shouldn't care how getloadavg
4901         is implemented.
4902
4903         getloadavg: omit unused var
4904         * lib/getloadavg.c (getloadavg): Omit unused local variable.
4905
4906 2011-02-15  Jim Meyering  <meyering@redhat.com>
4907
4908         doc: update users.txt
4909         * users.txt: Update iwhd's URL.
4910
4911 2011-02-13  Bruno Haible  <bruno@clisp.org>
4912
4913         Consistent macro naming for macros that use GCC __attribute__.
4914         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
4915         _ATTRIBUTE_NONNULL_.
4916         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
4917         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
4918         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
4919         ATTRIBUTE_DEPRECATED.
4920         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
4921         ATTRIBUTE_NORETURN.
4922         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4923         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4924         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4925         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
4926         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
4927         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
4928         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
4929         ATTRIBUTE_SENTINEL.
4930         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
4931         ATTRIBUTE_RETURN_CHECK.
4932         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
4933         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
4934         ATTRIBUTE_NORETURN.
4935         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
4936         Reported by Paul Eggert.
4937
4938 2011-02-13  Bruno Haible  <bruno@clisp.org>
4939
4940         Don't interfere with a program's definition of __attribute__.
4941         * lib/argp.h (__attribute__): Remove definition.
4942         (_GL_ATTRIBUTE_FORMAT): New macro.
4943         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
4944         * lib/argp-fmtstream.h (__attribute__): Remove definition.
4945         (_GL_ATTRIBUTE_FORMAT): New macro.
4946         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
4947         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
4948         GCC 3 or newer.
4949         * lib/error.h (__attribute__): Remove definition.
4950         (_GL_ATTRIBUTE_FORMAT): New macro.
4951         (error, error_at_line): Use it.
4952         * lib/hash.h (__attribute__): Remove definition.
4953         (ATTRIBUTE_WUR): Update definition. Define always.
4954         * lib/openat.h (__attribute__): Remove definition.
4955         (ATTRIBUTE_NORETURN): Update definition. Define always.
4956         * lib/sigpipe-die.h (__attribute__): Remove definition.
4957         (ATTRIBUTE_NORETURN): Update definition. Define always.
4958         * lib/vasnprintf.h (__attribute__): Remove definition.
4959         (_GL_ATTRIBUTE_FORMAT): New macro.
4960         (asnprintf, vasnprintf): Use it.
4961         * lib/xalloc.h (__attribute__): Remove definition.
4962         (ATTRIBUTE_NORETURN): Update definition. Define always.
4963         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
4964         * lib/xmemdup0.h (__attribute__): Remove definition.
4965         (ATTRIBUTE_NORETURN): Update definition. Define always.
4966         * lib/xprintf.h (__attribute__): Remove definition.
4967         (_GL_ATTRIBUTE_FORMAT): New macro.
4968         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
4969         * lib/xstrtol.h (__attribute__): Remove definition.
4970         (ATTRIBUTE_NORETURN): Update definition. Define always.
4971         * lib/xvasprintf.h (__attribute__): Remove definition.
4972         (_GL_ATTRIBUTE_FORMAT): New macro.
4973         (xasprintf, xvasprintf): Use it.
4974         * tests/test-argmatch.c (__attribute__): Remove definition.
4975         (ATTRIBUTE_NORETURN): Update definition. Define always.
4976         * tests/test-exclude.c (__attribute__): Remove definition.
4977         (ATTRIBUTE_NORETURN): Update definition. Define always.
4978         Reported by Paul Eggert.
4979
4980 2011-02-13  Bruno Haible  <bruno@clisp.org>
4981
4982         mbrtowc: Add more tests for native Windows platforms.
4983         * tests/test-mbrtowc-w32-1.sh: New file.
4984         * tests/test-mbrtowc-w32-2.sh: New file.
4985         * tests/test-mbrtowc-w32-3.sh: New file.
4986         * tests/test-mbrtowc-w32-4.sh: New file.
4987         * tests/test-mbrtowc-w32-5.sh: New file.
4988         * tests/test-mbrtowc-w32.c: New file.
4989         * modules/mbrtowc-tests (Files): Add them.
4990         (Makefile.am): Arrange to run these tests.
4991         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
4992         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
4993
4994 2011-02-13  Bruno Haible  <bruno@clisp.org>
4995
4996         mbrtowc: Work around native Windows bug.
4997         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
4998         guess when no suitable locale for testing was found.
4999         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
5000
5001 2011-02-13  Bruno Haible  <bruno@clisp.org>
5002
5003         mbsinit: Work around mingw bug.
5004         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
5005         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
5006         Windows.
5007         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
5008
5009 2011-02-13  Bruno Haible  <bruno@clisp.org>
5010
5011         mbsinit: Don't crash for a NULL argument.
5012         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
5013         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
5014
5015 2011-02-13  Bruno Haible  <bruno@clisp.org>
5016
5017         Don't interfere with a program's definition of __attribute__.
5018         * lib/stdio.in.h (__attribute__): Remove definition.
5019         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
5020         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
5021         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
5022         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
5023         * lib/string.in.h (__attribute__): Remove definition.
5024         Reported by Paul Eggert.
5025
5026 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5027
5028         stdlib: don't get in the way of non-GCC __attribute__
5029         See thread starting at
5030         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
5031         Revert previous stdlib change, installing the following instead:
5032         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
5033         to get in the way of a non-GCC compiler that supports __attribute__.
5034         (_GL_ATTRIBUTE_RETURN): New macro.
5035         (_Exit): Use it instead of __attribute__.
5036
5037 2011-02-12  Bruno Haible  <bruno@clisp.org>
5038
5039         quotearg test: Avoid test failure on mingw.
5040         * tests/test-quotearg.sh: Convert the locale identifier from native
5041         Windows syntax to Unix syntax.
5042
5043 2011-02-12  Bruno Haible  <bruno@clisp.org>
5044
5045         setlocale: Prefer gnulib's override over libintl's override.
5046         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
5047         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
5048         GNULIB_defined_setlocale is set.
5049
5050 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
5051
5052         stdlib: support non-GCC __attribute__
5053
5054         Fix a serious and tricky problem encountered when attempting to
5055         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
5056         5.5, but it crashed due to memory corruption on Solaris 10 with
5057         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
5058         bits that are otherwise zero.  This tagging is optional inside
5059         Emacs but is preferred and is used when __attribute__ ((__aligned
5060         (8))) works, as it does with both recent-enough GCC and with Sun C
5061         5.11.  However, Sun C 5.11 is not GCC and does not #define
5062         __GNUC__ and __GNUC_MINOR__.
5063
5064         When I added the getloadavg module to Emacs, it brought in
5065         stdlib.in.h, which contained this fragment:
5066
5067            #ifndef __attribute__
5068            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
5069            #  define __attribute__(Spec)   /* empty */
5070            # endif
5071            #endif
5072
5073         When files that include <stdlib.h> were compiled with Sun C 5.11,
5074         the above code disabled __attribute__ ((__aligned (8))), which
5075         caused variables to not be properly aligned, which eventually led
5076         to the pointer corruption mentioned above.  (This was a bit hard
5077         to diagnose, unfortunately.)
5078
5079         Several "#define __attribute__(X) /* empty */" code snippets need
5080         to be eradicated from Gnulib to work with non-GCC compilers that
5081         support __attribute__.  The Autoconf way to do this is to test for
5082         each kind of attribute that we want support for, and selectively
5083         enable that in source code.
5084
5085         Fix this problem just for stdlib.h, by adding a test for the
5086         __noreturn__ attribute, and change stdlib.in.h to use that test
5087         when needed.  This technique can be easily generalized to the
5088         other *.in.h files and attributes, and a similar technique can be
5089         used for *.h and *.c files.  This patch is enough to solve the
5090         problem for Emacs + getloadavg, and I thought I'd publish it for
5091         feedback before undertaking further, similar fixes in other
5092         modules.
5093
5094         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
5095         because it's not needed for stdlib.h.  It merely substitutes the
5096         value directly into stdlib.h.  We may well need to #define it, or
5097         similar symbols, for other modules, but it's nice to also have an
5098         option to not #define it for applications like Emacs that do not
5099         need it.
5100
5101         * lib/stdlib.in.h (__attribute__): Do not #define.
5102         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
5103         be defined only if the _Exit module is also used.
5104         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
5105         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
5106         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
5107         platforms.
5108         * modules/_Exit (Files): Add m4/attribute.m4.
5109         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
5110         * m4/attribute.m4: New file.
5111
5112 2011-02-12  Bruno Haible  <bruno@clisp.org>
5113
5114         wcsrtombs: Work around bug on native Windows.
5115         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
5116         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
5117         instead of len.
5118         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
5119
5120 2011-02-12  Bruno Haible  <bruno@clisp.org>
5121
5122         mbsrtowcs: Work around bug on native Windows.
5123         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
5124         against mingw bug.
5125         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
5126
5127 2011-02-12  Bruno Haible  <bruno@clisp.org>
5128
5129         Avoid setlocale bugs in tests.
5130         * modules/btowc (Dependencies): Add setlocale.
5131         * modules/c-strcase (Dependencies): Likewise.
5132         * modules/mbmemcasecmp (Dependencies): Likewise.
5133         * modules/mbmemcasecoll (Dependencies): Likewise.
5134         * modules/mbrtowc (Dependencies): Likewise.
5135         * modules/mbscasecmp (Dependencies): Likewise.
5136         * modules/mbscasestr (Dependencies): Likewise.
5137         * modules/mbschr (Dependencies): Likewise.
5138         * modules/mbscspn (Dependencies): Likewise.
5139         * modules/mbsinit (Dependencies): Likewise.
5140         * modules/mbsncasecmp (Dependencies): Likewise.
5141         * modules/mbsnrtowcs (Dependencies): Likewise.
5142         * modules/mbspbrk (Dependencies): Likewise.
5143         * modules/mbspcasecmp (Dependencies): Likewise.
5144         * modules/mbsrchr (Dependencies): Likewise.
5145         * modules/mbsrtowcs (Dependencies): Likewise.
5146         * modules/mbsspn (Dependencies): Likewise.
5147         * modules/mbsstr (Dependencies): Likewise.
5148         * modules/nl_langinfo (Dependencies): Likewise.
5149         * modules/quotearg (Dependencies): Likewise.
5150         * modules/unicase/locale-language (Dependencies): Likewise.
5151         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
5152         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
5153         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
5154         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
5155         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
5156         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
5157         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
5158         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
5159         * modules/vasnprintf-posix (Dependencies): Likewise.
5160         * modules/wcrtomb (Dependencies): Likewise.
5161         * modules/wcsnrtombs (Dependencies): Likewise.
5162         * modules/wcsrtombs (Dependencies): Likewise.
5163
5164 2011-02-12  Bruno Haible  <bruno@clisp.org>
5165
5166         setlocale: Workaround native Windows bug.
5167         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
5168         succeeds but sets LC_CTYPE to "C", report a failure.
5169         * tests/test-setlocale2.sh: New file.
5170         * tests/test-setlocale2.c: New file.
5171         * modules/setlocale-tests (Files): Add the new files.
5172         (Makefile.am): Enable test-setlocale2.sh test.
5173         * doc/posix-functions/setlocale.texi: Mention workaround.
5174
5175 2011-02-11  Bruno Haible  <bruno@clisp.org>
5176
5177         Tests for module 'setlocale'.
5178         * modules/setlocale-tests: New file.
5179         * tests/test-setlocale1.sh: New file.
5180         * tests/test-setlocale1.c: New file.
5181
5182         New module 'setlocale'.
5183         * lib/locale.in.h (setlocale): New declaration.
5184         * lib/setlocale.c: New file, based on
5185         gettext/gettext-runtime/intl/setlocale.c.
5186         * m4/setlocale.m4: New file.
5187         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
5188         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
5189         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
5190         REPLACE_SETLOCALE.
5191         * modules/setlocale: New file.
5192         * tests/test-locale-c++.cc: Test the declaration of setlocale.
5193         * doc/posix-functions/setlocale.texi: Mention the new module.
5194
5195 2011-02-11  Bruno Haible  <bruno@clisp.org>
5196
5197         Prepare for locale dependent tests on mingw.
5198         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
5199         because it has the wrong locale encoding.
5200         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
5201         French_France.1252 instead of "fr".
5202         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
5203         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
5204         because it has the wrong locale encoding.
5205         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
5206         native Windows, try Turkish_Turkey.65001.
5207         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
5208         Chinese_China.54936.
5209
5210         Prepare for locale dependent tests on mingw.
5211         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
5212         differently.
5213         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
5214         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
5215         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
5216         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
5217
5218 2011-02-11  Eric Blake  <eblake@redhat.com>
5219
5220         strptime: avoid compiler warnings
5221         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
5222         compiler warnings about dead code.
5223         Reported by Daniel P. Berrange.
5224
5225 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
5226
5227         doc: update users.txt
5228         * users.txt: Add rcs.
5229
5230 2011-02-10  John W. Eaton  <jwe@gnu.org>
5231
5232         doc: update users.txt
5233         * users.txt: Add octave.
5234
5235 2011-02-10  Jim Meyering  <meyering@redhat.com>
5236
5237         doc: update users.txt
5238         * users.txt: Add iwhd.
5239
5240 2011-02-09  Bruno Haible  <bruno@clisp.org>
5241
5242         gnulib-tool: Make copyright notice adjustment more robust.
5243         * gnulib-tool (func_import): In sed_transform_main_lib_file,
5244         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
5245         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
5246         License".
5247         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
5248
5249 2011-02-06  Bruno Haible  <bruno@clisp.org>
5250
5251         New module 'towctrans'.
5252         * modules/towctrans: New file.
5253         * lib/wctype.in.h (towctrans): New declaration.
5254         * lib/towctrans.c: New file.
5255         * lib/towctrans-impl.h: New file.
5256         * m4/towctrans.m4: New file.
5257         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
5258         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
5259         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
5260         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
5261         * doc/posix-functions/towctrans.texi: Mention the new module.
5262
5263 2011-02-06  Bruno Haible  <bruno@clisp.org>
5264
5265         New module 'wctrans'.
5266         * modules/wctrans: New file.
5267         * lib/wctype.in.h (wctrans): New declaration.
5268         * lib/wctrans.c: New file.
5269         * lib/wctrans-impl.h: New file.
5270         * m4/wctrans.m4: New file.
5271         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
5272         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
5273         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
5274         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
5275         * doc/posix-functions/wctrans.texi: Mention the new module.
5276
5277 2011-02-06  Bruno Haible  <bruno@clisp.org>
5278
5279         New module 'iswctype'.
5280         * modules/iswctype: New file.
5281         * lib/wctype.in.h (iswctype): New declaration.
5282         * lib/iswctype.c: New file.
5283         * lib/iswctype-impl.h: New file.
5284         * m4/iswctype.m4: New file.
5285         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
5286         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
5287         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
5288         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
5289         * doc/posix-functions/iswctype.texi: Mention the new module and the
5290         HP-UX 11.00 problem.
5291
5292 2011-02-06  Bruno Haible  <bruno@clisp.org>
5293
5294         New module 'wctype'.
5295         * modules/wctype: Change to represent the wctype() substitute.
5296         * lib/wctype.in.h (wctype): New declaration.
5297         * lib/wctype.c: New file.
5298         * lib/wctype-impl.h: New file.
5299         * m4/wctype.m4: New file.
5300         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
5301         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
5302         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
5303         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
5304         * doc/posix-functions/wctype.texi: Mention the new module and the
5305         HP-UX 11.00 problem.
5306
5307 2011-02-06  Bruno Haible  <bruno@clisp.org>
5308
5309         wctype-h: Ensure wctype_t and wctrans_t are defined.
5310         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
5311         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5312         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
5313         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
5314         HAVE_WCTRANS_T.
5315         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
5316
5317 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5318
5319         flock: fix license typo
5320
5321         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
5322         omitted.
5323
5324 2011-02-08  Bruno Haible  <bruno@clisp.org>
5325
5326         Split large sed scripts, for HP-UX sed.
5327         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
5328         to avoid HP-UX limit of 99 commands, in the near future.
5329         * modules/stdlib (Makefile.am): Likewise.
5330         * modules/unistd (Makefile.am): Likewise.
5331         * modules/wchar (Makefile.am): Likewise.
5332         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5333         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
5334         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
5335
5336 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5337             Bruno Haible  <bruno@clisp.org>
5338
5339         stdlib: improve random_r modularization
5340         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
5341         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
5342         you also need the random_r module to get this material right.
5343         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
5344         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
5345         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
5346
5347 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
5348
5349         stdlib: don't depend on stdint
5350         * lib/stdlib.in.h: Don't include <stdint.h> merely because
5351         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
5352         be independent of whether stdint.h is needed.
5353         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
5354         here, instead of ...
5355         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
5356         struct random_data should be using the random_r module, not just
5357         the stdlib module (which wouldn't make sense: what package needs
5358         just struct random_data without also needing random_r?).
5359         * modules/stdlib (Depends-on): Remove stdint.
5360
5361         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
5362         See the thread rooted at
5363         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
5364         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
5365         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
5366         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
5367         __VMS)); previously it was always included (via fcntl--.h).
5368         (getloadavg): Do not use c_strtod.  Instead, approximate it by
5369         hand; this is good enough for load averages.  Also, do not use
5370         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
5371         flags directly if available and don't bother otherwise.  (Packages
5372         that need the extra reliability should use the modules that define
5373         these flags on older platforms that lack them.)
5374         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
5375         fcntl-safer.
5376
5377 2011-02-08  Jim Meyering  <meyering@redhat.com>
5378
5379         di-set.h, ino-map.h: add multiple-inclusion guard
5380         Technically, the guard is required only for ino-map.h, due to its
5381         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
5382         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
5383         * lib/ino-map.h: Likewise.
5384
5385 2011-02-06  Bruno Haible  <bruno@clisp.org>
5386
5387         iswblank: Ensure declaration on glibc systems.
5388         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
5389         * modules/iswblank (Dependencies): Add 'extensions'.
5390         * doc/posix-functions/iswblank.texi: Document the glibc problem.
5391
5392 2011-02-06  Bruno Haible  <bruno@clisp.org>
5393
5394         New module 'iswblank'.
5395         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
5396         * modules/iswblank: New file.
5397         * modules/wctype-h (Files): Remove lib/iswblank.c.
5398         (Makefile.am): Substitute GNULIB_ISWBLANK.
5399         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
5400         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
5401         (gl_WCTYPE_H_DEFAULTS): New macro.
5402         (gl_WCTYPE_H): Require it. Remove iswblank related code.
5403         * modules/iswblank-tests: New file.
5404         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
5405         * tests/test-wctype-h.c (main): Remove iswblank tests.
5406         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
5407         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
5408         of 'wctype-h'.
5409         * NEWS: Mention the change.
5410         * modules/mbchar (Depends-on): Add iswblank.
5411
5412 2011-02-08  Bruno Haible  <bruno@clisp.org>
5413
5414         di-set tests: Refactor.
5415         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
5416         unnecessary includes.
5417         (ASSERT): Remove macro.
5418         (main): Make C90 compliant by avoiding variable declaration after
5419         statement.
5420         * modules/di-set-tests (Files): Add tests/macros.h.
5421
5422 2011-02-08  Bruno Haible  <bruno@clisp.org>
5423
5424         ino-map tests: Refactor.
5425         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
5426         unnecessary includes.
5427         (ASSERT): Remove macro.
5428         (main): Make C90 compliant by avoiding variable declaration after
5429         statement.
5430         * modules/ino-map-tests (Files): Add tests/macros.h.
5431
5432 2011-02-08  Jim Meyering  <meyering@redhat.com>
5433
5434         di-set: add "const" to a cast
5435         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
5436         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
5437
5438 2011-02-06  Bruno Haible  <bruno@clisp.org>
5439
5440         Rename module 'wctype' to 'wctype-h'.
5441         * modules/wctype-h: Renamed from modules/wctype.
5442         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
5443         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
5444         (Files, Depends-on, Makefile.am): Update.
5445         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
5446         (Files, Makefile.am): Update.
5447         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
5448         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
5449         * doc/posix-headers/wctype.texi: Update.
5450         * doc/posix-functions/iswalnum.texi: Update.
5451         * doc/posix-functions/iswalpha.texi: Update.
5452         * doc/posix-functions/iswblank.texi: Update.
5453         * doc/posix-functions/iswcntrl.texi: Update.
5454         * doc/posix-functions/iswdigit.texi: Update.
5455         * doc/posix-functions/iswgraph.texi: Update.
5456         * doc/posix-functions/iswlower.texi: Update.
5457         * doc/posix-functions/iswprint.texi: Update.
5458         * doc/posix-functions/iswpunct.texi: Update.
5459         * doc/posix-functions/iswspace.texi: Update.
5460         * doc/posix-functions/iswupper.texi: Update.
5461         * doc/posix-functions/iswxdigit.texi: Update.
5462         * doc/posix-functions/towlower.texi: Update.
5463         * doc/posix-functions/towupper.texi: Update.
5464         * NEWS: Mention the change.
5465         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
5466         * modules/mbchar (Dependencies): Likewise.
5467         * modules/mbswidth (Dependencies): Likewise.
5468         * modules/quotearg (Dependencies): Likewise.
5469         * modules/regex (Dependencies): Likewise.
5470         * modules/wcscasecmp (Dependencies): Likewise.
5471         * modules/wcsncasecmp (Dependencies): Likewise.
5472         * modules/wcwidth (Dependencies): Likewise.
5473
5474 2011-02-06  Bruno Haible  <bruno@clisp.org>
5475
5476         New module 'wcswidth'.
5477         * modules/wcswidth: New file.
5478         * lib/wchar.in.h (wcswidth): New declaration.
5479         * lib/wcswidth.c: New file.
5480         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
5481         * m4/wcswidth.m4: New file.
5482         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
5483         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
5484         REPLACE_WCSWIDTH.
5485         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
5486         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
5487         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
5488         * doc/posix-functions/wcswidth.texi: Mention the new module.
5489
5490 2011-02-06  Bruno Haible  <bruno@clisp.org>
5491
5492         New module 'wcstok'.
5493         * modules/wcstok: New file.
5494         * lib/wchar.in.h (wcstok): New declaration.
5495         * lib/wcstok.c: New file.
5496         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
5497         * m4/wcstok.m4: New file.
5498         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
5499         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
5500         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
5501         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
5502         * doc/posix-functions/wcstok.texi: Mention the new module.
5503
5504 2011-02-06  Bruno Haible  <bruno@clisp.org>
5505
5506         New module 'wcsstr'.
5507         * modules/wcsstr: New file.
5508         * lib/wchar.in.h (wcsstr): New declaration.
5509         * lib/wcsstr.c: New file.
5510         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
5511         * m4/wcsstr.m4: New file.
5512         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
5513         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
5514         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
5515         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
5516         * doc/posix-functions/wcsstr.texi: Mention the new module.
5517
5518 2011-02-06  Bruno Haible  <bruno@clisp.org>
5519
5520         New module 'wcspbrk'.
5521         * modules/wcspbrk: New file.
5522         * lib/wchar.in.h (wcspbrk): New declaration.
5523         * lib/wcspbrk.c: New file.
5524         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
5525         * m4/wcspbrk.m4: New file.
5526         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
5527         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
5528         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
5529         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
5530         * doc/posix-functions/wcspbrk.texi: Mention the new module.
5531
5532 2011-02-06  Bruno Haible  <bruno@clisp.org>
5533
5534         New module 'wcsspn'.
5535         * modules/wcsspn: New file.
5536         * lib/wchar.in.h (wcsspn): New declaration.
5537         * lib/wcsspn.c: New file.
5538         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
5539         * m4/wcsspn.m4: New file.
5540         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
5541         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
5542         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
5543         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
5544         * doc/posix-functions/wcsspn.texi: Mention the new module.
5545
5546 2011-02-06  Bruno Haible  <bruno@clisp.org>
5547
5548         New module 'wcscspn'.
5549         * modules/wcscspn: New file.
5550         * lib/wchar.in.h (wcscspn): New declaration.
5551         * lib/wcscspn.c: New file.
5552         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
5553         * m4/wcscspn.m4: New file.
5554         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
5555         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
5556         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
5557         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
5558         * doc/posix-functions/wcscspn.texi: Mention the new module.
5559
5560 2011-02-06  Bruno Haible  <bruno@clisp.org>
5561
5562         New module 'wcsrchr'.
5563         * modules/wcsrchr: New file.
5564         * lib/wchar.in.h (wcsrchr): New declaration.
5565         * lib/wcsrchr.c: New file.
5566         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
5567         * m4/wcsrchr.m4: New file.
5568         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
5569         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
5570         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
5571         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
5572         * doc/posix-functions/wcsrchr.texi: Mention the new module.
5573
5574 2011-02-06  Bruno Haible  <bruno@clisp.org>
5575
5576         New module 'wcschr'.
5577         * modules/wcschr: New file.
5578         * lib/wchar.in.h (wcschr): New declaration.
5579         * lib/wcschr.c: New file.
5580         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
5581         * m4/wcschr.m4: New file.
5582         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
5583         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
5584         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
5585         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
5586         * doc/posix-functions/wcschr.texi: Mention the new module.
5587
5588 2011-02-06  Bruno Haible  <bruno@clisp.org>
5589
5590         New module 'wcsdup'.
5591         * modules/wcsdup: New file.
5592         * lib/wchar.in.h (wcsdup): New declaration.
5593         * lib/wcsdup.c: New file.
5594         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
5595         * m4/wcsdup.m4: New file.
5596         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
5597         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
5598         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
5599         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
5600         * doc/posix-functions/wcsdup.texi: Mention the new module.
5601
5602 2011-02-06  Bruno Haible  <bruno@clisp.org>
5603
5604         New module 'wcsxfrm'.
5605         * modules/wcsxfrm: New file.
5606         * lib/wchar.in.h (wcsxfrm): New declaration.
5607         * lib/wcsxfrm.c: New file.
5608         * lib/wcsxfrm-impl.h: New file.
5609         * m4/wcsxfrm.m4: New file.
5610         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
5611         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
5612         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
5613         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
5614         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
5615
5616 2011-02-06  Bruno Haible  <bruno@clisp.org>
5617
5618         New module 'wcscoll'.
5619         * modules/wcscoll: New file.
5620         * lib/wchar.in.h (wcscoll): New declaration.
5621         * lib/wcscoll.c: New file.
5622         * lib/wcscoll-impl.h: New file.
5623         * m4/wcscoll.m4: New file.
5624         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
5625         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
5626         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
5627         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
5628         * doc/posix-functions/wcscoll.texi: Mention the new module.
5629
5630 2011-02-06  Bruno Haible  <bruno@clisp.org>
5631
5632         New module 'wcsncasecmp'.
5633         * modules/wcsncasecmp: New file.
5634         * lib/wchar.in.h (wcsncasecmp): New declaration.
5635         * lib/wcsncasecmp.c: New file.
5636         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
5637         * m4/wcsncasecmp.m4: New file.
5638         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
5639         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
5640         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
5641         HAVE_WCSNCASECMP.
5642         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
5643         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
5644
5645 2011-02-06  Bruno Haible  <bruno@clisp.org>
5646
5647         New module 'wcscasecmp'.
5648         * modules/wcscasecmp: New file.
5649         * lib/wchar.in.h (wcscasecmp): New declaration.
5650         * lib/wcscasecmp.c: New file.
5651         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
5652         * m4/wcscasecmp.m4: New file.
5653         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
5654         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
5655         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
5656         HAVE_WCSCASECMP.
5657         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
5658         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
5659
5660 2011-02-05  Bruno Haible  <bruno@clisp.org>
5661
5662         New module 'wcsncmp'.
5663         * modules/wcsncmp: New file.
5664         * lib/wchar.in.h (wcsncmp): New declaration.
5665         * lib/wcsncmp.c: New file.
5666         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
5667         * m4/wcsncmp.m4: New file.
5668         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
5669         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
5670         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
5671         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
5672         * doc/posix-functions/wcsncmp.texi: Mention the new module.
5673
5674 2011-02-05  Bruno Haible  <bruno@clisp.org>
5675
5676         New module 'wcscmp'.
5677         * modules/wcscmp: New file.
5678         * lib/wchar.in.h (wcscmp): New declaration.
5679         * lib/wcscmp.c: New file.
5680         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
5681         * m4/wcscmp.m4: New file.
5682         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
5683         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
5684         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
5685         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
5686         * doc/posix-functions/wcscmp.texi: Mention the new module.
5687
5688 2011-02-05  Bruno Haible  <bruno@clisp.org>
5689
5690         New module 'wcsncat'.
5691         * modules/wcsncat: New file.
5692         * lib/wchar.in.h (wcsncat): New declaration.
5693         * lib/wcsncat.c: New file.
5694         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
5695         * m4/wcsncat.m4: New file.
5696         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
5697         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
5698         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
5699         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
5700         * doc/posix-functions/wcsncat.texi: Mention the new module.
5701
5702 2011-02-05  Bruno Haible  <bruno@clisp.org>
5703
5704         New module 'wcscat'.
5705         * modules/wcscat: New file.
5706         * lib/wchar.in.h (wcscat): New declaration.
5707         * lib/wcscat.c: New file.
5708         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
5709         * m4/wcscat.m4: New file.
5710         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
5711         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
5712         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
5713         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
5714         * doc/posix-functions/wcscat.texi: Mention the new module.
5715
5716 2011-02-05  Bruno Haible  <bruno@clisp.org>
5717
5718         New module 'wcpncpy'.
5719         * modules/wcpncpy: New file.
5720         * lib/wchar.in.h (wcpncpy): New declaration.
5721         * lib/wcpncpy.c: New file.
5722         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
5723         * m4/wcpncpy.m4: New file.
5724         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
5725         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
5726         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
5727         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
5728         * doc/posix-functions/wcpncpy.texi: Mention the new module.
5729
5730 2011-02-05  Bruno Haible  <bruno@clisp.org>
5731
5732         New module 'wcsncpy'.
5733         * modules/wcsncpy: New file.
5734         * lib/wchar.in.h (wcsncpy): New declaration.
5735         * lib/wcsncpy.c: New file.
5736         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
5737         * m4/wcsncpy.m4: New file.
5738         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
5739         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
5740         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
5741         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
5742         * doc/posix-functions/wcsncpy.texi: Mention the new module.
5743
5744 2011-02-05  Bruno Haible  <bruno@clisp.org>
5745
5746         New module 'wcpcpy'.
5747         * modules/wcpcpy: New file.
5748         * lib/wchar.in.h (wcpcpy): New declaration.
5749         * lib/wcpcpy.c: New file.
5750         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
5751         * m4/wcpcpy.m4: New file.
5752         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
5753         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
5754         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
5755         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
5756         * doc/posix-functions/wcpcpy.texi: Mention the new module.
5757
5758 2011-02-05  Bruno Haible  <bruno@clisp.org>
5759
5760         New module 'wcscpy'.
5761         * modules/wcscpy: New file.
5762         * lib/wchar.in.h (wcscpy): New declaration.
5763         * lib/wcscpy.c: New file.
5764         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
5765         * m4/wcscpy.m4: New file.
5766         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
5767         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
5768         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
5769         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
5770         * doc/posix-functions/wcscpy.texi: Mention the new module.
5771
5772 2011-02-05  Bruno Haible  <bruno@clisp.org>
5773
5774         New module 'wcsnlen'.
5775         * modules/wcsnlen: New file.
5776         * lib/wchar.in.h (wcsnlen): New declaration.
5777         * lib/wcsnlen.c: New file.
5778         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
5779         * m4/wcsnlen.m4: New file.
5780         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
5781         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
5782         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
5783         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
5784         * doc/posix-functions/wcsnlen.texi: Mention the new module.
5785
5786 2011-02-05  Bruno Haible  <bruno@clisp.org>
5787
5788         New module 'wcslen'.
5789         * modules/wcslen: New file.
5790         * lib/wchar.in.h (wcslen): New declaration.
5791         * lib/wcslen.c: New file.
5792         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
5793         * m4/wcslen.m4: New file.
5794         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
5795         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
5796         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
5797         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
5798         * doc/posix-functions/wcslen.texi: Mention the new module.
5799
5800 2011-02-05  Bruno Haible  <bruno@clisp.org>
5801
5802         New module 'wmemset'.
5803         * modules/wmemset: New file.
5804         * lib/wchar.in.h (wmemset): New declaration.
5805         * lib/wmemset.c: New file.
5806         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
5807         * m4/wmemset.m4: New file.
5808         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
5809         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
5810         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
5811         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
5812         * doc/posix-functions/wmemset.texi: Mention the new module.
5813
5814 2011-02-05  Bruno Haible  <bruno@clisp.org>
5815
5816         New module 'wmemmove'.
5817         * modules/wmemmove: New file.
5818         * lib/wchar.in.h (wmemmove): New declaration.
5819         * lib/wmemmove.c: New file.
5820         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
5821         * m4/wmemmove.m4: New file.
5822         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
5823         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
5824         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
5825         HAVE_WMEMMOVE.
5826         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
5827         * doc/posix-functions/wmemmove.texi: Mention the new module.
5828
5829 2011-02-05  Bruno Haible  <bruno@clisp.org>
5830
5831         New module 'wmemcpy'.
5832         * modules/wmemcpy: New file.
5833         * lib/wchar.in.h (wmemcpy): New declaration.
5834         * lib/wmemcpy.c: New file.
5835         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
5836         * m4/wmemcpy.m4: New file.
5837         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
5838         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
5839         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
5840         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
5841         * doc/posix-functions/wmemcpy.texi: Mention the new module.
5842
5843 2011-02-05  Bruno Haible  <bruno@clisp.org>
5844
5845         New module 'wmemcmp'.
5846         * modules/wmemcmp: New file.
5847         * lib/wchar.in.h (wmemcmp): New declaration.
5848         * lib/wmemcmp.c: New file.
5849         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
5850         * m4/wmemcmp.m4: New file.
5851         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
5852         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
5853         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
5854         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
5855         * doc/posix-functions/wmemcmp.texi: Mention the new module.
5856
5857 2011-02-07  Jim Meyering  <meyering@redhat.com>
5858
5859         di-set, ino-map: new modules, from coreutils
5860         * lib/di-set.c: New file.
5861         * lib/di-set.h: Likewise.
5862         * lib/ino-map.c: Likewise.
5863         * lib/ino-map.h: Likewise.
5864         * modules/di-set: Likewise.
5865         * modules/di-set-tests: Likewise.
5866         * modules/ino-map: Likewise.
5867         * modules/ino-map-tests: Likewise.
5868         * tests/test-di-set.c: Likewise.
5869         * tests/test-ino-map.c: Likewise.
5870
5871 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
5872
5873         getloadavg: merge minor changes from Emacs
5874
5875         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
5876         (getloadavg): Use memset, not bzero.
5877
5878         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
5879         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
5880         clash (bug#86).
5881
5882 2010-11-14  Bruno Haible  <bruno@clisp.org>
5883
5884         Allow multiple gnulib generated replacements to coexist.
5885         * lib/getopt.in.h (struct option): Avoid identical redefinition.
5886         * lib/inttypes.in.h (imaxdiv_t): Likewise.
5887         * lib/langinfo.in.h (nl_item): Likewise.
5888         * lib/math.in.h (_NaN, NAN): Likewise.
5889         * lib/netdb.in.h (struct addrinfo): Likewise.
5890         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
5891         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
5892         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
5893         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
5894         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
5895         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
5896         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
5897         pthread_mutexattr_init, pthread_mutexattr_settype,
5898         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
5899         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
5900         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
5901         pthread_spin_trylock, pthread_spin_unlock): Likewise.
5902         * lib/sched.in.h (struct sched_param): Likewise.
5903         * lib/se-selinux.in.h (security_class_t, security_context_t,
5904         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
5905         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
5906         lsetfilecon, fsetfilecon, security_check_context,
5907         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
5908         Likewise.
5909         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
5910         Likewise.
5911         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
5912         _gl_function_taking_int_returning_void_t, union sigval,
5913         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
5914         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
5915         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
5916         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
5917         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
5918         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
5919         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
5920         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
5921         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
5922         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
5923         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
5924         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
5925         socklen_t, rpl_fd_isset): Likewise.
5926         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
5927         * lib/sys_time.in.h (struct timeval): Likewise.
5928         * lib/sys_times.in.h (struct tms): Likewise.
5929         * lib/sys_utsname.in.h (struct utsname):
5930         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
5931         * lib/unistd.in.h (getpagesize): Likewise.
5932         * lib/wchar.in.h (mbstate_t): Likewise.
5933         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
5934         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
5935         towlower, towupper): Likewise.
5936         Reported by Sam Steingold <sds@gnu.org>.
5937
5938 2011-02-05  Eric Blake  <eblake@redhat.com>
5939
5940         unsetenv: work around Haiku issues
5941         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
5942         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
5943
5944 2010-12-30  Bruce Korb  <bkorb@gnu.org>
5945
5946         libposix: avoid calling error() within libposix
5947         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
5948         is defined.
5949
5950 2011-02-05  Eric Blake  <eblake@redhat.com>
5951
5952         strerror_r-posix: port to cygwin
5953         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
5954         implementation.
5955         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
5956         * tests/test-strerror_r.c (main): Fix test.
5957         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5958         issue.
5959
5960 2011-02-05  Bruno Haible  <bruno@clisp.org>
5961
5962         New module 'wmemchr'.
5963         * modules/wmemchr: New file.
5964         * lib/wchar.in.h (wmemchr): New declaration.
5965         * lib/wmemchr.c: New file.
5966         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
5967         * m4/wmemchr.m4: New file.
5968         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
5969         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
5970         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
5971         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
5972         * doc/posix-functions/wmemchr.texi: Mention the new module.
5973
5974 2011-02-04  Eric Blake  <eblake@redhat.com>
5975
5976         fdopendir: detect FreeBSD bug
5977         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
5978         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
5979
5980 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
5981
5982         stdbool: do not define HAVE_STDBOOL_H
5983         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
5984         AC_HEADER_STDBOOL.  All uses changed.  Do not define
5985         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
5986         imported from the latest Autoconf git.  It was motivated by Emacs,
5987         which uses gnulib but does not need HAVE_STDBOOL_H.
5988
5989 2011-02-04  Bruno Haible  <bruno@clisp.org>
5990
5991         wcsnrtombs: Prepare for new module wwcsnrtombs.
5992         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
5993         * lib/wcsnrtombs.c: Include it.
5994         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
5995
5996         wcsrtombs: Prepare for new module wwcsrtombs.
5997         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
5998         * lib/wcsrtombs.c: Include it.
5999         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
6000
6001         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
6002         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
6003         * lib/mbsnrtowcs.c: Include it.
6004         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
6005
6006         mbsrtowcs: Prepare for new module mbsrtowwcs.
6007         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
6008         * lib/mbsrtowcs.c: Include it.
6009         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
6010
6011 2011-02-04  Bruno Haible  <bruno@clisp.org>
6012
6013         vasnprintf: Reduce use of malloc for small format strings.
6014         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
6015         (arguments): Add room for the first 7 arguments.
6016         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
6017         (char_directives, u8_directives, u16_directives, u32_directives): Add
6018         room for the first 7 directives.
6019         * lib/printf-parse.c: Include <string.h>.
6020         (PRINTF_PARSE): Change memory handling code so that it uses the first
6021         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
6022         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
6023         Reported by Pádraig Brady <P@draigbrady.com>.
6024
6025 2011-01-31  Eric Blake  <eblake@redhat.com>
6026
6027         dup2: work around Haiku bug
6028         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
6029         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
6030         * doc/posix-functions/dup2.texi (dup2): Document the bug.
6031         * tests/test-dup2.c (main): Enhance test.
6032
6033 2011-01-31  Simon Josefsson  <simon@josefsson.org>
6034
6035         doc: off_t is not available in eglibc 2.11.2 stdio.h.
6036         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
6037         declared by eglibc 2.11.2.
6038         * lib/stdio.in.h: Likewise.
6039
6040 2011-01-31  Eric Blake  <eblake@redhat.com>
6041
6042         ignore-value: add missing test dependency
6043         * tests/test-ignore-value.c: Revert previous change; stdio.h
6044         provides off_t.
6045         * modules/ignore-value-tests (Depends-on): Add missing dependency.
6046
6047 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
6048
6049         mktime: clarify long_int width checking
6050         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
6051         the top level, to make it clearer that the assumption about
6052         long_int width is being checked.  See
6053         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
6054
6055 2011-01-30  Simon Josefsson  <simon@josefsson.org>
6056
6057         ignore-value: Fix self-test.
6058         * tests/test-ignore-value.c: Include sys/types.h for off_t.
6059
6060 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
6061
6062         TYPE_MAXIMUM: avoid theoretically undefined behavior
6063         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
6064         negative number, which the C Standard says has undefined behavior.
6065         In practice this is not a problem, but might as well do it by the book.
6066         Reported by Rich Felker and Eric Blake; see
6067         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
6068         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
6069         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
6070         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6071         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
6072         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6073         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
6074
6075         mktime: #undef mktime before #defining it
6076         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
6077
6078         mktime: systematically normalize tm_isdst comparisons
6079         * lib/mktime.c (isdst_differ): New function.
6080         (__mktime_internal): Use it systematically for all isdst comparisons.
6081         This completes the fix for libc BZ #6723, and removes the need for
6082         normalizing tm_isdst.  See
6083         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
6084         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
6085
6086         mktime: fix some integer overflow issues and sidestep the rest
6087
6088         This was prompted by a bug report by Benjamin Lindner for MinGW
6089         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
6090         His bug is due to signed integer overflow (0 - INT_MIN), and I
6091         I scanned through mktime.c looking for other integer overflow
6092         problems, fixing all the bugs I found.
6093
6094         Although the C Standard says the resulting code is still not safe
6095         in the presence of integer overflow, in practice it should be good
6096         enough for all real-world two's-complement implementations, except
6097         for debugging environments that deliberately trap on integer
6098         overflow (e.g., gcc -ftrapv).
6099
6100         * lib/mktime.c (WRAPV): New macro.
6101         (SHR): Also check that long_int and time_t shift right in the
6102         usual way, before using the fast-but-unportable method.
6103         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
6104         used.  The code already assumed two's complement, so there's
6105         no need to test for alternatives.  All uses removed.
6106         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
6107         the C standard.  Problem reported by Rich Felker in
6108         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
6109         (twos_complement_arithmetic): Also check long_int and time_t.
6110         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
6111         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
6112         (__mktime_internal): Avoid integer overflow with unary subtraction
6113         in two instances where -1 - X is an adequate replacement for -X,
6114         since the calculations are approximate.
6115
6116 2011-01-29  Eric Blake  <eblake@redhat.com>
6117
6118         mktime: avoid infinite loop
6119         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
6120         type; behavior is still undefined but portable to all known targets.
6121         Reported by Rich Felker.
6122
6123 2011-01-29  Simon Josefsson  <simon@josefsson.org>
6124
6125         rename, unlink, same-inode: Relicense.
6126         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
6127         * modules/unlink (License): Likewise.
6128         * modules/same-inode (License): Likewise.
6129
6130 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
6131
6132         mktime: avoid problems on NetBSD 5 / i386
6133         * lib/mktime.c (long_int): New type.  This works around a problem
6134         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
6135         but time_t is 64 bits, and where I expect the existing code is
6136         wrong in some cases.
6137         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
6138         (ydhms_diff): Bring back the compile-time check for wide-enough
6139         year and yday.
6140
6141         mktime: fix misspelling in comment
6142         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
6143         This merges all recent glibc changes of importance.
6144
6145 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6146
6147         move-if-change: cope with concurrent mv of identical file.
6148         * build-aux/move-if-change (CMPPROG): Accept environment
6149         variable as an override for `cmp'.
6150         (usage): Document CMPPROG.
6151         Adjust comparison to drop stdout.  Cope with failure of mv if
6152         the target file exists and is identical to the source, for
6153         parallel builds.
6154         Report from H.J. Lu against binutils in PR binutils/12283.
6155
6156 2011-01-28  Bruce Korb  <bkorb@gnu.org>
6157
6158         * users.txt: Mention sharutils.
6159
6160 2011-01-28  Simon Josefsson  <simon@josefsson.org>
6161
6162         * users.txt: Mention OATH Toolkit.
6163
6164 2011-01-27  Bruno Haible  <bruno@clisp.org>
6165
6166         Prepare for supporting FreeBSD 10.
6167         * build-aux/config.libpath: Remove handling of freebsd1*.
6168
6169 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
6170
6171         Prepare for supporting FreeBSD 10.
6172         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
6173         match FreeBSD 10.0.
6174
6175 2011-01-27  Bruno Haible  <bruno@clisp.org>
6176
6177         vma-iter, get-rusage-as: Add OpenBSD support.
6178         * modules/vma-iter (configure.ac): Test for mquery.
6179         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
6180         * lib/vma-iter.c: Include <sys/mman.h>.
6181         (vma_iterate): Add an implementation based on mquery().
6182         * lib/resource-ext.h (get_rusage_as): Update comments.
6183         * lib/get-rusage-as.c: Likewise.
6184         * lib/get-rusage-data.c: Likewise.
6185
6186 2011-01-26  Karl Berry  <karl@gnu.org>
6187
6188         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
6189         variables to make it easier to override the makeinfo program used.
6190
6191 2011-01-26  Eric Blake  <eblake@redhat.com>
6192
6193         fcntl: work around Haiku F_DUPFD bugs
6194         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
6195         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
6196         cloexec bit on duplication.
6197         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
6198
6199 2011-01-26  Bruno Haible  <bruno@clisp.org>
6200
6201         Enable memory leak tests on AIX.
6202         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
6203         * tests/test-fprintf-posix3.c (main): Likewise.
6204
6205 2011-01-26  Bruno Haible  <bruno@clisp.org>
6206
6207         Tests for module 'get-rusage-data'.
6208         * modules/get-rusage-data-tests: New file.
6209         * tests/test-get-rusage-data.c: New file.
6210
6211         New module 'get-rusage-data'.
6212         * lib/resource-ext.h (get_rusage_data): New declaration.
6213         * lib/get-rusage-data.c: New file.
6214         * modules/get-rusage-data: New file.
6215
6216 2011-01-25  Bruno Haible  <bruno@clisp.org>
6217
6218         get-rusage-as: Allow for easier testing.
6219         * lib/resource-ext.h (get_rusage_as): Add comment.
6220         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
6221         (main): New function for interactive testing.
6222
6223 2011-01-25  Bruno Haible  <bruno@clisp.org>
6224
6225         vma-iter: Treat Haiku like BeOS.
6226         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
6227         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
6228
6229 2011-01-25  Eric Blake  <eblake@redhat.com>
6230
6231         c-stack: fix regression on cygwin when libsigsegv is present
6232         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
6233
6234 2011-01-24  Bruno Haible  <bruno@clisp.org>
6235
6236         vma-iter: Avoid empty intervals.
6237         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
6238         on an empty interval.
6239
6240 2011-01-24  Jim Meyering  <meyering@redhat.com>
6241
6242         u64: remove unnecessary #include
6243         * lib/u64.h: Don't include <stddef.h>.  It was not used.
6244
6245 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6246
6247         Allow the user to avoid the HAVE_RAW_DECL_* macros.
6248         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
6249
6250 2011-01-23  Bruno Haible  <bruno@clisp.org>
6251
6252         New module 'vma-iter'.
6253         * lib/vma-iter.h: New file.
6254         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
6255         * modules/vma-iter: New file.
6256         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
6257         for get_rusage_as_via_iterator.
6258         (vma_iterate_callback): New function.
6259         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
6260         * modules/get-rusage-as (Depends-on): Add vma-iter.
6261
6262 2011-01-23  Bruno Haible  <bruno@clisp.org>
6263
6264         uninorm: Tweak includes.
6265         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
6266         Reported by Jim Meyering.
6267
6268 2011-01-23  Bruno Haible  <bruno@clisp.org>
6269
6270         get-rusage-as: Improve on NetBSD.
6271         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
6272         /proc, like on FreeBSD.
6273
6274 2011-01-23  Jim Meyering  <meyering@redhat.com>
6275
6276         xreadlink.h: remove unnecessary #include
6277         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
6278
6279         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
6280         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
6281
6282 2011-01-23  Bruno Haible  <bruno@clisp.org>
6283
6284         get-rusage-as: Fix bug.
6285         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
6286         original limit when aborting the first loop.
6287
6288 2011-01-23  Bruno Haible  <bruno@clisp.org>
6289
6290         wctype: Ensure valid C syntax.
6291         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
6292         unconditionally, instead of gl_NEXT_HEADERS conditionally.
6293
6294 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
6295
6296         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
6297         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
6298         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
6299         as they are needed only for configure's test case.
6300         This removes two unnecessary symbols from config.h.
6301
6302         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
6303         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
6304         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
6305         AC_CHECK_HEADERS_ONCE on a header that we also invoke
6306         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
6307         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
6308         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
6309         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6310         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
6311         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6312         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
6313         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6314         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6315         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6316         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6317         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6318         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
6319         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
6320
6321 2011-01-21  Eric Blake  <eblake@redhat.com>
6322
6323         maintainer-makefile: work with older git for submodule check
6324         * top/maint.mk (public-submodule-commit): Rewrite to avoid
6325         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
6326         Reported by Matthias Bolte.
6327
6328         bootstrap: minor portability fixes
6329         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
6330         (usage): Omit leading capital and trailing . on help phrases, per
6331         GNU Coding Standards.
6332         (check_versions, top level): Prefix messages with script name.
6333
6334 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
6335
6336         bootstrap: support --no-git option
6337         * build-aux/bootstrap: Add --no-git option, to be used when
6338         --gnulib-srcdir points to the exact desired checkout.
6339
6340 2011-01-21  Eric Blake  <eblake@redhat.com>
6341
6342         strerror_r-posix: work with glibc 2.13
6343         * lib/strerror_r.c (strerror_r): Fix return type.
6344
6345 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6346             Bruno Haible  <bruno@clisp.org>
6347
6348         uN_strstr: New unit tests.
6349         * modules/unistr/u8-strstr-tests: New file.
6350         * modules/unistr/u16-strstr-tests: New file.
6351         * modules/unistr/u32-strstr-tests: New file.
6352         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
6353         * tests/unistr/test-u8-strstr.c: New file.
6354         * tests/unistr/test-u16-strstr.c: New file.
6355         * tests/unistr/test-u32-strstr.c: New file.
6356
6357 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6358             Bruno Haible  <bruno@clisp.org>
6359
6360         Make uN_strstr functions O(n) worst-case.
6361         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
6362         16-bit and 32-bit unit cases, use the unibyte algorithm from
6363         lib/mbsstr.c.
6364         * lib/unistr/u8-strstr.c: Include <string.h>.
6365         (UNIT_IS_UINT8_T): New macro.
6366         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
6367         (U_STRLEN, U_STRNLEN): New macros.
6368         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
6369         (U_STRLEN, U_STRNLEN): New macros.
6370         * modules/unistr/u8-strstr (Depends-on): Add strstr.
6371         (configure.ac): Update required libunistring version.
6372         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
6373         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
6374         malloca.
6375         (configure.ac): Update required libunistring version.
6376         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
6377         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
6378         malloca.
6379         (configure.ac): Update required libunistring version.
6380
6381 2011-01-21  Pádraig Brady  <P@draigBrady.com>
6382             Bruno Haible  <bruno@clisp.org>
6383
6384         Prepare for faster uN_strstr functions.
6385         * lib/str-kmp.h: Support definable UNITs.
6386         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
6387         needle_len argument.
6388         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
6389         * lib/mbscasestr.c (mbscasestr): Likewise.
6390
6391 2011-01-21  Pádraig Brady <P@draigBrady.com>
6392
6393         malloca-tests: make faster by unsetting MALLOC_PERTURB_
6394         * tests/test-malloca.c (main): Unset the environment variable
6395         to greatly speed up the test.
6396         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
6397         * modules/malloca-tests: Depend on unsetenv.
6398
6399 2011-01-21  Pádraig Brady <P@draigBrady.com>
6400
6401         ignore-value: remove stdint dependency
6402         * lib/ignore-value.h: Remove <stdint.h>
6403         * modules/ignore-value: Remove stdint dependency.
6404
6405 2011-01-21  Jim Meyering  <meyering@redhat.com>
6406
6407         maint.mk: adjust variable name to be consistent with other gl_ vars
6408         * top/maint.mk (gl_public_submodule_commit): Rename the variable
6409         to be lower case.
6410
6411 2011-01-20  Jim Meyering  <meyering@redhat.com>
6412
6413         maint.mk: make "check" depend on public-submodule-commit by default
6414         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
6415
6416 2011-01-20  Bruno Haible  <bruno@clisp.org>
6417
6418         mbfile, mbiter: Complete change from 2008-12-21.
6419         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
6420         * m4/mbiter.m4 (gl_MBITER): Likewise.
6421
6422 2011-01-20  Jim Meyering  <meyering@redhat.com>
6423
6424         init.sh: insert space between each function name and "()"
6425         * tests/init.sh: Make it a little easier to see that a function's
6426         name is "warn_", and not "warn" when looking at the first part of
6427         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
6428
6429 2011-01-20  Jim Meyering  <meyering@redhat.com>
6430
6431         mountlist: clean up code formatting
6432         * lib/mountlist.c (read_file_system_list): Split a long line,
6433         correct bracing style, use NULL in place of "(struct statfs *)0",
6434         don't parenthesize return value, add spaces around "=" and after
6435         ";-in-for-stmt".
6436
6437 2011-01-14  Markus Duft <mduft@gentoo.org>
6438
6439         mountlist: add support for Interix
6440         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
6441         Apply statvfs to all entries of /dev/fs.
6442         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
6443         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
6444
6445 2011-01-20  Jim Meyering  <meyering@redhat.com>
6446
6447         maint.mk: improve the public-submodule-commit rule
6448         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
6449         to suppress printing of its commands... unless V=1.
6450         Add git submodule's --quiet option to suppress printing of e.g.,
6451         "Entering gnulib" output.
6452         "cd" into $(srcdir) before running git submodule.
6453
6454 2011-01-20  Bruno Haible  <bruno@clisp.org>
6455
6456         include_next: Fix bug introduced on 2011-01-18.
6457         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
6458         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
6459         ac_cv_header_... variable if the second argument is not 'check'.
6460         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
6461         gl_NEXT_HEADERS_INTERNAL.
6462
6463 2011-01-20  Bruno Haible  <bruno@clisp.org>
6464
6465         Allow the user to avoid the GNULIB_TEST_* macros.
6466         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
6467         Suggested by Paul Eggert.
6468
6469 2011-01-14  Jim Meyering  <meyering@redhat.com>
6470
6471         bootstrap: avoid failure when there is no .gitmodules file
6472         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
6473         has been assigned to, even when its value is the empty string.
6474         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
6475         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
6476         Reported by John W. Eaton <jwe@gnu.org>.
6477
6478 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
6479
6480         assume <ctype.h>, ..., <time.h> exist
6481         For years gnulib has been assuming the existence of the headers
6482         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
6483         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
6484         them, since they don't appear to be needed.
6485         * README (Portability guidelines): Document this.
6486         * lib/flock.c: Assume <fcntl.h> exists.
6487         * lib/regex_internal.h: Assume <locale.h> exists.
6488         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
6489         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
6490         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
6491         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
6492         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
6493         * m4/regex.m4 (gl_REGEX): Likewise.
6494         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
6495         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
6496         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
6497         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
6498         * tests/test-argp.c: Likewise.
6499         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
6500
6501         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
6502         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
6503         AA_APPLE_UNIVERSAL_BUILD.  See
6504         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
6505         * NEWS: Document this.
6506
6507 2011-01-19  Eric Blake  <eblake@redhat.com>
6508
6509         c-stack: assume stack overflow if SA_SIGINFO unsupported
6510         * lib/c-stack.c (SIGACTION_WORKS): Rename...
6511         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
6512         sigaction will work.
6513         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
6514         behavior match Linux.
6515         * tests/test-c-stack.c (main): Prefer NULL for pointers.
6516
6517         stdbool-tests: accomodate Haiku
6518         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
6519
6520         binary-io: fix O_TEXT on Haiku
6521         * modules/binary-io (Depends-on): Add fcntl-h.
6522         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
6523         than blindly undefining O_TEXT.
6524         Reported by Scott McCreary.
6525
6526 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6527
6528         include_next: do not check for standard headers like stddef.h
6529
6530         I found this problem when modifying Emacs to use gnulib.
6531         I noticed that it added HAVE_STDDEF_H to config.h, even though
6532         gnulib always assumes <stddef.h> exists as per README and this
6533         symbol is unnecessary.
6534         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
6535         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
6536         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
6537         faster for headers like stddef.h that are known to exist.
6538         (gl_CHECK_NEXT_HEADERS): Use it.
6539         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
6540         rather than gl_CHECK_NEXT_HEADERS.
6541         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
6542         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
6543
6544 2011-01-18  Eric Blake  <eblake@redhat.com>
6545
6546         ansi-c++-opt: skip C++ dependency style if C++ is unused
6547         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
6548         tests when we know C++ compilation is not desired.
6549         Reported by Scott McCreary.
6550
6551 2011-01-18  Bruno Haible  <bruno@clisp.org>
6552
6553         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
6554         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
6555         (main): Perform test also when getrlimit and setrlimit don't exist or
6556         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
6557         limiting the address space size using setrlimit, compare the address
6558         space size before and after the the test.
6559         * tests/test-dprintf-posix2.c: Likewise.
6560         * tests/test-fprintf-posix3.sh: Update skip messages.
6561         * tests/test-dprintf-posix2.sh: Likewise.
6562         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
6563         * modules/dprintf-posix-tests (Depends-on): Likewise.
6564         Reported by Bruce Korb <bkorb@gnu.org> and
6565         Gary V. Vaughan <gary@gnu.org>.
6566
6567 2011-01-18  Bruno Haible  <bruno@clisp.org>
6568
6569         get-rusage-as: Improvement for Cygwin.
6570         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
6571         areas that are merely reserved.
6572
6573 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
6574
6575         strftime: remove dependencies on multibyte modules
6576
6577         strftime depended on mbrlen, mbsinit, and wchar, but these modules
6578         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
6579         only if __osf__ is defined, and I suspect OSF doesn't need these
6580         other modules.  If my guess is wrong, we'll need to come up with a
6581         variant of strftime that doesn't need the multibyte modules.
6582
6583         I discovered this problem when attempting modify Emacs to use the
6584         strftime module.  With the previous gnulib, this caused Emacs to
6585         need 31 new files, ranging from lib/config.charset to
6586         m4/wint_t.m4.  This was overkill and I expect would be offputting
6587         to the Emacs maintainers.  After this change, only 6 new files are
6588         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
6589         stdbool.m4, and tm_gmtoff.m4.
6590
6591         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
6592         Suggested by Bruno Haible in
6593         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
6594         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
6595         and do not check for wchar.h.
6596         * modules/strftime (Files): Remove m4/mbstate_t.m4.
6597         (Depends-on): Remove mbrlen, mbsinit, wchar.
6598
6599 2011-01-18  Bruno Haible  <bruno@clisp.org>
6600
6601         Tests for module 'get-rusage-as'.
6602         * modules/get-rusage-as-tests: New file.
6603         * tests/test-get-rusage-as.c: New file.
6604
6605         New module 'get-rusage-as'.
6606         * modules/get-rusage-as: New file.
6607         * lib/resource-ext.h: New file.
6608         * lib/get-rusage-as.c: New file.
6609
6610 2011-01-17  Eric Blake  <eblake@redhat.com>
6611
6612         sigaction: relax license from LGPLv3+ to LGPLv2+
6613         * modules/sigaction (License): Relax to LGPLv2+.
6614
6615 2011-01-14  Bruno Haible  <bruno@clisp.org>
6616
6617         filemode: Make function declarations usable in C++ mode.
6618         * lib/filemode.h: Enclose function declarations in extern "C" block.
6619         Reported by John W. Eaton <jwe@gnu.org>.
6620
6621 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
6622
6623         save-cwd: no longer include "xgetcwd.h"
6624         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
6625         This avoids a compilation failure in projects that use save-cwd
6626         without also using the xgetcwd module.
6627
6628 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6629
6630         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
6631         This is so that a program like Emacs, which needs only dtoastr,
6632         does not have to bother with distributing and compiling ftoastr
6633         and ldtoastr.
6634         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
6635         * modules/dtoastr, modules/ldtoastr: New files.
6636         * modules/ftoastr: Now works just for 'float'.
6637         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
6638         (Makefile.am): Remove ftoastr.h (not needed and no effect),
6639         dtoastr.c, ldtoastr.c.
6640
6641 2011-01-11  Jim Meyering  <meyering@redhat.com>
6642
6643         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
6644         There is no need to work around the lack of the fchdir function,
6645         since gnulib can now provide a replacement when required.
6646         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
6647         * modules/save-cwd (Depends-on): Add fchdir.
6648
6649 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
6650
6651         openat, save-cwd: avoid xmalloc
6652
6653         This removes a direct (but undocumented) dependency of openat on
6654         xalloc, along with an indirect dependency via save-cwd.  It also
6655         removes a dependency of save-cwd on xgetcwd, and thereby
6656         indirectly on xalloc.  This change causes the openat substitute
6657         to fall back on save_cwd when memory is tight, and for save_cwd to
6658         fail instead of dying when memory is tight, but that's good enough.
6659         Problem and initial idea for fix reported by Bastien Roucaries in
6660         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
6661
6662         * lib/openat-proc.c: Include stdlib.h (for malloc), not
6663         xalloc.h (for xmalloc).
6664         (openat_proc_name): Use malloc, not xmalloc.
6665         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
6666         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
6667
6668         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
6669         This avoids heap allocation for file names whose lengths are in
6670         the range 512..1023, with the upper bound increasing to at most
6671         4031 depending on the platform's PATH_MAX.  (We do not want
6672         pathmax.h here as it might supply a non-constant PATH_MAX.)
6673         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
6674         Perhaps they should be moved to malloca.h?
6675         (OPENAT_BUFFER_SIZE): Use them.
6676
6677 2011-01-10  Bruno Haible  <bruno@clisp.org>
6678
6679         doc: Update users.txt.
6680         * users.txt: Add recutils.
6681
6682 2011-01-09  Karl Berry  <karl@gnu.org>
6683
6684         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
6685
6686         * doc/configmake.texi: New file.
6687         * doc/gnulib.texi: Include it.
6688         * modules/configmake: Move documentation from here.
6689
6690 2011-01-09  Bruno Haible  <bruno@clisp.org>
6691
6692         Update to Unicode 6.0.0.
6693         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
6694         (get_lbp): Update for Unicode 6.0.0.
6695         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
6696         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
6697         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
6698         U+11001, U+11038..U+11046. Remove U+06DE.
6699         (uc_width): Fix bounds of planes.
6700         * tests/uniwidth/test-uc_width2.sh: Same updates as in
6701         lib/uniwidth/width.c.
6702         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
6703         trailing whitespace removed.
6704         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
6705         without comments, but with the original copyright notice.
6706         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
6707         * lib/unicase/ignorable.h: Likewise.
6708         * lib/unicase/tocasefold.h: Likewise.
6709         * lib/unicase/tolower.h: Likewise.
6710         * lib/unicase/totitle.h: Likewise.
6711         * lib/unicase/toupper.h: Likewise.
6712         * lib/unictype/bidi_of.h: Likewise.
6713         * lib/unictype/blocks.h: Likewise.
6714         * lib/unictype/categ_C.h: Likewise.
6715         * lib/unictype/categ_Cn.h: Likewise.
6716         * lib/unictype/categ_L.h: Likewise.
6717         * lib/unictype/categ_Ll.h: Likewise.
6718         * lib/unictype/categ_Lm.h: Likewise.
6719         * lib/unictype/categ_Lo.h: Likewise.
6720         * lib/unictype/categ_Lu.h: Likewise.
6721         * lib/unictype/categ_M.h: Likewise.
6722         * lib/unictype/categ_Mc.h: Likewise.
6723         * lib/unictype/categ_Me.h: Likewise.
6724         * lib/unictype/categ_Mn.h: Likewise.
6725         * lib/unictype/categ_N.h: Likewise.
6726         * lib/unictype/categ_Nd.h: Likewise.
6727         * lib/unictype/categ_No.h: Likewise.
6728         * lib/unictype/categ_P.h: Likewise.
6729         * lib/unictype/categ_Po.h: Likewise.
6730         * lib/unictype/categ_S.h: Likewise.
6731         * lib/unictype/categ_Sc.h: Likewise.
6732         * lib/unictype/categ_Sk.h: Likewise.
6733         * lib/unictype/categ_Sm.h: Likewise.
6734         * lib/unictype/categ_So.h: Likewise.
6735         * lib/unictype/categ_of.h: Likewise.
6736         * lib/unictype/combining.h: Likewise.
6737         * lib/unictype/ctype_alnum.h: Likewise.
6738         * lib/unictype/ctype_alpha.h: Likewise.
6739         * lib/unictype/ctype_graph.h: Likewise.
6740         * lib/unictype/ctype_lower.h: Likewise.
6741         * lib/unictype/ctype_print.h: Likewise.
6742         * lib/unictype/ctype_punct.h: Likewise.
6743         * lib/unictype/ctype_upper.h: Likewise.
6744         * lib/unictype/decdigit.h: Likewise.
6745         * lib/unictype/digit.h: Likewise.
6746         * lib/unictype/numeric.h: Likewise.
6747         * lib/unictype/pr_alphabetic.h: Likewise.
6748         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
6749         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
6750         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
6751         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
6752         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
6753         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
6754         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
6755         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
6756         * lib/unictype/pr_case_ignorable.h: Likewise.
6757         * lib/unictype/pr_cased.h: Likewise.
6758         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
6759         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
6760         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
6761         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
6762         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
6763         * lib/unictype/pr_combining.h: Likewise.
6764         * lib/unictype/pr_composite.h: Likewise.
6765         * lib/unictype/pr_currency_symbol.h: Likewise.
6766         * lib/unictype/pr_decimal_digit.h: Likewise.
6767         * lib/unictype/pr_deprecated.h: Likewise.
6768         * lib/unictype/pr_format_control.h: Likewise.
6769         * lib/unictype/pr_grapheme_base.h: Likewise.
6770         * lib/unictype/pr_grapheme_extend.h: Likewise.
6771         * lib/unictype/pr_grapheme_link.h: Likewise.
6772         * lib/unictype/pr_id_continue.h: Likewise.
6773         * lib/unictype/pr_id_start.h: Likewise.
6774         * lib/unictype/pr_ideographic.h: Likewise.
6775         * lib/unictype/pr_lowercase.h: Likewise.
6776         * lib/unictype/pr_math.h: Likewise.
6777         * lib/unictype/pr_numeric.h: Likewise.
6778         * lib/unictype/pr_other_alphabetic.h: Likewise.
6779         * lib/unictype/pr_other_id_continue.h: Likewise.
6780         * lib/unictype/pr_other_math.h: Likewise.
6781         * lib/unictype/pr_punctuation.h: Likewise.
6782         * lib/unictype/pr_sentence_terminal.h: Likewise.
6783         * lib/unictype/pr_terminal_punctuation.h: Likewise.
6784         * lib/unictype/pr_unassigned_code_value.h: Likewise.
6785         * lib/unictype/pr_unified_ideograph.h: Likewise.
6786         * lib/unictype/pr_uppercase.h: Likewise.
6787         * lib/unictype/pr_xid_continue.h: Likewise.
6788         * lib/unictype/pr_xid_start.h: Likewise.
6789         * lib/unictype/scripts.h: Likewise.
6790         * lib/unictype/scripts_byname.gperf: Likewise.
6791         * lib/unictype/sy_java_ident.h: Likewise.
6792         * lib/unigbrk/gbrkprop.h: Likewise.
6793         * lib/unilbrk/lbrkprop1.h: Likewise.
6794         * lib/unilbrk/lbrkprop2.h: Likewise.
6795         * lib/uninorm/decomposition-table2.h: Likewise.
6796         * lib/uniwbrk/wbrkprop.h: Likewise.
6797         * tests/unicase/test-cased.c: Likewise.
6798         * tests/unicase/test-ignorable.c: Likewise.
6799         * tests/unicase/test-uc_tolower.c: Likewise.
6800         * tests/unicase/test-uc_totitle.c: Likewise.
6801         * tests/unicase/test-uc_toupper.c: Likewise.
6802         * tests/unictype/test-categ_C.c: Likewise.
6803         * tests/unictype/test-categ_Cn.c: Likewise.
6804         * tests/unictype/test-categ_L.c: Likewise.
6805         * tests/unictype/test-categ_Ll.c: Likewise.
6806         * tests/unictype/test-categ_Lm.c: Likewise.
6807         * tests/unictype/test-categ_Lo.c: Likewise.
6808         * tests/unictype/test-categ_Lu.c: Likewise.
6809         * tests/unictype/test-categ_M.c: Likewise.
6810         * tests/unictype/test-categ_Mc.c: Likewise.
6811         * tests/unictype/test-categ_Me.c: Likewise.
6812         * tests/unictype/test-categ_Mn.c: Likewise.
6813         * tests/unictype/test-categ_N.c: Likewise.
6814         * tests/unictype/test-categ_Nd.c: Likewise.
6815         * tests/unictype/test-categ_No.c: Likewise.
6816         * tests/unictype/test-categ_P.c: Likewise.
6817         * tests/unictype/test-categ_Po.c: Likewise.
6818         * tests/unictype/test-categ_S.c: Likewise.
6819         * tests/unictype/test-categ_Sc.c: Likewise.
6820         * tests/unictype/test-categ_Sk.c: Likewise.
6821         * tests/unictype/test-categ_Sm.c: Likewise.
6822         * tests/unictype/test-categ_So.c: Likewise.
6823         * tests/unictype/test-ctype_alnum.c: Likewise.
6824         * tests/unictype/test-ctype_alpha.c: Likewise.
6825         * tests/unictype/test-ctype_graph.c: Likewise.
6826         * tests/unictype/test-ctype_lower.c: Likewise.
6827         * tests/unictype/test-ctype_print.c: Likewise.
6828         * tests/unictype/test-ctype_punct.c: Likewise.
6829         * tests/unictype/test-ctype_upper.c: Likewise.
6830         * tests/unictype/test-decdigit.h: Likewise.
6831         * tests/unictype/test-digit.h: Likewise.
6832         * tests/unictype/test-numeric.h: Likewise.
6833         * tests/unictype/test-pr_alphabetic.c: Likewise.
6834         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
6835         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
6836         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
6837         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
6838         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
6839         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
6840         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
6841         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
6842         * tests/unictype/test-pr_case_ignorable.c: Likewise.
6843         * tests/unictype/test-pr_cased.c: Likewise.
6844         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
6845         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
6846         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
6847         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
6848         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
6849         * tests/unictype/test-pr_combining.c: Likewise.
6850         * tests/unictype/test-pr_composite.c: Likewise.
6851         * tests/unictype/test-pr_currency_symbol.c: Likewise.
6852         * tests/unictype/test-pr_decimal_digit.c: Likewise.
6853         * tests/unictype/test-pr_deprecated.c: Likewise.
6854         * tests/unictype/test-pr_format_control.c: Likewise.
6855         * tests/unictype/test-pr_grapheme_base.c: Likewise.
6856         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
6857         * tests/unictype/test-pr_grapheme_link.c: Likewise.
6858         * tests/unictype/test-pr_id_continue.c: Likewise.
6859         * tests/unictype/test-pr_id_start.c: Likewise.
6860         * tests/unictype/test-pr_ideographic.c: Likewise.
6861         * tests/unictype/test-pr_lowercase.c: Likewise.
6862         * tests/unictype/test-pr_math.c: Likewise.
6863         * tests/unictype/test-pr_numeric.c: Likewise.
6864         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
6865         * tests/unictype/test-pr_other_id_continue.c: Likewise.
6866         * tests/unictype/test-pr_other_math.c: Likewise.
6867         * tests/unictype/test-pr_punctuation.c: Likewise.
6868         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
6869         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
6870         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
6871         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
6872         * tests/unictype/test-pr_uppercase.c: Likewise.
6873         * tests/unictype/test-pr_xid_continue.c: Likewise.
6874         * tests/unictype/test-pr_xid_start.c: Likewise.
6875         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
6876         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
6877         changes.
6878         * lib/unictype/categ_Cc.h: Likewise.
6879         * lib/unictype/categ_Cf.h: Likewise.
6880         * lib/unictype/categ_Co.h: Likewise.
6881         * lib/unictype/categ_Cs.h: Likewise.
6882         * lib/unictype/categ_Lt.h: Likewise.
6883         * lib/unictype/categ_Nl.h: Likewise.
6884         * lib/unictype/categ_Pc.h: Likewise.
6885         * lib/unictype/categ_Pd.h: Likewise.
6886         * lib/unictype/categ_Pe.h: Likewise.
6887         * lib/unictype/categ_Pf.h: Likewise.
6888         * lib/unictype/categ_Pi.h: Likewise.
6889         * lib/unictype/categ_Ps.h: Likewise.
6890         * lib/unictype/categ_Z.h: Likewise.
6891         * lib/unictype/categ_Zl.h: Likewise.
6892         * lib/unictype/categ_Zp.h: Likewise.
6893         * lib/unictype/categ_Zs.h: Likewise.
6894         * lib/unictype/ctype_blank.h: Likewise.
6895         * lib/unictype/ctype_cntrl.h: Likewise.
6896         * lib/unictype/ctype_digit.h: Likewise.
6897         * lib/unictype/ctype_space.h: Likewise.
6898         * lib/unictype/ctype_xdigit.h: Likewise.
6899         * lib/unictype/mirror.h: Likewise.
6900         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
6901         * lib/unictype/pr_bidi_block_separator.h: Likewise.
6902         * lib/unictype/pr_bidi_common_separator.h: Likewise.
6903         * lib/unictype/pr_bidi_control.h: Likewise.
6904         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
6905         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
6906         * lib/unictype/pr_bidi_european_digit.h: Likewise.
6907         * lib/unictype/pr_bidi_pdf.h: Likewise.
6908         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
6909         * lib/unictype/pr_bidi_whitespace.h: Likewise.
6910         * lib/unictype/pr_dash.h: Likewise.
6911         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
6912         * lib/unictype/pr_diacritic.h: Likewise.
6913         * lib/unictype/pr_extender.h: Likewise.
6914         * lib/unictype/pr_hex_digit.h: Likewise.
6915         * lib/unictype/pr_hyphen.h: Likewise.
6916         * lib/unictype/pr_ids_binary_operator.h: Likewise.
6917         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
6918         * lib/unictype/pr_ignorable_control.h: Likewise.
6919         * lib/unictype/pr_iso_control.h: Likewise.
6920         * lib/unictype/pr_join_control.h: Likewise.
6921         * lib/unictype/pr_left_of_pair.h: Likewise.
6922         * lib/unictype/pr_line_separator.h: Likewise.
6923         * lib/unictype/pr_logical_order_exception.h: Likewise.
6924         * lib/unictype/pr_non_break.h: Likewise.
6925         * lib/unictype/pr_not_a_character.h: Likewise.
6926         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
6927         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
6928         * lib/unictype/pr_other_id_start.h: Likewise.
6929         * lib/unictype/pr_other_lowercase.h: Likewise.
6930         * lib/unictype/pr_other_uppercase.h: Likewise.
6931         * lib/unictype/pr_paired_punctuation.h: Likewise.
6932         * lib/unictype/pr_paragraph_separator.h: Likewise.
6933         * lib/unictype/pr_pattern_syntax.h: Likewise.
6934         * lib/unictype/pr_pattern_white_space.h: Likewise.
6935         * lib/unictype/pr_private_use.h: Likewise.
6936         * lib/unictype/pr_quotation_mark.h: Likewise.
6937         * lib/unictype/pr_radical.h: Likewise.
6938         * lib/unictype/pr_soft_dotted.h: Likewise.
6939         * lib/unictype/pr_space.h: Likewise.
6940         * lib/unictype/pr_titlecase.h: Likewise.
6941         * lib/unictype/pr_variation_selector.h: Likewise.
6942         * lib/unictype/pr_white_space.h: Likewise.
6943         * lib/unictype/pr_zero_width.h: Likewise.
6944         * lib/unictype/sy_c_ident.h: Likewise.
6945         * lib/unictype/sy_c_whitespace.h: Likewise.
6946         * lib/unictype/sy_java_whitespace.h: Likewise.
6947         * lib/uninorm/composition-table.gperf: Likewise.
6948         * lib/uninorm/decomposition-table1.h: Likewise.
6949         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
6950         LB8.
6951         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
6952         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
6953         * modules/unictype/*: Bump version number of expected libunistring
6954         version.
6955
6956 2011-01-09  Bruno Haible  <bruno@clisp.org>
6957
6958         Update to Unicode 5.2.0.
6959         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
6960         trailing whitespace removed.
6961
6962 2011-01-09  Bruno Haible  <bruno@clisp.org>
6963
6964         New Unicode character properties, from Unicode 5.2.0.
6965         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
6966         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
6967         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
6968         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
6969         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
6970         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
6971         uc_is_property_cased, uc_is_property_case_ignorable,
6972         uc_is_property_changes_when_lowercased,
6973         uc_is_property_changes_when_uppercased,
6974         uc_is_property_changes_when_titlecased,
6975         uc_is_property_changes_when_casefolded,
6976         uc_is_property_changes_when_casemapped): New declarations.
6977         * lib/unictype/pr_byname.gperf: Add the new properties.
6978         * modules/unictype/property-byname (Depends-on): Depend on the new
6979         properties modules.
6980         * modules/unictype/property-all (Depends-on): Likewise.
6981         * MODULES.html.sh (Unicode string functions): Add
6982         unictype/property-case-ignorable, unictype/property-cased,
6983         unictype/property-changes-when-casefolded,
6984         unictype/property-changes-when-casemapped,
6985         unictype/property-changes-when-lowercased,
6986         unictype/property-changes-when-titlecased,
6987         unictype/property-changes-when-uppercased.
6988
6989         New module 'unictype/property-changes-when-casemapped'.
6990         * modules/unictype/property-changes-when-casemapped: New file.
6991         * lib/unictype/pr_changes_when_casemapped.c: New file.
6992         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
6993         generated by gen-uni-tables.
6994         * modules/unictype/property-changes-when-casemapped-tests: New file.
6995         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
6996         automatically generated by gen-uni-tables.
6997
6998         New module 'unictype/property-changes-when-casefolded'.
6999         * modules/unictype/property-changes-when-casefolded: New file.
7000         * lib/unictype/pr_changes_when_casefolded.c: New file.
7001         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
7002         generated by gen-uni-tables.
7003         * modules/unictype/property-changes-when-casefolded-tests: New file.
7004         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
7005         automatically generated by gen-uni-tables.
7006
7007         New module 'unictype/property-changes-when-titlecased'.
7008         * modules/unictype/property-changes-when-titlecased: New file.
7009         * lib/unictype/pr_changes_when_titlecased.c: New file.
7010         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
7011         generated by gen-uni-tables.
7012         * modules/unictype/property-changes-when-titlecased-tests: New file.
7013         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
7014         automatically generated by gen-uni-tables.
7015
7016         New module 'unictype/property-changes-when-uppercased'.
7017         * modules/unictype/property-changes-when-uppercased: New file.
7018         * lib/unictype/pr_changes_when_uppercased.c: New file.
7019         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
7020         generated by gen-uni-tables.
7021         * modules/unictype/property-changes-when-uppercased-tests: New file.
7022         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
7023         automatically generated by gen-uni-tables.
7024
7025         New module 'unictype/property-changes-when-lowercased'.
7026         * modules/unictype/property-changes-when-lowercased: New file.
7027         * lib/unictype/pr_changes_when_lowercased.c: New file.
7028         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
7029         generated by gen-uni-tables.
7030         * modules/unictype/property-changes-when-lowercased-tests: New file.
7031         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
7032         automatically generated by gen-uni-tables.
7033
7034         New module 'unictype/property-case-ignorable'.
7035         * modules/unictype/property-case-ignorable: New file.
7036         * lib/unictype/pr_case_ignorable.c: New file.
7037         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
7038         by gen-uni-tables.
7039         * modules/unictype/property-case-ignorable-tests: New file.
7040         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
7041         generated by gen-uni-tables.
7042
7043         New module 'unictype/property-cased'.
7044         * modules/unictype/property-cased: New file.
7045         * lib/unictype/pr_cased.c: New file.
7046         * lib/unictype/pr_cased.h: New file, automatically generated by
7047         gen-uni-tables.
7048         * modules/unictype/property-cased-tests: New file.
7049         * tests/unictype/test-pr_cased.c: New file, automatically generated by
7050         gen-uni-tables.
7051
7052 2011-01-09  Bruno Haible  <bruno@clisp.org>
7053
7054         Update to Unicode 5.2.0.
7055         * lib/gen-uni-tables.c (output_predicate, output_category,
7056         output_combclass, output_bidi_category, output_decimal_digit_test,
7057         output_decimal_digit, output_digit_test, output_digit,
7058         output_numeric_test, output_numeric, output_mirror, output_scripts,
7059         output_scripts_byname, output_blocks, output_ident_category): Fix
7060         comment header.
7061         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
7062         get_wbp.
7063         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
7064         items.
7065         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
7066         Changes_When_Lowercased, Changes_When_Uppercased,
7067         Changes_When_Titlecased, Changes_When_Casefolded,
7068         Changes_When_Casemapped.
7069         (is_property_alphabetic, is_property_default_ignorable_code_point):
7070         Update for Unicode 5.2.0.
7071         (is_property_cased, is_property_case_ignorable,
7072         is_property_changes_when_lowercased,
7073         is_property_changes_when_uppercased,
7074         is_property_changes_when_titlecased,
7075         is_property_changes_when_casefolded,
7076         is_property_changes_when_casemapped): New functions.
7077         (output_properties): Output also the properties cased, case_ignorable,
7078         changes_when_lowercased, changes_when_uppercased,
7079         changes_when_titlecased, changes_when_casefolded,
7080         changes_when_casemapped.
7081         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
7082         Unicode TR#11 revision 17 -> 19.
7083         (LBP_CP): New enumeration value.
7084         (LBP_*): Adjust values accordingly.
7085         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
7086         TR#14 revision 22 -> 24.
7087         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
7088         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
7089         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
7090         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
7091         is_WBP_MIDLETTER.
7092         (output_composition_tables): Allow for 24 bits instead of 16 bits in
7093         the code1 and code2 of each composition rule.
7094         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
7095         * lib/unicase/ignorable.h: Likewise.
7096         * lib/unicase/tocasefold.h: Likewise.
7097         * lib/unicase/tolower.h: Likewise.
7098         * lib/unicase/totitle.h: Likewise.
7099         * lib/unicase/toupper.h: Likewise.
7100         * lib/unictype/bidi_of.h: Likewise.
7101         * lib/unictype/blocks.h: Likewise.
7102         * lib/unictype/categ_C.h: Likewise.
7103         * lib/unictype/categ_Cf.h: Likewise.
7104         * lib/unictype/categ_Cn.h: Likewise.
7105         * lib/unictype/categ_L.h: Likewise.
7106         * lib/unictype/categ_Ll.h: Likewise.
7107         * lib/unictype/categ_Lm.h: Likewise.
7108         * lib/unictype/categ_Lo.h: Likewise.
7109         * lib/unictype/categ_Lu.h: Likewise.
7110         * lib/unictype/categ_M.h: Likewise.
7111         * lib/unictype/categ_Mc.h: Likewise.
7112         * lib/unictype/categ_Mn.h: Likewise.
7113         * lib/unictype/categ_N.h: Likewise.
7114         * lib/unictype/categ_Nd.h: Likewise.
7115         * lib/unictype/categ_Nl.h: Likewise.
7116         * lib/unictype/categ_No.h: Likewise.
7117         * lib/unictype/categ_P.h: Likewise.
7118         * lib/unictype/categ_Pd.h: Likewise.
7119         * lib/unictype/categ_Po.h: Likewise.
7120         * lib/unictype/categ_S.h: Likewise.
7121         * lib/unictype/categ_Sc.h: Likewise.
7122         * lib/unictype/categ_So.h: Likewise.
7123         * lib/unictype/categ_of.h: Likewise.
7124         * lib/unictype/combining.h: Likewise.
7125         * lib/unictype/ctype_alnum.h: Likewise.
7126         * lib/unictype/ctype_alpha.h: Likewise.
7127         * lib/unictype/ctype_graph.h: Likewise.
7128         * lib/unictype/ctype_lower.h: Likewise.
7129         * lib/unictype/ctype_print.h: Likewise.
7130         * lib/unictype/ctype_punct.h: Likewise.
7131         * lib/unictype/ctype_upper.h: Likewise.
7132         * lib/unictype/decdigit.h: Likewise.
7133         * lib/unictype/digit.h: Likewise.
7134         * lib/unictype/numeric.h: Likewise.
7135         * lib/unictype/pr_alphabetic.h: Likewise.
7136         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
7137         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
7138         * lib/unictype/pr_bidi_european_digit.h: Likewise.
7139         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
7140         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
7141         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
7142         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
7143         * lib/unictype/pr_combining.h: Likewise.
7144         * lib/unictype/pr_composite.h: Likewise.
7145         * lib/unictype/pr_currency_symbol.h: Likewise.
7146         * lib/unictype/pr_dash.h: Likewise.
7147         * lib/unictype/pr_decimal_digit.h: Likewise.
7148         * lib/unictype/pr_deprecated.h: Likewise.
7149         * lib/unictype/pr_diacritic.h: Likewise.
7150         * lib/unictype/pr_extender.h: Likewise.
7151         * lib/unictype/pr_grapheme_base.h: Likewise.
7152         * lib/unictype/pr_grapheme_extend.h: Likewise.
7153         * lib/unictype/pr_grapheme_link.h: Likewise.
7154         * lib/unictype/pr_id_continue.h: Likewise.
7155         * lib/unictype/pr_id_start.h: Likewise.
7156         * lib/unictype/pr_ideographic.h: Likewise.
7157         * lib/unictype/pr_ignorable_control.h: Likewise.
7158         * lib/unictype/pr_logical_order_exception.h: Likewise.
7159         * lib/unictype/pr_lowercase.h: Likewise.
7160         * lib/unictype/pr_numeric.h: Likewise.
7161         * lib/unictype/pr_other_alphabetic.h: Likewise.
7162         * lib/unictype/pr_punctuation.h: Likewise.
7163         * lib/unictype/pr_sentence_terminal.h: Likewise.
7164         * lib/unictype/pr_terminal_punctuation.h: Likewise.
7165         * lib/unictype/pr_unassigned_code_value.h: Likewise.
7166         * lib/unictype/pr_unified_ideograph.h: Likewise.
7167         * lib/unictype/pr_uppercase.h: Likewise.
7168         * lib/unictype/pr_xid_continue.h: Likewise.
7169         * lib/unictype/pr_xid_start.h: Likewise.
7170         * lib/unictype/pr_zero_width.h: Likewise.
7171         * lib/unictype/scripts.h: Likewise.
7172         * lib/unictype/scripts_byname.gperf: Likewise.
7173         * lib/unictype/sy_java_ident.h: Likewise.
7174         * lib/unigbrk/gbrkprop.h: Likewise.
7175         * lib/unilbrk/lbrkprop1.h: Likewise.
7176         * lib/unilbrk/lbrkprop2.h: Likewise.
7177         * lib/unilbrk/lbrktables.h: Likewise.
7178         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
7179         LBP_CP. Implement rule LB30.
7180         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
7181         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
7182         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
7183         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
7184         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
7185         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
7186         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
7187         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
7188         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
7189         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
7190         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
7191         bits instead of 16 bits in the code1 and code2 of each composition
7192         rule.
7193         (uc_composition): Update for Unicode 5.2.0.
7194         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
7195         * lib/uninorm/decomposition-table2.h: Likewise.
7196         * lib/uniwbrk/wbrkprop.h: Likewise.
7197         * tests/unicase/test-cased.c: Likewise.
7198         * tests/unicase/test-ignorable.c: Likewise.
7199         * tests/unicase/test-uc_tolower.c: Likewise.
7200         * tests/unicase/test-uc_totitle.c: Likewise.
7201         * tests/unicase/test-uc_toupper.c: Likewise.
7202         * tests/unictype/test-categ_C.c: Likewise.
7203         * tests/unictype/test-categ_Cf.c: Likewise.
7204         * tests/unictype/test-categ_Cn.c: Likewise.
7205         * tests/unictype/test-categ_L.c: Likewise.
7206         * tests/unictype/test-categ_Ll.c: Likewise.
7207         * tests/unictype/test-categ_Lm.c: Likewise.
7208         * tests/unictype/test-categ_Lo.c: Likewise.
7209         * tests/unictype/test-categ_Lu.c: Likewise.
7210         * tests/unictype/test-categ_M.c: Likewise.
7211         * tests/unictype/test-categ_Mc.c: Likewise.
7212         * tests/unictype/test-categ_Mn.c: Likewise.
7213         * tests/unictype/test-categ_N.c: Likewise.
7214         * tests/unictype/test-categ_Nd.c: Likewise.
7215         * tests/unictype/test-categ_Nl.c: Likewise.
7216         * tests/unictype/test-categ_No.c: Likewise.
7217         * tests/unictype/test-categ_P.c: Likewise.
7218         * tests/unictype/test-categ_Pd.c: Likewise.
7219         * tests/unictype/test-categ_Po.c: Likewise.
7220         * tests/unictype/test-categ_S.c: Likewise.
7221         * tests/unictype/test-categ_Sc.c: Likewise.
7222         * tests/unictype/test-categ_So.c: Likewise.
7223         * tests/unictype/test-ctype_alnum.c: Likewise.
7224         * tests/unictype/test-ctype_alpha.c: Likewise.
7225         * tests/unictype/test-ctype_graph.c: Likewise.
7226         * tests/unictype/test-ctype_lower.c: Likewise.
7227         * tests/unictype/test-ctype_print.c: Likewise.
7228         * tests/unictype/test-ctype_punct.c: Likewise.
7229         * tests/unictype/test-ctype_upper.c: Likewise.
7230         * tests/unictype/test-decdigit.h: Likewise.
7231         * tests/unictype/test-digit.h: Likewise.
7232         * tests/unictype/test-numeric.h: Likewise.
7233         * tests/unictype/test-pr_alphabetic.c: Likewise.
7234         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
7235         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
7236         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
7237         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
7238         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
7239         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
7240         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
7241         * tests/unictype/test-pr_combining.c: Likewise.
7242         * tests/unictype/test-pr_composite.c: Likewise.
7243         * tests/unictype/test-pr_currency_symbol.c: Likewise.
7244         * tests/unictype/test-pr_dash.c: Likewise.
7245         * tests/unictype/test-pr_decimal_digit.c: Likewise.
7246         * tests/unictype/test-pr_deprecated.c: Likewise.
7247         * tests/unictype/test-pr_diacritic.c: Likewise.
7248         * tests/unictype/test-pr_extender.c: Likewise.
7249         * tests/unictype/test-pr_grapheme_base.c: Likewise.
7250         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
7251         * tests/unictype/test-pr_grapheme_link.c: Likewise.
7252         * tests/unictype/test-pr_id_continue.c: Likewise.
7253         * tests/unictype/test-pr_id_start.c: Likewise.
7254         * tests/unictype/test-pr_ideographic.c: Likewise.
7255         * tests/unictype/test-pr_ignorable_control.c: Likewise.
7256         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
7257         * tests/unictype/test-pr_lowercase.c: Likewise.
7258         * tests/unictype/test-pr_numeric.c: Likewise.
7259         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
7260         * tests/unictype/test-pr_punctuation.c: Likewise.
7261         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
7262         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
7263         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
7264         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
7265         * tests/unictype/test-pr_uppercase.c: Likewise.
7266         * tests/unictype/test-pr_xid_continue.c: Likewise.
7267         * tests/unictype/test-pr_xid_start.c: Likewise.
7268         * tests/unictype/test-pr_zero_width.c: Likewise.
7269         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
7270         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
7271         changed behaviour: line breaking is now disallowed between a letter
7272         or '=' and '('.
7273         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
7274         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
7275         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
7276         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
7277         * tests/uniwidth/test-uc_width2.sh: Same updates as in
7278         lib/uniwidth/width.c.
7279         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
7280         without comments, but with the original copyright notice.
7281         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
7282         changes.
7283         * lib/unictype/categ_Cc.h: Likewise.
7284         * lib/unictype/categ_Co.h: Likewise.
7285         * lib/unictype/categ_Cs.h: Likewise.
7286         * lib/unictype/categ_Lt.h: Likewise.
7287         * lib/unictype/categ_Me.h: Likewise.
7288         * lib/unictype/categ_Pc.h: Likewise.
7289         * lib/unictype/categ_Pe.h: Likewise.
7290         * lib/unictype/categ_Pf.h: Likewise.
7291         * lib/unictype/categ_Pi.h: Likewise.
7292         * lib/unictype/categ_Ps.h: Likewise.
7293         * lib/unictype/categ_Sk.h: Likewise.
7294         * lib/unictype/categ_Sm.h: Likewise.
7295         * lib/unictype/categ_Z.h: Likewise.
7296         * lib/unictype/categ_Zl.h: Likewise.
7297         * lib/unictype/categ_Zp.h: Likewise.
7298         * lib/unictype/categ_Zs.h: Likewise.
7299         * lib/unictype/ctype_blank.h: Likewise.
7300         * lib/unictype/ctype_cntrl.h: Likewise.
7301         * lib/unictype/ctype_digit.h: Likewise.
7302         * lib/unictype/ctype_space.h: Likewise.
7303         * lib/unictype/ctype_xdigit.h: Likewise.
7304         * lib/unictype/mirror.h: Likewise.
7305         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
7306         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
7307         * lib/unictype/pr_bidi_block_separator.h: Likewise.
7308         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
7309         * lib/unictype/pr_bidi_common_separator.h: Likewise.
7310         * lib/unictype/pr_bidi_control.h: Likewise.
7311         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
7312         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
7313         * lib/unictype/pr_bidi_pdf.h: Likewise.
7314         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
7315         * lib/unictype/pr_bidi_whitespace.h: Likewise.
7316         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
7317         * lib/unictype/pr_format_control.h: Likewise.
7318         * lib/unictype/pr_hex_digit.h: Likewise.
7319         * lib/unictype/pr_hyphen.h: Likewise.
7320         * lib/unictype/pr_ids_binary_operator.h: Likewise.
7321         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
7322         * lib/unictype/pr_iso_control.h: Likewise.
7323         * lib/unictype/pr_join_control.h: Likewise.
7324         * lib/unictype/pr_left_of_pair.h: Likewise.
7325         * lib/unictype/pr_line_separator.h: Likewise.
7326         * lib/unictype/pr_math.h: Likewise.
7327         * lib/unictype/pr_non_break.h: Likewise.
7328         * lib/unictype/pr_not_a_character.h: Likewise.
7329         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
7330         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
7331         * lib/unictype/pr_other_id_continue.h: Likewise.
7332         * lib/unictype/pr_other_id_start.h: Likewise.
7333         * lib/unictype/pr_other_lowercase.h: Likewise.
7334         * lib/unictype/pr_other_math.h: Likewise.
7335         * lib/unictype/pr_other_uppercase.h: Likewise.
7336         * lib/unictype/pr_paired_punctuation.h: Likewise.
7337         * lib/unictype/pr_paragraph_separator.h: Likewise.
7338         * lib/unictype/pr_pattern_syntax.h: Likewise.
7339         * lib/unictype/pr_pattern_white_space.h: Likewise.
7340         * lib/unictype/pr_private_use.h: Likewise.
7341         * lib/unictype/pr_quotation_mark.h: Likewise.
7342         * lib/unictype/pr_radical.h: Likewise.
7343         * lib/unictype/pr_soft_dotted.h: Likewise.
7344         * lib/unictype/pr_space.h: Likewise.
7345         * lib/unictype/pr_titlecase.h: Likewise.
7346         * lib/unictype/pr_variation_selector.h: Likewise.
7347         * lib/unictype/pr_white_space.h: Likewise.
7348         * lib/unictype/sy_c_ident.h: Likewise.
7349         * lib/unictype/sy_c_whitespace.h: Likewise.
7350         * lib/unictype/sy_java_whitespace.h: Likewise.
7351         * modules/uni*/*: Bump version number of expected libunistring version.
7352         Reported by Simon Josefsson.
7353
7354 2011-01-09  Karl Heuer  <kwzh@gnu.org>
7355
7356         useless-if-before-free: fix typo in --help and make the internal,
7357         automatic version date update process work once again.
7358         --help output contained a NUL character instead of the
7359         backslash-zero that was intended.  Also, the "must lie within
7360         the first 8 lines" line is on line 9, and hence not getting
7361         automatically updated.
7362         * build-aux/useless-if-before-free: Fix the former by adding a
7363         backslash, and the latter by condensing the three lines of what-it-does
7364         to a single line, leaving one line of slack for the future.
7365
7366 2011-01-09  Bruno Haible  <bruno@clisp.org>
7367
7368         uniwidth/width: Fix width of U+1D173..U+1D17A.
7369         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
7370         symbolic_width, output_width_property_test): New functions.
7371         (main): Invoke output_nonspacing_property, output_width_property_test.
7372         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
7373         U+1D173..U+1D17A.
7374         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
7375         1.
7376         * modules/uniwidth/*: Bump version number of expected libunistring
7377         version.
7378         * modules/unilbrk/*: Likewise.
7379
7380 2011-01-08  Bruno Haible  <bruno@clisp.org>
7381
7382         uninorm tests: Preserve copyright of Unicode data file.
7383         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
7384         Mention modifications.
7385
7386 2011-01-08  Bruno Haible  <bruno@clisp.org>
7387
7388         gen-uni-tables: Prepare for Unicode 5.2.0.
7389         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
7390         (debug_output_lbp, output_lbp): Update.
7391
7392 2011-01-08  Bruno Haible  <bruno@clisp.org>
7393
7394         unilbrk: Clarify gen-uni-tables.c code.
7395         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
7396         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
7397         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
7398
7399 2011-01-07  Bruno Haible  <bruno@clisp.org>
7400
7401         strtod: Restore errno when successfully parsing Infinity or NaN.
7402         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
7403         restore the original errno.
7404
7405 2011-01-07  Bruno Haible  <bruno@clisp.org>
7406
7407         remove test: Avoid failure on HP-UX 11.
7408         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
7409
7410 2011-01-07  Bruno Haible  <bruno@clisp.org>
7411
7412         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
7413         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
7414         error code.
7415
7416 2011-01-07  Pádraig Brady <P@draigBrady.com>
7417
7418         ignore-value: fixup comments, and add Eric Blake
7419         as an author since he rewrote the macros.
7420         * lib/ignore-value.h (ignore_value):  State that
7421         we now support aggregates.  Also specify exactly
7422         when the GCC warn_unused_result feature was added.
7423
7424 2011-01-06  Eric Blake  <eblake@redhat.com>
7425
7426         ignore-value: support aggregate types
7427         * lib/ignore-value.h (ignore_value): Provide separate gcc
7428         definition.
7429         * modules/ignore-value-tests: New test module.
7430         * tests/test-ignore-value.c: New test.
7431
7432         maint.mk: improve sc_prohibit_strcmp regex
7433         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
7434         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
7435         definition of STRNEQ.
7436
7437         signal: work around Haiku issue with SIGBUS
7438         * lib/siglist.h: Add comment.
7439         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
7440         strsignal's favoring of SIGSEGV.
7441         * tests/test-signal.c (main): Avoid test failure.
7442         * doc/posix-headers/signal.texi (signal.h): Document the issue.
7443         Reported by Scott McCreary.
7444
7445         maint.mk: add pre-release check to ensure submodule commits are public
7446         * top/maint.mk (public-submodule-commit): New rule.
7447         (submodule-checks): New variable.
7448         (alpha beta stable): Depend on the variable.
7449
7450 2011-01-05  Pádraig Brady <P@draigBrady.com>
7451         and Jim Meyering  <meyering@redhat.com>
7452
7453         ignore-value: make ignore_value more generic; deprecate ignore_ptr
7454         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
7455         (ATTRIBUTE_DEPRECATED): Define.
7456         (_ignore_case): New function.
7457         (ignore_value): New macro, to replace the old function.
7458         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
7459         * modules/ignore-value (Depends-on): Add stdint.
7460
7461 2011-01-04  Eric Blake  <eblake@redhat.com>
7462
7463         doc: regenerate INSTALL
7464         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
7465         @firstparagraphindent support, now that autoconf dropped it.
7466         (INSTALL_PRELUDE): Reinstate old macro.
7467         * doc/install.texi: Resync from autoconf.
7468         * doc/INSTALL: Reflect recent autoconf update.
7469         * doc/INSTALL.ISO: Likewise.
7470         * doc/INSTALL.UTF-8: Likewise.
7471         Reported by Karl Berry.
7472
7473 2011-01-04  Bruce Korb  <address@hidden>
7474
7475         git-version-gen: avoid a sub-shell
7476         * build-aux/git-version-gen: Redirect stderr in `...` via
7477         "exec 2>...", rather than via an added sub-shell.
7478
7479 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
7480
7481         git-version-gen: use (...) rather than sh -c '...'
7482         * build-aux/git-version-gen: Rather than hard-coding a shell's name
7483         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
7484
7485 2011-01-03  Jim Meyering  <meyering@redhat.com>
7486
7487         git-version-gen: convert leading TABs to spaces
7488         * build-aux/git-version-gen: Expand leading TABs.
7489
7490         git-version-gen: handle failed "git rev-list"
7491         * build-aux/git-version-gen: Rather than leaking a "fatal" error
7492         from git and proceeding as if it had succeeded but printed no SHA1
7493         checksums, suppress the diagnostic and handle the failure.
7494         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
7495
7496         git-version-gen: include command name in one more diagnostic
7497         * build-aux/git-version-gen: When the required .tarball-version file
7498         was missing or unreadable, you might see the diagnostic from "cat",
7499         but no trace of the name of the invoking script.  Now, you still see
7500         the diagnostic from cat, but also get one from "git-version-gen: ".
7501         Inspired by a patch from Bruce Korb.
7502
7503         update-copyright: adjust test to match changed code
7504         * tests/test-update-copyright.sh: Change test's expected output
7505         to match new actual output.
7506
7507 2011-01-02  Bruno Haible  <bruno@clisp.org>
7508
7509         getlogin_r: Avoid test failure on HP-UX 11.
7510         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
7511         ERANGE when the second argument is zero.
7512         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
7513         portability problem.
7514
7515 2011-01-02  Bruce Korb  <bkorb@gnu.org>
7516
7517         * build-aux/update-copyright: doc Simon's changes
7518
7519 2011-01-02  Simon Josefsson  <simon@josefsson.org>
7520
7521         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
7522         environment variable.
7523
7524 2011-01-02  Bruno Haible  <bruno@clisp.org>
7525
7526         unigbrk: Avoid gcc warnings.
7527         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
7528         unused variable.
7529         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
7530         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
7531         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
7532         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
7533         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
7534         Change type of first argument to 'const char *'.
7535         (main): Remove unused variable.
7536         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
7537         type of first argument to 'const char *'.
7538         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
7539         Likewise.
7540         (main): Change type of variable 's'.
7541         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
7542         to 'int'.
7543
7544 2011-01-02  Bruno Haible  <bruno@clisp.org>
7545
7546         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
7547         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
7548         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
7549         bug.
7550         * lib/pwrite.c: Undo 2010-12-31 patch.
7551         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
7552
7553 2011-01-02  Bruno Haible  <bruno@clisp.org>
7554
7555         pread: Fix test whether it works.
7556         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
7557
7558 2011-01-02  Bruno Haible  <bruno@clisp.org>
7559
7560         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
7561         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
7562         ends in "6". Don't require a specific month name. Try also the locale
7563         names found on HP-UX 11 and Solaris 7.
7564
7565 2011-01-02  Bruno Haible  <bruno@clisp.org>
7566
7567         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
7568         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
7569         C linkage.
7570         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
7571
7572 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7573
7574         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
7575         for consistency, since the "cluster" term is not used elsewhere.
7576         * lib/unigbrk.in.h: Update name.
7577         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
7578         * lib/unigbrk/u16-grapheme-next.c: Update name.
7579         * lib/unigbrk/u16-grapheme-prev.c: Update name.
7580         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
7581         * lib/unigbrk/u32-grapheme-next.c: Update name.
7582         * lib/unigbrk/u32-grapheme-prev.c: Update name.
7583         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
7584         * lib/unigbrk/u8-grapheme-next.c: Update name.
7585         * lib/unigbrk/u8-grapheme-prev.c: Update name.
7586         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
7587         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
7588         Suggested by Bruno Haible.
7589
7590 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7591
7592         Remove module 'u8-grapheme-len' as too redundant with
7593         'u8-grapheme-next'.
7594         * modules/unigbrk/u8-grapheme-len: Delete file.
7595         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
7596         * lib/unigbrk.in.h: Remove prototype for deleted function.
7597         * lib/unigbrk/u8-grapheme-len.c: Delete file.
7598         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
7599
7600         Remove module 'u16-grapheme-len' as too redundant with
7601         'u16-grapheme-next'.
7602         * modules/unigbrk/u16-grapheme-len: Delete file.
7603         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
7604         * lib/unigbrk.in.h: Remove prototype for deleted function.
7605         * lib/unigbrk/u16-grapheme-len.c: Delete file.
7606         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
7607
7608         Remove module 'u32-grapheme-len' as too redundant with
7609         'u32-grapheme-next'.
7610         * modules/unigbrk/u32-grapheme-len: Delete file.
7611         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
7612         * lib/unigbrk.in.h: Remove prototype for deleted function.
7613         * lib/unigbrk/u32-grapheme-len.c: Delete file.
7614         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
7615
7616         Suggested by Bruno Haible.
7617
7618 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
7619
7620         * unigbrk.in.h: Fix typo: "ben" => "been".
7621         Reported by Bruno Haible.
7622
7623 2011-01-01  Jim Meyering  <meyering@redhat.com>
7624
7625         maint: update almost all copyright ranges to include 2011
7626         Run the new "make update-copyright" rule.
7627
7628 2011-01-01  Jim Meyering  <meyering@redhat.com>
7629
7630         maint: update-copyright: exempt doc/INSTALL*
7631         * Makefile (update-copyright): Also exclude doc/INSTALL*,
7632         since they are generated.  Suggested by Bruno Haible.
7633
7634 2011-01-01  Jim Meyering  <meyering@redhat.com>
7635
7636         maint: refine the update-copyright rule
7637         * Makefile (update-copyright): Also exclude any file that includes
7638         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
7639         code that merely generates the comment.
7640
7641 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7642
7643         New module 'u8-grapheme-len'.
7644         * modules/unigbrk/u8-grapheme-len: New file.
7645         * modules/unigbrk/u8-grapheme-len-tests: New file.
7646         * lib/unigbrk.in.h: Add prototype for new function.
7647         * lib/unigbrk/u8-grapheme-len.c: New file.
7648         * tests/unigbrk/test-u8-grapheme-len.c: New file.
7649
7650         New module 'u16-grapheme-len'.
7651         * modules/unigbrk/u16-grapheme-len: New file.
7652         * modules/unigbrk/u16-grapheme-len-tests: New file.
7653         * lib/unigbrk.in.h: Add prototype for new function.
7654         * lib/unigbrk/u16-grapheme-len.c: New file.
7655         * tests/unigbrk/test-u16-grapheme-len.c: New file.
7656
7657         New module 'u32-grapheme-len'.
7658         * modules/unigbrk/u32-grapheme-len: New file.
7659         * modules/unigbrk/u32-grapheme-len-tests: New file.
7660         * lib/unigbrk.in.h: Add prototype for new function.
7661         * lib/unigbrk/u32-grapheme-len.c: New file.
7662         * tests/unigbrk/test-u32-grapheme-len.c: New file.
7663
7664         New module 'u8-grapheme-next'.
7665         * modules/unigbrk/u8-grapheme-next: New file.
7666         * modules/unigbrk/u8-grapheme-next-tests: New file.
7667         * lib/unigbrk.in.h: Add prototype for new function.
7668         * lib/unigbrk/u8-grapheme-next.c: New file.
7669         * tests/unigbrk/test-u8-grapheme-next.c: New file.
7670
7671         New module 'u16-grapheme-next'.
7672         * modules/unigbrk/u16-grapheme-next: New file.
7673         * modules/unigbrk/u16-grapheme-next-tests: New file.
7674         * lib/unigbrk.in.h: Add prototype for new function.
7675         * lib/unigbrk/u16-grapheme-next.c: New file.
7676         * tests/unigbrk/test-u16-grapheme-next.c: New file.
7677
7678         New module 'u32-grapheme-next'.
7679         * modules/unigbrk/u32-grapheme-next: New file.
7680         * modules/unigbrk/u32-grapheme-next-tests: New file.
7681         * lib/unigbrk.in.h: Add prototype for new function.
7682         * lib/unigbrk/u32-grapheme-next.c: New file.
7683         * tests/unigbrk/test-u32-grapheme-next.c: New file.
7684
7685         New module 'u8-grapheme-prev'.
7686         * modules/unigbrk/u8-grapheme-prev: New file.
7687         * modules/unigbrk/u8-grapheme-prev-tests: New file.
7688         * lib/unigbrk.in.h: Add prototype for new function.
7689         * lib/unigbrk/u8-grapheme-prev.c: New file.
7690         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
7691
7692         New module 'u16-grapheme-prev'.
7693         * modules/unigbrk/u16-grapheme-prev: New file.
7694         * modules/unigbrk/u16-grapheme-prev-tests: New file.
7695         * lib/unigbrk.in.h: Add prototype for new function.
7696         * lib/unigbrk/u16-grapheme-prev.c: New file.
7697         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
7698
7699         New module 'u32-grapheme-prev'.
7700         * modules/unigbrk/u32-grapheme-prev: New file.
7701         * modules/unigbrk/u32-grapheme-prev-tests: New file.
7702         * lib/unigbrk.in.h: Add prototype for new function.
7703         * lib/unigbrk/u32-grapheme-prev.c: New file.
7704         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
7705
7706         New module 'u8-grapheme-breaks'.
7707         * modules/unigbrk/u8-grapheme-breaks: New file.
7708         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
7709         * lib/unigbrk.in.h: Add prototype for new function.
7710         * lib/unigbrk/u8-grapheme-breaks.c: New file.
7711         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
7712
7713         New module 'u16-grapheme-breaks'.
7714         * modules/unigbrk/u16-grapheme-breaks: New file.
7715         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
7716         * lib/unigbrk.in.h: Add prototype for new function.
7717         * lib/unigbrk/u16-grapheme-breaks.c: New file.
7718         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
7719
7720         New module 'u32-grapheme-breaks'.
7721         * modules/unigbrk/u32-grapheme-breaks: New file.
7722         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
7723         * lib/unigbrk.in.h: Add prototype for new function.
7724         * lib/unigbrk/u32-grapheme-breaks.c: New file.
7725         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
7726
7727         New module 'ulc-grapheme-breaks'.
7728         * modules/unigbrk/ulc-grapheme-breaks: New file.
7729         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
7730         * m4/locale-ar.m4: New file.
7731         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
7732         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
7733         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
7734
7735 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
7736
7737         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
7738         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
7739         modified how this file was generated before I initially submitted
7740         the module, but failed to regenerate it.  This meant that several
7741         of the level2 entries were wrong.
7742         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
7743         Remove the division-by-2 that is folded into the table now that
7744         gbrkprop.h has been regenerated properly.  Now -1 entries are
7745         handled correctly.
7746
7747         New module 'unigbrk/uc-gbrk-prop-tests'.
7748         * modules/unigbrk/uc-gbrk-prop-tests: New file.
7749         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
7750         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
7751         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
7752
7753 2011-01-01  Bruno Haible  <bruno@clisp.org>
7754
7755         Avoid use of hexadecimal escapes.
7756         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
7757         instead of hexadecimal escapes.
7758
7759 2011-01-01  Jim Meyering  <meyering@redhat.com>
7760
7761         maint: new rule to update copyright year ranges
7762         * Makefile (update-copyright): New rule.
7763
7764         maint: indent with TABs in Makefile
7765         * Makefile: Expand leading sequences of spaces to TABs
7766
7767         version-etc: update the copyright year it reports
7768         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
7769
7770 2010-12-31  Bruno Haible  <bruno@clisp.org>
7771
7772         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
7773         * lib/isfinite.c (zerof, zerod, zerol): New variables.
7774         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
7775         zero.
7776
7777 2010-12-31  Bruno Haible  <bruno@clisp.org>
7778
7779         pwrite: Work around HP-UX 11.11 bug.
7780         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
7781         works and set REPLACE_PWRITE if not.
7782         * lib/pwrite.c (pwrite): Add an implementation that uses the system
7783         function.
7784         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
7785
7786 2010-12-31  Bruno Haible  <bruno@clisp.org>
7787
7788         pread: Work around HP-UX 11 bugs.
7789         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
7790         and set REPLACE_PREAD if not.
7791         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
7792
7793 2010-12-31  Eric Blake  <eblake@redhat.com>
7794
7795         nl_langinfo: fix YESEXPR on Irix 6.5
7796         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
7797         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
7798         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
7799         it.
7800
7801 2010-12-31  Bruno Haible  <bruno@clisp.org>
7802
7803         iconv: Document HP-UX 11 bug.
7804         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
7805
7806 2010-12-31  Bruno Haible  <bruno@clisp.org>
7807
7808         ldexpl: Fix link error on HP-UX 11.
7809         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
7810         LDEXPL_LIBM, using $ISNANL_LIBM.
7811
7812 2010-12-31  Eric Blake  <eblake@redhat.com>
7813
7814         ftello: avoid compilation failure with SunStudio c89
7815         * lib/ftello.c (ftello): Use lseek, not llseek.
7816
7817         tests: avoid failing coreutils tests on cygwin
7818         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
7819         (create_exe_shims_): Return 0 when skipping.
7820
7821 2010-12-31  Bruno Haible  <bruno@clisp.org>
7822
7823         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
7824         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
7825
7826 2010-12-31  Bruno Haible  <bruno@clisp.org>
7827
7828         waitpid: Fix link error in C++ mode.
7829         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
7830
7831 2010-12-31  Bruno Haible  <bruno@clisp.org>
7832
7833         isnan: Use GCC built-ins when possible.
7834         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
7835         __builtin_isnan.
7836         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
7837         (isnan): Define using GCC built-ins for GCC >= 4.0.
7838
7839 2010-12-31  Bruno Haible  <bruno@clisp.org>
7840
7841         isnand: Fix mistake.
7842         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
7843         __builtin_isnand.
7844
7845 2010-12-31  Bruno Haible  <bruno@clisp.org>
7846
7847         open: Avoid C++ error on HP-UX 11.
7848         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
7849
7850 2010-12-31  Bruno Haible  <bruno@clisp.org>
7851
7852         time_r: Add missing declarations on HP-UX 11.
7853         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
7854         instead of HAVE_LOCALTIME_R.
7855         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
7856         HAVE_LOCALTIME_R always.
7857         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
7858         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
7859         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
7860         HAVE_LOCALTIME_R.
7861         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
7862         * doc/posix-functions/localtime_r.texi: Likewise.
7863
7864 2010-12-29  Eric Blake  <eblake@redhat.com>
7865
7866         mountlist: tweak previous commit
7867         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
7868         Reported by Paul Eggert.
7869
7870         mountlist: fix local drive detection on cygwin
7871         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
7872         that works for cygwin.
7873
7874 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
7875
7876         ftoastr, snprintf: ftoastr + snprintf module
7877         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
7878         since the snprintf module now should be good enough here.
7879         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
7880         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
7881         and gl_MODULE_INDICATOR([snprintf]), but the former enables
7882         GNULIB_SNPRINTF only for the test directory, and the latter
7883         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
7884         seems to suffice by itself.
7885
7886 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
7887
7888         alloca: one step towards thread-safety
7889         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
7890         need for a static variable.  All callers changed.  This does not
7891         make the alloca replacement thread-safe, but it's one step.
7892
7893         tests: minor indenting change
7894         * tests/init.sh: Sync from coreutils housekeeping patch
7895         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
7896         to keep lines within 80 columns.
7897
7898 2010-12-28  Jim Meyering  <meyering@redhat.com>
7899
7900         regex: don't infloop on persistent failing calloc
7901         * lib/regexec.c (build_trtable): Return failure indication upon
7902         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
7903         In glibc, this was fixed for version 2.13:
7904         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
7905
7906 2010-12-28  Bruno Haible  <bruno@clisp.org>
7907             Paul Eggert <eggert@cs.ucla.edu>
7908
7909         linkat: Make implementation robust against system behaviour variations.
7910         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
7911         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
7912         way, and to -2 if it needs a generic runtime test.
7913         * lib/linkat.c (solaris_optimized_link_immediate,
7914         solaris_optimized_link_follow): New functions.
7915         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
7916         (check_same_link): Use it.
7917
7918 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
7919
7920         New module 'unigbrk/base'.
7921         * modules/unigbrk/base: New file.
7922         * lib/unigbrk.in.h: New file.
7923
7924         New module 'unigbrk/uc-gbrk-prop'.
7925         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
7926         * modules/unigbrk/uc-gbrk-prop: New file.
7927         * lib/unigbrk/gbrkprop.h: New file.
7928         * lib/unigbrk/uc-gbrk-prop.c: New file.
7929
7930         New module 'unigbrk/uc-is-grapheme-break'.
7931         * modules/unigbrk/uc-is-grapheme-break: New file.
7932         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
7933         * lib/unigbrk/uc-is-grapheme-break.c: New file.
7934         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
7935         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
7936         * tests/unigbrk/GraphemeBreakTest.txt: New file.
7937
7938         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
7939
7940 2010-12-27  Bruno Haible  <bruno@clisp.org>
7941
7942         linkat test: Avoid failure on Solaris 11 2010-11.
7943         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
7944
7945 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
7946
7947         utimens: work around glibc rounding bug on more platforms
7948         * lib/utimens.c (fdutimens): Work around rounding bug even if
7949         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
7950         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
7951
7952 2010-12-27  Bruno Haible  <bruno@clisp.org>
7953
7954         select tests: Improve comments.
7955         * tests/test-select.c (do_select): Add comments.
7956
7957 2010-12-27  Bruno Haible  <bruno@clisp.org>
7958
7959         select tests: Safer way of handling timeout.
7960         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
7961         at every invocation.
7962
7963 2010-12-27  Bruno Haible  <bruno@clisp.org>
7964
7965         select tests: Use 'bool' where appropriate.
7966         * tests/test-select.c (connect_to_socket): Change argument type to
7967         'bool'.
7968
7969 2010-12-27  Bruno Haible  <bruno@clisp.org>
7970
7971         select tests: Use existing modules.
7972         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
7973         (configure.ac): Don't test for unistd.h.
7974         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
7975         declared in <unistd.h>.
7976
7977 2010-12-27  Bruno Haible  <bruno@clisp.org>
7978
7979         mbrtowc: Work around a Solaris 7 bug.
7980         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
7981         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
7982         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
7983         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
7984         MBRTOWC_NULL_ARG1_BUG.
7985         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
7986         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
7987         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
7988         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
7989
7990 2010-12-27  Jim Meyering  <meyering@redhat.com>
7991
7992         read-file.c: tweak syntax
7993         * lib/read-file.c (fread_file): Remove space after "*" in function
7994         definitions.
7995
7996 2010-12-27  Bruno Haible  <bruno@clisp.org>
7997
7998         times test: Avoid gcc warnings on OSF/1.
7999         * tests/test-times.c (main): Cast printf arguments from clock_t to
8000         'long int'.
8001
8002 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
8003
8004         utimens: work around glibc rounding bug on older Linux kernels
8005         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
8006         on Linux with a glibc whose utimes might not work, then work
8007         around a longstanding glibc bug involving rounding rather than
8008         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
8009         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
8010
8011 2010-12-26  Bruno Haible  <bruno@clisp.org>
8012
8013         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
8014         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
8015         _GL_CXXALIAS_SYS.
8016         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8017
8018 2010-12-26  Bruno Haible  <bruno@clisp.org>
8019
8020         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
8021         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
8022         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
8023         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
8024         looking for the declaration.
8025         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
8026         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
8027         problem.
8028         * doc/posix-functions/inet_pton.texi: Likewise.
8029
8030 2010-12-26  Bruno Haible  <bruno@clisp.org>
8031
8032         arpa_inet: Use the common idioms with C++ support.
8033         * lib/arpa_inet.in.h: Include c++defs.h.
8034         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
8035         support.
8036         * modules/arpa_inet (Depends-on): Add c++defs.
8037         (Makefile.am): Substitute the contents of c++defs.h.
8038         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
8039         * modules/arpa_inet-c++-tests: New file.
8040         * tests/test-arpa_inet-c++.cc: New file.
8041
8042 2010-12-25  Bruno Haible  <bruno@clisp.org>
8043
8044         Fix more C++ link errors on Solaris 8.
8045         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
8046         $(LIB_EACCESS).
8047         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
8048         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
8049         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
8050         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
8051         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
8052
8053 2010-12-25  Bruno Haible  <bruno@clisp.org>
8054
8055         printf-posix: Fix link error when a non-GCC compiler is used.
8056         * lib/stdio.in.h (printf): When not using GCC, override printf
8057         correctly.
8058         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8059
8060 2010-12-25  Bruno Haible  <bruno@clisp.org>
8061
8062         strerror_r-posix: Update doc.
8063         * doc/posix-functions/strerror_r.texi: Update doc about the return
8064         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
8065
8066 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8067
8068         utimens: simplify the logic of the previous change
8069         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
8070         This should not affect whether the test succeeds or fails.
8071
8072         utimens: configure better on hosts with NFS clock skew
8073         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
8074         uses the clock of the local host.  It might use the clock of the
8075         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
8076         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
8077
8078 2010-12-25  Bruno Haible  <bruno@clisp.org>
8079
8080         ptsname test: Avoid failure on Solaris.
8081         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
8082         open a pseudo-terminal; don't use BSD-style ptys.
8083         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
8084
8085 2010-12-25  Bruno Haible  <bruno@clisp.org>
8086
8087         ptsname: Avoid ERANGE failure on some systems.
8088         * lib/ptsname.c (buffer): Increase size.
8089
8090 2010-12-25  Bruno Haible  <bruno@clisp.org>
8091
8092         rename, renameat: Avoid test failures at NFS mounted locations.
8093         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
8094         so that subsequent mkdir calls succeed.
8095
8096 2010-12-25  Bruno Haible  <bruno@clisp.org>
8097
8098         iswblank: Fix C++ link error on Solaris 8.
8099         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
8100         _GL_FUNCDECL_SYS.
8101
8102 2010-12-25  Bruno Haible  <bruno@clisp.org>
8103
8104         unistd: Fix C++ link error on Solaris 8.
8105         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
8106
8107 2010-12-25  Bruno Haible  <bruno@clisp.org>
8108
8109         readlink doc: Mention an old glibc bug.
8110         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
8111
8112 2010-12-25  Bruno Haible  <bruno@clisp.org>
8113
8114         fcntl-h: Fix for use of C++ on glibc systems.
8115         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
8116         also on glibc systems in C++ mode.
8117         Reported by Gary V. Vaughan <gary@gnu.org>.
8118
8119 2010-12-25  Bruno Haible  <bruno@clisp.org>
8120
8121         roundl-ieee: Make it work on OSF/1 5.1 with cc.
8122         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
8123
8124 2010-12-25  Bruno Haible  <bruno@clisp.org>
8125
8126         truncl-ieee: Make it work on OSF/1 5.1 with cc.
8127         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
8128         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
8129         test whether truncl works according to ISO C 99 with IEC 60559.
8130         * m4/truncl-ieee.m4: New file.
8131         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
8132         m4/signbit.m4.
8133         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
8134
8135 2010-12-25  Bruno Haible  <bruno@clisp.org>
8136
8137         ceill-ieee: Make it work on OSF/1 5.1 with cc.
8138         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
8139         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
8140         test whether ceill works according to ISO C 99 with IEC 60559.
8141         * m4/ceill-ieee.m4: New file.
8142         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
8143         m4/signbit.m4.
8144         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
8145
8146 2010-12-25  Bruno Haible  <bruno@clisp.org>
8147
8148         Ensure all prerequisites of <wchar.h> are included.
8149         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
8150         before <wchar.h>.
8151         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
8152         gl_MBRLEN_NUL_RETVAL): Likewise.
8153         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
8154         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
8155         AC_FUNC_MBRTOWC): Likewise.
8156         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8157         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
8158         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
8159         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
8160         Likewise.
8161         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8162         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
8163         (gl_WCHAR_H): Improve comments.
8164         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
8165
8166 2010-12-25  Bruno Haible  <bruno@clisp.org>
8167
8168         strtok_r: Fix C syntax error in autoconf macro.
8169         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
8170         characters in test program.
8171
8172 2010-12-24  Bruno Haible  <bruno@clisp.org>
8173
8174         ceil, trunc, round: Fix gcc warnings.
8175         * lib/ceil.c (MIN): Undefine before redefining.
8176         * lib/trunc.c (MIN): Likewise.
8177         * lib/round.c (MIN): Likewise.
8178         Include <math.h> first.
8179
8180 2010-12-24  Bruno Haible  <bruno@clisp.org>
8181
8182         select tests: Avoid failures on OSF/1 5.1.
8183         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
8184         failure of closing the last socket; it may fail with ECONNRESET.
8185
8186 2010-12-24  Eric Blake  <eblake@redhat.com>
8187
8188         stdint: avoid HP-UX 10.20 preprocessor bug
8189         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
8190         than #if.
8191         * tests/test-floor2.c (main): Likewise.
8192         Reported by Peter O'Gorman.
8193
8194         pipe: make obsoletion transition easier
8195         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
8196         * modules/pipe (Files): Include revived file.
8197         (Include): Drop reference, to mirror getdate's behavior.
8198
8199 2010-12-24  Bruno Haible  <bruno@clisp.org>
8200
8201         sys_socket: Hide mismatch of declarations on NonStop Kernel.
8202         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
8203         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
8204         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8205
8206 2010-12-24  Bruno Haible  <bruno@clisp.org>
8207
8208         gethostname: Ensure declaration on NonStop Kernel.
8209         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
8210         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8211
8212 2010-12-24  Bruno Haible  <bruno@clisp.org>
8213
8214         sys_select: Ensure all necessary types on NonStop Kernel.
8215         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
8216         include <sys/time.h>.
8217         * doc/posix-headers/sys_select.texi: Mention that it's missing on
8218         NonStop Kernel.
8219         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8220
8221 2010-12-24  Bruno Haible  <bruno@clisp.org>
8222
8223         sys_select: Remove unneeded include.
8224         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
8225         have <sys/select.h>.
8226
8227 2010-12-24  Bruno Haible  <bruno@clisp.org>
8228
8229         gethostname: Provide a fallback for HOST_NAME_MAX.
8230         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
8231         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
8232         instead.
8233         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8234
8235 2010-12-24  Bruno Haible  <bruno@clisp.org>
8236
8237         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
8238         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
8239         (SA_RESTART): Likewise.
8240         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8241
8242 2010-12-24  Bruno Haible  <bruno@clisp.org>
8243
8244         signal: Define NSIG.
8245         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
8246         * tests/test-signal.c (nsig): New variable.
8247         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8248
8249 2010-12-24  Bruno Haible  <bruno@clisp.org>
8250
8251         rename, renameat: Avoid test failures on OSF/1 5.1.
8252         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
8253         alternative error codes.
8254         * tests/test-renameat.c (main): Likewise.
8255
8256 2010-12-24  Bruno Haible  <bruno@clisp.org>
8257
8258         *printf: Detect large precisions bug on Solaris 10/SPARC.
8259         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
8260         by Paul Eggert.
8261         * tests/test-snprintf-posix.h (test_function): Add this test code here
8262         too.
8263         * tests/test-sprintf-posix.h (test_function): Likewise.
8264         * tests/test-vasnprintf-posix.c (test_function): Likewise.
8265         * tests/test-vasprintf-posix.c (test_function): Likewise.
8266         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
8267         around by gnulib.
8268         * doc/posix-functions/printf.texi: Likewise.
8269         * doc/posix-functions/snprintf.texi: Likewise.
8270         * doc/posix-functions/sprintf.texi: Likewise.
8271         * doc/posix-functions/vfprintf.texi: Likewise.
8272         * doc/posix-functions/vprintf.texi: Likewise.
8273         * doc/posix-functions/vsnprintf.texi: Likewise.
8274         * doc/posix-functions/vsprintf.texi: Likewise.
8275         * doc/posix-functions/dprintf.texi: Undo last commit.
8276         * doc/posix-functions/vdprintf.texi: Likewise.
8277
8278 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
8279
8280         tests: port test-fdutimensat.c to Solaris 8
8281         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
8282         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
8283         On Solaris 8, it fails with errno == ENOSYS, because there is no
8284         futimens (so it can't use the fd), and there is no lutimens (so it
8285         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
8286
8287         vsnprintf: make more consistent with snprintf; doc fixes
8288
8289         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
8290         the byte count return problem was promoted from the snprintf-posix
8291         to the snprintf module.
8292         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8293         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
8294         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
8295         * tests/test-snprintf.c (main): Check the byte count returned.
8296         * tests/test-vsnprintf.c (main): Likewise.
8297
8298 2010-12-23  Eric Blake  <eblake@redhat.com>
8299
8300         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
8301         * modules/sigpipe (License): Relax license.
8302
8303 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8304
8305         doc: document Solaris printf bug with large float precisions
8306         * doc/posix-functions/dprintf.texi (dprintf):
8307         * doc/posix-functions/fprintf.texi (fprintf):
8308         * doc/posix-functions/printf.texi (printf):
8309         * doc/posix-functions/snprintf.texi (snprintf):
8310         * doc/posix-functions/sprintf.texi (sprintf):
8311         * doc/posix-functions/vdprintf.texi (vdprintf):
8312         * doc/posix-functions/vfprintf.texi (vfprintf):
8313         * doc/posix-functions/vprintf.texi (vprintf):
8314         * doc/posix-functions/vsnprintf.texi (vsnprintf):
8315         * doc/posix-functions/vsprintf.texi (vsprintf):
8316         Mention that these functions mishandle large floating point
8317         precisions on Solaris 10.  The same bug is also present in Solaris
8318         8, and I assume earlier.  This causes "cd gnulib-tests; make
8319         check" to fail on Solaris 8 (and I assume, later) when building
8320         the latest coreutils, in test-vasprintf-posix's call to
8321         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
8322         the wide flavors (e.g., wprintf) so this patch just updates the
8323         documentation for the narrow ones.
8324
8325         test-posixtm.c: add two tests
8326         * tests/test-posixtm.c: Add two tests, to highlight the
8327         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
8328         around this bug; this is merely to document it.
8329
8330 2010-12-22  Bruno Haible  <bruno@clisp.org>
8331
8332         getlogin_r: Work around portability problem on OSF/1.
8333         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
8334         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
8335         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
8336         test for a truncated result.
8337         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
8338         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
8339         * modules/getlogin_r (Depends-on): Add memchr.
8340         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
8341
8342 2010-12-22  Bruno Haible  <bruno@clisp.org>
8343
8344         ptsname: Avoid test failure on OSF/1 5.1.
8345         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
8346         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
8347         (same_slave): New function.
8348         (main): Use it to compare ptsname's result with the expected file name.
8349
8350 2010-12-22  Bruno Haible  <bruno@clisp.org>
8351
8352         Port extended stdio modules to HP NonStop Kernel.
8353         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
8354         macros.
8355         * lib/fbufmode.c: Update comments.
8356         * lib/fflush.c: Likewise.
8357         * lib/fpurge.c: Likewise.
8358         * lib/freadable.c: Likewise.
8359         * lib/freadahead.c: Likewise.
8360         * lib/freading.c: Likewise.
8361         * lib/freadptr.c: Likewise.
8362         * lib/freadseek.c: Likewise.
8363         * lib/fseeko.c: Likewise.
8364         * lib/fseterr.c: Likewise.
8365         * lib/fwritable.c: Likewise.
8366         * lib/fwriting.c: Likewise.
8367         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
8368
8369 2010-12-22  Bruno Haible  <bruno@clisp.org>
8370
8371         ttyname_r: Work around bug on OSF/1 5.1.
8372         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
8373         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
8374         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
8375         present.
8376         * lib/ttyname_r.c (ttyname_r): Update comments.
8377
8378 2010-12-22  Bruno Haible  <bruno@clisp.org>
8379
8380         round: Implement result sign according to IEEE 754.
8381         * lib/round.c (MIN, MINUS_ZERO): New macros.
8382         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
8383         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
8384         * tests/test-round-ieee.c (main): Likewise.
8385         * tests/test-roundl-ieee.c (main): Likewise.
8386
8387         trunc: Implement result sign according to IEEE 754.
8388         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
8389         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
8390         * tests/test-trunc2.c: Include minus-zero.h.
8391         (MINUS_ZERO): New macro.
8392         (trunc_reference): Keep in sync with lib/trunc.c.
8393         * tests/test-truncf2.c: Include minus-zero.h.
8394         (MINUS_ZERO): New macro.
8395         (truncf_reference): Keep in sync with lib/trunc.c.
8396         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
8397         * tests/test-trunc-ieee.c (main): Likewise.
8398         * tests/test-truncl-ieee.c (main): Likewise.
8399
8400         ceil: Implement result sign according to IEEE 754.
8401         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
8402         (FUNC): Return -0.0 for -1 < x < 0.
8403         * tests/test-ceil2.c: Include minus-zero.h.
8404         (MINUS_ZERO): New macro.
8405         (ceil_reference): Keep in sync with lib/ceil.c.
8406         * tests/test-ceilf2.c: Include minus-zero.h.
8407         (MINUS_ZERO): New macro.
8408         (ceilf_reference): Keep in sync with lib/ceil.c.
8409         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
8410         * tests/test-ceil-ieee.c (main): Likewise.
8411         * tests/test-ceill-ieee.c (main): Likewise.
8412
8413         floor: Implement result sign according to IEEE 754.
8414         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
8415         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
8416         * tests/test-floorf2.c (floorf_reference): Likewise.
8417         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
8418         * tests/test-floor-ieee.c (main): Likewise.
8419         * tests/test-floorl-ieee.c (main): Likewise.
8420
8421 2010-12-22  Bruno Haible  <bruno@clisp.org>
8422
8423         getaddrinfo: Update doc.
8424         * doc/posix-functions/gai_strerror.texi: Return type is also different
8425         on AIX and HP-UX.
8426
8427 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
8428
8429         getaddrinfo, inet_ntop: Update doc for Solaris.
8430         * doc/posix-functions/gai_strerror.texi: Return type is also an
8431         issue on Solaris 9 and earlier.
8432         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
8433         on Solaris 10 and earlier.
8434
8435 2010-12-21  Bruno Haible  <bruno@clisp.org>
8436
8437         New module 'roundl-ieee'.
8438         * modules/roundl-ieee: New file.
8439         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
8440         test whether roundl works according to ISO C 99 with IEC 60559.
8441         * m4/roundl-ieee.m4: New file.
8442         * modules/roundl-ieee-tests: New file.
8443         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
8444         * tests/test-roundl.c (main): Remove signbit tests.
8445         * modules/roundl-tests (Depends-on): Remove signbit.
8446         * doc/posix-functions/roundl.texi: Mention the new module.
8447
8448 2010-12-21  Bruno Haible  <bruno@clisp.org>
8449
8450         New module 'truncl-ieee'.
8451         * modules/truncl-ieee: New file.
8452         * modules/truncl-ieee-tests: New file.
8453         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
8454         * tests/test-truncl.c (main): Remove signbit tests.
8455         * modules/truncl-tests (Depends-on): Remove signbit.
8456         * doc/posix-functions/truncl.texi: Mention the new module.
8457
8458 2010-12-21  Bruno Haible  <bruno@clisp.org>
8459
8460         New module 'ceill-ieee'.
8461         * modules/ceill-ieee: New file.
8462         * modules/ceill-ieee-tests: New file.
8463         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
8464         * tests/test-ceill.c (main): Remove signbit tests.
8465         * modules/ceill-tests (Depends-on): Remove signbit.
8466         * doc/posix-functions/ceill.texi: Mention the new module.
8467
8468 2010-12-21  Bruno Haible  <bruno@clisp.org>
8469
8470         New module 'floorl-ieee'.
8471         * modules/floorl-ieee: New file.
8472         * modules/floorl-ieee-tests: New file.
8473         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
8474         * tests/test-floorl.c (main): Remove signbit tests.
8475         * modules/floorl-tests (Depends-on): Remove signbit.
8476         * doc/posix-functions/floorl.texi: Mention the new module.
8477
8478 2010-12-21  Bruno Haible  <bruno@clisp.org>
8479
8480         New module 'round-ieee'.
8481         * modules/round-ieee: New file.
8482         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
8483         whether round works according to ISO C 99 with IEC 60559.
8484         * m4/round-ieee.m4: New file.
8485         * modules/round-ieee-tests: New file.
8486         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
8487         * tests/test-round1.c (main): Remove signbit tests.
8488         * modules/round-tests (Depends-on): Remove 'signbit'.
8489         * doc/posix-functions/round.texi: Mention the new module.
8490
8491 2010-12-21  Bruno Haible  <bruno@clisp.org>
8492
8493         New module 'trunc-ieee'.
8494         * modules/trunc-ieee: New file.
8495         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
8496         whether trunc works according to ISO C 99 with IEC 60559.
8497         * m4/trunc-ieee.m4: New file.
8498         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
8499         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
8500         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
8501         * modules/trunc-ieee-tests: New file.
8502         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
8503         * tests/test-trunc1.c (main): Remove signbit tests.
8504         * modules/trunc-tests (Depends-on): Remove 'signbit'.
8505         * doc/posix-functions/trunc.texi: Mention the new module.
8506
8507 2010-12-21  Bruno Haible  <bruno@clisp.org>
8508
8509         New module 'ceil-ieee'.
8510         * modules/ceil-ieee: New file.
8511         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
8512         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
8513         ISO C 99 with IEC 60559.
8514         * m4/ceil-ieee.m4: New file.
8515         * modules/ceil (Files): Add lib/ceil.c.
8516         (Depends-on): Add 'float'.
8517         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8518         * lib/math.in.h (ceil): New declaration.
8519         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
8520         REPLACE_CEIL.
8521         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
8522         * modules/ceil-ieee-tests: New file.
8523         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
8524         * tests/test-math-c++.cc: Check the signature of 'ceil'.
8525         * doc/posix-functions/ceil.texi: Mention the new module.
8526
8527 2010-12-21  Bruno Haible  <bruno@clisp.org>
8528
8529         New module 'floor-ieee'.
8530         * modules/floor-ieee: New file.
8531         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
8532         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
8533         ISO C 99 with IEC 60559.
8534         * m4/floor-ieee.m4: New file.
8535         * modules/floor (Files): Add lib/floor.c.
8536         (Depends-on): Add 'float'.
8537         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
8538         * lib/math.in.h (floor): New declaration.
8539         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
8540         REPLACE_FLOOR.
8541         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
8542         * modules/floor-ieee-tests: New file.
8543         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
8544         * tests/test-math-c++.cc: Check the signature of 'floor'.
8545         * doc/posix-functions/floor.texi: Mention the new module.
8546
8547 2010-12-21  Bruno Haible  <bruno@clisp.org>
8548
8549         New module 'roundf-ieee'.
8550         * modules/roundf-ieee: New file.
8551         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
8552         test whether roundf works according to ISO C 99 with IEC 60559.
8553         * m4/roundf-ieee.m4: New file.
8554         * modules/roundf-ieee-tests: New file.
8555         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
8556         * tests/test-roundf1.c (main): Remove signbit tests.
8557         * modules/roundf-tests (Depends-on): Remove 'signbit'.
8558         * doc/posix-functions/roundf.texi: Mention the new module.
8559
8560 2010-12-21  Bruno Haible  <bruno@clisp.org>
8561
8562         New module 'truncf-ieee'.
8563         * modules/truncf-ieee: New file.
8564         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
8565         test whether truncf works according to ISO C 99 with IEC 60559.
8566         * m4/truncf-ieee.m4: New file.
8567         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
8568         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
8569         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
8570         * modules/truncf-ieee-tests: New file.
8571         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
8572         * tests/test-truncf1.c (main): Remove signbit tests.
8573         * modules/truncf-tests (Depends-on): Remove 'signbit'.
8574         * doc/posix-functions/truncf.texi: Mention the new module.
8575
8576 2010-12-21  Bruno Haible  <bruno@clisp.org>
8577
8578         New module 'ceilf-ieee'.
8579         * modules/ceilf-ieee: New file.
8580         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
8581         test whether ceilf works according to ISO C 99 with IEC 60559.
8582         * m4/ceilf-ieee.m4: New file.
8583         * modules/ceilf-ieee-tests: New file.
8584         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
8585         * tests/test-ceilf1.c (main): Remove signbit tests.
8586         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
8587         * doc/posix-functions/ceilf.texi: Mention the new module.
8588
8589 2010-12-21  Bruno Haible  <bruno@clisp.org>
8590
8591         New module 'floorf-ieee'.
8592         * modules/floorf-ieee: New file.
8593         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
8594         test whether floorf works according to ISO C 99 with IEC 60559.
8595         * m4/floorf-ieee.m4: New file.
8596         * modules/floorf-ieee-tests: New file.
8597         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
8598         * tests/test-floorf1.c (main): Remove signbit tests.
8599         * modules/floorf-tests (Depends-on): Remove 'signbit'.
8600         * doc/posix-functions/floorf.texi: Mention the new module.
8601
8602 2010-12-21  Bruno Haible  <bruno@clisp.org>
8603
8604         Support for minus zero in autoconf macros.
8605         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
8606         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
8607         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
8608         * tests/minus-zero.h: Update comments.
8609
8610 2010-12-21  Bruno Haible  <bruno@clisp.org>
8611
8612         Tests for module 'ceil'.
8613         * modules/ceil-tests: New file.
8614         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
8615         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
8616
8617 2010-12-21  Bruno Haible  <bruno@clisp.org>
8618
8619         Tests for module 'floor'.
8620         * modules/floor-tests: New file.
8621         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
8622         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
8623
8624 2010-12-21  Bruno Haible  <bruno@clisp.org>
8625
8626         math: Fix indentation.
8627         * lib/math.in.h (floorf): Fix indentation.
8628
8629 2010-12-21  Bruno Haible  <bruno@clisp.org>
8630
8631         Fix cross-compilation guesses on Solaris.
8632         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
8633         not match "solaris2.10".
8634         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
8635         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
8636         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
8637
8638 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
8639
8640         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
8641         This fixes a problem observed with the latest coreutils snapshot
8642         that caused a test to fail on Solaris 8.  src/csplit.c's call
8643         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
8644         earlier, instead of returning the number of bytes that would have
8645         been generated; this causes csplit to incorrectly report memory
8646         exhaustion.
8647         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
8648         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
8649         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
8650         comments to match.
8651         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
8652         Fix typo in matching older versions of Solaris: "solaris2.10"
8653         is matched by the shell pattern "solaris2.[0-9]*".  This matters
8654         only for guessing while cross-compiling.
8655         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
8656
8657 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
8658
8659         ftoastr: fix comment again
8660         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8661         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
8662         Also, simplify example a bit by using flags = 0.
8663
8664 2010-12-20  Bruno Haible  <bruno@clisp.org>
8665
8666         round*, trunc*: Update documentation regarding glibc.
8667         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
8668         * doc/posix-functions/round.texi: Likewise.
8669         * doc/posix-functions/roundl.texi: Likewise.
8670         * doc/posix-functions/truncf.texi: Likewise.
8671         * doc/posix-functions/trunc.texi: Likewise.
8672         * doc/posix-functions/truncl.texi: Likewise.
8673
8674 2010-12-20  Bruno Haible  <bruno@clisp.org>
8675
8676         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
8677         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
8678         * doc/posix-functions/round.texi: Likewise.
8679         * doc/posix-functions/roundl.texi: Likewise.
8680
8681 2010-12-20  Bruno Haible  <bruno@clisp.org>
8682
8683         ttyname_r: Add missing declaration on HP-UX 11.
8684         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
8685         HAVE_TTYNAME_R.
8686         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
8687         declared. Set HAVE_TTYNAME_R always.
8688         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8689         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
8690         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
8691         HAVE_TTYNAME_R.
8692         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
8693
8694 2010-12-20  Bruno Haible  <bruno@clisp.org>
8695
8696         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
8697         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
8698         * doc/posix-functions/getlogin_r.texi: Likewise.
8699         * tests/test-getlogin.c: Include <errno.h>.
8700         (main): Avoid test failure on HP-UX 11.11.
8701         * tests/test-getlogin_r.c (main): Likewise.
8702
8703 2010-12-20  Bruno Haible  <bruno@clisp.org>
8704
8705         getlogin_r: Add missing declaration on HP-UX 11.
8706         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
8707         declared also when it exists as a function.
8708         * doc/posix-functions/getlogin_r.texi: Document this workaround.
8709
8710 2010-12-20  Bruno Haible  <bruno@clisp.org>
8711
8712         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
8713         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
8714         through wcrtomb.
8715
8716 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
8717
8718         ftoastr: fix comment
8719         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
8720         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
8721
8722 2010-12-19  Bruno Haible  <bruno@clisp.org>
8723
8724         isnan: Ensure it is a macro.
8725         * lib/math.in.h (isnan): Define as a macro if not already a macro.
8726         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
8727         Solaris.
8728
8729 2010-12-19  Bruno Haible  <bruno@clisp.org>
8730
8731         ldexpl test: Fix link error on OSF/1 5.1.
8732         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
8733
8734 2010-12-19  Bruno Haible  <bruno@clisp.org>
8735
8736         wctype: Make it work in C++ mode on OSF/1 5.1.
8737         * lib/wctype.in.h (iswblank): Declare but not define here.
8738         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
8739         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
8740         * modules/wctype (Files): Add lib/iswblank.c.
8741
8742 2010-12-19  Bruno Haible  <bruno@clisp.org>
8743
8744         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
8745         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
8746         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
8747
8748 2010-12-19  Bruno Haible  <bruno@clisp.org>
8749
8750         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
8751         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
8752         _POSIX_PII_SOCKET.
8753         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
8754         * doc/posix-functions/recvfrom.texi: Likewise.
8755         * doc/posix-functions/send.texi: Likewise.
8756         * doc/posix-functions/sendto.texi: Likewise.
8757
8758 2010-12-19  Bruno Haible  <bruno@clisp.org>
8759
8760         tcgetsid: Add missing declaration on OSF/1 5.1.
8761         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
8762         HAVE_TCGETSID.
8763         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
8764         Don't set HAVE_TCGETSID.
8765         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
8766         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
8767         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
8768         HAVE_TCGETSID.
8769         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
8770
8771 2010-12-19  Bruno Haible  <bruno@clisp.org>
8772
8773         stdio: Fix problem with popen() declaration on OSF/1 5.1.
8774         * lib/stdio.in.h: During the include_next statement, let recursive
8775         includes of this file include only the system header file.
8776
8777 2010-12-19  Bruno Haible  <bruno@clisp.org>
8778
8779         iconv_open: Fix regression from 2010-12-04.
8780         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
8781         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
8782
8783 2010-12-19  Bruno Haible  <bruno@clisp.org>
8784
8785         stdbool test: Avoid a gcc warning.
8786         * tests/test-stdbool.c (main): Fail if e1 is false.
8787         Reported by Jim Meyering.
8788
8789 2010-12-19  Jim Meyering  <meyering@redhat.com>
8790
8791         setenv: restore to working order
8792         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
8793         mistakenly removed.
8794         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
8795         HAVE_SETENV.
8796         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
8797         HAVE_SETENV.
8798
8799 2010-12-19  Bruno Haible  <bruno@clisp.org>
8800
8801         Document some different function declarations on OSF/1 5.1.
8802         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
8803         * doc/posix-functions/inet_ntop.texi: Likewise.
8804         * doc/posix-functions/gethostname.texi: Likewise.
8805         * lib/unistd.in.h (gethostname): Update comment.
8806
8807 2010-12-19  Bruno Haible  <bruno@clisp.org>
8808
8809         doc: Mention vasprintf-posix module.
8810         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
8811         the 'vasprintf-posix' module.
8812         * doc/glibc-functions/vasprintf.texi: Likewise.
8813
8814 2010-12-19  Bruno Haible  <bruno@clisp.org>
8815
8816         unsetenv: Add missing declaration on OSF/1 5.1.
8817         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
8818         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
8819         Don't set HAVE_UNSETENV. In the test program, set _BSD.
8820         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
8821         not HAVE_UNSETENV.
8822         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
8823         HAVE_UNSETENV.
8824         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
8825
8826 2010-12-19  Bruno Haible  <bruno@clisp.org>
8827
8828         setenv: Add missing declaration on OSF/1 5.1.
8829         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
8830         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
8831         declared. Don't set HAVE_SETENV.
8832         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
8833         not HAVE_SETENV.
8834         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
8835         HAVE_SETENV.
8836         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
8837
8838 2010-12-19  Bruno Haible  <bruno@clisp.org>
8839
8840         nl_langinfo tests: Avoid gcc warning.
8841         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
8842
8843 2010-12-19  Bruno Haible  <bruno@clisp.org>
8844
8845         mknod: Avoid error in C++ mode on OSF/1 with GCC.
8846         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
8847         _GL_CXXALIAS_SYS.
8848
8849 2010-12-19  Bruno Haible  <bruno@clisp.org>
8850
8851         stdbool: Relax test.
8852         * tests/test-stdbool.c (e): Don't require that casts from a variable's
8853         address to 'bool' work in static initializer, for compilers other than
8854         GCC.
8855
8856 2010-12-19  Bruno Haible  <bruno@clisp.org>
8857
8858         ftello: Add missing declaration on OSF/1 5.1.
8859         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
8860         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
8861         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
8862         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
8863         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
8864
8865 2010-12-19  Bruno Haible  <bruno@clisp.org>
8866
8867         fseeko: Add missing declaration on OSF/1 5.1.
8868         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
8869         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
8870         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
8871         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
8872         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
8873
8874 2010-12-19  Bruno Haible  <bruno@clisp.org>
8875
8876         fchdir: Add missing declaration on OSF/1 5.1.
8877         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
8878         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
8879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
8880         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
8881         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
8882
8883 2010-12-19  Bruno Haible  <bruno@clisp.org>
8884
8885         relocatable-prog-wrapper: Separate from relocatable-prog.
8886         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
8887         uninstall-relocwrapper rule here.
8888         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
8889         Reported by Ian Beckwith <ianb@erislabs.net>.
8890
8891 2010-12-19  Bruno Haible  <bruno@clisp.org>
8892
8893         unistr/u8-mbsnlen: Add missing dependency.
8894         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
8895         Reported by Ian Beckwith <ianb@erislabs.net>.
8896
8897 2010-12-19  Bruno Haible  <bruno@clisp.org>
8898
8899         iconv: Make it possible again to use this module without 'iconv-h'.
8900         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
8901         if it is not defined.
8902         Reported by Ian Beckwith <ianb@erislabs.net>.
8903
8904 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8905
8906         acl: port to Solaris 8 when copying from tmpfs to ufs
8907         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
8908         error number.  Problem observed on Solaris 8 with latest
8909         coreutils, with "mv A B", where A is on a tmpfs file system and B
8910         is on a ufs file system.  This caused coreutils' mv/part-symlink
8911         test to fail.
8912
8913         tests: set fail=0 at start
8914         * tests/init.sh (setup_): Move fail=0 initialization here ...
8915         (mktempd_): ... from here, so that tests can rely on fail being
8916         set to 0 initially.  This fixes a problem in coreutils; see:
8917         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
8918
8919 2010-12-18  Bruno Haible  <bruno@clisp.org>
8920
8921         memmem-simple: Stylistic changes.
8922         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
8923         Fix preprocessor directive indentation.
8924
8925 2010-12-15  Pádraig Brady <P@draigBrady.com>
8926
8927         memmem, memmem-simple: reorganize and expand empty needle check
8928         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
8929         functional checks to memmem-simple so that one has a fully functional
8930         memmem by using just this module.
8931         Restrict the performance only check to the memmem module.
8932         Also expand the empty needle check to ensure the correct
8933         pointer is returned, not just a non NULL pointer.
8934         * doc/glibc-functions/memmem.texi: Rearrange the portability
8935         documentation to correlate with the rearranged checks.
8936         Clarify exactly how the memmem and memmem-simple modules
8937         relate to each other.
8938
8939 2010-12-15  Pádraig Brady <P@draigBrady.com>
8940             Bruno Haible  <bruno@clisp.org>
8941
8942         Improve cross-compilation guesses for uClibc.
8943         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
8944         that uClibc does not have the glibc bug.
8945         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
8946         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
8947
8948 2010-12-14  Eric Blake  <eblake@redhat.com>
8949
8950         configmake: provide fallbacks for oldest supported autotools
8951         * m4/configmake.m4: New file.
8952         * modules/configmake (Files): Ship it.
8953         (configure.ac): Use it to guarantee fallbacks.
8954
8955 2010-12-13  Pádraig Brady <P@draigBrady.com>
8956
8957         read-file: Improve handling of large files
8958         * lib/read-file.c (fread_file): Minimize realloc()s
8959         for regular files, and better manage sizes around SIZE_MAX.
8960
8961 2010-12-13  Eric Blake  <eblake@redhat.com>
8962
8963         cloexec, fcntl: relax license
8964         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
8965         consent from all contributors.
8966         * modules/fcntl (License): Likewise.
8967
8968 2010-12-10  Bruno Haible  <bruno@clisp.org>
8969
8970         Tests for module 'pipe-posix'.
8971         * modules/pipe-posix-tests: New file.
8972         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
8973
8974 2010-12-10  Bruno Haible  <bruno@clisp.org>
8975
8976         pipe-posix: Make it work in C++ mode.
8977         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
8978         (pipe): Use common idiom, not a macro definition.
8979         * lib/pipe.c: New file.
8980         * m4/pipe.m4: New file.
8981         * modules/pipe-posix (Description): Enhance.
8982         (Files): Add lib/pipe.c, m4/pipe.m4.
8983         (configure.ac): Invoke gl_FUNC_PIPE.
8984         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
8985         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
8986         * tests/test-unistd-c++.cc: Check the signature of pipe.
8987
8988 2010-12-10  Bruno Haible  <bruno@clisp.org>
8989
8990         Rename module 'pipe' to 'spawn-pipe'.
8991         * modules/spawn-pipe: New file, renamed from modules/pipe.
8992         (Files, configure.ac, Makefile.am): Update.
8993         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
8994         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
8995         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
8996         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
8997         "spawn-pipe.h" instead of "pipe.h".
8998         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
8999         to gl_SPAWN_PIPE.
9000         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
9001         (Files, Makefile.am): Update.
9002         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
9003         Update.
9004         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
9005         Include "spawn-pipe.h" instead of "pipe.h".
9006         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
9007         * lib/javacomp.c: Likewise.
9008         * lib/javaversion.c: Likewise.
9009         * lib/pipe-filter-gi.c: Likewise.
9010         * lib/pipe-filter-ii.c: Likewise.
9011         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
9012         * modules/javacomp (Depends-on): Likewise.
9013         * modules/javaversion (Depends-on): Likewise.
9014         * modules/pipe-filter-gi (Depends-on): Likewise.
9015         * modules/pipe-filter-ii (Depends-on): Likewise.
9016         * MODULES.html.sh (Executing programs): Update.
9017         * NEWS: Mention the change.
9018
9019 2010-12-10  Eric Blake  <eblake@redhat.com>
9020
9021         pipe-posix: new module
9022         * modules/pipe-posix: New file.
9023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
9024         (gl_UNISTD_H): Check for declaration.
9025         * modules/unistd (Makefile.am): Substitute it.
9026         * lib/unistd.in.h (pipe): Provide it for mingw.
9027         * doc/posix-functions/pipe.texi (pipe): Update documentation.
9028         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
9029
9030 2010-12-07  Bruno Haible  <bruno@clisp.org>
9031
9032         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
9033         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
9034         u8_strcmp_gnu.
9035         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
9036
9037 2010-12-06  Bruno Haible  <bruno@clisp.org>
9038
9039         Update internal documentation.
9040         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
9041
9042 2010-12-04  Bruno Haible  <bruno@clisp.org>
9043
9044         Put more information about failed tests into the test return codes.
9045         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
9046         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
9047         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
9048         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9049         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
9050         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9051         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9052         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
9053         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
9054         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
9055         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
9056         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
9057         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9058         * m4/stdint.m4 (gl_STDINT_H): Likewise.
9059         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
9060         returns a bit mask.
9061         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
9062         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
9063         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
9064         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
9065         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
9066         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
9067         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
9068         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
9069         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
9070         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
9071         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
9072         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
9073         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
9074         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
9075         * m4/link.m4 (gl_FUNC_LINK): Likewise.
9076         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9077         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
9078         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
9079         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9080         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
9081         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
9082         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
9083         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
9084         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
9085         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
9086         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
9087         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
9088         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
9089         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
9090         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
9091         gl_PRINTF_PRECISION): Likewise.
9092         * m4/regex.m4 (gl_REGEX): Likewise.
9093         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
9094         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
9095         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
9096         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9097         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9098         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
9099         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
9100         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
9101         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
9102         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9103         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9104         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
9105         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
9106         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
9107         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9108         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
9109         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
9110         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
9111         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9112         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
9113         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
9114         enumerated value.
9115         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
9116
9117 2010-12-04  Bruno Haible  <bruno@clisp.org>
9118
9119         Update for Solaris 11 2010-11.
9120         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
9121         Express, released in November 2010.
9122
9123 2010-12-04  Bruno Haible  <bruno@clisp.org>
9124
9125         nproc: Relax license.
9126         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
9127         and Paul Eggert.
9128         Requested by Ludovic Courtès <ludo@gnu.org>.
9129
9130 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
9131
9132         utimecmp: fine-grained src to nearby coarse-grained dest
9133
9134         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
9135         and the source is on a file system with higher-resolution time
9136         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
9137         not work, and the time stamps are close together, the algorithm to
9138         determine the exact resolution from the read-back mtime was buggy:
9139         it had a "!=" where it should have had an "==".  This bug has been
9140         in the code ever since it was introduced to gnulib.
9141         Problem reported by Dan Jacobson in
9142         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
9143
9144 2010-11-30  Bruno Haible  <bruno@clisp.org>
9145
9146         strerror_r-posix: Fix autoconf test.
9147         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
9148
9149 2010-11-28  Bruno Haible  <bruno@clisp.org>
9150             Paul Eggert  <eggert@cs.ucla.edu>
9151
9152         Tests for module 'getdomainname'.
9153         * modules/getdomainname-tests: New file.
9154         * tests/test-getdomainname.c: New file, based on
9155         tests/test-gethostname.c.
9156
9157 2010-11-28  Bruno Haible  <bruno@clisp.org>
9158             Paul Eggert  <eggert@cs.ucla.edu>
9159
9160         getdomainname: Use the system function when possible.
9161         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
9162         (getdomainname): Replace if needed. Provide the declaration if it is
9163         missing. Don't use _GL_CXXALIAS_SYS_CAST.
9164         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
9165         (getdomainname): When the system has getdomainname, call the system
9166         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
9167         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
9168         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
9169         found in libnsl. Look for the declaration also in <netdb.h>. Replace
9170         the function if its second argument is of type 'int' or if it is found
9171         in libnsl.
9172         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
9173         <sys/systeminfo.h> and sysinfo().
9174         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
9175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9176         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
9177         HAVE_GETDOMAINNAME.
9178         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
9179         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
9180         * doc/glibc-functions/getdomainname.texi: Document the problems with
9181         the getdomainname declaration.
9182
9183 2010-11-28  Bruno Haible  <bruno@clisp.org>
9184
9185         sys_socket: Ensure ss_family field on AIX.
9186         * lib/sys_socket.in.h (ss_family): New macro definition.
9187         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
9188         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
9189         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
9190         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
9191         * modules/sys_socket (Makefile.am): Substitute
9192         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
9193         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
9194
9195 2010-11-27  Bruno Haible  <bruno@clisp.org>
9196
9197         readline: Improve configure output.
9198         * m4/readline.m4 (gl_FUNC_READLINE): Make the
9199         "checking for readline..." result understandable.
9200
9201 2010-11-27  Bruno Haible  <bruno@clisp.org>
9202
9203         *printf-posix: Detect a bug on Solaris 10/x86.
9204         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
9205         for floating-point output.
9206         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
9207         directive.
9208         * tests/test-snprintf-posix.h (test_function): Likewise.
9209         * tests/test-sprintf-posix.h (test_function): Likewise.
9210         * tests/test-vasprintf-posix.c (test_function): Likewise.
9211         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
9212         * doc/posix-functions/printf.texi: Likewise.
9213         * doc/posix-functions/snprintf.texi: Likewise.
9214         * doc/posix-functions/sprintf.texi: Likewise.
9215         * doc/posix-functions/vfprintf.texi: Likewise.
9216         * doc/posix-functions/vprintf.texi: Likewise.
9217         * doc/posix-functions/vsnprintf.texi: Likewise.
9218         * doc/posix-functions/vsprintf.texi: Likewise.
9219         * doc/glibc-functions/obstack_printf.texi: Likewise.
9220         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9221
9222 2010-11-27  Bruno Haible  <bruno@clisp.org>
9223
9224         Fix link error when module libunistring-optional is in use.
9225         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
9226         * modules/striconveha-tests (Makefile.am): Likewise.
9227
9228 2010-11-27  Bruno Haible  <bruno@clisp.org>
9229
9230         regex: Mention link dependencies.
9231         * modules/regex (Link): New section.
9232         * modules/rpmatch (Link): Likewise.
9233         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
9234
9235 2010-11-27  Bruno Haible  <bruno@clisp.org>
9236
9237         ftoastr: Fix compilation error on Solaris.
9238         * lib/ftoastr.c: Include <config.h>.
9239
9240 2010-11-27  Bruno Haible  <bruno@clisp.org>
9241
9242         getloadavg: Update documentation.
9243         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
9244
9245 2010-11-27  Bruno Haible  <bruno@clisp.org>
9246
9247         sys_socket: Fix test whether the functions are declared.
9248         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
9249         not <sys/select.h>.
9250
9251 2010-11-27  Bruno Haible  <bruno@clisp.org>
9252
9253         getpass: Make sure to get system declaration on some platforms.
9254         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
9255         gl_USE_SYSTEM_EXTENSIONS.
9256         * modules/getpass (Depends-on): Add extensions.
9257
9258 2010-11-26  Bruno Haible  <bruno@clisp.org>
9259
9260         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
9261         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
9262         'iconv' module is present.
9263         (ICONV_CONST): New macro.
9264         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
9265         ICONV_CONST.
9266         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
9267         set ICONV_CONST.
9268         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
9269         here.
9270         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
9271         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
9272         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
9273         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
9274         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
9275         present.
9276
9277 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
9278
9279         ftoastr: comment fix
9280         * lib/ftoastr.c: "little" -> "little or no" in comment
9281
9282 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
9283
9284         stdint: port to GCC 4.3 + OSX + Octave
9285         On this platform, stdint.h is buggy and defines int64_t to long
9286         long int.  The replacement defined it to long int, causing
9287         problems with C++ style name mangling.  Instead, trust the system
9288         definition if INT64_MAX is defined, and likewise for the unsigned
9289         variant.   Problem reported by Jarno Rajahalme in
9290         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
9291         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
9292         and don't mess with int64_t and INT64_MAX in this case.
9293         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
9294
9295 2010-11-24  Bruno Haible  <bruno@clisp.org>
9296
9297         doc: Corrections regarding MacOS X 10.4 and 10.5.
9298         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
9299         MacOS X.
9300         Reported by Simon Josefsson.
9301
9302 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
9303
9304         Uninstall ".bin" files installed by relocwrapper.
9305         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
9306         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
9307         unless it is already there.
9308
9309 2010-11-21  Bruno Haible  <bruno@clisp.org>
9310
9311         Update for NetBSD 5.0.
9312         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9313         NetBSD; the test fails on NetBSD 5.0.
9314         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9315         about NetBSD.
9316
9317 2010-11-21  Bruno Haible  <bruno@clisp.org>
9318
9319         Update for HP-UX 11.23 and HP-UX 11.31.
9320         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
9321         HP-UX.
9322
9323 2010-11-21  Bruno Haible  <bruno@clisp.org>
9324
9325         Update for MacOS X 10.5.
9326         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
9327         MacOS X; the test fails on MacOS X 10.5.8.
9328         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
9329         about MacOS X.
9330
9331 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
9332
9333         bootstrap: add bootstrap_sync option.
9334         See discussion at
9335         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
9336         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
9337         * build-aux/bootstrap: Accept --bootstrap-sync to update
9338         bootstrap if it is not identical to the local gnulib's
9339         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
9340         enable this by default.  Accept --no-bootstrap-sync to disable
9341         it.
9342
9343 2010-11-20  Bruno Haible  <bruno@clisp.org>
9344
9345         Ensure that <features.h> is included before __GLIBC__ is tested.
9346         * lib/printf-parse.h: Include <features.h>.
9347         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
9348         Reported by Mike Frysinger <vapier@gentoo.org>.
9349
9350         Ensure that <features.h> is included before __GLIBC__ is tested.
9351         * lib/wchar.in.h: Include <features.h>.
9352         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
9353         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
9354         Reported by Mike Frysinger <vapier@gentoo.org>.
9355
9356         Ensure that <features.h> is included before __GLIBC__ is tested.
9357         * lib/arpa_inet.in.h: Include <features.h>.
9358         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
9359         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
9360         Reported by Mike Frysinger <vapier@gentoo.org>.
9361
9362         Ensure that <features.h> is included before __GLIBC__ is tested.
9363         * build-aux/link-warning.h: Include <features.h>.
9364         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
9365         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
9366         Reported by Mike Frysinger <vapier@gentoo.org>.
9367
9368         Ensure that <features.h> is included before __GLIBC__ is tested.
9369         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
9370         Reported by Mike Frysinger <vapier@gentoo.org>.
9371
9372 2010-11-20  Bruno Haible  <bruno@clisp.org>
9373
9374         memmem: Fix autoconf test.
9375         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
9376
9377 2010-11-20  Bruno Haible  <bruno@clisp.org>
9378
9379         Port to uClibc.
9380         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
9381         * lib/fcntl.in.h: Likewise.
9382         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
9383         * lib/mbrtowc.c (mbrtowc): Likewise.
9384         * lib/relocatable.c (find_shared_library_fullname): Likewise.
9385         * lib/strerror_r.c: Likewise.
9386         * lib/unistr/u8-strnlen.c: Likewise.
9387         * lib/vasnprintf.c (decimal_point_char): Likewise.
9388         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
9389         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
9390         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9391         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
9392         * tests/test-sigaction.c (handler, main): Likewise.
9393         * lib/freading.h: Treat uClibc like a non-glibc platform.
9394         * lib/freading.c: Likewise.
9395         * lib/gettext.h: Likewise.
9396         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
9397         Likewise.
9398         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
9399         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
9400         * lib/propername.c (proper_name_utf8): Likewise.
9401         * lib/spawn.in.h: Likewise.
9402         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
9403         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
9404         mem_cd_iconveh_internal): Likewise.
9405         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
9406         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
9407         strstr, strcasestr): Likewise.
9408         * lib/unicodeio.c (unicode_to_mb): Likewise.
9409         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
9410         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
9411         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
9412         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
9413         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
9414         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
9415         * lib/unistr/u8-stpncpy.c: Likewise.
9416         * lib/vasnprintf.c (VASNPRINTF): Likewise.
9417         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
9418         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9419         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
9420         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
9421         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
9422         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
9423         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
9424         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9425         Likewise.
9426         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
9427         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
9428         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
9429         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9430         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
9431         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9432         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9433         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
9434         * tests/test-getopt.h (OPTIND_MIN): Likewise.
9435         * tests/test-striconveha.c (main): Likewise.
9436         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9437         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
9438         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
9439         * doc/posix-functions/getline.texi: Likewise.
9440         Reported by Mike Frysinger <vapier@gentoo.org>.
9441
9442 2010-11-20  Bruno Haible  <bruno@clisp.org>
9443
9444         nproc: Fix condition.
9445         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
9446         HAVE_PTHREAD_AFFINITY_NP.
9447
9448 2010-11-20  Bruno Haible  <bruno@clisp.org>
9449
9450         Fix a comment.
9451         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
9452
9453 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
9454
9455         ftoastr: don't assume snprintf
9456         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
9457         Implement a subset of snprintf here, by using sprintf safely.
9458         * modules/ftoastr (Depends-on): Remove snprintf.
9459
9460 2010-11-19  Jim Meyering  <meyering@redhat.com>
9461
9462         test-rename.h: fix compilation failure
9463         * tests/test-rename.h (test_rename): Add omitted "}".
9464
9465 2010-11-17  Jim Meyering  <meyering@redhat.com>
9466
9467         maint.mk: add a URL discussing the no-@acronym policy
9468         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
9469
9470 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9471
9472         ftoastr: depend on snprintf, improve comments
9473         * lib/ftoastr.c: Also mention Loitsch's draft.
9474         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
9475         needed in the current implementation, but it might simplify
9476         speeding up the code later.
9477         * modules/ftoastr: Depend on snprintf; this improves portability.
9478         Suggested by Bruno Haible in the same email.
9479
9480         ftoastr: port to hosts lacking strtof and strtold
9481         Problem reported by Bruno Haible in
9482         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
9483         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
9484         environment and strtold (and presumably strtof) are not available.
9485         * modules/ftoastr (Files): Add m4/c-strtod.m4.
9486         (configure.ac): Require gl_C99_STRTOLD.
9487
9488 2010-11-18  Bruno Haible  <bruno@clisp.org>
9489
9490         c-strtold: Avoid link error on AIX 7.
9491         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
9492         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
9493         (gl_C_STRTOLD): Test whether strtold_l exists.
9494         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9495
9496 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9497
9498         intprops: new macro INT_BITS_STRLEN_BOUND
9499         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
9500         ftoastr.h.  This exposes an internal of intprops.h that was formerly
9501         not exposed.  Also, it uses a slightly tighter bound than before;
9502         though this makes no practical difference, we might as well be as
9503         tight as we easily can.
9504
9505         ftoastr: new module, for lossless conversion of floats to short strings
9506         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
9507         * modules/ftoastr: New files.
9508
9509 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9510
9511         bootstrap: port to Solaris sed
9512         * build-aux/bootstrap (get_version): Port to Solaris sed.
9513         See Ralf Wildenhues's note in
9514         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
9515
9516 2010-11-14  Jim Meyering  <meyering@redhat.com>
9517
9518         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
9519         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
9520         and move definition closer to sole use.
9521
9522 2010-11-13  Jim Meyering  <meyering@redhat.com>
9523
9524         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
9525         Now we require at least autoconf-2.59, which means the work-around
9526         is no longer needed.
9527         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
9528         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9529         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
9530         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
9531         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
9532
9533 2010-11-13  Bruno Haible  <bruno@clisp.org>
9534
9535         rename, renameat: Avoid test failures at NFS mounted locations.
9536         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
9537         functions.
9538         (test_rename): Use assert_nonexistent.
9539         * tests/test-rename.c: Include <dirent.h>.
9540         * tests/test-renameat.c: Likewise.
9541         Reported by Gary V. Vaughan <gary@gnu.org>.
9542
9543         rename, renameat: Document Linux bug with NFS
9544         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
9545         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
9546         * doc/posix-functions/renameat.texi: Likewise.
9547         Suggested by Eric Blake.
9548
9549 2010-11-13  Bruno Haible  <bruno@clisp.org>
9550
9551         rename test: Add comments.
9552         * tests/test-rename.h (test_rename): Add structure and comments.
9553
9554 2010-11-13  Eric Blake  <eblake@redhat.com>
9555
9556         maintainer-makefile: cover a few more files
9557         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
9558         scripts generated within C files, for libvirt.
9559
9560 2010-11-13  Bruno Haible  <bruno@clisp.org>
9561
9562         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
9563         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
9564         character, return the number of bytes that belong together, not always
9565         1.
9566         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
9567         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
9568         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
9569         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
9570         number of bytes of an invalid character.
9571         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
9572         (main): Invoke it.
9573         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
9574         results.
9575         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
9576         malformed byte sequences.
9577         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
9578         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
9579         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
9580         Reported by Ben Pfaff and Paolo Bonzini.
9581
9582 2010-11-13  Bruno Haible  <bruno@clisp.org>
9583
9584         openat: Work around glibc bug with fchownat() and empty file names.
9585         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
9586         (gl_FUNC_FCHOWNAT): Invoke it.
9587         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
9588         * doc/posix-functions/fchownat.texi: Document the glibc bug.
9589         Reported by Gary V. Vaughan <gary@gnu.org>.
9590
9591 2010-11-13  Bruno Haible  <bruno@clisp.org>
9592
9593         openat: Ensure autoconf macro ordering.
9594         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
9595         gl_USE_SYSTEM_EXTENSIONS.
9596         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
9597
9598 2010-11-13  Bruno Haible  <bruno@clisp.org>
9599
9600         Update comments.
9601         * lib/unistr/u8-check.c: Update file name in comments.
9602         * lib/unistr/u8-mblen.c: Likewise.
9603         * lib/unistr/u8-prev.c: Likewise.
9604         * lib/unistr/u8-strmblen.c: Likewise.
9605         * lib/unistr/u8-strmbtouc.c: Likewise.
9606
9607 2010-11-13  Jim Meyering  <meyering@redhat.com>
9608
9609         tests: avoid test failure on Solaris 10 due to lack of PATH export
9610         * tests/test-update-copyright.sh: Don't forget to export PATH.
9611
9612         init.sh: ensure that IFS is defined, just in case...
9613         * tests/init.sh (setup_): Ensure that IFS is defined,
9614         so that saving and restoring it works as expected.  This
9615         appears to be useful at least for an old version of dash
9616         from a long time ago (RH 6).  See here for details:
9617         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
9618
9619         maint.mk: tighten "test a == b" check
9620         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
9621         test to files that contain something like #!/bin/sh.
9622         Without this, coreutils would get two false positives in
9623         the comments of C source files.
9624
9625 2010-11-12  Eric Blake  <eblake@redhat.com>
9626
9627         bootstrap: fix typo in previous attempt
9628         * build-aux/bootstrap (buildreq): Correct the grouping.
9629         Reported by Paul Eggert.
9630
9631         maintainer-makefile: prohibit test x == x
9632         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
9633         Based on a report by Matthias Bolte.
9634
9635         bootstrap: allow FreeBSD gzip
9636         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
9637         which has no '.' and goes to stderr.
9638         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
9639         Reported by Matthias Bolte.
9640
9641         maintainer-makefile: check for i18n setup
9642         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
9643         will likely work.
9644
9645 2010-11-12  Bruno Haible  <bruno@clisp.org>
9646
9647         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
9648         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
9649         * lib/nanosleep.c (nanosleep): Likewise.
9650
9651 2010-11-11  Bruno Haible  <bruno@clisp.org>
9652
9653         fcntl-h: Fix for use of C++ on glibc systems.
9654         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
9655         also on glibc systems in C++ mode.
9656         Reported by Gary V. Vaughan <gary@gnu.org>.
9657
9658 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9659
9660         mknod: avoid false failure with dash
9661         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
9662
9663 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
9664
9665         unlink: Fix "is it should" typo in diagnostic.
9666         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
9667         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
9668
9669 2010-11-11  Bruno Haible  <bruno@clisp.org>
9670
9671         Tests for module 'strerror_r-posix'.
9672         * modules/strerror_r-posix-tests: New file.
9673         * tests/test-strerror_r.c: New file.
9674         * tests/test-string-c++.cc: Check the signature of strerror_r.
9675
9676         New module 'strerror_r-posix'.
9677         * lib/string.in.h (strerror_r): New declaration.
9678         * lib/strerror_r.c: New file.
9679         * m4/strerror_r.m4: New file.
9680         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
9681         of strerror_r.
9682         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
9683         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9684         * modules/strerror_r-posix: New file.
9685         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
9686         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
9687         * doc/posix-functions/strerror_r.texi: Mention the new module and the
9688         portability problems.
9689
9690 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
9691
9692         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
9693         line is also considered for output. Quoted function name in shell
9694         command, so temporary files for functions like MyClass::operator()
9695         are removed correctly without errors.
9696
9697 2010-11-09  Bruno Haible  <bruno@clisp.org>
9698
9699         * doc/posix-functions/strerror.texi: List more failing platforms.
9700
9701         * doc/posix-functions/strerror.texi: Add a comment.
9702
9703 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
9704
9705         fdopendir: fix bug on MacOS X when low on file descriptors
9706
9707         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
9708         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
9709         All callers changed.
9710         (fdopendir): Invoke save_cwd at the top level, not after using
9711         multiple dup() calls to use up file descriptors.  Then retry
9712         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
9713         less than the maximum number of open file descriptors, because
9714         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
9715         on Mac OS X 10.6.4 for tar 1.24
9716         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
9717         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
9718         and for tar 1.25
9719         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
9720
9721 2010-11-07  Bruno Haible  <bruno@clisp.org>
9722
9723         vasnprintf: Support I flag on glibc systems.
9724         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
9725         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
9726         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
9727         snprintf function.
9728         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
9729         glibc systems.
9730         * tests/test-vasnprintf-posix3.c: New file.
9731         * modules/vasnprintf-posix-tests (Files): Add it.
9732         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
9733
9734 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
9735
9736         [html] Fix copy/paste bug: Use unique name for compiler warnings.
9737         * MODULES.html.sh: For compiler warnings, use name
9738         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
9739
9740 2010-11-05  Eric Blake  <eblake@redhat.com>
9741
9742         ceil, floor: avoid spurious failure with icc
9743         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
9744         [denormals-as-zero] when optimizing without -mieee-fp option.
9745         * tests/test-floorf2.c (floorf_reference): Likewise.
9746         * tests/test-ceilf1.c (dummy): New function.
9747         (main): Use it to outsmart icc's optimization.
9748         * tests/test-floorf1.c (dummy, main): Likewise.
9749
9750         tests: require working signbit
9751         * modules/ceilf-tests (Depends-on): Add signbit.
9752         * modules/ceill-tests (Depends-on): Likewise.
9753         * modules/floorf-tests (Depends-on): Likewise.
9754         * modules/floorl-tests (Depends-on): Likewise.
9755         * modules/round-tests (Depends-on): Likewise.
9756         * modules/roundf-tests (Depends-on): Likewise.
9757         * modules/roundl-tests (Depends-on): Likewise.
9758         * modules/trunc-tests (Depends-on): Likewise.
9759         * modules/truncf-tests (Depends-on): Likewise.
9760         * modules/truncl-tests (Depends-on): Likewise.
9761
9762         strtod: work around icc bug
9763         * lib/strtod.c (minus_zero): Define to working value.
9764         (strtod): Use it to avoid icc bug.
9765
9766         copysign: enhance tests
9767         * modules/copysign-tests (Files): Add minus-zero.h.
9768         * tests/test-copysign.c (main): Also test zeros.
9769
9770 2010-11-04  Eric Blake  <eblake@redhat.com>
9771
9772         ceil, floor, round, trunc: enhance tests of -0
9773         * tests/test-ceilf1.c (main): Ensure correct sign of result.
9774         * tests/test-ceill.c (main): Likewise.
9775         * tests/test-floorf1.c (main): Likewise.
9776         * tests/test-floorl.c (main): Likewise.
9777         * tests/test-round1.c (main): Likewise.
9778         * tests/test-roundf1.c (main): Likewise.
9779         * tests/test-roundl.c (main): Likewise.
9780         * tests/test-trunc1.c (main): Likewise.
9781         * tests/test-truncf1.c (main): Likewise.
9782         * tests/test-truncl.c (main): Likewise.
9783
9784 2010-11-04  Eric Blake  <eblake@redhat.com>
9785
9786         frexp, tests: work around ICC bug with -zero
9787         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
9788         works with more compilers.
9789         * tests/minus-zero.h: New file.
9790         * modules/ceilf-tests (Files): Include it.
9791         * modules/ceill-tests (Files): Likewise.
9792         * modules/floorf-tests (Files): Likewise.
9793         * modules/floorl-tests (Files): Likewise.
9794         * modules/frexp-nolibm-tests (Files): Likewise.
9795         * modules/frexp-tests (Files): Likewise.
9796         * modules/frexpl-nolibm-tests (Files): Likewise.
9797         * modules/frexpl-tests (Files): Likewise.
9798         * modules/isnan-tests (Files): Likewise.
9799         * modules/isnand-nolibm-tests (Files): Likewise.
9800         * modules/isnand-tests (Files): Likewise.
9801         * modules/isnanf-nolibm-tests (Files): Likewise.
9802         * modules/isnanf-tests (Files): Likewise.
9803         * modules/isnanl-nolibm-tests (Files): Likewise.
9804         * modules/isnanl-tests (Files): Likewise.
9805         * modules/round-tests (Files): Likewise.
9806         * modules/roundf-tests (Files): Likewise.
9807         * modules/roundl-tests (Files): Likewise.
9808         * modules/ldexpl-tests (Files): Likewise.
9809         * modules/signbit-tests (Files): Likewise.
9810         * modules/snprintf-posix-tests (Files): Likewise.
9811         * modules/sprintf-posix-tests (Files): Likewise.
9812         * modules/strtod-tests (Files): Likewise.
9813         * modules/trunc-tests (Files): Likewise.
9814         * modules/truncf-tests (Files): Likewise.
9815         * modules/truncl-tests (Files): Likewise.
9816         * modules/vsnprintf-posix-tests (Files): Likewise.
9817         * modules/vsprintf-posix-tests (Files): Likewise.
9818         * modules/vasnprintf-posix-tests (Files): Likewise.
9819         * modules/vasprintf-posix-tests (Files): Likewise.
9820         * tests/test-ceilf1.c (main): Use it.
9821         * tests/test-ceill.c (main): Likewise.
9822         * tests/test-floorf1.c (main): Likewise.
9823         * tests/test-floorl.c (main): Likewise.
9824         * tests/test-frexp.c (main): Likewise.
9825         * tests/test-frexpl.c (main): Likewise.
9826         * tests/test-isnan.c (main): Likewise.
9827         * tests/test-isnand.h (main): Likewise.
9828         * tests/test-isnanf.h (main): Likewise.
9829         * tests/test-isnanl.h (main): Likewise.
9830         * tests/test-ldexpl.c (main): Likewise.
9831         * tests/test-round.c (main): Likewise.
9832         * tests/test-roundf.c (main): Likewise.
9833         * tests/test-roundl.c (main): Likewise.
9834         * tests/test-signbit.c (test_signbitf, test_signbitd)
9835         (test_signbitl): Likewise.
9836         * tests/test-snprintf-posix.h (test_function): Likewise.
9837         * tests/test-sprintf-posix.h (test_function): Likewise.
9838         * tests/test-strtod.c (main): Likewise.
9839         * tests/test-trunc1.c (main): Likewise.
9840         * tests/test-truncf1.c (main): Likewise.
9841         * tests/test-truncl.c (main): Likewise.
9842
9843         isnanl: work around icc bug
9844         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
9845
9846 2010-11-03  Eric Blake  <eblake@redhat.com>
9847
9848         tests: fix compiler warnings
9849         * tests/test-getopt.h (test_getopt): Fix condition.
9850         * tests/test-getopt_long.h (test_getopt_long): Likewise.
9851         * tests/test-pipe2.c (main): Likewise.
9852         * tests/test-quotearg-simple.c (main): Avoid icc warning.
9853
9854         utimens: fix broken m4 test
9855         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
9856
9857 2010-10-28  Bruno Haible  <bruno@clisp.org>
9858
9859         posix_spawn*, getdtablesize: Relax license.
9860         * modules/posix_spawn (License): Change to LGPLv2+.
9861         * modules/posix_spawnp (License): Likewise.
9862         * modules/posix_spawn-internal (License): Likewise.
9863         * modules/posix_spawnattr_init (License): Likewise.
9864         * modules/posix_spawnattr_getflags (License): Likewise.
9865         * modules/posix_spawnattr_setflags (License): Likewise.
9866         * modules/posix_spawnattr_getpgroup (License): Likewise.
9867         * modules/posix_spawnattr_setpgroup (License): Likewise.
9868         * modules/posix_spawnattr_getschedparam (License): Likewise.
9869         * modules/posix_spawnattr_setschedparam (License): Likewise.
9870         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
9871         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
9872         * modules/posix_spawnattr_getsigdefault (License): Likewise.
9873         * modules/posix_spawnattr_setsigdefault (License): Likewise.
9874         * modules/posix_spawnattr_getsigmask (License): Likewise.
9875         * modules/posix_spawnattr_setsigmask (License): Likewise.
9876         * modules/posix_spawnattr_destroy (License): Likewise.
9877         * modules/posix_spawn_file_actions_init (License): Likewise.
9878         * modules/posix_spawn_file_actions_addclose (License): Likewise.
9879         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
9880         * modules/posix_spawn_file_actions_addopen (License): Likewise.
9881         * modules/posix_spawn_file_actions_destroy (License): Likewise.
9882         * modules/getdtablesize (License): Likewise.
9883         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
9884
9885 2010-10-26  Bruno Haible  <bruno@clisp.org>
9886
9887         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
9888         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
9889         Cygwin and mingw.
9890         Suggested by Eric Blake.
9891
9892 2010-10-26  Bruno Haible  <bruno@clisp.org>
9893
9894         stdio: Work around compilation error due to renameat() on Solaris 10.
9895         * lib/stdio.in.h: Include <unistd.h> on Solaris.
9896         * lib/renameat.c: Don't include <unistd.h> here.
9897         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
9898         Reported by Paul Eggert and Eric Blake.
9899
9900 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
9901
9902         renameat: port to Solaris 10, which declares renameat in unistd.h
9903
9904         * lib/renameat.c: Include unistd.h before stdio.h, because
9905         Solaris 10 declares renameat in unistd.h.  Problem encountered
9906         when building GNU tar 1.24 on Solaris 10.
9907
9908 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
9909
9910         fdopendir: fix C89 compilation
9911         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
9912         compilers.
9913
9914 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
9915
9916         inttostr: simplify by removing unnecessary redundancy
9917         * lib/anytostr.c: Don't include verify.h.
9918         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
9919         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
9920         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
9921         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
9922         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
9923         Likewise.
9924         * modules/inttostr (Depends-on): Remove 'verify'.
9925
9926 2010-10-23  Bruno Haible  <bruno@clisp.org>
9927
9928         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
9929         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
9930         Reported by Eric Blake.
9931
9932 2010-10-23  Bruno Haible  <bruno@clisp.org>
9933
9934         Tests: Fix LOCALE_JA on MirBSD 10.
9935         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
9936         to an UTF-8 locale.
9937         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
9938         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9939         Reported by Eric Blake.
9940
9941 2010-10-21  Bruno Haible  <bruno@clisp.org>
9942
9943         nl_langinfo test: Avoid test failure on NetBSD 5.
9944         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
9945         Reported by Eric Blake.
9946
9947 2010-10-21  Eric Blake  <eblake@redhat.com>
9948
9949         c-stack: work around libsigsegv 2.8 bug
9950         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
9951         overflow on at least PowerPC64.
9952
9953 2010-10-17  Bruno Haible  <bruno@clisp.org>
9954
9955         userspec: Drop redundant file.
9956         * modules/userspec (Files): Remove lib/inttostr.h.
9957
9958 2010-10-17  Bruno Haible  <bruno@clisp.org>
9959
9960         nl_langinfo tests: Silence some warnings.
9961         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
9962         Reported by Jim Meyering.
9963
9964 2010-10-17  Bruno Haible  <bruno@clisp.org>
9965
9966         Make use of GCC's attribute __alloc_size__.
9967         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
9968         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
9969         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
9970         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
9971         __alloc_size__.
9972         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
9973         Suggested by Jim Meyering.
9974
9975 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
9976
9977         bootstrap: anchor .gitignore entries.
9978         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
9979         with...
9980         (insert_vc_ignore): ... this new function, which prepends `/' to
9981         all .gitignore entries before passing them to
9982         insert_sorted_if_absent.
9983
9984 2010-10-16  Bruno Haible  <bruno@clisp.org>
9985
9986         nextafter: Fix configure check.
9987         * modules/nextafter (configure.ac): Correct expected prototype.
9988
9989 2010-10-16  Bruno Haible  <bruno@clisp.org>
9990
9991         termios: Update documentation.
9992         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
9993
9994 2010-10-16  Bruno Haible  <bruno@clisp.org>
9995
9996         tests: Make them compile with TinyCC.
9997         * tests/test-strstr.c (main): Remove parentheses around array
9998         initializer.
9999
10000 2010-10-15  Eric Blake  <eblake@redhat.com>
10001
10002         ignore-value: make header idempotent
10003         * lib/ignore-value.h: Add double-inclusion guards.
10004         Reported by Stefan Berger.
10005
10006 2010-10-15  Jim Meyering  <meyering@redhat.com>
10007
10008         GNUmakefile: handle "stable" target, not "major"
10009         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
10010         lists in maint.mk and announce-gen.  Without this, "make stable"
10011         would fail to ensure that $(VERSION) is up to date.
10012
10013 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
10014
10015         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
10016         & co.
10017
10018 2010-10-14  Bruno Haible  <bruno@clisp.org>
10019
10020         vasnprintf: Don't set errno to 0.
10021         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
10022         block that sets it to 0.
10023         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
10024
10025 2010-10-14  Bruno Haible  <bruno@clisp.org>
10026
10027         socketlib: Fix.
10028         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
10029         gl_PREREQ_SYS_H_WINSOCK2.
10030         Reported by Ian Beckwith <ianb@erislabs.net>.
10031
10032 2010-10-13  Jim Meyering  <meyering@redhat.com>
10033
10034         test-select-stdin.c: avoid warn_unused_result warnings
10035         * tests/test-select-stdin.c: Include "macros.h".
10036         ASSERT that read and fflush succeed.
10037
10038 2010-10-13  Jim Meyering  <meyering@redhat.com>
10039
10040         git-version-gen: do require git-VC'd files in cwd
10041         * build-aux/git-version-gen: Reject a git version string
10042         if there are no commits associated with the current directory.
10043         This avoids an unlikely false-positive (unrelated dir whose parent
10044         repository also contains a tag matching v*), as pointed out
10045         by Giuseppe Scrivano in
10046         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
10047
10048 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
10049
10050         argv-iter: omit nonconforming declaration
10051         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
10052         enum arg_iter_err declaration, which doesn't conform to C99.
10053         Solaris 10 cc warns about this.
10054
10055 2010-10-13  Eric Blake  <eblake@redhat.com>
10056
10057         termios: fix compilation on mingw
10058         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
10059         (gl_TERMIOS_H): Adjust it on mingw.
10060         * modules/termios (Makefile.am): Substitute new key.
10061         * lib/termios.in.h (includes): Make include_next conditional.
10062         * doc/posix-headers/termios.texi (termios.h): Update
10063         documentation.
10064         Reported by Daniel P. Berrange.
10065
10066 2010-10-13  Jim Meyering  <meyering@redhat.com>
10067
10068         git-version-gen: don't require that .git/ be in the current dir
10069         * build-aux/git-version-gen: Adjust this script so that it works
10070         when run from any working directory beneath the top-level .git/-
10071         containing directory.  Inspired by a patch from Giuseppe Scrivano,
10072         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
10073
10074         test-select: avoid warn_unused_result warnings
10075         * tests/test-select.c: Include "macros.h".
10076         ASSERT that each call to read, write, and pipe succeeds.
10077         While not technically required, also check each "close".
10078         * modules/select-tests (Files): Add tests/macros.h.
10079
10080         test-symlinkat: remove declaration of unused local
10081         * tests/test-symlinkat.c (main): Remove unused local, "buf".
10082
10083         test-inttostr: avoid shadowing warnings
10084         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
10085         and use malloc rather than the stack for the same reason as
10086         mentioned in the comment justifying the other allocation.
10087
10088 2010-10-11  Bruno Haible  <bruno@clisp.org>
10089
10090         stdlib: Allow multiple gnulib generated replacements to coexist.
10091         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
10092         Reported by Sam Steingold <sds@gnu.org>.
10093
10094 2010-10-11  Jim Meyering  <meyering@redhat.com>
10095
10096         fix a documentation typo
10097         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
10098
10099 2010-10-11  Eric Blake  <eblake@redhat.com>
10100
10101         futimens: work around Solaris 11 bug
10102         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
10103         * tests/test-futimens.h (test_futimens): Enhance, rather than
10104         weaken test.
10105         * doc/posix-functions/futimens.texi (futimens): Document the bug.
10106
10107 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10108
10109         Indentation.
10110         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
10111         higher-level operators more to the left.
10112
10113 2010-10-11  Jim Meyering  <meyering@redhat.com>
10114
10115         test-futimens: avoid unwarranted test failure on Solaris 5.11
10116         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
10117         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
10118         because it tries to dereference the NULL name argument.
10119
10120 2010-10-11  Bruno Haible  <bruno@clisp.org>
10121
10122         Indentation.
10123         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
10124         indentation.
10125
10126 2010-10-11  Jim Meyering  <meyering@redhat.com>
10127
10128         spawn.in.h: make indentation consistent with parentheses
10129         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
10130         Make indentation consistent with parentheses.
10131
10132 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
10133
10134         Fix mismatched parens in previous commit
10135         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
10136         parens.
10137
10138 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
10139
10140         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
10141
10142         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
10143         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
10144         * lib/malloca.c: Include "verify.h".
10145         (verify1): Remove, replacing with a verify call.
10146         * lib/relocwrapper.c (verify1): Likewise.
10147         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
10148         Likewise.
10149         * modules/malloca (Depends-on): Add 'verify'.
10150         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
10151         * modules/vasnprintf (Depends-on): Add 'verify'.
10152         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
10153         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10154         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10155         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10156         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10157         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10158         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10159
10160         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
10161
10162         Formerly the style was sometimes 2*X - 1, because the C standard
10163         was wrongly thought to disallow ?: in integral constant expressions.
10164         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
10165         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
10166         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
10167         * lib/stdint.in.h (_verify_intmax_size): Likewise.
10168         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
10169         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
10170         verify that time_t cannot be floating.
10171
10172 2010-10-08  Eric Blake  <eblake@redhat.com>
10173
10174         time: enforce recent POSIX ruling that time_t is integral
10175         * lib/time.in.h (__time_t_must_be_integral): Detect any
10176         problematic systems, allowing the rest of gnulib to assume POSIX.
10177
10178 2010-10-08  Jim Meyering  <meyering@redhat.com>
10179
10180         fdopendir: fix a bug on systems lacking openat and /proc support
10181         OpenBSD 4.7 is one such system.  The most noticeable effect was
10182         failure of any application making nontrivial use of fts: rm, du,
10183         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
10184           ./rm: traversal failed: `a': Bad file descriptor
10185         Debugging that, you see that even though FD 6 was closed just
10186         prior to the opendir call in fd_clone_opendir, its resulting
10187         dir->dd_fd was 8, rather than the expected value of 6:
10188
10189         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
10190         93                close (fd);
10191         (gdb) n
10192         94                dir = fd_clone_opendir (dupfd);
10193         (gdb) n
10194         95                saved_errno = errno;
10195         (gdb) p dir->dd_fd
10196         $11 = 8
10197
10198         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
10199         The problem is that on OpenBSD, fd_clone_opendir has to resort
10200         to using the old-style save/restore CWD mechanism, due to its
10201         lack of openat/proc support, and *that* would steal the FD (6)
10202         that opendir was supposed to use.
10203
10204         The fix is to squirrel away the desired FD so that save_cwd uses a
10205         different one, and then free the dest FD right before calling opendir.
10206         That guarantees opendir will use the required file descriptor.
10207
10208         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
10209
10210 2010-10-08  Bruno Haible  <bruno@clisp.org>
10211
10212         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
10213         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
10214
10215 2010-10-08  Bruno Haible  <bruno@clisp.org>
10216
10217         nanosleep: Make replacement POSIX compliant.
10218         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
10219         is out of range.
10220         Reported by Jim Meyering.
10221
10222 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
10223
10224         bootstrap: add hook for altering gnulib.mk, for Bison
10225         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
10226         the Bison bootstrapping process can rewrite file names and variables
10227         in this file before later parts of 'bootstrap' use the file.
10228         Bison wants to include lib/gnulib.mk from the top-level makefile,
10229         so it needs the file names in this file to be relative to the top
10230         level, not relative to lib; plus it needs variable names to be
10231         rewritten.
10232         (slurp): Use the new function.
10233
10234         bootstrap: reformat for readability
10235         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
10236
10237 2010-10-08  Eric Blake  <eblake@redhat.com>
10238
10239         docs: update cygwin progress
10240         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
10241         1.7.7.
10242         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
10243         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
10244         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
10245         * doc/posix-functions/carg.texi (carg): Likewise.
10246         * doc/posix-functions/cargf.texi (cargf): Likewise.
10247         * doc/posix-functions/casin.texi (casin): Likewise.
10248         * doc/posix-functions/casinf.texi (casinf): Likewise.
10249         * doc/posix-functions/casinh.texi (casinh): Likewise.
10250         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
10251         * doc/posix-functions/catan.texi (catan): Likewise.
10252         * doc/posix-functions/catanf.texi (catanf): Likewise.
10253         * doc/posix-functions/catanh.texi (catanh): Likewise.
10254         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
10255         * doc/posix-functions/ccos.texi (ccos): Likewise.
10256         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
10257         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
10258         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
10259         * doc/posix-functions/cexp.texi (cexp): Likewise.
10260         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
10261         * doc/posix-functions/cimag.texi (cimag): Likewise.
10262         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
10263         * doc/posix-functions/clog.texi (clog): Likewise.
10264         * doc/posix-functions/clogf.texi (clogf): Likewise.
10265         * doc/posix-functions/conj.texi (conj): Likewise.
10266         * doc/posix-functions/conjf.texi (conjf): Likewise.
10267         * doc/posix-functions/cpow.texi (cpow): Likewise.
10268         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
10269         * doc/posix-functions/cproj.texi (cproj): Likewise.
10270         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
10271         * doc/posix-functions/creal.texi (creal): Likewise.
10272         * doc/posix-functions/crealf.texi (crealf): Likewise.
10273         * doc/posix-functions/csin.texi (csin): Likewise.
10274         * doc/posix-functions/csinf.texi (csinf): Likewise.
10275         * doc/posix-functions/csinh.texi (csinh): Likewise.
10276         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
10277         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
10278         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
10279         * doc/posix-functions/ctan.texi (ctan): Likewise.
10280         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
10281         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
10282         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
10283         * doc/posix-headers/complex.texi (complex.h): Likewise.
10284
10285 2010-10-07  Jim Meyering  <meyering@redhat.com>
10286
10287         parse-datetime: avoid compilation failure on OpenBSD 4.7
10288         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
10289         This works around a compilation failure on OpenBSD 4.7:
10290         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
10291
10292 2010-10-07  Eric Blake  <eblake@redhat.com>
10293
10294         docs: update cygwin progress
10295         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
10296         1.7.6.
10297         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
10298         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
10299         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
10300         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
10301         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
10302         Likewise.
10303         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
10304         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
10305         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
10306         Likewise.
10307         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
10308         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
10309         Likewise.
10310         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
10311         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
10312         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
10313         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
10314         Likewise.
10315         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
10316         Likewise.
10317         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
10318
10319         docs: update parse-datetime history
10320         * doc/parse-datetime.texi (Authors of parse_datetime): Better
10321         documentation of this function's history and alternatives.
10322
10323         cygwin: use more robust version check
10324         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
10325         exclude an eventual cygwin 1.9.1.
10326         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10327         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10328         (gl_FUNC_STRCASESTR): Likewise.
10329         Reported by Bruno Haible.
10330
10331 2010-10-06  Bruno Haible  <bruno@clisp.org>
10332
10333         string, sys_select: Avoid #including large headers unless necessary.
10334         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
10335         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
10336         OSF/1, BeOS, Haiku.
10337         Reported by Jim Meyering.
10338
10339 2010-10-05  Eric Blake  <eblake@redhat.com>
10340
10341         memmem, strstr, strcasestr: fix bug with long periodic needle
10342         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
10343         periodic needle having false positive.
10344         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
10345         and cygwin 1.7.7.
10346         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
10347         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
10348         (gl_FUNC_STRCASESTR): Likewise.
10349         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
10350         * tests/test-memmem.c (main): Expose the bug.
10351         * tests/test-strcasestr.c (main): Likewise.
10352         * tests/test-strstr.c (main): Likewise.
10353         * tests/test-c-strcasestr.c (main): Likewise.
10354         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
10355         * doc/posix-functions/strstr.texi (strstr): Likewise.
10356         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
10357         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
10358
10359 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10360
10361         parse-datetime: do some more renaming
10362         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
10363         parse_datetime, not get_date.  Mention the renaming.
10364         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
10365         in comments.
10366         * m4/bison.m4: Likewise.
10367
10368 2010-10-05  Eric Blake  <eblake@redhat.com>
10369
10370         parse-datetime: better name than get_date
10371         * NEWS: Reword the deprecation notice.
10372         * modules/get_date: Rename to modules/parse-datetime.
10373         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
10374         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
10375         * lib/get_date.y: Rename to lib/parse-datetime.y.
10376         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
10377         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
10378         * doc/getdate.texi: Provide fallback wrapper.
10379         * lib/getdate.h: Move guts, and wrap...
10380         * lib/parse-datetime.h: ...new file.
10381         * lib/parse-datetime.y (get_date): Rename...
10382         (parse_datetime): ...to this.
10383         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
10384         (gl_PARSE_DATETIME): ...to this.
10385         * doc/posix-functions/getdate.texi (get_date): Provide fallback
10386         documentation.
10387         * modules/getdate (Files): Provide fallback docs and header.
10388         (Notice, Depends-on): Update references.
10389         * tests/test-parse-datetime.c: Likewise.
10390         * DEPENDENCIES: Likewise.
10391         * MODULES.html.sh (Date and time <time.h>): Likewise.
10392         * doc/parse-datetime.texi (Date input formats)
10393         (Authors of parse_datetime): Likewise.
10394         * modules/parse-datetime (Files, configure.ac, Makefile.am)
10395         (Include): Likewise.
10396         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
10397         * gnulib-tool: Likewise.
10398         * m4/bison.m4 (gl_BISON): Likewise.
10399         Suggested by Bruno Haible.
10400
10401 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
10402
10403         more ports to Solaris tr, which needs [] around ranges
10404         * gnulib-tool: Solaris tr needs [] around ranges.
10405         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
10406         * tests/test-pipe-filter-gi1.c (main): Likewise.
10407         * tests/test-pipe-filter-ii1.c (main): Likewise.
10408
10409 2010-10-05  Eric Blake  <eblake@redhat.com>
10410
10411         bootstrap: fix Solaris regression
10412         * build-aux/bootstrap (check_versions): Solaris tr still needs []
10413         around ranges.
10414         Reported by Pádraig Brady.
10415
10416         bootstrap: work with pkg-config
10417         * build-aux/bootstrap (check_versions): Also transliterate - in
10418         prerequisite name.
10419         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
10420         prerequisites that were already found, to avoid confusion.
10421         Reported by Justin Clift.
10422
10423         faccessat: remove unused wrappers
10424         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
10425         presence of these wrappers dragged in -lgen on Solaris.
10426         Reported by Clemens Brogi; fix suggested by Paul Eggert.
10427
10428 2010-10-05  Jim Meyering  <meyering@redhat.com>
10429
10430         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
10431         * Makefile (sc_pragma_columns): New syntax-check rule.
10432
10433 2010-10-04  Bruno Haible  <bruno@clisp.org>
10434
10435         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
10436         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
10437         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
10438         Reported by Bruce Korb and Eric Blake.
10439
10440 2010-10-04  Bruno Haible  <bruno@clisp.org>
10441
10442         threadlib: Make option --with-libpth-prefix work.
10443         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
10444         use $LIBPTH, not just -lpth.
10445
10446 2010-10-04  Bruno Haible  <bruno@clisp.org>
10447
10448         Avoid line length limitation from HP NonStop system header files.
10449         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
10450         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
10451         * lib/ctype.in.h: Likewise.
10452         * lib/dirent.in.h: Likewise.
10453         * lib/errno.in.h: Likewise.
10454         * lib/fcntl.in.h: Likewise.
10455         * lib/float.in.h: Likewise.
10456         * lib/getopt.in.h: Likewise.
10457         * lib/iconv.in.h: Likewise.
10458         * lib/inttypes.in.h: Likewise.
10459         * lib/langinfo.in.h: Likewise.
10460         * lib/locale.in.h: Likewise.
10461         * lib/math.in.h: Likewise.
10462         * lib/netdb.in.h: Likewise.
10463         * lib/netinet_in.in.h: Likewise.
10464         * lib/poll.in.h: Likewise.
10465         * lib/pthread.in.h: Likewise.
10466         * lib/pty.in.h: Likewise.
10467         * lib/sched.in.h: Likewise.
10468         * lib/se-selinux.in.h: Likewise.
10469         * lib/search.in.h: Likewise.
10470         * lib/signal.in.h: Likewise.
10471         * lib/spawn.in.h: Likewise.
10472         * lib/stdarg.in.h: Likewise.
10473         * lib/stddef.in.h: Likewise.
10474         * lib/stdint.in.h: Likewise.
10475         * lib/stdio.in.h: Likewise.
10476         * lib/stdlib.in.h: Likewise.
10477         * lib/string.in.h: Likewise.
10478         * lib/strings.in.h: Likewise.
10479         * lib/sys_file.in.h: Likewise.
10480         * lib/sys_ioctl.in.h: Likewise.
10481         * lib/sys_select.in.h: Likewise.
10482         * lib/sys_socket.in.h: Likewise.
10483         * lib/sys_stat.in.h: Likewise.
10484         * lib/sys_time.in.h: Likewise.
10485         * lib/sys_times.in.h: Likewise.
10486         * lib/sys_utsname.in.h: Likewise.
10487         * lib/sys_wait.in.h: Likewise.
10488         * lib/sysexits.in.h: Likewise.
10489         * lib/termios.in.h: Likewise.
10490         * lib/time.in.h: Likewise.
10491         * lib/unistd.in.h: Likewise.
10492         * lib/wchar.in.h: Likewise.
10493         * lib/wctype.in.h: Likewise.
10494         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
10495         * modules/ctype (Makefile.am): Likewise.
10496         * modules/dirent (Makefile.am): Likewise.
10497         * modules/errno (Makefile.am): Likewise.
10498         * modules/fcntl-h (Makefile.am): Likewise.
10499         * modules/float (Makefile.am): Likewise.
10500         * modules/getopt-posix (Makefile.am): Likewise.
10501         * modules/iconv-h (Makefile.am): Likewise.
10502         * modules/inttypes (Makefile.am): Likewise.
10503         * modules/langinfo (Makefile.am): Likewise.
10504         * modules/locale (Makefile.am): Likewise.
10505         * modules/math (Makefile.am): Likewise.
10506         * modules/netdb (Makefile.am): Likewise.
10507         * modules/netinet_in (Makefile.am): Likewise.
10508         * modules/poll-h (Makefile.am): Likewise.
10509         * modules/pthread (Makefile.am): Likewise.
10510         * modules/pty (Makefile.am): Likewise.
10511         * modules/sched (Makefile.am): Likewise.
10512         * modules/search (Makefile.am): Likewise.
10513         * modules/selinux-h (Makefile.am): Likewise.
10514         * modules/signal (Makefile.am): Likewise.
10515         * modules/spawn (Makefile.am): Likewise.
10516         * modules/stdarg (Makefile.am): Likewise.
10517         * modules/stddef (Makefile.am): Likewise.
10518         * modules/stdint (Makefile.am): Likewise.
10519         * modules/stdio (Makefile.am): Likewise.
10520         * modules/stdlib (Makefile.am): Likewise.
10521         * modules/string (Makefile.am): Likewise.
10522         * modules/strings (Makefile.am): Likewise.
10523         * modules/sys_file (Makefile.am): Likewise.
10524         * modules/sys_ioctl (Makefile.am): Likewise.
10525         * modules/sys_select (Makefile.am): Likewise.
10526         * modules/sys_socket (Makefile.am): Likewise.
10527         * modules/sys_stat (Makefile.am): Likewise.
10528         * modules/sys_time (Makefile.am): Likewise.
10529         * modules/sys_times (Makefile.am): Likewise.
10530         * modules/sys_utsname (Makefile.am): Likewise.
10531         * modules/sys_wait (Makefile.am): Likewise.
10532         * modules/sysexits (Makefile.am): Likewise.
10533         * modules/termios (Makefile.am): Likewise.
10534         * modules/time (Makefile.am): Likewise.
10535         * modules/unistd (Makefile.am): Likewise.
10536         * modules/wchar (Makefile.am): Likewise.
10537         * modules/wctype (Makefile.am): Likewise.
10538
10539 2010-10-04  Bruno Haible  <bruno@clisp.org>
10540
10541         read-file tests: Avoid a test failure on NonStop Kernel.
10542         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
10543         a regular file.
10544         Reported by Joachim Schmitz <schmitz@hp.com>.
10545
10546 2010-10-03  Bruno Haible  <bruno@clisp.org>
10547
10548         gnulib-tool: Fixes for --create-testdir with --libtool.
10549         * gnulib-tool (func_get_automake_snippet): Don't augment
10550         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
10551         an executable.
10552         (func_create_testdir): Handle module 'alloca' like func_import.
10553         Reported by Bruce Korb <bruce.korb@gmail.com>.
10554
10555 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
10556
10557         Avoid some lines longer than 80 characters.
10558         * lib/stdint.in.h: Break long comment lines.
10559         * lib/math.in.h: Likewise.
10560         (_GL_NUM_UINT_WORDS): New macro, for readability.
10561         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
10562         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
10563         * lib/stdlib.in.h: Likewise.
10564         * lib/spawn.in.h: Likewise.
10565         * lib/sys_socket.in.h: Update an URL.
10566         * lib/sys_stat.in.h: Break long line.
10567
10568 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
10569
10570         Improve pmccabe2html.
10571         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
10572         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
10573         when the sources change. Remove the line in the HTML about "Used
10574         ranges" (which implied that there might be other unused ranges),
10575         rename "Resume" to "Summary" (easier to understand for more users).
10576         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
10577         styles, and some unnecessary blank lines.
10578
10579 2010-10-03  Bruno Haible  <bruno@clisp.org>
10580             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
10581
10582         acl: Add support for ACLs on NonStop Kernel.
10583         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
10584         Check whether the function aclsort() exists.
10585         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
10586         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
10587         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10588         (acl_nontrivial [HAVE_ACLSORT]: New function.
10589         (file_has_acl): Implement for NonStop Kernel.
10590         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10591         (qset_acl): Implement for NonStop Kernel.
10592         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
10593         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10594         (main): Implement for NonStop Kernel.
10595         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
10596         Kernel. Handle this flavor.
10597         * tests/test-set-mode-acl.sh: Likewise.
10598         * tests/test-copy-acl.sh: Likewise.
10599         * tests/test-copy-file.sh: Likewise.
10600
10601 2010-10-03  Bruno Haible  <bruno@clisp.org>
10602
10603         Info about ACLs on NonStop Kernel.
10604         * doc/acl-resources.txt: Add info about NonStop Kernel.
10605         References by Joachim Schmitz <schmitz@hp.com>.
10606
10607 2010-10-02  Bruno Haible  <bruno@clisp.org>
10608
10609         Define missing EDQUOT on NonStop Kernel.
10610         * lib/errno.in.h (EDQUOT): Assign a value if missing.
10611         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
10612         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
10613         missing.
10614         * doc/posix-headers/errno.texi: Mention the NSK bug.
10615         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
10616         Reported by Joachim Schmitz <schmitz@hp.com>.
10617
10618 2010-10-02  Bruno Haible  <bruno@clisp.org>
10619
10620         Update doc for POSIX:2008.
10621         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
10622         Update URL of POSIX specification.
10623
10624 2010-10-02  Bruno Haible  <bruno@clisp.org>
10625
10626         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
10627         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
10628         from gnulib, not from Automake.
10629
10630 2010-10-02  Bruno Haible  <bruno@clisp.org>
10631
10632         New module 'system-posix'.
10633         * modules/system-posix: New file.
10634         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
10635         module is present.
10636         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
10637         GNULIB_SYSTEM_POSIX.
10638         * modules/stdlib (Depends-on): Remove sys_wait.
10639         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
10640         * doc/posix-functions/system.texi: Mention the new module.
10641         * doc/posix-headers/stdlib.texi: Likewise.
10642         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
10643         define test_sys_wait_macros to a no-op.
10644         Reported by Sam Steingold <sds@gnu.org>.
10645
10646 2010-09-30  Bruno Haible  <bruno@clisp.org>
10647
10648         More renaming from 'getdate' to 'get_date'.
10649         * doc/get_date.texi: Renamed from doc/getdate.texi.
10650         * modules/get_date (Files): Update.
10651         * MODULES.html.sh (Date and time <time.h>): Update.
10652         * DEPENDENCIES: Update.
10653         * gnulib-tool: Update comment.
10654         * m4/bison.m4 (gl_BISON): Likewise.
10655         * m4/get_date.m4 (gl_GET_DATE): Likewise.
10656
10657 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
10658
10659         bootstrap: support ACLOCAL_FLAGS during aclocal
10660         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
10661         can add additional -I dir for third-party .m4 files.
10662
10663 2010-09-30  Eric Blake  <eblake@redhat.com>
10664
10665         bootstrap: use glibtoolize on MacOS
10666         * build-aux/bootstrap (check_versions): Convert libtool into
10667         libtoolize.
10668         (tool search): Move libtool check earlier, and look for
10669         glibtoolize for MacOS.
10670         (gnulib_tool_options): Auto-add --libtool when appropriate.
10671         Reported by Justin Clift.
10672
10673         poll: fix typo that broke test on MacOS
10674         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
10675         Reported by Justin Clift.
10676
10677         getdate: rename to get_date
10678         Note: getdate.h is not renamed, to minimize client impact.
10679         * modules/getdate: Mark obsolete.  Move old contents...
10680         * modules/get_date: ...to new module name.
10681         * modules/getdate-tests: Move...
10682         * modules/get_date-tests: ...here.
10683         * m4/getdate.m4: Move...
10684         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
10685         * lib/getdate.y: Move...
10686         * lib/get_date.y: ...here.
10687         * tests/test-getdate.c: Move...
10688         * tests/test-get_date.c: ...here.
10689         * doc/posix-functions/getdate.texi (getdate): Update name.
10690         * NEWS: Mention the change.
10691
10692 2010-09-29  Bruno Haible  <bruno@clisp.org>
10693
10694         Separate the module 'waitpid' from the module 'sys_wait'.
10695         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
10696         present.
10697         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
10698         gl_MODULE_INDICATOR_FOR_TESTS.
10699         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
10700         * modules/sys_wait (Depends-on): Remove waitpid.
10701         (Makefile.am): Substitute GNULIB_WAITPID.
10702         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
10703         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
10704         signature only if the 'waitpid' module is present.
10705         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
10706         * NEWS: Mention the change.
10707         * modules/grantpt (Depends-on): Add waitpid.
10708         * modules/wait-process (Depends-on): Likewise.
10709
10710 2010-09-29  Bruno Haible  <bruno@clisp.org>
10711
10712         More tests for module 'sys_wait'.
10713         * modules/sys_wait-c++-tests: New file.
10714         * tests/test-sys_wait-c++.cc: New file.
10715         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
10716         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10717
10718 2010-09-29  Bruno Haible  <bruno@clisp.org>
10719
10720         New module 'waitpid'.
10721         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
10722         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
10723         Don't include <process.h>.
10724         (waitpid): Declare only, using modern idiom.
10725         * m4/waitpid.m4: New file.
10726         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
10727         * modules/waitpid: New file.
10728         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
10729         (Makefile.am): Update.
10730         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10731
10732 2010-09-28  Bruno Haible  <bruno@clisp.org>
10733
10734         poll: Assume ANSI C.
10735         * lib/poll.c (poll): Use an ANSI C declaration.
10736
10737 2010-09-28  Bruno Haible  <bruno@clisp.org>
10738
10739         poll-h: Create poll.h on all platforms.
10740         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
10741         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
10742         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
10743         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
10744         (gl_REPLACE_POLL_H): Don't set POLL_H.
10745         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
10746         * modules/poll-h (Depends-on): Add include_next.
10747         (Makefile.am): Create poll.h unconditionally. Substitute also
10748         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
10749
10750 2010-09-28  Bruno Haible  <bruno@clisp.org>
10751
10752         Tests for module 'poll-h'.
10753         * modules/poll-h-c++-tests: New file.
10754         * tests/test-poll-h-c++.cc: New file.
10755
10756         Tests for module 'poll-h'.
10757         * modules/poll-h-tests: New file.
10758         * tests/test-poll-h.c: New file.
10759
10760 2010-09-28  Bruno Haible  <bruno@clisp.org>
10761
10762         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
10763         * modules/poll-h (Depends-on): Add 'extensions'.
10764
10765 2010-09-28  Bruno Haible  <bruno@clisp.org>
10766
10767         New module 'poll-h'.
10768         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
10769         (poll): Use modern idiom.
10770         * modules/poll-h: New file.
10771         * modules/poll (Files): Remove lib/poll.in.h.
10772         (Depends-on): Add poll-h.
10773         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
10774         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
10775         * m4/poll_h.m4: New file.
10776         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
10777         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
10778         and invoke gl_REPLACE_POLL_H.
10779         * lib/poll.c: Use common idiom.
10780         * tests/test-poll.c: Likewise.
10781         * doc/posix-headers/poll.texi: Mention the poll-h module.
10782         Suggested by Eric Blake.
10783
10784 2010-09-26  Bruno Haible  <bruno@clisp.org>
10785
10786         sys_wait: Implement WSTOPSIG.
10787         * lib/sys_wait.in.h (WSTOPSIG): New macro.
10788         Reported by Simon Josefsson.
10789
10790 2010-09-26  Simon Josefsson  <simon@josefsson.org>
10791
10792         stdlib, sys_wait: Avoid compilation error on mingw.
10793         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
10794
10795 2010-09-26  Bruno Haible  <bruno@clisp.org>
10796
10797         stdlib tests: Avoid code duplication.
10798         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
10799         * modules/sys_wait-tests (Files): Likewise.
10800         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
10801         * tests/test-stdlib.c: Include test-sys_wait.h.
10802         (main): Invoke test_sys_wait_macros.
10803         * tests/test-sys_wait.c: Include test-sys_wait.h.
10804         (main): Invoke test_sys_wait_macros.
10805
10806 2010-09-25  Simon Josefsson  <simon@josefsson.org>
10807
10808         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
10809         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
10810         sure Windows sockets are working before calling getaddrinfo.
10811         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
10812         * doc/gnulib.texi (Windows sockets): Fix typo.
10813
10814 2010-09-25  Bruno Haible  <bruno@clisp.org>
10815
10816         Tests for module 'regex-quote'.
10817         * modules/regex-quote-tests: New file.
10818         * tests/test-regex-quote.c: New file.
10819
10820         New module 'regex-quote'.
10821         * lib/regex-quote.h: New file.
10822         * lib/regex-quote.c: New file.
10823         * modules/regex-quote: New file.
10824         Suggested by Reuben Thomas <rrt@sc3d.org>.
10825
10826 2010-09-24  Bruno Haible  <bruno@clisp.org>
10827
10828         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
10829         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
10830
10831 2010-09-23  Bruno Haible  <bruno@clisp.org>
10832
10833         setenv: Relax license.
10834         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
10835         Blake.
10836         Requested by Eric Blake.
10837
10838 2010-09-22  Bruno Haible  <bruno@clisp.org>
10839
10840         termios: Relax license.
10841         * modules/termios (License): Change to LGPLv2+.
10842         Requested by Eric Blake.
10843
10844 2010-09-22  Bruno Haible  <bruno@clisp.org>
10845
10846         threadlib: Allow the package to change the default to 'no'.
10847         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
10848         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
10849         Reported by Paul Eggert.
10850
10851 2010-09-22  Pádraig Brady  <P@draigbrady.com>
10852             Bruno Haible  <bruno@clisp.org>
10853
10854         Fix endless loop in mbmemcasecoll.
10855         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
10856         byte.
10857         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
10858
10859 2010-09-22  Bruno Haible  <bruno@clisp.org>
10860
10861         Tests for module 'memcoll'.
10862         * modules/memcoll-tests: New file.
10863         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
10864
10865         memcoll, xmemcoll: Clarify size vs. length.
10866         * modules/memcoll.c (memcoll0): Clarify specification.
10867         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
10868         passed to collate_error.
10869
10870 2010-09-22  Bruno Haible  <bruno@clisp.org>
10871
10872         Tests for module 'memcasecmp'.
10873         * modules/memcasecmp-tests: New file.
10874         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
10875
10876 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
10877
10878         * lib/pthread.in.h: Add split double-inclusion guard, and include
10879         system <pthread.h> if there is one.  Use @@-style as in other
10880         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
10881         pthread.h doesn't.
10882         (pthread_mutexattr_destroy, pthread_mutexattr_init):
10883         (pthread_mutexattr_settype, pthread_mutex_trylock):
10884         New static inline functions, if there's no system <pthread.h>.
10885         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
10886         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
10887         Approximate with mutexes if the system lacks spinlocks, as in
10888         MacOS.
10889         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
10890         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
10891         @@-style.  Check for spinlocks separately.
10892         (gl_PTHREAD_DEFAULTS): New macro.
10893         * modules/pthread: Redo to use a more typical style for in.h files.
10894
10895 2010-09-21  Eric Blake  <eblake@redhat.com>
10896
10897         net_if: enhance tests
10898         * tests/test-net_if.c (main): Move signature checks earlier.
10899         Print failures to stderr.
10900         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
10901         Document the bug that we do not yet fix.
10902
10903 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10904
10905         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
10906         about gnulib, not GSS.
10907
10908 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
10909
10910         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
10911         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
10912         for Emacs.
10913         * build-aux/pmccabe2html: Make Makefile.am example code more
10914         cut-and-paste friendly.
10915
10916 2010-09-21  Simon Josefsson  <simon@josefsson.org>
10917
10918         * tests/test-net_if.c: New file.
10919         * modules/net_if-tests: New file.
10920
10921 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
10922
10923         pthread: add pthread_spin_destroy
10924         * lib/pthread.in.h (pthread_spin_destroy): New function.
10925
10926 2010-09-19  Bruno Haible  <bruno@clisp.org>
10927
10928         gnulib-tool: Fix --help output.
10929         * gnulib-tool (func_usage): Fix help message.
10930         Reported by Reuben Thomas <rrt@sc3d.org>.
10931
10932 2010-09-18  Jim Meyering  <meyering@redhat.com>
10933
10934         maint.mk: avoid unexpanded \n in two diagnostics
10935         * top/maint.mk (sc_prohibit_always_true_header_tests):
10936         Don't use a literal \n in a halt=... assignment.  It would not be
10937         expanded, and the two \n bytes would appear in the diagnostic output
10938         rather than the desired newline.  Use halt=$$(printf ... instead.
10939         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
10940
10941 2010-09-18  Bruno Haible  <bruno@clisp.org>
10942
10943         netinet_in: Doc tweak.
10944         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
10945         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
10946
10947 2010-09-18  Jim Meyering  <meyering@redhat.com>
10948
10949         init.sh: correct an outdated comment
10950         * tests/init.sh (create_exe_shims_):  s/function/alias/
10951
10952         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
10953         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
10954         a file named "*.exe" is removed between the glob expansion and the
10955         processing of that oddly named file.
10956
10957 2010-09-17  Eric Blake  <eblake@redhat.com>
10958
10959         mirbsd: add some more support
10960         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
10961         in BSD family.
10962         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
10963         devices as OpenBSD.
10964         * m4/host-os.m4 (mirbsd): Add MirBSD.
10965
10966         tests: fix unportable assumption on sys/wait.h
10967         * tests/test-sys_wait.c (main): Relax test.
10968         * tests/test-stdlib.c (main): Likewise.
10969
10970         init.sh: accomodate directory with no .exes
10971         * tests/init.sh: Accomodate directory containing only scripts.
10972
10973         tests: avoid compiler warning
10974         * tests/test-stdlib.c (main): Use the variable.
10975
10976         fdutimens, fdutimensat: update signature, again
10977         * lib/utimens.h (gl_futimens): Delete, and move signature...
10978         (fdutimens): ...here.
10979         (fdutimensat): Rearrange signature.
10980         (lutimensat): Rename variable for clarity.
10981         * lib/fdutimensat.c (fdutimensat): Update signature.
10982         * lib/utimens.c (fdutimens): Likewise.
10983         (gl_futimens): Delete.
10984         (utimens, lutimens): Update callers.
10985         * lib/futimens.c (futimens): Likewise.
10986         * tests/test-fdutimensat.c: Likewise.
10987         * tests/test-utimens.c: Likewise.
10988         * tests/test-futimens.h: Update comment.
10989         * NEWS: Mention this.
10990         Suggested by Paul Eggert.
10991
10992 2010-09-17  Bruno Haible  <bruno@clisp.org>
10993
10994         Take over the maintenance of some older macros from Autoconf.
10995         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
10996         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
10997         GNU Autoconf.
10998         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
10999         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
11000
11001 2010-09-17  Eric Blake  <eblake@redhat.com>
11002
11003         fdutimensat: drop atflag validation
11004         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
11005         with valid fd, to close a race scenario where futimens is
11006         unsupported and FILE was replaced by a symlink.
11007         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
11008         accordingly.
11009         Suggested by Paul Eggert.
11010
11011 2010-09-16  Bruno Haible  <bruno@clisp.org>
11012
11013         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
11014         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
11015
11016 2010-09-16  Bruno Haible  <bruno@clisp.org>
11017
11018         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
11019         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
11020         login_tty exists.
11021         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11022
11023 2010-09-16  Bruno Haible  <bruno@clisp.org>
11024
11025         login_tty: Make the replacement code work on BSD systems.
11026         * lib/login_tty.c: Include <sys/ioctl.h>.
11027         (login_tty): Use ioctl TIOCSCTTY when available.
11028         * modules/login_tty (Depends-on): Add sys_ioctl.
11029         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11030
11031 2010-09-16  Bruno Haible  <bruno@clisp.org>
11032
11033         login_tty: Stricter unit test.
11034         * modules/login_tty-tests (Depends-on): Add tcgetsid.
11035         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
11036         and tcgetsid() after login_tty.
11037         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11038
11039 2010-09-16  Bruno Haible  <bruno@clisp.org>
11040
11041         New module 'tcgetsid'.
11042         * lib/tcgetsid.c: New file.
11043         * m4/tcgetsid.m4: New file.
11044         * modules/tcgetsid: New file.
11045         * modules/termios (Depends-on): Add c++defs, warn-on-use.
11046         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
11047         GNULIB_TCGETSID, HAVE_TCGETSID.
11048         * lib/termios.in.h: Include <sys/types.h>.
11049         (tcgetsid): New declaration.
11050         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
11051         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
11052         * doc/posix-functions/tcgetsid.texi: Mention the new module.
11053         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
11054
11055 2010-09-16  Bruno Haible  <bruno@clisp.org>
11056
11057         Tests for module 'termios'.
11058         * modules/termios-c++-tests: New file.
11059         * modules/termios-tests: New file.
11060         * tests/test-termios-c++.cc: New file.
11061         * tests/test-termios.c: New file.
11062
11063         New module 'termios'.
11064         * modules/termios: New file.
11065         * lib/termios.in.h: New file.
11066         * m4/termios_h.m4: New file.
11067         * doc/posix-headers/termios.texi: Mention the new module.
11068
11069 2010-09-16  Eric Blake  <eblake@redhat.com>
11070
11071         fdutimensat: add an atflag parameter
11072         * lib/fdutimensat.c (fdutimensat): Add new parameter.
11073         * lib/utimens.h (fdutimensat): Update prototype.
11074         * tests/test-fdutimensat.c: Adjust test to match.
11075         * NEWS: Document the change.
11076         Suggested by Paul Eggert.
11077
11078 2010-09-16  Bruno Haible  <bruno@clisp.org>
11079
11080         Fix typos in comments.
11081         * lib/striconveh.h: Fix typo in comment.
11082         * lib/login_tty.c (login_tty): Likewise.
11083
11084 2010-09-15  Bruno Haible  <bruno@clisp.org>
11085
11086         stdlib: clarify MirBSD WEXITSTATUS bug
11087         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
11088         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11089
11090 2010-09-15  Eric Blake  <eblake@redhat.com>
11091
11092         stdlib: work around MirBSD WEXITSTATUS bug
11093         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
11094         * modules/stdlib (Depends-on): Add sys_wait.
11095         * tests/test-sys_wait.c (main): Enhance test.
11096         * tests/test-stdlib.c (main): Likewise.
11097         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
11098
11099         docs: mention MacOS issue with WEXITSTATUS(constant)
11100         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
11101         issue.
11102         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
11103
11104         strnlen: add tests
11105         * modules/strnlen-tests: New file.
11106         * tests/test-strnlen.c: Likewise.
11107
11108 2010-09-14  Bruno Haible  <bruno@clisp.org>
11109
11110         unistr/base: Avoid link errors when module 'libunistring' is also used.
11111         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
11112         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
11113         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
11114         Declare also when HAVE_LIBUNISTRING is set.
11115         Reported by Pádraig Brady <P@draigbrady.com>.
11116
11117 2010-09-14  Eric Blake  <eblake@redhat.com>
11118
11119         test-rawmemchr: make more robust
11120         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
11121         (Depends-on, configure.ac): Add needed prerequisites to use it.
11122         * modules/memchr-tests (Files, Depends-on, configure.ac):
11123         Likewise, to avoid implicit reliance on memchr module prereqs.
11124         * tests/test-memchr.c (main): Ensure proper masking.
11125         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
11126         reads.
11127
11128         memchr: detect glibc Alpha bug
11129         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
11130         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
11131         Alpha.
11132         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
11133         * tests/test-memchr.c (main): Enhance test.
11134         Reported by Nelson H. F. Beebe.
11135
11136 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11137
11138         fts, getcwd, glob: audit for dirfd returning -1
11139         * lib/fts.c (opendir): Remove #define; no longer used.
11140         (opendirat): New arg PDIR_FD.  All callers changed.
11141         (fts_build, _opendir2): Use new opendirat to avoid the need for
11142         dirfd, or for checking whether dirfd returns a negative value.
11143         Don't use opendir; always use openat followed by fdopendir.
11144         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
11145         it.
11146         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
11147         returns -1 here.
11148         * modules/fts (Depends-on): Remove dirfd.
11149         * modules/getcwd (Depends-on): Likewise.
11150
11151 2010-09-13  Eric Blake  <eblake@redhat.com>
11152
11153         float: fix broken MirBSD header
11154         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
11155         * doc/posix-headers/float.texi (float.h): Document it.
11156
11157 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11158
11159         fts: use O_NOFOLLOW to avoid race condition when opening a directory
11160         * lib/fts.c (opendirat): New arg extra_flags.
11161         (__opendir2): Use it to avoid following symlinks when opening
11162         a directory, if symlinks are not supposed to be followed.  See
11163         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
11164
11165         fdopendir: preserve argument fd before returning
11166         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
11167         (fdopendir_with_dup, fd_clone_opendir): New static functions.
11168         (fdopendir): Use them, arranging for FD to be open to the same
11169         directory that it was when it started.  (It might be temporarily
11170         closed while fdopendir is running, so this not thread- or
11171         signal-safe.)  Be careful to do the right thing even when file
11172         descriptors are scarce and dup fails with errno == EMFILE.  See
11173         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
11174
11175 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
11176
11177         regex: Pass the system regex if its only problem is 32-bit regoff_t.
11178         * NEWS: Document change.
11179         * m4/regex.m4: Disable test for regoff_t size.
11180
11181 2010-09-13  Jim Meyering  <meyering@redhat.com>
11182
11183         fts: don't operate on an invalid file descriptor after failed dup
11184         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
11185         negative file descriptor.
11186
11187 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
11188
11189         savedir: add streamsavedir, deprecate fdsavedir
11190         * NEWS: Mention deprecation of fdsavedir.
11191         * lib/savedir.c (streamsavedir): New extern function, whose name
11192         ends in "savedir" to be consistent with the others.  This differs
11193         from savedirstream in that it doesn't close its argument.  The
11194         next version of GNU tar will use this instead of fdsavedir, to
11195         avoid some race conditions and conserve file descriptors.
11196         (savedirstream): Reimplement as a wrapper around streamsavedir.
11197         (fdsavedir): Add a comment deprecating this function.  As far as
11198         I know, only GNU tar used it, and GNU tar doesn't need it any more.
11199         * lib/savedir.h (streamsavedir): New decl.
11200         (fdsavedir): Add a comment deprecating this.
11201
11202 2010-09-10  Bruno Haible  <bruno@clisp.org>
11203
11204         langinfo: Fix last commit.
11205         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
11206         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
11207         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11208
11209 2010-09-10  Bruno Haible  <bruno@clisp.org>
11210
11211         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
11212         * lib/progreloc.c (O_EXEC): Define fallback.
11213
11214 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
11215
11216         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
11217         * NEWS: Document recent changes to fcntl-h.
11218         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
11219         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
11220         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
11221         Similarly for O_SEARCH; this last was already true, but not documented.
11222         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
11223         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
11224         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
11225         Likewise.
11226         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
11227         is zero, not whether it is defined.
11228         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
11229         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
11230         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
11231
11232 2010-09-10  Bruno Haible  <bruno@clisp.org>
11233
11234         langinfo, nl_langinfo: Fix for IRIX 5.3.
11235         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
11236         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
11237         HAVE_LANGINFO_YESEXPR.
11238         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
11239         HAVE_LANGINFO_YESEXPR.
11240         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
11241         HAVE_LANGINFO_T_FMT_AMPM is 0.
11242         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
11243         HAVE_LANGINFO_YESEXPR is 0.
11244         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
11245         NOEXPR.
11246         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
11247         * doc/posix-functions/nl_langinfo.texi: Likewise.
11248         Reported by Eric Blake.
11249
11250 2010-09-10  Bruno Haible  <bruno@clisp.org>
11251
11252         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
11253         * doc/glibc-functions/login_tty.texi: Mention the include file problem
11254         on FreeBSD 8.0 and OpenBSD 4.6.
11255         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
11256         * m4/pty_h.m4 (gl_PTY_H): Likewise.
11257         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
11258         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
11259         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
11260         ac_includes_default.
11261         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
11262
11263 2010-09-09  Eric Blake  <eblake@redhat.com>
11264
11265         strsignal: work around NetBSD bug
11266         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
11267         * lib/string.in.h (includes): Likewise.
11268         * doc/posix-functions/strsignal.texi (strsignal): Document the
11269         bug.
11270         Reported by Nelson H. F. Beebe.
11271
11272         gnulib-tool: work with NetBSD /bin/sh
11273         * gnulib-tool (func_cache_var, func_cache_lookup_module)
11274         (func_get_description, func_get_comment, func_get_status)
11275         (func_get_notice, func_get_applicability, func_get_filelist)
11276         (func_get_dependencies, func_get_autoconf_early_snippet)
11277         (func_get_autoconf_snippet, func_get_automake_snippet)
11278         (func_get_include_directive, func_get_link_directive)
11279         (func_get_license, func_get_maintainer, func_import): Avoid
11280         shell syntax errors from parsing syntax extensions.
11281
11282 2010-09-09  Bruno Haible  <bruno@clisp.org>
11283
11284         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11285         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
11286         a reliable way to determine whether the 'alias' command works.
11287
11288 2010-09-08  Jim Meyering  <meyering@redhat.com>
11289
11290         init.sh: penalize a set-x-impaired shell; don't disqualify it
11291         * tests/init.sh: Too many shells corrupt application stderr when
11292         you set -x, so we can't afford to disqualify them, since at least
11293         on Irix-6.5, that would disqualify all bourne shells.
11294         Instead, use a two-pass approach.
11295         On the first pass, try to find a shell that meets the stricter
11296         condition that set -x does not corrupt stderr.
11297         If no shell meets the stricter condition, retest each candidate
11298         shell, but without that extra condition.  Finally, when
11299         VERBOSE=yes is requested and set -x might cause trouble, simply
11300         issue a warning and refrain from enabling debug output.
11301
11302 2010-09-08  Eric Blake  <eblake@redhat.com>
11303
11304         unsetenv: fix OpenBSD bug
11305         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
11306         * doc/posix-functions/unsetenv.texi (unsetenv): Update
11307         documentation.
11308         Reported by Jim Meyering.
11309
11310         strtod: work around IRIX 6.5 bug
11311         * lib/strtod.c (strtod): Reparse number on shorter string if
11312         exponent parse was invalid.
11313         * tests/test-strtod.c (main): Add check for "0x1p 2".
11314         Reported by Tom G. Christensen.
11315
11316         getopt: optimize previous patch
11317         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
11318         empty variable.  Speed up awk script.
11319         Reported by Paolo Bonzini.
11320
11321 2010-09-08  Jim Meyering  <meyering@redhat.com>
11322
11323         test.sh: disqualify shells for which set -x corrupts stderr
11324         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
11325         and OpenBSD 4.7.  They make it so with "set -x", environment settings
11326         appear in stderr output.  For example, this command:
11327             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
11328         prints "P=1" on those two systems:
11329
11330 2010-09-08  Bruno Haible  <bruno@clisp.org>
11331
11332         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
11333         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
11334         commands, because some shells ignore redirections when there is an
11335         error in the command lookup.
11336         Reported by Eric Blake.
11337
11338 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
11339
11340         * lib/regex.h: Fix a mention of `regex_compile' (should be
11341         `re_compile_pattern').
11342         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
11343         (re_set_registers): Correct name of parameter in comment.
11344
11345         * doc/regex.texi: Add documentation for missing syntax flags.
11346         Remove commented-out documentation of defunct syntax option
11347         RE_NO_EMPTY_ALTS.
11348         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
11349         Add documentation of re_set_registers.
11350         Document trick to re-use a pattern buffer by setting fastmap manually.
11351         Update documentation of struct re_pattern_buffer per public members.
11352         Uncomment documentation of equivalence class operators and
11353         collating symbol operators, since they are now implemented,
11354         Explain leftmost-longest matching in relation to alternatives.
11355         Tidy documentation of substring matching.
11356         Remove POSIX documentation, which is done better in
11357         glibc, and refer the reader there. Keep BSD API documentation, as
11358         that is not readily available elsewhere.
11359
11360 2010-09-07  Eric Blake  <eblake@redhat.com>
11361
11362         getopt: handle POSIXLY_CORRECT set but not exported
11363         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
11364         export state of POSIXLY_CORRECT, due to bash set -o posix.
11365         Reported by Dustin J. Mitchell.
11366
11367 2010-09-05  Bruno Haible  <bruno@clisp.org>
11368
11369         gnulib-tool: Highlight the changed options.
11370         * gnulib-tool (func_usage): Display the --import, --add-import,
11371         --remove-import explanations in bold font.
11372
11373 2010-09-06  Karl Berry  <karl@gnu.org>
11374
11375         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
11376
11377 2010-09-05  Bruno Haible  <bruno@clisp.org>
11378
11379         uniwidth/width: Update comment.
11380         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
11381         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
11382
11383 2010-09-05  Bruno Haible  <bruno@clisp.org>
11384
11385         isinf, isnan: Relax license.
11386         * modules/isinf (License): Change from GPL to LGPL, with consent from
11387         Ben Pfaff.
11388         * modules/isnan (License): Likewise.
11389         Requested by Ludovic Courtès.
11390
11391 2010-09-04  Bruno Haible  <bruno@clisp.org>
11392
11393         gnulib-tool: Help migration from --import to --add-import or --update.
11394         * gnulib-tool: Emit a verbose error message when --import is used
11395         without any module name.
11396
11397 2010-09-04  Bruno Haible  <bruno@clisp.org>
11398
11399         Update doc about gnulib-tool.
11400         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
11401         'gnulib-tool --update' in more detail.
11402         Reported by Eric Blake.
11403
11404 2010-09-04  Bruno Haible  <bruno@clisp.org>
11405
11406         gnulib-tool: Change --import. New options --add/remove-import.
11407         * gnulib-tool: New options --add-import, --remove-import.
11408         (func_usage): Document them.
11409         (have_associative): Define always.
11410         (func_import): In import mode, don't merge the specified settings with
11411         the cached settings. Implement remove-import mode.
11412         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
11413         Explain when to use them versus --import.
11414         (Simple update): Use --add-import instead of --import.
11415         * NEWS: Mention the change.
11416
11417 2010-09-04  Bruno Haible  <bruno@clisp.org>
11418
11419         * doc/gnulib-tool.texi (Initial import): Update paragraph about
11420         separate gnulib.mk.
11421
11422 2010-09-04  Bruno Haible  <bruno@clisp.org>
11423
11424         gnulib-tool: Don't talk about CVS any more.
11425         * gnulib-tool (func_usage, func_import): Write "version control"
11426         instead of CVS.
11427
11428 2010-09-04  Jim Meyering  <meyering@redhat.com>
11429
11430         maint.mk: avoid obscure sc_copyright_check failure in coreutils
11431         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
11432         false positives (whose names may be ill-chosen) when searching
11433         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
11434         would cause a false-positive.
11435
11436         avoid coreutils "make distcheck" failure
11437         Coreutils tests with an absolute build directory name that contains
11438         a space.  Not quoting this directory name caused a failure.
11439         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
11440         * tests/test-vc-list-files-cvs.sh: Likewise.
11441
11442 2010-09-04  Bruno Haible  <bruno@clisp.org>
11443
11444         gnulib-tool: Avoid error when run in a package without Makefile.am.
11445         * gnulib-tool: When collecting the m4dirs in a package that does not
11446         have a Makefile.am, eliminate those directories that contain no
11447         gnulib-cache.m4. Fix expression that counts these directories.
11448
11449 2010-09-04  Bruno Haible  <bruno@clisp.org>
11450
11451         update-copyright test: Improve output when perl is missing or too old.
11452         * tests/test-update-copyright.sh: Move test of Perl version down after
11453         the test whether Perl exists. Provide an explanation relating Perl's
11454         error message to Automake's SKIP: message.
11455
11456 2010-09-04  Bruno Haible  <bruno@clisp.org>
11457
11458         Don't augment PATH in TESTS_ENVIRONMENT.
11459         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
11460         set abs_aux_dir instead of augmenting PATH.
11461         * modules/vc-list-files-tests (Makefile.am): Likewise.
11462         * tests/test-update-copyright.sh: Augment PATH here.
11463         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
11464         path_prepend_.
11465         * tests/test-vc-list-files-git.sh: Likewise.
11466
11467 2010-09-04  Jim Meyering  <meyering@redhat.com>
11468
11469         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
11470         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
11471
11472 2010-09-04  Bruno Haible  <bruno@clisp.org>
11473
11474         strdup: Fix compilation error in C++ mode.
11475         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
11476         the macro.
11477
11478 2010-09-04  Bruno Haible  <bruno@clisp.org>
11479
11480         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
11481         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
11482         macro into a function.
11483         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
11484
11485 2010-09-04  Bruno Haible  <bruno@clisp.org>
11486
11487         Set PATH_SEPARATOR the same way autoconf does.
11488         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
11489         the value of PATH_SEPARATOR the same way autoconf-generated configure
11490         scripts do.
11491         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
11492         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
11493
11494 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
11495
11496         Set PATH_SEPARATOR the same way autoconf does.
11497         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
11498         the same way autoconf-generated configure scripts do.
11499         * posix-modules: Likewise.
11500
11501 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11502
11503         hash: fix safe_hasher const typo
11504         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
11505         const; otherwise, there is a type error later.
11506
11507 2010-09-02  Jim Meyering  <meyering@redhat.com>
11508
11509         test-update-copyright.sh: require perl 5.8.0
11510         * tests/test-update-copyright.sh: Require 5.8.0,
11511         which Tom G. Christensen has confirmed is adequate,
11512         while 5.6.1 is not.
11513
11514 2010-09-02  Eric Blake  <eblake@redhat.com>
11515
11516         tests: init.sh improvements for re-exec'ing with zsh
11517         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
11518         -vx through shell re-exec.
11519         Reported by Tom G. Christensen.
11520
11521         wctype: fix typo in previous commit
11522         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
11523         Reported by Ludovic Courtès.
11524
11525 2010-09-02  Jim Meyering  <meyering@redhat.com>
11526
11527         test-update-copyright.sh: skip test if Perl is too old
11528         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
11529         Reported by Tom G. Christensen.
11530
11531 2010-09-02  Bruno Haible  <bruno@clisp.org>
11532
11533         wctype: Avoid compilation error on IRIX 6.5.30.
11534         * lib/wctype.in.h (iswblank): Declare with a replacement if
11535         REPLACE_ISWBLANK is set.
11536         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
11537         declared. Set REPLACE_ISWBLANK.
11538         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
11539         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
11540         * doc/posix-headers/wctype.texi: Likewise.
11541         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11542
11543 2010-09-01  Bruno Haible  <bruno@clisp.org>
11544
11545         New module 'socketlib'.
11546         * modules/socketlib: New file.
11547         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
11548         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
11549         * modules/sockets (Depends-on): Add socketlib.
11550         Suggested by Sam Steingold <sds@gnu.org>.
11551
11552 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11553
11554         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
11555
11556         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
11557         when one needs search access to a directory but not read access.
11558         On systems where it is available, it works in some cases where
11559         O_RDONLY does not, namely on directories that are searchable but
11560         not readable, and which need only to be searchable.  If O_SEARCH
11561         is not available, fall back to the traditional method of using
11562         O_RDONLY.
11563
11564         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
11565         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
11566         when opening a directory that needs only to be searchable.
11567         * lib/chdir-safer.c (chdir_no_follow): Likewise.
11568         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
11569         * lib/openat-proc.c (openat_proc_name): Likewise.
11570         * lib/openat.c (openat_needs_fchdir): Likewise.
11571         * lib/save-cwd.c (save_cwd): Likewise.
11572         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
11573
11574 2010-08-28  Bruno Haible  <bruno@clisp.org>
11575
11576         New module 'host-cpu-c-abi'.
11577         * modules/host-cpu-c-abi: New file.
11578         * m4/host-cpu-c-abi.m4: New file, based on part of
11579         clisp/src/m4/general.m4.
11580         Requested by Sam Steingold <sds@gnu.org>.
11581
11582 2010-08-31  Eric Blake  <eblake@redhat.com>
11583         and Jim Meyering  <meyering@redhat.com>
11584
11585         hash: factor, and guard against misbehaving hasher function
11586         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
11587         of table->hasher's return value.  Also protect against a hash value
11588         so large that adding it to table->bucket results in a NULL pointer.
11589         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
11590         Use it in place of open-coded check-and-abort.
11591
11592 2010-08-30  Bruno Haible  <bruno@clisp.org>
11593
11594         hash: silence spurious clang warning
11595         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
11596         Reported by Eric Blake.
11597
11598 2010-08-30  Eric Blake  <eblake@redhat.com>
11599
11600         strstr, memmem, strcasestr: avoid leaked shell message
11601         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
11602         FreeBSD.
11603         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
11604         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
11605
11606         tests: silence clang warning
11607         * tests/test-malloca.c (do_allocation): Avoid dead store.
11608
11609 2010-08-29  Bruno Haible  <bruno@clisp.org>
11610
11611         gettext: Fix recent mistake.
11612         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
11613
11614 2010-08-29  Bruno Haible  <bruno@clisp.org>
11615
11616         selinux-h: Offer a --without-selinux option.
11617         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
11618         --without-selinux was specified, skip all tests and define
11619         HAVE_SELINUX_SELINUX_H to 0.
11620         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
11621         set LIB_SELINUX to empty.
11622         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
11623         gl_LIBSELINUX. If --without-selinux was specified, replace
11624         selinux/context.h.
11625         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
11626
11627 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11628             Bruno Haible  <bruno@clisp.org>
11629
11630         Make the module 'realloc-gnu' work again on AIX and OSF/1.
11631         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
11632         of HAVE_REALLOC.
11633         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
11634         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
11635         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
11636         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11637
11638 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11639             Bruno Haible  <bruno@clisp.org>
11640
11641         Make the module 'calloc-gnu' work again on AIX and OSF/1.
11642         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
11643         HAVE_CALLOC.
11644         * lib/xmalloc.c: Update accordingly.
11645         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
11646         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
11647         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
11648
11649 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11650             Bruno Haible  <bruno@clisp.org>
11651
11652         Make the module 'malloc-gnu' work again on AIX and OSF/1.
11653         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
11654         HAVE_MALLOC.
11655         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
11656         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
11657         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
11658
11659 2010-08-29  Bruno Haible  <bruno@clisp.org>
11660
11661         Update modules list.
11662         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
11663         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
11664         (String handling <string.h>): Add astrxfrm.
11665         (File system functions): Add readlinkat.
11666
11667 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11668
11669         Tests for module 'realloc-gnu'.
11670         * modules/realloc-gnu-tests: New file.
11671         * tests/test-realloc-gnu.c: New file.
11672
11673         Tests for module 'calloc-gnu'.
11674         * modules/calloc-gnu-tests: New file.
11675         * tests/test-calloc-gnu.c: New file.
11676
11677         Tests for module 'malloc-gnu'.
11678         * modules/malloc-gnu-tests: New file.
11679         * tests/test-malloc-gnu.c: New file.
11680
11681 2010-08-28  Bruno Haible  <bruno@clisp.org>
11682
11683         Rename module 'realloc' -> 'realloc-gnu'.
11684         * modules/realloc-gnu: New file, copied from modules/realloc.
11685         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
11686         obsolete.
11687         * modules/mgetgroups (Depends-on): Update.
11688         * doc/posix-functions/realloc.texi: Update.
11689         * NEWS: Mention the change.
11690
11691         Rename module 'calloc' -> 'calloc-gnu'.
11692         * modules/calloc-gnu: New file, copied from modules/calloc.
11693         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
11694         obsolete.
11695         * doc/posix-functions/calloc.texi: Update.
11696         * NEWS: Mention the change.
11697
11698         Rename module 'malloc' -> 'malloc-gnu'.
11699         * modules/malloc-gnu: New file, copied from modules/malloc.
11700         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
11701         obsolete.
11702         * modules/argp (Depends-on): Update.
11703         * modules/regex (Depends-on): Update.
11704         * doc/posix-functions/malloc.texi: Update.
11705         * NEWS: Mention the change.
11706
11707 2010-08-28  Eric Blake  <eblake@redhat.com>
11708
11709         pread, pwrite: add missing dependency
11710         * modules/pread (Depends-on): Add extensions.
11711         * modules/pwrite (Depends-on): Likewise.
11712
11713 2010-08-28  Bruno Haible  <bruno@clisp.org>
11714
11715         unistr/u*-strchr: Fix tests dependencies.
11716         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
11717         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
11718         Reported by Ian Beckwith <ianb@erislabs.net>.
11719
11720 2010-08-28  Bruno Haible  <bruno@clisp.org>
11721
11722         read-file: Don't occupy too much unused memory.
11723         * lib/read-file.c (fread_file): Shrink the buffer at the end.
11724
11725 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
11726             Eric Blake  <eblake@redhat.com>
11727             Bruno Haible  <bruno@clisp.org>
11728
11729         read-file: Avoid memory reallocations with regular files.
11730         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
11731         (fread_file): With regular files, use the remaining length as the
11732         initial buffer size.  Check against overflow.
11733         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
11734         sys_stat.
11735
11736 2010-08-28  Bruno Haible  <bruno@clisp.org>
11737
11738         ftello: Relax license.
11739         * modules/ftello (License): Relax to LGPLv2+.
11740         Reported by Eric Blake.
11741
11742 2010-08-28  Bruno Haible  <bruno@clisp.org>
11743
11744         Avoid relocwrapper link errors due to gnulib replacement functions.
11745         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
11746         function.
11747         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11748
11749 2010-08-28  Bruno Haible  <bruno@clisp.org>
11750
11751         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
11752         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
11753         defined.
11754         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
11755         Suggested by Eric Blake.
11756
11757 2010-08-28  Bruno Haible  <bruno@clisp.org>
11758
11759         sys_socket, netdb: Ensure socklen_t gets defined.
11760         * modules/sys_socket (Depends-on): Add socklen.
11761         * modules/netdb (Depends-on): Likewise.
11762         * modules/getaddrinfo (Depends-on): Remove socklen.
11763         * modules/getsockopt (Depends-on): Likewise.
11764         * modules/setsockopt (Depends-on): Likewise.
11765         * tests/test-sys_socket.c: Check that socklen_t is defined.
11766         * tests/test-netdb.c: Likewise.
11767         * m4/socklen.m4: Update comments.
11768         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11769
11770 2010-08-27  Eric Blake  <eblake@redhat.com>
11771
11772         login_tty: add missing dependency
11773         * modules/login_tty (Depends-on): Add pty.
11774
11775 2010-08-26  Eric Blake  <eblake@redhat.com>
11776
11777         lib-symbol-versions: fix m4 quoting
11778         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
11779         format for AC_LINK_IFELSE.
11780
11781         glob: fix compile test
11782         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
11783
11784         btowc: fix missing file
11785         * modules/btowc (Files): Also ship locale-fr.m4.
11786
11787         lseek: fix link test
11788         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
11789         AC_LINK_IFELSE.
11790
11791         include_next: silence autoconf 2.68 warning
11792         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
11793         AC_COMPILE_IFELSE as special.
11794         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
11795         autoconf < 2.68.
11796
11797         acl: fix compilation test
11798         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
11799         AC_COMPILE_IFELSE.
11800
11801 2010-08-26  Bruno Haible  <bruno@clisp.org>
11802
11803         Modernize AC_TRY_RUN invocations.
11804         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
11805         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
11806         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
11807         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
11808         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
11809         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
11810         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
11811         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
11812         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11813         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11814         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
11815         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
11816         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
11817         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11818         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
11819         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
11820         gl_MBRLEN_NUL_RETVAL): Likewise.
11821         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
11822         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
11823         Likewise.
11824         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
11825         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
11826         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
11827         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
11828         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
11829         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
11830         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
11831         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11832         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
11833         Likewise.
11834         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
11835         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
11836         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
11837         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11838         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11839         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
11840         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
11841         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
11842         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11843         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11844
11845 2010-08-26  Bruno Haible  <bruno@clisp.org>
11846
11847         Modernize AC_TRY_LINK invocations.
11848         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
11849         AC_TRY_LINK.
11850         * m4/argp.m4 (gl_ARGP): Likewise.
11851         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11852         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11853         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
11854         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
11855         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
11856         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
11857         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11858         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11859         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
11860         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
11861         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
11862         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
11863         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
11864         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
11865         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
11866         * m4/hostent.m4 (gl_HOSTENT): Likewise.
11867         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
11868         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
11869         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
11870         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
11871         Likewise.
11872         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
11873         Likewise.
11874         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
11875         Likewise.
11876         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
11877         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
11878         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
11879         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
11880         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
11881         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
11882         * m4/servent.m4 (gl_SERVENT): Likewise.
11883         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11884         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11885         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11886         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11887         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11888         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11889         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11890         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11891         * modules/tsearch-tests (configure.ac): Likewise.
11892
11893 2010-08-26  Bruno Haible  <bruno@clisp.org>
11894
11895         Modernize AC_TRY_COMPILE invocations.
11896         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
11897         AC_TRY_COMPILE.
11898         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
11899         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
11900         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
11901         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
11902         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
11903         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
11904         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
11905         * m4/lock.m4 (gl_LOCK): Likewise.
11906         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
11907         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
11908         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
11909         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
11910         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
11911         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
11912         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
11913         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
11914         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
11915         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
11916         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
11917         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
11918         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
11919         extraneous semicolon.
11920
11921 2010-08-26  Jim Meyering  <meyering@redhat.com>
11922
11923         stat-time: relax license LGPL
11924         * modules/stat-time (License): Change from GPL to LGPL,
11925         with consent from all contributors, for use in libguile.
11926         Requested by Ludovic Courtès.
11927
11928 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
11929
11930         poll: return immediately on POLLHUP.
11931         * lib/poll.c (poll): Always set timeout before wait_timeout is
11932         computed.
11933
11934 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11935
11936         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
11937         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
11938         rmdir ("dir/.//"), unlinkat.
11939
11940 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11941
11942         stdbool: avoid spurious failure with modern xlc
11943         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11944
11945 2010-08-24  Bruno Haible  <bruno@clisp.org>
11946
11947         getloadavg: simplify code
11948         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
11949         gl_have_func. Update comments.
11950
11951 2010-08-24  Eric Blake  <eblake@redhat.com>
11952
11953         getloadavg: don't define SVR4 on cygwin
11954         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
11955         only define SVR4 when -lkvm is required.
11956         Reported by Yaakov Selkowitz.
11957
11958 2010-08-24  Bruno Haible  <bruno@clisp.org>
11959
11960         priv-set: fix comment
11961         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
11962
11963 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11964
11965         priv-set: fix comments
11966         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
11967         to match code, as suggested by David Bartley in:
11968         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
11969
11970 2010-08-23  Eric Blake  <eblake@redhat.com>
11971
11972         stdbool: avoid rejecting clang
11973         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
11974         * tests/test-stdbool.c: Enable more tests if using the system
11975         <stdbool.h> instead of the gnulib replacement.
11976         (main): Move xlc bug test to a runtime test for all compilers.
11977         Reported by Anders Kaseorg.
11978
11979         argz: fix shell quoting issue
11980         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
11981         Reported by Charles Wilson.
11982
11983 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
11984             Erik Faye-Lund <kusmabite@gmail.com>
11985
11986         poll, select: handle ERROR_BROKEN_PIPE.
11987         * lib/poll.c (win32_compute_revents): Return POLLHUP when
11988         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11989         * lib/select.c (win32_compute_revents): Do not mark a pipe
11990         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
11991
11992 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
11993
11994         fts: allow compilation with C++
11995         * lib/fts_.h: Specify extern "C" linkage with C++.
11996
11997 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11998
11999         Fix gnulib-tool sed script de-commentation for AIX sed.
12000         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
12001         sed.
12002
12003 2010-08-17  Eric Blake  <eblake@redhat.com>
12004
12005         test-stddef: test for (some) offsetof bugs
12006         * tests/test-stddef.c: Enhance test to ensure correct type of
12007         offsetof.
12008         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
12009         that we are not fixing at this time.
12010
12011 2010-08-15  Bruno Haible  <bruno@clisp.org>
12012
12013         stpncpy: Allow stpncpy to be defined as a macro.
12014         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
12015         if it's already correctly declared.
12016         * lib/string.in.h (stpncpy): Undefine before redefining.
12017         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
12018
12019 2010-08-14  Bruno Haible  <bruno@clisp.org>
12020
12021         Rename module 'memxfrm' to 'amemxfrm'.
12022         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
12023         (amemxfrm): Renamed from memxfrm.
12024         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
12025         (amemxfrm): Renamed from memxfrm.
12026         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
12027         * NEWS: Mention the change.
12028         * MODULES.html.sh (String handling <string.h>): Update.
12029         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
12030         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
12031         * lib/unicase/u16-casexfrm.c: Likewise.
12032         * lib/unicase/u32-casexfrm.c: Likewise.
12033         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
12034         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
12035         * lib/uninorm/u16-normxfrm.c: Likewise.
12036         * lib/uninorm/u32-normxfrm.c: Likewise.
12037         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
12038         memxfrm.
12039         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
12040         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
12041         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
12042         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
12043         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
12044         Suggested by Paul Eggert.
12045
12046 2010-08-14  Bruno Haible  <bruno@clisp.org>
12047
12048         Tests for module 'astrxfrm'.
12049         * modules/astrxfrm-tests: New file.
12050         * tests/test-astrxfrm.c: New file.
12051
12052         New module 'astrxfrm'.
12053         * lib/astrxfrm.h: New file.
12054         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
12055         * modules/astrxfrm: New file.
12056
12057 2010-08-14  Reuben Thomas <rrt@sc3d.org>
12058
12059         regex: Tweak doc.
12060         * doc/regex.texi (Overview): Don't mention regex.c.
12061         (GNU Regular Expression Compiling): Likewise.
12062         (Match-end-of-line Operator): Mention 'not_eol'.
12063
12064 2010-08-14  Brian Gough  <bjg@gnu.org>
12065             Bruno Haible  <bruno@clisp.org>
12066
12067         git-merge-changelog: add doc relating to use with bzr and hg.
12068         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
12069
12070 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
12071
12072         pthread: fix pthread.h creation for srcdir != builddir
12073         * modules/pthread (Makefile.am): Fix the rule to work also in a
12074         non-srcdir build.
12075
12076 2010-08-13  Karl Berry  <karl@gnu.org>
12077
12078         * doc/regex.texi (Predefined Syntaxes): @smallexample.
12079         * doc/posix-*/*: force line break before @url of POSIX
12080         specifications.
12081         Suggested by Werner Lemberg.
12082
12083 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12084
12085         strtod: fix const diagnostic
12086         * lib/strtod.c (strtod): Don't assign const char * to char *,
12087         as this elicits a warning from GCC when warnings are enabled.
12088
12089 2010-08-10  Pádraig Brady <P@draigbrady.com>
12090         and Eric Blake  <eblake@redhat.com>
12091
12092         copy-acl: ignore ENOTSUP on HP-UX
12093         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
12094         so that it is available for HP-UX.
12095         * lib/copy-acl.c (qcopy_acl): Use it.
12096         Reported by Patrick M. Callahan.
12097
12098 2010-08-10  Eric Blake  <eblake@redhat.com>
12099
12100         open, chown: relax license
12101         * modules/open (License): Change to LGPLv2+, with consent by all
12102         authors, for use in augeas.
12103         * modules/chown (License): Likewise.
12104         * modules/lchown (Likewise): Likewise.
12105         Requested by Adam Stokes.
12106
12107 2010-08-09  Karl Berry  <karl@gnu.org>
12108
12109         * build-aux/ar-lib: new file, import from Automake.
12110         * config/srclist.txt: autocheck for updates.
12111
12112 2010-08-09  Eric Blake  <eblake@redhat.com>
12113
12114         readlinkat: adjust client modules
12115         * modules/areadlinkat (Depends-on): Use readlinkat, not
12116         symlinkat.
12117         * modules/areadlinkat-with-size (Depends-on): Likewise.
12118
12119         mknod: be more vocal about danger of running tests as root
12120         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
12121         root, since that is just asking for problems.
12122         Suggested by Bruno Haible, based on a report by Rainer Tammer.
12123
12124         readlinkat: split into its own module
12125         * modules/symlinkat: Split readlinkat...
12126         * modules/readlinkat: ...into separate module.
12127         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
12128         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
12129         * lib/symlinkat.c (readlinkat): Move...
12130         * lib/readlinkat.c: ...into new file.
12131         * modules/symlinkat-tests: Split readlinkat test...
12132         * modules/readlinkat-tests: ...into separate module.
12133         * tests/test-symlinkat.c: Split...
12134         * tests/test-readlinkat.c: ...into new file.
12135         * NEWS: Document the split.
12136         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
12137         * lib/unistd.in.h (readlinkat): Likewise.
12138         Suggested by Bruno Haible.
12139
12140 2010-08-08  Bruno Haible  <bruno@clisp.org>
12141
12142         memxfrm: Speed up.
12143         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
12144         that usually only one call to strxfrm is necessary for each string
12145         part.
12146         Reported by Paul Eggert <eggert@cs.ucla.edu>.
12147
12148 2010-08-07  Karl Berry  <karl@gnu.org>
12149
12150         * doc/posix-headers/limits.texi,
12151         * doc/posix-functions/malloc.texi,
12152         * doc/posix-functions/strsignal.texi: missing @item.
12153         * doc/ld-version-script.texi: spurious leading i.
12154         * doc/regex.texi (Interval Operators): no commas inside @var.
12155
12156 2010-08-01  Bruno Haible  <bruno@clisp.org>
12157
12158         Integrate the regex documentation.
12159         * doc/gnulib.texi: Define 'cn' index.
12160         (Regular expressions): New a chapter that includes regex.texi and
12161         regexprops-generic.texi.
12162         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
12163         syntax.
12164
12165         Whitespace cleanup.
12166         * doc/regex.texi: Remove trailing spaces.
12167
12168         Add regex documentation.
12169         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
12170         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
12171         Written by Kathy A. Hargreaves and Karl Berry.
12172
12173 2010-08-01  Bruno Haible  <bruno@clisp.org>
12174
12175         link: Update documentation.
12176         * doc/posix-functions/link.texi: Update regarding Solaris.
12177
12178 2010-07-31  Bruno Haible  <bruno@clisp.org>
12179
12180         Update modules list.
12181         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
12182         (String handling <string.h>): Add memcmp2, memxfrm.
12183         (Container data structures): Add xlist, xsublist, xoset.
12184         (Core language properties): Add alignof, unused-parameter.
12185         (Process control, Numeric conversion functions <stdlib.h>): Renamed
12186         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
12187         (Unibyte characters <ctype.h>): New section.
12188         (String handling <string.h>): New section.
12189         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
12190         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
12191         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
12192         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
12193         tan, tanh, tanl, y0, y1, yn.
12194         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
12195         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
12196         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
12197         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
12198         unlockpt, vdprintf, vdprintf-posix.
12199         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
12200         (File system functions): Add concat-filename, sys_file, sys_ioctl,
12201         xconcat-filename.
12202         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
12203         getdtablesize, pipe2, pipe2-safer.
12204         (Security): New section.
12205         (Networking functions): Add accept4.
12206         (Signal handling): Add sigpipe.
12207         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
12208         mbmemcasecoll.
12209         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
12210         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
12211         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
12212         pipe-filter-ii.
12213         (Misc): Add argp-version-etc, login_tty, parse-duration.
12214
12215 2010-07-31  Bruno Haible  <bruno@clisp.org>
12216
12217         Improve doc in MODULES.html.
12218         * modules/linkat (Description): Add the word "function".
12219         * modules/mkfifo (Description): Likewise.
12220         * modules/mknod (Description): Likewise.
12221         * modules/remove (Description): Likewise.
12222         * modules/renameat (Description): Likewise.
12223         * modules/stat (Description): Likewise.
12224         * modules/symlink (Description): Likewise.
12225         * modules/unlink (Description): Likewise.
12226
12227 2010-07-31  Bruno Haible  <bruno@clisp.org>
12228
12229         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
12230         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
12231         option --enable/disable-c++ instead of --enable/disable-cxx.
12232         * NEWS: Mention the change.
12233
12234 2010-07-31  Bruno Haible  <bruno@clisp.org>
12235
12236         readlink, areadlink: Relax test a bit.
12237         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
12238         alternative to ENOTDIR.
12239         * tests/test-areadlink.h (test_areadlink): Likewise.
12240         Reported by Rainer Tammer.
12241
12242 2010-07-31  Bruno Haible  <bruno@clisp.org>
12243
12244         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
12245         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
12246         character, perform the search using U_STRCHR.
12247         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
12248         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
12249         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
12250         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
12251         Suggested by Paolo Bonzini.
12252
12253 2010-07-31  Bruno Haible  <bruno@clisp.org>
12254
12255         unistr/u*-strstr: Fix dependencies.
12256         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
12257         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
12258         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
12259
12260 2010-07-31  Bruno Haible  <bruno@clisp.org>
12261
12262         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
12263         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
12264         the beginning of the loop.
12265         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
12266         cases in 'switch' statement.
12267
12268         unistr/u8-strchr: Fix several bugs.
12269         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
12270         the string. When not found, return NULL, not a pointer near the end.
12271
12272         More tests for unistr/u8-strchr.
12273         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
12274         that the function does not read past the first occurrence of the byte
12275         being searched.
12276         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
12277         * tests/unistr/test-u16-strchr.c (main): New function.
12278         * tests/unistr/test-u32-strchr.c (main): New function.
12279
12280 2010-07-31  Bruno Haible  <bruno@clisp.org>
12281
12282         posix-modules: Ignore backup files of documentation files.
12283         * posix-modules: grep only through files named *.texi.
12284
12285 2010-07-31  Bruno Haible  <bruno@clisp.org>
12286
12287         symlinkat: Fix documentation.
12288         * doc/posix-functions/readlinkat.texi: Fix module name.
12289
12290 2010-07-31  Bruno Haible  <bruno@clisp.org>
12291
12292         fchownat: Replace also when chown has the trailing slash bug.
12293         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
12294         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
12295         introduced on 2010-04-10.
12296         Reported by Rainer Tammer.
12297
12298 2010-07-31  Bruno Haible  <bruno@clisp.org>
12299
12300         linkat: Work around AIX 7.1 bug.
12301         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
12302         whether linkat handles trailing slash correctly. If not, replace linkat
12303         and define LINKAT_TRAILING_SLASH_BUG.
12304         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
12305         check whether (fd1,file1) points to a directory if file1 or file2 ends
12306         in a slash. Code taken from lib/link.c.
12307         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
12308         Reported by Rainer Tammer.
12309
12310 2010-07-31  Bruno Haible  <bruno@clisp.org>
12311
12312         Correctly determine whether pow is available in libc on AIX 7 with xlc.
12313         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
12314         This disables an xlc optimization that was causing wrong test results.
12315         Reported by Rainer Tammer.
12316
12317 2010-07-31  Bruno Haible  <bruno@clisp.org>
12318
12319         iconv: Work around AIX 6.1..7.1 bug.
12320         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
12321         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
12322         cross-compiling, guess no on all versions of AIX.
12323         Reported by Rainer Tammer.
12324
12325 2010-07-31  Bruno Haible  <bruno@clisp.org>
12326
12327         readlink: Relax test a bit.
12328         * tests/test-readlink.h (test_readlink): Allow different errno value
12329         when readlink is called with a file name that ends in / and refers to
12330         a file.
12331         Suggested by Eric Blake.
12332         Reported by Rainer Tammer.
12333
12334 2010-07-31  Bruno Haible  <bruno@clisp.org>
12335
12336         copysign: Does not require -lm on glibc systems.
12337         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
12338         gl_COMMON_DOUBLE_MATHFUNC.
12339         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
12340
12341 2010-07-31  Bruno Haible  <bruno@clisp.org>
12342
12343         duplocale: Work around AIX 7.1 bug.
12344         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
12345         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
12346         * lib/duplocale.c (rpl_duplocale): Update comment.
12347         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
12348         Reported by Rainer Tammer.
12349
12350 2010-07-30  Bruno Haible  <bruno@clisp.org>
12351
12352         dirfd: Avoid link error on AIX 7.1.
12353         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
12354         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
12355         exist, set REPLACE_DIRFD.
12356         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
12357         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
12358         * doc/posix-functions/dirfd.texi: Update.
12359         Reported by Rainer Tammer.
12360
12361 2010-07-30  Eric Blake  <eblake@redhat.com>
12362
12363         strtod: next round of AIX fixes
12364         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
12365         exponent.
12366         * tests/test-strtod.c (main): Enhance tests.
12367         * doc/posix-functions/strtod.texi (strtod): Document next bug.
12368         Reported by Rainer Tammer.
12369
12370         futimens: fix configure check
12371         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
12372         Reported by Bruno Haible.
12373
12374 2010-07-30  Bruno Haible  <bruno@clisp.org>
12375
12376         getline: Update regarding AIX.
12377         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
12378         Reported by Rainer Tammer.
12379
12380 2010-07-30  Bruno Haible  <bruno@clisp.org>
12381
12382         wcwidth: Drop replacement on AIX 7.
12383         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
12384         AIX 7.
12385         Reported by Rainer Tammer.
12386
12387 2010-07-30  Bruno Haible  <bruno@clisp.org>
12388
12389         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
12390         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
12391         a 'char *'.
12392         Reported by Rainer Tammer.
12393
12394 2010-07-30  Bruno Haible  <bruno@clisp.org>
12395
12396         unlink: Update regarding AIX.
12397         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
12398         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
12399         Reported by Rainer Tammer.
12400
12401 2010-07-30  Bruno Haible  <bruno@clisp.org>
12402
12403         symlink: Update regarding AIX.
12404         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
12405         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
12406         Reported by Rainer Tammer.
12407
12408 2010-07-30  Bruno Haible  <bruno@clisp.org>
12409
12410         strndup: Update regarding AIX.
12411         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
12412         AIX 7.
12413         Reported by Rainer Tammer.
12414
12415 2010-07-30  Bruno Haible  <bruno@clisp.org>
12416
12417         stat: Update regarding AIX.
12418         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
12419         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
12420         Reported by Rainer Tammer.
12421
12422 2010-07-30  Bruno Haible  <bruno@clisp.org>
12423
12424         truncl: Fix autoconf test.
12425         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
12426         whether truncl works.
12427         Reported by Rainer Tammer.
12428
12429 2010-07-30  Bruno Haible  <bruno@clisp.org>
12430
12431         round: Update regarding AIX.
12432         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
12433         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
12434         Reported by Rainer Tammer.
12435
12436 2010-07-30  Bruno Haible  <bruno@clisp.org>
12437
12438         rename: Update regarding AIX.
12439         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
12440         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
12441         Reported by Rainer Tammer.
12442
12443 2010-07-30  Bruno Haible  <bruno@clisp.org>
12444
12445         printf.m4: Update regarding AIX.
12446         * m4/printf.m4: Update comments regarding AIX.
12447         Reported by Rainer Tammer.
12448
12449 2010-07-30  Bruno Haible  <bruno@clisp.org>
12450
12451         iconv: Update regarding AIX.
12452         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
12453         AIX 7.
12454         Reported by Rainer Tammer.
12455
12456 2010-07-30  Bruno Haible  <bruno@clisp.org>
12457
12458         getopt: Update regarding AIX.
12459         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
12460         no on AIX.
12461         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
12462         Reported by Rainer Tammer.
12463
12464 2010-07-30  Bruno Haible  <bruno@clisp.org>
12465
12466         ldexpl; Update regarding AIX.
12467         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
12468         on AIX 7.
12469         Reported by Rainer Tammer.
12470
12471 2010-07-30  Bruno Haible  <bruno@clisp.org>
12472
12473         frexpl: Update regarding AIX.
12474         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
12475         on AIX 7.
12476         Reported by Rainer Tammer.
12477
12478 2010-07-30  Bruno Haible  <bruno@clisp.org>
12479
12480         open, fopen: Update regarding AIX.
12481         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
12482         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
12483         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
12484         * doc/posix-functions/fopen.texi: Likewise.
12485         Reported by Rainer Tammer.
12486
12487 2010-07-30  Bruno Haible  <bruno@clisp.org>
12488
12489         chown: Update doc regarding AIX.
12490         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
12491         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
12492         Reported by Rainer Tammer.
12493
12494 2010-07-30  Eric Blake  <eblake@redhat.com>
12495
12496         strtod: fix bug in replacement function on AIX
12497         * lib/strtod.c (strtod): Special case broken "0x" parse in
12498         underlying strtod.
12499         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
12500         * doc/posix-functions/strtod.texi (strtod): Likewise.
12501         Reported by Rainer Tammer.
12502
12503 2010-07-30  Bruno Haible  <bruno@clisp.org>
12504
12505         mbrlen: Fix cross-compilation guess for AIX.
12506         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
12507         guess. Leftover from 2008-12-22.
12508
12509 2010-07-30  Bruno Haible  <bruno@clisp.org>
12510
12511         mbrtowc: Fix cross-compilation guess for AIX.
12512         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
12513         guess. Leftover from 2008-12-21.
12514
12515 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
12516
12517         init.sh: work around trap limitation of some shells
12518         * tests/init.sh (setup_): Move exit trap outside of shell function.
12519
12520 2010-07-29  Eric Blake  <eblake@redhat.com>
12521
12522         strtod: aid debugging
12523         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
12524         understanding why strtod is rejected.
12525
12526 2010-07-28  Bruno Haible  <bruno@clisp.org>
12527
12528         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
12529         * lib/unistr/u8-chr.c: Include <string.h>.
12530         * tests/unistr/test-u8-chr.c: Likewise.
12531         * tests/unistr/test-u16-chr.c: Likewise.
12532         * tests/unistr/test-u32-chr.c: Likewise.
12533         * tests/unistr/test-u8-strchr.c: Likewise.
12534         * tests/unistr/test-u16-strchr.c: Likewise.
12535         * tests/unistr/test-u32-strchr.c: Likewise.
12536         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
12537         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
12538         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
12539         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
12540
12541 2010-07-28  Bruno Haible  <bruno@clisp.org>
12542
12543         Use spaces for indentation, not tabs.
12544         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12545
12546 2010-07-27  Bruno Haible  <bruno@clisp.org>
12547
12548         mbspcasecmp: Fix function specification.
12549         * lib/string.in.h (mbspcasecmp): Fix specification comment.
12550         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
12551         Reported by Eric Blake <eblake@redhat.com>.
12552
12553 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
12554
12555         timespec: use cast and not conditional, as truncation isn't possible
12556         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
12557         instead of a conditional.  Comment about the situation in more detail.
12558         This undoes most of the 2009-10-29 patch.
12559
12560 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
12561
12562         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
12563         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
12564         * lib/unistr/u8-strchr.c: Likewise.
12565         * modules/unistr/u8-chr: Depend on memchr.
12566
12567         unistr/u*-strchr: add tests
12568         * modules/unistr/u8-strchr-tests: New file.
12569         * modules/unistr/u16-strchr-tests: New file.
12570         * modules/unistr/u32-strchr-tests: New file.
12571         * tests/unistr/test-strchr.h: New file.
12572         * tests/unistr/test-u8-strchr.c: New file.
12573         * tests/unistr/test-u16-strchr.c: New file.
12574         * tests/unistr/test-u32-strchr.c: New file.
12575
12576         unistr/u*-chr: test multibyte sequences more
12577         * tests/unistr/test-chr.h: Do complete testing of the characters in the
12578         test vector.
12579         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
12580         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
12581         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
12582
12583         unistr/u*-chr: test multibyte sequences
12584         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
12585
12586         unistr/u*-chr: prepare for multibyte tests
12587         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
12588         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
12589         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
12590         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
12591         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
12592         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
12593
12594 2010-07-18  Bruno Haible  <bruno@clisp.org>
12595
12596         unistr/u8-strchr: Optimize non-ASCII argument case.
12597         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
12598         because the first byte often matches anyway.
12599         Reported by Pádraig Brady <P@draigbrady.com>.
12600
12601 2010-07-15  Karl Berry  <karl@gnu.org>
12602
12603         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
12604
12605 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
12606
12607         getcwd: on Solaris, work better if ancestors are inaccessible
12608         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
12609         buffer and size, try again with a large buffer.  This works better
12610         on Solaris, since its getcwd succeeds even if the path to the root
12611         is inaccessible, and this is helpful in common cases such as .zfs
12612         hidden directories.  Problem reported by J Chapman Flack in
12613         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
12614         Use system getcwd if it's declared, not merely if it's partly
12615         working; use the partly-working test only to avoid needless effort
12616         if the system getcwd fails.
12617         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
12618         comment that was already obsolete and is now even more obsolete.
12619         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
12620         now might call strdup.
12621
12622 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
12623
12624         pthread: Add enough so that coreutils/src/sort.c compiles.
12625         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
12626         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
12627         gnulib. Include <sched.h> and <time.h>, as per POSIX.
12628         Include <sys/types.h>, in case it defines pthread_t.
12629         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
12630         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
12631         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
12632         (pthread_rwlockattr_t, pthread_spinlock_t):
12633         New typedefs, if HAVE_PTHREAD_T is not defined.
12634         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
12635         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
12636         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
12637         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
12638         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
12639         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
12640         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
12641         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
12642         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
12643         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
12644         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
12645         New macros.
12646         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
12647         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
12648         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
12649         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
12650         (pthread_spin_unlock): New dummy functions.
12651         (pthread_create): Return EAGAIN; don't set errno.
12652         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
12653         require AC_C_INLINE.
12654         * modules/pthread (Depends-on): Add sched, time.
12655         (pthread.h): Use AM_V_GEN.
12656
12657 2010-07-13  Bruno Haible  <bruno@clisp.org>
12658
12659         striconveh: Don't malloc memory if the result buffer is sufficient.
12660         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
12661         buffer if its size is sufficient.
12662         Reported by Ludovic Courtès <ludo@gnu.org>.
12663
12664 2010-07-13  Bruno Haible  <bruno@clisp.org>
12665
12666         strtod: Add safety check.
12667         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
12668
12669 2010-07-12  Bruno Haible  <bruno@clisp.org>
12670
12671         Unify tests that set gl_cv_func_ldexpl_no_libm.
12672         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
12673         gl_FUNC_LDEXPL.
12674         (gl_FUNC_LDEXPL): Invoke it.
12675         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12676
12677 2010-07-12  Bruno Haible  <bruno@clisp.org>
12678
12679         Unify tests that set gl_cv_func_ldexp_no_libm.
12680         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
12681         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
12682         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
12683         (configure.ac): Simply invoke gl_FUNC_LDEXP.
12684         * modules/strtod (Files): Add m4/ldexp.m4.
12685
12686 2010-07-12  Bruno Haible  <bruno@clisp.org>
12687
12688         Unify tests that set gl_cv_func_frexpl_no_libm.
12689         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
12690         gl_FUNC_FREXPL_NO_LIBM.
12691         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
12692         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12693
12694 2010-07-12  Bruno Haible  <bruno@clisp.org>
12695
12696         Unify tests that set gl_cv_func_frexp_no_libm.
12697         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
12698         gl_FUNC_FREXP_NO_LIBM.
12699         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
12700         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
12701
12702 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12703
12704         memcoll: clarify sizes versus lengths, document better, and tweak perf
12705         * lib/memcoll.c (strcoll_loop, memcoll0):
12706         Improve quality of descriptive comments.  Name variables
12707         consistently as to whether they are lengths (which do not include
12708         terminating null) versus sizes (which do).
12709         * lib/xmemcoll.c (xmemcoll0): Likewise.
12710         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
12711         returned when s1size == 0; this is easier to compile and saves
12712         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
12713
12714 2010-07-12  Bruno Haible  <bruno@clisp.org>
12715
12716         Tests for module '_Exit'.
12717         * modules/_Exit-tests: New file.
12718         * tests/test-_Exit.sh: New file.
12719         * tests/test-_Exit.c: New file.
12720
12721         New module '_Exit'.
12722         * lib/stdlib.in.h (__attribute__): New macro.
12723         (_Exit): New declaration.
12724         * lib/_Exit.c: New file.
12725         * m4/_Exit.m4: New file.
12726         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
12727         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
12728         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
12729         * modules/_Exit: New file.
12730         * tests/test-stdlib-c++.cc (_Exit): Check signature.
12731         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
12732
12733 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
12734
12735         strtod: make it more-accurate typically, and don't require libm
12736         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
12737         Include limits.h.  Don't include string.h.
12738         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
12739         (locale_isspace): New function, so that no casts are needed to
12740         check whether *s is a space.
12741         (ldexp): Provide an unused dummy if not available.
12742         (scale_radix_exp, parse_number, underlying_strtod): New functions.
12743         (strtod): Use them.  This implementation prefers to use the
12744         underlying strtod if available, falling back on our own code
12745         only to fix known bugs.  This is more likely to produce an
12746         accurate result.  Also, it avoids the use of libm functions.
12747         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
12748         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
12749         was absent, but it caused a test failure with coreutils.
12750         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
12751         with libm.
12752         * modules/strtod (Makefile.am, Link): libm is no longer needed.
12753         * modules/strtod-tests (Makefile.am): Likewise.
12754
12755 2010-07-11  Pádraig Brady  <P@draigBrady.com>
12756             Bruno Haible  <bruno@clisp.org>
12757
12758         unistr/u8-strchr: Optimize ASCII argument case.
12759         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
12760
12761 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
12762
12763         (x)memcoll: minor tweaks
12764         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
12765         is after the type that it qualifies.
12766         (memcoll0): Likewise.
12767         * lib/memcoll.h (memcoll0): Likewise.
12768         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
12769         * lib/xmemcoll.h (xmemcoll0): Likewise.
12770         * lib/memcoll.c (memcoll0): Correct the comment.  This function
12771         differs from memcoll in that the NUL byte is part of the argument.
12772         Omit the abort-checks, as performance is a real issue here.  Plus,
12773         the checks were wrong anyway (an off-by-one error).  Omit local
12774         variable 'diff', as it's a bit clearer that way.
12775         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
12776         no longer needed.
12777
12778 2010-07-08  Chen Guo <chenguo4@yahoo.com>
12779
12780         (x)memcoll: speedup when input is known to be NUL delimited
12781         * lib/memcoll.c: Include stdlib.
12782         (memcoll0): New function.
12783         (strcoll_loop): New function, refactored for use in both memcoll
12784         and memcoll0.
12785         * lib/memcoll.h (memcoll0): Add prototype.
12786         * lib/xmemcoll.c (xmemcoll0): New function.
12787         (collate_error): New function, refactored for use in both xmemcoll
12788         and xmemcoll0.
12789         * lib/xmemcoll.h (xmemcoll0): Add prototype.
12790         * m4/memcoll.m4: add inline invocation.
12791
12792 2010-07-06  Pádraig Brady  <P@draigBrady.com>
12793
12794         * build-aux/bootstrap: Remove any local translations
12795         from the translation project synchronization directory,
12796         so that local only translations are not distributed.
12797
12798 2010-07-04  Bruno Haible  <bruno@clisp.org>
12799
12800         fsusage: Clarify which code applies to which platforms.
12801         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
12802         platform.
12803         * lib/fsusage.c (get_fs_usage): Likewise.
12804
12805 2010-07-04  Bruno Haible  <bruno@clisp.org>
12806
12807         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
12808         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
12809         Reported by Martin Lambers <marlam@marlam.de>.
12810
12811 2010-07-04  Jim Meyering  <meyering@redhat.com>
12812
12813         hash: once again explicitly disallow insertion of NULL
12814         * lib/hash.c (hash_insert0): Reinstate just-removed test:
12815         inserting a NULL pointer cannot work with these functions.
12816         Add a comment with details.
12817         This reverts part of the 2010-07-01 commit, 5bef1a35
12818         "hash: extend module to deal with non-pointer keys".
12819
12820 2010-07-01  Bruno Haible  <bruno@clisp.org>
12821
12822         stdbool: Update doc.
12823         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
12824         Info from Christian Weisgerber <naddy@mips.inka.de>.
12825
12826 2010-07-01  Jim Meyering  <meyering@redhat.com>
12827
12828         hash: extend module to deal with non-pointer keys
12829         * lib/hash.c (hash_insert0): New interface, much like hash_insert
12830         but that allows insertion of non-pointer entries.
12831         Do not disallow an ENTRY value of NULL.
12832         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
12833         * lib/hash.h (hash_insert0): Declare.
12834
12835 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
12836
12837         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
12838         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
12839         not present (i.e. with autoconf 2.59 and when using gettextize, not
12840         gnulib), require AC_GNU_SOURCE instead.
12841
12842 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
12843
12844         idpriv-drop: Fix tests.
12845         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
12846         not to the test-idpriv-droptemp program.
12847
12848 2010-06-29  Bruno Haible  <bruno@clisp.org>
12849
12850         string: Fix syntax error with g++ 2.96.
12851         * lib/string.in.h (__pure__): Remove definition.
12852         (_GL_ATTRIBUTE_PURE): New macro.
12853         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
12854         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
12855         Reported by Christian Weisgerber <naddy@mips.inka.de>.
12856
12857 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
12858
12859         unitypes: Fix bug introduced on 2010-05-18.
12860         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
12861
12862 2010-06-22  Eric Blake  <eblake@redhat.com>
12863
12864         memmem: slight optimization
12865         * lib/str-two-way.h (critical_factorization): Update comments.
12866         Reduce work during factorization phase.
12867         Reported by Carlos Bueno <carlos@bueno.org>.
12868
12869 2010-06-21  Bruno Haible  <bruno@clisp.org>
12870
12871         Fix HAVE_CALLOC_POSIX misnomer.
12872         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
12873         !HAVE_CALLOC_POSIX.
12874         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
12875         HAVE_CALLOC_POSIX.
12876         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
12877         instead of HAVE_CALLOC_POSIX.
12878         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
12879         HAVE_CALLOC_POSIX.
12880
12881         Use modern idiom for calloc() replacement.
12882         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
12883         AC_FUNC_CALLOC.
12884         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
12885         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
12886         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12887         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
12888         (gl_REPLACE_CALLOC): New macro.
12889
12890 2010-06-21  Bruno Haible  <bruno@clisp.org>
12891
12892         Fix HAVE_REALLOC_POSIX misnomer.
12893         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
12894         !HAVE_REALLOC_POSIX.
12895         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
12896         HAVE_REALLOC_POSIX.
12897         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
12898         instead of HAVE_REALLOC_POSIX.
12899         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
12900         HAVE_REALLOC_POSIX.
12901
12902         Use modern idiom for realloc() replacement.
12903         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
12904         AC_FUNC_REALLOC.
12905         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
12906         Autoconf's AC_FUNC_REALLOC.
12907         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12908         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
12909         (gl_REPLACE_REALLOC): New macro.
12910         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12911
12912 2010-06-21  Bruno Haible  <bruno@clisp.org>
12913
12914         Fix HAVE_MALLOC_POSIX misnomer.
12915         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
12916         !HAVE_MALLOC_POSIX.
12917         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
12918         HAVE_MALLOC_POSIX.
12919         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
12920         instead of HAVE_MALLOC_POSIX.
12921         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
12922         HAVE_MALLOC_POSIX.
12923
12924         Use modern idiom for malloc() replacement.
12925         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
12926         AC_FUNC_MALLOC.
12927         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
12928         Autoconf's AC_FUNC_MALLOC.
12929         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
12930         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
12931         (gl_REPLACE_MALLOC): New macro.
12932         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
12933
12934 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
12935
12936         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
12937         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
12938         This macro takes 3 arguments, not 4.
12939
12940 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
12941
12942         ipv6: fix detection under mingw
12943         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
12944         in6_addr.
12945
12946 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
12947
12948         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
12949         that strtod() works when cross-compiling to a glibc version known
12950         to work.
12951
12952 2010-06-15  Bruno Haible  <bruno@clisp.org>
12953
12954         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
12955
12956 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
12957
12958         select: Correct timeout.
12959         * lib/select.c (rpl_select): Compute wait_timeout correctly.
12960
12961 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
12962
12963         git-version-gen: init shell var to avoid env var influence
12964         * build-aux/git-version-gen (v): Init shell var to empty.
12965
12966 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
12967
12968         priv-set: Don't assume that priv.h exists merely because getppriv does.
12969         See Jan Andersen's bug report about AIX 5L in
12970         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
12971         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
12972         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
12973         * lib/priv-set.h: Likewise.
12974         * tests/test-priv-set.c: Likewise.
12975
12976 2010-06-13  Bruno Haible  <bruno@clisp.org>
12977
12978         relocatable: Make it easier to test whether to install wrappers.
12979         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
12980         RELOCATABLE_VIA_WRAPPER.
12981
12982 2010-06-13  Bruno Haible  <bruno@clisp.org>
12983
12984         gnulib-tool: Display specified modules and dependencies differently.
12985         * gnulib-tool (func_show_module_list): New function.
12986         (func_import, func_create_testdir): Invoke it.
12987         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12988
12989 2010-06-13  Bruno Haible  <bruno@clisp.org>
12990
12991         gnulib-tool: Align code of func_import and func_create_testdir.
12992         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
12993         specified_modules.
12994
12995 2010-06-12  Jim Meyering  <meyering@redhat.com>
12996
12997         test-inttostr: avoid spurious failure on Solaris 9
12998         * tests/test-inttostr.c (main): Skip the test when snprintf fails
12999         to accept "%ju".  Reported by Bruno Haible.
13000
13001 2010-06-11  Jim Meyering  <meyering@redhat.com>
13002
13003         test-sys_socket: mark variables as used more readably
13004         * tests/test-sys_socket.c (main): Mark otherwise unused variables
13005         as "used" explicitly via (void) statement casts.  This is more
13006         readable than using them in an artificial return expression.
13007         Suggestion from Bruno Haible.
13008
13009 2010-06-11  Bruno Haible  <bruno@clisp.org>
13010
13011         Avoid some more warnings from "gcc -Wwrite-strings".
13012         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
13013         to 'const char *'.
13014         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
13015         * tests/test-c-strcasestr.c (main): Likewise.
13016         * tests/test-mbscasestr1.c (main): Likewise.
13017         * tests/test-mbscasestr2.c (main): Likewise.
13018         * tests/test-memmem.c (main): Likewise.
13019         * tests/test-strstr.c (main): Likewise.
13020         * tests/test-strcasestr.c (main): Likewise.
13021
13022 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13023
13024         init.sh: change framework_failure_ to fail with status 99, not 1
13025         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
13026         automake's parallel-tests rule that this is an unexpected failure,
13027         even if the test is listed in XFAIL_TESTS.
13028
13029 2010-06-11  Jim Meyering  <meyering@redhat.com>
13030
13031         test-inttostr: avoid warnings about 4-6KB literal strings
13032         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
13033         Include "macros.h", for its definition of ASSERT.
13034         (CK): s/assert/ASSERT/
13035         * modules/inttostr-tests (Files): Add macros.h.
13036
13037         init.sh: don't use $ME_ or skip_ before they are defined
13038         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
13039         their first uses.  Also hoist their companions: warn_, fail_,
13040         framework_failure_, $stderr_fileno.  Prompted by a patch from
13041         Stefano Lattarini.
13042
13043         test-sys_socket: avoid set-but-not-used warnings from gcc
13044         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
13045         avoid warning about set-but-not-used variables.
13046
13047         test-xvasprintf: avoid 'const' discard warnings
13048         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
13049         "const" when assigning from literal strings.
13050         (test_xasprintf): Add "void" in function argument list to placate
13051         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
13052
13053         tests: avoid compilation warnings in argmatch and exclude tests...
13054         in packages that define ARGMATCH_DIE_DECL, like coreutils.
13055         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
13056         Since it always exits, declare with the "noreturn" attribute.
13057         * tests/test-argmatch.c: Likewise.
13058
13059         tests: avoid 'const' discard warnings in mbsstr tests
13060         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
13061         * tests/test-mbsstr2.c (main): Likewise.
13062
13063         test-verify: avoid warning from gcc's -Wmissing-declarations
13064         * tests/test-verify.c (function): Declare to be static.
13065
13066         test-inttostr.c: include <string.h> for use of strcmp
13067         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
13068
13069         test-linkat: avoid failed assertion on "other" architectures
13070         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
13071         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
13072         sparc: https://bugs.launchpad.net/bugs/591968
13073
13074 2010-06-11  Jim Meyering  <meyering@redhat.com>
13075
13076         printf.m4: avoid autoconf's "Expanded Before Required" warning
13077         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
13078         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
13079         autoconf warning.
13080
13081 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
13082
13083         Replacement header templates are now named with ".in", not "_".
13084         * doc/gnulib-intro.texi: Correct.
13085
13086 2010-06-10  Jim Meyering  <meyering@redhat.com>
13087
13088         inttostr-tests: depend on snprintf, not snprintf-posix
13089         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
13090         snprintf-posix, to avoid this aclocal failure:
13091           missing file gnulib-tests/vasnprintf.c
13092           configure.ac:45: error: expected source file, required through \
13093           AC_LIBSOURCES, not found
13094
13095 2010-06-10  Jim Meyering  <meyering@redhat.com>
13096
13097         inttostr: add a new function, inttostr, and tests
13098         The namesake function was not available.  The existence of the
13099         template file, inttostr.c makes its addition nontrivial.
13100         * lib/anytostr.c: Rename from inttostr.c.
13101         (anytostr): Rename from inttostr.
13102         * lib/inttostr.c: New file.
13103         * modules/inttostr (Files): Add anytostr.c.
13104         (Makefile.am): Set lib_SOURCES instead of ...
13105         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
13106         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
13107         * lib/offtostr.c: Likewise.
13108         * lib/uinttostr.c: Likewise.
13109         * lib/umaxtostr.c: Likewise.
13110         * modules/inttostr-tests: New file.
13111         * tests/test-inttostr.c: New file.  Test these functions.
13112
13113 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
13114             Bruno Haible  <bruno@clisp.org>
13115
13116         Add "Extending Gnulib" chapter to manual.
13117         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
13118         chapter.
13119         (Extending Gnulib): New chapter.
13120         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
13121         chapter.
13122
13123 2010-06-09  Bruno Haible  <bruno@clisp.org>
13124
13125         Avoid relocwrapper link errors due to gnulib replacement functions.
13126         * lib/areadlink.c: Use the system's malloc, realloc functions.
13127         (areadlink): Set errno to ENOMEM explicitly.
13128         * modules/areadlink (Depends-on): Remove malloc-posix.
13129         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13130
13131 2010-06-09  Bruno Haible  <bruno@clisp.org>
13132
13133         Avoid relocwrapper link errors due to gnulib replacement functions.
13134         * lib/canonicalize-lgpl.c: Use the system's malloc function.
13135         * lib/malloca.c: Likewise.
13136         * lib/relocatable.c: Likewise.
13137         * lib/progreloc.c: Use the system's malloc, sprintf functions.
13138         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
13139         * lib/setenv.c: Use the system's malloc, realloc functions.
13140         * lib/strerror.c: Use the system's sprintf function.
13141         Reported by Ben Pfaff <blp@cs.stanford.edu>.
13142
13143 2010-06-04  Bruno Haible  <bruno@clisp.org>
13144
13145         Prefer documented low-level autoconf macro names.
13146         * m4/lib-link.m4: Use m4_translit instead of translit.
13147         * m4/environ.m4: Likewise.
13148         * m4/mathfunc.m4: Likewise.
13149         * m4/onceonly.m4: Likewise.
13150         * m4/stdint.m4: Likewise.
13151         Suggested by Eric Blake.
13152
13153 2010-06-04  Martin Lambers  <marlam@marlam.de>
13154             Bruno Haible  <bruno@clisp.org>
13155
13156         havelib: Allow library names with '+' characters.
13157         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
13158         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
13159
13160 2010-06-09  Bruno Haible  <bruno@clisp.org>
13161
13162         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
13163         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
13164         realloc failed.
13165
13166 2010-06-08  Peter Simons  <simons@cryp.to>
13167
13168         maint.mk: make the news-check rule more configurable
13169         * top/maint.mk (news-check-lines-spec): New variable.
13170         (news-check): Use "sed -n 1,10p" in place of "head".
13171
13172 2010-06-07  Jim Meyering  <meyering@redhat.com>
13173
13174         do-release-commit-and-tag: fix typo in --help
13175         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
13176
13177         regex: avoid new dead-code warning with gcc-4.6.0
13178         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
13179         if-block containing a while-loop.  It's been unused for at least
13180         5 years.
13181
13182 2010-06-05  Bruno Haible  <bruno@clisp.org>
13183
13184         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
13185         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
13186
13187 2010-06-04  Bruno Haible  <bruno@clisp.org>
13188
13189         Update to GNU gettext 0.18.1.
13190         * modules/gettext (configure.ac): Require gettext infrastructure from
13191         version 0.18.1.
13192
13193 2010-06-03  Bruno Haible  <bruno@clisp.org>
13194
13195         Don't use AC_LIBOBJ with file names in subdirectories.
13196         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
13197         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
13198         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
13199         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
13200         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
13201         gl_LIBUNISTRING_LIBSOURCE.
13202         (Makefile.am): Augment lib_SOURCES here, conditionally.
13203         * NEWS: Drop requirement for Automake option 'subdir-objects'.
13204
13205 2010-06-03  Bruno Haible  <bruno@clisp.org>
13206
13207         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
13208         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
13209         expansion does not end with a newline.
13210         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
13211         unnecessary newline.
13212
13213 2010-06-03  Bruno Haible  <bruno@clisp.org>
13214
13215         Reduce dependencies.
13216         * tests/test-quotearg.h: New file, extracted from
13217         tests/test-quotearg.c.
13218         * tests/test-quotearg-simple.c: New file, extracted from
13219         tests/test-quotearg.c.
13220         * tests/test-quotearg.c: Don't include <ctype.h>.
13221         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
13222         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
13223         use_quote_double_quotes, use_quotearg_colon): Moved to
13224         tests/test-quotearg.h.
13225         (results_g, flag_results, custom_quotes, custom_results): Moved
13226         to tests/test-quotearg-simple.c.
13227         (main): Moved the part that does not depend on gettext to
13228         tests/test-quotearg-simple.c. Return 77 if the test cannot be
13229         performed.
13230         * modules/quotearg-simple: New file.
13231         * modules/quotearg-simple-tests: New file.
13232         * modules/quotearg (Depends-on): Add quotearg-simple.
13233         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
13234         (Files): Add tests/test-quotearg.h.
13235         Reported by Paolo Bonzini.
13236
13237 2010-06-03  Bruno Haible  <bruno@clisp.org>
13238
13239         Reduce dependencies.
13240         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
13241
13242 2010-06-03  Bruno Haible  <bruno@clisp.org>
13243
13244         time: Undefine more broken macros.
13245         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
13246         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
13247         Reported by Eric Blake.
13248
13249 2010-06-03  Bruno Haible  <bruno@clisp.org>
13250
13251         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
13252         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
13253         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
13254         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
13255         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
13256         Reported by Ludovic Courtès <ludo@gnu.org>.
13257
13258 2010-06-02  Eric Blake  <eblake@redhat.com>
13259
13260         time: work with mingw + pthreads-win32 library
13261         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
13262         if timespec is defined only in pthread.h.
13263         * modules/time (Makefile.am): Substitute it.
13264         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
13265         <pthread.h>, when needed.
13266         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
13267         from the library.
13268
13269 2010-05-31  Bruno Haible  <bruno@clisp.org>
13270
13271         Avoid expanding two macros in the wrong order.
13272         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
13273         gl_LIBUNISTRING if it is defined.
13274         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
13275         autoconf >= 2.64.
13276         Reported by Ludovic Courtès <ludo@gnu.org>.
13277
13278 2010-05-27  Jim Meyering  <meyering@redhat.com>
13279
13280         maint.mk: also prohibit "#undef" of always-defined symbols
13281         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
13282         Allow more than one space before the symbol name.
13283         (sc_prohibit_always-defined_macros): Use grep's -E, now that
13284         the regexp uses alternation.
13285
13286 2010-05-26  Eric Blake  <eblake@redhat.com>
13287
13288         maint.mk: avoid echo -e
13289         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
13290         Convert all uses of echo -* to printf.
13291         Reported by Matthias Bolte.
13292
13293 2010-05-25  Bruno Haible  <bruno@clisp.org>
13294
13295         Update to GNU gettext 0.18, part 2.
13296         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
13297         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
13298
13299 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13300
13301         Add missing include in test-pwrite.c.
13302         * tests/test-pwrite.c: Include string.h, for strcmp.
13303
13304 2010-05-24  Bruno Haible  <bruno@clisp.org>
13305
13306         * NEWS: Mention requirement for Automake option 'subdir-objects'.
13307
13308 2010-05-24  Bruno Haible  <bruno@clisp.org>
13309
13310         Don't use conversion with transliteration in u{8,16,32}_strcoll.
13311         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
13312         iconveh_error argument.
13313         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
13314         U_STRCONV_TO_LOCALE.
13315         * lib/unistr/u16-strcoll.c: Likewise.
13316         * lib/unistr/u32-strcoll.c: Likewise.
13317         * modules/unistr/u8-strcoll (Depends-on): Add
13318         uniconv/u8-strconv-to-enc, localcharset. Remove
13319         uniconv/u8-strconv-to-locale.
13320         (configure.ac): Bump version number.
13321         * modules/unistr/u16-strcoll (Depends-on): Add
13322         uniconv/u16-strconv-to-enc, localcharset. Remove
13323         uniconv/u16-strconv-to-locale.
13324         (configure.ac): Bump version number.
13325         * modules/unistr/u32-strcoll (Depends-on): Add
13326         uniconv/u32-strconv-to-enc, localcharset. Remove
13327         uniconv/u32-strconv-to-locale.
13328         (configure.ac): Bump version number.
13329
13330 2010-05-24  Bruno Haible  <bruno@clisp.org>
13331
13332         Avoid a test failure on NetBSD 5.0.
13333         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
13334         an iconv() bug.
13335
13336 2010-05-24  Bruno Haible  <bruno@clisp.org>
13337
13338         Adjust #include directive style.
13339         * modules/regex (Includes): Recommend to write <regex.h>.
13340
13341 2010-05-24  Bruno Haible  <bruno@clisp.org>
13342
13343         regex: Don't require alloca.
13344         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
13345         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
13346         only inside if (0).
13347
13348 2010-05-23  Jim Meyering  <meyering@redhat.com>
13349
13350         test-renameat.c: include <sys/stat.h>
13351         * tests/test-renameat.c: Include <sys/stat.h>; required for
13352         definition of S_IS* macros.
13353
13354 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
13355
13356         Update maintainer documentation for 'relocatable-prog' module.
13357         * doc/relocatable-maint.texi: Update.
13358         Comments by Bruno Haible.
13359
13360 2010-05-23  Bruno Haible  <bruno@clisp.org>
13361
13362         git-merge-changelog: Enable --split-merged-entry by default.
13363         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
13364         (usage): Don't mention this option any more.
13365         Reported by Ralf Wildenhues.
13366
13367 2010-05-23  Jim Meyering  <meyering@redhat.com>
13368
13369         test-pwrite: do not leave behind a test file named "out"
13370         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
13371         The trivial-looking use of init.sh is really necessary.
13372         It ensures that the temporary file, "out", is created in
13373         a temporary directory, and removed upon termination.
13374         * tests/test-pwrite.sh: Re-add file.
13375         * modules/pwrite-tests: Reference it.
13376
13377 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13378
13379         Fix output redirection buglet in init.sh.
13380         * tests/init.sh: Fix redirection of stderr.
13381
13382 2010-05-20  Simon Josefsson  <simon@josefsson.org>
13383
13384         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
13385
13386 2010-05-17  Simon Josefsson  <simon@josefsson.org>
13387
13388         * modules/valgrind-tests: New file.
13389         * m4/valgrind-tests.m4: New file.
13390         * doc/valgrind-tests.texi: New file.
13391         * doc/gnulib.texi (Running self-tests under valgrind): New
13392         section.
13393
13394 2010-05-19  Bruno Haible  <bruno@clisp.org>
13395
13396         Clean up dead code in recent commit.
13397         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
13398         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
13399         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
13400         Suggested by Paolo Bonzini.
13401
13402 2010-05-19  Bruno Haible  <bruno@clisp.org>
13403
13404         Avoid valgrind error reports from libunistring.
13405         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
13406         * modules/libunistring (Files): Add it.
13407         * modules/libunistring-optional (Files): Likewise.
13408
13409 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
13410             Bruno Haible  <bruno@clisp.org>
13411
13412         New module 'libunistring-optional'.
13413         * modules/libunistring-optional: New file.
13414         * m4/libunistring-base.m4: New file.
13415         * m4/libunistring-optional.m4: New file.
13416         * lib/unicase.in.h: Renamed from lib/unicase.h.
13417         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
13418         * lib/unictype.in.h: Renamed from lib/unictype.h.
13419         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
13420         * lib/uniname.in.h: Renamed from lib/uniname.h.
13421         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
13422         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
13423         * lib/unistr.in.h: Renamed from lib/unistr.h.
13424         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
13425         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
13426         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
13427         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
13428         gl_LIBUNISTRING. If the library was found, determine the installed
13429         version and set LIBUNISTRING_VERSION.
13430         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
13431         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
13432         handle a configuration option --with-included-libunistring.
13433         * modules/libunistring (Files): Add m4/absolute-header.m4.
13434         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
13435         Add m4/libunistring-base.m4.
13436         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13437         (Makefile.am): Build unicase.h from unicase.in.h.
13438         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
13439         Add m4/libunistring-base.m4.
13440         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13441         (Makefile.am): Build uniconv.h from uniconv.in.h.
13442         * modules/unictype/base (Files): Use unictype.in.h instead of
13443         unictype.h. Add m4/libunistring-base.m4.
13444         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13445         (Makefile.am): Build unictype.h from unictype.in.h.
13446         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
13447         Add m4/libunistring-base.m4.
13448         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13449         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
13450         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
13451         Add m4/libunistring-base.m4.
13452         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13453         (Makefile.am): Build uniname.h from uniname.in.h.
13454         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
13455         Add m4/libunistring-base.m4.
13456         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13457         (Makefile.am): Build uninorm.h from uninorm.in.h.
13458         * modules/unistdio/base (Files): Use unistdio.in.h instead of
13459         unistdio.h. Add m4/libunistring-base.m4.
13460         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13461         (Makefile.am): Build unistdio.h from unistdio.in.h.
13462         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
13463         Add m4/libunistring-base.m4.
13464         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13465         (Makefile.am): Build unistr.h from unistr.in.h.
13466         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
13467         Add m4/libunistring-base.m4.
13468         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13469         (Makefile.am): Build unitypes.h from unitypes.in.h.
13470         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
13471         Add m4/libunistring-base.m4.
13472         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13473         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
13474         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
13475         uniwidth.h. Add m4/libunistring-base.m4.
13476         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
13477         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
13478         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
13479         instead of augmenting lib_SOURCES.
13480         * modules/unicase/empty-suffix-context: Likewise.
13481         * modules/unicase/locale-language: Likewise.
13482         * modules/unicase/tolower: Likewise.
13483         * modules/unicase/totitle: Likewise.
13484         * modules/unicase/toupper: Likewise.
13485         * modules/unicase/u8-casecmp: Likewise.
13486         * modules/unicase/u8-casecoll: Likewise.
13487         * modules/unicase/u8-casefold: Likewise.
13488         * modules/unicase/u8-casexfrm: Likewise.
13489         * modules/unicase/u8-ct-casefold: Likewise.
13490         * modules/unicase/u8-ct-tolower: Likewise.
13491         * modules/unicase/u8-ct-totitle: Likewise.
13492         * modules/unicase/u8-ct-toupper: Likewise.
13493         * modules/unicase/u8-is-cased: Likewise.
13494         * modules/unicase/u8-is-casefolded: Likewise.
13495         * modules/unicase/u8-is-lowercase: Likewise.
13496         * modules/unicase/u8-is-titlecase: Likewise.
13497         * modules/unicase/u8-is-uppercase: Likewise.
13498         * modules/unicase/u8-prefix-context: Likewise.
13499         * modules/unicase/u8-suffix-context: Likewise.
13500         * modules/unicase/u8-tolower: Likewise.
13501         * modules/unicase/u8-totitle: Likewise.
13502         * modules/unicase/u8-toupper: Likewise.
13503         * modules/unicase/u16-casecmp: Likewise.
13504         * modules/unicase/u16-casecoll: Likewise.
13505         * modules/unicase/u16-casefold: Likewise.
13506         * modules/unicase/u16-casexfrm: Likewise.
13507         * modules/unicase/u16-ct-casefold: Likewise.
13508         * modules/unicase/u16-ct-tolower: Likewise.
13509         * modules/unicase/u16-ct-totitle: Likewise.
13510         * modules/unicase/u16-ct-toupper: Likewise.
13511         * modules/unicase/u16-is-cased: Likewise.
13512         * modules/unicase/u16-is-casefolded: Likewise.
13513         * modules/unicase/u16-is-lowercase: Likewise.
13514         * modules/unicase/u16-is-titlecase: Likewise.
13515         * modules/unicase/u16-is-uppercase: Likewise.
13516         * modules/unicase/u16-prefix-context: Likewise.
13517         * modules/unicase/u16-suffix-context: Likewise.
13518         * modules/unicase/u16-tolower: Likewise.
13519         * modules/unicase/u16-totitle: Likewise.
13520         * modules/unicase/u16-toupper: Likewise.
13521         * modules/unicase/u32-casecmp: Likewise.
13522         * modules/unicase/u32-casecoll: Likewise.
13523         * modules/unicase/u32-casefold: Likewise.
13524         * modules/unicase/u32-casexfrm: Likewise.
13525         * modules/unicase/u32-ct-casefold: Likewise.
13526         * modules/unicase/u32-ct-tolower: Likewise.
13527         * modules/unicase/u32-ct-totitle: Likewise.
13528         * modules/unicase/u32-ct-toupper: Likewise.
13529         * modules/unicase/u32-is-cased: Likewise.
13530         * modules/unicase/u32-is-casefolded: Likewise.
13531         * modules/unicase/u32-is-lowercase: Likewise.
13532         * modules/unicase/u32-is-titlecase: Likewise.
13533         * modules/unicase/u32-is-uppercase: Likewise.
13534         * modules/unicase/u32-prefix-context: Likewise.
13535         * modules/unicase/u32-suffix-context: Likewise.
13536         * modules/unicase/u32-tolower: Likewise.
13537         * modules/unicase/u32-totitle: Likewise.
13538         * modules/unicase/u32-toupper: Likewise.
13539         * modules/unicase/ulc-casecmp: Likewise.
13540         * modules/unicase/ulc-casecoll: Likewise.
13541         * modules/unicase/ulc-casexfrm: Likewise.
13542         * modules/uniconv/u8-conv-from-enc: Likewise.
13543         * modules/uniconv/u8-conv-to-enc: Likewise.
13544         * modules/uniconv/u8-strconv-from-enc: Likewise.
13545         * modules/uniconv/u8-strconv-from-locale: Likewise.
13546         * modules/uniconv/u8-strconv-to-enc: Likewise.
13547         * modules/uniconv/u8-strconv-to-locale: Likewise.
13548         * modules/uniconv/u16-conv-from-enc: Likewise.
13549         * modules/uniconv/u16-conv-to-enc: Likewise.
13550         * modules/uniconv/u16-strconv-from-enc: Likewise.
13551         * modules/uniconv/u16-strconv-from-locale: Likewise.
13552         * modules/uniconv/u16-strconv-to-enc: Likewise.
13553         * modules/uniconv/u16-strconv-to-locale: Likewise.
13554         * modules/uniconv/u32-conv-from-enc: Likewise.
13555         * modules/uniconv/u32-conv-to-enc: Likewise.
13556         * modules/uniconv/u32-strconv-from-enc: Likewise.
13557         * modules/uniconv/u32-strconv-from-locale: Likewise.
13558         * modules/uniconv/u32-strconv-to-enc: Likewise.
13559         * modules/uniconv/u32-strconv-to-locale: Likewise.
13560         * modules/unictype/bidicategory-byname: Likewise.
13561         * modules/unictype/bidicategory-name: Likewise.
13562         * modules/unictype/bidicategory-of: Likewise.
13563         * modules/unictype/bidicategory-test: Likewise.
13564         * modules/unictype/block-list: Likewise.
13565         * modules/unictype/block-test: Likewise.
13566         * modules/unictype/category-C: Likewise.
13567         * modules/unictype/category-Cc: Likewise.
13568         * modules/unictype/category-Cf: Likewise.
13569         * modules/unictype/category-Cn: Likewise.
13570         * modules/unictype/category-Co: Likewise.
13571         * modules/unictype/category-Cs: Likewise.
13572         * modules/unictype/category-L: Likewise.
13573         * modules/unictype/category-Ll: Likewise.
13574         * modules/unictype/category-Lm: Likewise.
13575         * modules/unictype/category-Lo: Likewise.
13576         * modules/unictype/category-Lt: Likewise.
13577         * modules/unictype/category-Lu: Likewise.
13578         * modules/unictype/category-M: Likewise.
13579         * modules/unictype/category-Mc: Likewise.
13580         * modules/unictype/category-Me: Likewise.
13581         * modules/unictype/category-Mn: Likewise.
13582         * modules/unictype/category-N: Likewise.
13583         * modules/unictype/category-Nd: Likewise.
13584         * modules/unictype/category-Nl: Likewise.
13585         * modules/unictype/category-No: Likewise.
13586         * modules/unictype/category-P: Likewise.
13587         * modules/unictype/category-Pc: Likewise.
13588         * modules/unictype/category-Pd: Likewise.
13589         * modules/unictype/category-Pe: Likewise.
13590         * modules/unictype/category-Pf: Likewise.
13591         * modules/unictype/category-Pi: Likewise.
13592         * modules/unictype/category-Po: Likewise.
13593         * modules/unictype/category-Ps: Likewise.
13594         * modules/unictype/category-S: Likewise.
13595         * modules/unictype/category-Sc: Likewise.
13596         * modules/unictype/category-Sk: Likewise.
13597         * modules/unictype/category-Sm: Likewise.
13598         * modules/unictype/category-So: Likewise.
13599         * modules/unictype/category-Z: Likewise.
13600         * modules/unictype/category-Zl: Likewise.
13601         * modules/unictype/category-Zp: Likewise.
13602         * modules/unictype/category-Zs: Likewise.
13603         * modules/unictype/category-and: Likewise.
13604         * modules/unictype/category-and-not: Likewise.
13605         * modules/unictype/category-byname: Likewise.
13606         * modules/unictype/category-name: Likewise.
13607         * modules/unictype/category-none: Likewise.
13608         * modules/unictype/category-of: Likewise.
13609         * modules/unictype/category-or: Likewise.
13610         * modules/unictype/category-test: Likewise.
13611         * modules/unictype/combining-class: Likewise.
13612         * modules/unictype/ctype-alnum: Likewise.
13613         * modules/unictype/ctype-alpha: Likewise.
13614         * modules/unictype/ctype-blank: Likewise.
13615         * modules/unictype/ctype-cntrl: Likewise.
13616         * modules/unictype/ctype-digit: Likewise.
13617         * modules/unictype/ctype-graph: Likewise.
13618         * modules/unictype/ctype-lower: Likewise.
13619         * modules/unictype/ctype-print: Likewise.
13620         * modules/unictype/ctype-punct: Likewise.
13621         * modules/unictype/ctype-space: Likewise.
13622         * modules/unictype/ctype-upper: Likewise.
13623         * modules/unictype/ctype-xdigit: Likewise.
13624         * modules/unictype/decimal-digit: Likewise.
13625         * modules/unictype/digit: Likewise.
13626         * modules/unictype/mirror: Likewise.
13627         * modules/unictype/numeric: Likewise.
13628         * modules/unictype/property-alphabetic: Likewise.
13629         * modules/unictype/property-ascii-hex-digit: Likewise.
13630         * modules/unictype/property-bidi-arabic-digit: Likewise.
13631         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
13632         * modules/unictype/property-bidi-block-separator: Likewise.
13633         * modules/unictype/property-bidi-boundary-neutral: Likewise.
13634         * modules/unictype/property-bidi-common-separator: Likewise.
13635         * modules/unictype/property-bidi-control: Likewise.
13636         * modules/unictype/property-bidi-embedding-or-override: Likewise.
13637         * modules/unictype/property-bidi-eur-num-separator: Likewise.
13638         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
13639         * modules/unictype/property-bidi-european-digit: Likewise.
13640         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
13641         * modules/unictype/property-bidi-left-to-right: Likewise.
13642         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
13643         * modules/unictype/property-bidi-other-neutral: Likewise.
13644         * modules/unictype/property-bidi-pdf: Likewise.
13645         * modules/unictype/property-bidi-segment-separator: Likewise.
13646         * modules/unictype/property-bidi-whitespace: Likewise.
13647         * modules/unictype/property-byname: Likewise.
13648         * modules/unictype/property-combining: Likewise.
13649         * modules/unictype/property-composite: Likewise.
13650         * modules/unictype/property-currency-symbol: Likewise.
13651         * modules/unictype/property-dash: Likewise.
13652         * modules/unictype/property-decimal-digit: Likewise.
13653         * modules/unictype/property-default-ignorable-code-point: Likewise.
13654         * modules/unictype/property-deprecated: Likewise.
13655         * modules/unictype/property-diacritic: Likewise.
13656         * modules/unictype/property-extender: Likewise.
13657         * modules/unictype/property-format-control: Likewise.
13658         * modules/unictype/property-grapheme-base: Likewise.
13659         * modules/unictype/property-grapheme-extend: Likewise.
13660         * modules/unictype/property-grapheme-link: Likewise.
13661         * modules/unictype/property-hex-digit: Likewise.
13662         * modules/unictype/property-hyphen: Likewise.
13663         * modules/unictype/property-id-continue: Likewise.
13664         * modules/unictype/property-id-start: Likewise.
13665         * modules/unictype/property-ideographic: Likewise.
13666         * modules/unictype/property-ids-binary-operator: Likewise.
13667         * modules/unictype/property-ids-trinary-operator: Likewise.
13668         * modules/unictype/property-ignorable-control: Likewise.
13669         * modules/unictype/property-iso-control: Likewise.
13670         * modules/unictype/property-join-control: Likewise.
13671         * modules/unictype/property-left-of-pair: Likewise.
13672         * modules/unictype/property-line-separator: Likewise.
13673         * modules/unictype/property-logical-order-exception: Likewise.
13674         * modules/unictype/property-lowercase: Likewise.
13675         * modules/unictype/property-math: Likewise.
13676         * modules/unictype/property-non-break: Likewise.
13677         * modules/unictype/property-not-a-character: Likewise.
13678         * modules/unictype/property-numeric: Likewise.
13679         * modules/unictype/property-other-alphabetic: Likewise.
13680         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
13681         * modules/unictype/property-other-grapheme-extend: Likewise.
13682         * modules/unictype/property-other-id-continue: Likewise.
13683         * modules/unictype/property-other-id-start: Likewise.
13684         * modules/unictype/property-other-lowercase: Likewise.
13685         * modules/unictype/property-other-math: Likewise.
13686         * modules/unictype/property-other-uppercase: Likewise.
13687         * modules/unictype/property-paired-punctuation: Likewise.
13688         * modules/unictype/property-paragraph-separator: Likewise.
13689         * modules/unictype/property-pattern-syntax: Likewise.
13690         * modules/unictype/property-pattern-white-space: Likewise.
13691         * modules/unictype/property-private-use: Likewise.
13692         * modules/unictype/property-punctuation: Likewise.
13693         * modules/unictype/property-quotation-mark: Likewise.
13694         * modules/unictype/property-radical: Likewise.
13695         * modules/unictype/property-sentence-terminal: Likewise.
13696         * modules/unictype/property-soft-dotted: Likewise.
13697         * modules/unictype/property-space: Likewise.
13698         * modules/unictype/property-terminal-punctuation: Likewise.
13699         * modules/unictype/property-test: Likewise.
13700         * modules/unictype/property-titlecase: Likewise.
13701         * modules/unictype/property-unassigned-code-value: Likewise.
13702         * modules/unictype/property-unified-ideograph: Likewise.
13703         * modules/unictype/property-uppercase: Likewise.
13704         * modules/unictype/property-variation-selector: Likewise.
13705         * modules/unictype/property-white-space: Likewise.
13706         * modules/unictype/property-xid-continue: Likewise.
13707         * modules/unictype/property-xid-start: Likewise.
13708         * modules/unictype/property-zero-width: Likewise.
13709         * modules/unictype/scripts: Likewise.
13710         * modules/unictype/syntax-c-ident: Likewise.
13711         * modules/unictype/syntax-c-whitespace: Likewise.
13712         * modules/unictype/syntax-java-ident: Likewise.
13713         * modules/unictype/syntax-java-whitespace: Likewise.
13714         * modules/unilbrk/u8-possible-linebreaks: Likewise.
13715         * modules/unilbrk/u8-width-linebreaks: Likewise.
13716         * modules/unilbrk/u16-possible-linebreaks: Likewise.
13717         * modules/unilbrk/u16-width-linebreaks: Likewise.
13718         * modules/unilbrk/u32-possible-linebreaks: Likewise.
13719         * modules/unilbrk/u32-width-linebreaks: Likewise.
13720         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
13721         * modules/unilbrk/ulc-width-linebreaks: Likewise.
13722         * modules/uniname/uniname: Likewise.
13723         * modules/uninorm/canonical-decomposition: Likewise.
13724         * modules/uninorm/composition: Likewise.
13725         * modules/uninorm/decomposing-form: Likewise.
13726         * modules/uninorm/decomposition: Likewise.
13727         * modules/uninorm/filter: Likewise.
13728         * modules/uninorm/nfc: Likewise.
13729         * modules/uninorm/nfd: Likewise.
13730         * modules/uninorm/nfkc: Likewise.
13731         * modules/uninorm/nfkd: Likewise.
13732         * modules/uninorm/u8-normalize: Likewise.
13733         * modules/uninorm/u8-normcmp: Likewise.
13734         * modules/uninorm/u8-normcoll: Likewise.
13735         * modules/uninorm/u8-normxfrm: Likewise.
13736         * modules/uninorm/u16-normalize: Likewise.
13737         * modules/uninorm/u16-normcmp: Likewise.
13738         * modules/uninorm/u16-normcoll: Likewise.
13739         * modules/uninorm/u16-normxfrm: Likewise.
13740         * modules/uninorm/u32-normalize: Likewise.
13741         * modules/uninorm/u32-normcmp: Likewise.
13742         * modules/uninorm/u32-normcoll: Likewise.
13743         * modules/uninorm/u32-normxfrm: Likewise.
13744         * modules/unistdio/u8-asnprintf: Likewise.
13745         * modules/unistdio/u8-asprintf: Likewise.
13746         * modules/unistdio/u8-snprintf: Likewise.
13747         * modules/unistdio/u8-sprintf: Likewise.
13748         * modules/unistdio/u8-u8-asnprintf: Likewise.
13749         * modules/unistdio/u8-u8-asprintf: Likewise.
13750         * modules/unistdio/u8-u8-snprintf: Likewise.
13751         * modules/unistdio/u8-u8-sprintf: Likewise.
13752         * modules/unistdio/u8-u8-vasnprintf: Likewise.
13753         * modules/unistdio/u8-u8-vasprintf: Likewise.
13754         * modules/unistdio/u8-u8-vsnprintf: Likewise.
13755         * modules/unistdio/u8-u8-vsprintf: Likewise.
13756         * modules/unistdio/u8-vasnprintf: Likewise.
13757         * modules/unistdio/u8-vasprintf: Likewise.
13758         * modules/unistdio/u8-vsnprintf: Likewise.
13759         * modules/unistdio/u8-vsprintf: Likewise.
13760         * modules/unistdio/u16-asnprintf: Likewise.
13761         * modules/unistdio/u16-asprintf: Likewise.
13762         * modules/unistdio/u16-snprintf: Likewise.
13763         * modules/unistdio/u16-sprintf: Likewise.
13764         * modules/unistdio/u16-u16-asnprintf: Likewise.
13765         * modules/unistdio/u16-u16-asprintf: Likewise.
13766         * modules/unistdio/u16-u16-snprintf: Likewise.
13767         * modules/unistdio/u16-u16-sprintf: Likewise.
13768         * modules/unistdio/u16-u16-vasnprintf: Likewise.
13769         * modules/unistdio/u16-u16-vasprintf: Likewise.
13770         * modules/unistdio/u16-u16-vsnprintf: Likewise.
13771         * modules/unistdio/u16-u16-vsprintf: Likewise.
13772         * modules/unistdio/u16-vasnprintf: Likewise.
13773         * modules/unistdio/u16-vasprintf: Likewise.
13774         * modules/unistdio/u16-vsnprintf: Likewise.
13775         * modules/unistdio/u16-vsprintf: Likewise.
13776         * modules/unistdio/u32-asnprintf: Likewise.
13777         * modules/unistdio/u32-asprintf: Likewise.
13778         * modules/unistdio/u32-snprintf: Likewise.
13779         * modules/unistdio/u32-sprintf: Likewise.
13780         * modules/unistdio/u32-u32-asnprintf: Likewise.
13781         * modules/unistdio/u32-u32-asprintf: Likewise.
13782         * modules/unistdio/u32-u32-snprintf: Likewise.
13783         * modules/unistdio/u32-u32-sprintf: Likewise.
13784         * modules/unistdio/u32-u32-vasnprintf: Likewise.
13785         * modules/unistdio/u32-u32-vasprintf: Likewise.
13786         * modules/unistdio/u32-u32-vsnprintf: Likewise.
13787         * modules/unistdio/u32-u32-vsprintf: Likewise.
13788         * modules/unistdio/u32-vasnprintf: Likewise.
13789         * modules/unistdio/u32-vasprintf: Likewise.
13790         * modules/unistdio/u32-vsnprintf: Likewise.
13791         * modules/unistdio/u32-vsprintf: Likewise.
13792         * modules/unistdio/ulc-asnprintf: Likewise.
13793         * modules/unistdio/ulc-asprintf: Likewise.
13794         * modules/unistdio/ulc-fprintf: Likewise.
13795         * modules/unistdio/ulc-snprintf: Likewise.
13796         * modules/unistdio/ulc-sprintf: Likewise.
13797         * modules/unistdio/ulc-vasnprintf: Likewise.
13798         * modules/unistdio/ulc-vasprintf: Likewise.
13799         * modules/unistdio/ulc-vfprintf: Likewise.
13800         * modules/unistdio/ulc-vsnprintf: Likewise.
13801         * modules/unistdio/ulc-vsprintf: Likewise.
13802         * modules/unistr/u8-check: Likewise.
13803         * modules/unistr/u8-chr: Likewise.
13804         * modules/unistr/u8-cmp: Likewise.
13805         * modules/unistr/u8-cmp2: Likewise.
13806         * modules/unistr/u8-cpy: Likewise.
13807         * modules/unistr/u8-cpy-alloc: Likewise.
13808         * modules/unistr/u8-endswith: Likewise.
13809         * modules/unistr/u8-mblen: Likewise.
13810         * modules/unistr/u8-mbsnlen: Likewise.
13811         * modules/unistr/u8-mbtouc: Likewise.
13812         * modules/unistr/u8-mbtouc-unsafe: Likewise.
13813         * modules/unistr/u8-mbtoucr: Likewise.
13814         * modules/unistr/u8-move: Likewise.
13815         * modules/unistr/u8-next: Likewise.
13816         * modules/unistr/u8-prev: Likewise.
13817         * modules/unistr/u8-set: Likewise.
13818         * modules/unistr/u8-startswith: Likewise.
13819         * modules/unistr/u8-stpcpy: Likewise.
13820         * modules/unistr/u8-stpncpy: Likewise.
13821         * modules/unistr/u8-strcat: Likewise.
13822         * modules/unistr/u8-strchr: Likewise.
13823         * modules/unistr/u8-strcmp: Likewise.
13824         * modules/unistr/u8-strcoll: Likewise.
13825         * modules/unistr/u8-strcpy: Likewise.
13826         * modules/unistr/u8-strcspn: Likewise.
13827         * modules/unistr/u8-strdup: Likewise.
13828         * modules/unistr/u8-strlen: Likewise.
13829         * modules/unistr/u8-strmblen: Likewise.
13830         * modules/unistr/u8-strmbtouc: Likewise.
13831         * modules/unistr/u8-strncat: Likewise.
13832         * modules/unistr/u8-strncmp: Likewise.
13833         * modules/unistr/u8-strncpy: Likewise.
13834         * modules/unistr/u8-strnlen: Likewise.
13835         * modules/unistr/u8-strpbrk: Likewise.
13836         * modules/unistr/u8-strrchr: Likewise.
13837         * modules/unistr/u8-strspn: Likewise.
13838         * modules/unistr/u8-strstr: Likewise.
13839         * modules/unistr/u8-strtok: Likewise.
13840         * modules/unistr/u8-to-u16: Likewise.
13841         * modules/unistr/u8-to-u32: Likewise.
13842         * modules/unistr/u8-uctomb: Likewise.
13843         * modules/unistr/u16-check: Likewise.
13844         * modules/unistr/u16-chr: Likewise.
13845         * modules/unistr/u16-cmp: Likewise.
13846         * modules/unistr/u16-cmp2: Likewise.
13847         * modules/unistr/u16-cpy: Likewise.
13848         * modules/unistr/u16-cpy-alloc: Likewise.
13849         * modules/unistr/u16-endswith: Likewise.
13850         * modules/unistr/u16-mblen: Likewise.
13851         * modules/unistr/u16-mbsnlen: Likewise.
13852         * modules/unistr/u16-mbtouc: Likewise.
13853         * modules/unistr/u16-mbtouc-unsafe: Likewise.
13854         * modules/unistr/u16-mbtoucr: Likewise.
13855         * modules/unistr/u16-move: Likewise.
13856         * modules/unistr/u16-next: Likewise.
13857         * modules/unistr/u16-prev: Likewise.
13858         * modules/unistr/u16-set: Likewise.
13859         * modules/unistr/u16-startswith: Likewise.
13860         * modules/unistr/u16-stpcpy: Likewise.
13861         * modules/unistr/u16-stpncpy: Likewise.
13862         * modules/unistr/u16-strcat: Likewise.
13863         * modules/unistr/u16-strchr: Likewise.
13864         * modules/unistr/u16-strcmp: Likewise.
13865         * modules/unistr/u16-strcoll: Likewise.
13866         * modules/unistr/u16-strcpy: Likewise.
13867         * modules/unistr/u16-strcspn: Likewise.
13868         * modules/unistr/u16-strdup: Likewise.
13869         * modules/unistr/u16-strlen: Likewise.
13870         * modules/unistr/u16-strmblen: Likewise.
13871         * modules/unistr/u16-strmbtouc: Likewise.
13872         * modules/unistr/u16-strncat: Likewise.
13873         * modules/unistr/u16-strncmp: Likewise.
13874         * modules/unistr/u16-strncpy: Likewise.
13875         * modules/unistr/u16-strnlen: Likewise.
13876         * modules/unistr/u16-strpbrk: Likewise.
13877         * modules/unistr/u16-strrchr: Likewise.
13878         * modules/unistr/u16-strspn: Likewise.
13879         * modules/unistr/u16-strstr: Likewise.
13880         * modules/unistr/u16-strtok: Likewise.
13881         * modules/unistr/u16-to-u32: Likewise.
13882         * modules/unistr/u16-to-u8: Likewise.
13883         * modules/unistr/u16-uctomb: Likewise.
13884         * modules/unistr/u32-check: Likewise.
13885         * modules/unistr/u32-chr: Likewise.
13886         * modules/unistr/u32-cmp: Likewise.
13887         * modules/unistr/u32-cmp2: Likewise.
13888         * modules/unistr/u32-cpy: Likewise.
13889         * modules/unistr/u32-cpy-alloc: Likewise.
13890         * modules/unistr/u32-endswith: Likewise.
13891         * modules/unistr/u32-mblen: Likewise.
13892         * modules/unistr/u32-mbsnlen: Likewise.
13893         * modules/unistr/u32-mbtouc: Likewise.
13894         * modules/unistr/u32-mbtouc-unsafe: Likewise.
13895         * modules/unistr/u32-mbtoucr: Likewise.
13896         * modules/unistr/u32-move: Likewise.
13897         * modules/unistr/u32-next: Likewise.
13898         * modules/unistr/u32-prev: Likewise.
13899         * modules/unistr/u32-set: Likewise.
13900         * modules/unistr/u32-startswith: Likewise.
13901         * modules/unistr/u32-stpcpy: Likewise.
13902         * modules/unistr/u32-stpncpy: Likewise.
13903         * modules/unistr/u32-strcat: Likewise.
13904         * modules/unistr/u32-strchr: Likewise.
13905         * modules/unistr/u32-strcmp: Likewise.
13906         * modules/unistr/u32-strcoll: Likewise.
13907         * modules/unistr/u32-strcpy: Likewise.
13908         * modules/unistr/u32-strcspn: Likewise.
13909         * modules/unistr/u32-strdup: Likewise.
13910         * modules/unistr/u32-strlen: Likewise.
13911         * modules/unistr/u32-strmblen: Likewise.
13912         * modules/unistr/u32-strmbtouc: Likewise.
13913         * modules/unistr/u32-strncat: Likewise.
13914         * modules/unistr/u32-strncmp: Likewise.
13915         * modules/unistr/u32-strncpy: Likewise.
13916         * modules/unistr/u32-strnlen: Likewise.
13917         * modules/unistr/u32-strpbrk: Likewise.
13918         * modules/unistr/u32-strrchr: Likewise.
13919         * modules/unistr/u32-strspn: Likewise.
13920         * modules/unistr/u32-strstr: Likewise.
13921         * modules/unistr/u32-strtok: Likewise.
13922         * modules/unistr/u32-to-u16: Likewise.
13923         * modules/unistr/u32-to-u8: Likewise.
13924         * modules/unistr/u32-uctomb: Likewise.
13925         * modules/uniwbrk/u8-wordbreaks: Likewise.
13926         * modules/uniwbrk/u16-wordbreaks: Likewise.
13927         * modules/uniwbrk/u32-wordbreaks: Likewise.
13928         * modules/uniwbrk/ulc-wordbreaks: Likewise.
13929         * modules/uniwbrk/wordbreak-property: Likewise.
13930         * modules/uniwidth/u8-strwidth: Likewise.
13931         * modules/uniwidth/u8-width: Likewise.
13932         * modules/uniwidth/u16-strwidth: Likewise.
13933         * modules/uniwidth/u16-width: Likewise.
13934         * modules/uniwidth/u32-strwidth: Likewise.
13935         * modules/uniwidth/u32-width: Likewise.
13936         * modules/uniwidth/width: Likewise.
13937         * modules/unicase/cased-tests (Makefile.am): Link all test programs
13938         with $(LIBUNISTRING).
13939         * modules/unicase/ignorable-tests: Likewise.
13940         * modules/unicase/locale-language-tests: Likewise.
13941         * modules/unicase/tolower-tests: Likewise.
13942         * modules/unicase/totitle-tests: Likewise.
13943         * modules/unicase/toupper-tests: Likewise.
13944         * modules/unicase/u8-casecmp-tests: Likewise.
13945         * modules/unicase/u8-casecoll-tests: Likewise.
13946         * modules/unicase/u8-casefold-tests: Likewise.
13947         * modules/unicase/u8-is-cased-tests: Likewise.
13948         * modules/unicase/u8-is-casefolded-tests: Likewise.
13949         * modules/unicase/u8-is-lowercase-tests: Likewise.
13950         * modules/unicase/u8-is-titlecase-tests: Likewise.
13951         * modules/unicase/u8-is-uppercase-tests: Likewise.
13952         * modules/unicase/u8-tolower-tests: Likewise.
13953         * modules/unicase/u8-totitle-tests: Likewise.
13954         * modules/unicase/u8-toupper-tests: Likewise.
13955         * modules/unicase/u16-casecmp-tests: Likewise.
13956         * modules/unicase/u16-casecoll-tests: Likewise.
13957         * modules/unicase/u16-casefold-tests: Likewise.
13958         * modules/unicase/u16-is-cased-tests: Likewise.
13959         * modules/unicase/u16-is-casefolded-tests: Likewise.
13960         * modules/unicase/u16-is-lowercase-tests: Likewise.
13961         * modules/unicase/u16-is-titlecase-tests: Likewise.
13962         * modules/unicase/u16-is-uppercase-tests: Likewise.
13963         * modules/unicase/u16-tolower-tests: Likewise.
13964         * modules/unicase/u16-totitle-tests: Likewise.
13965         * modules/unicase/u16-toupper-tests: Likewise.
13966         * modules/unicase/u32-casecmp-tests: Likewise.
13967         * modules/unicase/u32-casecoll-tests: Likewise.
13968         * modules/unicase/u32-casefold-tests: Likewise.
13969         * modules/unicase/u32-is-cased-tests: Likewise.
13970         * modules/unicase/u32-is-casefolded-tests: Likewise.
13971         * modules/unicase/u32-is-lowercase-tests: Likewise.
13972         * modules/unicase/u32-is-titlecase-tests: Likewise.
13973         * modules/unicase/u32-is-uppercase-tests: Likewise.
13974         * modules/unicase/u32-tolower-tests: Likewise.
13975         * modules/unicase/u32-totitle-tests: Likewise.
13976         * modules/unicase/u32-toupper-tests: Likewise.
13977         * modules/unicase/ulc-casecmp-tests: Likewise.
13978         * modules/unicase/ulc-casecoll-tests: Likewise.
13979         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
13980         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
13981         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
13982         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
13983         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
13984         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
13985         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
13986         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
13987         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
13988         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
13989         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
13990         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
13991         * modules/unictype/bidicategory-byname-tests: Likewise.
13992         * modules/unictype/bidicategory-name-tests: Likewise.
13993         * modules/unictype/bidicategory-of-tests: Likewise.
13994         * modules/unictype/bidicategory-test-tests: Likewise.
13995         * modules/unictype/block-list-tests: Likewise.
13996         * modules/unictype/block-of-tests: Likewise.
13997         * modules/unictype/block-test-tests: Likewise.
13998         * modules/unictype/category-C-tests: Likewise.
13999         * modules/unictype/category-Cc-tests: Likewise.
14000         * modules/unictype/category-Cf-tests: Likewise.
14001         * modules/unictype/category-Cn-tests: Likewise.
14002         * modules/unictype/category-Co-tests: Likewise.
14003         * modules/unictype/category-Cs-tests: Likewise.
14004         * modules/unictype/category-L-tests: Likewise.
14005         * modules/unictype/category-Ll-tests: Likewise.
14006         * modules/unictype/category-Lm-tests: Likewise.
14007         * modules/unictype/category-Lo-tests: Likewise.
14008         * modules/unictype/category-Lt-tests: Likewise.
14009         * modules/unictype/category-Lu-tests: Likewise.
14010         * modules/unictype/category-M-tests: Likewise.
14011         * modules/unictype/category-Mc-tests: Likewise.
14012         * modules/unictype/category-Me-tests: Likewise.
14013         * modules/unictype/category-Mn-tests: Likewise.
14014         * modules/unictype/category-N-tests: Likewise.
14015         * modules/unictype/category-Nd-tests: Likewise.
14016         * modules/unictype/category-Nl-tests: Likewise.
14017         * modules/unictype/category-No-tests: Likewise.
14018         * modules/unictype/category-P-tests: Likewise.
14019         * modules/unictype/category-Pc-tests: Likewise.
14020         * modules/unictype/category-Pd-tests: Likewise.
14021         * modules/unictype/category-Pe-tests: Likewise.
14022         * modules/unictype/category-Pf-tests: Likewise.
14023         * modules/unictype/category-Pi-tests: Likewise.
14024         * modules/unictype/category-Po-tests: Likewise.
14025         * modules/unictype/category-Ps-tests: Likewise.
14026         * modules/unictype/category-S-tests: Likewise.
14027         * modules/unictype/category-Sc-tests: Likewise.
14028         * modules/unictype/category-Sk-tests: Likewise.
14029         * modules/unictype/category-Sm-tests: Likewise.
14030         * modules/unictype/category-So-tests: Likewise.
14031         * modules/unictype/category-Z-tests: Likewise.
14032         * modules/unictype/category-Zl-tests: Likewise.
14033         * modules/unictype/category-Zp-tests: Likewise.
14034         * modules/unictype/category-Zs-tests: Likewise.
14035         * modules/unictype/category-and-not-tests: Likewise.
14036         * modules/unictype/category-and-tests: Likewise.
14037         * modules/unictype/category-byname-tests: Likewise.
14038         * modules/unictype/category-name-tests: Likewise.
14039         * modules/unictype/category-none-tests: Likewise.
14040         * modules/unictype/category-of-tests: Likewise.
14041         * modules/unictype/category-or-tests: Likewise.
14042         * modules/unictype/category-test-withtable-tests: Likewise.
14043         * modules/unictype/combining-class-tests: Likewise.
14044         * modules/unictype/ctype-alnum-tests: Likewise.
14045         * modules/unictype/ctype-alpha-tests: Likewise.
14046         * modules/unictype/ctype-blank-tests: Likewise.
14047         * modules/unictype/ctype-cntrl-tests: Likewise.
14048         * modules/unictype/ctype-digit-tests: Likewise.
14049         * modules/unictype/ctype-graph-tests: Likewise.
14050         * modules/unictype/ctype-lower-tests: Likewise.
14051         * modules/unictype/ctype-print-tests: Likewise.
14052         * modules/unictype/ctype-punct-tests: Likewise.
14053         * modules/unictype/ctype-space-tests: Likewise.
14054         * modules/unictype/ctype-upper-tests: Likewise.
14055         * modules/unictype/ctype-xdigit-tests: Likewise.
14056         * modules/unictype/decimal-digit-tests: Likewise.
14057         * modules/unictype/digit-tests: Likewise.
14058         * modules/unictype/mirror-tests: Likewise.
14059         * modules/unictype/numeric-tests: Likewise.
14060         * modules/unictype/property-alphabetic-tests: Likewise.
14061         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
14062         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
14063         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
14064         * modules/unictype/property-bidi-block-separator-tests: Likewise.
14065         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
14066         * modules/unictype/property-bidi-common-separator-tests: Likewise.
14067         * modules/unictype/property-bidi-control-tests: Likewise.
14068         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
14069         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
14070         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
14071         * modules/unictype/property-bidi-european-digit-tests: Likewise.
14072         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
14073         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
14074         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
14075         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
14076         * modules/unictype/property-bidi-pdf-tests: Likewise.
14077         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
14078         * modules/unictype/property-bidi-whitespace-tests: Likewise.
14079         * modules/unictype/property-byname-tests: Likewise.
14080         * modules/unictype/property-combining-tests: Likewise.
14081         * modules/unictype/property-composite-tests: Likewise.
14082         * modules/unictype/property-currency-symbol-tests: Likewise.
14083         * modules/unictype/property-dash-tests: Likewise.
14084         * modules/unictype/property-decimal-digit-tests: Likewise.
14085         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
14086         * modules/unictype/property-deprecated-tests: Likewise.
14087         * modules/unictype/property-diacritic-tests: Likewise.
14088         * modules/unictype/property-extender-tests: Likewise.
14089         * modules/unictype/property-format-control-tests: Likewise.
14090         * modules/unictype/property-grapheme-base-tests: Likewise.
14091         * modules/unictype/property-grapheme-extend-tests: Likewise.
14092         * modules/unictype/property-grapheme-link-tests: Likewise.
14093         * modules/unictype/property-hex-digit-tests: Likewise.
14094         * modules/unictype/property-hyphen-tests: Likewise.
14095         * modules/unictype/property-id-continue-tests: Likewise.
14096         * modules/unictype/property-id-start-tests: Likewise.
14097         * modules/unictype/property-ideographic-tests: Likewise.
14098         * modules/unictype/property-ids-binary-operator-tests: Likewise.
14099         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
14100         * modules/unictype/property-ignorable-control-tests: Likewise.
14101         * modules/unictype/property-iso-control-tests: Likewise.
14102         * modules/unictype/property-join-control-tests: Likewise.
14103         * modules/unictype/property-left-of-pair-tests: Likewise.
14104         * modules/unictype/property-line-separator-tests: Likewise.
14105         * modules/unictype/property-logical-order-exception-tests: Likewise.
14106         * modules/unictype/property-lowercase-tests: Likewise.
14107         * modules/unictype/property-math-tests: Likewise.
14108         * modules/unictype/property-non-break-tests: Likewise.
14109         * modules/unictype/property-not-a-character-tests: Likewise.
14110         * modules/unictype/property-numeric-tests: Likewise.
14111         * modules/unictype/property-other-alphabetic-tests: Likewise.
14112         * modules/unictype/property-other-default-ignorable-code-point-tests:
14113         Likewise.
14114         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
14115         * modules/unictype/property-other-id-continue-tests: Likewise.
14116         * modules/unictype/property-other-id-start-tests: Likewise.
14117         * modules/unictype/property-other-lowercase-tests: Likewise.
14118         * modules/unictype/property-other-math-tests: Likewise.
14119         * modules/unictype/property-other-uppercase-tests: Likewise.
14120         * modules/unictype/property-paired-punctuation-tests: Likewise.
14121         * modules/unictype/property-paragraph-separator-tests: Likewise.
14122         * modules/unictype/property-pattern-syntax-tests: Likewise.
14123         * modules/unictype/property-pattern-white-space-tests: Likewise.
14124         * modules/unictype/property-private-use-tests: Likewise.
14125         * modules/unictype/property-punctuation-tests: Likewise.
14126         * modules/unictype/property-quotation-mark-tests: Likewise.
14127         * modules/unictype/property-radical-tests: Likewise.
14128         * modules/unictype/property-sentence-terminal-tests: Likewise.
14129         * modules/unictype/property-soft-dotted-tests: Likewise.
14130         * modules/unictype/property-space-tests: Likewise.
14131         * modules/unictype/property-terminal-punctuation-tests: Likewise.
14132         * modules/unictype/property-test-tests: Likewise.
14133         * modules/unictype/property-titlecase-tests: Likewise.
14134         * modules/unictype/property-unassigned-code-value-tests: Likewise.
14135         * modules/unictype/property-unified-ideograph-tests: Likewise.
14136         * modules/unictype/property-uppercase-tests: Likewise.
14137         * modules/unictype/property-variation-selector-tests: Likewise.
14138         * modules/unictype/property-white-space-tests: Likewise.
14139         * modules/unictype/property-xid-continue-tests: Likewise.
14140         * modules/unictype/property-xid-start-tests: Likewise.
14141         * modules/unictype/property-zero-width-tests: Likewise.
14142         * modules/unictype/scripts-tests: Likewise.
14143         * modules/unictype/syntax-c-ident-tests: Likewise.
14144         * modules/unictype/syntax-c-whitespace-tests: Likewise.
14145         * modules/unictype/syntax-java-ident-tests: Likewise.
14146         * modules/unictype/syntax-java-whitespace-tests: Likewise.
14147         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
14148         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
14149         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
14150         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
14151         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
14152         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
14153         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
14154         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
14155         * modules/uniname/uniname-tests: Likewise.
14156         * modules/uninorm/canonical-decomposition-tests: Likewise.
14157         * modules/uninorm/compat-decomposition-tests: Likewise.
14158         * modules/uninorm/composition-tests: Likewise.
14159         * modules/uninorm/decomposing-form-tests: Likewise.
14160         * modules/uninorm/decomposition-tests: Likewise.
14161         * modules/uninorm/filter-tests: Likewise.
14162         * modules/uninorm/nfc-tests: Likewise.
14163         * modules/uninorm/nfd-tests: Likewise.
14164         * modules/uninorm/nfkc-tests: Likewise.
14165         * modules/uninorm/nfkd-tests: Likewise.
14166         * modules/uninorm/u8-normcmp-tests: Likewise.
14167         * modules/uninorm/u8-normcoll-tests: Likewise.
14168         * modules/uninorm/u16-normcmp-tests: Likewise.
14169         * modules/uninorm/u16-normcoll-tests: Likewise.
14170         * modules/uninorm/u32-normcmp-tests: Likewise.
14171         * modules/uninorm/u32-normcoll-tests: Likewise.
14172         * modules/unistdio/u8-asnprintf-tests: Likewise.
14173         * modules/unistdio/u8-vasnprintf-tests: Likewise.
14174         * modules/unistdio/u8-vasprintf-tests: Likewise.
14175         * modules/unistdio/u8-vsnprintf-tests: Likewise.
14176         * modules/unistdio/u8-vsprintf-tests: Likewise.
14177         * modules/unistdio/u16-asnprintf-tests: Likewise.
14178         * modules/unistdio/u16-vasnprintf-tests: Likewise.
14179         * modules/unistdio/u16-vasprintf-tests: Likewise.
14180         * modules/unistdio/u16-vsnprintf-tests: Likewise.
14181         * modules/unistdio/u16-vsprintf-tests: Likewise.
14182         * modules/unistdio/u32-asnprintf-tests: Likewise.
14183         * modules/unistdio/u32-vasnprintf-tests: Likewise.
14184         * modules/unistdio/u32-vasprintf-tests: Likewise.
14185         * modules/unistdio/u32-vsnprintf-tests: Likewise.
14186         * modules/unistdio/u32-vsprintf-tests: Likewise.
14187         * modules/unistdio/ulc-asnprintf-tests: Likewise.
14188         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
14189         * modules/unistdio/ulc-vasprintf-tests: Likewise.
14190         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
14191         * modules/unistdio/ulc-vsprintf-tests: Likewise.
14192         * modules/unistr/u8-check-tests: Likewise.
14193         * modules/unistr/u8-chr-tests: Likewise.
14194         * modules/unistr/u8-cmp-tests: Likewise.
14195         * modules/unistr/u8-cmp2-tests: Likewise.
14196         * modules/unistr/u8-cpy-alloc-tests: Likewise.
14197         * modules/unistr/u8-cpy-tests: Likewise.
14198         * modules/unistr/u8-mblen-tests: Likewise.
14199         * modules/unistr/u8-mbsnlen-tests: Likewise.
14200         * modules/unistr/u8-mbtouc-tests: Likewise.
14201         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
14202         * modules/unistr/u8-mbtoucr-tests: Likewise.
14203         * modules/unistr/u8-move-tests: Likewise.
14204         * modules/unistr/u8-next-tests: Likewise.
14205         * modules/unistr/u8-prev-tests: Likewise.
14206         * modules/unistr/u8-set-tests: Likewise.
14207         * modules/unistr/u8-stpcpy-tests: Likewise.
14208         * modules/unistr/u8-stpncpy-tests: Likewise.
14209         * modules/unistr/u8-strcat-tests: Likewise.
14210         * modules/unistr/u8-strcmp-tests: Likewise.
14211         * modules/unistr/u8-strcoll-tests: Likewise.
14212         * modules/unistr/u8-strcpy-tests: Likewise.
14213         * modules/unistr/u8-strdup-tests: Likewise.
14214         * modules/unistr/u8-strlen-tests: Likewise.
14215         * modules/unistr/u8-strmblen-tests: Likewise.
14216         * modules/unistr/u8-strmbtouc-tests: Likewise.
14217         * modules/unistr/u8-strncat-tests: Likewise.
14218         * modules/unistr/u8-strncmp-tests: Likewise.
14219         * modules/unistr/u8-strncpy-tests: Likewise.
14220         * modules/unistr/u8-strnlen-tests: Likewise.
14221         * modules/unistr/u8-to-u16-tests: Likewise.
14222         * modules/unistr/u8-to-u32-tests: Likewise.
14223         * modules/unistr/u8-uctomb-tests: Likewise.
14224         * modules/unistr/u16-check-tests: Likewise.
14225         * modules/unistr/u16-chr-tests: Likewise.
14226         * modules/unistr/u16-cmp-tests: Likewise.
14227         * modules/unistr/u16-cmp2-tests: Likewise.
14228         * modules/unistr/u16-cpy-alloc-tests: Likewise.
14229         * modules/unistr/u16-cpy-tests: Likewise.
14230         * modules/unistr/u16-mblen-tests: Likewise.
14231         * modules/unistr/u16-mbsnlen-tests: Likewise.
14232         * modules/unistr/u16-mbtouc-tests: Likewise.
14233         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
14234         * modules/unistr/u16-mbtoucr-tests: Likewise.
14235         * modules/unistr/u16-move-tests: Likewise.
14236         * modules/unistr/u16-next-tests: Likewise.
14237         * modules/unistr/u16-prev-tests: Likewise.
14238         * modules/unistr/u16-set-tests: Likewise.
14239         * modules/unistr/u16-stpcpy-tests: Likewise.
14240         * modules/unistr/u16-stpncpy-tests: Likewise.
14241         * modules/unistr/u16-strcat-tests: Likewise.
14242         * modules/unistr/u16-strcmp-tests: Likewise.
14243         * modules/unistr/u16-strcoll-tests: Likewise.
14244         * modules/unistr/u16-strcpy-tests: Likewise.
14245         * modules/unistr/u16-strdup-tests: Likewise.
14246         * modules/unistr/u16-strlen-tests: Likewise.
14247         * modules/unistr/u16-strmblen-tests: Likewise.
14248         * modules/unistr/u16-strmbtouc-tests: Likewise.
14249         * modules/unistr/u16-strncat-tests: Likewise.
14250         * modules/unistr/u16-strncmp-tests: Likewise.
14251         * modules/unistr/u16-strncpy-tests: Likewise.
14252         * modules/unistr/u16-strnlen-tests: Likewise.
14253         * modules/unistr/u16-to-u32-tests: Likewise.
14254         * modules/unistr/u16-to-u8-tests: Likewise.
14255         * modules/unistr/u16-uctomb-tests: Likewise.
14256         * modules/unistr/u32-check-tests: Likewise.
14257         * modules/unistr/u32-chr-tests: Likewise.
14258         * modules/unistr/u32-cmp-tests: Likewise.
14259         * modules/unistr/u32-cmp2-tests: Likewise.
14260         * modules/unistr/u32-cpy-alloc-tests: Likewise.
14261         * modules/unistr/u32-cpy-tests: Likewise.
14262         * modules/unistr/u32-mblen-tests: Likewise.
14263         * modules/unistr/u32-mbsnlen-tests: Likewise.
14264         * modules/unistr/u32-mbtouc-tests: Likewise.
14265         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
14266         * modules/unistr/u32-mbtoucr-tests: Likewise.
14267         * modules/unistr/u32-move-tests: Likewise.
14268         * modules/unistr/u32-next-tests: Likewise.
14269         * modules/unistr/u32-prev-tests: Likewise.
14270         * modules/unistr/u32-set-tests: Likewise.
14271         * modules/unistr/u32-stpcpy-tests: Likewise.
14272         * modules/unistr/u32-stpncpy-tests: Likewise.
14273         * modules/unistr/u32-strcat-tests: Likewise.
14274         * modules/unistr/u32-strcmp-tests: Likewise.
14275         * modules/unistr/u32-strcoll-tests: Likewise.
14276         * modules/unistr/u32-strcpy-tests: Likewise.
14277         * modules/unistr/u32-strdup-tests: Likewise.
14278         * modules/unistr/u32-strlen-tests: Likewise.
14279         * modules/unistr/u32-strmblen-tests: Likewise.
14280         * modules/unistr/u32-strmbtouc-tests: Likewise.
14281         * modules/unistr/u32-strncat-tests: Likewise.
14282         * modules/unistr/u32-strncmp-tests: Likewise.
14283         * modules/unistr/u32-strncpy-tests: Likewise.
14284         * modules/unistr/u32-strnlen-tests: Likewise.
14285         * modules/unistr/u32-to-u16-tests: Likewise.
14286         * modules/unistr/u32-to-u8-tests: Likewise.
14287         * modules/unistr/u32-uctomb-tests: Likewise.
14288         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
14289         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
14290         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
14291         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
14292         * modules/uniwidth/u8-strwidth-tests: Likewise.
14293         * modules/uniwidth/u8-width-tests: Likewise.
14294         * modules/uniwidth/u16-strwidth-tests: Likewise.
14295         * modules/uniwidth/u16-width-tests: Likewise.
14296         * modules/uniwidth/u32-strwidth-tests: Likewise.
14297         * modules/uniwidth/u32-width-tests: Likewise.
14298         * modules/uniwidth/width-tests: Likewise.
14299
14300 2010-05-18  Richard Jones  <rjones@redhat.com>
14301
14302         doc: users.txt: list hivex
14303         * users.txt: Add hivex.
14304
14305 2010-05-18  Richard Jones  <rjones@redhat.com>
14306
14307         doc: users.txt: list febootstrap
14308         * users.txt: Add febootstrap.
14309
14310 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
14311
14312         bootstrap: fix an error when gnulib is not used as a git submodule
14313         * build-aux/bootstrap (gnulib_path): If its length is zero then
14314         assign "gnulib" to it.
14315         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
14316
14317 2010-05-16  Bruno Haible  <bruno@clisp.org>
14318
14319         Avoid autoconf warnings about AM_ICONV.
14320         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
14321         2.64.
14322
14323 2010-05-16  Bruno Haible  <bruno@clisp.org>
14324
14325         absolute-header: Make the macro usable in more situations.
14326         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
14327         from gl_ABSOLUTE_HEADER.
14328         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
14329
14330 2010-05-16  James Youngman  <jay@gnu.org>
14331
14332         doc: update users.txt
14333         * users.txt: Add CSSC.
14334
14335 2010-05-16  Jim Meyering  <meyering@redhat.com>
14336
14337         init.sh: fix an error in the previous change; add more comments
14338         * tests/init.sh: Compare exit code in loop against 9, not 2.
14339         Patch by Bruno Haible.
14340         Make the two tests more similar by adding an empty "then" clause.
14341         Add comments.
14342
14343         init.sh: avoid unnecessary shell re-exec
14344         * tests/init.sh: Improve the re-exec-required check to first test the
14345         current shell.  If it passes the test, do not search for a shell that
14346         does pass, and do not re-exec.  This test is particularly contorted to
14347         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
14348         of $(...) evokes a syntax error and causes immediate shell exit with
14349         status 2.  Bruno Haible reported that the re-exec made it impossible
14350         to single-step through any init.sh-using script.
14351
14352 2010-05-16  Bruno Haible  <bruno@clisp.org>
14353
14354         Fix collision between gnulib's and libintl's printf replacements.
14355         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
14356         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
14357         (printf): When using GNU C, map the __printf__ function to rpl_printf
14358         via __asm__. When not using GNU C, define rpl_printf instead of
14359         __printf__.
14360         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
14361         commit.
14362         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
14363         commit.
14364         * m4/asm-underscore.m4: New file.
14365         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
14366         * modules/stdio (Files): Add m4/asm-underscore.m4.
14367         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
14368         Reported by Ben Pfaff.
14369
14370 2010-05-16  Bruno Haible  <bruno@clisp.org>
14371
14372         verify: Avoid skipping the test on openSUSE 11.0.
14373         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
14374
14375 2010-05-13  Bruno Haible  <bruno@clisp.org>
14376
14377         Avoid useless warnings from G++.
14378         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
14379         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
14380         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
14381
14382 2010-05-11  Jim Meyering  <meyering@redhat.com>
14383
14384         maint.mk: tweak preceding change
14385         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
14386         regexps tighter by anchoring at EOL, and make the new group "shy"
14387         for slightly decreased overhead.
14388
14389 2010-05-11  Eric Blake  <eblake@redhat.com>
14390
14391         maint.mk: gnulib doesn't guarantee NSIG
14392         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
14393
14394 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14395
14396         test-pwrite.c: Remove unused variable declaration.
14397         * tests/test-pwrite.c (main): Remove read_buf declaration.
14398
14399         Remove useless test-pwrite.sh file.
14400         * tests/test-pwrite.sh: Delete file.
14401         * modules/pwrite-tests: Remove references.
14402         Reported by Bruno Haible.
14403
14404 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
14405
14406         init.sh: fix a typo
14407         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
14408
14409 2010-05-10  Jim Meyering  <meyering@redhat.com>
14410
14411         maint.mk: avoid using a temporary file in the always-defined-macros check
14412         * top/maint.mk (.re-defmac): Remove rule.
14413         (gl_trap_): Remove definition.
14414         (sc_prohibit_always-defined_macros): Rewrite not to create and
14415         depend on a temporary file.  Instead, depend on GNU grep's ability
14416         to read a list of regular expressions from stdin when given "-f -".
14417
14418 2010-05-09  Bruno Haible  <bruno@clisp.org>
14419
14420         Update to GNU gettext 0.18, part 1.
14421         * m4/gettext.m4: Update to GNU gettext 0.18.
14422         * m4/intl.m4: Likewise.
14423         * m4/po.m4: Likewise.
14424         * modules/gettext (Files): Add m4/fcntl-o.m4.
14425         (configure.ac): Require gettext infrastructure from version 0.18.
14426
14427 2010-05-09  Jim Meyering  <meyering@redhat.com>
14428
14429         init.sh: enable MALLOC_PERTURB_
14430         * tests/init.sh: Enable glibc's malloc-perturbing option.
14431
14432         maint.mk: improve sc_cross_check_PATH_usage_in_tests
14433         With my recent change in init.sh from the two-line form:
14434             -#   : ${srcdir=.}
14435             -#   . "$srcdir/init.sh"; path_prepend_ .
14436             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
14437         I noticed that using the one-line form would cause this test
14438         to fail with a false-positive, or to stop working altogether,
14439         depending on whether help-version changed or all the tests did.
14440         * top/maint.mk (_hv_regex): Remove this definition.
14441         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
14442         (_hv_regex_strong): Use a stronger regex to check for conformance.
14443         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
14444         Give a separate diagnostic for lack of conforming use.
14445
14446         maint.mk: prohibit definition of symbols defined by gnulib
14447         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
14448         definition of symbols defined by gnulib.
14449
14450 2010-05-09  Bruno Haible  <bruno@clisp.org>
14451
14452         acl: Avoid test failure on Cygwin-hosted mingw.
14453         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
14454
14455 2010-05-09  Bruno Haible  <bruno@clisp.org>
14456
14457         error: Use system's fcntl function.
14458         * lib/error.c (fcntl): Undefine.
14459
14460 2010-05-09  Jim Meyering  <meyering@redhat.com>
14461
14462         verify: adjust formatting to be more consistent
14463         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
14464         argument-list '('s, and after one comma.
14465
14466 2010-05-09  Bruno Haible  <bruno@clisp.org>
14467
14468         error: More reliable output on mingw.
14469         * lib/error.c: Include <windows.h>.
14470         (is_open): New function.
14471         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
14472         defined.
14473
14474 2010-05-09  Bruno Haible  <bruno@clisp.org>
14475
14476         vasnprintf: Fix syntax errors in libintl build on mingw.
14477         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
14478         pad_ourselves and prec_ourselves after use.
14479
14480 2010-05-08  Bruno Haible  <bruno@clisp.org>
14481
14482         * lib/config.charset: Update comments for Cygwin 1.7.
14483         * lib/localcharset.c: Likewise.
14484
14485 2010-05-07  Jim Meyering  <meyering@redhat.com>
14486
14487         init.sh: improve comments
14488         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
14489         . "${srcdir=.}/init.sh"; path_prepend_ .
14490         Add a note about path_prepend_ and the alternative of using
14491         TESTS_ENVIRONMENT.
14492
14493 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
14494
14495         exclude: Unescape hashed patterns in wildcard mode.
14496         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
14497         to the hash list.
14498         * tests/test-exclude8.sh: New test case.
14499         * modules/exclude-tests: Add new test.
14500
14501 2010-05-05  Eric Blake  <eblake@redhat.com>
14502
14503         verify: automate tests
14504         * modules/verify-tests: New module.
14505         * tests/test-verify.sh: New file.
14506         * tests/test-verify.c: Guard each negative test with a unique id.
14507         Also avoid warning about unused left hand of comma expressions.
14508
14509 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
14510
14511         Further improvements to verify.h, suggested by Eric Blake.
14512         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
14513         the GL_* versions, to avoid collision with OpenGL.
14514         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
14515         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
14516         than testing merely whether it's defined.
14517
14518         Modify verify.h to pacify gcc -Wredundant_decls.
14519         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
14520         These use the prefix "GL_" since they're likely to be useful elsewhere.
14521         We may need to break them out into a different .h file.
14522         (__COUNTER__): Define to 0 if the compiler doesn't support it.
14523         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
14524         of verify_function__.
14525
14526 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14527
14528         Tests for module pwrite.
14529         * modules/pwrite-tests: New file.
14530         * tests/test-pwrite.sh: New file.
14531         * tests/test-pwrite.c: New file.
14532
14533         New module pwrite.
14534         * lib/unistd.in.h (pwrite): New declaration.
14535         * lib/pwrite.c: New file, from glibc with modifications.
14536         * m4/pwrite.m4: New file.
14537         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
14538         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
14539         REPLACE_PWRITE.
14540         * modules/pwrite: New file.
14541         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
14542         REPLACE_PWRITE.
14543         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
14544         * doc/posix-functions/pwrite.texi: Mention the new module.
14545
14546 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
14547
14548         pread: Update documentation.
14549         * doc/posix-functions/pread.texi: Mention the 'pread' module.
14550
14551 2010-05-04  Eric Blake  <eblake@redhat.com>
14552
14553         docs: update cygwin progress
14554         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
14555         this bug.
14556         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
14557         Added in cygwin 1.7.2.
14558         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
14559         Likewise.
14560         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
14561         Likewise.
14562         * doc/glibc-functions/dup3.texi (dup3): Likewise.
14563         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14564         * doc/glibc-functions/accept4.texi (accept4): Likewise.
14565         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
14566         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
14567         Mention nproc module.
14568         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
14569         bug in cygwin 1.7.5 addition.
14570         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
14571         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
14572         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
14573         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
14574         1.7.5.
14575         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
14576         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
14577         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
14578         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
14579         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
14580         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
14581         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
14582         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
14583         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
14584         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
14585         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
14586         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
14587         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
14588         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
14589         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
14590         Likewise.
14591         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
14592         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
14593         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
14594         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
14595         Likewise.
14596         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
14597         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
14598         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
14599         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
14600         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
14601         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
14602         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
14603         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
14604         Likewise.
14605         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
14606         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
14607         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
14608         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
14609         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
14610         Likewise.
14611         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
14612         Likewise.
14613         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
14614         Likewise.
14615         * doc/glibc-functions/xdrrec_endofrecord.texi
14616         (xdrrec_endofrecord): Likewise.
14617         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
14618         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
14619         Likewise.
14620         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
14621         Likewise.
14622
14623 2010-05-04  Jim Meyering  <meyering@redhat.com>
14624
14625         gendocs.sh: make its "-s FILE" option more useful
14626         * build-aux/gendocs.sh: When honoring the -s FILE option, update
14627         $PACKAGE to reflect the probably-different basename of "FILE".
14628
14629 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
14630
14631         bootstrap: don't ignore download_po_files failure
14632         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
14633         failure.
14634
14635 2010-05-03  Jim Meyering  <meyering@redhat.com>
14636
14637         maint.mk: allow to pass options to gendocs.sh
14638         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
14639         (gendocs_options_): New overridable variable.
14640
14641         gnu-web-doc-update: don't ignore configure or build failure
14642         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
14643
14644         announce-gen: backslash-escape '@'s in --help output
14645         * build-aux/announce-gen: Fix syntax errors.
14646
14647         maint.mk, announce-gen: allow project-specific announcement mail headers
14648         * top/maint.mk (translation_project_): Define default.
14649         (announcement_Cc_, announcement_mail_headers_): Likewise.
14650         (announcement): Invoke announce-gen with new --mail-headers option.
14651         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
14652
14653         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
14654         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
14655         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
14656         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
14657         line in the "err2" output file when running "make check" in verbose
14658         mode (i.e., with set -x enabled).
14659
14660 2010-05-03  Bruno Haible  <bruno@clisp.org>
14661
14662         wctob: Fix for weird platforms.
14663         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
14664         argument value.
14665
14666 2010-05-03  Jim Meyering  <meyering@redhat.com>
14667
14668         maint.mk: prohibit unwarranted use of <strings.h>
14669         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
14670         strings.h in a file that does not also use strcasecmp, strncasecmp,
14671         ffs or ffsll.
14672
14673         maint.mk: remove obsolete comments
14674         * top/maint.mk: Remove stale, commented-out rules.
14675
14676 2010-05-02  Bruno Haible  <bruno@clisp.org>
14677
14678         wcwidth: Declare also when it's aliased.
14679         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
14680         macro.
14681
14682 2010-05-02  Bruno Haible  <bruno@clisp.org>
14683
14684         Fix regression from 2010-04-25.
14685         * gnulib-tool (func_modules_transitive_closure): Check the status of
14686         all modules, not only of the tests that are of the form foo-tests where
14687         foo is a module.
14688
14689 2010-05-02  Bruno Haible  <bruno@clisp.org>
14690
14691         wctob: Work around nasty Cygwin 1.7.2 bug.
14692         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
14693         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
14694
14695 2010-05-01  Bruno Haible  <bruno@clisp.org>
14696
14697         fpurge: Sharper test.
14698         * tests/test-fpurge.c (main): Add one more ftell check.
14699         * modules/fpurge-tests (Depends-on): Add ftell.
14700         Suggested by Eric Blake.
14701
14702 2010-05-01  Bruno Haible  <bruno@clisp.org>
14703
14704         ftello: Another test.
14705         * tests/test-ftello3.c: New file.
14706         * modules/ftello-tests (Files): Add it.
14707         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14708         MOSTLYCLEANFILES.
14709
14710         ftell: Another test.
14711         * tests/test-ftell3.c: New file.
14712         * modules/ftell-tests (Files): Add it.
14713         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
14714         MOSTLYCLEANFILES.
14715
14716 2010-05-01  Bruno Haible  <bruno@clisp.org>
14717
14718         ftell, ftello: Work around Solaris bug.
14719         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
14720         * lib/ftello.c: Include stdio-impl.h.
14721         (ftello): On Solaris, when _IOWRT is set, compute the result without
14722         looking at _IOREAD.
14723         * modules/ftello (Files): Add lib/stdio-impl.h.
14724         * doc/posix-functions/ftell.texi: Mention Solaris bug.
14725         * doc/posix-functions/ftello.texi: Likewise.
14726         Reported by Eric Blake.
14727
14728 2010-05-01  Bruno Haible  <bruno@clisp.org>
14729
14730         freading: Adapt to special meaning of _IOREAD flag on Solaris.
14731         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
14732         the _IOWRT flag is also set.
14733
14734 2010-05-01  Bruno Haible  <bruno@clisp.org>
14735
14736         Fix doc about a HP-UX stdio bug.
14737         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
14738         * doc/posix-functions/ftello.texi: Likewise.
14739
14740 2010-05-01  Bruno Haible  <bruno@clisp.org>
14741
14742         lseek test: Fix failure on Solaris.
14743         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
14744         output.
14745
14746 2010-04-30  Jim Meyering  <meyering@redhat.com>
14747
14748         bootstrap: don't ignore failure to generate po*/Makevars
14749         * build-aux/bootstrap (with_gettext): Don't ignore failure
14750         to create po/Makevars or runtime-po/Makevars.
14751
14752 2010-04-29  Eric Blake  <eblake@redhat.com>
14753
14754         headers: relax license to LGPLv2+
14755         * modules/fcntl-h (License): Relax license.
14756         * modules/getopt-posix (License): Likewise.
14757         * modules/locale (License): Likewise.
14758         * modules/math (License): Likewise.
14759         * modules/pty (License): Likewise.
14760         * modules/sched (License): Likewise.
14761         * modules/search (License): Likewise.
14762         * modules/spawn (License): Likewise.
14763         * modules/stdarg (License): Likewise.
14764         * modules/sysexits (License): Likewise.
14765
14766 2010-04-29  Jim Meyering  <meyering@redhat.com>
14767
14768         inttypes: relax license to LGPLv2+
14769         * modules/inttypes (License): Relax license.
14770
14771 2010-04-29  Simon Josefsson  <simon@josefsson.org>
14772
14773         * top/maint.mk (indent): Run twice to produce idempotent results.
14774
14775 2010-04-28  Bruno Haible  <bruno@clisp.org>
14776
14777         getdate: Generate getdate.c in the source directory.
14778         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
14779         MOSTLYCLEANFILES.
14780         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
14781
14782 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
14783
14784         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
14785         is not declared as a const *; avoid warnings in that case.
14786
14787 2010-04-28  Eric Blake  <eblake@redhat.com>
14788
14789         canonicalize-lgpl: avoid compiler warning
14790         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
14791         declaration' / 'extraneous semicolon' warning with some compilers.
14792         Reported by Andreas Gruenbacher.
14793
14794 2010-04-28  Jim Meyering  <meyering@redhat.com>
14795
14796         init.sh: ensure a more reliable exit status when exiting via trap
14797         * tests/init.sh (setup_): Don't rely on $? in signal handler.
14798         Inspired by patches from Dmitry V. Levin.
14799         Also trap on signal 3 (SIGQUIT).
14800
14801 2010-04-27  Bruno Haible  <bruno@clisp.org>
14802
14803         Update doc about utimes().
14804         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
14805         'utimens' module.
14806         Reported by Andreas Gruenbacher <agruen@suse.de>.
14807
14808 2010-04-27  Eric Blake  <eblake@redhat.com>
14809
14810         full-read, full-write: relax license
14811         * modules/full-read (License): Drop to LGPLv2+.
14812         * modules/full-write (License): Likewise.
14813         * modules/safe-read (License): Likewise.
14814         * modules/safe-write (License): Likewise.
14815
14816         pthread: mention library for linking
14817         * modules/pthread (Link): Mention $(LIB_PTHREAD).
14818
14819 2010-04-27  Jim Meyering  <meyering@redhat.com>
14820
14821         maint.mk: fix a bug introduced in last change
14822         * top/maint.mk (gl_assured_headers_): Now that all names are on
14823         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
14824         is not anchored to end of word, it should be adequate.
14825
14826         maint.mk: avoid side-effect in latest syntax-check
14827         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
14828         to run commands via $(shell...), and hence to incur cost only when
14829         the new rule is actually run.
14830
14831         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
14832         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
14833         and use that to create a regexp used to detect all #if HAVE_..._H uses.
14834         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
14835         (gl_assured_headers_, az_, AZ_): Define.
14836         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
14837
14838 2010-04-26  Jim Meyering  <jim@meyering.net>
14839             Bruno Haible  <bruno@clisp.org>
14840
14841         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
14842         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
14843         Prompted by an exchange with Gilles Espinasse.
14844
14845 2010-04-26  Jim Meyering  <meyering@redhat.com>
14846
14847         git-version-gen: aesthetic tweak
14848         * build-aux/git-version-gen: Use "$nl" rather than a literal,
14849         so that the command remains on a single line.
14850
14851 2010-04-26  Eric Blake  <eblake@redhat.com>
14852
14853         git-version-gen: allow use on EBCDIC hosts
14854         * build-aux/git-version-gen (dirty): Use literal rather than tying
14855         ourselves to ascii.
14856         Reported by Steve Goetze.
14857
14858 2010-04-25  Bruno Haible  <bruno@clisp.org>
14859
14860         netdb: Add support for GNULIB_POSIXCHECK.
14861         * lib/netdb.in.h: Include warn-on-use.h.
14862         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
14863         functions are used when GNULIB_POSIXCHECK is defined and the
14864         getaddrinfo module is not in use.
14865         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
14866         freeaddrinfo, gai_strerror, getnameinfo are declared.
14867         * modules/netdb (Depends-on): Add warn-on-use.
14868         (Makefile.am): Include warn-on-use.h in netdb.h.
14869
14870 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
14871
14872         build: avoid "make check" failure without .git/ directory
14873         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
14874         there is no .git/ directory.
14875
14876 2010-04-25  Bruno Haible  <bruno@clisp.org>
14877
14878         ptsname: Fix misuse of ttyname_r.
14879         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
14880         of errno.
14881
14882 2010-04-25  Bruno Haible  <bruno@clisp.org>
14883
14884         ttyname_r: Make it work on Solaris 10.
14885         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
14886         if the system function has the POSIX declaration. Test whether the
14887         function fails if the buffer is less than 128 bytes large.
14888         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
14889         system's ttyname_r function. Provide a reasonably large buffer.
14890         * modules/ttyname_r (Depends-on): Add extensions.
14891         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
14892
14893 2010-04-25  Bruno Haible  <bruno@clisp.org>
14894
14895         Use the 'extensions' module for some more functions on Solaris.
14896         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
14897         module.
14898         * doc/posix-functions/ctime_r.texi: Likewise.
14899         * doc/posix-functions/getgrgid_r.texi: Likewise.
14900         * doc/posix-functions/getgrnam_r.texi: Likewise.
14901         * doc/posix-functions/getpwnam_r.texi: Likewise.
14902         * doc/posix-functions/getpwuid_r.texi: Likewise.
14903         * doc/posix-functions/readdir_r.texi: Likewise.
14904         * doc/posix-functions/sigwait.texi: Likewise.
14905         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
14906         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
14907
14908 2010-04-25  Bruno Haible  <bruno@clisp.org>
14909
14910         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
14911         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
14912         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
14913         * lib/ttyname_r.c: Include <limits.h>.
14914         (ttyname_r): Define using the system's ttyname_r function, if it exists
14915         and not on Solaris.
14916         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
14917         set.
14918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
14919         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
14920         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
14921         Reported by Simon Josefsson.
14922
14923 2010-04-25  Bruno Haible  <bruno@clisp.org>
14924
14925         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
14926         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
14927         * doc/posix-functions/ctime_r.texi: Likewise.
14928         * doc/posix-functions/getgrgid_r.texi: Likewise.
14929         * doc/posix-functions/getgrnam_r.texi: Likewise.
14930         * doc/posix-functions/getlogin_r.texi: Likewise.
14931         * doc/posix-functions/getpwnam_r.texi: Likewise.
14932         * doc/posix-functions/getpwuid_r.texi: Likewise.
14933         * doc/posix-functions/readdir_r.texi: Likewise.
14934         * doc/posix-functions/sigwait.texi: Likewise.
14935         * doc/posix-functions/ttyname_r.texi: Likewise.
14936         Reported by Simon Josefsson.
14937
14938 2010-04-25  Bruno Haible  <bruno@clisp.org>
14939
14940         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
14941         * gnulib-tool (func_usage): Document that --with-*-tests options apply
14942         also to --create-testdir.
14943         (func_acceptable): Don't consider the status of *-tests modules here.
14944         (func_modules_transitive_closure): Consider it here, before including a
14945         test module.
14946         (func_import, func_create_testdir): Set inc_all_direct_tests,
14947         inc_all_indirect_tests.
14948         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
14949         --create-testdir and --create-megatestdir.
14950
14951 2010-04-25  Bruno Haible  <bruno@clisp.org>
14952
14953         gnulib-tool: Add --without-*-tests options.
14954         * gnulib-tool (func_usage): Document the --without-*-tests options.
14955         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
14956         excl_unportable_tests): New variables.
14957         Fail if they are specified with --import or --update.
14958         (func_acceptable): Respect the excl_*_tests variables.
14959         (func_import): Set the excl_*_tests variables to empty.
14960
14961 2010-04-25  Simon Josefsson  <simon@josefsson.org>
14962             Bruno Haible  <bruno@clisp.org>
14963
14964         Work around a MacOS X 10.4 bug with openpty.
14965         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
14966         * tests/test-openpty.c (main): Close the master side explicitly.
14967
14968 2010-04-25  Bruno Haible  <bruno@clisp.org>
14969
14970         strnlen: Fix a C++ test error on MacOS X and Solaris.
14971         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
14972         the function is not declared.
14973         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
14974         Simon Josefsson.
14975
14976 2010-04-24  Bruno Haible  <bruno@clisp.org>
14977
14978         Avoid a gcc warning.
14979         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
14980         of correct type for %08lx directive.
14981         Reported by Eric Blake.
14982
14983 2010-04-24  Bruno Haible  <bruno@clisp.org>
14984
14985         vasnprintf: Correct errno value in case of out-of-memory.
14986         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
14987         or sprintf. Use the errno value from SNPRINTF or sprintf.
14988         Reported by Ian Beckwith <ianb@erislabs.net>.
14989
14990 2010-04-24  Bruno Haible  <bruno@clisp.org>
14991
14992         ansi-c++-opt: Find correct compiler when cross-compiling.
14993         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
14994         AC_CHECK_PROGS.
14995         Reported by Simon Josefsson.
14996
14997 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
14998
14999         vc-list-files: Add support for subversion
15000         * build-aux/vc-list-files: Use "svn list" to generate the list of
15001         files controlled by subversion.
15002
15003 2010-04-23  Jim Meyering  <meyering@redhat.com>
15004
15005         vc-list-files tests: convert to use init.sh
15006         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
15007         path_prepend_.
15008         Use Exit, not exit.
15009         Use skip_ rather than open coding it.
15010         Remove trap set-up and compare definitions.
15011         * tests/test-vc-list-files-git.sh: Likewise.
15012         * modules/vc-list-files-tests (Files): Add tests/init.sh.
15013
15014 2010-04-22  Simon Josefsson  <simon@josefsson.org>
15015
15016         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
15017         backup files.
15018
15019 2010-04-21  Simon Josefsson  <simon@josefsson.org>
15020
15021         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
15022
15023 2010-04-20  Eric Blake  <eblake@redhat.com>
15024
15025         tests: be robust to ignored SIGPIPE
15026         * tests/test-select-in.sh: Consume all output.
15027         * tests/test-lseek.sh: Check correct exit status, while avoiding
15028         EPIPE.
15029
15030 2010-04-20  Simon Josefsson  <simon@josefsson.org>
15031             Bruno Haible  <bruno@clisp.org>
15032
15033         visibility: Don't use -fvisibility if it leads to a warning.
15034         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
15035         yes, don't pretend that visibility works if it leads to a warning.
15036         Reported by Mike Gran <spk121@yahoo.com>.
15037
15038 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
15039
15040         * build-aux/bootstrap: Use "git -h" for testing for supported options
15041         instead of "git --help".  The short-form option only shows a summary,
15042         and doesn't layout the full man page.  Grep for the full option name
15043         in the summary, too.
15044
15045 2010-04-19  Bruno Haible  <bruno@clisp.org>
15046
15047         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
15048         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
15049         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
15050         mention of RELOCATABLE_STRIP.
15051         Reported by Sylvain Beucler <beuc@beuc.net>.
15052
15053 2010-04-19  Bruno Haible  <bruno@clisp.org>
15054
15055         * lib/diffseq.h: Fix typo in comment.
15056         Reported by Eric Blake.
15057
15058 2010-04-19  Bruno Haible  <bruno@clisp.org>
15059
15060         ioctl: Move autoconf macro to a .m4 file.
15061         * m4/ioctl.m4: New file, extracted from modules/ioctl.
15062         * modules/ioctl (Files): Add it.
15063         (configure.ac): Simply invoke gl_FUNC_IOCTL.
15064         Reported by Ian Beckwith <ianb@erislabs.net>.
15065
15066 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
15067             Bruno Haible  <bruno@clisp.org>
15068
15069         diffseq: Accommodate use-case with abstract arrays.
15070         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
15071         is not defined.
15072         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
15073         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
15074
15075 2010-04-18  Bruno Haible  <bruno@clisp.org>
15076
15077         * doc/posix-headers/stdbool.texi: More precise wording.
15078
15079 2010-04-17  Jim Meyering  <meyering@redhat.com>
15080
15081         maint.mk: use gnu-style indentation in an embedded perl script
15082         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
15083         Rename variable: s/two/last_two_bytes/
15084
15085 2010-04-16  Eric Blake  <eblake@redhat.com>
15086
15087         test-stdbool: skip test that fails with Solaris CC
15088         * tests/test-stdbool.c (f): Skip test that causes compilation
15089         error under buggy C++ compiler.
15090         * lib/stdbool.in.h: Document the limitation.
15091         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
15092
15093         setenv: allow compilation with C++
15094         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
15095         register keyword.
15096
15097         stdint: allow test to pass with C++
15098         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
15099
15100         getopt: allow compilation with C++
15101         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
15102         struct.
15103         * lib/getopt.c (_getopt_internal_r): Use correct type.
15104         Reported by Dagobert Michelson, via Joel E. Denny.
15105
15106 2010-04-16  Bruno Haible  <bruno@clisp.org>
15107
15108         Override netdb.h always.
15109         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
15110         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
15111         Reported by Ludovic Courtès <ludo@gnu.org>.
15112
15113 2010-04-15  Bruno Haible  <bruno@clisp.org>
15114
15115         openpty: Fix mistake from 2010-03-21.
15116         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
15117         Reported by Simon Josefsson.
15118
15119 2010-04-15  Eric Blake  <eblake@redhat.com>
15120
15121         test-forkpty: fix expected signature
15122         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
15123         Reported by Simon Josefsson.
15124
15125 2010-04-15  Jim Meyering  <meyering@redhat.com>
15126
15127         maint.mk: texinfo_suffix_re_: correct the default regexp
15128         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
15129
15130         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
15131         make it configurable via texinfo_suffix_re_.
15132
15133 2010-04-14  Eric Blake  <eblake@redhat.com>
15134
15135         strtok_r: relax license to LGPLv2+
15136         * modules/strtok_r (License): Relax license.
15137         Reported by Matthias Bolte.
15138
15139 2010-04-14  Simon Josefsson  <simon@josefsson.org>
15140
15141         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
15142         version 1.4.4 by default instead of requiring the libgcrypt
15143         version used during build.  This makes it possible to use the
15144         application with older but still binary compatible libgcrypt
15145         versions.
15146
15147 2010-04-13  Eric Blake  <eblake@redhat.com>
15148
15149         getopt-gnu: match recent glibc fixes and posix ruling
15150         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
15151         '+' handling, when requesting extensions.
15152         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
15153         'W;' handling.
15154         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
15155         * doc/posix-functions/getopt.texi (getopt): Document this.
15156         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15157         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15158         Likewise.
15159
15160         getopt: merge bug fixes from glibc
15161         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
15162         diagnostics.  Honor '+:' correctly.  Reject ';'.
15163
15164         getopt-posix: detect MacOS bug
15165         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
15166         optind when missing a required argument.
15167         * doc/posix-functions/getopt.texi (getopt): Document the bug.
15168         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15169         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15170         Likewise.
15171
15172         getopt-posix: avoid spurious failure on Solaris
15173         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
15174         an indicator that setting optind=1 is sufficient for reset.
15175
15176         getopt-posix: avoid spurious failure on FreeBSD
15177         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
15178         in POSIX mode, since the m4 test uses it.
15179
15180         gnulib-tool: silence warning on BSD sh
15181         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
15182
15183 2010-04-13  Jim Meyering  <meyering@redhat.com>
15184
15185         doc: users.txt: GNU patch now uses gnulib
15186         * users.txt: Add patch.
15187
15188 2010-04-12  Jim Meyering  <meyering@redhat.com>
15189
15190         maint.mk: generate more concise timing data for syntax-check rules
15191         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
15192         " done" from each line that reports a syntax-check test duration.
15193
15194 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
15195
15196         git-version-gen: use "git update-index..." rather than "git status"
15197         * build-aux/git-version-gen: Use git update-index --refresh, not
15198         "git status".  With some versions of git, "git status" would fail
15199         to update the index and result in an unwarranted "-dirty" suffix.
15200
15201 2010-04-11  Jim Meyering  <meyering@redhat.com>
15202
15203         openat: correct formatting (no semantic change)
15204         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
15205         Suggested by Bruno Haible.
15206
15207 2010-04-11  Bruno Haible  <bruno@clisp.org>
15208
15209         Stricter declaration checking in testdirs.
15210         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
15211         If for_tests is true, augment AM_CPPFLAGS to define
15212         GNULIB_STRICT_CHECKING.
15213         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
15214         GNULIB_STRICT_CHECKING is defined, verify that the function is
15215         declared.
15216
15217 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
15218             Bruno Haible  <bruno@clisp.org>
15219
15220         libunistring: Improve configure output.
15221         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
15222         Don't say "consider installing GNU libunistring" when checking again
15223         with libiconv.
15224
15225 2010-04-11  Bruno Haible  <bruno@clisp.org>
15226
15227         libunistring: Correct value of $LTLIBUNISTRING.
15228         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
15229         correct the value of $LTLIBUNISTRING.
15230
15231 2010-04-11  Bruno Haible  <bruno@clisp.org>
15232
15233         havelib: Add static libraries to LIBS in the right order.
15234         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
15235         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
15236
15237 2010-04-11  Bruno Haible  <bruno@clisp.org>
15238
15239         libunistring: Detect libunistring also when it depends on libiconv.
15240         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
15241         the second AC_LIB_HAVE_LINKFLAGS invocation.
15242
15243 2010-04-11  James Youngman  <jay@gnu.org>
15244
15245         close-stream: declare local scalars to be "const"
15246         * lib/close-stream.c (close_stream): Make boolean variables const
15247         to document the fact that we set but do not change them.
15248
15249 2010-04-11  Bruno Haible  <bruno@clisp.org>
15250
15251         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
15252
15253 2010-04-11  Jim Meyering  <meyering@redhat.com>
15254
15255         maint.mk: don't include dist-check.mk
15256         * top/maint.mk: Remove bogus include directive.
15257
15258         maint.mk: improve empty-line-at-EOF check
15259         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
15260         solution, rather than tail+Perl-based one.  The latter would read
15261         a few kilobytes from the end of each file, and did not handle empty
15262         files properly.
15263
15264         maint.mk: print the elapsed time for each syntax-check rule
15265         * top/maint.mk (sc_m_rules_): Save start time in a file.
15266         (sc_z_rules_): New rules: remove temp file and print elapsed time.
15267         (local-check): Interpose the .z rules
15268
15269 2010-04-11  Jim Meyering  <meyering@redhat.com>
15270
15271         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
15272         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
15273         empty file with one that ends in an empty line.
15274
15275 2010-04-10  Bruno Haible  <bruno@clisp.org>
15276
15277         mkdir: Make it work on mingw64.
15278         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
15279         * lib/mkdir.c: Update comment.
15280         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
15281
15282 2010-04-10  Bruno Haible  <bruno@clisp.org>
15283
15284         Don't override improved macro from newer autoconf.
15285         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
15286         autoconf >= 2.62.
15287         Reported by Joel E. Denny <jdenny@clemson.edu>.
15288
15289 2010-04-10  Jim Meyering  <meyering@redhat.com>
15290
15291         maint.mk: new syntax-check rule: prohibit empty lines at end of file
15292         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
15293
15294         maint.mk: correct a diagnostic
15295         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
15296         in diagnostic; now use $prohibit.
15297
15298 2010-04-10  Bruno Haible  <address@hidden>
15299
15300         fchownat: Fix a C++ test error on Solaris 8.
15301         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
15302         the function does not exist.
15303
15304 2010-04-10  Bruno Haible  <bruno@clisp.org>
15305
15306         vasnprintf: Add more tests.
15307         * tests/test-vasnprintf-posix.c: Include <errno.h>.
15308         (test_function): Test converting an invalid wide string.
15309
15310         vasnprintf: Correct handling of unconvertible wide string arguments.
15311         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
15312         VASNPRINTF.
15313         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
15314         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
15315         smaller than the expected maximum need for the directive. Set errno to
15316         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
15317         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
15318         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
15319         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
15320         * modules/vasnprintf (Files): Add m4/printf.m4.
15321         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15322
15323 2010-04-10  Bruno Haible  <bruno@clisp.org>
15324
15325         vasnprintf: Fix crash in %ls directive.
15326         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
15327         string is passed as argument to %ls, with no precision and no width.
15328         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15329
15330 2010-04-10  Bruno Haible  <bruno@clisp.org>
15331
15332         vasnprintf: Fix multiple test failures on mingw.
15333         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
15334         _snprintf, or snwprintf, not _snwprintf.
15335
15336 2010-04-10  Bruno Haible  <bruno@clisp.org>
15337
15338         write: Fix a C++ test error on mingw.
15339         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
15340
15341 2010-04-10  Bruno Haible  <bruno@clisp.org>
15342
15343         vasnprintf test: Reduce code duplication.
15344         * tests/test-vasnprintf.c (test_function): New function, extracted from
15345         test_vasnprintf.
15346         (test_vasnprintf, test_asnprintf): Invoke it.
15347
15348 2010-04-10  Bruno Haible  <bruno@clisp.org>
15349
15350         strnlen: Fix warning in C++ mode on MacOS X.
15351         * lib/string.in.h (strnlen): Use the modern idiom.
15352         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
15353         defining strnlen as a macro already in <config.h>.
15354         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15355         REPLACE_STRNLEN.
15356         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
15357         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15358
15359 2010-04-08  James Youngman  <jay@gnu.org>
15360
15361         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
15362         the example.
15363
15364 2010-04-09  Jim Meyering  <meyering@redhat.com>
15365
15366         maint.mk: print better diagnostic when there is no $(_hv_file)
15367         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
15368         announce that when $(_hv_file) (aka help-version) does not exist.
15369
15370         init.sh: run tr in the "C" locale to avoid multibyte interpretation
15371         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
15372         not try to interpret its random input bytes.  Jarno Rajahalme reported
15373         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
15374         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
15375         (mktempd_): Likewise, just in case.
15376
15377         ftruncate: add two years to projected module removal date: 2012
15378         * m4/ftruncate.m4: Adjust comments.
15379
15380         ftruncate: mark module as obsolete; even MinGW provides it, now
15381         * modules/ftruncate (Status): Obsolete.
15382         (Notice): Say that.
15383         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
15384         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
15385
15386 2010-04-08  Bruno Haible  <bruno@clisp.org>
15387
15388         Fix side effects from tests-related modules.
15389         * modules/dprintf-posix (Comment): New section.
15390         * modules/fprintf-posix (Comment): Likewise.
15391         * modules/obstack-printf-posix (Comment): Likewise.
15392         * modules/printf-posix (Comment): Likewise.
15393         * modules/snprintf-posix (Comment): Likewise.
15394         * modules/sprintf-posix (Comment): Likewise.
15395         * modules/vasnprintf-posix (Comment): Likewise.
15396         * modules/vasprintf-posix (Comment): Likewise.
15397         * modules/vdprintf-posix (Comment): Likewise.
15398         * modules/vfprintf-posix (Comment): Likewise.
15399         * modules/vprintf-posix (Comment): Likewise.
15400         * modules/vsnprintf-posix (Comment): Likewise.
15401         * modules/vsprintf-posix (Comment): Likewise.
15402         * modules/xprintf-posix (Comment): Likewise.
15403         * modules/xvasprintf-posix (Comment): Likewise.
15404         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
15405         * modules/floorf-tests (Depends-on): Likewise.
15406         * modules/round-tests (Depends-on): Likewise.
15407         * modules/roundf-tests (Depends-on): Likewise.
15408         * modules/trunc-tests (Depends-on): Likewise.
15409         * modules/truncf-tests (Depends-on): Likewise.
15410         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
15411         'fprintf-posix' module is not present.
15412         * tests/test-floorf2.c (check): Likewise.
15413         * tests/test-trunc2.c (check): Likewise.
15414         * tests/test-truncf2.c (check): Likewise.
15415         * tests/test-round2.c (equal): Likewise.
15416         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
15417
15418 2010-04-07  Karl Berry  <karl@gnu.org>
15419
15420         * config/srclist.txt,
15421         * config/srclistvars.sh,
15422         * config/srclist-update: doc fixes.
15423
15424 2010-04-07  Jim Meyering  <meyering@redhat.com>
15425
15426         maint.mk: add a PATH crosschecking syntax-check rule
15427         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
15428         Useful if you use a test like the one in help-version (coreutils,
15429         diffutils, grep, gzip) that ensures $(VERSION) matches what is
15430         printed by prog --version.
15431
15432 2010-04-06  Bruno Haible  <bruno@clisp.org>
15433
15434         Fix link error on mingw.
15435         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
15436         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
15437
15438 2010-04-06  Bruno Haible  <bruno@clisp.org>
15439
15440         Assume rmdir exists.
15441         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
15442
15443 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
15444
15445         doc: update users.txt
15446         * users.txt: Add gcal.
15447
15448 2010-04-06  Jim Meyering  <meyering@redhat.com>
15449
15450         init.sh: simply unset TMPDIR rather than risking env -i
15451         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
15452         although it probably works fine on all Unix-based systems, some
15453         systems (Cygwin?) cannot tolerate a totally cleared environment.
15454         Suggestion from Eric Blake.
15455
15456 2010-04-06  Jim Meyering  <meyering@redhat.com>
15457
15458         init.sh: portability fix: use env's POSIX-specified -i option not -u
15459         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
15460         than unportable env -u.  Solaris 5.11's env lacks support for -u.
15461
15462 2010-04-05  Bruno Haible  <bruno@clisp.org>
15463
15464         btowc: Work around Cygwin 1.7.2 bug.
15465         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
15466         does not map NUL to 0.
15467         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
15468
15469 2010-04-05  Bruno Haible  <bruno@clisp.org>
15470
15471         Make the multithread modules work on Cygwin 1.7.2.
15472         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
15473         imported symbols can be declared weak, so that it returns "no" on
15474         Cygwin 1.7.2.
15475
15476 2010-04-05  Bruno Haible  <bruno@clisp.org>
15477
15478         Use the module 'strncat'.
15479         * modules/unistr/u8-strncat (Depends-on): Add strncat.
15480
15481         Tests for module 'strncat'.
15482         * modules/strncat-tests: New file.
15483         * tests/test-strncat.c: New file.
15484
15485         New module 'strncat'.
15486         * lib/string.in.h (strncat): New declaration.
15487         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
15488         * m4/strncat.m4: New file, based on m4/memchr.m4.
15489         * modules/strncat: New file.
15490         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
15491         is declared.
15492         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
15493         REPLACE_STRNCAT.
15494         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
15495         REPLACE_STRNCAT.
15496         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
15497         module.
15498         * tests/test-string-c++.cc: Check signature of strncat.
15499
15500 2010-04-05  Jim Meyering  <meyering@redhat.com>
15501
15502         xstrtoumax-tests: convert to use init.sh
15503         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
15504         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15505         Use Exit, not exit.
15506         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15507
15508         xstrtoimax-tests: convert to use init.sh
15509         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
15510         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15511         Use Exit, not exit.
15512         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15513
15514 2010-04-05  Bruno Haible  <bruno@clisp.org>
15515
15516         sys_socket: Avoid #define replacements in C++ mode.
15517         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
15518         warning to the function if possible, rather than #defining the symbol
15519         to a dysfunctional alias.
15520
15521 2010-04-05  Bruno Haible  <bruno@clisp.org>
15522
15523         fseeko: Fix C++ test error on mingw.
15524         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
15525         gl_FUNC_FSEEKO.
15526         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
15527         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
15528         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
15529         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
15530
15531 2010-04-05  Bruno Haible  <bruno@clisp.org>
15532
15533         duplocale: Improve test output.
15534         * tests/test-duplocale.c (main): Print reason for skipped test.
15535
15536 2010-04-05  Bruno Haible  <bruno@clisp.org>
15537
15538         Assume rmdir exists.
15539         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
15540         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
15541
15542 2010-04-05  Bruno Haible  <bruno@clisp.org>
15543
15544         Fix link error on Solaris 8 with cc.
15545         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
15546
15547 2010-04-05  Bruno Haible  <bruno@clisp.org>
15548
15549         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15550         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
15551
15552 2010-04-05  Bruno Haible  <bruno@clisp.org>
15553
15554         vasprintf: Update documentation.
15555         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
15556
15557 2010-04-05  Bruno Haible  <bruno@clisp.org>
15558
15559         ptsname: Improve test.
15560         * tests/test-ptsname.c (main): Also try the various master names of BSD
15561         systems.
15562
15563 2010-04-05  Bruno Haible  <bruno@clisp.org>
15564
15565         memchr: Avoid a possible C++ test error.
15566         * lib/string.in.h (memchr): Provide declaration if function is missing.
15567         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
15568         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
15569         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
15570         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
15571
15572 2010-04-05  Bruno Haible  <bruno@clisp.org>
15573
15574         strtok_r: Improve idiom.
15575         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
15576         AC_LIBOBJ is used.
15577
15578 2010-04-05  Bruno Haible  <bruno@clisp.org>
15579
15580         strdup: Improve idiom.
15581         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
15582         AC_LIBOBJ is used.
15583         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
15584         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
15585         when AC_LIBOBJ is used.
15586
15587 2010-04-05  Bruno Haible  <bruno@clisp.org>
15588
15589         mbsinit, mbrtowc, wcrtomb: Improve idioms.
15590         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
15591         don't set REPLACE_MBSINIT to 1.
15592         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
15593         don't set REPLACE_MBRTOWC to 1.
15594         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
15595         exist, don't set REPLACE_MBSRTOWCS to 1.
15596         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
15597         exist, don't set REPLACE_MBSNRTOWCS to 1.
15598         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
15599         don't set REPLACE_WCRTOMB to 1.
15600         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
15601         exist, don't set REPLACE_WCSRTOMBS to 1.
15602         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
15603         exist, don't set REPLACE_WCSNRTOMBS to 1.
15604
15605 2010-04-05  Bruno Haible  <bruno@clisp.org>
15606
15607         ldexpl: Improve idiom.
15608         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
15609         make sure to set HAVE_DECL_LDEXPL to 0.
15610
15611 2010-04-05  Jim Meyering  <meyering@redhat.com>
15612
15613         xstrtol-tests: convert to use init.sh
15614         * modules/xstrtol-tests (Files): Add tests/init.sh.
15615         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15616         Use Exit, not exit.
15617         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15618
15619         atexit-tests: convert to use init.sh
15620         * modules/atexit-tests (Files): Add tests/init.sh.
15621         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
15622         Use Exit, not exit.
15623         Remove uses of $EXEEXT and "./" to run a program in the current dir.
15624
15625         init.sh: fix typo
15626         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
15627
15628         init.sh: make it easier for a test script to write to the tty, ...
15629         when using automake's parallel-tests mode.
15630         * tests/init.sh (stderr_fileno_): Define overridable variable.
15631         (warn_): New function, to use it.
15632         (fail_, skip_, framework_failure_): Use warn_.
15633
15634 2010-04-04  Bruno Haible  <bruno@clisp.org>
15635
15636         btowc: Avoid warning.
15637         * lib/btowc.c: Include <stdlib.h>.
15638         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
15639
15640 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15641             Bruno Haible  <bruno@clisp.org>
15642
15643         wchar: Port to NetBSD 1.5.
15644         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
15645         * lib/wctype.in.h (WEOF): Likewise.
15646
15647 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
15648             Bruno Haible  <bruno@clisp.org>
15649
15650         Port extended stdio to NetBSD 1.5.
15651         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
15652         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
15653         older.
15654
15655 2010-04-04  Bruno Haible  <bruno@clisp.org>
15656
15657         string: Remove unused substitution.
15658         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
15659         HAVE_DECL_STRERROR.
15660         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
15661
15662 2010-04-04  Bruno Haible  <bruno@clisp.org>
15663
15664         strtod: Avoid a possible C++ test error.
15665         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
15666         set REPLACE_STRTOD.
15667
15668 2010-04-04  Bruno Haible  <bruno@clisp.org>
15669
15670         strerror: Update documentation.
15671         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
15672
15673 2010-04-04  Bruno Haible  <bruno@clisp.org>
15674
15675         stdio: Fix some C++ test errors on Solaris 8 with GCC.
15676         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
15677         _GL_CXXALIAS_SYS_CAST.
15678
15679 2010-04-04  Bruno Haible  <bruno@clisp.org>
15680
15681         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
15682         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
15683         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
15684         REPLACE_FREXPL to 1.
15685         * doc/posix-functions/frexpl.texi: Update documentation.
15686
15687 2010-04-04  Bruno Haible  <bruno@clisp.org>
15688
15689         math: Fix some C++ test errors on Solaris 8 and Cygwin.
15690         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
15691
15692 2010-04-04  Bruno Haible  <bruno@clisp.org>
15693
15694         Implement nanosleep for native Windows.
15695         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
15696
15697 2010-04-04  Bruno Haible  <bruno@clisp.org>
15698
15699         math: Fix some C++ test errors on Solaris 8.
15700         * lib/math.in.h (truncf, trunc): Use simpler idiom.
15701
15702 2010-04-04  Bruno Haible  <bruno@clisp.org>
15703
15704         math: Fix some C++ test errors on Cygwin.
15705         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
15706         truncl): Provide declaration if the system does not have it.
15707         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
15708         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
15709         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
15710         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
15711         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
15712         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
15713         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
15714         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
15715         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
15716         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
15717         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
15718         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
15719         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
15720         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
15721         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
15722         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
15723         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
15724         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15725         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15726         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
15727         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
15728         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
15729
15730 2010-04-04  Bruno Haible  <bruno@clisp.org>
15731
15732         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
15733         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15734         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15735         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
15736         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
15737         * m4/isinf.m4 (gl_ISINF): Likewise.
15738         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15739
15740 2010-04-04  Bruno Haible  <bruno@clisp.org>
15741
15742         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
15743         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15744
15745 2010-04-04  Bruno Haible  <bruno@clisp.org>
15746
15747         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
15748         * modules/tmpfile (configure.ac): Update.
15749
15750         tmpfile: Fix C++ test error on mingw.
15751         * lib/stdio.in.h (tmpfile): New declaration.
15752         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
15753         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
15754         * modules/tmpfile (Depends-on): Add stdio.
15755         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
15756         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
15757         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
15758         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
15759         REPLACE_TMPFILE.
15760         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
15761
15762 2010-04-04  Bruno Haible  <bruno@clisp.org>
15763
15764         ioctl: Fix C++ test error on mingw.
15765         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
15766         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
15767         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
15768
15769 2010-04-03  Bruno Haible  <bruno@clisp.org>
15770
15771         wcwidth: Fix C++ test error on mingw.
15772         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
15773         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
15774         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
15775
15776 2010-04-03  Bruno Haible  <bruno@clisp.org>
15777
15778         nanosleep: Fix C++ test error on mingw.
15779         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
15780         * lib/time.in.h (nanosleep): Use modern idiom.
15781         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
15782         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
15783         REPLACE_NANOSLEEP to 1.
15784         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
15785         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
15786
15787 2010-04-03  Bruno Haible  <bruno@clisp.org>
15788
15789         strptime: Fix C++ test error on mingw.
15790         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
15791         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
15792         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
15793         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
15794         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
15795         not REPLACE_STRPTIME.
15796         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
15797         REPLACE_STRPTIME.
15798
15799 2010-04-03  Bruno Haible  <bruno@clisp.org>
15800
15801         timegm: Fix C++ test error on mingw.
15802         * lib/time.in.h (timegm): Use modern idiom.
15803         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
15804         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
15805         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
15806         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
15807
15808 2010-04-03  Bruno Haible  <bruno@clisp.org>
15809
15810         timegm: Assume declaration if function exists.
15811         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
15812         if it exists. Don't clobber ac_cv_func_timegm.
15813
15814 2010-04-03  Bruno Haible  <bruno@clisp.org>
15815
15816         time_r: Fix C++ test error on mingw.
15817         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
15818         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
15819         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
15820         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
15821         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
15822
15823 2010-04-03  Bruno Haible  <bruno@clisp.org>
15824
15825         time_r: Minor updates.
15826         * modules/time_r (Description): Mention the provided functions.
15827         * lib/time_r.c: Don't include <string.h>.
15828         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
15829         * doc/posix-functions/localtime_r.texi: Likewise.
15830
15831 2010-04-03  Bruno Haible  <bruno@clisp.org>
15832
15833         time: Fix regression introduced on 2010-03-08.
15834         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
15835         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
15836
15837 2010-04-03  Jim Meyering  <meyering@redhat.com>
15838
15839         maint.mk: don't silently disable project-specific syntax-check rules
15840         * top/maint.mk (_prohibit_regexp): Define, to help people realize
15841         that they need to convert their project-specific syntax-check rules
15842         to use the new _sc_search_regexp.
15843
15844 2010-04-03  Bruno Haible  <bruno@clisp.org>
15845
15846         fchdir: Fix regression introduced on 2010-03-08.
15847         * lib/unistd.in.h (fchdir): Fix declaration.
15848         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
15849         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
15850         REPLACE_FCHDIR.
15851         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
15852         REPLACE_FCHDIR.
15853
15854 2010-04-03  Bruno Haible  <bruno@clisp.org>
15855
15856         getpagesize: Fix C++ test error on mingw.
15857         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
15858         system does not declare the function.
15859         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
15860         declared.
15861         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15862         HAVE_DECL_GETPAGESIZE.
15863         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
15864
15865 2010-04-03  Bruno Haible  <bruno@clisp.org>
15866
15867         stdio: Make C++ tests work on mingw.
15868         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
15869         does not declare the function.
15870
15871 2010-04-03  Bruno Haible  <bruno@clisp.org>
15872
15873         ftello: Fix C++ test error on mingw.
15874         * lib/stdio.in.h (ftello): Use modern idiom.
15875         * lib/ftello.c (ftello): Renamed from rpl_ftello.
15876         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
15877         is missing and that it needs to be replaced.
15878         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
15879         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
15880         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
15881
15882 2010-04-03  Bruno Haible  <bruno@clisp.org>
15883
15884         fseeko: Fix C++ test error on mingw.
15885         * lib/stdio.in.h (fseeko): Use modern idiom.
15886         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
15887         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
15888         is missing and that it needs to be replaced.
15889         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
15890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
15891         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
15892
15893 2010-04-03  Bruno Haible  <bruno@clisp.org>
15894
15895         mkstemp: Fix C++ test error on mingw.
15896         * lib/stdlib.in.h (mkstemp): Use modern idiom.
15897         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
15898         function is missing and that it needs to be replaced.
15899         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
15900         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
15901
15902 2010-04-03  Bruno Haible  <bruno@clisp.org>
15903
15904         stpncpy: Fix C++ test error on mingw.
15905         * lib/string.in.h (stpncpy): Use modern idiom.
15906         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
15907         function is missing and that it needs to be replaced.
15908         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15909         REPLACE_STPNCPY.
15910         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
15911
15912 2010-04-03  Bruno Haible  <bruno@clisp.org>
15913
15914         sys_stat: Fix C++ test error on mingw.
15915         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
15916         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
15917
15918 2010-04-03  Bruno Haible  <bruno@clisp.org>
15919
15920         pty: Update doc.
15921         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
15922
15923 2010-04-03  Bruno Haible  <bruno@clisp.org>
15924
15925         unistd: Fix C++ test error on mingw.
15926         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
15927
15928 2010-04-03  Bruno Haible  <bruno@clisp.org>
15929
15930         Update doc regarding mingw.
15931         * doc/glibc-functions/openpty.texi: Update regarding mingw.
15932         * doc/glibc-functions/login_tty.texi: Likewise.
15933         * doc/glibc-functions/forkpty.texi: Likewise.
15934
15935 2010-04-03  Bruno Haible  <bruno@clisp.org>
15936
15937         stdlib: Avoid compilation failure of c-strtold on mingw.
15938         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
15939
15940 2010-04-03  Bruno Haible  <bruno@clisp.org>
15941
15942         locale: Make C++ tests work on Cygwin and mingw.
15943         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
15944         cannot provide the function.
15945         Reported by Simon Josefsson.
15946
15947 2010-04-03  Bruno Haible  <bruno@clisp.org>
15948
15949         localename: Port to MacOS X 10.6.
15950         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
15951         memory layout of the locales in MacOS X 10.6 as well.
15952         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
15953
15954 2010-04-02  Bruno Haible  <bruno@clisp.org>
15955
15956         gnulib-tool: Ensure that long-running tests are executed last.
15957         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
15958         running tests after the one for the other tests.
15959
15960 2010-04-02  Bruno Haible  <bruno@clisp.org>
15961
15962         gnulib-tool: Ensure the tests in the main directory are executed first.
15963         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
15964         start with the current directory.
15965
15966 2010-04-02  Bruno Haible  <bruno@clisp.org>
15967
15968         Tests for module 'havelib', moved here from GNU gettext.
15969         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
15970         modifications.
15971         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
15972         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
15973         with modifications.
15974         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
15975         modifications.
15976         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
15977         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
15978         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
15979         with modifications.
15980         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
15981         with modifications.
15982         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
15983         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
15984         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
15985         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
15986         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
15987         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
15988         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
15989         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
15990         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
15991         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
15992         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
15993         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
15994         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
15995         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
15996         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
15997         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
15998         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
15999         with modifications.
16000         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
16001         with modifications.
16002         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
16003         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
16004         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
16005         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
16006         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
16007         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
16008         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
16009         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
16010         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
16011         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
16012         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
16013         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
16014         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
16015         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
16016         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
16017         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
16018         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
16019         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
16020         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
16021         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
16022         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
16023         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
16024         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
16025         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
16026         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
16027         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
16028         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
16029         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
16030         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
16031         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
16032         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
16033         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
16034         * tests/havelib/rpathx/rpathx.c: New file, from
16035         gettext/autoconf-lib-link.
16036         * tests/havelib/rpathx/Makefile.am: New file, from
16037         gettext/autoconf-lib-link.
16038         * tests/havelib/rpathx/configure.ac: New file, from
16039         gettext/autoconf-lib-link with modifications.
16040         * tests/havelib/rpathy/rpathy.c: New file, from
16041         gettext/autoconf-lib-link.
16042         * tests/havelib/rpathy/Makefile.am: New file, from
16043         gettext/autoconf-lib-link.
16044         * tests/havelib/rpathy/configure.ac: New file, from
16045         gettext/autoconf-lib-link with modifications.
16046         * tests/havelib/rpathz/rpathz.c: New file, from
16047         gettext/autoconf-lib-link.
16048         * tests/havelib/rpathz/Makefile.am: New file, from
16049         gettext/autoconf-lib-link.
16050         * tests/havelib/rpathz/configure.ac: New file, from
16051         gettext/autoconf-lib-link with modifications.
16052         * tests/havelib/rpathlx/usex.c: New file, from
16053         gettext/autoconf-lib-link.
16054         * tests/havelib/rpathlx/Makefile.am: New file, from
16055         gettext/autoconf-lib-link.
16056         * tests/havelib/rpathlx/configure.ac: New file, from
16057         gettext/autoconf-lib-link with modifications.
16058         * tests/havelib/rpathly/usey.c: New file, from
16059         gettext/autoconf-lib-link.
16060         * tests/havelib/rpathly/Makefile.am: New file, from
16061         gettext/autoconf-lib-link.
16062         * tests/havelib/rpathly/configure.ac: New file, from
16063         gettext/autoconf-lib-link with modifications.
16064         * tests/havelib/rpathlz/usez.c: New file, from
16065         gettext/autoconf-lib-link.
16066         * tests/havelib/rpathlz/Makefile.am: New file, from
16067         gettext/autoconf-lib-link.
16068         * tests/havelib/rpathlz/configure.ac: New file, from
16069         gettext/autoconf-lib-link with modifications.
16070         * tests/havelib/rpathlyx/usey.c: New file, from
16071         gettext/autoconf-lib-link.
16072         * tests/havelib/rpathlyx/Makefile.am: New file, from
16073         gettext/autoconf-lib-link.
16074         * tests/havelib/rpathlyx/configure.ac: New file, from
16075         gettext/autoconf-lib-link with modifications.
16076         * tests/havelib/rpathlzyx/usez.c: New file, from
16077         gettext/autoconf-lib-link.
16078         * tests/havelib/rpathlzyx/Makefile.am: New file, from
16079         gettext/autoconf-lib-link.
16080         * tests/havelib/rpathlzyx/configure.ac: New file, from
16081         gettext/autoconf-lib-link with modifications.
16082         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
16083         with modifications.
16084
16085 2010-04-02  Bruno Haible  <bruno@clisp.org>
16086
16087         gnulib-tool: Create distributed built sources also for the tests.
16088         * gnulib-tool (func_create_testdir): Also generate distributed built
16089         sources in the tests directory.
16090
16091 2010-04-02  Bruno Haible  <bruno@clisp.org>
16092
16093         gnulib-tool: Obey user's environment variables.
16094         * gnulib-tool (func_create_testdir): When creating built sources,
16095         respect the environment variables for autoconf, automake, etc. given by
16096         the user.
16097
16098 2010-04-02  Bruno Haible  <bruno@clisp.org>
16099
16100         gnulib-tool: Provide the value of --m4-base to modules.
16101         * gnulib-tool (func_import, func_create_testdir): Emit a definition
16102         of gl_m4_base.
16103
16104 2010-04-02  Eric Blake  <eblake@redhat.com>
16105
16106         maint.mk: fix some fallout
16107         * NEWS: Document the incompatible change, and its effect on cfg.mk.
16108         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
16109
16110 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
16111
16112         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
16113         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
16114         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
16115         (sc_cast_of_x_alloc_return_value): Likewise.
16116         (sc_cast_of_alloca_return_value): Likewise.
16117         (sc_space_tab): Likewise.
16118         (sc_prohibit_atoi_atof): Likewise.
16119         (sc_prohibit_magic_number_exit): Likewise.
16120         (sc_error_exit_success): Likewise.
16121         (sc_file_system): Likewise.
16122         (sc_prohibit_have_config_h): Likewise.
16123         (sc_require_config_h): Likewise.
16124         (sc_prohibit_HAVE_MBRTOWC): Likewise.
16125         (sc_obsolete_symbols): Likewise.
16126         (sc_changelog): Likewise.
16127         (sc_program_name): Likewise.
16128         (sc_the_the): Likewise.
16129         (sc_trailing_blank): Likewise.
16130         (sc_two_space_separator_in_usage): Likewise.
16131         (sc_useless_cpp_parens): Likewise.
16132         (sc_GPL_version): Likewise.
16133         (sc_GFDL_version): Likewise.
16134         (sc_texinfo_acronym): Likewise.
16135         (sc_prohibit_cvs_keyword): Likewise.
16136         (sc_prohibit_stat_st_blocks): Likewise.
16137         (sc_prohibit_S_IS_definition): Likewise.
16138         (sc_redundant_const): Likewise.
16139         (sc_makefile_TAB_only_indentation): Likewise.
16140         (sc_m4_quote_check): Likewise.
16141         (sc_makefile_path_separator_check): Likewise.
16142         (sc_copyright_check): Likewise.
16143         (sc_Wundef_boolean): Likewise.
16144         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16145
16146         maint.mk: match 0 or more whitespace-before-function-call '('
16147         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
16148         that have zero or two-and-more spaces between the function name
16149         and the open parenthesis.
16150         (sc_error_message_warn_fatal): Likewise.
16151         (sc_error_message_uppercase): Likewise.
16152         (sc_error_message_period): Likewise.
16153
16154 2010-03-31  Eric Blake  <eblake@redhat.com>
16155
16156         maint.mk: check for [ as well as test
16157         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
16158         Based on a libvirt report by Matthias Bolte.
16159
16160         gnumakefile: don't squelch _version output
16161         * top/GNUmakefile (_version): Create one-shot dependency rather
16162         than using $(shell) when version must be regenerated.
16163         (_autoreconf): Run verbosely, by default.
16164
16165         sys_time: avoid compiler warnings
16166         * lib/sys_time.in.h (includes): Ensure gcc pragma is
16167         unconditional, fixing regression from 2010-03-29.
16168         Reported by Simon Josefsson.
16169
16170 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
16171
16172         maint.mk: s/_header_without_use/_sc_header_without_use/
16173         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
16174         (sc_prohibit_assert_without_use): Use the new name.
16175         (sc_prohibit_close_stream_without_use): Likewise.
16176         (sc_prohibit_getopt_without_use): Likewise.
16177         (sc_prohibit_quotearg_without_use): Likewise.
16178         (sc_prohibit_quote_without_use): Likewise.
16179         (sc_prohibit_long_options_without_use): Likewise.
16180         (sc_prohibit_inttostr_without_use): Likewise.
16181         (sc_prohibit_ignore_value_without_use): Likewise.
16182         (sc_prohibit_error_without_use): Likewise.
16183         (sc_prohibit_xalloc_without_use): Likewise.
16184         (sc_prohibit_hash_without_use): Likewise.
16185         (sc_prohibit_hash_pjw_without_use): Likewise.
16186         (sc_prohibit_safe_read_without_use): Likewise.
16187         (sc_prohibit_argmatch_without_use): Likewise.
16188         (sc_prohibit_canonicalize_without_use): Likewise.
16189         (sc_prohibit_root_dev_ino_without_use): Likewise.
16190         (sc_prohibit_openat_without_use): Likewise.
16191         (sc_prohibit_c_ctype_without_use): Likewise.
16192         (sc_prohibit_signal_without_use): Likewise.
16193         (sc_prohibit_intprops_without_use): Likewise.
16194
16195 2010-03-30  Eric Blake  <eblake@redhat.com>
16196
16197         maint: improve module indicators
16198         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
16199         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
16200         columns, and avoid extra macro expansion.
16201
16202         fdopendir: work around FreeBSD bug
16203         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
16204         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
16205         * modules/dirent (Makefile.am): Substitute it.
16206         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
16207         declaration.
16208         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
16209         fix.
16210         Reported by Christian Weisgerber <naddy@mips.inka.de>.
16211
16212 2010-03-29  Bruno Haible  <bruno@clisp.org>
16213
16214         Emit #pragma system_header after the inclusion guard, not before.
16215         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
16216         guard that spans the entire file, not before. This enables an
16217         optimization in GCC's preprocessor.
16218         * lib/ctype.in.h: Likewise.
16219         * lib/dirent.in.h: Likewise.
16220         * lib/errno.in.h: Likewise.
16221         * lib/float.in.h: Likewise.
16222         * lib/getopt.in.h: Likewise.
16223         * lib/iconv.in.h: Likewise.
16224         * lib/langinfo.in.h: Likewise.
16225         * lib/locale.in.h: Likewise.
16226         * lib/math.in.h: Likewise.
16227         * lib/netdb.in.h: Likewise.
16228         * lib/netinet_in.in.h: Likewise.
16229         * lib/pty.in.h: Likewise.
16230         * lib/sched.in.h: Likewise.
16231         * lib/se-selinux.in.h: Likewise.
16232         * lib/search.in.h: Likewise.
16233         * lib/spawn.in.h: Likewise.
16234         * lib/stdarg.in.h: Likewise.
16235         * lib/stdint.in.h: Likewise.
16236         * lib/string.in.h: Likewise.
16237         * lib/strings.in.h: Likewise.
16238         * lib/sys_file.in.h: Likewise.
16239         * lib/sys_ioctl.in.h: Likewise.
16240         * lib/sys_time.in.h: Likewise.
16241         * lib/sys_times.in.h: Likewise.
16242         * lib/sys_utsname.in.h: Likewise.
16243         * lib/sys_wait.in.h: Likewise.
16244         * lib/sysexits.in.h: Likewise.
16245         * lib/wctype.in.h: Likewise.
16246
16247 2010-03-28  James Youngman  <jay@gnu.org>
16248
16249         save-cwd: don't leak a file descriptor when the caller execs.
16250         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
16251         saved file descriptor.
16252         * modules/save-cwd (Depends-on): Depend on cloexec.
16253
16254 2010-03-29  Bruno Haible  <bruno@clisp.org>
16255
16256         Remove vestiges of fts-lgpl module.
16257         * lib/fts_.h: Assume GNULIB_FTS is 1.
16258         * lib/fts.c: Likewise.
16259         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16260
16261 2010-03-28  Bruno Haible  <bruno@clisp.org>
16262
16263         Fix definition of tests witness macro.
16264         * gnulib-tool (func_import): Fix definition of witness macro.
16265
16266 2010-03-28  Bruno Haible  <bruno@clisp.org>
16267
16268         Fix ioctl's protoype on glibc systems.
16269         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
16270         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
16271         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
16272         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
16273         signature. If not, arrange to replace the ioctl function.
16274         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
16275         REPLACE_IOCTL.
16276         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
16277         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
16278         Reported by Ludovic Courtès <ludo@gnu.org>.
16279
16280 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
16281
16282         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
16283         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
16284         made it so grep -r --include=GLOB* ... did not work.
16285
16286 2010-03-26  Jim Meyering  <meyering@redhat.com>
16287             Eric Blake  <eblake@redhat.com>
16288
16289         maint.mk: prohibit use of test's -o and -a operators
16290         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
16291
16292 2010-03-28  Bruno Haible  <bruno@clisp.org>
16293
16294         Remove unused GNULIB_XYZ macro definitions.
16295         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
16296         invocation.
16297
16298 2010-03-28  Bruno Haible  <bruno@clisp.org>
16299
16300         Mark privileged tests modules.
16301         * modules/idpriv-drop-tests (Status): New section.
16302         * modules/idpriv-droptemp-tests (Status): New section.
16303
16304 2010-03-28  Bruno Haible  <bruno@clisp.org>
16305
16306         Split C++ tests into separate tests modules.
16307         * modules/dirent-c++-tests: New file, extracted from
16308         modules/dirent-tests.
16309         * modules/dirent-tests: Depend on it.
16310         * modules/fcntl-h-c++-tests: New file, extracted from
16311         modules/fcntl-h-tests.
16312         * modules/fcntl-h-tests: Depend on it.
16313         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
16314         * modules/glob-tests: Depend on it.
16315         * modules/iconv-h-c++-tests: New file, extracted from
16316         modules/iconv-h-tests.
16317         * modules/iconv-h-tests: Depend on it.
16318         * modules/langinfo-c++-tests: New file, extracted from
16319         modules/langinfo-tests.
16320         * modules/langinfo-tests: Depend on it.
16321         * modules/locale-c++-tests: New file, extracted from
16322         modules/locale-tests.
16323         * modules/locale-tests: Depend on it.
16324         * modules/math-c++-tests: New file, extracted from modules/math-tests.
16325         * modules/math-tests: Depend on it.
16326         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
16327         * modules/pty-tests: Depend on it.
16328         * modules/search-c++-tests: New file, extracted from
16329         modules/search-tests.
16330         * modules/search-tests: Depend on it.
16331         * modules/signal-c++-tests: New file, extracted from
16332         modules/signal-tests.
16333         * modules/signal-tests: Depend on it.
16334         * modules/spawn-c++-tests: New file, extracted from
16335         modules/spawn-tests.
16336         * modules/spawn-tests: Depend on it.
16337         * modules/stdio-c++-tests: New file, extracted from
16338         modules/stdio-tests.
16339         * modules/stdio-tests: Depend on it.
16340         * modules/stdlib-c++-tests: New file, extracted from
16341         modules/stdlib-tests.
16342         * modules/stdlib-tests: Depend on it.
16343         * modules/string-c++-tests: New file, extracted from
16344         modules/string-tests.
16345         * modules/string-tests: Depend on it.
16346         * modules/sys_ioctl-c++-tests: New file, extracted from
16347         modules/sys_ioctl-tests.
16348         * modules/sys_ioctl-tests: Depend on it.
16349         * modules/sys_select-c++-tests: New file, extracted from
16350         modules/sys_select-tests.
16351         * modules/sys_select-tests: Depend on it.
16352         * modules/sys_socket-c++-tests: New file, extracted from
16353         modules/sys_socket-tests.
16354         * modules/sys_socket-tests: Depend on it.
16355         * modules/sys_stat-c++-tests: New file, extracted from
16356         modules/sys_stat-tests.
16357         * modules/sys_stat-tests: Depend on it.
16358         * modules/sys_time-c++-tests: New file, extracted from
16359         modules/sys_time-tests.
16360         * modules/sys_time-tests: Depend on it.
16361         * modules/time-c++-tests: New file, extracted from modules/time-tests.
16362         * modules/time-tests: Depend on it.
16363         * modules/unistd-c++-tests: New file, extracted from
16364         modules/unistd-tests.
16365         * modules/unistd-tests: Depend on it.
16366         * modules/wchar-c++-tests: New file, extracted from
16367         modules/wchar-tests.
16368         * modules/wchar-tests: Depend on it.
16369         * modules/wctype-c++-tests: New file, extracted from
16370         modules/wctype-tests.
16371         * modules/wctype-tests: Depend on it.
16372         Reported by Simon Josefsson.
16373
16374 2010-03-28  Bruno Haible  <bruno@clisp.org>
16375
16376         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
16377         * gnulib-tool (func_exists_module): New function, extracted from
16378         func_verify_module.
16379         (func_verify_module): Use it.
16380         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
16381         'foo' only if 'foo' exists.
16382         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
16383         module.
16384
16385 2010-03-28  Bruno Haible  <bruno@clisp.org>
16386
16387         gnulib-tool: Add support for special categories of tests.
16388         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
16389         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
16390         (func_usage): Document them.
16391         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
16392         inc_unportable_tests, inc_all_tests): New variables.
16393         (func_acceptable): Consider these variables.
16394         (func_modules_transitive_closure): Make it work when the 'Status' field
16395         consists of multiple words.
16396         (func_import): Store and restore the values of inc_cxx_tests,
16397         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
16398         inc_all_tests in gnulib-comp.m4.
16399         (func_create_testdir): Set inc_all_tests to true.
16400         * doc/gnulib.texi (Extra tests modules): New section.
16401         Suggested by Jim Meyering.
16402
16403 2010-03-28  Bruno Haible  <bruno@clisp.org>
16404
16405         ansi-c++-opt: Allow turning off the C++ build by default.
16406         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
16407         gl_CXX_CHOICE_DEFAULT_NO is defined.
16408         Requested by Eric Blake.
16409
16410 2010-03-28  Bruno Haible  <bruno@clisp.org>
16411
16412         unistd: Avoid #define replacements in C++ mode.
16413         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
16414         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
16415         setsockopt, shutdown, select): In C++, attach a warning to the function
16416         if possible, rather than #defining the symbol to a dysfunctional alias.
16417         Reported by John W. Eaton <jwe@gnu.org>.
16418
16419 2010-03-28  Bruno Haible  <bruno@clisp.org>
16420
16421         Fix link errors on mingw.
16422         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
16423         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
16424         $(LIBSOCKET).
16425         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
16426         $(LIBSOCKET).
16427
16428 2010-03-28  Bruno Haible  <bruno@clisp.org>
16429             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16430
16431         lib-ignore: Determine different options for different compilers.
16432         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
16433         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
16434         Add comments.
16435         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
16436         * NEWS: Mention the change.
16437
16438 2010-03-27  Bruno Haible  <bruno@clisp.org>
16439
16440         Remove unused GNULIB_XYZ macro definitions.
16441         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
16442         * modules/fseek (configure.ac): Likewise.
16443         * modules/ioctl (configure.ac): Likewise.
16444         * modules/open (configure.ac): Likewise.
16445         * modules/stdlib-safer (configure.ac): Likewise.
16446
16447 2010-03-27  Bruno Haible  <bruno@clisp.org>
16448
16449         Add a remark about certain modules.
16450         * modules/malloc (Comment): New section.
16451         * modules/realloc (Comment): Likewise.
16452         * modules/sigpipe (Comment): Likewise.
16453
16454 2010-03-27  Bruno Haible  <bruno@clisp.org>
16455
16456         Resolve conflict between the two kinds of module indicators.
16457         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
16458         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
16459         * modules/canonicalize (configure.ac): Invoke
16460         gl_MODULE_INDICATOR_FOR_TESTS.
16461         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
16462         GNULIB_XYZ.
16463         * tests/test-dirent-c++.cc: Likewise.
16464         * tests/test-dirent-safer.c: Likewise.
16465         * tests/test-dup2.c: Likewise.
16466         * tests/test-fchdir.c: Likewise.
16467         * tests/test-fcntl-h-c++.cc: Likewise.
16468         * tests/test-getopt.c: Likewise.
16469         * tests/test-getopt.h: Likewise.
16470         * tests/test-langinfo-c++.cc: Likewise.
16471         * tests/test-locale-c++.cc: Likewise.
16472         * tests/test-math-c++.cc: Likewise.
16473         * tests/test-pty-c++.cc: Likewise.
16474         * tests/test-search-c++.cc: Likewise.
16475         * tests/test-signal-c++.cc: Likewise.
16476         * tests/test-spawn-c++.cc: Likewise.
16477         * tests/test-stdio-c++.cc: Likewise.
16478         * tests/test-stdlib-c++.cc: Likewise.
16479         * tests/test-string-c++.cc: Likewise.
16480         * tests/test-sys_ioctl-c++.cc: Likewise.
16481         * tests/test-sys_select-c++.cc: Likewise.
16482         * tests/test-sys_socket-c++.cc: Likewise.
16483         * tests/test-sys_stat-c++.cc: Likewise.
16484         * tests/test-sys_time-c++.cc: Likewise.
16485         * tests/test-time-c++.cc: Likewise.
16486         * tests/test-unistd-c++.cc: Likewise.
16487         * tests/test-wchar-c++.cc: Likewise.
16488         * tests/uninorm/test-u8-nfc.c: Likewise.
16489         * tests/uninorm/test-u8-nfd.c: Likewise.
16490         * tests/uninorm/test-u8-nfkc.c: Likewise.
16491         * tests/uninorm/test-u8-nfkd.c: Likewise.
16492         * tests/uninorm/test-u16-nfc.c: Likewise.
16493         * tests/uninorm/test-u16-nfd.c: Likewise.
16494         * tests/uninorm/test-u16-nfkc.c: Likewise.
16495         * tests/uninorm/test-u16-nfkd.c: Likewise.
16496         * tests/uninorm/test-u32-nfc.c: Likewise.
16497         * tests/uninorm/test-u32-nfc-big.c: Likewise.
16498         * tests/uninorm/test-u32-nfd.c: Likewise.
16499         * tests/uninorm/test-u32-nfd-big.c: Likewise.
16500         * tests/uninorm/test-u32-nfkc.c: Likewise.
16501         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
16502         * tests/uninorm/test-u32-nfkd.c: Likewise.
16503         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
16504         * tests/uninorm/test-u32-normalize-big.c: Likewise.
16505
16506 2010-03-27  Bruno Haible  <bruno@clisp.org>
16507
16508         Distinguish two kinds of module indicators.
16509         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
16510         gl_MODULE_INDICATOR.
16511         (gl_MODULE_INDICATOR): New macro.
16512         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
16513         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
16514         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16515         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16516         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16517         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16518         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16519         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16520         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16521         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16522         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16523         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16524         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16525         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16526         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16527         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16528         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16529         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16530         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16531         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16532         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16533         * modules/cloexec (configure.ac): Likewise.
16534         * modules/getopt-gnu (configure.ac): Likewise.
16535         * modules/uninorm/u8-normalize (configure.ac): Likewise.
16536         * modules/uninorm/u16-normalize (configure.ac): Likewise.
16537         * modules/uninorm/u32-normalize (configure.ac): Likewise.
16538         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
16539
16540 2010-03-27  Bruno Haible  <bruno@clisp.org>
16541
16542         New module description field 'Comment'.
16543         * gnulib-tool: New option --extract-comment.
16544         (func_usage): Document it.
16545         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
16546         (func_get_comment): New function.
16547         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
16548
16549 2010-03-27  Bruno Haible  <bruno@clisp.org>
16550
16551         Addendum to 2010-02-07 commit.
16552         * gnulib-tool (func_usage): Document --extract-applicability option.
16553
16554 2010-03-27  Bruno Haible  <bruno@clisp.org>
16555
16556         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
16557         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
16558         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
16559         rather than link errors.
16560
16561 2010-03-27  Bruno Haible  <bruno@clisp.org>
16562
16563         Avoid side effects from tests-related modules on the compilation of lib.
16564         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
16565         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
16566         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
16567         parameter. Emit into AM_CPPFLAGS a definition of the designated C
16568         macro.
16569         (func_import): Define a witness macro. Assign it a value that depends
16570         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
16571         tests-related modules.
16572         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
16573         Reported by Jim Meyering.
16574
16575 2010-03-27  Bruno Haible  <bruno@clisp.org>
16576
16577         Factorize common .m4 code.
16578         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
16579         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
16580         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
16581         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
16582         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
16583         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
16584         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
16585         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
16586         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
16587         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
16588         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
16589         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
16590         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
16591         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
16592         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
16593         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
16594         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
16595         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
16596         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
16597         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
16598         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
16599         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
16600         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
16601         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
16602         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
16603         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
16604         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
16605         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
16606         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
16607         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
16608         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
16609         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
16610
16611 2010-03-27  Bruno Haible  <bruno@clisp.org>
16612
16613         Fix a compilation error on Cygwin with g++ >= 4.3.
16614         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
16615         if it is undefined or if we alias it to chmod.
16616         (lstat): Don't warn about the use of this function if it is undefined
16617         or if we alias it to stat.
16618         Reported by Simon Josefsson.
16619
16620 2010-03-27  Bruno Haible  <bruno@clisp.org>
16621
16622         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
16623         * modules/getlogin (configure.ac): Update.
16624
16625         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
16626         * modules/getlogin_r (configure.ac): Update.
16627
16628         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
16629         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
16630         * modules/inet_ntop (configure.ac): Update.
16631
16632         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
16633         * modules/inet_pton (configure.ac): Update.
16634
16635         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
16636         * modules/mbslen (configure.ac): Update.
16637
16638         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
16639         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
16640         * modules/forkpty (configure.ac): Update.
16641         * modules/openpty (configure.ac): Update.
16642
16643 2010-03-26  Simon Josefsson  <simon@josefsson.org>
16644
16645         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
16646         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
16647
16648 2010-03-25  Eric Blake  <eblake@redhat.com>
16649
16650         maint: use pragma consistently across replacement headers
16651         * lib/ctype.in.h (system_header): Hoist for consistent placement.
16652         * lib/dirent.in.h (system_header): Likewise.
16653         * lib/errno.in.h (system_header): Likewise.
16654         * lib/float.in.h (system_header): Likewise.
16655         * lib/getopt.in.h (system_header): Likewise.
16656         * lib/iconv.in.h (system_header): Likewise.
16657         * lib/inttypes.in.h (system_header): Likewise.
16658         * lib/langinfo.in.h (system_header): Likewise.
16659         * lib/locale.in.h (system_header): Likewise.
16660         * lib/math.in.h (system_header): Likewise.
16661         * lib/netdb.in.h (system_header): Likewise.
16662         * lib/netinet_in.in.h (system_header): Likewise.
16663         * lib/pty.in.h (system_header): Likewise.
16664         * lib/sched.in.h (system_header): Likewise.
16665         * lib/se-selinux.in.h (system_header): Likewise.
16666         * lib/search.in.h (system_header): Likewise.
16667         * lib/spawn.in.h (system_header): Likewise.
16668         * lib/stdarg.in.h (system_header): Likewise.
16669         * lib/stdint.in.h (system_header): Likewise.
16670         * lib/string.in.h (system_header): Likewise.
16671         * lib/strings.in.h (system_header): Likewise.
16672         * lib/sys_file.in.h (system_header): Likewise.
16673         * lib/sys_ioctl.in.h (system_header): Likewise.
16674         * lib/sys_socket.in.h (system_header): Likewise.
16675         * lib/sys_times.in.h (system_header): Likewise.
16676         * lib/sys_utsname.in.h (system_header): Likewise.
16677         * lib/sys_wait.in.h (system_header): Likewise.
16678         * lib/sysexits.in.h (system_header): Likewise.
16679         * lib/unistd.in.h (system_header): Likewise.
16680         * lib/wctype.in.h (system_header): Likewise.
16681
16682         arpa/inet: fix mingw compilation warning
16683         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
16684         Reported by Matthew Bolte.
16685
16686 2010-03-25  Bruno Haible  <bruno@clisp.org>
16687
16688         Avoid collision between gnulib wrapper and libintl wrapper.
16689         * lib/printf.c (printf): Don't define if a printf wrapper is already
16690         defined in intl/printf.c.
16691         Reported by Michel Boaventura <michel@michelboaventura.com>.
16692
16693 2010-03-25  Bruno Haible  <bruno@clisp.org>
16694
16695         Use ANSI C.
16696         * lib/readutmp.h (getutent): Provide ANSI C prototype.
16697
16698 2010-03-25  Bruno Haible  <bruno@clisp.org>
16699
16700         Minor formatting changes.
16701         * lib/acosl.c: Insert space before function argument list.
16702         * lib/argz.c: Likewise.
16703         * lib/asinl.c: Likewise.
16704         * lib/expl.c: Likewise.
16705         * lib/gen-uni-tables.c: Likewise.
16706         * lib/gettext.h: Likewise.
16707         * lib/glthread/lock.h: Likewise.
16708         * lib/tanl.c: Likewise.
16709         * lib/uniname/uniname.c: Likewise.
16710         * tests/test-idpriv-drop.c: Likewise.
16711         * tests/test-idpriv-droptemp.c: Likewise.
16712         * tests/test-lock.c: Likewise.
16713         * tests/test-tls.c: Likewise.
16714         * lib/argp-help.c: Insert space before function-like macro argument
16715         list.
16716         * lib/memcmp.c: Likewise.
16717         * tests/test-base64.c: Likewise.
16718         * lib/localename.c: Insert space before sizeof's argument list.
16719         * lib/safe-alloc.h: Likewise.
16720         * lib/file-set.h: Insert space before macro argument list.
16721         * tests/test-argp.c: Likewise.
16722         * lib/argp-namefrob.h: Insert space before function parameter list.
16723         * lib/getaddrinfo.c: Likewise.
16724         * lib/netdb.in.h: Likewise.
16725         * lib/parse-duration.h: Likewise.
16726         * lib/parse-duration.c: Likewise.
16727         * lib/poll.c: Likewise.
16728         * lib/select.c: Likewise.
16729         * lib/trim.h: Likewise.
16730         * tests/test-usleep.c: Likewise.
16731         * lib/ldexpl.c: Insert space before function parameter list and before
16732         function argument list.
16733         * lib/logl.c: Likewise.
16734         * lib/sqrtl.c: Likewise.
16735         * lib/trim.c: Likewise.
16736         * lib/cosl.c: Use GNU style indentation. Insert space before function
16737         argument list.
16738         * lib/sinl.c: Likewise.
16739         * lib/tsearch.c: Insert space after 'for'.
16740         Reported by Jim Meyering.
16741
16742 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
16743
16744         * maint.mk (sc_Wundef_boolean): Check for the presence of the
16745         config header before grepping, as it's not present before
16746         autoreconf/configure are run.  Reported by Simon Josefsson.
16747
16748 2010-03-23  Bruno Haible  <bruno@clisp.org>
16749
16750         pt_chown: Make it work with automake < 1.11.
16751         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
16752         Reported by Simon Josefsson.
16753
16754 2010-03-23  Bruno Haible  <bruno@clisp.org>
16755
16756         pt_chown: Don't depend on GPLed modules.
16757         * lib/pt_chown.c: Don't include idpriv.h.
16758         (main): Don't drop privileges.
16759         * modules/pt_chown (Depends-on): Remove idpriv-drop.
16760         Reported by Simon Josefsson.
16761
16762 2010-03-24  Simon Josefsson  <simon@josefsson.org>
16763
16764         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
16765         suggestions from karl@freefriends.org (Karl Berry).
16766
16767 2010-03-22  Eric Blake  <eblake@redhat.com>
16768
16769         gethostname: further tweaks
16770         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
16771         are overriding gethostname.
16772         Suggested by Bruno Haible.
16773
16774 2010-03-21  Bruno Haible  <bruno@clisp.org>
16775
16776         Fix comments.
16777         * lib/forkpty.c (rpl_forkpty): Fix comment.
16778         * lib/openpty.c (rpl_openpty): Likewise.
16779         Reported by Eric Blake.
16780
16781 2010-03-22  Eric Blake  <eblake@redhat.com>
16782
16783         gethostname: fix build on mingw
16784         * lib/unistd.in.h (includes): Work around fact that mingw
16785         <winsock2.h> re-includes <unistd.h>, by avoiding any
16786         redeclarations if we are being included by <winsock2.h>.
16787         Reported by Matthias Bolte.
16788
16789 2010-03-21  Bruno Haible  <bruno@clisp.org>
16790
16791         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
16792         * lib/forkpty.c (forkpty): New replacement function, from glibc with
16793         modifications.
16794         * lib/pty.in.h (forkpty): Update declaration. Add comments.
16795         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
16796         provide the replacement.
16797         * modules/forkpty (Depends-on): Add openpty, login_tty.
16798         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
16799         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
16800         * doc/glibc-functions/forkpty.texi: More supported platforms.
16801         * config/srclist.txt: Add forkpty.c (commented).
16802
16803 2010-03-21  Bruno Haible  <bruno@clisp.org>
16804
16805         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
16806         (Makefile.am): Verify that PTY_LIB is defined.
16807
16808         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
16809
16810 2010-03-21  Bruno Haible  <bruno@clisp.org>
16811
16812         Tests for module 'login_tty'.
16813         * modules/login_tty-tests: New file.
16814         * tests/test-login_tty.c: New file.
16815
16816         New module 'login_tty'.
16817         * lib/login_tty.c: New file.
16818         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
16819         * modules/login_tty: New file.
16820         * doc/glibc-functions/login_tty.texi: Mention the new module.
16821
16822 2010-03-21  Bruno Haible  <bruno@clisp.org>
16823
16824         login_tty: Documentation.
16825         * doc/glibc-functions/login_tty.texi: New file.
16826         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
16827
16828 2010-03-21  Bruno Haible  <bruno@clisp.org>
16829
16830         pty: Consistent macro naming.
16831         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
16832         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
16833         * modules/pty (configure.ac): Update.
16834
16835 2010-03-21  Bruno Haible  <bruno@clisp.org>
16836
16837         Tests for openpty: Make stricter.
16838         * tests/test-openpty.c (main): Add test of canonical processing and
16839         erase.
16840         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
16841
16842         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
16843         * lib/openpty.c (openpty): New replacement function.
16844         * lib/pty.in.h: Include <termios.h>.
16845         (openpty): Update declaration. Add comments.
16846         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
16847         is not declared, arrange to provide the replacement. Check for _getpty
16848         and posix_openpt.
16849         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
16850         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
16851         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
16852         * modules/pty-tests (test_pty_c___LDADD): New variable.
16853         * doc/glibc-functions/openpty.texi: More supported platforms.
16854
16855 2010-03-21  Bruno Haible  <bruno@clisp.org>
16856
16857         setenv: Tweaks.
16858         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
16859         the test program.
16860         * doc/posix-functions/setenv.texi: Update platforms list.
16861
16862 2010-03-21  Bruno Haible  <bruno@clisp.org>
16863
16864         New module 'unlockpt'.
16865         * lib/unlockpt.c: New file, from glibc with modifications.
16866         * m4/unlockpt.m4: New file.
16867         * modules/unlockpt: New file.
16868         * lib/stdlib.in.h (unlockpt): New declaration.
16869         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
16870         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
16871         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
16872         HAVE_UNLOCKPT.
16873         * doc/posix-functions/unlockpt.texi: Mention the new module.
16874         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
16875         * config/srclist.txt: Add unlockpt.c (commented).
16876
16877 2010-03-21  Jim Meyering  <meyering@redhat.com>
16878
16879         maint.mk: prohibit inclusion of "intprops.h" without use
16880         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
16881
16882 2010-03-21  Bruno Haible  <bruno@clisp.org>
16883
16884         New module 'grantpt'.
16885         * lib/grantpt.c: New file, from glibc with modifications.
16886         * m4/grantpt.m4: New file.
16887         * modules/grantpt: New file.
16888         * lib/stdlib.in.h (grantpt): New declaration.
16889         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
16890         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
16891         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
16892         HAVE_GRANTPT.
16893         * doc/posix-functions/grantpt.texi: Mention the new module.
16894         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
16895         * config/srclist.txt: Add grantpt.c (commented).
16896
16897 2010-03-21  Bruno Haible  <bruno@clisp.org>
16898
16899         New module 'pt_chown'.
16900         * lib/pt_chown.c: New file, from glibc with modifications.
16901         * lib/pty-private.h: New file, from glibc with modifications.
16902         * modules/pt_chown: New file.
16903         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
16904
16905 2010-03-21  Bruno Haible  <bruno@clisp.org>
16906
16907         Tests for module 'ptsname'.
16908         * modules/ptsname-tests: New file.
16909         * tests/test-ptsname.c: New file.
16910
16911         New module 'ptsname'.
16912         * lib/ptsname.c: New file, from glibc with modifications.
16913         * m4/ptsname.m4: New file.
16914         * modules/ptsname: New file.
16915         * lib/stdlib.in.h (ptsname): New declaration.
16916         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
16917         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
16918         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
16919         HAVE_PTSNAME.
16920         * doc/posix-functions/ptsname.texi: Mention the new module.
16921         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
16922         * config/srclist.txt: Add ptsname.c (commented).
16923
16924 2010-03-21  Bruno Haible  <bruno@clisp.org>
16925
16926         Tests for module 'ttyname_r'.
16927         * modules/ttyname_r-tests: New file.
16928         * tests/test-ttyname_r.c: New file.
16929
16930         New module 'ttyname_r'.
16931         * lib/ttyname_r.c: New file.
16932         * m4/ttyname_r.m4: New file.
16933         * modules/ttyname_r: New file.
16934         * lib/unistd.in.h (ttyname_r): New declaration.
16935         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
16936         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
16937         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
16938         HAVE_TTYNAME_R.
16939         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
16940         * doc/posix-functions/ttyname_r.texi: Mention the new module.
16941
16942 2010-03-20  Bruno Haible  <bruno@clisp.org>
16943
16944         signal: Undefine macro definitions in C++ mode.
16945         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
16946         sigfillset): Undefine macro definitions from the system header in C++
16947         mode.
16948         Reported by John W. Eaton <jwe@gnu.org>.
16949
16950 2010-03-20  Bruno Haible  <bruno@clisp.org>
16951
16952         Ensure no #include statements inside extern "C" { ... }.
16953         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
16954         contain #include statements.
16955         * lib/time.in.h: Likewise.
16956
16957 2010-03-20  Bruno Haible  <bruno@clisp.org>
16958
16959         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
16960         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
16961         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
16962         Reported by John W. Eaton <jwe@gnu.org>.
16963
16964 2010-03-20  Bruno Haible  <bruno@clisp.org>
16965
16966         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
16967         Reported by Jim Meyering.
16968
16969 2010-03-20  Bruno Haible  <bruno@clisp.org>
16970
16971         pipe: Set errno upon failure.
16972         * lib/pipe.h: Specify that when -1 is returned, errno is set.
16973         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
16974         errno value in error message.
16975
16976 2010-03-20  Bruno Haible  <bruno@clisp.org>
16977             Jim Meyering  <meyering@redhat.com>
16978
16979         lchown: Avoid "unused variable" warning.
16980         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
16981
16982 2010-03-20  Bruno Haible  <bruno@clisp.org>
16983
16984         Work around unlink() bug on MacOS X 10.5.6.
16985         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
16986         attempting to unlink a parent directory.
16987         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
16988         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
16989         activate for the replacement function.
16990         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
16991
16992 2010-03-20  Bruno Haible  <bruno@clisp.org>
16993
16994         Fix link errors on Solaris 8.
16995         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
16996         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
16997
16998 2010-03-19  Jim Meyering  <meyering@redhat.com>
16999
17000         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
17001         The _LIBC implementation of build_range_exp correctly honors the
17002         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
17003         However, the non-_LIBC implementation would ignore that syntax-bit
17004         flag and return REG_ERANGE unconditionally.
17005         This change makes it honor that flag.
17006         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
17007         Make two pointer parameters "const".
17008         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
17009         (parse_bracket_exp): Update caller.
17010
17011         regex.m4: correct the reversed range endpoint ([b-a]) test
17012         * m4/regex.m4: When requiring that [b-a] evoke failure,
17013         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
17014         test pass once again for x86-based systems.
17015
17016 2010-03-19  Bruno Haible  <bruno@clisp.org>
17017
17018         scandir: Fix link error on Solaris 8.
17019         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
17020         macros.
17021
17022 2010-03-19  Bruno Haible  <bruno@clisp.org>
17023
17024         getusershell: Fix documentation.
17025         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
17026         module.
17027         * doc/glibc-functions/setusershell.texi: Likewise.
17028
17029         getusershell: Provide declaration, missing on Solaris 9.
17030         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
17031         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
17032         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
17033         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
17034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17035         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
17036         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
17037         HAVE_GETUSERSHELL.
17038         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
17039
17040 2010-03-19  Bruno Haible  <bruno@clisp.org>
17041
17042         wctype: Provide iswblank function.
17043         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
17044         exists and is fine.
17045         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
17046         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
17047         * tests/test-wctype.c (main): Re-enable the iswblank tests.
17048         * doc/posix-functions/iswblank.texi: Update.
17049
17050 2010-03-19  Bruno Haible  <bruno@clisp.org>
17051
17052         Tests of module 'pty' in C++ mode.
17053         * modules/pty-tests: New file.
17054         * tests/test-pty-c++.cc: New file.
17055         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17056
17057 2010-03-19  Eric Blake  <eblake@redhat.com>
17058
17059         logb: fix documentation
17060         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
17061         1.5 declaration bug.
17062
17063         forkpty, openpty: prefer glibc's const-safe prototype
17064         * lib/forkpty.c (rpl_forkpty): New file.
17065         * lib/openpty.c (rpl_openpty): Likewise.
17066         * modules/forkpty (Files): Distribute it.
17067         * modules/openpty (Files): Likewise.
17068         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
17069         check...
17070         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
17071         replacement for for non-const BSD signature.
17072         * modules/pty (Makefile.am): Substitute witnesses.
17073         * lib/pty.in.h (forkpty, openpty): Declare replacements.
17074         * tests/test-forkpty.c: Update signature check.
17075         * tests/test-openpty.c: Likewise.
17076         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
17077         * doc/glibc-functions/openpty.texi (openpty): Likewise.
17078
17079         forkpty, openpty: split functions into new modules
17080         * modules/pty (Makefile.am): Substitute new witnesses.
17081         (Libraries): Move library detection...
17082         * modules/forkpty: ...into new module.
17083         * modules/openpty: Another new module.
17084         * modules/pty-tests: Rename and split...
17085         * modules/forkpty-tests: ...to this...
17086         * modules/openpty-tests: ...and this.
17087         * tests/test-pty.c: Rename and split...
17088         * tests/test-forkpty.c: ...to this...
17089         * tests/test-openpty.c: ...and this.
17090         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
17091         (gl_PTY): Split library searching...
17092         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
17093         (gl_FORKPTY, gl_OPENPTY): New macros.
17094         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
17095         * NEWS: Mention the split.
17096         * MODULES.html.sh (Misc): Document the modules.
17097         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
17098         * doc/glibc-functions/openpty.texi (openpty): Likewise.
17099
17100         pty: improve replacement header
17101         * lib/pty.in.h: New file.
17102         * modules/pty (Files): Ship it.
17103         (Makefile.am): Always build replacement.
17104         * m4/pty.m4: Rename...
17105         * m4/pty_h.m4: ...to this.
17106         (gl_PTY): Modernize setting of witness macros; update check of
17107         forkpty to take proper advantage of cache.
17108         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
17109
17110         getopt: avoid compiler warning
17111         * lib/getopt.c (attribute_hidden): Remove unused macro.
17112
17113 2010-03-18  Bruno Haible  <bruno@clisp.org>
17114
17115         Fix link errors on Solaris 8.
17116         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
17117         * modules/search-tests (test_search_c___LDADD): Likewise.
17118         * modules/signal-tests (test_signal_c___LDADD): Likewise.
17119         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
17120         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
17121         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
17122         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
17123         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
17124         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
17125
17126 2010-03-18  Bruno Haible  <bruno@clisp.org>
17127
17128         Fix bug introduced on 2010-03-14.
17129         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
17130         (gl_SPAWN_H): Require it.
17131         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
17132         Reported by Simon Josefsson.
17133
17134 2010-03-18  Bruno Haible  <bruno@clisp.org>
17135
17136         Fix typo introduced on 2009-12-31.
17137         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
17138         posix_spawn_file_actions_adddup2.
17139
17140 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
17141         and Eric Blake  <eblake@redhat.com>
17142
17143         test-vc-list-files-git: make more robust
17144         * tests/test-vc-list-files-git.sh: Unset problematic environment
17145         variables.  Chain commands together.
17146
17147 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
17148
17149         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
17150         `AC_CHECK_DECL' invocation.
17151
17152 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
17153
17154         * lib/inttostr.c (inttostr): Make sure the invocation of verify
17155         appears before executable statements. Suggested by Petr Sumbera
17156         <Petr.Sumbera@Sun.COM>.
17157
17158 2010-03-14  Bruno Haible  <bruno@clisp.org>
17159
17160         * tests/test-flock.c (test_exclusive): Comment out a test that causes
17161         portability problems. Instead use a simpler test.
17162         (main): Check that invalid arguments are rejected only on Linux.
17163
17164 2010-03-14  Bruno Haible  <bruno@clisp.org>
17165
17166         Fix bug introduced on 2009-12-31.
17167         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
17168         gl_PREREQ_SYS_H_WINSOCK2 always.
17169         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
17170         SYS_SOCKET_H variable.
17171         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
17172         Update comments.
17173         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
17174         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
17175         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17176         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17177         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
17178
17179 2010-03-14  Bruno Haible  <bruno@clisp.org>
17180
17181         Fix values returned by sinl, cosl.
17182         * lib/trigl.h: Add specification comments.
17183         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
17184         that combines the values from the precomputed table with the values of
17185         the Chebyshev polynomials.
17186
17187 2010-03-14  Bruno Haible  <bruno@clisp.org>
17188
17189         Fix compilation error when modules 'posix_spawn[p]' are not used.
17190         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
17191         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
17192
17193 2010-03-14  Bruno Haible  <bruno@clisp.org>
17194
17195         Fix compilation error on mingw when module 'time_r' is not used.
17196         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
17197         is 1.
17198         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
17199         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17200         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
17201         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
17202
17203 2010-03-14  Bruno Haible  <bruno@clisp.org>
17204
17205         Fix compilation error with Sun C.
17206         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
17207         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
17208         instead of GCC specific ULONG_LONG_MAX.
17209         * lib/xstrtoll.c: Likewise.
17210         * lib/xstrtoull.c: Likewise.
17211
17212 2010-03-13  Bruno Haible  <bruno@clisp.org>
17213
17214         Allow the user to disable C++ code and tests.
17215         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
17216         (gl_PROG_ANSI_CXX): Require it.
17217
17218 2010-03-13  Bruno Haible  <bruno@clisp.org>
17219
17220         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
17221         cases.
17222
17223 2010-03-13  Bruno Haible  <bruno@clisp.org>
17224
17225         Test that gnulib does not break the standard C++ headers.
17226         * tests/test-locale-c++2.cc: New file.
17227         * modules/locale-tests (Files): Add it.
17228         (Makefile.am): Compile it for test-locale-c++.
17229         * tests/test-math-c++2.cc: New file.
17230         * modules/math-tests (Files): Add it.
17231         (Makefile.am): Compile it for test-math-c++.
17232         * tests/test-signal-c++2.cc: New file.
17233         * modules/signal-tests (Files): Add it.
17234         (Makefile.am): Compile it for test-signal-c++.
17235         * tests/test-stdio-c++2.cc: New file.
17236         * modules/stdio-tests (Files): Add it.
17237         (Makefile.am): Compile it for test-stdio-c++.
17238         * tests/test-stdlib-c++2.cc: New file.
17239         * modules/stdlib-tests (Files): Add it.
17240         (Makefile.am): Compile it for test-stdlib-c++.
17241         * tests/test-string-c++2.cc: New file.
17242         * modules/string-tests (Files): Add it.
17243         (Makefile.am): Compile it for test-string-c++.
17244         * tests/test-time-c++2.cc: New file.
17245         * modules/time-tests (Files): Add it.
17246         (Makefile.am): Compile it for test-time-c++.
17247         Reported by John W. Eaton <jwe@gnu.org>.
17248
17249 2010-03-13  Bruno Haible  <bruno@clisp.org>
17250
17251         * gnulib-tool (func_usage): Clarify which options are available for
17252         --create-testdir and --create-megatestdir.
17253
17254 2010-03-13  Bruno Haible  <bruno@clisp.org>
17255
17256         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
17257         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
17258         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
17259         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
17260         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
17261         when appropriate.
17262         Reported by Jim Meyering.
17263
17264 2010-03-12  Simon Josefsson  <simon@josefsson.org>
17265
17266         * gnulib-tool (func_import): Explain origin of code.
17267
17268 2010-03-12  Bruno Haible  <bruno@clisp.org>
17269
17270         Fix problem with automake's definition of CXXLINK.
17271         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
17272         Reported by Simon Josefsson and Ludovic Courtès.
17273
17274 2010-03-12  Bruno Haible  <bruno@clisp.org>
17275
17276         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
17277         stable releases.
17278
17279 2010-03-11  Bruno Haible  <bruno@clisp.org>
17280
17281         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
17282         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
17283         whether the system provides one variant or multiple variants of the
17284         function.
17285         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
17286         C++ compilers.
17287         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
17288         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
17289         Reported by Jim Meyering.
17290
17291 2010-03-09  Simon Josefsson  <simon@josefsson.org>
17292
17293         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
17294
17295 2010-03-08  Bruno Haible  <bruno@clisp.org>
17296
17297         gnulib-tool: Add support for --libtool in --create-testdir.
17298         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
17299         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
17300
17301 2010-03-08  Eric Blake  <eblake@redhat.com>
17302
17303         gnulib-tool.texi: mention possibility of git submodule
17304         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
17305         submodules.
17306         * doc/.gitignore: Ignore another generated file.
17307
17308 2010-03-08  Karl Berry  <karl@gnu.org>
17309
17310         * doc/gnulib-tool.texi (VCS Issues): Mention third option
17311         of committing gnulib files while skipping others.
17312
17313 2010-03-07  Bruno Haible  <bruno@clisp.org>
17314
17315         Tests of module 'wctype' in C++ mode.
17316         * tests/test-wctype-c++.cc: New file.
17317         * modules/wctype-tests (Files): Add it and tests/signature.h.
17318         (Depends-on): Add ansi-c++-opt.
17319         (Makefile.am): Arrange to compile and run test-wctype-c++.
17320
17321         Tests of module 'wchar' in C++ mode.
17322         * tests/test-wchar-c++.cc: New file.
17323         * modules/wchar-tests (Files): Add it and tests/signature.h.
17324         (Depends-on): Add ansi-c++-opt.
17325         (Makefile.am): Arrange to compile and run test-wchar-c++.
17326         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
17327         gl_MODULE_INDICATOR.
17328
17329         Tests of module 'unistd' in C++ mode.
17330         * tests/test-unistd-c++.cc: New file.
17331         * modules/unistd-tests (Files): Add it and tests/signature.h.
17332         (Depends-on): Add ansi-c++-opt.
17333         (Makefile.am): Arrange to compile and run test-unistd-c++.
17334         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
17335         gl_MODULE_INDICATOR.
17336
17337         Tests of module 'time' in C++ mode.
17338         * tests/test-time-c++.cc: New file.
17339         * modules/time-tests (Files): Add it and tests/signature.h.
17340         (Depends-on): Add ansi-c++-opt.
17341         (Makefile.am): Arrange to compile and run test-time-c++.
17342         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17343
17344         Tests of module 'sys_time' in C++ mode.
17345         * tests/test-sys_time-c++.cc: New file.
17346         * modules/sys_time-tests (Files): Add it and tests/signature.h.
17347         (Depends-on): Add ansi-c++-opt.
17348         (Makefile.am): Arrange to compile and run test-sys_time-c++.
17349         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
17350         gl_MODULE_INDICATOR.
17351
17352         Tests of module 'sys_stat' in C++ mode.
17353         * tests/test-sys_stat-c++.cc: New file.
17354         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
17355         (Depends-on): Add ansi-c++-opt.
17356         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
17357         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
17358         gl_MODULE_INDICATOR.
17359
17360         Tests of module 'sys_socket' in C++ mode.
17361         * tests/test-sys_socket-c++.cc: New file.
17362         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
17363         (Depends-on): Add ansi-c++-opt.
17364         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
17365         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
17366         gl_MODULE_INDICATOR.
17367
17368         Tests of module 'sys_select' in C++ mode.
17369         * tests/test-sys_select-c++.cc: New file.
17370         * modules/sys_select-tests (Files): Add it and tests/signature.h.
17371         (Depends-on): Add ansi-c++-opt.
17372         (Makefile.am): Arrange to compile and run test-sys_select-c++.
17373         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
17374         gl_MODULE_INDICATOR.
17375
17376         Tests of module 'sys_ioctl' in C++ mode.
17377         * tests/test-sys_ioctl-c++.cc: New file.
17378         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
17379         (Depends-on): Add ansi-c++-opt.
17380         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
17381         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
17382         gl_MODULE_INDICATOR.
17383
17384         Tests of module 'string' in C++ mode.
17385         * tests/test-string-c++.cc: New file.
17386         * modules/string-tests (Files): Add it and tests/signature.h.
17387         (Depends-on): Add ansi-c++-opt.
17388         (Makefile.am): Arrange to compile and run test-string-c++.
17389         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
17390         gl_MODULE_INDICATOR.
17391
17392         Tests of module 'stdlib' in C++ mode.
17393         * tests/test-stdlib-c++.cc: New file.
17394         * modules/stdlib-tests (Files): Add it and tests/signature.h.
17395         (Depends-on): Add ansi-c++-opt.
17396         (Makefile.am): Arrange to compile and run test-stdlib-c++.
17397         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
17398         gl_MODULE_INDICATOR.
17399
17400         Tests of module 'stdio' in C++ mode.
17401         * tests/test-stdio-c++.cc: New file.
17402         * modules/stdio-tests (Files): Add it and tests/signature.h.
17403         (Depends-on): Add ansi-c++-opt.
17404         (Makefile.am): Arrange to compile and run test-stdio-c++.
17405         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
17406         gl_MODULE_INDICATOR.
17407
17408         Tests of module 'spawn' in C++ mode.
17409         * tests/test-spawn-c++.cc: New file.
17410         * modules/spawn-tests (Files): Add it and tests/signature.h.
17411         (Depends-on): Add ansi-c++-opt.
17412         (Makefile.am): Arrange to compile and run test-spawn-c++.
17413         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
17414         gl_MODULE_INDICATOR.
17415
17416         Tests of module 'signal' in C++ mode.
17417         * tests/test-signal-c++.cc: New file.
17418         * modules/signal-tests (Files): Add it and tests/signature.h.
17419         (Depends-on): Add ansi-c++-opt.
17420         (Makefile.am): Arrange to compile and run test-signal-c++.
17421         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
17422         gl_MODULE_INDICATOR.
17423
17424         Tests of module 'search' in C++ mode.
17425         * tests/test-search-c++.cc: New file.
17426         * modules/search-tests (Files): Add it and tests/signature.h.
17427         (Depends-on): Add ansi-c++-opt.
17428         (Makefile.am): Arrange to compile and run test-search-c++.
17429         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
17430         gl_MODULE_INDICATOR.
17431
17432         Tests of module 'math' in C++ mode.
17433         * tests/test-math-c++.cc: New file.
17434         * modules/math-tests (Files): Add it and tests/signature.h.
17435         (Depends-on): Add ansi-c++-opt.
17436         (Makefile.am): Arrange to compile and run test-math-c++.
17437         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
17438
17439         Tests of module 'locale' in C++ mode.
17440         * tests/test-locale-c++.cc: New file.
17441         * modules/locale-tests (Files): Add it and tests/signature.h.
17442         (Depends-on): Add ansi-c++-opt.
17443         (Makefile.am): Arrange to compile and run test-locale-c++.
17444         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
17445         gl_MODULE_INDICATOR.
17446
17447         Tests of module 'langinfo' in C++ mode.
17448         * tests/test-langinfo-c++.cc: New file.
17449         * modules/langinfo-tests (Files): Add it and tests/signature.h.
17450         (Depends-on): Add ansi-c++-opt.
17451         (Makefile.am): Arrange to compile and run test-langinfo-c++.
17452         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
17453         gl_MODULE_INDICATOR.
17454
17455         Tests of module 'iconv-h' in C++ mode.
17456         * tests/test-iconv-h-c++.cc: New file.
17457         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
17458         (Depends-on): Add ansi-c++-opt.
17459         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
17460
17461         Tests of module 'glob' in C++ mode.
17462         * tests/test-glob-c++.cc: New file.
17463         * modules/glob-tests (Files): Add it.
17464         (Depends-on): Add ansi-c++-opt.
17465         (Makefile.am): Arrange to compile and run test-glob-c++.
17466
17467         Tests of module 'fcntl-h' in C++ mode.
17468         * tests/test-fcntl-h-c++.cc: New file.
17469         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
17470         (Depends-on): Add ansi-c++-opt.
17471         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
17472         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
17473         gl_MODULE_INDICATOR.
17474
17475         Tests of module 'dirent' in C++ mode.
17476         * tests/test-dirent-c++.cc: New file.
17477         * modules/dirent-tests (Files): Add it and tests/signature.h.
17478         (Depends-on): Add ansi-c++-opt.
17479         (Makefile.am): Arrange to compile and run test-dirent-c++.
17480         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
17481         gl_MODULE_INDICATOR.
17482
17483         New module 'ansi-c++-opt'.
17484         * modules/ansi-c++-opt: New file.
17485         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
17486
17487         Document C++ namespace mode.
17488         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
17489
17490         wctype: Avoid #define replacements in C++ mode.
17491         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
17492         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
17493         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
17494         In C++, define a namespaced alias symbol.
17495         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
17496         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
17497         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
17498         rule.
17499
17500         wchar: Avoid #define replacements in C++ mode.
17501         * lib/wchar.in.h: Include c++defs.h.
17502         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
17503         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
17504         symbol.
17505         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
17506         * modules/wchar (Depends-on): Add c++defs.
17507         (Makefile.am): Update wchar.h rule.
17508
17509         unistd: Avoid #define replacements in C++ mode.
17510         * lib/unistd.in.h: Include c++defs.h.
17511         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
17512         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
17513         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
17514         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
17515         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
17516         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
17517         symbol.
17518         (environ): Update.
17519         * modules/unistd (Depends-on): Add c++defs.
17520         (Makefile.am): Update unistd.h rule.
17521
17522         time: Avoid #define replacements in C++ mode.
17523         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
17524         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
17525         define a namespaced alias symbol.
17526         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
17527         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
17528         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
17529         * modules/time (Depends-on): Add c++defs, warn-on-use.
17530         (Makefile.am): Update time.h rule.
17531         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
17532         * modules/nanosleep (configure.ac): Likewise.
17533         * modules/strptime (configure.ac): Likewise.
17534         * modules/timegm (configure.ac): Likewise.
17535
17536         sys_time: Avoid #define replacements in C++ mode.
17537         * lib/sys_time.in.h: Include c++defs.h.
17538         (gettimeofday): In C++, define a namespaced alias symbol.
17539         * modules/sys_time (Depends-on): Add c++defs.
17540         (Makefile.am): Update sys/time.h rule.
17541
17542         sys_stat: Avoid #define replacements in C++ mode.
17543         * lib/sys_stat.in.h: Include c++defs.h.
17544         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
17545         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
17546         namespaced alias symbol.
17547         In C++, define a namespaced alias symbol.
17548         * modules/sys_stat (Depends-on): Add c++defs.
17549         (Makefile.am): Update sys/stat.h rule.
17550
17551         sys_socket: Avoid #define replacements in C++ mode.
17552         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
17553         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
17554         definitions also when the system has a <sys/socket.h>.
17555         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
17556         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
17557         In C++, define a namespaced alias symbol.
17558         * modules/sys_socket (Depends-on): Add c++defs.
17559         (Makefile.am): Update sys/socket.h rule.
17560
17561         sys_select: Avoid #define replacements in C++ mode.
17562         * lib/sys_select.in.h: Include c++defs.h. Enable the function
17563         definitions also when the system has a <sys/select.h>.
17564         (select): In C++, define a namespaced alias symbol.
17565         * modules/sys_select (Depends-on): Add c++defs.
17566         (Makefile.am): Update sys/select.h rule.
17567
17568         sys_ioctl: Avoid #define replacements in C++ mode.
17569         * lib/sys_ioctl.in.h: Include c++defs.h.
17570         (ioctl): In C++, define a namespaced alias symbol.
17571         * modules/sys_ioctl (Depends-on): Add c++defs.
17572         (Makefile.am): Update sys/ioctl.h rule.
17573
17574         string: Avoid #define replacements in C++ mode.
17575         * lib/string.in.h: Include c++defs.h.
17576         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
17577         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
17578         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
17579         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
17580         strsignal, strverscmp): In C++, define a namespaced alias symbol.
17581         * modules/string (Depends-on): Add c++defs.
17582         (Makefile.am): Update string.h rule.
17583
17584         stdlib: Avoid #define replacements in C++ mode.
17585         * lib/stdlib.in.h: Include c++defs.h.
17586         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
17587         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
17588         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
17589         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
17590         symbol.
17591         * modules/stdlib (Depends-on): Add c++defs.
17592         (Makefile.am): Update stdlib.h rule.
17593
17594         stdio: Avoid #define replacements in C++ mode.
17595         * lib/stdio.in.h: Include c++defs.h.
17596         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
17597         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
17598         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
17599         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
17600         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
17601         namespaced alias symbol.
17602         * modules/stdio (Depends-on): Add c++defs.
17603         (Makefile.am): Update stdio.h rule.
17604
17605         spawn: Avoid #define replacements in C++ mode.
17606         * lib/spawn.in.h: Include c++defs.h.
17607         (posix_spawn, posix_spawnp, posix_spawnattr_init,
17608         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
17609         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
17610         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
17611         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
17612         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
17613         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
17614         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
17615         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
17616         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
17617         In C++, define a namespaced alias symbol.
17618         * modules/spawn (Depends-on): Add c++defs.
17619         (Makefile.am): Update spawn.h rule.
17620
17621         signal: Avoid #define replacements in C++ mode.
17622         * lib/signal.in.h: Include c++defs.h.
17623         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
17624         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
17625         namespaced alias symbol.
17626         * modules/signal (Depends-on): Add c++defs.
17627         (Makefile.am): Update signal.h rule.
17628
17629         search: Avoid #define replacements in C++ mode.
17630         * lib/search.in.h: Include c++defs.h.
17631         (_gl_search_compar_fn, _gl_search_action_fn): New types.
17632         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
17633         symbol.
17634         * modules/search (Depends-on): Add c++defs.
17635         (Makefile.am): Update search.h rule.
17636
17637         math: Avoid #define replacements in C++ mode.
17638         * lib/math.in.h: Include c++defs.h.
17639         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
17640         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
17641         trunc, truncl): In C++, define a namespaced alias symbol.
17642         * modules/math (Depends-on): Add c++defs.
17643         (Makefile.am): Update math.h rule.
17644
17645         locale: Avoid #define replacements in C++ mode.
17646         * lib/locale.in.h: Include c++defs.h.
17647         (duplocale): In C++, define a namespaced alias symbol.
17648         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
17649         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
17650         * modules/locale (Depends-on): Add c++defs.
17651         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
17652
17653         langinfo: Avoid #define replacements in C++ mode.
17654         * lib/langinfo.in.h: Include c++defs.h.
17655         (nl_langinfo): In C++, define a namespaced alias symbol.
17656         * modules/langinfo (Depends-on): Add c++defs.
17657         (Makefile.am): Update langinfo.h rule.
17658
17659         iconv-h: Avoid #define replacements in C++ mode.
17660         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
17661         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
17662         symbol.
17663         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
17664         whenever iconv is present.
17665         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
17666         (Makefile.am): Update iconv.h rule.
17667
17668         glob: Avoid #define replacements in C++ mode.
17669         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
17670         (_gl_glob_errfunc_fn): New type.
17671         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
17672         symbol.
17673         * modules/glob (Depends-on): Add c++defs, warn-on-use.
17674         (Makefile.am): Update glob.h rule.
17675
17676         fcntl-h: Avoid #define replacements in C++ mode.
17677         * lib/fcntl.in.h: Include c++defs.h.
17678         (fcntl, open, openat): In C++, define a namespaced alias symbol.
17679         * modules/fcntl-h (Depends-on): Add c++defs.
17680         (Makefile.am): Update fcntl.h rule.
17681
17682         dirent: Avoid #define replacements in C++ mode.
17683         * lib/dirent.in.h: Include c++defs.h.
17684         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
17685         namespaced alias symbol.
17686         (dirfd): Update declaration.
17687         * modules/dirent (Depends-on): Add c++defs.
17688         (Makefile.am): Update dirent.h rule.
17689
17690         ctype: Make it usable in C++ code.
17691         * lib/ctype.in.h: Include c++defs.h.
17692         (isblank): Declare as extern "C".
17693         * modules/ctype (Depends-on): Add c++defs.
17694         (Makefile.am): Update ctype.h rule.
17695
17696         New module 'c++defs'.
17697         * modules/c++defs: New file.
17698         * build-aux/c++defs.h: New file.
17699         Reported by John W. Eaton <jwe@gnu.org>.
17700
17701 2010-03-07  Bruno Haible  <bruno@clisp.org>
17702
17703         logb: Provide missing declaration for Cygwin.
17704         * lib/math.in.h (logb): New declaration.
17705         * m4/logb.m4: New file.
17706         * modules/logb (Files): Add m4/logb.m4.
17707         (Depends-on): Add math.
17708         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
17709         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
17710         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
17711         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
17712         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
17713
17714 2010-03-07  Bruno Haible  <bruno@clisp.org>
17715
17716         Fix test-cond link error.
17717         * tests/test-cond.c: Include <stdio.h>.
17718
17719 2010-03-07  Bruno Haible  <bruno@clisp.org>
17720
17721         Fix test-dirent-safer link error.
17722         * modules/dirent-safer-tests (Makefile.am): Define
17723         test_dirent_safer_LDADD.
17724
17725 2010-03-07  Bruno Haible  <bruno@clisp.org>
17726
17727         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
17728         among default module list.
17729
17730 2010-03-07  Bruno Haible  <bruno@clisp.org>
17731
17732         Fix link error on platforms with GNU libiconv.
17733         * modules/unistr/u8-strcoll-tests (Makefile): Define
17734         test_u8_strcoll_LDADD.
17735         * modules/unistr/u16-strcoll-tests (Makefile): Define
17736         test_u16_strcoll_LDADD.
17737         * modules/unistr/u32-strcoll-tests (Makefile): Define
17738         test_u32_strcoll_LDADD.
17739
17740 2010-03-07  Bruno Haible  <bruno@clisp.org>
17741
17742         Use POSIX declarations for socket functions.
17743         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
17744         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
17745         rpl_sendto): Change declaration to match POSIX.
17746         * lib/connect.c (rpl_connect): Likewise.
17747         * lib/accept.c (rpl_accept): Likewise.
17748         * lib/bind.c (rpl_bind): Likewise.
17749         * lib/getpeername.c (rpl_getpeername): Likewise.
17750         * lib/getsockname.c (rpl_getsockname): Likewise.
17751         * lib/recv.c (rpl_recv): Likewise.
17752         * lib/send.c (rpl_send): Likewise.
17753         * lib/recvfrom.c (rpl_recvfrom): Likewise.
17754         * lib/sendto.c (rpl_sendto): Likewise.
17755
17756 2010-03-06  Bruno Haible  <bruno@clisp.org>
17757
17758         Clarify access, euidaccess, faccessat.
17759         * doc/posix-functions/faccessat.texi: Mention security problem under
17760         "Other problems", not "Portability problems".
17761         * doc/posix-functions/access.texi: Likewise. Mention a related security
17762         problem.
17763         * doc/glibc-functions/euidaccess.texi: Mention security problems.
17764         * lib/euidaccess.c: Add comments about platforms.
17765         * lib/unistd.in.h (access, euidaccess): Add warnings.
17766
17767 2010-03-07  Bruno Haible  <bruno@clisp.org>
17768
17769         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
17770         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
17771         (POSIX_SPAWN_SETSCHEDULER): Likewise.
17772         (POSIX_SPAWN_USEVFORK): Define in a way that works when
17773         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
17774         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
17775         declare when POSIX_SPAWN_SETSCHEDULER is zero.
17776         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
17777         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
17778         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
17779         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
17780         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
17781         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
17782         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
17783         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
17784         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
17785         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
17786         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
17787         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
17788         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
17789         Likewise.
17790         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
17791         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
17792         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
17793         Likewise.
17794         * tests/test-spawn.c (main): Make it work when
17795         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
17796
17797 2010-03-07  Bruno Haible  <bruno@clisp.org>
17798
17799         Fix incorrect Makefile.am generation in German locale.
17800         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
17801         Execute sed command with character range in C locale.
17802
17803 2010-03-06  Bruno Haible  <bruno@clisp.org>
17804
17805         Tests for module 'iconv-h'.
17806         * modules/iconv-h-tests: New file.
17807         * tests/test-iconv-h.c: New file.
17808
17809         New module 'iconv-h'.
17810         * modules/iconv-h: New file.
17811         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
17812         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
17813         (configure.ac): Remove gl_ICONV_H.
17814         (Makefile.am): Remove rule for iconv.h.
17815
17816 2010-03-06  Bruno Haible  <bruno@clisp.org>
17817
17818         More consistent naming of *.m4 files.
17819         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
17820         * modules/wctype (Files): Update.
17821
17822         More consistent naming of *.m4 files.
17823         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
17824         * modules/wchar (Files): Update.
17825
17826 2010-03-06  Jim Meyering  <meyering@redhat.com>
17827
17828         euidaccess: relax license to LGPLv2+
17829         * modules/euidaccess (License): Relax to LGPLv2+.
17830
17831 2010-03-06  Bruno Haible  <bruno@clisp.org>
17832
17833         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
17834         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
17835         (Makefile.am): Augment lib_SOURCES instead.
17836
17837 2010-03-04  Jim Meyering  <meyering@redhat.com>
17838
17839         utime: remove obsolete module
17840         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
17841         unnecessary for years, and has been marked as obsolete for 10 months.
17842         * modules/utime: Remove file.
17843         * lib/utime.c: Remove file.
17844         * m4/utime.m4: Remove file.
17845         * m4/utimes-null.m4: Remove file.
17846         * doc/posix-functions/utime.texi (utime): Remove reference to
17847         the module.  Move the sole "fixed by gnulib" item into the
17848         "problems not fixed by Gnulib" list.
17849         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
17850
17851 2010-03-05  Simon Josefsson  <simon@josefsson.org>
17852
17853         * modules/exit (License): Relax license to LGPLv2+.
17854         (Status): Mark as obsolete.
17855         * NEWS: Mention deprecated 'exit' module.
17856         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
17857         of now obsolete 'exit'.
17858
17859 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17860
17861         fts-lgpl: remove unused module
17862         * modules/fts-lgpl: Remove.
17863         * MODULES.html.sh (func_all_modules): Adjust.
17864         * check-module (find_included_lib_files): Adjust.
17865         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
17866
17867 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
17868
17869         copy-acl: enhance Solaris ACL error handling
17870         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
17871         * lib/set-mode-acl.c (qset_acl): Likewise.
17872
17873 2010-03-02  Bruno Haible  <bruno@clisp.org>
17874
17875         spawn: Don't override the system defined values on FreeBSD 8.
17876         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
17877         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
17878         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
17879         if HAVE_POSIX_SPAWN is 1.
17880         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
17881
17882 2010-03-01  Bruno Haible  <bruno@clisp.org>
17883
17884         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
17885         regarding Automake.
17886
17887 2010-02-25  Bruno Haible  <bruno@clisp.org>
17888
17889         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
17890         * gnulib-tool: Define 'echo' as a function only before the ksh alias
17891         setting, not afterwards.
17892         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
17893
17894 2010-02-24  Eric Blake  <eblake@redhat.com>
17895
17896         bootstrap, git-version-gen: use timestamp
17897         * build-aux/git-version-gen (scriptversion): Force UTC.
17898         * build-aux/bootstrap (scriptversion): New variable.
17899
17900         bootstrap: allow older git
17901         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
17902         older than 1.6.4.  Requested by the libvirt project.
17903
17904 2010-02-23  Eric Blake  <eblake@redhat.com>
17905
17906         warn-on-use: work with old autoconf
17907         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
17908         AS_VAR semantics of autoconf 2.60.
17909         Reported by Bruno Haible.
17910
17911         bootstrap: improve some comments
17912         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
17913         clarification comments.
17914
17915         gettimeofday: provide correct function
17916         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
17917         when replacement is declared, otherwise provide gettimeofday.
17918         Reported by Michael Goffioul.
17919
17920 2010-02-23  Jim Meyering  <meyering@redhat.com>
17921
17922         lib-ignore: relax license to "unlimited", not LGPLv2+
17923         * modules/lib-ignore (License): Relax to "unlimited".
17924
17925 2010-02-23  Jim Meyering  <meyering@redhat.com>
17926
17927         lib-ignore: relax license to LGPLv2+
17928         * modules/lib-ignore (License): Relax to LGPLv2+.
17929
17930 2010-02-22  Eric Blake  <eblake@redhat.com>
17931
17932         lseek: avoid bash 3.2 broken pipe bug
17933         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
17934         warning from bash 3.2.
17935         Reported by Ben Pfaff, with analysis from Bruno Haible.
17936
17937         bootstrap: support non-FSF copyright holder
17938         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
17939         bootstrap.conf override of COPYRIGHT_HOLDER.
17940         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
17941
17942         bootstrap: interoperate with gettext 0.14.1
17943         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
17944
17945         bootstrap: allow for alternate submodule location
17946         * build-aux/bootstrap (gnulib_path): New variable; use instead of
17947         hardcoding submodule location.
17948         (gnulib_mk): Allow direct use of Makefile.am.
17949
17950         bootstrap: use GNULIB_SRCDIR to reduce disk usage
17951         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
17952         rather than reconfiguring where the submodule points.
17953
17954         gettimeofday: restore support for platforms that lack function
17955         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
17956         replacement if function is missing.
17957         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
17958         * modules/sys_time (Makefile.am): Substitute it.
17959         * lib/sys_time.in.h (gettimeofday): Check it.
17960         Reported by Michael Goffioul.
17961
17962 2010-02-21  Bruno Haible  <bruno@clisp.org>
17963
17964         * lib/stdio.in.h (obstack_printf): Fix typo.
17965
17966 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
17967
17968         vc-list-files: use bzr ls's -R option
17969         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
17970         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
17971
17972 2010-02-21  Jim Meyering  <meyering@redhat.com>
17973
17974         init.sh: fix EXEEXT shims to work also for names like test-prog
17975         * tests/init.sh: Re-exec a better shell, when needed.
17976         If the current shell lacks support for posix $(...), an init.sh-using
17977         test will now try to find a shell that supports that.  If EXEEXT is
17978         nonempty, we also require support for hyphen-in-alias-name and shell
17979         substitutions like ${var#glob}.  Failure to find such a shell results
17980         in a skipped test.
17981
17982 2010-02-21  Bruno Haible  <bruno@clisp.org>
17983
17984         Really work around around "broken pipe" error message from bash 3.2.
17985         * gnulib-tool (func_reset_sigpipe): Remove function.
17986         (echo): In bash 3.2, define to a function that uses printf.
17987         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
17988
17989 2010-02-20  Bruno Haible  <bruno@clisp.org>
17990
17991         Restore support for automake 1.9.6 with autoconf 2.61.
17992         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
17993         Reported by James Youngman <jay@gnu.org>.
17994
17995 2010-02-20  Bruno Haible  <bruno@clisp.org>
17996
17997         Improve *printf warning condition.
17998         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
17999         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
18000         and the function is overridden due to SIGPIPE emulation.
18001
18002 2010-02-20  Bruno Haible  <bruno@clisp.org>
18003
18004         * lib/stdio.in.h: Tweak comments.
18005
18006 2010-02-19  Bruno Haible  <bruno@clisp.org>
18007
18008         Make it easier to find modules. New gnulib-tool option '--find'.
18009         * gnulib-tool: New option --find.
18010         (func_usage): Document it.
18011         (func_sanitize_modulelist): New function, extracted from
18012         func_all_modules.
18013         (func_all_modules): Invoke it.
18014         * doc/gnulib-tool.texi (Which modules?): New node.
18015
18016 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
18017
18018         * lib/sys_select.in.h: Provide select replacement even if
18019         sys/select.h exists on a system, for Interix.
18020
18021 2010-02-18  Jim Meyering  <meyering@redhat.com>
18022
18023         init.sh: don't use $(...) just yet
18024         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
18025         to accommodate e.g., Solaris' /bin/sh.
18026
18027 2010-02-17  Bruno Haible  <bruno@clisp.org>
18028
18029         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
18030         Reported by Ludovic Courtès <ludo@gnu.org>.
18031
18032 2010-02-16  Simon Josefsson  <simon@josefsson.org>
18033
18034         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
18035         linking with -lintl.
18036
18037 2010-02-17  Simon Josefsson  <simon@josefsson.org>
18038
18039         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
18040         if not provided by the system's netdb.h.  Reported by
18041         ludo@gnu.org (Ludovic Courtès).
18042
18043 2010-02-15  Jim Meyering  <meyering@redhat.com>
18044
18045         init.sh: improve portability and efficiency
18046         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
18047         "dummy" in a for loop.
18048         Use '!', not '^' to select the complement of a character set used
18049         in a "case" statement.
18050         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
18051         Suggestions from Eric Blake.
18052
18053         init.sh: automatically accommodate programs with the .exe suffix
18054         Automatically arrange for an invocation of "prog" to execute the
18055         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
18056         may use the simpler "prog", yet still work when built on a system
18057         that requires specifying the added suffix.
18058         Do this by constructing a function named "prog" that invokes
18059         "prog.exe" for each .exe file in selected directories.
18060         * tests/init.sh (find_exe_basenames_): New function.
18061         (create_exe_shim_functions_): New function.
18062         (path_prepend_): Use it.
18063
18064         maint.mk: mark syntax-check sc_*.m rules as .PHONY
18065         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
18066         "make -t syntax-check" doesn't create a ton of sc_*.m files.
18067
18068 2010-02-14  Jim Meyering  <meyering@redhat.com>
18069
18070         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
18071         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
18072         (sc_prohibit_hash_pjw_without_use): New rule.
18073
18074         maint.mk: allow the default upload destination dir to be overridden
18075         * top/maint.mk (upload_dest_dir_): Define with a default that
18076         preserves the status quo.
18077         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
18078         Reported by Peter Simons.
18079
18080         maint.mk: prohibit inclusion of "hash.h" without_use
18081         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
18082
18083 2010-02-10  Jim Meyering  <meyering@redhat.com>
18084
18085         maint.mk: prohibit inclusion of "ignore-value.h" without_use
18086         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
18087
18088 2010-02-09  Eric Blake  <ebb9@byu.net>
18089         and Bruno Haible  <bruno@clisp.org>
18090
18091         obstack-printf-posix: ensure declaration
18092         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
18093         extracted from gl_FUNC_OBSTACK_PRINTF.
18094         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
18095         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
18096         Likewise.
18097         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
18098         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
18099         0.
18100
18101 2010-02-08  Bruno Haible  <bruno@clisp.org>
18102
18103         gnulib-tool: Fix typo in 2010-02-07 commit.
18104         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
18105         Reported by Eric Blake.
18106
18107 2010-02-07  Bruno Haible  <bruno@clisp.org>
18108
18109         gnulib-tool: Fix up caching patches.
18110         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
18111         option --no-cache. Use associative arrays when supported by the shell.
18112         (sed_comments): New variable.
18113         (modcache): Renamed from do_cache.
18114         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
18115         abbreviate unnecessarily.
18116         (have_associative): New variable.
18117         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
18118         way also for ksh and zsh.
18119         (func_init_sed_convert_to_cache_statements): New function, extracted
18120         from func_cache_lookup_module. Add support for associative arrays.
18121         Don't set the c_MODULE_cached variable here. Ignore all lines before
18122         the first field header. Remove only the final newline, not all trailing
18123         newlines. Support empty fields correctly. Limit the use of 'eval' to
18124         assignments.
18125         (func_get_description, func_get_status, func_get_notice,
18126         func_get_applicability, func_get_filelist, func_get_dependencies,
18127         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
18128         func_get_automake_snippet, func_get_include_directive,
18129         func_get_link_directive, func_get_license, func_get_maintainer):
18130         Update documentation. List the unoptimized code first. Add support for
18131         associative arrays. Limit the use of 'eval' to assignments.
18132         (func_get_applicability): Undo stylistic pessimisations.
18133         (func_get_automake_snippet, func_get_include_directive): Reduce code
18134         duplication.
18135         (func_modules_transitive_closure, func_modules_add_dummy,
18136         func_modules_notice, func_modules_to_filelist, func_add_file,
18137         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
18138         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
18139         func_create_testdir, func_create_megatestdir): Update documentation.
18140
18141 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18142
18143         * gnulib-tool (func_cache_lookup_module): Store the module name
18144         belonging to the cache variable; error out if two different
18145         module names map to the same cache variable name.
18146
18147 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18148
18149         gnulib-tool: Make caching optional.
18150         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
18151         Update matching short versions of --no-changelog.
18152         (func_usage): Update.
18153         (sed_extract_cache_prog): Renamed from ...
18154         (sed_extract_prog): ... this; revert to old extraction script.
18155         (func_get_description, func_get_status)
18156         (func_get_notice, func_get_applicability, func_get_filelist)
18157         (func_get_dependencies, func_get_autoconf_early_snippet)
18158         (func_get_autoconf_snippet, func_get_automake_snippet)
18159         (func_get_include_directive, func_get_link_directive)
18160         (func_get_license, func_get_maintainer): If $do_cache is false,
18161         use old, non-caching extraction scripts.
18162         Suggestion by Bruno Haible.
18163
18164 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18165
18166         gnulib-tool: cache module metainformation.
18167         * gnulib-tool (sed_extract_prog): Match newline before each
18168         header, and rewrite header to a shell variable suffix.
18169         (func_cache_var, func_cache_lookup_module): New functions,
18170         to turn a module name into a cache variable prefix, and to
18171         look up and cache module metainformation.
18172         (func_get_description, func_get_status)
18173         (func_get_notice, func_get_applicability, func_get_filelist)
18174         (func_get_dependencies, func_get_autoconf_early_snippet)
18175         (func_get_autoconf_snippet, func_get_automake_snippet)
18176         (func_get_include_directive, func_get_link_directive)
18177         (func_get_license, func_get_maintainer): Use
18178         func_cache_lookup_module.
18179
18180 2010-02-07  Bruno Haible  <bruno@clisp.org>
18181
18182         fnctl: Fix missing dependency.
18183         * modules/fcntl (Depends-on): Add getdtablesize.
18184         Reported by John W. Eaton <jwe@gnu.org>.
18185
18186 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18187
18188         Argp: fix recognition of short alias options.
18189
18190         * lib/argp-parse.c (convert_options): Fix improper use of
18191         `|' between character values.
18192         * tests/test-argp.c (group1_option): New alias option
18193         --read (-r).
18194         (group1_parser): Special handling for 'r'.
18195         (test15): New test case.
18196         (test_fun): Add test15.
18197         * tests/test-argp-2.sh: Update expected --help and --usage
18198         outputs.
18199
18200 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
18201
18202         * tests/test-argp.c: Fix indentation.
18203
18204 2010-02-04  Eric Blake  <ebb9@byu.net>
18205
18206         gettimeofday: expose type of second argument
18207         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
18208         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
18209         * tests/test-gettimeofday.c: Use it to silence warning.
18210         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
18211         the issue.
18212
18213 2010-02-03  Jim Meyering  <meyering@redhat.com>
18214
18215         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
18216         * lib/regcomp.c (TYPE_SIGNED): Define.
18217         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
18218
18219         regcomp.c: avoid a new -Wshadow warning
18220         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
18221
18222 2010-02-01  Jim Meyering  <meyering@redhat.com>
18223
18224         removing useless parentheses in cpp #define directives
18225         For motivation, see commit c0221df4, "define STREQ(a,b)
18226         consistently, removing useless parentheses"
18227         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
18228         * lib/mountlist.c (MNT_IGNORE): Likewise.
18229         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
18230
18231 2010-02-01  Eric Blake  <ebb9@byu.net>
18232
18233         sys_time: use link-warning
18234         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
18235         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
18236         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
18237         * modules/sys_time (Depends-on): Add warn-on-use.
18238         (Makefile.am): Always build replacement.
18239         (configure.ac): Update substitutions.
18240         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
18241         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
18242         bother with SYS_TIME_H.
18243         * modules/gettimeofday (configure.ac): Declare indicator.
18244         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
18245         in use.
18246
18247         closein-tests: silence compiler warning
18248         * tests/test-closein.c (main): Ignore fread result.
18249         * modules/closein-tests (Depends-on): Add ignore-value.
18250
18251         tests: silence warning about system return
18252         * tests/test-areadlink-with-size.c (main): Ignore system result.
18253         * tests/test-areadlink.c (main): Likewise.
18254         * tests/test-areadlinkat-with-size.c (main): Likewise.
18255         * tests/test-areadlinkat.c (main): Likewise.
18256         * tests/test-canonicalize-lgpl.c (main): Likewise.
18257         * tests/test-canonicalize.c (main): Likewise.
18258         * tests/test-chown.c (main): Likewise.
18259         * tests/test-fchownat.c (main): Likewise.
18260         * tests/test-fdutimensat.c (main): Likewise.
18261         * tests/test-fstatat.c (main): Likewise.
18262         * tests/test-futimens.c (main): Likewise.
18263         * tests/test-lchown.c (main): Likewise.
18264         * tests/test-link.c (main): Likewise.
18265         * tests/test-linkat.c (main): Likewise.
18266         * tests/test-lstat.c (main): Likewise.
18267         * tests/test-mkdir.c (main): Likewise.
18268         * tests/test-mkdirat.c (main): Likewise.
18269         * tests/test-mkfifo.c (main): Likewise.
18270         * tests/test-mkfifoat.c (main): Likewise.
18271         * tests/test-mknod.c (main): Likewise.
18272         * tests/test-readlink.c (main): Likewise.
18273         * tests/test-remove.c (main): Likewise.
18274         * tests/test-rename.c (main): Likewise.
18275         * tests/test-renameat.c (main): Likewise.
18276         * tests/test-rmdir.c (main): Likewise.
18277         * tests/test-symlink.c (main): Likewise.
18278         * tests/test-symlinkat.c (main): Likewise.
18279         * tests/test-unlink.c (main): Likewise.
18280         * tests/test-unlinkat.c (main): Likewise.
18281         * tests/test-utimens.c (main): Likewise.
18282         * tests/test-utimensat.c (main): Likewise.
18283         * modules/areadlink-tests (Depends-on): Add ignore-value.
18284         * modules/areadlink-with-size-tests (Depends-on): Likewise.
18285         * modules/areadlinkat-tests (Depends-on): Likewise.
18286         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
18287         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18288         * modules/canonicalize-tests (Depends-on): Likewise.
18289         * modules/chown-tests (Depends-on): Likewise.
18290         * modules/fdutimensat-tests (Depends-on): Likewise.
18291         * modules/futimens-tests (Depends-on): Likewise.
18292         * modules/lchown-tests (Depends-on): Likewise.
18293         * modules/link-tests (Depends-on): Likewise.
18294         * modules/linkat-tests (Depends-on): Likewise.
18295         * modules/lstat-tests (Depends-on): Likewise.
18296         * modules/mkdir-tests (Depends-on): Likewise.
18297         * modules/mkfifo-tests (Depends-on): Likewise.
18298         * modules/mkfifoat-tests (Depends-on): Likewise.
18299         * modules/mknod-tests (Depends-on): Likewise.
18300         * modules/openat-tests (Depends-on): Likewise.
18301         * modules/readlink-tests (Depends-on): Likewise.
18302         * modules/remove-tests (Depends-on): Likewise.
18303         * modules/rename-tests (Depends-on): Likewise.
18304         * modules/renameat-tests (Depends-on): Likewise.
18305         * modules/rmdir-tests (Depends-on): Likewise.
18306         * modules/symlink-tests (Depends-on): Likewise.
18307         * modules/symlinkat-tests (Depends-on): Likewise.
18308         * modules/unlink-tests (Depends-on): Likewise.
18309         * modules/utimens-tests (Depends-on): Likewise.
18310         * modules/utimensat-tests (Depends-on): Likewise.
18311
18312 2010-01-31  Bruno Haible  <bruno@clisp.org>
18313
18314         Perform the same test for many <math.h> functions.
18315         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
18316         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
18317         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
18318         of gl_MATHFUNC.
18319         * modules/acos (configure.ac): Likewise.
18320         * modules/asin (configure.ac): Likewise.
18321         * modules/atan (configure.ac): Likewise.
18322         * modules/atan2 (configure.ac): Likewise.
18323         * modules/cbrt (configure.ac): Likewise.
18324         * modules/copysign (configure.ac): Likewise.
18325         * modules/cos (configure.ac): Likewise.
18326         * modules/cosh (configure.ac): Likewise.
18327         * modules/erf (configure.ac): Likewise.
18328         * modules/erfc (configure.ac): Likewise.
18329         * modules/exp (configure.ac): Likewise.
18330         * modules/fmod (configure.ac): Likewise.
18331         * modules/hypot (configure.ac): Likewise.
18332         * modules/j0 (configure.ac): Likewise.
18333         * modules/j1 (configure.ac): Likewise.
18334         * modules/jn (configure.ac): Likewise.
18335         * modules/lgamma (configure.ac): Likewise.
18336         * modules/log (configure.ac): Likewise.
18337         * modules/log10 (configure.ac): Likewise.
18338         * modules/log1p (configure.ac): Likewise.
18339         * modules/pow (configure.ac): Likewise.
18340         * modules/remainder (configure.ac): Likewise.
18341         * modules/sin (configure.ac): Likewise.
18342         * modules/sinh (configure.ac): Likewise.
18343         * modules/tan (configure.ac): Likewise.
18344         * modules/tanh (configure.ac): Likewise.
18345         * modules/y0 (configure.ac): Likewise.
18346         * modules/y1 (configure.ac): Likewise.
18347         * modules/yn (configure.ac): Likewise.
18348         Suggested by Paolo Bonzini.
18349
18350 2010-01-31  Bruno Haible  <bruno@clisp.org>
18351
18352         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
18353
18354 2010-01-31  Bruno Haible  <bruno@clisp.org>
18355
18356         Work around getdelim() bug on FreeBSD 8.0.
18357         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
18358         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
18359         not work.
18360         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
18361         is 1.
18362         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
18363         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
18364         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
18365         a non-zero size.
18366         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
18367
18368 2010-01-31  Bruno Haible  <bruno@clisp.org>
18369
18370         Work around getline() bug on FreeBSD 8.0.
18371         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
18372         and a non-zero size.
18373         * tests/test-getline.c (main): Likewise.
18374         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
18375         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
18376
18377 2010-01-28  Eric Blake  <ebb9@byu.net>
18378
18379         regex: fix build failure
18380         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
18381         platforms.
18382
18383 2010-01-28  Jim Meyering  <meyering@redhat.com>
18384
18385         regex: do not ignore memory allocation failure
18386         * lib/regex_internal.c (create_cd_newstate): Detect
18387         re_node_set_init_copy failure.   Extracted from glibc commit
18388         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18389
18390         regex: sync more white-space changes from libc
18391         * lib/regex_internal.c: White-space only changes.
18392         * lib/regexec.c: Likewise.
18393
18394         regex: add many uses of __attribute_warn_unused_result__
18395         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
18396         * lib/regexec.c: Likewise.
18397         Extracted from a messy glibc commit.
18398
18399         regcomp.c: spelling and merge-artifact from glibc
18400         * lib/regcomp.c: Merge remainder of glibc's
18401         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18402
18403         regcomp.c: sync white-space changes from glibc
18404         * lib/regcomp.c: Merge to accommodate white space
18405         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
18406
18407         regcomp.c: do not ignore internal return values
18408         * lib/regcomp.c: Do not ignore internal return values.
18409         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
18410         but without its white-space changes and spelling fixes.
18411
18412         regex_internal.h: define __attribute_warn_unused_result__
18413         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
18414
18415         maint: add a syntax-check rule to check for vulnerable Makefile.in
18416         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
18417
18418 2010-01-27  Jim Meyering  <meyering@redhat.com>
18419
18420         ncftpput-ftp: clean up spaces
18421         * build-aux/ncftpput-ftp: Make Copyright line consistent.
18422         Remove trailing blanks.
18423
18424 2010-01-27  Simon Josefsson  <simon@josefsson.org>
18425
18426         * build-aux/git-version-gen: Fix copyright statement.
18427         * build-aux/gnupload: Likewise.
18428         * tests/test-arcfour.c: Likewise.
18429         * tests/test-arctwo.c: Likewise.
18430         * tests/test-count-one-bits.c: Likewise.
18431         * tests/test-crc.c: Likewise.
18432         * tests/test-des.c: Likewise.
18433         * tests/test-gc-arcfour.c: Likewise.
18434         * tests/test-gc-arctwo.c: Likewise.
18435         * tests/test-gc-des.c: Likewise.
18436         * tests/test-gc-hmac-md5.c: Likewise.
18437         * tests/test-gc-hmac-sha1.c: Likewise.
18438         * tests/test-gc-md2.c: Likewise.
18439         * tests/test-gc-md4.c: Likewise.
18440         * tests/test-gc-md5.c: Likewise.
18441         * tests/test-gc-pbkdf2-sha1.c: Likewise.
18442         * tests/test-gc-rijndael.c: Likewise.
18443         * tests/test-gc-sha1.c: Likewise.
18444         * tests/test-gc.c: Likewise.
18445         * tests/test-gethostname.c: Likewise.
18446         * tests/test-gettimeofday.c: Likewise.
18447         * tests/test-hash.c: Likewise.
18448         * tests/test-hmac-md5.c: Likewise.
18449         * tests/test-hmac-sha1.c: Likewise.
18450         * tests/test-md2.c: Likewise.
18451         * tests/test-md4.c: Likewise.
18452         * tests/test-md5.c: Likewise.
18453         * tests/test-memchr.c: Likewise.
18454         * tests/test-memchr2.c: Likewise.
18455         * tests/test-memcmp.c: Likewise.
18456         * tests/test-memmem.c: Likewise.
18457         * tests/test-memrchr.c: Likewise.
18458         * tests/test-rawmemchr.c: Likewise.
18459         * tests/test-read-file.c: Likewise.
18460         * tests/test-rijndael.c: Likewise.
18461         * tests/test-sockets.c: Likewise.
18462         * tests/test-strchrnul.c: Likewise.
18463         * tests/test-strstr.c: Likewise.
18464         * tests/test-strtod.c: Likewise.
18465         * build-aux/ncftpput-ftp: Likewise.
18466
18467 2010-01-26  Eric Blake  <ebb9@byu.net>
18468
18469         ignore-value: update recommended header name
18470         * modules/ignore-value (Include): Only use <> for headers that
18471         exist in glibc.
18472
18473 2010-01-26  Jim Meyering  <meyering@redhat.com>
18474
18475         test-userspec.c: avoid compiler warnings
18476         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
18477         and "initialization discards qualifiers..." warnings.
18478         Put the first "uid" in its own scope, and make char* members "const".
18479
18480 2010-01-25  Bruno Haible  <bruno@clisp.org>
18481
18482         gnulib-tool: Make warning diagnostics consistent.
18483         * gnulib-tool (func_warning): New function.
18484         Use it everywhere where gnulib-tool produces output to stderr and it is
18485         not a fatal error.
18486
18487 2010-01-25  Bruno Haible  <bruno@clisp.org>
18488
18489         Fix test dependencies.
18490         * modules/xstrtol-tests (Depends-on): Add inttypes.
18491         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
18492
18493 2010-01-25 Pádraig Brady <P@draigBrady.com>
18494
18495         syntax-check: detect incorrect boolean macro values in config.h
18496         * modules/maintainer-makefile (configure.ac): Parameterize the location
18497         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
18498         The logic is from Eric Blake and the location indicated by Jim Meyering.
18499         Note the more natural CONFIG_HEADER name is prohibited by automake
18500         for backwards compatibility reasons.
18501         * top/maint.mk (sc_Wundef_boolean): New rule.
18502
18503 2010-01-25  Jim Meyering  <meyering@redhat.com>
18504
18505         bootstrap: detect MacOS 10.6's shasum, too
18506         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
18507         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
18508
18509 2010-01-23  Jim Meyering  <meyering@redhat.com>
18510
18511         xstrtoll: new module
18512         * modules/xstrtoll: New file.
18513         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
18514         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
18515         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
18516         ./configure fails if you use this module and lack "long long".
18517         * modules/xstrtoll-tests: New module.
18518         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
18519         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
18520         new init.sh-based test framework.
18521
18522 2010-01-24  Bruno Haible  <bruno@clisp.org>
18523
18524         Tests for module 'yn'.
18525         * modules/yn-tests: New file.
18526         * tests/test-yn.c: New file.
18527
18528         Tests for module 'y1'.
18529         * modules/y1-tests: New file.
18530         * tests/test-y1.c: New file.
18531
18532         Tests for module 'y0'.
18533         * modules/y0-tests: New file.
18534         * tests/test-y0.c: New file.
18535
18536         Tests for module 'tanh'.
18537         * modules/tanh-tests: New file.
18538         * tests/test-tanh.c: New file.
18539
18540         Tests for module 'tan'.
18541         * modules/tan-tests: New file.
18542         * tests/test-tan.c: New file.
18543
18544         Tests for module 'sqrt'.
18545         * modules/sqrt-tests: New file.
18546         * tests/test-sqrt.c: New file.
18547
18548         Tests for module 'sinh'.
18549         * modules/sinh-tests: New file.
18550         * tests/test-sinh.c: New file.
18551
18552         Tests for module 'sin'.
18553         * modules/sin-tests: New file.
18554         * tests/test-sin.c: New file.
18555
18556         Tests for module 'rint'.
18557         * modules/rint-tests: New file.
18558         * tests/test-rint.c: New file.
18559
18560         Tests for module 'remainder'.
18561         * modules/remainder-tests: New file.
18562         * tests/test-remainder.c: New file.
18563
18564         Tests for module 'pow'.
18565         * modules/pow-tests: New file.
18566         * tests/test-pow.c: New file.
18567
18568         Tests for module 'nextafter'.
18569         * modules/nextafter-tests: New file.
18570         * tests/test-nextafter.c: New file.
18571
18572         Tests for module 'modf'.
18573         * modules/modf-tests: New file.
18574         * tests/test-modf.c: New file.
18575
18576         Tests for module 'logb'.
18577         * modules/logb-tests: New file.
18578         * tests/test-logb.c: New file.
18579
18580         Tests for module 'log1p'.
18581         * modules/log1p-tests: New file.
18582         * tests/test-log1p.c: New file.
18583
18584         Tests for module 'log10'.
18585         * modules/log10-tests: New file.
18586         * tests/test-log10.c: New file.
18587
18588         Tests for module 'log'.
18589         * modules/log-tests: New file.
18590         * tests/test-log.c: New file.
18591
18592         Tests for module 'lgamma'.
18593         * modules/lgamma-tests: New file.
18594         * tests/test-lgamma.c: New file.
18595
18596         Tests for module 'ldexp'.
18597         * modules/ldexp-tests: New file.
18598         * tests/test-ldexp.c: New file.
18599
18600         Tests for module 'jn'.
18601         * modules/jn-tests: New file.
18602         * tests/test-jn.c: New file.
18603
18604         Tests for module 'j1'.
18605         * modules/j1-tests: New file.
18606         * tests/test-j1.c: New file.
18607
18608         Tests for module 'j0'.
18609         * modules/j0-tests: New file.
18610         * tests/test-j0.c: New file.
18611
18612         Tests for module 'hypot'.
18613         * modules/hypot-tests: New file.
18614         * tests/test-hypot.c: New file.
18615
18616         Tests for module 'fmod'.
18617         * modules/fmod-tests: New file.
18618         * tests/test-fmod.c: New file.
18619
18620         Tests for module 'fabs'.
18621         * modules/fabs-tests: New file.
18622         * tests/test-fabs.c: New file.
18623
18624         Tests for module 'exp'.
18625         * modules/exp-tests: New file.
18626         * tests/test-exp.c: New file.
18627
18628         Tests for module 'erfc'.
18629         * modules/erfc-tests: New file.
18630         * tests/test-erfc.c: New file.
18631
18632         Tests for module 'erf'.
18633         * modules/erf-tests: New file.
18634         * tests/test-erf.c: New file.
18635
18636         Tests for module 'cosh'.
18637         * modules/cosh-tests: New file.
18638         * tests/test-cosh.c: New file.
18639
18640         Tests for module 'cos'.
18641         * modules/cos-tests: New file.
18642         * tests/test-cos.c: New file.
18643
18644         Tests for module 'copysign'.
18645         * modules/copysign-tests: New file.
18646         * tests/test-copysign.c: New file.
18647
18648         Tests for module 'cbrt'.
18649         * modules/cbrt-tests: New file.
18650         * tests/test-cbrt.c: New file.
18651
18652         Tests for module 'atan2'.
18653         * modules/atan2-tests: New file.
18654         * tests/test-atan2.c: New file.
18655
18656         Tests for module 'atan'.
18657         * modules/atan-tests: New file.
18658         * tests/test-atan.c: New file.
18659
18660         Tests for module 'asin'.
18661         * modules/asin-tests: New file.
18662         * tests/test-asin.c: New file.
18663
18664         Tests for module 'acos'.
18665         * modules/acos-tests: New file.
18666         * tests/test-acos.c: New file.
18667
18668 2010-01-24  Bruno Haible  <bruno@clisp.org>
18669
18670         Fix tests for common <math.h> functions.
18671         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
18672         code snippet that references the function pointer, rather than merely
18673         calling the function. Substitute the FUNC_LIBM variable.
18674         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
18675         * modules/acos (configure.ac): Likewise.
18676         * modules/asin (configure.ac): Likewise.
18677         * modules/atan (configure.ac): Likewise.
18678         * modules/atan2 (configure.ac): Likewise.
18679         * modules/cbrt (configure.ac): Likewise.
18680         * modules/copysign (configure.ac): Likewise.
18681         * modules/cos (configure.ac): Likewise.
18682         * modules/cosh (configure.ac): Likewise.
18683         * modules/erf (configure.ac): Likewise.
18684         * modules/erfc (configure.ac): Likewise.
18685         * modules/exp (configure.ac): Likewise.
18686         * modules/fabs (configure.ac): Likewise.
18687         * modules/fmod (configure.ac): Likewise.
18688         * modules/hypot (configure.ac): Likewise.
18689         * modules/j0 (configure.ac): Likewise.
18690         * modules/j1 (configure.ac): Likewise.
18691         * modules/jn (configure.ac): Likewise.
18692         * modules/ldexp (configure.ac): Likewise.
18693         * modules/lgamma (configure.ac): Likewise.
18694         * modules/log (configure.ac): Likewise.
18695         * modules/log10 (configure.ac): Likewise.
18696         * modules/log1p (configure.ac): Likewise.
18697         * modules/logb (configure.ac): Likewise.
18698         * modules/modf (configure.ac): Likewise.
18699         * modules/nextafter (configure.ac): Likewise.
18700         * modules/pow (configure.ac): Likewise.
18701         * modules/remainder (configure.ac): Likewise.
18702         * modules/rint (configure.ac): Likewise.
18703         * modules/sin (configure.ac): Likewise.
18704         * modules/sinh (configure.ac): Likewise.
18705         * modules/tan (configure.ac): Likewise.
18706         * modules/tanh (configure.ac): Likewise.
18707         * modules/y0 (configure.ac): Likewise.
18708         * modules/y1 (configure.ac): Likewise.
18709         * modules/yn (configure.ac): Likewise.
18710
18711 2010-01-24  Bruno Haible  <bruno@clisp.org>
18712
18713         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
18714         * tests/test-acosl.c (x): New variable.
18715         (main): Store argument in x and fetch it from x.
18716         * tests/test-asinl.c (x): New variable.
18717         (main): Store argument in x and fetch it from x.
18718         * tests/test-atanl.c (x): New variable.
18719         (main): Store argument in x and fetch it from x.
18720         * tests/test-cosl.c (x): New variable.
18721         (main): Store argument in x and fetch it from x.
18722         * tests/test-expl.c (x): New variable.
18723         (main): Store argument in x and fetch it from x.
18724         * tests/test-logl.c (x): New variable.
18725         (main): Store argument in x and fetch it from x.
18726         * tests/test-sinl.c (x): New variable.
18727         (main): Store argument in x and fetch it from x.
18728         * tests/test-sqrtl.c (x): New variable.
18729         (main): Store argument in x and fetch it from x.
18730         * tests/test-tanl.c (x): New variable.
18731         (main): Store argument in x and fetch it from x.
18732
18733 2010-01-24  Bruno Haible  <bruno@clisp.org>
18734
18735         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
18736         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
18737         assignments to the initial TESTS_ENVIRONMENT.
18738         * doc/gnulib.texi (Unit test modules): Document it.
18739         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
18740         TESTS_ENVIRONMENT.
18741         * modules/btowc-tests (Makefile.am): Likewise.
18742         * modules/c-stack-tests (Makefile.am): Likewise.
18743         * modules/c-strcase-tests (Makefile.am): Likewise.
18744         * modules/copy-file-tests (Makefile.am): Likewise.
18745         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
18746         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
18747         * modules/mbrtowc-tests (Makefile.am): Likewise.
18748         * modules/mbscasecmp-tests (Makefile.am): Likewise.
18749         * modules/mbscasestr-tests (Makefile.am): Likewise.
18750         * modules/mbschr-tests (Makefile.am): Likewise.
18751         * modules/mbscspn-tests (Makefile.am): Likewise.
18752         * modules/mbsinit-tests (Makefile.am): Likewise.
18753         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
18754         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
18755         * modules/mbspbrk-tests (Makefile.am): Likewise.
18756         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
18757         * modules/mbsrchr-tests (Makefile.am): Likewise.
18758         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
18759         * modules/mbsspn-tests (Makefile.am): Likewise.
18760         * modules/mbsstr-tests (Makefile.am): Likewise.
18761         * modules/nl_langinfo-tests (Makefile.am): Likewise.
18762         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
18763         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
18764         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
18765         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
18766         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
18767         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
18768         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
18769         * modules/wcrtomb-tests (Makefile.am): Likewise.
18770         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
18771         * modules/wcsrtombs-tests (Makefile.am): Likewise.
18772         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
18773         assignments from TESTS_ENVIRONMENT.
18774         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
18775         augmentation.
18776         * modules/argp-version-etc-tests (Makefile.am): Likewise.
18777         * modules/atexit-tests (Makefile.am): Likewise.
18778         * modules/binary-io-tests (Makefile.am): Likewise.
18779         * modules/closein-tests (Makefile.am): Likewise.
18780         * modules/dprintf-posix-tests (Makefile.am): Likewise.
18781         * modules/exclude-tests (Makefile.am): Likewise.
18782         * modules/fflush-tests (Makefile.am): Likewise.
18783         * modules/fpending-tests (Makefile.am): Likewise.
18784         * modules/fprintf-posix-tests (Makefile.am): Likewise.
18785         * modules/freadahead-tests (Makefile.am): Likewise.
18786         * modules/freadptr-tests (Makefile.am): Likewise.
18787         * modules/freadseek-tests (Makefile.am): Likewise.
18788         * modules/fseek-tests (Makefile.am): Likewise.
18789         * modules/fseeko-tests (Makefile.am): Likewise.
18790         * modules/ftell-tests (Makefile.am): Likewise.
18791         * modules/ftello-tests (Makefile.am): Likewise.
18792         * modules/idpriv-drop-tests (Makefile.am): Likewise.
18793         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
18794         * modules/lseek-tests (Makefile.am): Likewise.
18795         * modules/parse-duration-tests (Makefile.am): Likewise.
18796         * modules/perror-tests (Makefile.am): Likewise.
18797         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
18798         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
18799         * modules/pipe-tests (Makefile.am): Likewise.
18800         * modules/pread-tests (Makefile.am): Likewise.
18801         * modules/printf-posix-tests (Makefile.am): Likewise.
18802         * modules/select-tests (Makefile.am): Likewise.
18803         * modules/sigpipe-tests (Makefile.am): Likewise.
18804         * modules/tsearch-tests (Makefile.am): Likewise.
18805         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
18806         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
18807         * modules/uniname/uniname-tests (Makefile.am): Likewise.
18808         * modules/uniwidth/width-tests (Makefile.am): Likewise.
18809         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
18810         * modules/version-etc-tests (Makefile.am): Likewise.
18811         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
18812         * modules/vprintf-posix-tests (Makefile.am): Likewise.
18813         * modules/xalloc-die-tests (Makefile.am): Likewise.
18814         * modules/xprintf-posix-tests (Makefile.am): Likewise.
18815         * modules/xstrtoimax-tests (Makefile.am): Likewise.
18816         * modules/xstrtol-tests (Makefile.am): Likewise.
18817         * modules/xstrtoumax-tests (Makefile.am): Likewise.
18818         * modules/yesno-tests (Makefile.am): Likewise.
18819         Suggested by Jim Meyering.
18820
18821 2010-01-24  Bruno Haible  <bruno@clisp.org>
18822
18823         More documentation.
18824         * doc/gnulib.texi (Writing modules): New chapter.
18825         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
18826         the new chapter.
18827
18828 2010-01-24  Jim Meyering  <meyering@redhat.com>
18829
18830         maint.mk: do not prepend "./" after filtering
18831         * top/maint.mk (_prepend_srcdir_prefix): New variable
18832         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
18833         "./" when $(srcdir) is ".".
18834
18835         define STREQ(a,b) consistently, removing useless parentheses
18836         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
18837         since the only risk is that "a" or "b" contains an unparenthesized
18838         comma, but if either did that, STREQ would have 3 or more arguments.
18839         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
18840         * lib/fts.c (STREQ): Remove unnecessary parentheses.
18841         * lib/hash-triple.c (STREQ): Likewise.
18842         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
18843         * lib/getugroups.c (STREQ): Likewise.
18844
18845 2010-01-23  Jim Meyering  <meyering@redhat.com>
18846
18847         maint.mk: fix syntax-check in a non-srcdir build directory
18848         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
18849         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
18850
18851 2010-01-22  Jim Meyering  <meyering@redhat.com>
18852
18853         userspec: add unit tests
18854         * tests/test-userspec.c: New file.
18855         * modules/userspec-tests: Likewise.
18856
18857 2010-01-21  Jim Meyering  <meyering@redhat.com>
18858
18859         maint.mk: handle source file names containing "." robustly
18860         * top/maint.mk (_dot_escaped_srcdir): Define.
18861         (VC_LIST): Use it in LHS of sed substitution.
18862
18863 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
18864
18865         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
18866         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
18867         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
18868         from a non-srcdir build.
18869
18870 2010-01-20  Eric Blake  <ebb9@byu.net>
18871
18872         warn-on-use: use instead of link-warning
18873         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
18874         * modules/unistd (Depends-on, Makefile.am): Likewise.
18875         * modules/arpa_inet (Depends-on): Replace link-warning with
18876         warn-on-use.
18877         (Makefile.am): Update rules accordingly.
18878         * modules/ctype (Depends-on, Makefile.am): Likewise.
18879         * modules/dirent (Depends-on, Makefile.am): Likewise.
18880         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
18881         * modules/inttypes (Depends-on, Makefile.am): Likewise.
18882         * modules/langinfo (Depends-on, Makefile.am): Likewise.
18883         * modules/locale (Depends-on, Makefile.am): Likewise.
18884         * modules/math (Depends-on, Makefile.am): Likewise.
18885         * modules/search (Depends-on, Makefile.am): Likewise.
18886         * modules/signal (Depends-on, Makefile.am): Likewise.
18887         * modules/spawn (Depends-on, Makefile.am): Likewise.
18888         * modules/stdlib (Depends-on, Makefile.am): Likewise.
18889         * modules/string (Depends-on, Makefile.am): Likewise.
18890         * modules/strings (Depends-on, Makefile.am): Likewise.
18891         * modules/sys_file (Depends-on, Makefile.am): Likewise.
18892         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
18893         * modules/sys_select (Depends-on, Makefile.am): Likewise.
18894         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
18895         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
18896         * modules/sys_times (Depends-on, Makefile.am): Likewise.
18897         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
18898         * modules/wchar (Depends-on, Makefile.am): Likewise.
18899         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
18900         should be poisoned.
18901         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
18902         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
18903         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
18904         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
18905         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
18906         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
18907         * m4/math_h.m4 (gl_MATH_H): Likewise.
18908         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
18909         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
18910         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
18911         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
18912         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
18913         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
18914         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
18915         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
18916         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
18917         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
18918         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
18919         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
18920         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
18921         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
18922         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
18923         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
18924         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
18925         GL_LINK_WARNING.
18926         * lib/ctype.in.h: Likewise.
18927         * lib/dirent.in.h: Likewise.
18928         * lib/fcntl.in.h: Likewise.
18929         * lib/inttypes.in.h: Likewise.
18930         * lib/langinfo.in.h: Likewise.
18931         * lib/locale.in.h: Likewise.
18932         * lib/math.in.h: Likewise.
18933         * lib/search.in.h: Likewise.
18934         * lib/signal.in.h: Likewise.
18935         * lib/spawn.in.h: Likewise.
18936         * lib/stdio.in.h: Likewise.
18937         * lib/stdlib.in.h: Likewise.
18938         * lib/string.in.h: Likewise.
18939         * lib/strings.in.h: Likewise.
18940         * lib/sys_file.in.h: Likewise.
18941         * lib/sys_ioctl.in.h: Likewise.
18942         * lib/sys_select.in.h: Likewise.
18943         * lib/sys_socket.in.h: Likewise.
18944         * lib/sys_stat.in.h: Likewise.
18945         * lib/sys_times.in.h: Likewise.
18946         * lib/sys_utsname.in.h: Likewise.
18947         * lib/unistd.in.h: Likewise.
18948         * lib/wchar.in.h: Likewise.
18949
18950 2010-01-20  Bruno Haible  <bruno@clisp.org>
18951
18952         Avoid duplicate -lm.
18953         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
18954         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
18955         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
18956         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
18957         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
18958         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
18959         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
18960         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
18961         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
18962         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
18963         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
18964         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
18965         Reported by Paolo Bonzini.
18966
18967 2010-01-19  Bruno Haible  <bruno@clisp.org>
18968
18969         langinfo, nl_langinfo: Relicense under LGPLv2+.
18970         * modules/langinfo (License): Change to LGPLv2+.
18971         * modules/nl_langinfo (License): Likewise.
18972         Patch by David Lutterkort <lutter@redhat.com>.
18973
18974 2010-01-19  Bruno Haible  <bruno@clisp.org>
18975
18976         Avoid compilation error with cc on OSF/1 5.1.
18977         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
18978         statement, not before.
18979         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18980
18981 2010-01-18  Bruno Haible  <bruno@clisp.org>
18982
18983         Avoid a link error due to the __printf__ symbol.
18984         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
18985         and 2.6.x.
18986         (__format__, __printf__): Remove definitions.
18987         * lib/argp-fmtstream.h: Likewise.
18988         * lib/argp.h: Likewise.
18989         * lib/error.h: Likewise.
18990         * lib/vasnprintf.h: Likewise.
18991         * lib/xprintf.h: Likewise.
18992         * lib/xvasprintf.h: Likewise.
18993         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18994
18995 2010-01-18  Bruno Haible  <bruno@clisp.org>
18996
18997         Tests for module 'tanl'.
18998         * modules/tanl-tests: New file.
18999         * tests/test-tanl.c: New file.
19000
19001         Tests for module 'sqrtl'.
19002         * modules/sqrtl-tests: New file.
19003         * tests/test-sqrtl.c: New file.
19004
19005         Tests for module 'sinl'.
19006         * modules/sinl-tests: New file.
19007         * tests/test-sinl.c: New file.
19008
19009         Tests for module 'logl'.
19010         * modules/logl-tests: New file.
19011         * tests/test-logl.c: New file.
19012
19013         Tests for module 'expl'.
19014         * modules/expl-tests: New file.
19015         * tests/test-expl.c: New file.
19016
19017         Tests for module 'cosl'.
19018         * modules/cosl-tests: New file.
19019         * tests/test-cosl.c: New file.
19020
19021         Tests for module 'atanl'.
19022         * modules/atanl-tests: New file.
19023         * tests/test-atanl.c: New file.
19024
19025         Tests for module 'asinl'.
19026         * modules/asinl-tests: New file.
19027         * tests/test-asinl.c: New file.
19028
19029         Tests for module 'acosl'.
19030         * modules/acosl-tests: New file.
19031         * tests/test-acosl.c: New file.
19032
19033         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
19034         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
19035         tanl): Use the standard gnulib idiom.
19036         * lib/cosl.c: Don't include trigl.c and sincosl.c.
19037         * lib/sinl.c: Likewise.
19038         * lib/tanl.c: Don't include trigl.c.
19039         (kernel_tanl): Make static.
19040         * lib/sincosl.c: Include trigl.h first.
19041         * lib/trigl.c: Likewise.
19042         * m4/acosl.m4: New file.
19043         * m4/asinl.m4: New file.
19044         * m4/atanl.m4: New file.
19045         * m4/cosl.m4: New file.
19046         * m4/expl.m4: New file.
19047         * m4/logl.m4: New file.
19048         * m4/sinl.m4: New file.
19049         * m4/sqrtl.m4: New file.
19050         * m4/tanl.m4: New file.
19051         * m4/mathl.m4: Remove file.
19052         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
19053         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
19054         Don't initialize GNULIB_MATHL.
19055         * modules/acosl: New file.
19056         * modules/asinl: New file.
19057         * modules/atanl: New file.
19058         * modules/cosl: New file.
19059         * modules/expl: New file.
19060         * modules/logl: New file.
19061         * modules/sinl: New file.
19062         * modules/sqrtl: New file.
19063         * modules/tanl: New file.
19064         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
19065         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
19066         substitute GNULIB_MATHL.
19067         * modules/mathl: Rewritten.
19068         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
19069         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
19070         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
19071         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
19072         * doc/posix-functions/expl.texi: Mention the 'expl' module.
19073         * doc/posix-functions/logl.texi: Mention the 'logl' module.
19074         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
19075         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
19076         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
19077
19078 2010-01-18  Bruno Haible  <bruno@clisp.org>
19079
19080         sqrt: Make gl_FUNC_SQRT requirable.
19081         * m4/sqrt.m4: New file.
19082         * modules/sqrt (Files): Add it.
19083         (configure.ac): Invoke gl_FUNC_SQRT.
19084
19085 2010-01-18  Bruno Haible  <bruno@clisp.org>
19086
19087         New modules for common <math.h> functions.
19088         * m4/mathfunc.m4: New file.
19089         * modules/acos: New file.
19090         * modules/asin: New file.
19091         * modules/atan: New file.
19092         * modules/atan2: New file.
19093         * modules/cbrt: New file.
19094         * modules/copysign: New file.
19095         * modules/cos: New file.
19096         * modules/cosh: New file.
19097         * modules/erf: New file.
19098         * modules/erfc: New file.
19099         * modules/exp: New file.
19100         * modules/fabs: New file.
19101         * modules/fmod: New file.
19102         * modules/hypot: New file.
19103         * modules/j0: New file.
19104         * modules/j1: New file.
19105         * modules/jn: New file.
19106         * modules/ldexp: New file.
19107         * modules/lgamma: New file.
19108         * modules/log: New file.
19109         * modules/log10: New file.
19110         * modules/log1p: New file.
19111         * modules/logb: New file.
19112         * modules/modf: New file.
19113         * modules/nextafter: New file.
19114         * modules/pow: New file.
19115         * modules/remainder: New file.
19116         * modules/rint: New file.
19117         * modules/sin: New file.
19118         * modules/sinh: New file.
19119         * modules/sqrt: New file.
19120         * modules/tan: New file.
19121         * modules/tanh: New file.
19122         * modules/y0: New file.
19123         * modules/y1: New file.
19124         * modules/yn: New file.
19125         * doc/posix-functions/acos.texi: Mention the 'acos' module.
19126         * doc/posix-functions/asin.texi: Mention the 'asin' module.
19127         * doc/posix-functions/atan.texi: Mention the 'atan' module.
19128         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
19129         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
19130         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
19131         * doc/posix-functions/cos.texi: Mention the 'cos' module.
19132         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
19133         * doc/posix-functions/erf.texi: Mention the 'erf' module.
19134         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
19135         * doc/posix-functions/exp.texi: Mention the 'exp' module.
19136         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
19137         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
19138         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
19139         * doc/posix-functions/j0.texi: Mention the 'j0' module.
19140         * doc/posix-functions/j1.texi: Mention the 'j1' module.
19141         * doc/posix-functions/jn.texi: Mention the 'jn' module.
19142         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
19143         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
19144         * doc/posix-functions/log.texi: Mention the 'log' module.
19145         * doc/posix-functions/log10.texi: Mention the 'log10' module.
19146         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
19147         * doc/posix-functions/logb.texi: Mention the 'logb' module.
19148         * doc/posix-functions/modf.texi: Mention the 'modf' module.
19149         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
19150         * doc/posix-functions/pow.texi: Mention the 'pow' module.
19151         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
19152         * doc/posix-functions/rint.texi: Mention the 'rint' module.
19153         * doc/posix-functions/sin.texi: Mention the 'sin' module.
19154         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
19155         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
19156         * doc/posix-functions/tan.texi: Mention the 'tan' module.
19157         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
19158         * doc/posix-functions/y0.texi: Mention the 'y0' module.
19159         * doc/posix-functions/y1.texi: Mention the 'y1' module.
19160         * doc/posix-functions/yn.texi: Mention the 'yn' module.
19161
19162 2010-01-18  Jim Meyering  <meyering@redhat.com>
19163
19164         ignore-value: relax license to LGPLv2+
19165         * modules/ignore-value (License): Relax to LGPLv2+.
19166
19167         getdate: don't leak when TZ contains two or more '"'s
19168         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
19169         double quote in TZ after the first one.
19170
19171         readtokens: do not leak internal token_lengths buffer
19172         * lib/readtokens.c (readtokens): Free the local, lengths,
19173         when the supplied "token_lengths" parameter is NULL.
19174
19175 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19176
19177         Fix a couple of missing LIBTHREAD link failures on AIX.
19178         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
19179         $(LIBTHREAD).
19180         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
19181
19182         Link test-poll against INET_PTON_LIB.
19183         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
19184         for inet_pton on Solaris 10.
19185
19186 2010-01-17  Bruno Haible  <bruno@clisp.org>
19187
19188         unistdio/*-sprintf: Fix typo in module description.
19189         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
19190         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
19191         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
19192         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
19193         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
19194         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
19195         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
19196         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19197
19198 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19199
19200         gnulib-tool: fix filelist for AIX, HP-UX ksh.
19201         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
19202         variables in shell case patterns, for AIX and HP-UX ksh.
19203
19204         Split large sed scripts, for HP-UX sed.
19205         * modules/stdio: Split sed scripts around 50 sed commands,
19206         to avoid HP-UX limit of 99 commands, in the near future.
19207         * modules/string: Likewise.
19208         * modules/unistd: Likewise.
19209
19210         gnulib-tool: avoid writing in the current directory.
19211         * gnulib-tool (func_emit_lib_Makefile_am)
19212         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
19213         not in the current directory, so concurrent gnulib-tool
19214         instances do not interfere.
19215
19216 2010-01-16  Jim Meyering  <meyering@redhat.com>
19217
19218         doc: update users.txt
19219         * users.txt: Add grep.
19220         (diffutils, gzip): Update URLs.
19221
19222 2010-01-12  Bruno Haible  <bruno@clisp.org>
19223
19224         posix_spawn: Avoid test failure on Cygwin.
19225         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
19226         characters.
19227         Reported by Simon Josefsson.
19228
19229 2010-01-12  Bruno Haible  <bruno@clisp.org>
19230
19231         * tests/test-cond.c (main): When skipping the test, show the reason.
19232
19233 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19234
19235         * lib/striconv.c (str_cd_iconv): Avoid if before free.
19236
19237 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19238
19239         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
19240         VC_LIST_ALWAYS_EXCLUDE_REGEX.
19241
19242 2010-01-12  Eric Blake  <ebb9@byu.net>
19243
19244         build: guarantee AS_VAR_IF
19245         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
19246         (gl_AS_VAR_IF): Move...
19247         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
19248         Reported by Simon Josefsson.
19249
19250 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19251
19252         * lib/stdio.in.h: Fix typo.
19253
19254 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19255
19256         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
19257         libgpg-error.
19258
19259 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19260
19261         * tests/test-xalloc-die.sh: Use $EXEEXT.
19262
19263 2010-01-12  Simon Josefsson  <simon@josefsson.org>
19264             Bruno Haible  <bruno@clisp.org>
19265
19266         getlogin, getlogin_r: Avoid test failure.
19267         * tests/test-getlogin.c: Include <stdio.h>.
19268         (main): Skip the test when the function fails because stdin is not a
19269         tty.
19270         * tests/test-getlogin_r.c: Include <stdio.h>.
19271         (main): Skip the test when the function fails because stdin is not a
19272         tty.
19273
19274 2010-01-11  Eric Blake  <ebb9@byu.net>
19275
19276         tests: avoid more large file warnings
19277         * tests/test-fflush.c: Avoid warning about ftell use.
19278         * tests/test-fseek.c: Avoid warning about fseek use.
19279
19280 2010-01-10  Bruno Haible  <bruno@clisp.org>
19281
19282         nproc: Work better on Linux when /proc and /sys are not mounted.
19283         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
19284         as lower bound when, on glibc/Linux systems,
19285         sysconf (_SC_NPROCESSORS_CONF) returns 1.
19286         Suggested by Pádraig Brady <P@draigbrady.com>.
19287         Reported by Dmitry V. Levin <ldv@altlinux.org>.
19288
19289         nproc: Refactor.
19290         * lib/nproc.c (num_processors_via_affinity_mask): New function,
19291         extracted from num_processors.
19292         (num_processors): Call it.
19293
19294 2010-01-11  Jim Meyering  <meyering@redhat.com>
19295
19296         utimecmp: avoid new warning from upcoming gcc-4.5.0
19297         * lib/utimecmp.c (BILLION): Define using #define rather than an
19298         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
19299
19300 2010-01-11  Eric Blake  <ebb9@byu.net>
19301
19302         math: add portability warnings for classification macros
19303         * modules/math (Depends-on): Add warn-on-use.
19304         (Makefile.am): Provide new substitutions.
19305         * m4/math_h.m4 (gl_MATH_H): Require inline.
19306         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
19307         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
19308         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
19309         implement warnings.
19310
19311         unistd: warn on use of environ without module
19312         * modules/unistd (Depends-on): Add warn-on-use.
19313         (Makefile.am): Provide new substitutions.
19314         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
19315         * lib/unistd.in.h (environ): Wrap with a warning helper function.
19316
19317         stdio: warn on suspicious uses
19318         * modules/stdio (Depends-on): Add warn-on-use.
19319         (Makefile.am): Provide new substitutions.
19320         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
19321         fseeko.
19322         * lib/stdio.in.h (gets): Always warn on use.
19323         (fseek, ftell): Adjust when warnings are issued, and honor
19324         _GL_NO_LARGE_FILES as a way to silence the warning.
19325         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
19326         any warning about large file offsets.
19327         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
19328         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
19329         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
19330         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
19331         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
19332         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
19333         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
19334         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
19335
19336         warn-on-use: new module
19337         * modules/warn-on-use: New file.
19338         * build-aux/warn-on-use.h: Likewise.
19339         * m4/warn-on-use.m4: Likewise.
19340         * MODULES.html.sh (Support for building): Mention it.
19341
19342 2010-01-10  Bruno Haible  <bruno@clisp.org>
19343
19344         Tests for module 'unistr/u32-strdup'.
19345         * modules/unistr/u32-strdup-tests: New file.
19346         * tests/unistr/test-u32-strdup.c: New file.
19347
19348         Tests for module 'unistr/u16-strdup'.
19349         * modules/unistr/u16-strdup-tests: New file.
19350         * tests/unistr/test-u16-strdup.c: New file.
19351
19352         Tests for module 'unistr/u8-strdup'.
19353         * modules/unistr/u8-strdup-tests: New file.
19354         * tests/unistr/test-u8-strdup.c: New file.
19355         * tests/unistr/test-strdup.h: New file.
19356
19357         Tests for module 'unistr/u32-strncmp'.
19358         * modules/unistr/u32-strncmp-tests: New file.
19359         * tests/unistr/test-u32-strncmp.c: New file.
19360
19361         Tests for module 'unistr/u16-strncmp'.
19362         * modules/unistr/u16-strncmp-tests: New file.
19363         * tests/unistr/test-u16-strncmp.c: New file.
19364
19365         Tests for module 'unistr/u8-strncmp'.
19366         * modules/unistr/u8-strncmp-tests: New file.
19367         * tests/unistr/test-u8-strncmp.c: New file.
19368         * tests/unistr/test-strncmp.h: New file.
19369
19370         Tests for module 'unistr/u32-strcoll'.
19371         * modules/unistr/u32-strcoll-tests: New file.
19372         * tests/unistr/test-u32-strcoll.c: New file.
19373
19374         Tests for module 'unistr/u16-strcoll'.
19375         * modules/unistr/u16-strcoll-tests: New file.
19376         * tests/unistr/test-u16-strcoll.c: New file.
19377
19378         Tests for module 'unistr/u8-strcoll'.
19379         * modules/unistr/u8-strcoll-tests: New file.
19380         * tests/unistr/test-u8-strcoll.c: New file.
19381
19382         Tests for module 'unistr/u32-strcmp'.
19383         * modules/unistr/u32-strcmp-tests: New file.
19384         * tests/unistr/test-u32-strcmp.c: New file.
19385         * tests/unistr/test-u32-strcmp.h: New file.
19386
19387         Tests for module 'unistr/u16-strcmp'.
19388         * modules/unistr/u16-strcmp-tests: New file.
19389         * tests/unistr/test-u16-strcmp.c: New file.
19390         * tests/unistr/test-u16-strcmp.h: New file.
19391
19392         Tests for module 'unistr/u8-strcmp'.
19393         * modules/unistr/u8-strcmp-tests: New file.
19394         * tests/unistr/test-u8-strcmp.c: New file.
19395         * tests/unistr/test-u8-strcmp.h: New file.
19396         * tests/unistr/test-strcmp.h: New file.
19397
19398         Tests for module 'unistr/u32-strncat'.
19399         * modules/unistr/u32-strncat-tests: New file.
19400         * tests/unistr/test-u32-strncat.c: New file.
19401
19402         Tests for module 'unistr/u16-strncat'.
19403         * modules/unistr/u16-strncat-tests: New file.
19404         * tests/unistr/test-u16-strncat.c: New file.
19405
19406         Tests for module 'unistr/u8-strncat'.
19407         * modules/unistr/u8-strncat-tests: New file.
19408         * tests/unistr/test-u8-strncat.c: New file.
19409         * tests/unistr/test-strncat.h: New file.
19410
19411         Tests for module 'unistr/u32-strcat'.
19412         * modules/unistr/u32-strcat-tests: New file.
19413         * tests/unistr/test-u32-strcat.c: New file.
19414
19415         Tests for module 'unistr/u16-strcat'.
19416         * modules/unistr/u16-strcat-tests: New file.
19417         * tests/unistr/test-u16-strcat.c: New file.
19418
19419         Tests for module 'unistr/u8-strcat'.
19420         * modules/unistr/u8-strcat-tests: New file.
19421         * tests/unistr/test-u8-strcat.c: New file.
19422         * tests/unistr/test-strcat.h: New file.
19423
19424         Tests for module 'unistr/u32-stpncpy'.
19425         * modules/unistr/u32-stpncpy-tests: New file.
19426         * tests/unistr/test-u32-stpncpy.c: New file.
19427
19428         Tests for module 'unistr/u16-stpncpy'.
19429         * modules/unistr/u16-stpncpy-tests: New file.
19430         * tests/unistr/test-u16-stpncpy.c: New file.
19431
19432         Tests for module 'unistr/u8-stpncpy'.
19433         * modules/unistr/u8-stpncpy-tests: New file.
19434         * tests/unistr/test-u8-stpncpy.c: New file.
19435         * tests/unistr/test-stpncpy.h: New file.
19436
19437         Tests for module 'unistr/u32-strncpy'.
19438         * modules/unistr/u32-strncpy-tests: New file.
19439         * tests/unistr/test-u32-strncpy.c: New file.
19440
19441         Tests for module 'unistr/u16-strncpy'.
19442         * modules/unistr/u16-strncpy-tests: New file.
19443         * tests/unistr/test-u16-strncpy.c: New file.
19444
19445         Tests for module 'unistr/u8-strncpy'.
19446         * modules/unistr/u8-strncpy-tests: New file.
19447         * tests/unistr/test-u8-strncpy.c: New file.
19448         * tests/unistr/test-strncpy.h: New file.
19449
19450         Tests for module 'unistr/u32-stpcpy'.
19451         * modules/unistr/u32-stpcpy-tests: New file.
19452         * tests/unistr/test-u32-stpcpy.c: New file.
19453
19454         Tests for module 'unistr/u16-stpcpy'.
19455         * modules/unistr/u16-stpcpy-tests: New file.
19456         * tests/unistr/test-u16-stpcpy.c: New file.
19457
19458         Tests for module 'unistr/u8-stpcpy'.
19459         * modules/unistr/u8-stpcpy-tests: New file.
19460         * tests/unistr/test-u8-stpcpy.c: New file.
19461         * tests/unistr/test-stpcpy.h: New file.
19462
19463         Tests for module 'unistr/u32-strcpy'.
19464         * modules/unistr/u32-strcpy-tests: New file.
19465         * tests/unistr/test-u32-strcpy.c: New file.
19466
19467         Tests for module 'unistr/u16-strcpy'.
19468         * modules/unistr/u16-strcpy-tests: New file.
19469         * tests/unistr/test-u16-strcpy.c: New file.
19470
19471         Tests for module 'unistr/u8-strcpy'.
19472         * modules/unistr/u8-strcpy-tests: New file.
19473         * tests/unistr/test-u8-strcpy.c: New file.
19474         * tests/unistr/test-strcpy.h: New file.
19475
19476         Tests for module 'unistr/u32-strnlen'.
19477         * modules/unistr/u32-strnlen-tests: New file.
19478         * tests/unistr/test-u32-strnlen.c: New file.
19479
19480         Tests for module 'unistr/u16-strnlen'.
19481         * modules/unistr/u16-strnlen-tests: New file.
19482         * tests/unistr/test-u16-strnlen.c: New file.
19483
19484         Tests for module 'unistr/u8-strnlen'.
19485         * modules/unistr/u8-strnlen-tests: New file.
19486         * tests/unistr/test-u8-strnlen.c: New file.
19487         * tests/unistr/test-strnlen.h: New file.
19488
19489         Tests for module 'unistr/u32-strlen'.
19490         * modules/unistr/u32-strlen-tests: New file.
19491         * tests/unistr/test-u32-strlen.c: New file.
19492
19493         Tests for module 'unistr/u16-strlen'.
19494         * modules/unistr/u16-strlen-tests: New file.
19495         * tests/unistr/test-u16-strlen.c: New file.
19496
19497         Tests for module 'unistr/u8-strlen'.
19498         * modules/unistr/u8-strlen-tests: New file.
19499         * tests/unistr/test-u8-strlen.c: New file.
19500
19501         Tests for module 'unistr/u32-prev'.
19502         * modules/unistr/u32-prev-tests: New file.
19503         * tests/unistr/test-u32-prev.c: New file.
19504
19505         Tests for module 'unistr/u16-prev'.
19506         * modules/unistr/u16-prev-tests: New file.
19507         * tests/unistr/test-u16-prev.c: New file.
19508
19509         Tests for module 'unistr/u8-prev'.
19510         * modules/unistr/u8-prev-tests: New file.
19511         * tests/unistr/test-u8-prev.c: New file.
19512
19513         Tests for module 'unistr/u32-next'.
19514         * modules/unistr/u32-next-tests: New file.
19515         * tests/unistr/test-u32-next.c: New file.
19516
19517         Tests for module 'unistr/u16-next'.
19518         * modules/unistr/u16-next-tests: New file.
19519         * tests/unistr/test-u16-next.c: New file.
19520
19521         Tests for module 'unistr/u8-next'.
19522         * modules/unistr/u8-next-tests: New file.
19523         * tests/unistr/test-u8-next.c: New file.
19524
19525         Tests for module 'unistr/u32-strmbtouc'.
19526         * modules/unistr/u32-strmbtouc-tests: New file.
19527         * tests/unistr/test-u32-strmbtouc.c: New file.
19528
19529         Tests for module 'unistr/u16-strmbtouc'.
19530         * modules/unistr/u16-strmbtouc-tests: New file.
19531         * tests/unistr/test-u16-strmbtouc.c: New file.
19532
19533         Tests for module 'unistr/u8-strmbtouc'.
19534         * modules/unistr/u8-strmbtouc-tests: New file.
19535         * tests/unistr/test-u8-strmbtouc.c: New file.
19536
19537         Tests for module 'unistr/u32-strmblen'.
19538         * modules/unistr/u32-strmblen-tests: New file.
19539         * tests/unistr/test-u32-strmblen.c: New file.
19540
19541         Tests for module 'unistr/u16-strmblen'.
19542         * modules/unistr/u16-strmblen-tests: New file.
19543         * tests/unistr/test-u16-strmblen.c: New file.
19544
19545         Tests for module 'unistr/u8-strmblen'.
19546         * modules/unistr/u8-strmblen-tests: New file.
19547         * tests/unistr/test-u8-strmblen.c: New file.
19548
19549         Tests for module 'unistr/u32-cpy-alloc'.
19550         * modules/unistr/u32-cpy-alloc-tests: New file.
19551         * tests/unistr/test-u32-cpy-alloc.c: New file.
19552
19553         Tests for module 'unistr/u16-cpy-alloc'.
19554         * modules/unistr/u16-cpy-alloc-tests: New file.
19555         * tests/unistr/test-u16-cpy-alloc.c: New file.
19556
19557         Tests for module 'unistr/u8-cpy-alloc'.
19558         * modules/unistr/u8-cpy-alloc-tests: New file.
19559         * tests/unistr/test-u8-cpy-alloc.c: New file.
19560         * tests/unistr/test-cpy-alloc.h: New file.
19561
19562         Tests for module 'unistr/u32-mbsnlen'.
19563         * modules/unistr/u32-mbsnlen-tests: New file.
19564         * tests/unistr/test-u32-mbsnlen.c: New file.
19565
19566         Tests for module 'unistr/u16-mbsnlen'.
19567         * modules/unistr/u16-mbsnlen-tests: New file.
19568         * tests/unistr/test-u16-mbsnlen.c: New file.
19569
19570         Tests for module 'unistr/u8-mbsnlen'.
19571         * modules/unistr/u8-mbsnlen-tests: New file.
19572         * tests/unistr/test-u8-mbsnlen.c: New file.
19573
19574         Tests for module 'unistr/u32-chr'.
19575         * modules/unistr/u32-chr-tests: New file.
19576         * tests/unistr/test-u32-chr.c: New file.
19577
19578         Tests for module 'unistr/u16-chr'.
19579         * modules/unistr/u16-chr-tests: New file.
19580         * tests/unistr/test-u16-chr.c: New file.
19581
19582         Tests for module 'unistr/u8-chr'.
19583         * modules/unistr/u8-chr-tests: New file.
19584         * tests/unistr/test-u8-chr.c: New file.
19585         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
19586
19587         Tests for module 'unistr/u32-cmp2'.
19588         * modules/unistr/u32-cmp2-tests: New file.
19589         * tests/unistr/test-u32-cmp2.c: New file.
19590
19591         Tests for module 'unistr/u16-cmp2'.
19592         * modules/unistr/u16-cmp2-tests: New file.
19593         * tests/unistr/test-u16-cmp2.c: New file.
19594
19595         Tests for module 'unistr/u8-cmp2'.
19596         * modules/unistr/u8-cmp2-tests: New file.
19597         * tests/unistr/test-u8-cmp2.c: New file.
19598         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
19599
19600         Tests for module 'unistr/u32-cmp'.
19601         * modules/unistr/u32-cmp-tests: New file.
19602         * tests/unistr/test-u32-cmp.c: New file.
19603
19604         Tests for module 'unistr/u16-cmp'.
19605         * modules/unistr/u16-cmp-tests: New file.
19606         * tests/unistr/test-u16-cmp.c: New file.
19607
19608         Tests for module 'unistr/u8-cmp'.
19609         * modules/unistr/u8-cmp-tests: New file.
19610         * tests/unistr/test-u8-cmp.c: New file.
19611         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
19612
19613         Tests for module 'unistr/u32-set'.
19614         * modules/unistr/u32-set-tests: New file.
19615         * tests/unistr/test-u32-set.c: New file.
19616
19617         Tests for module 'unistr/u16-set'.
19618         * modules/unistr/u16-set-tests: New file.
19619         * tests/unistr/test-u16-set.c: New file.
19620
19621         Tests for module 'unistr/u8-set'.
19622         * modules/unistr/u8-set-tests: New file.
19623         * tests/unistr/test-u8-set.c: New file.
19624         * tests/unistr/test-set.h: New file.
19625
19626         Tests for module 'unistr/u32-move'.
19627         * modules/unistr/u32-move-tests: New file.
19628         * tests/unistr/test-u32-move.c: New file.
19629
19630         Tests for module 'unistr/u16-move'.
19631         * modules/unistr/u16-move-tests: New file.
19632         * tests/unistr/test-u16-move.c: New file.
19633
19634         Tests for module 'unistr/u8-move'.
19635         * modules/unistr/u8-move-tests: New file.
19636         * tests/unistr/test-u8-move.c: New file.
19637         * tests/unistr/test-move.h: New file.
19638
19639         Tests for module 'unistr/u32-cpy'.
19640         * modules/unistr/u32-cpy-tests: New file.
19641         * tests/unistr/test-u32-cpy.c: New file.
19642
19643         Tests for module 'unistr/u16-cpy'.
19644         * modules/unistr/u16-cpy-tests: New file.
19645         * tests/unistr/test-u16-cpy.c: New file.
19646
19647         Tests for module 'unistr/u8-cpy'.
19648         * modules/unistr/u8-cpy-tests: New file.
19649         * tests/unistr/test-u8-cpy.c: New file.
19650         * tests/unistr/test-cpy.h: New file.
19651
19652 2010-01-09  Bruno Haible  <bruno@clisp.org>
19653
19654         Tests for module 'unistr/u32-uctomb'.
19655         * modules/unistr/u32-uctomb-tests: New file.
19656         * tests/unistr/test-u32-uctomb.c: New file.
19657
19658         Tests for module 'unistr/u16-uctomb'.
19659         * modules/unistr/u16-uctomb-tests: New file.
19660         * tests/unistr/test-u16-uctomb.c: New file.
19661
19662         Tests for module 'unistr/u8-uctomb'.
19663         * modules/unistr/u8-uctomb-tests: New file.
19664         * tests/unistr/test-u8-uctomb.c: New file.
19665
19666         Tests for module 'unistr/u32-mbtoucr'.
19667         * modules/unistr/u32-mbtoucr-tests: New file.
19668         * tests/unistr/test-u32-mbtoucr.c: New file.
19669
19670         Tests for module 'unistr/u16-mbtoucr'.
19671         * modules/unistr/u16-mbtoucr-tests: New file.
19672         * tests/unistr/test-u16-mbtoucr.c: New file.
19673
19674         Tests for module 'unistr/u8-mbtoucr'.
19675         * modules/unistr/u8-mbtoucr-tests: New file.
19676         * tests/unistr/test-u8-mbtoucr.c: New file.
19677
19678         Tests for module 'unistr/u32-mbtouc'.
19679         * modules/unistr/u32-mbtouc-tests: New file.
19680         * tests/unistr/test-u32-mbtouc.c: New file.
19681
19682         Tests for module 'unistr/u16-mbtouc'.
19683         * modules/unistr/u16-mbtouc-tests: New file.
19684         * tests/unistr/test-u16-mbtouc.c: New file.
19685
19686         Tests for module 'unistr/u8-mbtouc'.
19687         * modules/unistr/u8-mbtouc-tests: New file.
19688         * tests/unistr/test-u8-mbtouc.c: New file.
19689
19690         Tests for module 'unistr/u32-mbtouc-unsafe'.
19691         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
19692         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
19693         * tests/unistr/test-u32-mbtouc.h: New file.
19694
19695         Tests for module 'unistr/u16-mbtouc-unsafe'.
19696         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
19697         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
19698         * tests/unistr/test-u16-mbtouc.h: New file.
19699
19700         Tests for module 'unistr/u8-mbtouc-unsafe'.
19701         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
19702         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
19703         * tests/unistr/test-u8-mbtouc.h: New file.
19704
19705         Tests for module 'unistr/u32-mblen'.
19706         * modules/unistr/u32-mblen-tests: New file.
19707         * tests/unistr/test-u32-mblen.c: New file.
19708
19709         Tests for module 'unistr/u16-mblen'.
19710         * modules/unistr/u16-mblen-tests: New file.
19711         * tests/unistr/test-u16-mblen.c: New file.
19712
19713         Tests for module 'unistr/u8-mblen'.
19714         * modules/unistr/u8-mblen-tests: New file.
19715         * tests/unistr/test-u8-mblen.c: New file.
19716
19717         Tests for module 'unistr/u32-to-u16'.
19718         * modules/unistr/u32-to-u16-tests: New file.
19719         * tests/unistr/test-u32-to-u16.c: New file.
19720
19721         Tests for module 'unistr/u32-to-u8'.
19722         * modules/unistr/u32-to-u8-tests: New file.
19723         * tests/unistr/test-u32-to-u8.c: New file.
19724
19725         Tests for module 'unistr/u16-to-u32'.
19726         * modules/unistr/u16-to-u32-tests: New file.
19727         * tests/unistr/test-u16-to-u32.c: New file.
19728
19729         Tests for module 'unistr/u16-to-u8'.
19730         * modules/unistr/u16-to-u8-tests: New file.
19731         * tests/unistr/test-u16-to-u8.c: New file.
19732
19733         Tests for module 'unistr/u8-to-u32'.
19734         * modules/unistr/u8-to-u32-tests: New file.
19735         * tests/unistr/test-u8-to-u32.c: New file.
19736
19737         Tests for module 'unistr/u8-to-u16'.
19738         * modules/unistr/u8-to-u16-tests: New file.
19739         * tests/unistr/test-u8-to-u16.c: New file.
19740
19741         Tests for module 'unistr/u32-check'.
19742         * modules/unistr/u32-check-tests: New file.
19743         * tests/unistr/test-u32-check.c: New file.
19744
19745         Tests for module 'unistr/u16-check'.
19746         * modules/unistr/u16-check-tests: New file.
19747         * tests/unistr/test-u16-check.c: New file.
19748
19749         Tests for module 'unistr/u8-check'.
19750         * modules/unistr/u8-check-tests: New file.
19751         * tests/unistr/test-u8-check.c: New file.
19752
19753         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
19754         (category_equals): New function.
19755         (main): Add more tests.
19756         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
19757
19758         * tests/unictype/test-bidi_byname.c (main): Add more tests.
19759
19760 2010-01-10  Bruno Haible  <bruno@clisp.org>
19761
19762         unistr/u*-strcoll: Try harder to distinguish different strings.
19763         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
19764         compare s1 and s2 to see if they are different.
19765
19766 2010-01-10  Bruno Haible  <bruno@clisp.org>
19767
19768         unistr/u*-stpncpy: Fix the return value.
19769         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
19770         description of the return value consistent with stpncpy in glibc.
19771         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
19772         written non-NUL unit.
19773
19774 2010-01-10  Bruno Haible  <bruno@clisp.org>
19775
19776         unistr/u*-next: Add missing dependencies.
19777         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
19778         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
19779         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
19780
19781 2010-01-10  Bruno Haible  <bruno@clisp.org>
19782
19783         unistr/u8-mbsnlen: Fix return value for incomplete character.
19784         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
19785         u8_mblen.
19786         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
19787         Remove unistr/u8-mblen.
19788         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
19789         u16_mblen.
19790         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
19791         Remove unistr/u16-mblen.
19792
19793 2010-01-10  Bruno Haible  <bruno@clisp.org>
19794
19795         wchar: Fix compilation error when <wchar.h> is used from coreutils.
19796         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
19797         Reported by Brian Gough <bjg@gnu.org> and
19798         Chris Clayton <chris2553@googlemail.com> via
19799         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
19800
19801 2010-01-09  Bruno Haible  <bruno@clisp.org>
19802
19803         unistr/u16-to-u32: Reject invalid input.
19804         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
19805         u16_mbtouc.
19806         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
19807         Remove unistr/u16-mbtouc.
19808
19809         unistr/u16-to-u8: Reject invalid input.
19810         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
19811         u16_mbtouc.
19812         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
19813         Remove unistr/u16-mbtouc.
19814
19815         unistr/u8-to-u32: Reject invalid input.
19816         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
19817         u8_mbtouc.
19818         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
19819         Remove unistr/u8-mbtouc.
19820
19821         unistr/u8-to-u16: Reject invalid input.
19822         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
19823         u8_mbtouc.
19824         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
19825         Remove unistr/u8-mbtouc.
19826
19827 2010-01-09  Bruno Haible  <bruno@clisp.org>
19828
19829         Tests for module 'getlogin'.
19830         * modules/getlogin-tests: New file.
19831         * tests/test-getlogin.c: New file.
19832
19833         New module 'getlogin'.
19834         * lib/unistd.in.h (getlogin): New declaration.
19835         * lib/getlogin.c: New file.
19836         * m4/getlogin.m4: New file.
19837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
19838         HAVE_GETLOGIN.
19839         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
19840         HAVE_GETLOGIN.
19841         * modules/getlogin: New file.
19842         * doc/posix-functions/getlogin.texi: Mention the new module.
19843         Reported by John W. Eaton <jwe@gnu.org>.
19844
19845 2010-01-09  Bruno Haible  <bruno@clisp.org>
19846
19847         getlogin_r: Support for native Windows.
19848         * lib/getlogin_r.c: Include <windows.h>
19849         (getlogin_r): Implement for native Windows.
19850         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
19851         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
19852         via John W. Eaton <jwe@gnu.org>.
19853
19854 2010-01-09  Bruno Haible  <bruno@clisp.org>
19855
19856         getlogin_r: Small fixes.
19857         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
19858         succeeds.
19859         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
19860         before testing whether getlogin_r is declared. No need to set
19861         HAVE_DECL_GETLOGIN_R to 1.
19862         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
19863
19864 2010-01-09  Bruno Haible  <bruno@clisp.org>
19865
19866         * lib/unistd.in.h (getlogin_r): Add comment.
19867
19868 2010-01-09  Bruno Haible  <bruno@clisp.org>
19869
19870         Tests for module 'getlogin_r'.
19871         * modules/getlogin_r-tests: New file.
19872         * tests/test-getlogin_r.c: New file.
19873
19874 2010-01-09  Jim Meyering  <meyering@redhat.com>
19875
19876         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
19877         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
19878         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
19879
19880 2010-01-08  Simon Josefsson  <simon@josefsson.org>
19881
19882         * lib/dup2.c (rpl_dup2): Improve comment.
19883
19884 2010-01-08  Eric Blake  <ebb9@byu.net>
19885
19886         maint.mk: allow packages to add makefile @@ exceptions
19887         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
19888         (sc_makefile_check): Rename...
19889         (sc_makefile_at_at_check): ...to this, and use hook.
19890
19891         dup2: work around mingw bug
19892         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
19893         Reported by Simon Josefsson.
19894
19895 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
19896
19897         glob: Fix C++ compilation.
19898         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
19899         C++.
19900
19901 2010-01-07  Bruno Haible  <bruno@clisp.org>
19902
19903         Fix indentation of wctype.in.h, broken since 2007-01-06.
19904         * lib/wctype.in.h: Fix indentation of preprocessor directives.
19905
19906 2010-01-07  Bruno Haible  <bruno@clisp.org>
19907
19908         mbslen: Avoid collision with system function.
19909         * lib/string.in.h [MirBSD]: Include <wchar.h>.
19910         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
19911         * m4/mbslen.m4: New file.
19912         * modules/mbslen (Files): Add it.
19913         (configure.ac): Invoke gl_MBSLEN.
19914         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
19915         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
19916         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
19917         via Ian Beckwith <ianb@erislabs.net>.
19918
19919 2010-01-07  Bruno Haible  <bruno@clisp.org>
19920
19921         dirent: Document the last fix.
19922         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
19923
19924 2010-01-07  Bruno Haible  <bruno@clisp.org>
19925
19926         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
19927         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
19928         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
19929         va_list are defined.
19930         * doc/posix-headers/stdio.texi: Document the bug of missing types.
19931         Reported by Eric Blake.
19932
19933 2010-01-07  Bruno Haible  <bruno@clisp.org>
19934
19935         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
19936         * modules/xlist (Depends-on): Add 'list',
19937         * modules/xoset (Depends-on): Add 'oset'.
19938         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19939
19940 2010-01-07  Bruno Haible  <bruno@clisp.org>
19941
19942         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
19943         * doc/posix-functions/strncasecmp.texi: Likewise.
19944
19945 2010-01-07  Bruno Haible  <bruno@clisp.org>
19946
19947         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
19948
19949 2010-01-07  John W. Eaton  <jwe@octave.org>
19950
19951         wctype: allow C++ use
19952         * lib/wctype.in.h: Add extern "C" block for C++.
19953
19954 2010-01-06  Eric Blake  <ebb9@byu.net>
19955
19956         maint.mk: detect incorrect GFDL usage
19957         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
19958
19959 2010-01-06  Jim Meyering  <meyering@redhat.com>
19960         and Eric Blake  <ebb9@byu.net>
19961
19962         maint.mk: ignore multi-line copyright in NEWS
19963         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
19964
19965 2010-01-06  Eric Blake  <ebb9@byu.net>
19966
19967         select: add missing dependency
19968         * modules/select-tests (Depends-on): Move sockets dependency...
19969         * modules/select (Depends-on): ...here.
19970         Reported by Ian Beckwith.
19971
19972         doc: regenerate INSTALL
19973         * doc/INSTALL: Reflect recent autoconf update.
19974         * doc/INSTALL.ISO: Likewise.
19975         * doc/INSTALL.UTF-8: Likewise.
19976
19977         pread: fix compilation on glibc
19978         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
19979         Reported by Ralf Wildenhues.
19980
19981         dirent: fix test failure
19982         * lib/dirent.in.h (includes): Guarantee ino_t.
19983         Reported by Ralf Wildenhues.
19984
19985 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
19986
19987         linkat, renameat: avoid bad free
19988         * lib/at-func2.c (at_func2): Fix typo.
19989         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
19990
19991 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19992
19993         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
19994         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
19995         to avoid failure of symlink test later.
19996
19997 2010-01-06  Eric Blake  <ebb9@byu.net>
19998
19999         stdio, unistd: guarantee ssize_t
20000         * lib/unistd.in.h (includes): Ensure that types required by POSIX
20001         2008 are exposed when needed.
20002         * lib/stdio.in.h (includes): Likewise.
20003         Reported by Ralf Wildenhues.
20004
20005 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
20006
20007         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
20008         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
20009         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
20010
20011 2010-01-06  Jim Meyering  <meyering@redhat.com>
20012
20013         readtokens: this module *does* require xalloc.h
20014         It uses only functions that were omitted by the old syntax-check rule.
20015         * lib/readtokens.c: Include "xalloc.h" once again.
20016         * modules/readtokens (Depends-on): Add xalloc.
20017         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
20018
20019 2010-01-05  Eric Blake  <ebb9@byu.net>
20020
20021         maint: support 'make announcement' from a VPATH build
20022         * top/maint.mk (announcement): Look for correct NEWS file.
20023
20024 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
20025
20026         utimens (fdutimens): ignore a negative FD, per contract
20027         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
20028         when we have a valid file descriptor.  Otherwise, using a brand
20029         new glibc (with just-patched futimens that now fails with EBADF)
20030         would cause this function to fail with ENOSYS.
20031         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
20032         See also http://bugzilla.redhat.com/552320.
20033
20034 2010-01-05  Eric Blake  <ebb9@byu.net>
20035
20036         strcase: document what it provides
20037         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
20038         gnulib module.
20039         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
20040         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
20041
20042 2010-01-05  Jim Meyering  <meyering@redhat.com>
20043
20044         maint: remove useless inclusions of "xalloc.h"
20045         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
20046         * lib/readtokens.c: Likewise.
20047         * lib/same.c: Likewise.
20048         * modules/getloadavg (Depends-on): Remove xalloc.
20049         * modules/readtokens: Likewise.
20050         * modules/same: Likewise.
20051
20052         maint.mk: include 4 more function names in alloca.h-checking regexp
20053         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
20054         regexp.  Before, we would give a false-positive (saying alloca.h
20055         is included unnecessarily) when the only uses involved omitted symbols.
20056
20057         xalloc.h: use consistent formatting
20058         * lib/xalloc.h: Move declarations to start in the first column.
20059
20060 2010-01-05  Eric Blake  <ebb9@byu.net>
20061
20062         mkdir: avoid xalloc
20063         * lib/mkdir.c (includes): Drop unused header.
20064         Reported by John W. Eaton.
20065
20066 2010-01-04  Jim Meyering  <meyering@redhat.com>
20067
20068         nl_langinfo: avoid configure-time syntax error
20069         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
20070         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
20071         the empty string.  Don't let that provoke a shell syntax error.
20072
20073         regcomp, regexec, fnmatch: avoid array bounds read error
20074         * lib/regcomp.c (build_equiv_class): From glibc:
20075         Use only the low 24 bits of a findidx return value as an index
20076         into the weights array.  Patch by Ulrich Drepper:
20077         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
20078         * lib/regexec.c (check_node_accept_bytes): Likewise.
20079         * lib/fnmatch_loop.c (FCT): Likewise.
20080
20081         regcomp: skip collseq lookup when there are no rules
20082         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
20083         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
20084
20085         regcomp: recognize ill-formed { } expressions
20086         * lib/regcomp.c (parse_dup_op): From glibc:
20087         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
20088
20089         regcomp: fix typo in comment
20090         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
20091         s/satisfy/satisfies/.
20092
20093         regcomp: sync from glibc: remove dead store
20094         * lib/regcomp.c (duplicate_node_closure): Remove useless
20095         search_duplicated_node call and dead store.
20096
20097         regcomp: sync from glibc; always use nl_langinfo
20098         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
20099         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
20100         * modules/regex (Depends-on): Add nl_langinfo.
20101
20102 2010-01-04  Eric Blake  <ebb9@byu.net>
20103
20104         fdopendir: fix configure test
20105         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
20106
20107 2010-01-01  Bruno Haible  <bruno@clisp.org>
20108
20109         wchar: Remove unused configure check.
20110         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
20111
20112 2010-01-01  Eric Blake  <ebb9@byu.net>
20113
20114         headers: make check of system header explicit
20115         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
20116         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
20117         ourselves.
20118         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20119         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20120         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
20121         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
20122         internals.
20123         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
20124         missing.
20125         Suggested by Bruno Haible.
20126
20127 2010-01-01  Jim Meyering  <meyering@redhat.com>
20128
20129         ChangeLog: tweak to eliminate unnecessary copyright line
20130         * ChangeLog: Remove a copyright line that was mistakenly updated
20131         by today's update-copyright run.  Reported by Eric Blake.
20132
20133         test-update-copyright: don't let envvar setting cause test failure
20134         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
20135
20136 2010-01-01  Bruno Haible  <bruno@clisp.org>
20137
20138         localename: Avoid gcc warning.
20139         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
20140         function if it is not used.
20141
20142 2010-01-01  Jim Meyering  <meyering@redhat.com>
20143
20144         update nearly all FSF copyright year lists to include 2010
20145         Use the same procedure as for 2009, outlined in
20146         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
20147
20148         version-etc: set COPYRIGHT_YEAR to 2010
20149         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
20150
20151 2009-12-31  Eric Blake  <ebb9@byu.net>
20152
20153         doc: correct availability of cygwin 1.5.x getopt
20154         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
20155         variables.
20156         * doc/posix-functions/opterr.texi (opterr): Likewise.
20157         * doc/posix-functions/optind.texi (optind): Likewise.
20158         * doc/posix-functions/optopt.texi (optopt): Likewise.
20159         * doc/posix-functions/tzname.texi (tzname): Likewise.
20160
20161         openat: update maintainer
20162         * modules/openat (Maintainer): Add myself.
20163
20164         utimens: avoid shadowing warning
20165         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
20166         buffers into one, to avoid shadowing, as well as avoiding a
20167         redundant stat.
20168         Reported by Jim Meyering.
20169
20170         test-dup2: avoid compiler warning
20171         * tests/test-dup2.c (is_inheritable): Only define if used.
20172
20173 2010-01-01  Bruno Haible  <bruno@clisp.org>
20174
20175         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
20176         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
20177         defined, use wctomb instead of wcrtomb.
20178
20179 2010-01-01  Bruno Haible  <bruno@clisp.org>
20180
20181         iconv: Reject native Solaris iconv.
20182         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
20183         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
20184
20185 2009-12-31  Bruno Haible  <bruno@clisp.org>
20186
20187         * tests/test-signal.c (main): Remove test of 'SIG'.
20188
20189 2009-12-31  Bruno Haible  <bruno@clisp.org>
20190
20191         spawn: Fix incomplete fix.
20192         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20193         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20194         warnings for GNULIB_POSIXCHECK again.
20195         Reported by Eric Blake.
20196
20197 2009-12-31  Bruno Haible  <bruno@clisp.org>
20198
20199         Avoid namespace pollution on glibc systems.
20200         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
20201         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
20202         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
20203         glibc systems.
20204
20205 2009-12-31  Bruno Haible  <bruno@clisp.org>
20206
20207         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
20208         (gl_REPLACE_WCHAR_H): Turn into a no-op.
20209         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
20210         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20211         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20212         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20213         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20214
20215 2009-12-31  Bruno Haible  <bruno@clisp.org>
20216
20217         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
20218         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
20219         afterwards.
20220
20221 2009-12-31  Bruno Haible  <bruno@clisp.org>
20222
20223         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
20224         SYS_UTSNAME_H.
20225
20226 2009-12-31  Bruno Haible  <bruno@clisp.org>
20227
20228         spawn: Fix misapplied patch.
20229         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
20230         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
20231         warnings for GNULIB_POSIXCHECK.
20232
20233 2009-12-31  Bruno Haible  <bruno@clisp.org>
20234
20235         times: Update after sys_times changed.
20236         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
20237         * modules/times (Files): Add it.
20238         (configure.ac): Invoke gl_FUNC_TIMES.
20239
20240 2009-12-31  Bruno Haible  <bruno@clisp.org>
20241
20242         Use AC_C_INLINE where necessary.
20243         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
20244         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
20245         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
20246         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
20247         * m4/mbfile.m4 (gl_MBFILE): Likewise.
20248         * m4/mbiter.m4 (gl_MBITER): Likewise.
20249         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20250         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20251         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
20252         * modules/u64 (configure.ac): Likewise.
20253
20254 2009-12-31  Bruno Haible  <bruno@clisp.org>
20255
20256         Use AC_C_INLINE instead of module 'inline' where possible.
20257         * modules/inline (Description): Clarify purpose.
20258         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
20259         * modules/count-one-bits (Depends-on): Remove inline.
20260         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
20261         * modules/openat (Depends-on): Remove inline.
20262         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
20263         instead of depending on module 'inline'.
20264         * modules/filevercmp (Depends-on, configure.ac): Likewise.
20265         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
20266         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
20267         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
20268         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
20269         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
20270         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
20271         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
20272         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
20273         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
20274         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
20275         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
20276         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
20277         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
20278         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
20279         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
20280         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
20281         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
20282         Likewise.
20283         * modules/unictype/property-ascii-hex-digit (Depends-on,
20284         configure.ac): Likewise.
20285         * modules/unictype/property-bidi-arabic-digit (Depends-on,
20286         configure.ac): Likewise.
20287         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
20288         configure.ac): Likewise.
20289         * modules/unictype/property-bidi-block-separator (Depends-on,
20290         configure.ac): Likewise.
20291         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
20292         configure.ac): Likewise.
20293         * modules/unictype/property-bidi-common-separator (Depends-on,
20294         configure.ac): Likewise.
20295         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
20296         Likewise.
20297         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
20298         configure.ac): Likewise.
20299         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
20300         configure.ac): Likewise.
20301         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
20302         configure.ac): Likewise.
20303         * modules/unictype/property-bidi-european-digit (Depends-on,
20304         configure.ac): Likewise.
20305         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
20306         configure.ac): Likewise.
20307         * modules/unictype/property-bidi-left-to-right (Depends-on,
20308         configure.ac): Likewise.
20309         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
20310         configure.ac): Likewise.
20311         * modules/unictype/property-bidi-other-neutral (Depends-on,
20312         configure.ac): Likewise.
20313         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
20314         Likewise.
20315         * modules/unictype/property-bidi-segment-separator (Depends-on,
20316         configure.ac): Likewise.
20317         * modules/unictype/property-bidi-whitespace (Depends-on,
20318         configure.ac): Likewise.
20319         * modules/unictype/property-combining (Depends-on, configure.ac):
20320         Likewise.
20321         * modules/unictype/property-composite (Depends-on, configure.ac):
20322         Likewise.
20323         * modules/unictype/property-currency-symbol (Depends-on,
20324         configure.ac): Likewise.
20325         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
20326         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
20327         Likewise.
20328         * modules/unictype/property-default-ignorable-code-point (Depends-on,
20329         configure.ac): Likewise.
20330         * modules/unictype/property-deprecated (Depends-on, configure.ac):
20331         Likewise.
20332         * modules/unictype/property-diacritic (Depends-on, configure.ac):
20333         Likewise.
20334         * modules/unictype/property-extender (Depends-on, configure.ac):
20335         Likewise.
20336         * modules/unictype/property-format-control (Depends-on, configure.ac):
20337         Likewise.
20338         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
20339         Likewise.
20340         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
20341         Likewise.
20342         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
20343         Likewise.
20344         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
20345         Likewise.
20346         * modules/unictype/property-hyphen (Depends-on, configure.ac):
20347         Likewise.
20348         * modules/unictype/property-id-continue (Depends-on, configure.ac):
20349         Likewise.
20350         * modules/unictype/property-id-start (Depends-on, configure.ac):
20351         Likewise.
20352         * modules/unictype/property-ideographic (Depends-on, configure.ac):
20353         Likewise.
20354         * modules/unictype/property-ids-binary-operator (Depends-on,
20355         configure.ac): Likewise.
20356         * modules/unictype/property-ids-trinary-operator (Depends-on,
20357         configure.ac): Likewise.
20358         * modules/unictype/property-ignorable-control (Depends-on,
20359         configure.ac): Likewise.
20360         * modules/unictype/property-iso-control (Depends-on, configure.ac):
20361         Likewise.
20362         * modules/unictype/property-join-control (Depends-on, configure.ac):
20363         Likewise.
20364         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
20365         Likewise.
20366         * modules/unictype/property-line-separator (Depends-on, configure.ac):
20367         Likewise.
20368         * modules/unictype/property-logical-order-exception (Depends-on,
20369         configure.ac): Likewise.
20370         * modules/unictype/property-lowercase (Depends-on, configure.ac):
20371         Likewise.
20372         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
20373         * modules/unictype/property-non-break (Depends-on, configure.ac):
20374         Likewise.
20375         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
20376         Likewise.
20377         * modules/unictype/property-numeric (Depends-on, configure.ac):
20378         Likewise.
20379         * modules/unictype/property-other-alphabetic (Depends-on,
20380         configure.ac): Likewise.
20381         * modules/unictype/property-other-default-ignorable-code-point
20382         (Depends-on, configure.ac): Likewise.
20383         * modules/unictype/property-other-grapheme-extend (Depends-on,
20384         configure.ac): Likewise.
20385         * modules/unictype/property-other-id-continue (Depends-on,
20386         configure.ac): Likewise.
20387         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
20388         Likewise.
20389         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
20390         Likewise.
20391         * modules/unictype/property-other-math (Depends-on, configure.ac):
20392         Likewise.
20393         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
20394         Likewise.
20395         * modules/unictype/property-paired-punctuation (Depends-on,
20396         configure.ac): Likewise.
20397         * modules/unictype/property-paragraph-separator (Depends-on,
20398         configure.ac): Likewise.
20399         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
20400         Likewise.
20401         * modules/unictype/property-pattern-white-space (Depends-on,
20402         configure.ac): Likewise.
20403         * modules/unictype/property-private-use (Depends-on, configure.ac):
20404         Likewise.
20405         * modules/unictype/property-punctuation (Depends-on, configure.ac):
20406         Likewise.
20407         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
20408         Likewise.
20409         * modules/unictype/property-radical (Depends-on, configure.ac):
20410         Likewise.
20411         * modules/unictype/property-sentence-terminal (Depends-on,
20412         configure.ac): Likewise.
20413         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
20414         Likewise.
20415         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
20416         * modules/unictype/property-terminal-punctuation (Depends-on,
20417         configure.ac): Likewise.
20418         * modules/unictype/property-titlecase (Depends-on, configure.ac):
20419         Likewise.
20420         * modules/unictype/property-unassigned-code-value (Depends-on,
20421         configure.ac): Likewise.
20422         * modules/unictype/property-unified-ideograph (Depends-on,
20423         configure.ac): Likewise.
20424         * modules/unictype/property-uppercase (Depends-on, configure.ac):
20425         Likewise.
20426         * modules/unictype/property-variation-selector (Depends-on,
20427         configure.ac): Likewise.
20428         * modules/unictype/property-white-space (Depends-on, configure.ac):
20429         Likewise.
20430         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
20431         Likewise.
20432         * modules/unictype/property-xid-start (Depends-on, configure.ac):
20433         Likewise.
20434         * modules/unictype/property-zero-width (Depends-on, configure.ac):
20435         Likewise.
20436         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
20437         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
20438         Likewise.
20439
20440 2009-12-31  Bruno Haible  <bruno@clisp.org>
20441
20442         Remove unnecessary AC_C_INLINE invocation.
20443         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
20444         since 2009-08-21.
20445
20446 2009-12-31  Jim Meyering  <meyering@redhat.com>
20447
20448         maint.mk: don't require explicit gpg_key_ID in cfg.mk
20449         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
20450         With this change, we can all remove the gpg_key_ID = ... definition
20451         from our respective cfg.mk files.
20452
20453         maint.mk: create announcement template in ~/, not in /tmp
20454         * top/maint.mk (emit_upload_commands): Adjust.
20455         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
20456         Remove temporary file, .ci-msg.
20457
20458 2009-12-31  Eric Blake  <ebb9@byu.net>
20459
20460         link-warning: always build headers with link warnings
20461         * modules/arpa_inet (Makefile.am): Always build replacement
20462         header.
20463         * modules/ctype (Makefile.am): Likewise.
20464         * modules/dirent (Makefile.am): Likewise.
20465         * modules/inttypes (Makefile.am): Likewise.
20466         * modules/langinfo (Makefile.am): Likewise.
20467         * modules/locale (Makefile.am): Likewise.
20468         * modules/spawn (Makefile.am): Likewise.
20469         * modules/sys_file (Makefile.am): Likewise.
20470         * modules/sys_ioctl (Makefile.am): Likewise.
20471         * modules/sys_select (Makefile.am): Likewise.
20472         * modules/sys_socket (Makefile.am): Likewise.
20473         * modules/sys_times (Makefile.am): Likewise.
20474         * modules/sys_utsname (Makefile.am): Likewise.
20475         * modules/sys_wait (Makefile.am): Likewise.
20476         * modules/wchar (Makefile.am): Likewise.
20477         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
20478         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
20479         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
20480         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
20481         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
20482         Likewise.
20483         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20484         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
20485         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
20486         Likewise.
20487         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
20488         Likewise.
20489         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20490         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
20491         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
20492         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20493         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20494         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20495         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20496         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
20497         (gl_WCHAR_H_DEFAULTS): Likewise.
20498
20499 2009-12-31  Eric Blake  <ebb9@byu.net>
20500
20501         signal, spawn: use link warnings
20502         * lib/signal.in.h (sigset_t): Make unconditional.
20503         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
20504         (sigpending, sigprocmask, sigaction): Add link warnings.
20505         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
20506         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
20507         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
20508         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
20509         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
20510         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
20511         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
20512         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
20513         (posix_spawn_file_actions_destroy)
20514         (posix_spawn_file_actions_addopen)
20515         (posix_spawn_file_actions_addclose)
20516         (posix_spawn_file_actions_adddup2): Likewise.
20517         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
20518         * tests/test-signal.c (main): Enhance test.
20519
20520         spawn: improve wrapper support
20521         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
20522         (gl_SPAWN_H_DEFAULTS): New defaults.
20523         * modules/spawn (Makefile.am): Substitute them.
20524         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
20525         Only declare if missing or broken.
20526
20527         sys_times, sys_utsname: use include_next
20528         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
20529         header.
20530         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
20531         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
20532         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
20533         * modules/sys_times (Depends-on): Add include_next.
20534         (Makefile.am): Substitute additional values.
20535         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
20536         * lib/sys_times.in.h (includes): Include native header, if
20537         available.
20538         * lib/sys_utsname.in.h (includes): Likewise.
20539         * tests/test-sys_times.c (main): Enhance test.
20540
20541         fdutimensat: revert prior patch
20542         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
20543         utimens.h.
20544         Reported by Bruno Haible.
20545
20546 2009-12-30  Eric Blake  <ebb9@byu.net>
20547
20548         sys_wait: drop link-warning dependency
20549         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
20550         link-warning efforts.
20551         * lib/sys_wait.in.h: Likewise.
20552
20553         fdutimensat: remove bogus dependency
20554         * modules/fdutimensat (Depends-on): Drop inline.
20555
20556         unistd: fix typo
20557         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
20558
20559 2009-12-30  Bruno Haible  <bruno@clisp.org>
20560
20561         Fix compilation error with Solaris cc.
20562         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
20563         * lib/unicase/u16-is-invariant.c: Likewise.
20564         * lib/unicase/u32-is-invariant.c: Likewise.
20565         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
20566
20567 2009-12-30  Bruno Haible  <bruno@clisp.org>
20568
20569         Fix test crash.
20570         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
20571         locales.
20572         Reported by Simon Josefsson <simon@josefsson.org>.
20573
20574 2009-12-30  Bruno Haible  <bruno@clisp.org>
20575
20576         Fix compilation error on most platforms.
20577         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
20578         Reported by Simon Josefsson <simon@josefsson.org>
20579         and Nelson H. F. Beebe <beebe@math.utah.edu>.
20580
20581 2009-12-30  Eric Blake  <ebb9@byu.net>
20582
20583         futimens, utimensat: work around ntfs-3g bug
20584         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
20585         a ctime bug is present, and expand workaround to cover ntfs-3g.
20586         * lib/utimens.c (fdutimens, lutimens): Likewise.
20587         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
20588         (validate_timespec): Adjust return value.
20589         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
20590         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20591         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
20592
20593 2009-12-29  Eric Blake  <ebb9@byu.net>
20594
20595         link-warning: make usage consistent
20596         * modules/ctype (Depends-on): Add link-warning.
20597         (Makefile.am): Update rules accordingly.
20598         * modules/langinfo (Depends-on, Makefile.am): Likewise.
20599         * modules/locale (Depends-on, Makefile.am): Likewise.
20600         * modules/sys_file (Makefile.am): Likewise.
20601         * modules/getopt-posix (Makefile.am): Delete unused link warning
20602         efforts.
20603         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
20604         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
20605         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
20606         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
20607
20608         stdio: remove unused variables
20609         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
20610         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
20611         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
20612
20613         tests: test more substitute headers
20614         * modules/ctype-tests: New file.
20615         * modules/dirent-tests: Likewise.
20616         * modules/spawn-tests: Likewise.
20617         * modules/sys_file-tests: Likewise.
20618         * modules/sys_ioctl-tests: Likewise.
20619         * modules/sys_wait-tests: Likewise.
20620         * tests/test-ctype.c: Likewise.
20621         * tests/test-dirent.c: Likewise.
20622         * tests/test-spawn.c: Likewise.
20623         * tests/test-sys_file.c: Likewise.
20624         * tests/test-sys_ioctl.c: Likewise.
20625         * tests/test-sys_wait.c: Likewise.
20626         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
20627         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
20628         whether or not flock is in use.
20629
20630         tests: remove License section from module
20631         * modules/arpa_inet-tests: Remove unneeded section.
20632         * modules/byteswap-tests: Likewise.
20633         * modules/ceilf-tests: Likewise.
20634         * modules/ceill-tests: Likewise.
20635         * modules/crypto/des-tests: Likewise.
20636         * modules/crypto/gc-arcfour-tests: Likewise.
20637         * modules/crypto/gc-arctwo-tests: Likewise.
20638         * modules/crypto/gc-des-tests: Likewise.
20639         * modules/crypto/gc-hmac-md5-tests: Likewise.
20640         * modules/crypto/gc-hmac-sha1-tests: Likewise.
20641         * modules/crypto/gc-md2-tests: Likewise.
20642         * modules/crypto/gc-md4-tests: Likewise.
20643         * modules/crypto/gc-md5-tests: Likewise.
20644         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
20645         * modules/crypto/gc-rijndael-tests: Likewise.
20646         * modules/crypto/gc-sha1-tests: Likewise.
20647         * modules/crypto/gc-tests: Likewise.
20648         * modules/crypto/md2-tests: Likewise.
20649         * modules/crypto/md4-tests: Likewise.
20650         * modules/fcntl-h-tests: Likewise.
20651         * modules/floorf-tests: Likewise.
20652         * modules/floorl-tests: Likewise.
20653         * modules/frexp-nolibm-tests: Likewise.
20654         * modules/frexp-tests: Likewise.
20655         * modules/frexpl-nolibm-tests: Likewise.
20656         * modules/frexpl-tests: Likewise.
20657         * modules/getaddrinfo-tests: Likewise.
20658         * modules/inttypes-tests: Likewise.
20659         * modules/isfinite-tests: Likewise.
20660         * modules/isinf-tests: Likewise.
20661         * modules/ldexpl-tests: Likewise.
20662         * modules/locale-tests: Likewise.
20663         * modules/math-tests: Likewise.
20664         * modules/netdb-tests: Likewise.
20665         * modules/netinet_in-tests: Likewise.
20666         * modules/printf-frexp-tests: Likewise.
20667         * modules/printf-frexpl-tests: Likewise.
20668         * modules/priv-set-tests: Likewise.
20669         * modules/random_r-tests: Likewise.
20670         * modules/round-tests: Likewise.
20671         * modules/roundf-tests: Likewise.
20672         * modules/roundl-tests: Likewise.
20673         * modules/search-tests: Likewise.
20674         * modules/select-tests: Likewise.
20675         * modules/signal-tests: Likewise.
20676         * modules/stdbool-tests: Likewise.
20677         * modules/stddef-tests: Likewise.
20678         * modules/stdint-tests: Likewise.
20679         * modules/stdio-tests: Likewise.
20680         * modules/stdlib-tests: Likewise.
20681         * modules/string-tests: Likewise.
20682         * modules/strings-tests: Likewise.
20683         * modules/sys_select-tests: Likewise.
20684         * modules/sys_socket-tests: Likewise.
20685         * modules/sys_stat-tests: Likewise.
20686         * modules/sys_time-tests: Likewise.
20687         * modules/sys_utsname-tests: Likewise.
20688         * modules/sysexits-tests: Likewise.
20689         * modules/time-tests: Likewise.
20690         * modules/trunc-tests: Likewise.
20691         * modules/truncf-tests: Likewise.
20692         * modules/truncl-tests: Likewise.
20693         * modules/tsearch-tests: Likewise.
20694         * modules/unistd-tests: Likewise.
20695         * modules/wchar-tests: Likewise.
20696         * modules/wctype-tests: Likewise.
20697
20698         tests: fix license on several tests
20699         * tests/test-des.c: Update to GPLv3+.
20700         * tests/test-flock.c: Likewise.
20701         * tests/test-fsync.c: Likewise.
20702         * tests/test-futimens.h: Likewise.
20703         * tests/test-gc-arcfour.c: Likewise.
20704         * tests/test-gc-arctwo.c: Likewise.
20705         * tests/test-gc-des.c: Likewise.
20706         * tests/test-gc-hmac-md5.c: Likewise.
20707         * tests/test-gc-hmac-sha1.c: Likewise.
20708         * tests/test-gc-md2.c: Likewise.
20709         * tests/test-gc-md4.c: Likewise.
20710         * tests/test-gc-md5.c: Likewise.
20711         * tests/test-gc-pbkdf2-sha1.c: Likewise.
20712         * tests/test-gc-rijndael.c: Likewise.
20713         * tests/test-gc-sha1.c: Likewise.
20714         * tests/test-gc.c: Likewise.
20715         * tests/test-getcwd.c: Likewise.
20716         * tests/test-link.c: Likewise.
20717         * tests/test-link.h: Likewise.
20718         * tests/test-lutimens.h: Likewise.
20719         * tests/test-md2.c: Likewise.
20720         * tests/test-md4.c: Likewise.
20721         * tests/test-mkdir.h: Likewise.
20722         * tests/test-rename.c: Likewise.
20723         * tests/test-rename.h: Likewise.
20724         * tests/test-safe-alloc.c: Likewise.
20725         * tests/test-utimens-common.h: Likewise.
20726         * tests/test-utimens.h: Likewise.
20727
20728         maint: sync license texts
20729         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
20730         * doc/gpl-3.0.texi: Revert copyright year update.
20731         * doc/lgpl-3.0.texi: Likewise.
20732
20733 2009-12-29  Jim Meyering  <meyering@redhat.com>
20734
20735         update nearly all FSF copyright year lists to include 2009
20736         The files named by the following are exempted:
20737             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
20738               test -f "$dst" && { echo "$dst"; continue; }
20739               test -d "$dst" || continue
20740               echo "$dst"/$(basename "$src")
20741             done > exempt
20742             git ls-files tests/unictype >> exempt
20743         In the remaining files, convert to all-interval notation if
20744         - there is already at least one year interval like 2000-2003
20745         - the file is maintained by me
20746         - the file is in lib/uni*/, where that style already prevails
20747         Otherwise, use update-copyright's default.
20748
20749 2009-12-29  Simon Josefsson  <simon@josefsson.org>
20750         and Eric Blake  <ebb9@byu.net>
20751
20752         tests: don't require debug system() to pass
20753         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
20754         * tests/test-rmdir.h (test_rmdir_func): Likewise.
20755         * tests/test-unlink.h (test_unlink_func): Likewise.
20756         * tests/test-fstatat.c (main): ...into callers.
20757         * tests/test-lstat.c (main): Likewise.
20758         * tests/test-rmdir.c (main): Likewise.
20759         * tests/test-unlink.c (main): Likewise.
20760         * tests/test-unlinkat.c (main): Likewise.
20761         * tests/test-areadlink-with-size.c (main): Don't require a
20762         debug-only system call to pass, aiding cross-testing to mingw.
20763         * tests/test-areadlink.c (main): Likewise.
20764         * tests/test-areadlinkat-with-size.c (main): Likewise.
20765         * tests/test-areadlinkat.c (main): Likewise.
20766         * tests/test-canonicalize-lgpl.c (main): Likewise.
20767         * tests/test-canonicalize.c (main): Likewise.
20768         * tests/test-chown.c (main): Likewise.
20769         * tests/test-fchownat.c (main): Likewise.
20770         * tests/test-lchown.c (main): Likewise.
20771         * tests/test-fdutimensat.c (main): Likewise.
20772         * tests/test-futimens.c (main): Likewise.
20773         * tests/test-link.c (main): Likewise.
20774         * tests/test-linkat.c (main): Likewise.
20775         * tests/test-mkdir.c (main): Likewise.
20776         * tests/test-mkdirat.c (main): Likewise.
20777         * tests/test-mkfifo.c (main): Likewise.
20778         * tests/test-mkfifoat.c (main): Likewise.
20779         * tests/test-mknod.c (main): Likewise.
20780         * tests/test-readlink.c (main): Likewise.
20781         * tests/test-remove.c (main): Likewise.
20782         * tests/test-rename.c (main): Likewise.
20783         * tests/test-renameat.c (main): Likewise.
20784         * tests/test-symlink.c (main): Likewise.
20785         * tests/test-symlinkat.c (main): Likewise.
20786         * tests/test-utimens.c (main): Likewise.
20787         * tests/test-utimensat.c (main): Likewise.
20788
20789 2009-12-29  Simon Josefsson  <simon@josefsson.org>
20790
20791         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
20792         on $(UNUSED_PARAMETER_H) to avoid build failure.
20793
20794 2009-12-28  Jim Meyering  <meyering@redhat.com>
20795
20796         update-copyright: you may specify a max. line length other than 72
20797         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
20798
20799         maint: use consistent FSF copyright line syntax
20800         * lib/posixtm.c: Add missing comma in FSF copyright line.
20801         * lib/posixtm.h: Likewise.
20802         * lib/getugroups.c: Add missing ", Inc.".
20803
20804         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
20805         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
20806         FSF copyright line.  Remove trailing blanks.
20807
20808 2009-12-28  Eric Blake  <ebb9@byu.net>
20809
20810         test-dup2: reduce dependencies
20811         * modules/cloexec (Configure.ac): Set witness.
20812         * modules/dup2-tests (Depends-on): Drop cloexec.
20813         * tests/test-dup2.c (main): Skip portion of test if cloexec module
20814         not present.
20815         Suggested by Bruno Haible.
20816
20817 2009-12-26  Bruno Haible  <bruno@clisp.org>
20818
20819         Remove an unneeded dependency.
20820         * modules/fseterr (Depends-on): Remove dup2.
20821
20822 2009-12-26  Eric Blake  <ebb9@byu.net>
20823
20824         tests: use macros.h in more places
20825         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
20826         (ASSERT_STREAM): Provide default of stderr.
20827         * tests/test-dirent-safer.c: Include macros.h, using alternate
20828         stream for assertions.
20829         * tests/test-dup-safer.c: Likewise.
20830         * tests/test-freopen-safer.c: Likewise.
20831         * tests/test-getopt.c: Likewise.
20832         * tests/test-openat-safer.c: Likewise.
20833         * tests/test-pipe.c: Likewise.
20834         * tests/test-popen-safer.c: Likewise.
20835         * modules/dirent-safer-tests (Files): Include macros.h.
20836         * modules/unistd-safer-tests (Files): Likewise.
20837         * modules/freopen-safer-tests (Files): Likewise.
20838         * modules/getopt-posix-tests (Files): Likewise.
20839         * modules/openat-safer-tests (Files): Likewise.
20840         * modules/pipe-tests (Files): Likewise.
20841
20842 2009-12-26  Bruno Haible  <bruno@clisp.org>
20843
20844         javacomp: Portability fix.
20845         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
20846         that it also works on Solaris.
20847
20848 2009-12-26  Bruno Haible  <bruno@clisp.org>
20849
20850         localename: Fix storage allocation of gl_locale_name_thread's result.
20851         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
20852         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
20853         all platforms that have 'uselocale'.
20854         (gl_locale_name_thread_unsafe): New function, extracted from
20855         gl_locale_name_thread.
20856         (gl_locale_name_thread): Call struniq on all platforms that have
20857         'uselocale'.
20858         * tests/test-localename.c (test_locale_name_thread): Check that the
20859         resulting strings are permanently allocated.
20860         * modules/localename-tests (Depends-on): Add strdup.
20861
20862 2009-12-26  Bruno Haible  <bruno@clisp.org>
20863
20864         * tests/test-localename.c (categories): Fill in the strings.
20865
20866 2009-12-26  Jim Meyering  <meyering@redhat.com>
20867
20868         isdir: complete the removal of m4/isdir.m4
20869         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
20870
20871         isdir: clean up, since at least grep still uses it
20872         * lib/isdir.c: Include "isdir.h".
20873         (S_ISDIR): Remove now-unneeded definition.
20874         * modules/isdir (Files): Add lib/isdir.h.
20875         * lib/isdir.h: New file, with declaration.
20876         * m4/isdir.m4: Remove file -- unneeded.
20877
20878 2009-12-25  Bruno Haible  <bruno@clisp.org>
20879
20880         selinux-h: Make generated .h files standalone.
20881         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
20882         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
20883         * lib/se-selinux.in.h: Likewise.
20884         * modules/selinux-h (Depends-on): Add unused-parameter.
20885         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
20886         selinux/selinux.h and selinux/context.h.
20887         Suggested by Eric Blake.
20888
20889 2009-12-25  Bruno Haible  <bruno@clisp.org>
20890
20891         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
20892         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
20893         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
20894         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
20895         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
20896
20897 2009-12-24  Bruno Haible  <bruno@clisp.org>
20898
20899         openat: Fix warning.
20900         * lib/openat-proc.c: Include <unistd.h>.
20901
20902 2009-12-24  Bruno Haible  <bruno@clisp.org>
20903
20904         New module 'unused-parameter'.
20905         * build-aux/unused-parameter.h: New file, extracted from earlier
20906         gnulib-common.m4.
20907         * modules/unused-parameter: New file.
20908         * lib/unistr.h: Include unused-parameter.h.
20909         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
20910         _GL_UNUSED.
20911         * modules/unistr/base (Depends-on): Add unused-parameter.
20912
20913 2009-12-24  Bruno Haible  <bruno@clisp.org>
20914
20915         Add missing dependencies to 'extensions' module.
20916         * m4/extensions.m4: Add comment.
20917         * modules/accept4 (Depends-on): Add extensions.
20918         * modules/dup3 (Depends-on): Likewise.
20919         * modules/fcntl (Depends-on): Likewise.
20920         * modules/futimens (Depends-on): Likewise.
20921         * modules/mknod (Depends-on): Likewise.
20922         * modules/pipe2 (Depends-on): Likewise.
20923         * modules/stat-time (Depends-on): Likewise.
20924         * modules/strcasestr-simple (Depends-on): Likewise.
20925         * modules/strsignal (Depends-on): Likewise.
20926         * modules/utimensat (Depends-on): Likewise.
20927         * modules/localcharset (Depends-on): Likewise. Needed because of
20928         gl_FCNTL_O_FLAGS.
20929         * modules/wcrtomb (Depends-on): Likewise. Needed because of
20930         AC_TYPE_MBSTATE_T.
20931         * modules/wcsnrtombs (Depends-on): Likewise.
20932         * modules/wcsrtombs (Depends-on): Likewise.
20933
20934 2009-12-24  Bruno Haible  <bruno@clisp.org>
20935
20936         binary-io: Avoid gcc warning due to SET_BINARY.
20937         * lib/binary-io.h (SET_BINARY): Cast the result to void.
20938         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
20939
20940 2009-12-24  Bruno Haible  <bruno@clisp.org>
20941
20942         Avoid future namespace pollution on glibc systems.
20943         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
20944         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
20945         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
20946         glibc systems.
20947
20948 2009-12-24  Bruno Haible  <bruno@clisp.org>
20949
20950         Refactor common macros used in tests.
20951         * tests/macros.h: New file.
20952         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
20953         and/or <stdlib.h>, if appropriate.
20954         (ASSERT, SIZEOF): Remove macros.
20955         * tests/test-areadlink-with-size.c: Likewise.
20956         * tests/test-areadlinkat.c: Likewise.
20957         * tests/test-areadlinkat-with-size.c: Likewise.
20958         * tests/test-argmatch.c: Likewise.
20959         * tests/test-argv-iter.c: Likewise.
20960         * tests/test-array-mergesort.c: Likewise.
20961         * tests/test-array_list.c: Likewise.
20962         * tests/test-array_oset.c: Likewise.
20963         * tests/test-avltree_list.c: Likewise.
20964         * tests/test-avltree_oset.c: Likewise.
20965         * tests/test-avltreehash_list.c: Likewise.
20966         * tests/test-base64.c: Likewise.
20967         * tests/test-binary-io.c: Likewise.
20968         * tests/test-bitrotate.c: Likewise.
20969         * tests/test-btowc.c: Likewise.
20970         * tests/test-byteswap.c: Likewise.
20971         * tests/test-c-ctype.c: Likewise.
20972         * tests/test-c-stack.c: Likewise.
20973         * tests/test-c-strcasecmp.c: Likewise.
20974         * tests/test-c-strcasestr.c: Likewise.
20975         * tests/test-c-strncasecmp.c: Likewise.
20976         * tests/test-c-strstr.c: Likewise.
20977         * tests/test-canonicalize-lgpl.c: Likewise.
20978         * tests/test-canonicalize.c: Likewise.
20979         * tests/test-carray_list.c: Likewise.
20980         * tests/test-ceilf1.c: Likewise.
20981         * tests/test-ceilf2.c: Likewise.
20982         * tests/test-ceill.c: Likewise.
20983         * tests/test-chown.c: Likewise.
20984         * tests/test-cloexec.c: Likewise.
20985         * tests/test-copy-acl.c: Likewise.
20986         * tests/test-copy-file.c: Likewise.
20987         * tests/test-count-one-bits.c: Likewise.
20988         * tests/test-dprintf-posix.c: Likewise.
20989         * tests/test-dup2.c: Likewise.
20990         * tests/test-dup3.c: Likewise.
20991         * tests/test-duplocale.c: Likewise.
20992         * tests/test-fbufmode.c: Likewise.
20993         * tests/test-fchdir.c: Likewise.
20994         * tests/test-fchownat.c: Likewise.
20995         * tests/test-fcntl-safer.c: Likewise.
20996         * tests/test-fcntl.c: Likewise.
20997         * tests/test-fdopendir.c: Likewise.
20998         * tests/test-fdutimensat.c: Likewise.
20999         * tests/test-fflush2.c: Likewise.
21000         * tests/test-file-has-acl.c: Likewise.
21001         * tests/test-filevercmp.c: Likewise.
21002         * tests/test-flock.c: Likewise.
21003         * tests/test-floorf1.c: Likewise.
21004         * tests/test-floorf2.c: Likewise.
21005         * tests/test-floorl.c: Likewise.
21006         * tests/test-fnmatch.c: Likewise.
21007         * tests/test-fopen.h: Likewise.
21008         * tests/test-fpending.c: Likewise.
21009         * tests/test-fprintf-posix.c: Likewise.
21010         * tests/test-fpurge.c: Likewise.
21011         * tests/test-freadable.c: Likewise.
21012         * tests/test-freadahead.c: Likewise.
21013         * tests/test-freading.c: Likewise.
21014         * tests/test-freadptr.c: Likewise.
21015         * tests/test-freadptr2.c: Likewise.
21016         * tests/test-freadseek.c: Likewise.
21017         * tests/test-freopen.c: Likewise.
21018         * tests/test-frexp.c: Likewise.
21019         * tests/test-frexpl.c: Likewise.
21020         * tests/test-fseek.c: Likewise.
21021         * tests/test-fseeko.c: Likewise.
21022         * tests/test-fstatat.c: Likewise.
21023         * tests/test-fstrcmp.c: Likewise.
21024         * tests/test-fsync.c: Likewise.
21025         * tests/test-ftell.c: Likewise.
21026         * tests/test-ftello.c: Likewise.
21027         * tests/test-func.c: Likewise.
21028         * tests/test-futimens.c: Likewise.
21029         * tests/test-fwritable.c: Likewise.
21030         * tests/test-fwriting.c: Likewise.
21031         * tests/test-getcwd.c: Likewise.
21032         * tests/test-getdate.c: Likewise.
21033         * tests/test-getdelim.c: Likewise.
21034         * tests/test-getdtablesize.c: Likewise.
21035         * tests/test-getgroups.c: Likewise.
21036         * tests/test-getline.c: Likewise.
21037         * tests/test-getndelim2.c: Likewise.
21038         * tests/test-glob.c: Likewise.
21039         * tests/test-hash.c: Likewise.
21040         * tests/test-i-ring.c: Likewise.
21041         * tests/test-iconv-utf.c: Likewise.
21042         * tests/test-iconv.c: Likewise.
21043         * tests/test-idpriv-drop.c: Likewise.
21044         * tests/test-idpriv-droptemp.c: Likewise.
21045         * tests/test-inet_ntop.c: Likewise.
21046         * tests/test-inet_pton.c: Likewise.
21047         * tests/test-isblank.c: Likewise.
21048         * tests/test-isfinite.c: Likewise.
21049         * tests/test-isinf.c: Likewise.
21050         * tests/test-isnan.c: Likewise.
21051         * tests/test-isnand.h: Likewise.
21052         * tests/test-isnanf.h: Likewise.
21053         * tests/test-isnanl.h: Likewise.
21054         * tests/test-lchown.c: Likewise.
21055         * tests/test-ldexpl.c: Likewise.
21056         * tests/test-link.c: Likewise.
21057         * tests/test-linkat.c: Likewise.
21058         * tests/test-linked_list.c: Likewise.
21059         * tests/test-linkedhash_list.c: Likewise.
21060         * tests/test-localename.c: Likewise.
21061         * tests/test-lseek.c: Likewise.
21062         * tests/test-lstat.c: Likewise.
21063         * tests/test-mbmemcasecmp.c: Likewise.
21064         * tests/test-mbmemcasecoll.c: Likewise.
21065         * tests/test-mbrtowc.c: Likewise.
21066         * tests/test-mbscasecmp.c: Likewise.
21067         * tests/test-mbscasestr1.c: Likewise.
21068         * tests/test-mbscasestr2.c: Likewise.
21069         * tests/test-mbscasestr3.c: Likewise.
21070         * tests/test-mbscasestr4.c: Likewise.
21071         * tests/test-mbschr.c: Likewise.
21072         * tests/test-mbscspn.c: Likewise.
21073         * tests/test-mbsinit.c: Likewise.
21074         * tests/test-mbsncasecmp.c: Likewise.
21075         * tests/test-mbsnrtowcs.c: Likewise.
21076         * tests/test-mbspbrk.c: Likewise.
21077         * tests/test-mbspcasecmp.c: Likewise.
21078         * tests/test-mbsrchr.c: Likewise.
21079         * tests/test-mbsrtowcs.c: Likewise.
21080         * tests/test-mbsspn.c: Likewise.
21081         * tests/test-mbsstr1.c: Likewise.
21082         * tests/test-mbsstr2.c: Likewise.
21083         * tests/test-mbsstr3.c: Likewise.
21084         * tests/test-memchr.c: Likewise.
21085         * tests/test-memchr2.c: Likewise.
21086         * tests/test-memcmp.c: Likewise.
21087         * tests/test-memmem.c: Likewise.
21088         * tests/test-memrchr.c: Likewise.
21089         * tests/test-mkdir.c: Likewise.
21090         * tests/test-mkdirat.c: Likewise.
21091         * tests/test-mkfifo.c: Likewise.
21092         * tests/test-mkfifoat.c: Likewise.
21093         * tests/test-mknod.c: Likewise.
21094         * tests/test-nanosleep.c: Likewise.
21095         * tests/test-nl_langinfo.c: Likewise.
21096         * tests/test-obstack-printf.c: Likewise.
21097         * tests/test-open.c: Likewise.
21098         * tests/test-openat.c: Likewise.
21099         * tests/test-pipe-filter-gi1.c: Likewise.
21100         * tests/test-pipe-filter-gi2-main.c: Likewise.
21101         * tests/test-pipe-filter-ii1.c: Likewise.
21102         * tests/test-pipe-filter-ii2-main.c: Likewise.
21103         * tests/test-pipe2.c: Likewise.
21104         * tests/test-popen.h: Likewise.
21105         * tests/test-posixtm.c: Likewise.
21106         * tests/test-pread.c: Likewise.
21107         * tests/test-printf-frexp.c: Likewise.
21108         * tests/test-printf-frexpl.c: Likewise.
21109         * tests/test-printf-posix.c: Likewise.
21110         * tests/test-priv-set.c: Likewise.
21111         * tests/test-quotearg.c: Likewise.
21112         * tests/test-random_r.c: Likewise.
21113         * tests/test-rawmemchr.c: Likewise.
21114         * tests/test-rbtree_list.c: Likewise.
21115         * tests/test-rbtree_oset.c: Likewise.
21116         * tests/test-rbtreehash_list.c: Likewise.
21117         * tests/test-readlink.c: Likewise.
21118         * tests/test-remove.c: Likewise.
21119         * tests/test-rename.c: Likewise.
21120         * tests/test-renameat.c: Likewise.
21121         * tests/test-rmdir.c: Likewise.
21122         * tests/test-round1.c: Likewise.
21123         * tests/test-roundf1.c: Likewise.
21124         * tests/test-roundl.c: Likewise.
21125         * tests/test-safe-alloc.c: Likewise.
21126         * tests/test-sameacls.c: Likewise.
21127         * tests/test-set-mode-acl.c: Likewise.
21128         * tests/test-setenv.c: Likewise.
21129         * tests/test-sigaction.c: Likewise.
21130         * tests/test-signbit.c: Likewise.
21131         * tests/test-sleep.c: Likewise.
21132         * tests/test-snprintf-posix.c: Likewise.
21133         * tests/test-snprintf.c: Likewise.
21134         * tests/test-sprintf-posix.c: Likewise.
21135         * tests/test-stat-time.c: Likewise.
21136         * tests/test-stat.c: Likewise.
21137         * tests/test-strcasestr.c: Likewise.
21138         * tests/test-strchrnul.c: Likewise.
21139         * tests/test-strerror.c: Likewise.
21140         * tests/test-striconv.c: Likewise.
21141         * tests/test-striconveh.c: Likewise.
21142         * tests/test-striconveha.c: Likewise.
21143         * tests/test-strsignal.c: Likewise.
21144         * tests/test-strstr.c: Likewise.
21145         * tests/test-strtod.c: Likewise.
21146         * tests/test-strverscmp.c: Likewise.
21147         * tests/test-symlink.c: Likewise.
21148         * tests/test-symlinkat.c: Likewise.
21149         * tests/test-trunc1.c: Likewise.
21150         * tests/test-trunc2.c: Likewise.
21151         * tests/test-truncf1.c: Likewise.
21152         * tests/test-truncf2.c: Likewise.
21153         * tests/test-truncl.c: Likewise.
21154         * tests/test-uname.c: Likewise.
21155         * tests/test-unlink.c: Likewise.
21156         * tests/test-unlinkat.c: Likewise.
21157         * tests/test-unsetenv.c: Likewise.
21158         * tests/test-usleep.c: Likewise.
21159         * tests/test-utimens.c: Likewise.
21160         * tests/test-utimensat.c: Likewise.
21161         * tests/test-vasnprintf-posix.c: Likewise.
21162         * tests/test-vasnprintf-posix2.c: Likewise.
21163         * tests/test-vasnprintf.c: Likewise.
21164         * tests/test-vasprintf-posix.c: Likewise.
21165         * tests/test-vasprintf.c: Likewise.
21166         * tests/test-vdprintf-posix.c: Likewise.
21167         * tests/test-vfprintf-posix.c: Likewise.
21168         * tests/test-vprintf-posix.c: Likewise.
21169         * tests/test-vsnprintf-posix.c: Likewise.
21170         * tests/test-vsnprintf.c: Likewise.
21171         * tests/test-vsprintf-posix.c: Likewise.
21172         * tests/test-wcrtomb.c: Likewise.
21173         * tests/test-wcsnrtombs.c: Likewise.
21174         * tests/test-wcsrtombs.c: Likewise.
21175         * tests/test-wctype.c: Likewise.
21176         * tests/test-wcwidth.c: Likewise.
21177         * tests/test-xfprintf-posix.c: Likewise.
21178         * tests/test-xmemdup0.c: Likewise.
21179         * tests/test-xprintf-posix.c: Likewise.
21180         * tests/test-xvasprintf.c: Likewise.
21181         * tests/unicase/test-locale-language.c: Likewise.
21182         * tests/unicase/test-mapping-part1.h: Likewise.
21183         * tests/unicase/test-predicate-part1.h: Likewise.
21184         * tests/unicase/test-u8-casecmp.c: Likewise.
21185         * tests/unicase/test-u8-casecoll.c: Likewise.
21186         * tests/unicase/test-u8-casefold.c: Likewise.
21187         * tests/unicase/test-u8-is-cased.c: Likewise.
21188         * tests/unicase/test-u8-is-casefolded.c: Likewise.
21189         * tests/unicase/test-u8-is-lowercase.c: Likewise.
21190         * tests/unicase/test-u8-is-titlecase.c: Likewise.
21191         * tests/unicase/test-u8-is-uppercase.c: Likewise.
21192         * tests/unicase/test-u8-tolower.c: Likewise.
21193         * tests/unicase/test-u8-totitle.c: Likewise.
21194         * tests/unicase/test-u8-toupper.c: Likewise.
21195         * tests/unicase/test-u16-casecmp.c: Likewise.
21196         * tests/unicase/test-u16-casecoll.c: Likewise.
21197         * tests/unicase/test-u16-casefold.c: Likewise.
21198         * tests/unicase/test-u16-is-cased.c: Likewise.
21199         * tests/unicase/test-u16-is-casefolded.c: Likewise.
21200         * tests/unicase/test-u16-is-lowercase.c: Likewise.
21201         * tests/unicase/test-u16-is-titlecase.c: Likewise.
21202         * tests/unicase/test-u16-is-uppercase.c: Likewise.
21203         * tests/unicase/test-u16-tolower.c: Likewise.
21204         * tests/unicase/test-u16-totitle.c: Likewise.
21205         * tests/unicase/test-u16-toupper.c: Likewise.
21206         * tests/unicase/test-u32-casecmp.c: Likewise.
21207         * tests/unicase/test-u32-casecoll.c: Likewise.
21208         * tests/unicase/test-u32-casefold.c: Likewise.
21209         * tests/unicase/test-u32-is-cased.c: Likewise.
21210         * tests/unicase/test-u32-is-casefolded.c: Likewise.
21211         * tests/unicase/test-u32-is-lowercase.c: Likewise.
21212         * tests/unicase/test-u32-is-titlecase.c: Likewise.
21213         * tests/unicase/test-u32-is-uppercase.c: Likewise.
21214         * tests/unicase/test-u32-tolower.c: Likewise.
21215         * tests/unicase/test-u32-totitle.c: Likewise.
21216         * tests/unicase/test-u32-toupper.c: Likewise.
21217         * tests/unicase/test-ulc-casecmp.c: Likewise.
21218         * tests/unicase/test-ulc-casecoll.c: Likewise.
21219         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
21220         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
21221         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
21222         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
21223         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
21224         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
21225         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
21226         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
21227         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
21228         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
21229         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
21230         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
21231         * tests/unictype/test-bidi_byname.c: Likewise.
21232         * tests/unictype/test-bidi_name.c: Likewise.
21233         * tests/unictype/test-bidi_of.c: Likewise.
21234         * tests/unictype/test-bidi_test.c: Likewise.
21235         * tests/unictype/test-block_list.c: Likewise.
21236         * tests/unictype/test-block_of.c: Likewise.
21237         * tests/unictype/test-block_test.c: Likewise.
21238         * tests/unictype/test-categ_and.c: Likewise.
21239         * tests/unictype/test-categ_and_not.c: Likewise.
21240         * tests/unictype/test-categ_byname.c: Likewise.
21241         * tests/unictype/test-categ_name.c: Likewise.
21242         * tests/unictype/test-categ_none.c: Likewise.
21243         * tests/unictype/test-categ_of.c: Likewise.
21244         * tests/unictype/test-categ_or.c: Likewise.
21245         * tests/unictype/test-categ_test_withtable.c: Likewise.
21246         * tests/unictype/test-combining.c: Likewise.
21247         * tests/unictype/test-decdigit.c: Likewise.
21248         * tests/unictype/test-digit.c: Likewise.
21249         * tests/unictype/test-mirror.c: Likewise.
21250         * tests/unictype/test-numeric.c: Likewise.
21251         * tests/unictype/test-pr_byname.c: Likewise.
21252         * tests/unictype/test-pr_test.c: Likewise.
21253         * tests/unictype/test-predicate-part1.h: Likewise.
21254         * tests/unictype/test-scripts.c: Likewise.
21255         * tests/unictype/test-sy_c_ident.c: Likewise.
21256         * tests/unictype/test-sy_java_ident.c: Likewise.
21257         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
21258         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
21259         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
21260         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
21261         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
21262         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
21263         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
21264         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
21265         * tests/uninorm/test-canonical-decomposition.c: Likewise.
21266         * tests/uninorm/test-compat-decomposition.c: Likewise.
21267         * tests/uninorm/test-composition.c: Likewise.
21268         * tests/uninorm/test-decomposing-form.c: Likewise.
21269         * tests/uninorm/test-decomposition.c: Likewise.
21270         * tests/uninorm/test-u8-nfc.c: Likewise.
21271         * tests/uninorm/test-u8-nfd.c: Likewise.
21272         * tests/uninorm/test-u8-nfkc.c: Likewise.
21273         * tests/uninorm/test-u8-nfkd.c: Likewise.
21274         * tests/uninorm/test-u8-normcmp.c: Likewise.
21275         * tests/uninorm/test-u8-normcoll.c: Likewise.
21276         * tests/uninorm/test-u16-nfc.c: Likewise.
21277         * tests/uninorm/test-u16-nfd.c: Likewise.
21278         * tests/uninorm/test-u16-nfkc.c: Likewise.
21279         * tests/uninorm/test-u16-nfkd.c: Likewise.
21280         * tests/uninorm/test-u16-normcmp.c: Likewise.
21281         * tests/uninorm/test-u16-normcoll.c: Likewise.
21282         * tests/uninorm/test-u32-nfc.c: Likewise.
21283         * tests/uninorm/test-u32-nfd.c: Likewise.
21284         * tests/uninorm/test-u32-nfkc.c: Likewise.
21285         * tests/uninorm/test-u32-nfkd.c: Likewise.
21286         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21287         * tests/uninorm/test-u32-normcmp.c: Likewise.
21288         * tests/uninorm/test-u32-normcoll.c: Likewise.
21289         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
21290         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
21291         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
21292         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
21293         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
21294         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
21295         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
21296         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
21297         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
21298         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
21299         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
21300         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
21301         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
21302         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
21303         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
21304         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
21305         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
21306         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
21307         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
21308         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
21309         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
21310         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
21311         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
21312         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
21313         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
21314         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
21315         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
21316         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
21317         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
21318         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
21319         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
21320         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
21321         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
21322         * tests/uniwidth/test-u8-strwidth.c: Likewise.
21323         * tests/uniwidth/test-u8-width.c: Likewise.
21324         * tests/uniwidth/test-u16-strwidth.c: Likewise.
21325         * tests/uniwidth/test-u16-width.c: Likewise.
21326         * tests/uniwidth/test-u32-strwidth.c: Likewise.
21327         * tests/uniwidth/test-u32-width.c: Likewise.
21328         * tests/uniwidth/test-uc_width.c: Likewise.
21329         * tests/uniwidth/test-uc_width2.c: Likewise.
21330         * modules/acl-tests (Files): Add tests/macros.h.
21331         * modules/areadlink-tests (Files): Likewise.
21332         * modules/areadlink-with-size-tests (Files): Likewise.
21333         * modules/areadlinkat-tests (Files): Likewise.
21334         * modules/areadlinkat-with-size-tests (Files): Likewise.
21335         * modules/argmatch-tests (Files): Likewise.
21336         * modules/argv-iter-tests (Files): Likewise.
21337         * modules/array-list-tests (Files): Likewise.
21338         * modules/array-mergesort-tests (Files): Likewise.
21339         * modules/array-oset-tests (Files): Likewise.
21340         * modules/avltree-list-tests (Files): Likewise.
21341         * modules/avltree-oset-tests (Files): Likewise.
21342         * modules/avltreehash-list-tests (Files): Likewise.
21343         * modules/base64-tests (Files): Likewise.
21344         * modules/binary-io-tests (Files): Likewise.
21345         * modules/bitrotate-tests (Files): Likewise.
21346         * modules/btowc-tests (Files): Likewise.
21347         * modules/byteswap-tests (Files): Likewise.
21348         * modules/c-ctype-tests (Files): Likewise.
21349         * modules/c-stack-tests (Files): Likewise.
21350         * modules/c-strcase-tests (Files): Likewise.
21351         * modules/c-strcasestr-tests (Files): Likewise.
21352         * modules/c-strstr-tests (Files): Likewise.
21353         * modules/canonicalize-lgpl-tests (Files): Likewise.
21354         * modules/canonicalize-tests (Files): Likewise.
21355         * modules/carray-list-tests (Files): Likewise.
21356         * modules/ceilf-tests (Files): Likewise.
21357         * modules/ceill-tests (Files): Likewise.
21358         * modules/chown-tests (Files): Likewise.
21359         * modules/cloexec-tests (Files): Likewise.
21360         * modules/copy-file-tests (Files): Likewise.
21361         * modules/count-one-bits-tests (Files): Likewise.
21362         * modules/dprintf-posix-tests (Files): Likewise.
21363         * modules/dup2-tests (Files): Likewise.
21364         * modules/dup3-tests (Files): Likewise.
21365         * modules/duplocale-tests (Files): Likewise.
21366         * modules/fbufmode-tests (Files): Likewise.
21367         * modules/fchdir-tests (Files): Likewise.
21368         * modules/fcntl-safer-tests (Files): Likewise.
21369         * modules/fcntl-tests (Files): Likewise.
21370         * modules/fdopendir-tests (Files): Likewise.
21371         * modules/fdutimensat-tests (Files): Likewise.
21372         * modules/fflush-tests (Files): Likewise.
21373         * modules/filevercmp-tests (Files): Likewise.
21374         * modules/flock-tests (Files): Likewise.
21375         * modules/floorf-tests (Files): Likewise.
21376         * modules/floorl-tests (Files): Likewise.
21377         * modules/fnmatch-tests (Files): Likewise.
21378         * modules/fopen-safer-tests (Files): Likewise.
21379         * modules/fopen-tests (Files): Likewise.
21380         * modules/fpending-tests (Files): Likewise.
21381         * modules/fprintf-posix-tests (Files): Likewise.
21382         * modules/fpurge-tests (Files): Likewise.
21383         * modules/freadable-tests (Files): Likewise.
21384         * modules/freadahead-tests (Files): Likewise.
21385         * modules/freading-tests (Files): Likewise.
21386         * modules/freadptr-tests (Files): Likewise.
21387         * modules/freadseek-tests (Files): Likewise.
21388         * modules/freopen-tests (Files): Likewise.
21389         * modules/frexp-nolibm-tests (Files): Likewise.
21390         * modules/frexp-tests (Files): Likewise.
21391         * modules/frexpl-nolibm-tests (Files): Likewise.
21392         * modules/frexpl-tests (Files): Likewise.
21393         * modules/fseek-tests (Files): Likewise.
21394         * modules/fseeko-tests (Files): Likewise.
21395         * modules/fstrcmp-tests (Files): Likewise.
21396         * modules/fsync-tests (Files): Likewise.
21397         * modules/ftell-tests (Files): Likewise.
21398         * modules/ftello-tests (Files): Likewise.
21399         * modules/func-tests (Files): Likewise.
21400         * modules/futimens-tests (Files): Likewise.
21401         * modules/fwritable-tests (Files): Likewise.
21402         * modules/fwriting-tests (Files): Likewise.
21403         * modules/getcwd-tests (Files): Likewise.
21404         * modules/getdate-tests (Files): Likewise.
21405         * modules/getdelim-tests (Files): Likewise.
21406         * modules/getdtablesize-tests (Files): Likewise.
21407         * modules/getgroups-tests (Files): Likewise.
21408         * modules/getline-tests (Files): Likewise.
21409         * modules/getndelim2-tests (Files): Likewise.
21410         * modules/glob-tests (Files): Likewise.
21411         * modules/hash-tests (Files): Likewise.
21412         * modules/i-ring-tests (Files): Likewise.
21413         * modules/iconv-tests (Files): Likewise.
21414         * modules/iconv_open-utf-tests (Files): Likewise.
21415         * modules/idpriv-drop-tests (Files): Likewise.
21416         * modules/idpriv-droptemp-tests (Files): Likewise.
21417         * modules/inet_ntop-tests (Files): Likewise.
21418         * modules/inet_pton-tests (Files): Likewise.
21419         * modules/isblank-tests (Files): Likewise.
21420         * modules/isfinite-tests (Files): Likewise.
21421         * modules/isinf-tests (Files): Likewise.
21422         * modules/isnan-tests (Files): Likewise.
21423         * modules/isnand-nolibm-tests (Files): Likewise.
21424         * modules/isnand-tests (Files): Likewise.
21425         * modules/isnanf-nolibm-tests (Files): Likewise.
21426         * modules/isnanf-tests (Files): Likewise.
21427         * modules/isnanl-nolibm-tests (Files): Likewise.
21428         * modules/isnanl-tests (Files): Likewise.
21429         * modules/lchown-tests (Files): Likewise.
21430         * modules/ldexpl-tests (Files): Likewise.
21431         * modules/link-tests (Files): Likewise.
21432         * modules/linkat-tests (Files): Likewise.
21433         * modules/linked-list-tests (Files): Likewise.
21434         * modules/linkedhash-list-tests (Files): Likewise.
21435         * modules/localename-tests (Files): Likewise.
21436         * modules/lseek-tests (Files): Likewise.
21437         * modules/lstat-tests (Files): Likewise.
21438         * modules/mbmemcasecmp-tests (Files): Likewise.
21439         * modules/mbmemcasecoll-tests (Files): Likewise.
21440         * modules/mbrtowc-tests (Files): Likewise.
21441         * modules/mbscasecmp-tests (Files): Likewise.
21442         * modules/mbscasestr-tests (Files): Likewise.
21443         * modules/mbschr-tests (Files): Likewise.
21444         * modules/mbscspn-tests (Files): Likewise.
21445         * modules/mbsinit-tests (Files): Likewise.
21446         * modules/mbsncasecmp-tests (Files): Likewise.
21447         * modules/mbsnrtowcs-tests (Files): Likewise.
21448         * modules/mbspbrk-tests (Files): Likewise.
21449         * modules/mbspcasecmp-tests (Files): Likewise.
21450         * modules/mbsrchr-tests (Files): Likewise.
21451         * modules/mbsrtowcs-tests (Files): Likewise.
21452         * modules/mbsspn-tests (Files): Likewise.
21453         * modules/mbsstr-tests (Files): Likewise.
21454         * modules/memchr-tests (Files): Likewise.
21455         * modules/memchr2-tests (Files): Likewise.
21456         * modules/memcmp-tests (Files): Likewise.
21457         * modules/memmem-tests (Files): Likewise.
21458         * modules/memrchr-tests (Files): Likewise.
21459         * modules/mkdir-tests (Files): Likewise.
21460         * modules/mkfifo-tests (Files): Likewise.
21461         * modules/mkfifoat-tests (Files): Likewise.
21462         * modules/mknod-tests (Files): Likewise.
21463         * modules/nanosleep-tests (Files): Likewise.
21464         * modules/nl_langinfo-tests (Files): Likewise.
21465         * modules/obstack-printf-tests (Files): Likewise.
21466         * modules/open-tests (Files): Likewise.
21467         * modules/openat-tests (Files): Likewise.
21468         * modules/pipe-filter-gi-tests (Files): Likewise.
21469         * modules/pipe-filter-ii-tests (Files): Likewise.
21470         * modules/pipe2-tests (Files): Likewise.
21471         * modules/popen-safer-tests (Files): Likewise.
21472         * modules/popen-tests (Files): Likewise.
21473         * modules/posixtm-tests (Files): Likewise.
21474         * modules/pread-tests (Files): Likewise.
21475         * modules/printf-frexp-tests (Files): Likewise.
21476         * modules/printf-frexpl-tests (Files): Likewise.
21477         * modules/printf-posix-tests (Files): Likewise.
21478         * modules/priv-set-tests (Files): Likewise.
21479         * modules/quotearg-tests (Files): Likewise.
21480         * modules/random_r-tests (Files): Likewise.
21481         * modules/rawmemchr-tests (Files): Likewise.
21482         * modules/rbtree-list-tests (Files): Likewise.
21483         * modules/rbtree-oset-tests (Files): Likewise.
21484         * modules/rbtreehash-list-tests (Files): Likewise.
21485         * modules/readlink-tests (Files): Likewise.
21486         * modules/remove-tests (Files): Likewise.
21487         * modules/rename-tests (Files): Likewise.
21488         * modules/renameat-tests (Files): Likewise.
21489         * modules/rmdir-tests (Files): Likewise.
21490         * modules/round-tests (Files): Likewise.
21491         * modules/roundf-tests (Files): Likewise.
21492         * modules/roundl-tests (Files): Likewise.
21493         * modules/safe-alloc-tests (Files): Likewise.
21494         * modules/setenv-tests (Files): Likewise.
21495         * modules/sigaction-tests (Files): Likewise.
21496         * modules/signbit-tests (Files): Likewise.
21497         * modules/sleep-tests (Files): Likewise.
21498         * modules/snprintf-posix-tests (Files): Likewise.
21499         * modules/snprintf-tests (Files): Likewise.
21500         * modules/sprintf-posix-tests (Files): Likewise.
21501         * modules/stat-tests (Files): Likewise.
21502         * modules/stat-time-tests (Files): Likewise.
21503         * modules/strcasestr-tests (Files): Likewise.
21504         * modules/strchrnul-tests (Files): Likewise.
21505         * modules/strerror-tests (Files): Likewise.
21506         * modules/striconv-tests (Files): Likewise.
21507         * modules/striconveh-tests (Files): Likewise.
21508         * modules/striconveha-tests (Files): Likewise.
21509         * modules/strsignal-tests (Files): Likewise.
21510         * modules/strstr-tests (Files): Likewise.
21511         * modules/strtod-tests (Files): Likewise.
21512         * modules/strverscmp-tests (Files): Likewise.
21513         * modules/symlink-tests (Files): Likewise.
21514         * modules/symlinkat-tests (Files): Likewise.
21515         * modules/trunc-tests (Files): Likewise.
21516         * modules/truncf-tests (Files): Likewise.
21517         * modules/truncl-tests (Files): Likewise.
21518         * modules/uname-tests (Files): Likewise.
21519         * modules/unicase/cased-tests (Files): Likewise.
21520         * modules/unicase/ignorable-tests (Files): Likewise.
21521         * modules/unicase/locale-language-tests (Files): Likewise.
21522         * modules/unicase/tolower-tests (Files): Likewise.
21523         * modules/unicase/totitle-tests (Files): Likewise.
21524         * modules/unicase/toupper-tests (Files): Likewise.
21525         * modules/unicase/u8-casecmp-tests (Files): Likewise.
21526         * modules/unicase/u8-casecoll-tests (Files): Likewise.
21527         * modules/unicase/u8-casefold-tests (Files): Likewise.
21528         * modules/unicase/u8-is-cased-tests (Files): Likewise.
21529         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
21530         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
21531         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
21532         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
21533         * modules/unicase/u8-tolower-tests (Files): Likewise.
21534         * modules/unicase/u8-totitle-tests (Files): Likewise.
21535         * modules/unicase/u8-toupper-tests (Files): Likewise.
21536         * modules/unicase/u16-casecmp-tests (Files): Likewise.
21537         * modules/unicase/u16-casecoll-tests (Files): Likewise.
21538         * modules/unicase/u16-casefold-tests (Files): Likewise.
21539         * modules/unicase/u16-is-cased-tests (Files): Likewise.
21540         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
21541         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
21542         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
21543         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
21544         * modules/unicase/u16-tolower-tests (Files): Likewise.
21545         * modules/unicase/u16-totitle-tests (Files): Likewise.
21546         * modules/unicase/u16-toupper-tests (Files): Likewise.
21547         * modules/unicase/u32-casecmp-tests (Files): Likewise.
21548         * modules/unicase/u32-casecoll-tests (Files): Likewise.
21549         * modules/unicase/u32-casefold-tests (Files): Likewise.
21550         * modules/unicase/u32-is-cased-tests (Files): Likewise.
21551         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
21552         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
21553         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
21554         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
21555         * modules/unicase/u32-tolower-tests (Files): Likewise.
21556         * modules/unicase/u32-totitle-tests (Files): Likewise.
21557         * modules/unicase/u32-toupper-tests (Files): Likewise.
21558         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
21559         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
21560         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
21561         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
21562         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
21563         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
21564         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
21565         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
21566         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
21567         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
21568         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
21569         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
21570         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
21571         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
21572         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
21573         * modules/unictype/bidicategory-name-tests (Files): Likewise.
21574         * modules/unictype/bidicategory-of-tests (Files): Likewise.
21575         * modules/unictype/bidicategory-test-tests (Files): Likewise.
21576         * modules/unictype/block-list-tests (Files): Likewise.
21577         * modules/unictype/block-of-tests (Files): Likewise.
21578         * modules/unictype/block-test-tests (Files): Likewise.
21579         * modules/unictype/category-C-tests (Files): Likewise.
21580         * modules/unictype/category-Cc-tests (Files): Likewise.
21581         * modules/unictype/category-Cf-tests (Files): Likewise.
21582         * modules/unictype/category-Cn-tests (Files): Likewise.
21583         * modules/unictype/category-Co-tests (Files): Likewise.
21584         * modules/unictype/category-Cs-tests (Files): Likewise.
21585         * modules/unictype/category-L-tests (Files): Likewise.
21586         * modules/unictype/category-Ll-tests (Files): Likewise.
21587         * modules/unictype/category-Lm-tests (Files): Likewise.
21588         * modules/unictype/category-Lo-tests (Files): Likewise.
21589         * modules/unictype/category-Lt-tests (Files): Likewise.
21590         * modules/unictype/category-Lu-tests (Files): Likewise.
21591         * modules/unictype/category-M-tests (Files): Likewise.
21592         * modules/unictype/category-Mc-tests (Files): Likewise.
21593         * modules/unictype/category-Me-tests (Files): Likewise.
21594         * modules/unictype/category-Mn-tests (Files): Likewise.
21595         * modules/unictype/category-N-tests (Files): Likewise.
21596         * modules/unictype/category-Nd-tests (Files): Likewise.
21597         * modules/unictype/category-Nl-tests (Files): Likewise.
21598         * modules/unictype/category-No-tests (Files): Likewise.
21599         * modules/unictype/category-P-tests (Files): Likewise.
21600         * modules/unictype/category-Pc-tests (Files): Likewise.
21601         * modules/unictype/category-Pd-tests (Files): Likewise.
21602         * modules/unictype/category-Pe-tests (Files): Likewise.
21603         * modules/unictype/category-Pf-tests (Files): Likewise.
21604         * modules/unictype/category-Pi-tests (Files): Likewise.
21605         * modules/unictype/category-Po-tests (Files): Likewise.
21606         * modules/unictype/category-Ps-tests (Files): Likewise.
21607         * modules/unictype/category-S-tests (Files): Likewise.
21608         * modules/unictype/category-Sc-tests (Files): Likewise.
21609         * modules/unictype/category-Sk-tests (Files): Likewise.
21610         * modules/unictype/category-Sm-tests (Files): Likewise.
21611         * modules/unictype/category-So-tests (Files): Likewise.
21612         * modules/unictype/category-Z-tests (Files): Likewise.
21613         * modules/unictype/category-Zl-tests (Files): Likewise.
21614         * modules/unictype/category-Zp-tests (Files): Likewise.
21615         * modules/unictype/category-Zs-tests (Files): Likewise.
21616         * modules/unictype/category-and-not-tests (Files): Likewise.
21617         * modules/unictype/category-and-tests (Files): Likewise.
21618         * modules/unictype/category-byname-tests (Files): Likewise.
21619         * modules/unictype/category-name-tests (Files): Likewise.
21620         * modules/unictype/category-none-tests (Files): Likewise.
21621         * modules/unictype/category-of-tests (Files): Likewise.
21622         * modules/unictype/category-or-tests (Files): Likewise.
21623         * modules/unictype/category-test-withtable-tests (Files): Likewise.
21624         * modules/unictype/combining-class-tests (Files): Likewise.
21625         * modules/unictype/ctype-alnum-tests (Files): Likewise.
21626         * modules/unictype/ctype-alpha-tests (Files): Likewise.
21627         * modules/unictype/ctype-blank-tests (Files): Likewise.
21628         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
21629         * modules/unictype/ctype-digit-tests (Files): Likewise.
21630         * modules/unictype/ctype-graph-tests (Files): Likewise.
21631         * modules/unictype/ctype-lower-tests (Files): Likewise.
21632         * modules/unictype/ctype-print-tests (Files): Likewise.
21633         * modules/unictype/ctype-punct-tests (Files): Likewise.
21634         * modules/unictype/ctype-space-tests (Files): Likewise.
21635         * modules/unictype/ctype-upper-tests (Files): Likewise.
21636         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
21637         * modules/unictype/decimal-digit-tests (Files): Likewise.
21638         * modules/unictype/digit-tests (Files): Likewise.
21639         * modules/unictype/mirror-tests (Files): Likewise.
21640         * modules/unictype/numeric-tests (Files): Likewise.
21641         * modules/unictype/property-alphabetic-tests (Files): Likewise.
21642         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
21643         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
21644         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
21645         Likewise.
21646         * modules/unictype/property-bidi-block-separator-tests (Files):
21647         Likewise.
21648         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
21649         Likewise.
21650         * modules/unictype/property-bidi-common-separator-tests (Files):
21651         Likewise.
21652         * modules/unictype/property-bidi-control-tests (Files): Likewise.
21653         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
21654         Likewise.
21655         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
21656         Likewise.
21657         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
21658         Likewise.
21659         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
21660         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
21661         Likewise.
21662         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
21663         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
21664         Likewise.
21665         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
21666         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
21667         * modules/unictype/property-bidi-segment-separator-tests (Files):
21668         Likewise.
21669         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
21670         * modules/unictype/property-byname-tests (Files): Likewise.
21671         * modules/unictype/property-combining-tests (Files): Likewise.
21672         * modules/unictype/property-composite-tests (Files): Likewise.
21673         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
21674         * modules/unictype/property-dash-tests (Files): Likewise.
21675         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
21676         * modules/unictype/property-default-ignorable-code-point-tests (Files):
21677         Likewise.
21678         * modules/unictype/property-deprecated-tests (Files): Likewise.
21679         * modules/unictype/property-diacritic-tests (Files): Likewise.
21680         * modules/unictype/property-extender-tests (Files): Likewise.
21681         * modules/unictype/property-format-control-tests (Files): Likewise.
21682         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
21683         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
21684         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
21685         * modules/unictype/property-hex-digit-tests (Files): Likewise.
21686         * modules/unictype/property-hyphen-tests (Files): Likewise.
21687         * modules/unictype/property-id-continue-tests (Files): Likewise.
21688         * modules/unictype/property-id-start-tests (Files): Likewise.
21689         * modules/unictype/property-ideographic-tests (Files): Likewise.
21690         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
21691         * modules/unictype/property-ids-trinary-operator-tests (Files):
21692         Likewise.
21693         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
21694         * modules/unictype/property-iso-control-tests (Files): Likewise.
21695         * modules/unictype/property-join-control-tests (Files): Likewise.
21696         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
21697         * modules/unictype/property-line-separator-tests (Files): Likewise.
21698         * modules/unictype/property-logical-order-exception-tests (Files):
21699         Likewise.
21700         * modules/unictype/property-lowercase-tests (Files): Likewise.
21701         * modules/unictype/property-math-tests (Files): Likewise.
21702         * modules/unictype/property-non-break-tests (Files): Likewise.
21703         * modules/unictype/property-not-a-character-tests (Files): Likewise.
21704         * modules/unictype/property-numeric-tests (Files): Likewise.
21705         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
21706         * modules/unictype/property-other-default-ignorable-code-point-tests
21707         (Files): Likewise.
21708         * modules/unictype/property-other-grapheme-extend-tests (Files):
21709         Likewise.
21710         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
21711         * modules/unictype/property-other-id-start-tests (Files): Likewise.
21712         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
21713         * modules/unictype/property-other-math-tests (Files): Likewise.
21714         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
21715         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
21716         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
21717         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
21718         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
21719         * modules/unictype/property-private-use-tests (Files): Likewise.
21720         * modules/unictype/property-punctuation-tests (Files): Likewise.
21721         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
21722         * modules/unictype/property-radical-tests (Files): Likewise.
21723         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
21724         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
21725         * modules/unictype/property-space-tests (Files): Likewise.
21726         * modules/unictype/property-terminal-punctuation-tests (Files):
21727         Likewise.
21728         * modules/unictype/property-test-tests (Files): Likewise.
21729         * modules/unictype/property-titlecase-tests (Files): Likewise.
21730         * modules/unictype/property-unassigned-code-value-tests (Files):
21731         Likewise.
21732         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
21733         * modules/unictype/property-uppercase-tests (Files): Likewise.
21734         * modules/unictype/property-variation-selector-tests (Files): Likewise.
21735         * modules/unictype/property-white-space-tests (Files): Likewise.
21736         * modules/unictype/property-xid-continue-tests (Files): Likewise.
21737         * modules/unictype/property-xid-start-tests (Files): Likewise.
21738         * modules/unictype/property-zero-width-tests (Files): Likewise.
21739         * modules/unictype/scripts-tests (Files): Likewise.
21740         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
21741         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
21742         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
21743         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
21744         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
21745         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
21746         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
21747         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
21748         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
21749         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
21750         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
21751         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
21752         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
21753         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
21754         * modules/uninorm/composition-tests (Files): Likewise.
21755         * modules/uninorm/decomposing-form-tests (Files): Likewise.
21756         * modules/uninorm/decomposition-tests (Files): Likewise.
21757         * modules/uninorm/filter-tests (Files): Likewise.
21758         * modules/uninorm/nfc-tests (Files): Likewise.
21759         * modules/uninorm/nfd-tests (Files): Likewise.
21760         * modules/uninorm/nfkc-tests (Files): Likewise.
21761         * modules/uninorm/nfkd-tests (Files): Likewise.
21762         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
21763         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
21764         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
21765         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
21766         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
21767         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
21768         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
21769         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
21770         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
21771         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
21772         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
21773         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
21774         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
21775         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
21776         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
21777         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
21778         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
21779         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
21780         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
21781         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
21782         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
21783         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
21784         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
21785         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
21786         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
21787         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
21788         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
21789         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
21790         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
21791         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
21792         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
21793         * modules/uniwidth/u8-width-tests (Files): Likewise.
21794         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
21795         * modules/uniwidth/u16-width-tests (Files): Likewise.
21796         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
21797         * modules/uniwidth/u32-width-tests (Files): Likewise.
21798         * modules/uniwidth/width-tests (Files): Likewise.
21799         * modules/unlink-tests (Files): Likewise.
21800         * modules/unsetenv-tests (Files): Likewise.
21801         * modules/usleep-tests (Files): Likewise.
21802         * modules/utimens-tests (Files): Likewise.
21803         * modules/utimensat-tests (Files): Likewise.
21804         * modules/vasnprintf-posix-tests (Files): Likewise.
21805         * modules/vasnprintf-tests (Files): Likewise.
21806         * modules/vasprintf-posix-tests (Files): Likewise.
21807         * modules/vasprintf-tests (Files): Likewise.
21808         * modules/vdprintf-posix-tests (Files): Likewise.
21809         * modules/vfprintf-posix-tests (Files): Likewise.
21810         * modules/vprintf-posix-tests (Files): Likewise.
21811         * modules/vsnprintf-posix-tests (Files): Likewise.
21812         * modules/vsnprintf-tests (Files): Likewise.
21813         * modules/vsprintf-posix-tests (Files): Likewise.
21814         * modules/wcrtomb-tests (Files): Likewise.
21815         * modules/wcsnrtombs-tests (Files): Likewise.
21816         * modules/wcsrtombs-tests (Files): Likewise.
21817         * modules/wctype-tests (Files): Likewise.
21818         * modules/wcwidth-tests (Files): Likewise.
21819         * modules/xmemdup0-tests (Files): Likewise.
21820         * modules/xprintf-posix-tests (Files): Likewise.
21821         * modules/xvasprintf-tests (Files): Likewise.
21822
21823 2009-12-24  Eric Blake  <ebb9@byu.net>
21824
21825         test-nanosleep: fix typo
21826         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
21827         patch.
21828         Reported by Bruno Haible.
21829
21830 2009-12-24  Bruno Haible  <bruno@clisp.org>
21831
21832         Reduce namespace pollution on glibc systems.
21833         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
21834         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
21835         systems.
21836         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
21837         <getopt.h> on glibc systems.
21838         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
21839         systems.
21840         * lib/fcntl.c: Include <unistd.h> here instead.
21841
21842 2009-12-24  Bruno Haible  <bruno@clisp.org>
21843
21844         * lib/stdlib.in.h (includes): Fix typo in today's commit.
21845
21846 2009-12-24  Eric Blake  <ebb9@byu.net>
21847
21848         tests: add signature checks
21849         * tests/signature.h (SIGNATURE_CHECK): New file.
21850         * modules/atexit-tests (Files): Use it.
21851         * modules/btowc-tests (Files): Likewise.
21852         * modules/canonicalize-lgpl-tests (Files): Likewise.
21853         * modules/ceilf-tests (Files): Likewise.
21854         * modules/ceill-tests (Files): Likewise.
21855         * modules/chown-tests (Files): Likewise.
21856         * modules/dprintf-posix-tests (Files): Likewise.
21857         * modules/dup2-tests (Files): Likewise.
21858         * modules/dup3-tests (Files): Likewise.
21859         * modules/duplocale-tests (Files): Likewise.
21860         * modules/fchdir-tests (Files): Likewise.
21861         * modules/fcntl-tests (Files): Likewise.
21862         * modules/fdopendir-tests (Files): Likewise.
21863         * modules/fflush-tests (Files): Likewise.
21864         * modules/flock-tests (Files): Likewise.
21865         * modules/floorf-tests (Files): Likewise.
21866         * modules/floorl-tests (Files): Likewise.
21867         * modules/fnmatch-tests (Files): Likewise.
21868         * modules/fopen-tests (Files): Likewise.
21869         * modules/fprintf-posix-tests (Files): Likewise.
21870         * modules/freopen-tests (Files): Likewise.
21871         * modules/frexp-nolibm-tests (Files): Likewise.
21872         * modules/frexp-tests (Files): Likewise.
21873         * modules/frexpl-nolibm-tests (Files): Likewise.
21874         * modules/frexpl-tests (Files): Likewise.
21875         * modules/fseek-tests (Files): Likewise.
21876         * modules/fseeko-tests (Files): Likewise.
21877         * modules/fsync-tests (Files): Likewise.
21878         * modules/ftell-tests (Files): Likewise.
21879         * modules/ftello-tests (Files): Likewise.
21880         * modules/futimens-tests (Files): Likewise.
21881         * modules/getaddrinfo-tests (Files): Likewise.
21882         * modules/getcwd-tests (Files): Likewise.
21883         * modules/getdelim-tests (Files): Likewise.
21884         * modules/getdtablesize-tests (Files): Likewise.
21885         * modules/getgroups-tests (Files): Likewise.
21886         * modules/gethostname-tests (Files): Likewise.
21887         * modules/getline-tests (Files): Likewise.
21888         * modules/getopt-posix-tests (Files): Likewise.
21889         * modules/gettimeofday-tests (Files): Likewise.
21890         * modules/glob-tests (Files): Likewise.
21891         * modules/iconv-tests (Files): Likewise.
21892         * modules/inet_ntop-tests (Files): Likewise.
21893         * modules/inet_pton-tests (Files): Likewise.
21894         * modules/isblank-tests (Files): Likewise.
21895         * modules/lchown-tests (Files): Likewise.
21896         * modules/ldexpl-tests (Files): Likewise.
21897         * modules/link-tests (Files): Likewise.
21898         * modules/linkat-tests (Files): Likewise.
21899         * modules/lseek-tests (Files): Likewise.
21900         * modules/lstat-tests (Files): Likewise.
21901         * modules/mbrtowc-tests (Files): Likewise.
21902         * modules/mbsinit-tests (Files): Likewise.
21903         * modules/mbsnrtowcs-tests (Files): Likewise.
21904         * modules/mbsrtowcs-tests (Files): Likewise.
21905         * modules/memchr-tests (Files): Likewise.
21906         * modules/memcmp-tests (Files): Likewise.
21907         * modules/memmem-tests (Files): Likewise.
21908         * modules/memrchr-tests (Files): Likewise.
21909         * modules/mkdir-tests (Files): Likewise.
21910         * modules/mkfifo-tests (Files): Likewise.
21911         * modules/mkfifoat-tests (Files): Likewise.
21912         * modules/mknod-tests (Files): Likewise.
21913         * modules/nanosleep-tests (Files): Likewise.
21914         * modules/nl_langinfo-tests (Files): Likewise.
21915         * modules/obstack-printf-tests (Files): Likewise.
21916         * modules/open-tests (Files): Likewise.
21917         * modules/openat-tests (Files): Likewise.
21918         * modules/perror-tests (Files): Likewise.
21919         * modules/pipe2-tests (Files): Likewise.
21920         * modules/poll-tests (Files): Likewise.
21921         * modules/popen-tests (Files): Likewise.
21922         * modules/posix_spawn-tests (Files): Likewise.
21923         * modules/posix_spawnp-tests (Files): Likewise.
21924         * modules/pread-tests (Files): Likewise.
21925         * modules/printf-posix-tests (Files): Likewise.
21926         * modules/pty-tests (Files): Likewise.
21927         * modules/random_r-tests (Files): Likewise.
21928         * modules/rawmemchr-tests (Files): Likewise.
21929         * modules/readlink-tests (Files): Likewise.
21930         * modules/remove-tests (Files): Likewise.
21931         * modules/rename-tests (Files): Likewise.
21932         * modules/renameat-tests (Files): Likewise.
21933         * modules/rmdir-tests (Files): Likewise.
21934         * modules/round-tests (Files): Likewise.
21935         * modules/roundf-tests (Files): Likewise.
21936         * modules/roundl-tests (Files): Likewise.
21937         * modules/select-tests (Files): Likewise.
21938         * modules/setenv-tests (Files): Likewise.
21939         * modules/sigaction-tests (Files): Likewise.
21940         * modules/sleep-tests (Files): Likewise.
21941         * modules/snprintf-posix-tests (Files): Likewise.
21942         * modules/snprintf-tests (Files): Likewise.
21943         * modules/sprintf-posix-tests (Files): Likewise.
21944         * modules/stat-tests (Files): Likewise.
21945         * modules/strcasestr-tests (Files): Likewise.
21946         * modules/strchrnul-tests (Files): Likewise.
21947         * modules/strerror-tests (Files): Likewise.
21948         * modules/strsignal-tests (Files): Likewise.
21949         * modules/strstr-tests (Files): Likewise.
21950         * modules/strtod-tests (Files): Likewise.
21951         * modules/strverscmp-tests (Files): Likewise.
21952         * modules/symlink-tests (Files): Likewise.
21953         * modules/symlinkat-tests (Files): Likewise.
21954         * modules/times-tests (Files): Likewise.
21955         * modules/trunc-tests (Files): Likewise.
21956         * modules/truncf-tests (Files): Likewise.
21957         * modules/truncl-tests (Files): Likewise.
21958         * modules/tsearch-tests (Files): Likewise.
21959         * modules/uname-tests (Files): Likewise.
21960         * modules/unlink-tests (Files): Likewise.
21961         * modules/unsetenv-tests (Files): Likewise.
21962         * modules/usleep-tests (Files): Likewise.
21963         * modules/utimensat-tests (Files): Likewise.
21964         * modules/vasprintf-tests (Files): Likewise.
21965         * modules/vdprintf-posix-tests (Files): Likewise.
21966         * modules/vfprintf-posix-tests (Files): Likewise.
21967         * modules/vprintf-posix-tests (Files): Likewise.
21968         * modules/vsnprintf-posix-tests (Files): Likewise.
21969         * modules/vsnprintf-tests (Files): Likewise.
21970         * modules/vsprintf-posix-tests (Files): Likewise.
21971         * modules/wcrtomb-tests (Files): Likewise.
21972         * modules/wcsnrtombs-tests (Files): Likewise.
21973         * modules/wcsrtombs-tests (Files): Likewise.
21974         * modules/wcwidth-tests (Files): Likewise.
21975         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
21976         * tests/test-isinf.c (isinf): Likewise.
21977         * tests/test-isnan.c (isnan): Likewise.
21978         * tests/test-signbit.c (signbit): Likewise.
21979         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
21980         declaration, either as macro or with correct signature.
21981         (select): Ensure function under test is declared with correct
21982         signature in correct header.
21983         * tests/test-atexit.c (atexit): Likewise.
21984         * tests/test-btowc.c (btowc): Likewise.
21985         * tests/test-canonicalize-lgpl.c (realpath)
21986         (canonicalize_file_name): Likewise.
21987         * tests/test-ceilf1.c (ceilf): Likewise.
21988         * tests/test-ceill.c (ceill): Likewise.
21989         * tests/test-chown.c (chown): Likewise.
21990         * tests/test-dprintf-posix.c (dprintf): Likewise.
21991         * tests/test-dup2.c (dup2): Likewise.
21992         * tests/test-dup3.c (dup3): Likewise.
21993         * tests/test-duplocale.c (duplocale): Likewise.
21994         * tests/test-fchdir.c (fchdir): Likewise.
21995         * tests/test-fchownat.c (fchownat): Likewise.
21996         * tests/test-fcntl.c (fcntl): Likewise.
21997         * tests/test-fdopendir.c (fdopendir): Likewise.
21998         * tests/test-fflush.c (fflush): Likewise.
21999         * tests/test-flock.c (flock): Likewise.
22000         * tests/test-floorf1.c (floorf): Likewise.
22001         * tests/test-floorl.c (floorl): Likewise.
22002         * tests/test-fnmatch.c (fnmatch): Likewise.
22003         * tests/test-fopen.c (fopen): Likewise.
22004         * tests/test-fprintf-posix.c (fprintf): Likewise.
22005         * tests/test-freopen.c (freopen): Likewise.
22006         * tests/test-frexp.c (frexp): Likewise.
22007         * tests/test-frexpl.c (frexpl): Likewise.
22008         * tests/test-fseek.c (fseek): Likewise.
22009         * tests/test-fseeko.c (fseeko): Likewise.
22010         * tests/test-fstatat.c (fstatat): Likewise.
22011         * tests/test-fsync.c (fsync): Likewise.
22012         * tests/test-ftell.c (ftell): Likewise.
22013         * tests/test-ftello.c (ftello): Likewise.
22014         * tests/test-futimens.c (futimens): Likewise.
22015         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
22016         (gai_strerror): Likewise.
22017         * tests/test-getcwd.c (getcwd): Likewise.
22018         * tests/test-getdelim.c (getdelim): Likewise.
22019         * tests/test-getdtablesize.c (getdtablesize): Likewise.
22020         * tests/test-getgroups.c (getgroups): Likewise.
22021         * tests/test-gethostname.c (gethostname): Likewise.
22022         * tests/test-getline.c (getline): Likewise.
22023         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
22024         Likewise.
22025         * tests/test-gettimeofday.c (gettimeofday): Likewise.
22026         * tests/test-glob.c (glob, globfree): Likewise.
22027         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
22028         * tests/test-inet_ntop.c (inet_ntop): Likewise.
22029         * tests/test-inet_pton.c (inet_pton): Likewise.
22030         * tests/test-isblank.c (isblank): Likewise.
22031         * tests/test-lchown.c (lchown): Likewise.
22032         * tests/test-ldexpl.c (ldexpl): Likewise.
22033         * tests/test-link.c (link): Likewise.
22034         * tests/test-linkat.c (linkat): Likewise.
22035         * tests/test-lseek.c (lseek): Likewise.
22036         * tests/test-lstat.c (lstat): Likewise.
22037         * tests/test-mbrtowc.c (mbrtowc): Likewise.
22038         * tests/test-mbsinit.c (mbsinit): Likewise.
22039         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
22040         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
22041         * tests/test-memchr.c (memchr): Likewise.
22042         * tests/test-memcmp.c (memcmp): Likewise.
22043         * tests/test-memmem.c (memmem): Likewise.
22044         * tests/test-memrchr.c (memrchr): Likewise.
22045         * tests/test-mkdir.c (mkdir): Likewise.
22046         * tests/test-mkdirat.c (mkdirat): Likewise.
22047         * tests/test-mkfifo.c (mkfifo): Likewise.
22048         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
22049         * tests/test-mknod.c (mknod): Likewise.
22050         * tests/test-nanosleep.c (nanosleep): Likewise.
22051         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
22052         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
22053         Likewise.
22054         * tests/test-open.c (open): Likewise.
22055         * tests/test-openat.c (openat): Likewise.
22056         * tests/test-perror.c (perror): Likewise.
22057         * tests/test-pipe2.c (pipe2): Likewise.
22058         * tests/test-poll.c (poll): Likewise.
22059         * tests/test-popen.c (popen, pclose): Likewise.
22060         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
22061         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
22062         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
22063         (posix_spawn_file_actions_destroy)
22064         (posix_spawn_file_actions_addclose)
22065         (posix_spawn_file_actions_addopen)
22066         (posix_spawn_file_actions_adddup2): Likewise.
22067         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
22068         * tests/test-pread.c (pread): Likewise.
22069         * tests/test-printf-posix.c (printf): Likewise.
22070         * tests/test-pty.c (openpty, forkpty): Likewise.
22071         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
22072         (random_r): Likewise.
22073         * tests/test-rawmemchr.c (rawmemchr): Likewise.
22074         * tests/test-readlink.c (readlink): Likewise.
22075         * tests/test-remove.c (remove): Likewise.
22076         * tests/test-rename.c (rename): Likewise.
22077         * tests/test-renameat.c (renameat): Likewise.
22078         * tests/test-rmdir.c (rmdir): Likewise.
22079         * tests/test-round1.c (round): Likewise.
22080         * tests/test-roundf1.c (roundf): Likewise.
22081         * tests/test-roundl.c (roundl): Likewise.
22082         * tests/test-setenv.c (setenv): Likewise.
22083         * tests/test-sigaction.c (sigaction): Likewise.
22084         * tests/test-sleep.c (sleep): Likewise.
22085         * tests/test-snprintf.c (snprintf): Likewise.
22086         * tests/test-sprintf-posix.c (sprintf): Likewise.
22087         * tests/test-stat.c (stat): Likewise.
22088         * tests/test-stpncpy.c (stpncpy): Likewise.
22089         * tests/test-strcasestr.c (strcasestr): Likewise.
22090         * tests/test-strchrnul.c (strchrnul): Likewise.
22091         * tests/test-strerror.c (strerror): Likewise.
22092         * tests/test-strsignal.c (strsignal): Likewise.
22093         * tests/test-strstr.c (strstr): Likewise.
22094         * tests/test-strtod.c (strtod): Likewise.
22095         * tests/test-strverscmp.c (strverscmp): Likewise.
22096         * tests/test-symlink.c (symlink): Likewise.
22097         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
22098         * tests/test-times.c (times): Likewise.
22099         * tests/test-trunc1.c (trunc): Likewise.
22100         * tests/test-truncf1.c (truncf): Likewise.
22101         * tests/test-truncl.c (truncl): Likewise.
22102         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
22103         Likewise.
22104         * tests/test-uname.c (uname): Likewise.
22105         * tests/test-unlink.c (unlink): Likewise.
22106         * tests/test-unlinkat.c (unlinkat): Likewise.
22107         * tests/test-unsetenv.c (unsetenv): Likewise.
22108         * tests/test-usleep.c (usleep): Likewise.
22109         * tests/test-utimensat.c (utimensat): Likewise.
22110         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
22111         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
22112         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
22113         * tests/test-vprintf-posix.c (vprintf): Likewise.
22114         * tests/test-vsnprintf.c (vsnprintf): Likewise.
22115         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
22116         * tests/test-wcrtomb.c (wcrtomb): Likewise.
22117         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
22118         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
22119         * tests/test-wcwidth.c (wcwidth): Likewise.
22120
22121         build: pull in conditional headers during GNULIB_POSIXCHECK
22122         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
22123         definitions from any conditionally-included headers.
22124         * lib/stdlib.in.h (includes): Likewise.
22125         * lib/unistd.in.h (includes): Likewise.
22126
22127 2009-12-24  Bruno Haible  <bruno@clisp.org>
22128
22129         * tests/test-argv-iter.c: Include header file being tested immediately
22130         after config.h.
22131         * tests/test-base64.c: Likewise.
22132         * tests/test-flock.c: Likewise.
22133         * tests/test-fsync.c: Likewise.
22134         * tests/test-getdate.c: Likewise.
22135         * tests/test-getndelim2.c: Likewise.
22136         * tests/test-isfinite.c: Likewise.
22137         * tests/test-isinf.c: Likewise.
22138         * tests/test-strerror.c: Likewise.
22139         * tests/test-strsignal.c: Likewise.
22140
22141 2009-12-23  Eric Blake  <ebb9@byu.net>
22142
22143         unistd: work around cygwin bug
22144         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
22145         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
22146         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
22147
22148 2009-12-23  Bruno Haible  <bruno@clisp.org>
22149
22150         localename: More tests.
22151         * tests/test-localename.c (SIZEOF): New macro.
22152         (categories): New variable.
22153         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
22154         test_locale_name_default): Add test w.r.t. thread locale.
22155         (test_locale_name_thread): New function.
22156         (main): Invoke it.
22157
22158         localename: Make aware of thread locale.
22159         * lib/localename.h (gl_locale_name_thread): New declaration.
22160         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
22161         behaviour with respect to thread locale.
22162         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
22163         <langinfo.h>, glthread/lock.h.
22164         (SIZE_BITS): New macro.
22165         (string_hash): New function.
22166         (struct hash_node): New type.
22167         (HASH_TABLE_SIZE): New macro.
22168         (struniq_hash_table, struniq_lock): New variables.
22169         (struniq): New function.
22170         (gl_locale_name_thread): New function.
22171         (gl_locale_name): Invoke it.
22172         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
22173         * modules/localename (Depends-on): Add lock.
22174         Reported by Mike Gran <spk121@yahoo.com>.
22175
22176 2009-12-23  Eric Blake  <ebb9@byu.net>
22177
22178         va-args: new module
22179         * modules/va-args: New file.
22180         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
22181         * MODULES.html.sh (Core language properties): Mention it.
22182
22183         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
22184         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
22185         named alias for __attribute__((__unused__)).
22186         * lib/chown.c: Update client.
22187         * lib/fchmodat.c: Likewise.
22188         * lib/fts.c: Likewise.
22189         * lib/getdate.y: Likewise.
22190         * lib/getgroups.c: Likewise.
22191         * lib/getopt.c: Likewise.
22192         * lib/getugroups.c: Likewise.
22193         * lib/mkdir.c: Likewise.
22194         * lib/mkfifo.c: Likewise.
22195         * lib/mkfifoat.c: Likewise.
22196         * lib/mknod.c: Likewise.
22197         * lib/mknodat.c: Likewise.
22198         * lib/readlink.c: Likewise.
22199         * lib/se-context.in.h: Likewise.
22200         * lib/se-selinux.in.h: Likewise.
22201         * lib/sockets.c: Likewise.
22202         * lib/symlink.c: Likewise.
22203         * lib/symlinkat.c: Likewise.
22204         * lib/unicodeio.c: Likewise.
22205         * lib/unistr.h: Likewise.
22206         * tests/test-areadlink.c: Likewise.
22207         * tests/test-areadlinkat.c: Likewise.
22208         * tests/test-filenamecat.c: Likewise.
22209         * tests/test-fseeko.c: Likewise.
22210         * tests/test-ftello.c: Likewise.
22211         * tests/test-getdate.c: Likewise.
22212         * tests/test-getgroups.c: Likewise.
22213         * tests/test-gethostname.c: Likewise.
22214         * tests/test-quotearg.c: Likewise.
22215         * tests/test-version-etc.c: Likewise.
22216         * tests/test-xalloc-die.c: Likewise.
22217         * tests/test-xfprintf-posix.c: Likewise.
22218         * tests/test-xprintf-posix.c: Likewise.
22219         * tests/test-xvasprintf.c: Likewise.
22220
22221         tests: avoid compiler warnings
22222         * tests/test-fcntl.c (main): Delete unused parameters.
22223         * tests/test-freopen-safer.c (main): Likewise.
22224         * tests/test-xalloc-die.c (main): Mark unused parameters.
22225         * tests/test-fseeko.c (main): Likewise.
22226         * tests/test-ftello.c (main): Likewise.
22227         * tests/test-nanosleep.c (main): Avoid declaration warning.
22228         * tests/test-sleep.c (main): Likewise.
22229         * tests/test-unsetenv.c (main): Silence warning about string
22230         literal.
22231         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22232
22233 2009-12-23  Bruno Haible  <bruno@clisp.org>
22234
22235         * tests/test-localename.c (test_locale_name): New function, extracted
22236         from main. Also test mixed situations.
22237         (test_locale_name_posix, test_locale_name_environ,
22238         test_locale_name_default): New functions.
22239         (main): Invoke them all.
22240         * modules/localename-tests (configure.ac): Test for newlocale.
22241
22242 2009-12-23  Bruno Haible  <bruno@clisp.org>
22243
22244         unistd: Ensure getcwd gets declared before being overridden.
22245         * lib/unistd.in.h: Conditionally include <io.h>.
22246
22247 2009-12-22  Bruno Haible  <bruno@clisp.org>
22248
22249         wchar: Diagnose broken combination of glibc and gcc versions and flags.
22250         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
22251         (gl_WCHAR_H): Invoke it.
22252         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
22253         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
22254         Reported by Karl Berry <karl@freefriends.org>.
22255
22256 2009-12-22  Eric Blake  <ebb9@byu.net>
22257
22258         math, unistd: avoid redundant includes
22259         * lib/math.in.h (isnan): No need to re-include <math.h>.
22260         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
22261
22262         getsubopt: work around cygwin bug
22263         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
22264         avoid conflicting with system getsubopt.
22265         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
22266         bug.
22267
22268         getopt: synchronize from glibc
22269         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
22270         parameter order.  Adjust all callers.
22271         (_getopt_internal_r, main): Adjust quoting in error messages.
22272         Drop considerations for outdated POSIX 1003.2 error message.
22273         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
22274         callers.
22275         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
22276
22277         test-getopt: test stderr behavior
22278         * modules/getopt-posix-tests (Depends-on): Add dup2.
22279         * tests/test-getopt.c (ASSERT): Avoid stderr.
22280         (main): Move stderr to a temporary file.
22281         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
22282         Instead, add parameter to inform caller if output occurred.
22283         (test_getopt): Adjust all existing tests to expect silence, and
22284         add new tests of leading ":".
22285         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22286         glibc shortcomings with leading "-:" or "+:" in optstring.
22287         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22288         Likewise.
22289         * doc/posix-functions/getopt.texi (getopt): Likewise.
22290
22291         test-getopt: enhance test
22292         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
22293         supports optind=0.
22294         * tests/test-getopt.c (OPTIND_MIN): Move...
22295         * tests/test-getopt.h (OPTIND_MIN): ...here.
22296         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
22297         Require that optind=0 works, since modern BSD supports it in
22298         addition to optreset, and since coreutils expects it.
22299         (test_getopt_long_only): New test.
22300         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
22301         glibc shortcomings with 'W;', and enforcement of optind=0.
22302         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
22303         Likewise.
22304
22305 2009-12-21  Bruno Haible  <bruno@clisp.org>
22306
22307         localename: Improvements for MacOS X and Cygwin.
22308         * lib/localename.h (gl_locale_name_environ): New declaration.
22309         * lib/localename.c (gl_locale_name_environ): New function, extracted from
22310         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
22311         (gl_locale_name_posix): Invoke it.
22312         (gl_locale_name_default): Add comments. Use Windows native API also on
22313         Cygwin.
22314
22315 2009-12-21  Bruno Haible  <bruno@clisp.org>
22316
22317         Update list of Win32 locale ids.
22318         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
22319         (LANG_SAMI): Renamed from LANG_SAAMI.
22320         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
22321         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
22322         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
22323         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
22324         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
22325         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
22326         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
22327         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
22328         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
22329         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
22330         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
22331         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
22332         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
22333         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
22334         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
22335         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
22336         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
22337         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
22338         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
22339         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
22340         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
22341         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
22342         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
22343         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
22344         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
22345         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
22346         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
22347         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
22348         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
22349         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
22350         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
22351         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
22352         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
22353         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
22354         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
22355         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
22356         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
22357         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
22358         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
22359         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
22360         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
22361         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
22362         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
22363         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
22364         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
22365         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
22366         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
22367         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
22368         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
22369         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
22370         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
22371         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
22372         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
22373         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
22374         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
22375         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
22376         Add more languages and countries for Sami, Sorbian. Add more countries
22377         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
22378         for Pashto. Change country for Syriac, Tswana.
22379
22380 2009-12-21  Eric Blake  <ebb9@byu.net>
22381
22382         test-utimens: avoid spurious failure
22383         * tests/test-chown.h (nap): Factor...
22384         * tests/nap.h: ...into new file.
22385         * tests/test-lchown.h (nap): Avoid duplication.
22386         * tests/test-utimens-common.h (nap): Use shared implementation,
22387         necessary on file systems with 1-second resolution.
22388         * modules/chown-tests (Files): Include new file.
22389         * modules/fdutimensat-tests (Files): Likewise.
22390         * modules/futimens-tests (Files): Likewise.
22391         * modules/lchown-tests (Files): Likewise.
22392         * modules/openat-tests (Files): Likewise.
22393         * modules/utimens-tests (Files): Likewise.
22394         * modules/utimensat-tests (Files): Likewise.
22395
22396 2009-12-19  Eric Blake  <ebb9@byu.net>
22397
22398         futimens, utimensat: work around Linux bug
22399         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
22400         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22401         * lib/utimensat.c (rpl_utimensat): Work around it.
22402         * lib/futimens.c (rpl_futimens): Adjust comment.
22403
22404         utimens: work around Linux ctime bug
22405         * lib/utimens.c (detect_ctime_bug): New helper function.
22406         (update_timespec): Differentiate between workaround needed for
22407         this bug vs. what is needed for systems that lack utimensat.
22408         (fdutimens, lutimens): Work around bug.
22409
22410         utimens: check for ctime update
22411         * tests/test-utimens-common.h (check_ctime): Define.
22412         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
22413         * tests/test-futimens.h (test_futimens): Likewise.
22414         * tests/test-lutimens.h (test_lutimens): Likewise.
22415         * doc/posix-functions/futimens.texi (futimens): Document the bug.
22416         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
22417
22418 2009-12-19  Bruno Haible  <bruno@clisp.org>
22419
22420         dprintf-posix: Check against memory leak fixed on 2009-12-15.
22421         * tests/test-dprintf-posix2.sh: New file.
22422         * tests/test-dprintf-posix2.c: New file.
22423         * modules/dprintf-posix-tests (Files): Add them.
22424         (configure.ac): Check for getrlimit and setrlimit.
22425         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22426
22427 2009-12-19  Bruno Haible  <bruno@clisp.org>
22428
22429         fprintf-posix: Check against memory leak fixed on 2009-12-15.
22430         * tests/test-fprintf-posix3.sh: New file.
22431         * tests/test-fprintf-posix3.c: New file.
22432         * modules/fprintf-posix-tests (Files): Add them.
22433         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
22434
22435 2009-12-19  Eric Blake  <ebb9@byu.net>
22436
22437         dirfd: fix prototype
22438         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
22439         * lib/dirfd.c (dirfd): Likewise.
22440
22441         canonicalize: reduce memory usage
22442         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
22443         allocation to size.
22444         Reported by Solar Designer <solar@openwall.com>.
22445
22446 2009-12-19  Bruno Haible  <bruno@clisp.org>
22447
22448         New module attribute 'Applicability'.
22449         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
22450         * gnulib-tool: New option --extract-applicability.
22451         (func_usage): Document it.
22452         (sed_extract_prog): Recognize it.
22453         (func_get_applicability): New function.
22454         (func_import): Generalize handling of 'link-warning' module.
22455         * modules/link-warning (Applicability): New section.
22456         * modules/arg-nonnull (Applicability): New section.
22457         Repoted by Simon Josefsson <simon@josefsson.org>.
22458
22459 2009-12-19  Bruno Haible  <bruno@clisp.org>
22460
22461         fflush: tweak
22462         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
22463         * lib/fseeko.c (rpl_fseeko): Likewise.
22464
22465 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
22466
22467         * lib/gl_list.h: Fix typo in comment.
22468
22469 2009-12-16  Eric Blake  <ebb9@byu.net>
22470
22471         fcntl: use to simplify other modules
22472         * modules/cloexec (Depends-on): Add fcntl.
22473         * modules/fchdir (Depends-on): Likewise.
22474         * modules/fd-safer-flag (Depends-on): Likewise.
22475         * modules/unistd-safer (Depends-on): Likewise.
22476         * modules/dup3 (configure.ac): Set module indicator.
22477         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
22478         missing.
22479         * lib/fchdir.c (_gl_register_dup): Fix comment.
22480         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
22481         * lib/dup-safer.c (dup_safer): Likewise.
22482         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
22483         * lib/dup3.c (dup3): Likewise.
22484         * tests/test-fchdir.c (main): Enhance test.
22485         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
22486
22487         fcntl: port portions of fcntl to mingw
22488         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
22489         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
22490         replacement for mingw.
22491         * modules/fcntl (Description): Update.
22492         (Depends-on): Add dup2.
22493         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
22494         * modules/fcntl-h (Makefile.am): Substitute it.
22495         * lib/fcntl.in.h (fcntl): Update declaration.
22496         (F_DUPFD, F_GETFD): New macros, when needed.
22497         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
22498         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
22499         * tests/test-fcntl.c (check_flags, main): Enhance test for items
22500         we now guarantee.
22501
22502         fcntl: work around cygwin bug in F_DUPFD
22503         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
22504         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
22505         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
22506         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
22507         * doc/posix-functions/fcntl.texi (fcntl): Document it.
22508
22509         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
22510         * modules/fcntl (Files): List new files.
22511         (configure.ac): Run a test.
22512         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
22513         * lib/fcntl.c (rpl_fcntl): Likewise.
22514         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
22515         (gl_FCNTL_H): Always replace fcntl.h.
22516         * modules/fcntl-h (Makefile.am): Substitute witnesses.
22517         * lib/fcntl.in.h (fcntl): Declare replacement.
22518         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
22519         needed, plus a witness.
22520         * doc/posix-functions/fcntl.texi (fcntl): Document this.
22521         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
22522         * tests/test-fcntl.c: New file.
22523         * modules/fcntl-tests: Likewise.
22524
22525         binary-io: avoid potential compilation warning
22526         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
22527         directives.
22528
22529         fflush: avoid compilation error on NetBSD
22530         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
22531         between off_t and fpos_t, since the latter is sometimes a struct.
22532         * lib/fseeko.c (rpl_fseeko): Likewise.
22533         Reported by Alexander Nasonov <alnsn@yandex.ru>.
22534
22535 2009-12-15  Eric Blake  <ebb9@byu.net>
22536
22537         fcntl-h, stdio, sys_ioctl: fix declarations
22538         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
22539         function must not take arguments.
22540         * lib/sys_ioctl.in.h (ioctl): Likewise.
22541         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
22542         (open): Add a link warning.
22543
22544 2009-12-15  Jim Meyering  <meyering@redhat.com>
22545
22546         areadlink, areadlink-with-size: relax license to LGPLv2+
22547         * modules/areadlink (License): Relax to LGPLv2+.
22548         * modules/areadlink-with-size (License): Likewise.
22549
22550 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
22551             Bruno Haible  <bruno@clisp.org>
22552
22553         *printf: Fix memory leak.
22554         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
22555         * lib/vfprintf.c (vfprintf): Likewise.
22556         * lib/dprintf.c (dprintf): Likewise.
22557         * lib/vdprintf.c (vdprintf): Likewise.
22558
22559 2009-12-14  Eric Blake  <ebb9@byu.net>
22560
22561         accept4: adjust module dependencies
22562         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
22563
22564         utimens: one more try at avoiding compiler warning
22565         * lib/utimens.c (lutimens): Lower scope of result.
22566
22567 2009-12-13  Bruno Haible  <bruno@clisp.org>
22568
22569         Move the malloc checking from module 'list' to new module 'xlist'.
22570         * modules/xlist: New file.
22571         * lib/gl_xlist.h: New file.
22572         * lib/gl_xlist.c: New file.
22573         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
22574         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
22575         gl_list_add_last, gl_list_add_before, gl_list_add_after,
22576         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
22577         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
22578         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
22579         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
22580         gl_sortedlist_nx_add): New declarations.
22581         (struct gl_list_implementation): Rename and change methods accordingly.
22582         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
22583         (gl_list_nx_create): Renamed from gl_list_create.
22584         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22585         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22586         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22587         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22588         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22589         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22590         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22591         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22592         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
22593         gl_list_create_empty.
22594         (gl_list_nx_create): Renamed from gl_list_create.
22595         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
22596         (gl_list_nx_set_at): Renamed from gl_list_set_at.
22597         (gl_list_nx_add_first): Renamed from gl_list_add_first.
22598         (gl_list_nx_add_last): Renamed from gl_list_add_last.
22599         (gl_list_nx_add_before): Renamed from gl_list_add_before.
22600         (gl_list_nx_add_after): Renamed from gl_list_add_after.
22601         (gl_list_nx_add_at): Renamed from gl_list_add_at.
22602         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
22603         * lib/gl_array_list.c: Don't include xalloc.h.
22604         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
22605         NULL upon out-of-memory.
22606         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
22607         out-of-memory.
22608         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
22609         Change return type to 'int'.
22610         (gl_array_nx_set_at): Renamed from gl_array_set_at.
22611         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22612         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
22613         upon out-of-memory.
22614         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
22615         upon out-of-memory.
22616         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
22617         upon out-of-memory.
22618         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
22619         upon out-of-memory.
22620         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
22621         out-of-memory.
22622         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
22623         Update.
22624         (gl_array_list_implementation): Update.
22625         * lib/gl_carray_list.c: Don't include xalloc.h.
22626         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
22627         Return NULL upon out-of-memory.
22628         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
22629         out-of-memory.
22630         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
22631         Change return type to 'int'.
22632         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
22633         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
22634         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
22635         upon out-of-memory.
22636         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
22637         upon out-of-memory.
22638         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
22639         out-of-memory.
22640         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
22641         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
22642         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
22643         Update.
22644         (gl_carray_list_implementation): Update.
22645         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
22646         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
22647         gl_linked_create_empty. Return NULL upon out-of-memory.
22648         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
22649         out-of-memory.
22650         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
22651         Change return type to 'int'. Return -1 upon out-of-memory.
22652         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
22653         out-of-memory.
22654         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
22655         upon out-of-memory.
22656         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
22657         upon out-of-memory.
22658         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
22659         NULL upon out-of-memory.
22660         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
22661         upon out-of-memory.
22662         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
22663         out-of-memory.
22664         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
22665         Update.
22666         * lib/gl_linked_list.c: Don't include xalloc.h.
22667         (gl_linked_list_implementation): Update.
22668         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
22669         (add_to_bucket): Change return type to 'int'.
22670         (gl_linkedhash_list_implementation): Update.
22671         * lib/gl_anytree_list1.h (free_subtree): New function.
22672         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
22673         gl_tree_create_empty. Return NULL upon out-of-memory.
22674         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
22675         Change return type to 'int'. Return -1 upon out-of-memory.
22676         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
22677         out-of-memory.
22678         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
22679         (gl_tree_remove_node): New function, moved here from
22680         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
22681         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
22682         Update.
22683         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
22684         malloc, not xmalloc. Return NULL upon out-of-memory.
22685         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22686         out-of-memory.
22687         (gl_tree_remove_node_from_tree): New function, extracted from
22688         gl_tree_remove_node.
22689         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22690         upon out-of-memory.
22691         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22692         out-of-memory.
22693         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22694         upon out-of-memory.
22695         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22696         upon out-of-memory.
22697         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22698         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
22699         not xmalloc. Return NULL upon out-of-memory.
22700         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
22701         out-of-memory.
22702         (gl_tree_remove_node_from_tree): New function, extracted from
22703         gl_tree_remove_node.
22704         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
22705         upon out-of-memory.
22706         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
22707         out-of-memory.
22708         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
22709         upon out-of-memory.
22710         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
22711         upon out-of-memory.
22712         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
22713         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
22714         gl_anytree_list1.h before gl_anyavltree_list2.h.
22715         (gl_avltree_list_implementation): Update.
22716         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
22717         gl_anytree_list1.h before gl_anyavltree_list2.h.
22718         (gl_rbtree_list_implementation): Update.
22719         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
22720         Change return type to 'int'. Return -1 upon out-of-memory. Use
22721         __builtin_expect.
22722         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
22723         (gl_avltreehash_list_implementation): Update.
22724         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
22725         (gl_rbtreehash_list_implementation): Update.
22726         * modules/array-list (Depends-on): Remove xalloc.
22727         * modules/carray-list (Depends-on): Likewise.
22728         * modules/linked-list (Depends-on): Likewise.
22729         * modules/linkedhash-list (Depends-on): Likewise.
22730         * modules/avltree-list (Depends-on): Likewise.
22731         * modules/rbtree-list (Depends-on): Likewise.
22732         * modules/avltreehash-list (Depends-on): Likewise.
22733         * modules/rbtreehash-list (Depends-on): Likewise.
22734
22735         * modules/xsublist: New file.
22736         * lib/gl_xsublist.h: New file.
22737         * lib/gl_xsublist.c: New file.
22738         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
22739         (gl_sublist_nx_create): New declaration.
22740         * lib/gl_sublist.c: Don't include xalloc.h.
22741         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
22742         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
22743         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
22744         Change return type to 'int'. Return -1 upon out-of-memory.
22745         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
22746         upon out-of-memory.
22747         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
22748         NULL upon out-of-memory.
22749         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
22750         upon out-of-memory.
22751         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
22752         NULL upon out-of-memory.
22753         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
22754         NULL upon out-of-memory.
22755         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
22756         upon out-of-memory.
22757         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
22758         (gl_sublist_list_implementation): Update.
22759         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
22760         upon out-of-memory.
22761         * modules/sublist (Depends-on): Remove xalloc.
22762
22763         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
22764         * tests/test-carray_list.c: Likewise.
22765         * tests/test-linked_list.c: Likewise.
22766         * tests/test-linkedhash_list.c: Likewise.
22767         * tests/test-avltree_list.c: Likewise.
22768         * tests/test-rbtree_list.c: Likewise.
22769         * tests/test-avltreehash_list.c: Likewise.
22770         * tests/test-rbtreehash_list.c: Likewise.
22771         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
22772         * modules/carray-list-tests (Makefile.am): Likewise.
22773         * modules/linked-list-tests (Makefile.am): Likewise.
22774         * modules/linkedhash-list-tests (Makefile.am): Likewise.
22775         * modules/avltree-list-tests (Makefile.am): Likewise.
22776         * modules/rbtree-list-tests (Makefile.am): Likewise.
22777         * modules/avltreehash-list-tests (Makefile.am): Likewise.
22778         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
22779
22780         * NEWS: Mention the changes.
22781
22782         * lib/clean-temp.c: Include gl_xlist.h.
22783         * modules/clean-temp (Depends-on): Add xlist.
22784
22785         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
22786         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
22787
22788         * tests/test-array_oset.c: Include gl_xlist.h.
22789         * modules/array-oset-tests (Depends-on): Add xlist.
22790
22791         Reported by José E. Marchesi <jemarch@gnu.org>.
22792
22793 2009-12-13  Bruno Haible  <bruno@clisp.org>
22794
22795         Move the malloc checking from module 'oset' to new module 'xoset'.
22796         * modules/xoset: New file.
22797         * lib/gl_xoset.h: New file.
22798         * lib/gl_xoset.c: New file.
22799         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
22800         declarations.
22801         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
22802         (struct gl_oset_implementation): Rename and change methods accordingly.
22803         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
22804         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
22805         'int'. Mark as __warn_unused_result__.
22806         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
22807         gl_oset_create_empty.
22808         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
22809         'int'.
22810         * lib/gl_array_oset.c: Don't include xalloc.h.
22811         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
22812         malloc, not xmalloc.
22813         (grow): Change return type to 'int'. Don't call xalloc_die.
22814         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
22815         to 'int'.
22816         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
22817         'int'.
22818         (gl_array_oset_implementation): Update.
22819         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
22820         gl_tree_create_empty.
22821         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
22822         'int'.
22823         * lib/gl_avltree_oset.c: Don't include xalloc.h.
22824         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
22825         xmalloc.
22826         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
22827         not xmalloc.
22828         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
22829         xmalloc.
22830         (gl_avltree_oset_implementation): Update.
22831         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
22832         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
22833         xmalloc.
22834         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
22835         not xmalloc.
22836         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
22837         xmalloc.
22838         (gl_rbtree_oset_implementation): Update.
22839         * modules/array-oset (Depends-on): Remove xalloc.
22840         * modules/avltree-oset (Depends-on): Likewise.
22841         * modules/rbtree-oset (Depends-on): Likewise.
22842         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
22843         * tests/test-avltree_oset.c: Likewise.
22844         * tests/test-rbtree_oset.c: Likewise.
22845         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
22846         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
22847         * modules/rbtree-oset-tests (Makefile.am): Likewise.
22848         * NEWS: Mention the change.
22849
22850 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
22851
22852         maint.mk: allow a project to override release-prep commands
22853         * top/maint.mk (alpha, beta, stable): Move release-preparatory
22854         commands into a new rule.
22855         (release-prep): New rule.
22856         (release-prep-hook): New overridable variable.
22857
22858 2009-12-13  Bruno Haible  <bruno@clisp.org>
22859
22860         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
22861
22862 2009-12-13  Jim Meyering  <meyering@redhat.com>
22863
22864         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
22865         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
22866
22867 2009-12-12  Bruno Haible  <bruno@clisp.org>
22868
22869         duplocale: Tweak.
22870         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
22871
22872 2009-12-12  Karl Berry  <karl@gnu.org>
22873
22874         * config/srclist.txt (strtoll.c): tab changes, no more sync.
22875
22876 2009-12-12  Bruno Haible  <bruno@clisp.org>
22877
22878         * m4/po.m4: Undo incorrect untabification.
22879
22880 2009-12-12  Bruno Haible  <bruno@clisp.org>
22881
22882         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
22883         * modules/c-strtod (Depends-on): Add locale.
22884         * modules/c-strtold (Depends-on): Likewise.
22885
22886 2009-12-12  Bruno Haible  <bruno@clisp.org>
22887
22888         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
22889
22890 2009-12-11  Eric Blake  <ebb9@byu.net>
22891
22892         setenv: relax requirement in light of POSIX ruling
22893         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
22894         not NULL.
22895         * tests/test-setenv.c (main): Relax test.
22896         * tests/test-unsetenv.c (main): Likewise.
22897         * doc/posix-functions/setenv.texi (setenv): Document this.
22898         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
22899
22900 2009-12-11  Bruno Haible  <bruno@clisp.org>
22901
22902         New module 'fd-safer-flag'.
22903         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
22904         * lib/dup-safer.c (dup_safer_flag): Remove function.
22905         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
22906         * lib/fd-safer.c (fd_safer_flag): Remove function.
22907         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
22908         * modules/cloexec (configure.ac): Drop indicator macro.
22909         * modules/fd-safer-flag: New file.
22910         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
22911         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
22912         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
22913
22914 2009-12-11  Bruno Haible  <bruno@clisp.org>
22915
22916         Tests for module 'nl_langinfo'.
22917         * modules/nl_langinfo-tests: New file.
22918         * tests/test-nl_langinfo.sh: New file.
22919         * tests/test-nl_langinfo.c: New file.
22920
22921         New module 'nl_langinfo'.
22922         * lib/nl_langinfo.c: New file.
22923         * m4/nl_langinfo.m4: New file.
22924         * modules/nl_langinfo: New file.
22925         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
22926
22927 2009-12-11  Bruno Haible  <bruno@clisp.org>
22928
22929         Tests for module 'langinfo'.
22930         * modules/langinfo-tests: New file.
22931         * tests/test-langinfo.c: New file.
22932
22933         New module 'langinfo'.
22934         * lib/langinfo.in.h: New file.
22935         * m4/langinfo_h.m4: New file.
22936         * modules/langinfo: New file.
22937         * doc/posix-headers/langinfo.texi: Mention the new module.
22938
22939 2009-12-11  Bruno Haible  <bruno@clisp.org>
22940
22941         * lib/config.charset: Untabify.
22942
22943 2009-12-11  Bruno Haible  <bruno@clisp.org>
22944
22945         * modules/unistd-safer (configure.ac): Drop indicator macro.
22946
22947 2009-12-11  Bruno Haible  <bruno@clisp.org>
22948
22949         Move pipe2-safer code to its own file.
22950         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
22951         * lib/pipe-safer.c (pipe2_safer): Remove function.
22952         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
22953         (Makefile.am): Add it to lib_SOURCES.
22954
22955 2009-12-10  Bruno Haible  <bruno@clisp.org>
22956
22957         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
22958
22959 2009-12-10  Bruno Haible  <bruno@clisp.org>
22960
22961         Declare which arguments expect non-NULL values, for GCC and clang.
22962         * build-aux/arg-nonnull.h: New file.
22963         * modules/arg-nonnull: New file.
22964         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
22965         (inet_ntop, inet_pton): Use it.
22966         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
22967         (closedir, dirfd, opendir, scandir, alphasort): Use it.
22968         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
22969         (open, openat): Use it.
22970         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
22971         (fnmatch): Use it.
22972         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
22973         (getopt, getopt_long, getopt_long_only): Use it.
22974         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
22975         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
22976         Use it.
22977         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
22978         (iconv_open): Use it.
22979         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
22980         (strtoimax, strtoumax): Use it.
22981         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
22982         (duplocale): Use it.
22983         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
22984         (frexp, frexpl): Use it.
22985         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
22986         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
22987         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
22988         (tsearch, tfind, tdelete, twalk): Use it.
22989         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
22990         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22991         sigpending): Use it.
22992         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
22993         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22994         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22995         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22996         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22997         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22998         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22999         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
23000         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
23001         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
23002         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
23003         Use it.
23004         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
23005         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
23006         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
23007         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
23008         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
23009         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
23010         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
23011         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
23012         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
23013         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
23014         strtoull, unsetenv): Use it.
23015         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
23016         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
23017         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
23018         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
23019         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
23020         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
23021         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
23022         (strcasecmp, strncasecmp): Use it.
23023         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
23024         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
23025         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
23026         rpl_setsockopt): Use it.
23027         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
23028         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
23029         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
23030         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
23031         (gettimeofday): Use it.
23032         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
23033         (times): Use it.
23034         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
23035         (uname): Use it.
23036         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
23037         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
23038         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
23039         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
23040         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
23041         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
23042         unlinkat, write): Use it.
23043         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
23044         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
23045         * lib/argv-iter.h: Include arg-nonnull.h.
23046         (_ATTRIBUTE_NONNULL_): Remove macro.
23047         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
23048         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
23049         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
23050         optimization.
23051         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
23052         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
23053         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
23054         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
23055         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
23056         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
23057         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
23058         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
23059         * modules/arpa_inet (Depends-on): Add arg-nonnull.
23060         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
23061         * modules/dirent (Depends-on): Add arg-nonnull.
23062         (Makefile.am): Insert arg-nonnull.h into dirent.h.
23063         * modules/fcntl-h (Depends-on): Add arg-nonnull.
23064         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
23065         * modules/fnmatch (Depends-on): Add arg-nonnull.
23066         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
23067         * modules/getopt-posix (Depends-on): Add arg-nonnull.
23068         (Makefile.am): Insert arg-nonnull.h into getopt.h.
23069         * modules/glob (Depends-on): Add arg-nonnull.
23070         (Makefile.am): Insert arg-nonnull.h into glob.h.
23071         * modules/iconv_open (Depends-on): Add arg-nonnull.
23072         (Makefile.am): Insert arg-nonnull.h into iconv.h.
23073         * modules/inttypes (Depends-on): Add arg-nonnull.
23074         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
23075         * modules/locale (Depends-on): Add arg-nonnull.
23076         (Makefile.am): Insert arg-nonnull.h into locale.h.
23077         * modules/math (Depends-on): Add arg-nonnull.
23078         (Makefile.am): Insert arg-nonnull.h into math.h.
23079         * modules/netdb (Depends-on): Add arg-nonnull.
23080         (Makefile.am): Insert arg-nonnull.h into netdb.h.
23081         * modules/search (Depends-on): Add arg-nonnull.
23082         (Makefile.am): Insert arg-nonnull.h into search.h.
23083         * modules/signal (Depends-on): Add arg-nonnull.
23084         (Makefile.am): Insert arg-nonnull.h into signal.h.
23085         * modules/spawn (Depends-on): Add arg-nonnull.
23086         (Makefile.am): Insert arg-nonnull.h into spawn.h.
23087         * modules/stdio (Depends-on): Add arg-nonnull.
23088         (Makefile.am): Insert arg-nonnull.h into stdio.h.
23089         * modules/stdlib (Depends-on): Add arg-nonnull.
23090         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
23091         * modules/string (Depends-on): Add arg-nonnull.
23092         (Makefile.am): Insert arg-nonnull.h into string.h.
23093         * modules/strings (Depends-on): Add arg-nonnull.
23094         (Makefile.am): Insert arg-nonnull.h into strings.h.
23095         * modules/sys_socket (Depends-on): Add arg-nonnull.
23096         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
23097         * modules/sys_stat (Depends-on): Add arg-nonnull.
23098         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
23099         * modules/sys_time (Depends-on): Add arg-nonnull.
23100         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
23101         * modules/sys_times (Depends-on): Add arg-nonnull.
23102         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
23103         * modules/sys_utsname (Depends-on): Add arg-nonnull.
23104         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
23105         * modules/time (Depends-on): Add arg-nonnull.
23106         (Makefile.am): Insert arg-nonnull.h into time.h.
23107         * modules/unistd (Depends-on): Add arg-nonnull.
23108         (Makefile.am): Insert arg-nonnull.h into unistd.h.
23109         * modules/wchar (Depends-on): Add arg-nonnull.
23110         (Makefile.am): Insert arg-nonnull.h into wchar.h.
23111         * modules/argv-iter (Depends-on): Add arg-nonnull.
23112         * tests/test-canonicalize.c (null_ptr): New function.
23113         (main): Use it.
23114         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
23115         (main): Use it.
23116         * tests/test-memmem.c (null_ptr): New function.
23117         (main): Use it.
23118         Reported by Jim Meyering.
23119
23120 2009-12-10  Bruno Haible  <bruno@clisp.org>
23121
23122         Use spaces for indentation, not tabs.
23123         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
23124         * m4/*.m4: Untabify.
23125         * build-aux/*.h: Untabify.
23126         * tests/**/*.[hc]: Untabify.
23127         * README: New section "Indent with spaces, not TABs", based on
23128         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
23129         * NEWS: Mention the change.
23130
23131 2009-12-10  Bruno Haible  <bruno@clisp.org>
23132
23133         pty test: Fix link error.
23134         * modules/pty-tests (Makefile.am): Add the default LDADD value to
23135         test_pty_LDADD.
23136
23137 2009-12-07  Simon Josefsson  <simon@josefsson.org>
23138
23139         * modules/pty: New file.
23140         * modules/pty-tests: New file.
23141         * m4/pty.m4: New file.
23142         * tests/test-pty.c: New file.
23143         * doc/glibc-headers/pty.texi: Modified.
23144         * doc/glibc-functions/forkpty.texi: Modified.
23145         * doc/glibc-functions/openpty.texi: Modified.
23146
23147 2009-12-10  Bruno Haible  <bruno@clisp.org>
23148
23149         Avoid syntax error in C++ mode.
23150         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
23151
23152 2009-12-10  Bruno Haible  <bruno@clisp.org>
23153
23154         Use sed with option -e.
23155         * gnulib-tool (func_version, func_emit_copyright_notice,
23156         func_emit_initmacro_end, func_import, func_create_testdir): Pass
23157         option -e to sed.
23158         * modules/link-warning (Makefile.am): Likewise.
23159
23160 2009-12-10  Jim Meyering  <meyering@redhat.com>
23161
23162         mgetgroups: do not write bytes beyond end of malloc'd buffer
23163         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
23164         username, we call getgroups with a one-element-shorter buffer,
23165         but still told it the length was original, max_n_groups.
23166
23167 2009-12-09  Eric Blake  <ebb9@byu.net>
23168
23169         cloexec: relax license
23170         * modules/cloexec (Maintainer): Add myself.
23171         (License): Use LGPL, not GPL.
23172
23173         link-warning: optimize generation
23174         * modules/link-warning (Makefile.am): Reduce process usage.
23175
23176 2009-12-09  Bruno Haible  <bruno@clisp.org>
23177
23178         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
23179         workaround was added on 2009-11-17.
23180
23181 2009-12-09  Jim Meyering  <meyering@redhat.com>
23182             Bruno Haible  <bruno@clisp.org>
23183
23184         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
23185         * modules/link-warning (Makefile.am): Make the comment-removing sed
23186         command more robust in the face of bootstrap-prepended comment lines.
23187
23188 2009-12-09  Bruno Haible  <bruno@clisp.org>
23189
23190         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
23191         most one group.
23192
23193 2009-12-09  Simon Josefsson <simon@josefsson.org>
23194             Bruno Haible  <bruno@clisp.org>
23195
23196         * build-aux/link-warning.h: Add copyright notice.
23197         * modules/link-warning (Makefile.am): Generate link-warning.h from
23198         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
23199         * NEWS: Mention change in link-warning module.
23200         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
23201         * modules/dirent (Makefile.am): Add dependency to dirent.h.
23202         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
23203         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
23204         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
23205         * modules/math (Makefile.am): Add dependency to math.h.
23206         * modules/search (Makefile.am): Add dependency to search.h.
23207         * modules/signal (Makefile.am): Add dependency to signal.h.
23208         * modules/spawn (Makefile.am): Add dependency to spawn.h.
23209         * modules/stdio (Makefile.am): Add dependency to stdio.h.
23210         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
23211         * modules/string (Makefile.am): Add dependency to string.h.
23212         * modules/strings (Makefile.am): Add dependency to strings.h.
23213         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
23214         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
23215         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
23216         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
23217         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
23218         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
23219         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
23220         * modules/unistd (Makefile.am): Add dependency to unistd.h.
23221         * modules/wchar (Makefile.am): Add dependency to wchar.h.
23222
23223 2009-12-09  Bruno Haible  <bruno@clisp.org>
23224
23225         fchdir: Optimize away rpl_fstat when possible.
23226         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
23227         REPLACE_OPEN_DIRECTORY.
23228         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
23229
23230 2009-12-09  Bruno Haible  <bruno@clisp.org>
23231
23232         * lib/fchdir.c: Update comment.
23233
23234 2009-12-09  Bruno Haible  <bruno@clisp.org>
23235
23236         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
23237
23238 2009-12-08  Eric Blake  <ebb9@byu.net>
23239
23240         fchdir: avoid memory leak on re-registration.
23241         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
23242
23243 2009-12-08  Jim Meyering  <meyering@redhat.com>
23244
23245         init.sh: avoid Solaris 10 /bin/sh portability problem
23246         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
23247         sourced script:
23248           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
23249           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
23250           bar
23251         tests/init.sh relied on that, accepting a --set-path=DIR argument,
23252         and two tests used that idiom.
23253         * tests/init.sh: Update suggested usage comments.
23254         (path_prepend_): New function, to be used in place
23255         of the --src-path=DIR option.
23256         (setup_): Move PATH-prepending code into path_prepend_.
23257         * tests/test-pread.sh: Adapt to new usage.
23258         * tests/test-xalloc-die.sh: Likewise.
23259
23260 2009-12-08  Simon Josefsson  <simon@josefsson.org>
23261
23262         * doc/gnulib.texi (Glibc pty.h): Add.
23263         * doc/glibc-functions/forkpty.texi: Add.
23264         * doc/glibc-functions/openpty.texi: Add.
23265         Suggested by Bruno Haible.
23266
23267 2009-12-08  Eric Blake  <ebb9@byu.net>
23268
23269         fchdir: fix logic bugs
23270         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
23271         * tests/test-fchdir.c (main): Enhance test.
23272         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
23273         is in use.
23274
23275         dup2: fix logic bugs
23276         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
23277         REPLACE_DUP2 to decide when rpl_dup2 is needed.
23278         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
23279         exists.
23280         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
23281
23282 2009-12-07  Eric Blake  <ebb9@byu.net>
23283
23284         unlink: fix m4 detection
23285         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
23286
23287         unistd-safer: add unit test
23288         * modules/unistd-safer-tests: New file.
23289         * tests/test-dup-safer.c: Likewise.
23290         * tests/test-cloexec.c (setmode): Avoid compiler warning.
23291         * tests/test-dup2.c (setmode): Likewise.
23292         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
23293
23294         cloexec: preserve text vs. binary across dup_cloexec
23295         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
23296         mode.
23297         * modules/dup2-tests (Depends-on): Add binary-io.
23298         * modules/cloexec-tests (Depends-on): Likewise.
23299         * tests/test-dup2.c (setmode, is_mode): New helpers.
23300         (main): Add tests that translation mode is preserved.
23301         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
23302         Reported by Bruno Haible.
23303
23304         mgetgroups: reduce duplicate listings
23305         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
23306         resulting array.
23307         * tests/test-chown.h (test_chown): Simplify client.
23308         * tests/test-lchown.h (test_lchown): Likewise.
23309
23310 2009-12-06  Bruno Haible  <bruno@clisp.org>
23311
23312         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
23313         value.
23314
23315 2009-12-06  Bruno Haible  <bruno@clisp.org>
23316
23317         * lib/progname.c: Include stdio.h, stdlib.h.
23318         (set_program_name): Reject a NULL argument.
23319
23320 2009-12-05  Eric Blake  <ebb9@byu.net>
23321
23322         pipe2-safer: new module
23323         * modules/pipe2-safer: New file.
23324         * lib/unistd-safer.h (pipe2_safer): New prototype.
23325         * lib/unistd--.h (pipe2): New wrapper.
23326         * lib/pipe-safer.c (pipe2_safer): New function.
23327         * modules/pipe (Depends-on): Add pipe2-safer.
23328         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
23329
23330         stdlib-safer: preserve cloexec flag for mkostemp[s]
23331         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
23332         fd_safer_flag.
23333
23334         unistd-safer: allow preservation of cloexec status via flag
23335         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
23336         prototypes.
23337         * lib/dup-safer.c (dup_safer_flag): New function.
23338         * lib/fd-safer.c (fd_safer_flag): Likewise.
23339         * modules/cloexec (configure.ac): Set witness.
23340
23341         test-dup2: enhance test
23342         * modules/dup2-tests (Depends-on): Add cloexec.
23343         * tests/test-dup2.c (main): Enhance test.
23344
23345         cloexec: add dup_cloexec
23346         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
23347         header and comments.
23348         * lib/cloexec.c (set_cloexec_flag): Add comments.
23349         (dup_cloexec): New function, with mingw implementation borrowed
23350         from...
23351         * lib/w32spawn.h (dup_noinherit): ...here.
23352         * modules/execute (Depends-on): Add cloexec.
23353         * modules/pipe (Depends-on): Likewise.
23354         * modules/cloexec (Depends-on): Add dup2.
23355         * modules/cloexec-tests (Files): New file.
23356         * tests/test-cloexec.c: Likewise.
23357
23358         test-xalloc-die: fix test for mingw
23359         * modules/xalloc-die-tests (Files): Add tests/init.sh.
23360         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
23361         directory and .exe suffix off argv[0] output.
23362
23363         test-fseeko: fix test for mingw
23364         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
23365         than undefining fseek, so test will pass on mingw.
23366
23367 2009-12-05  Bruno Haible  <bruno@clisp.org>
23368
23369         * lib/progname.h (set_program_name): Clarify specification.
23370         * lib/progname.c (set_program_name): Likewise.
23371         Reported by Jim Meyering.
23372
23373 2009-12-05  Jim Meyering  <meyering@redhat.com>
23374
23375         maint.mk: backslash-escape parens in default regexp
23376         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
23377         backslash-escape the literal parentheses.
23378
23379         maint.mk: news-date-check: use grep -E
23380         * top/maint.mk (today): Define a Make variable, not a...
23381         (news-date-check): ...shell variable.
23382         (news-date-regexp): Use the Make variable.
23383         Use grep's -E option.  Change the failing diagnostic to mention
23384         the variable, $(news-date-regexp).
23385
23386 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
23387
23388         maintainer-makefile: allow customization of NEWS entry format
23389         * top/maint.mk (news-date-regexp): New overridable variable.
23390         (news-date-check): Use it.
23391
23392 2009-12-04  Eric Blake  <ebb9@byu.net>
23393
23394         mgetgroups: add xgetgroups, and avoid ENOSYS failures
23395         * lib/mgetgroups.h (xgetgroups): New prototype.
23396         * lib/mgetgroups.c (xgetgroups): New wrapper.
23397         (mgetgroups): Handle ENOSYS.
23398         * modules/mgetgroups (Depends-on): Add realloc.
23399         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
23400
23401         mgetgroups: avoid argument promotion issues with -1
23402         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
23403         for invalid gid_t.
23404         * tests/test-chown.h (getegid, test_chown): Likewise.
23405         * tests/test-lchown.h (getegid, test_lchown): Likewise.
23406
23407 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
23408
23409         exclude: Fix header file problems.
23410         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
23411
23412 2009-12-01  Jim Meyering  <meyering@redhat.com>
23413
23414         fts: fts_open: do not let an empty string cause immediate failure
23415         This is required in support of GNU rm, for which the command
23416         "rm A '' B" must process and remove both A and B, in spite of
23417         the empty string argument.
23418         * lib/fts.c (fts_open): Do not let the presence of an empty string
23419         cause fts_open to fail immediately.  Most fts-using tools must be
23420         able to process all arguments, in order, and can be expected to
23421         diagnose such arguments themselves.
23422
23423 2009-11-30  Eric Blake  <ebb9@byu.net>
23424
23425         utimens: fix compilation error
23426         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
23427         Declare variable at right scope.
23428
23429 2009-11-29  Jim Meyering  <meyering@redhat.com>
23430
23431         bootstrap: handle perl-5.11's changed --version output
23432         * build-aux/bootstrap (get_version): Handle perl separately,
23433         since perl-5.11's --version output is different.
23434
23435 2009-11-28  Jim Meyering  <meyering@redhat.com>
23436
23437         userspec: depend on the inttostr module, too
23438         * modules/userspec (Depends-on): Add inttostr.
23439
23440         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
23441         * lib/userspec.c (parse_with_separator): Do not accept a user ID
23442         number of MAXUID when it evaluates to (uid_t) -1.
23443         Likewise for group ID.  Reported by Matt McCutchen in
23444         <http://savannah.gnu.org/bugs/?28113>
23445
23446         userspec: reformat to use spaces, not TABs
23447         * lib/userspec.c: Expand TABs to spaces.
23448         Add Emacs' "indent-tabs-mode: nil" hint.
23449
23450 2009-11-27  Eric Blake  <ebb9@byu.net>
23451
23452         getopt-gnu: flush out another BSD bug
23453         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
23454         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
23455         flush out BSD bug.
23456         * tests/test-getopt.h (test_getopt): End lists with NULL.
23457         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23458         (test_getopt_long_posix): Enhance test.
23459         * modules/getopt-posix-tests (Depends-on): Add stdbool.
23460         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
23461         getopt-gnu.
23462         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
23463         Likewise.
23464
23465 2009-11-27  Simon Josefsson  <simon@josefsson.org>
23466
23467         * modules/idpriv-droptemp-tests (Notice): Fix text.
23468
23469 2009-11-27  Jim Meyering  <meyering@redhat.com>
23470
23471         test-xalloc-die: avoid spurious failure due to libtool argv difference
23472         In a libtool-enabled project, this test would fail due to a difference
23473         in the emitted program name, e.g.,
23474         -test-xalloc-die: memory exhausted
23475         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
23476         Use program to avoid that.
23477         * modules/xalloc-die-tests (Depends-on): Add progname.
23478         * tests/test-xalloc-die.c: Include progname.h".
23479         (program_name): Remove decl.
23480         (main): Call set_program_name.
23481         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
23482
23483 2009-11-26  Richard Jones  <rjones@redhat.com>
23484
23485         w32sock: leave win32 error in place.
23486         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
23487
23488 2009-11-26  Eric Blake  <ebb9@byu.net>
23489
23490         init.sh: suggest to use skip_ and fail_ functions in comments
23491         * tests/init.sh: Add a sentence.
23492
23493 2009-11-25  Bruno Haible  <bruno@clisp.org>
23494
23495         init.sh: add documentation in comments
23496         * tests/init.sh: Add some developer and user documentation.
23497
23498 2009-11-26  Jim Meyering  <meyering@redhat.com>
23499
23500         init.sh: accommodate even those who specify bogus srcdir manually
23501         * tests/init.sh: Normally, srcdir is guaranteed by automake and
23502         configure-time tests to be sanitized, so that there is no need to
23503         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
23504         (with no double quotes) suffices.  However, since tests may be
23505         invoked manually, and since you may explicitly set srcdir to the
23506         name of a directory containing spaces, do quote its uses here.
23507         * tests/test-pread.sh: Likewise.
23508         Suggested by Bruno Haible.
23509
23510         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
23511         * tests/test-pread.sh: Write no data into the pipe, because
23512         test-pread actually reads none.  This avoids a diagnostic,
23513         "bash: echo: write error: Broken pipe", that arises in the unusual
23514         event something is ignoring SIGPIPE, and might be interpreted
23515         as some sort of failure.  Reported by Bruno Haible.
23516
23517 2009-11-25  Jim Meyering  <meyering@redhat.com>
23518
23519         test-pread: cover failure with ESPIPE and EINVAL
23520         * tests/test-pread.c (main): Test for failure, too.
23521         * tests/test-pread.sh: Invoke with stdin on a pipe.
23522         Suggested by Eric Blake.
23523
23524         pread: improvement and fix
23525         * modules/pread (Depends-on): Depend on lseek, for portability to
23526         e.g., mingw.  Suggested by Eric Blake.
23527         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
23528
23529         unistd.in.h: correct declaration of pread
23530         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
23531         Reported by Richard W.M. Jones.
23532
23533         test-pread.sh: distribute the test script
23534         * modules/pread-tests (Files): Include test-pread.sh.
23535
23536         test-pread.sh: clean up
23537         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
23538         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
23539         That is unnecessary, since it's always ".".
23540         Suggestion from Eric Blake.
23541
23542         test-pread.sh: make executable
23543         * tests/test-pread.sh: Set executable bit.
23544         Reported by Eric Blake.
23545
23546         correct typo in test-pread.sh
23547         * tests/test-pread.sh: Add #! line.
23548
23549         test pread
23550         * tests/test-pread.c: New file.
23551         * tests/test-pread.sh: Likewise.
23552         * modules/pread-tests: Likewise.
23553
23554         pread: new module
23555         * modules/pread: New file.
23556         * lib/unistd.in.h (pread): Define/declare.
23557         * lib/pread.c (pread): New file.
23558         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
23559         * modules/unistd (Makefile.am): Substitute witnesses.
23560         * doc/posix-functions/pread.texi (pread): Update.
23561         * MODULES.html.sh: Add pread.
23562
23563 2009-11-25  Jim Meyering  <meyering@redhat.com>
23564
23565         tests/init.sh: new file to be used via most *.sh tests
23566         * tests/init.sh: New file.
23567
23568 2009-11-25  Eric Blake  <ebb9@byu.net>
23569
23570         utimens: work around older Linux failure with symlinks
23571         * lib/utimens.c (lutimensat_works_really): New variable.
23572         (fdutimens, lutimens): Use it to manage kernels that support
23573         nanosecond times on files, but not on symlinks.
23574         Reported by OndÅ™ej Vašík.
23575
23576         utimes: fix configure grammar
23577         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
23578
23579 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
23580
23581         regex: Fix fastmap for multibyte character ranges.
23582         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
23583         characters when a multibyte character range is included.
23584
23585 2009-11-22  Andy Wingo  <wingo@pobox.com>
23586
23587         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
23588         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
23589
23590 2009-11-24  Bruno Haible  <bruno@clisp.org>
23591
23592         doc: Most *_l functions exist in MacOS X 10.5.
23593         * doc/posix-functions/duplocale.texi: Update platforms list.
23594         * doc/posix-functions/freelocale.texi: Likewise.
23595         * doc/posix-functions/newlocale.texi: Likewise.
23596         * doc/posix-functions/uselocale.texi: Likewise.
23597         * doc/posix-functions/isalnum_l.texi: Likewise.
23598         * doc/posix-functions/isalpha_l.texi: Likewise.
23599         * doc/posix-functions/isblank_l.texi: Likewise.
23600         * doc/posix-functions/iscntrl_l.texi: Likewise.
23601         * doc/posix-functions/isdigit_l.texi: Likewise.
23602         * doc/posix-functions/isgraph_l.texi: Likewise.
23603         * doc/posix-functions/islower_l.texi: Likewise.
23604         * doc/posix-functions/isprint_l.texi: Likewise.
23605         * doc/posix-functions/ispunct_l.texi: Likewise.
23606         * doc/posix-functions/isspace_l.texi: Likewise.
23607         * doc/posix-functions/isupper_l.texi: Likewise.
23608         * doc/posix-functions/iswalnum_l.texi: Likewise.
23609         * doc/posix-functions/iswalpha_l.texi: Likewise.
23610         * doc/posix-functions/iswblank_l.texi: Likewise.
23611         * doc/posix-functions/iswcntrl_l.texi: Likewise.
23612         * doc/posix-functions/iswctype_l.texi: Likewise.
23613         * doc/posix-functions/iswdigit_l.texi: Likewise.
23614         * doc/posix-functions/iswgraph_l.texi: Likewise.
23615         * doc/posix-functions/iswlower_l.texi: Likewise.
23616         * doc/posix-functions/iswprint_l.texi: Likewise.
23617         * doc/posix-functions/iswpunct_l.texi: Likewise.
23618         * doc/posix-functions/iswspace_l.texi: Likewise.
23619         * doc/posix-functions/iswupper_l.texi: Likewise.
23620         * doc/posix-functions/iswxdigit_l.texi: Likewise.
23621         * doc/posix-functions/isxdigit_l.texi: Likewise.
23622         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
23623         * doc/posix-functions/strcasecmp_l.texi: Likewise.
23624         * doc/posix-functions/strcoll_l.texi: Likewise.
23625         * doc/posix-functions/strfmon_l.texi: Likewise.
23626         * doc/posix-functions/strftime_l.texi: Likewise.
23627         * doc/posix-functions/strncasecmp_l.texi: Likewise.
23628         * doc/posix-functions/strxfrm_l.texi: Likewise.
23629         * doc/posix-functions/tolower_l.texi: Likewise.
23630         * doc/posix-functions/toupper_l.texi: Likewise.
23631         * doc/posix-functions/towctrans_l.texi: Likewise.
23632         * doc/posix-functions/towlower_l.texi: Likewise.
23633         * doc/posix-functions/towupper_l.texi: Likewise.
23634         * doc/posix-functions/wcscoll_l.texi: Likewise.
23635         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23636         * doc/posix-functions/wctrans_l.texi: Likewise.
23637         * doc/posix-functions/wctype_l.texi: Likewise.
23638         * doc/glibc-functions/strptime_l.texi: Likewise.
23639         * doc/glibc-functions/strtod_l.texi: Likewise.
23640         * doc/glibc-functions/strtof_l.texi: Likewise.
23641         * doc/glibc-functions/strtol_l.texi: Likewise.
23642         * doc/glibc-functions/strtold_l.texi: Likewise.
23643         * doc/glibc-functions/strtoll_l.texi: Likewise.
23644         * doc/glibc-functions/strtoul_l.texi: Likewise.
23645         * doc/glibc-functions/strtoull_l.texi: Likewise.
23646         * doc/glibc-functions/wcsftime_l.texi: Likewise.
23647         * doc/glibc-functions/wcstod_l.texi: Likewise.
23648         * doc/glibc-functions/wcstof_l.texi: Likewise.
23649         * doc/glibc-functions/wcstol_l.texi: Likewise.
23650         * doc/glibc-functions/wcstold_l.texi: Likewise.
23651         * doc/glibc-functions/wcstoll_l.texi: Likewise.
23652         * doc/glibc-functions/wcstoul_l.texi: Likewise.
23653         * doc/glibc-functions/wcstoull_l.texi: Likewise.
23654
23655 2009-11-24  Bruno Haible  <bruno@clisp.org>
23656
23657         duplocale: Fix logic bug.
23658         * lib/duplocale.c: Don't include <langinfo.h>.
23659         (_NL_LOCALE_NAME): Remove macro.
23660         (rpl_duplocale): Use setlocale instead of nl_langinfo.
23661         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
23662
23663 2009-11-23  Jim Meyering  <meyering@redhat.com>
23664
23665         test-update-copyright: don't hard-code /usr/bin/perl
23666         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
23667         perl to print the current year.  Gilles Espinasse reported that
23668         the replaced use of perl was hard-coded as /usr/bin/perl.
23669
23670 2009-11-23  Bruno Haible  <bruno@clisp.org>
23671
23672         duplocale: Add support for glibc 2.3.x.
23673         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
23674
23675 2009-11-22  Bruno Haible  <bruno@clisp.org>
23676
23677         vasnprintf: Tiny optimization.
23678         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
23679         MacOS X.
23680
23681 2009-11-22  Bruno Haible  <bruno@clisp.org>
23682
23683         Tests for module 'duplocale'.
23684         * modules/duplocale-tests: New file.
23685         * tests/test-duplocale.c: New file.
23686
23687         New module 'duplocale'.
23688         * m4/duplocale.m4: New file.
23689         * lib/locale.in.h (duplocale): New declaration.
23690         * lib/duplocale.c: New file.
23691         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
23692         gl_LOCALE_H_DEFAULTS): New macros.
23693         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
23694         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
23695         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
23696         REPLACE_DUPLOCALE.
23697         * modules/duplocale: New file.
23698         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
23699
23700 2009-11-22  Bruno Haible  <bruno@clisp.org>
23701
23702         * modules/locale-tests (configure.ac): Test for newlocale function.
23703         * tests/test-locale.c: When the system has extended locale functions,
23704         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
23705
23706         locale: Make locale_t available when possible.
23707         * lib/locale.in.h: Include <xlocale.h> when it exists.
23708         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
23709         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
23710         * modules/locale (Depends-on): Add extensions.
23711         (Makefile.am): Also substitute HAVE_XLOCALE_H.
23712         * doc/posix-headers/locale.texi: Document the problem with locale_t.
23713
23714 2009-11-22  Bruno Haible  <bruno@clisp.org>
23715
23716         Add comments.
23717         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
23718         invocation.
23719         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
23720         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23721         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23722
23723 2009-11-22  Bruno Haible  <bruno@clisp.org>
23724
23725         error: account for the possibility of freopen (stdout).
23726         * lib/error.c: Include <unistd.h>.
23727         (flush_stdout): New function, extracted from error and error_at_line.
23728         Determine stdout's fd dynamically.
23729         (error, error_at_line): Invoke flush_stdout.
23730         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
23731         * modules/error (Depends-on): Add unistd.
23732
23733 2009-11-22  Bruno Haible  <bruno@clisp.org>
23734
23735         diffseq: Add comment.
23736         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
23737
23738 2009-11-22  Jim Meyering  <meyering@redhat.com>
23739
23740         c-stack: avoid defining an unused static function
23741         * lib/c-stack.c (find_stack_direction): Do not define this function
23742         when it will not be used.
23743
23744         diffseq: avoid spurious gcc warnings
23745         * lib/diffseq.h (IF_LINT2): Define.
23746         (compareseq): Use it to initialize two members of "part".
23747         This avoids two used-uninitialized warnings.
23748
23749 2009-11-21  Jim Meyering  <meyering@redhat.com>
23750
23751         c-stack: avoid "ignoring return value of `write'" warning
23752         * lib/c-stack.c: Include "ignore-value.h".
23753         (die): Explicitly ignore each write return value.
23754         * modules/c-stack (Depends-on): Add ignore-value.
23755
23756 2009-11-21  Bruno Haible  <bruno@clisp.org>
23757
23758         diffseq: reduce scope of variable 'best'.
23759         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
23760         variable, earlier used for two different purposes.
23761
23762 2009-11-21  Jim Meyering  <meyering@redhat.com>
23763
23764         diffseq: remove useless assignment to "best"
23765         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
23766         assignment.  At that point "best" is already guaranteed to be zero.
23767
23768 2009-11-20  Eric Blake  <ebb9@byu.net>
23769
23770         build: mention ftp redirector in release announcements
23771         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
23772         values that used to come from cfg.mk; mention FTP redirect URL.
23773         * build-aux/announce-gen: Mention the mirror list.
23774         Suggested by Karl Berry.
23775
23776         nanosleep: improve port to mingw
23777         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
23778         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
23779         LIB_NANOSLEEP, but only when needed.
23780         * modules/select (Link): Document LIBSOCKET.
23781         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
23782         enough.
23783
23784         nanosleep: work around cygwin bug
23785         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
23786         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
23787         bug.
23788         (getnow): Delete, not needed.
23789         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
23790         LIB_CLOCK_GETTIME.
23791         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
23792         clock-time, gettime.
23793         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
23794         bug.
23795         * modules/nanosleep-tests: New test.
23796         * tests/test-nanosleep.c: New file.
23797
23798         sleep: work around cygwin bug
23799         * lib/sleep.c (rpl_sleep): Work around the bug.
23800         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
23801         (gl_PREREQ_SLEEP): Delete unused macro.
23802         * modules/sleep (Depends-on): Add verify.
23803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
23804         * modules/unistd (Makefile.am): Substitute witness.
23805         * lib/unistd.in.h (sleep): Update prototype.
23806         * doc/posix-functions/sleep.texi (sleep): Document the bug.
23807         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
23808         * modules/sleep-tests (Depends-on): Check for alarm.
23809
23810 2009-11-20  Jim Meyering  <meyering@redhat.com>
23811
23812         maint.mk: improve sc_prohibit_magic_number_exit
23813         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
23814         so it does not match uses like System.exit(1).
23815         Add comments showing how to correct all offenders.
23816
23817 2009-11-19  Eric Blake  <ebb9@byu.net>
23818
23819         xalloc-die-tests: add missing library
23820         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
23821
23822         test-xvasprintf: silence compiler warnings
23823         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
23824         empty string from gcc.
23825
23826 2009-11-19  Jim Meyering  <meyering@redhat.com>
23827
23828         xfreopen: new module, from coreutils
23829         * modules/xfreopen: New module.
23830         * lib/xfreopen.c: New file.
23831         * lib/xfreopen.h: New file.
23832         * MODULES.html.sh (File stream based Input/Output"): Add it.
23833
23834 2009-11-19  Eric Blake  <ebb9@byu.net>
23835
23836         manywarnings: depend on warnings
23837         * modules/manywarnings (Depends-on): Add warnings.
23838
23839         build: avoid compiler warnings
23840         * lib/select.c (rpl_select): Delete unused variable.
23841         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
23842
23843 2009-11-18  Eric Blake  <ebb9@byu.net>
23844
23845         tests: avoid false negative with --with-packager
23846         * tests/test-version-etc.sh: Discard packager information.
23847         * tests/test-argp-version-etc-1.sh: Likewise.
23848         Reported by Mike Frysinger.
23849
23850         utimens: fix regression on Solaris
23851         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
23852         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
23853         can only change fd timestamps via futimesat.  Instead, use an
23854         additional witness macro to avoid BSD bug.
23855         Reported by Jim Meyering.
23856
23857 2009-11-17  Eric Blake  <ebb9@byu.net>
23858
23859         usleep: use it to simplify tests
23860         * modules/stat-time-tests (Depends-on): Add usleep.
23861         (configure.ac): Drop usleep check.
23862         * modules/chown-tests (Depends-on, configure.ac): Likewise.
23863         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
23864         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
23865         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
23866         * modules/openat-tests (Depends-on, configure.ac): Likewise.
23867         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
23868         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
23869         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
23870         Likewise.
23871         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
23872         * tests/test-lchown.h (nap): Likewise.
23873         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
23874         * tests/test-stat-time.c (nap): Likewise.
23875         * tests/test-utimens-common.h (nap): Update comments.
23876
23877         usleep: new module
23878         * modules/usleep: New file.
23879         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
23880         * lib/usleep.c (usleep): Likewise.
23881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
23882         * modules/unistd (Makefile.am): Substitute witnesses.
23883         * lib/unistd.in.h (usleep): Add declaration.
23884         * doc/pastposix-functions/usleep.texi (usleep): Document this.
23885         * MODULES.html.sh (Date and time): Likewise.
23886         * modules/usleep-tests (Depends-on): New test.
23887         * tests/test-usleep.c: New file.
23888
23889         chown: work around OpenBSD bug
23890         * lib/chown.c (rpl_chown): Work around the bug.
23891         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
23892         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
23893         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
23894         * modules/chown (Depends-on): Add stdbool.
23895         * modules/lchown (Depends-on): Likewise.
23896         * doc/posix-functions/chown.texi (chown): Document the bug.
23897         * doc/posix-functions/lchown.texi (lchown): Likewise.
23898         * tests/test-lchown.h (test_chown): Relax test.
23899
23900         mkstemp: avoid conflict with C++ keyword template
23901         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
23902         * lib/mkostemp.c (mkostemp): Likewise.
23903         * lib/mkostemps.c (mkostemps): Likewise.
23904         * lib/mkstemp.c (mkstemp): Likewise.
23905         * lib/mkstemps.c (mkstemps): Likewise.
23906
23907         xalloc-die-tests: optimize
23908         * tests/test-xalloc-die.sh: Reduce number of processes.
23909
23910 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23911
23912         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
23913         patch from ludo@gnu.org (Ludovic Courtès).
23914
23915 2009-11-17  Jim Meyering  <meyering@redhat.com>
23916
23917         version-etc: use proper license string
23918         * modules/version-etc (License): Use LGPL, not LGPLv3+.
23919         * modules/version-etc-fsf: Likewise.
23920
23921 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23922
23923         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
23924         printed to stdout.  Deal with EOL differences.
23925
23926 2009-11-17  Eric Blake  <ebb9@byu.net>
23927
23928         unsetenv: work around Solaris bug
23929         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
23930         * lib/unsetenv.c (rpl_unsetenv): Work around it.
23931         Reported by Jim Meyering.
23932
23933         vasnprintf: avoid compiler warnings
23934         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
23935         variables.
23936         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
23937
23938 2009-11-17  Simon Josefsson  <simon@josefsson.org>
23939
23940         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
23941         settings since xalloc-die is no longer the self test,
23942         xalloc-die.sh is.
23943
23944 2009-11-17  Jim Meyering  <meyering@redhat.com>
23945
23946         test-xalloc-die.sh: make the code agree with the commit log
23947         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
23948         at the end, just in case you happen to have a test-xalloc-die
23949         program in some other PATH directory.
23950
23951         test-xalloc-die.sh: fix a portability bug
23952         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
23953         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
23954         Otherwise, argv[0] (as often seen in diagnostics) would be too
23955         system-dependent, sometimes with, and sometimes without the leading "./".
23956
23957         version-etc-fsf: relax license to LGPLv3+
23958         * modules/version-etc-fsf (License): Relax license.
23959
23960 2009-11-16  Eric Blake  <ebb9@byu.net>
23961
23962         xalloc-die-tests: avoid printing null pointer
23963         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
23964         shell script.
23965         * tests/test-xalloc-die.c (program_name): Declare.
23966         * tests/test-xalloc-die.sh (tmpfiles): New file.
23967
23968         setenv, unsetenv: work around various bugs
23969         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
23970         (setenv) [HAVE_SETENV]: Work around bugs.
23971         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
23972         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
23973         for bugs.
23974         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
23975         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
23976         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
23977         * modules/stdlib (Makefile.am): Update substitutions.
23978         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
23979         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
23980         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
23981         * modules/setenv-tests: New test.
23982         * modules/unsetenv-tests: Likewise.
23983         * tests/test-setenv.c: New file.
23984         * tests/test-unsetenv.c: Likewise.
23985
23986 2009-11-16  Jim Meyering  <meyering@redhat.com>
23987
23988         version-etc: relax license to LGPLv3+
23989         * modules/version-etc (License): Relax license.
23990
23991         better AC_REQUIRE expanded-before-required-warning avoidance
23992         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
23993         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
23994         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
23995         which is no longer needed.
23996
23997 2009-11-16  Eric Blake  <ebb9@byu.net>
23998
23999         test-freading: clean up temporary file
24000         * tests/test-freading.c (main): Remove file on success, and use
24001         ASSERT more liberally.
24002         Reported by Jim Meyering.
24003
24004 2009-11-16  Jim Meyering  <meyering@redhat.com>
24005
24006         avoid new AC_REQUIRE expanded-before-required warnings
24007         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
24008         merely using it.
24009         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
24010         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
24011
24012 2009-11-15  Simon Josefsson  <simon@josefsson.org>
24013
24014         * tests/test-xalloc-die.c: New file.
24015         * modules/xalloc-die-tests: New file.
24016         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
24017         XFAIL_TESTS so it can be appended by modules.
24018
24019 2009-11-15  Simon Josefsson  <simon@josefsson.org>
24020
24021         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
24022         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
24023
24024 2009-11-14  Eric Blake  <ebb9@byu.net>
24025
24026         fnmatch: avoid compiler warning
24027         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
24028         to silence compiler warning about mismatch signedness in ?:.
24029         Reported by Robert Millan.
24030
24031         intprops: add double-inclusion guard
24032         * lib/intprops.h: Allow idempotent includes.
24033         Suggested by Bruce Korb.
24034
24035         openat: detect Solaris fchownat bug
24036         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
24037         penalizing glibc chownat when only lchownat is broken.
24038         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
24039         trailing slash bugs.
24040         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
24041         * modules/openat-tests (Files): Include more files.
24042         (Depends-on): Add mgetgroups, sleep, stat-time.
24043         (configure.ac): Add additional checks.
24044         (Makefile.am): Build new test.
24045         * tests/test-fchownat.c: New file.
24046
24047         lchown: detect Solaris and FreeBSD bug
24048         * lib/lchown.c (rpl_lchown): Work around bug.
24049         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
24050         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24051         * modules/unistd (Makefile.am): Populate it.
24052         * lib/unistd.in.h (lchown): Update declaration.
24053         * doc/posix-functions/lchown.texi (lchown): Document the bug.
24054         * modules/lchown-tests: New file.
24055         * tests/test-lchown.h (test_lchown): Likewise.
24056         * tests/test-lchown.c (main): Likewise.
24057
24058         chown: detect Solaris and FreeBSD bug
24059         * lib/chown.c (rpl_chown): Work around bug.
24060         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
24061         (gl_PREREQ_CHOWN): Delete.
24062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
24063         * modules/unistd (Makefile.am): Populate it.
24064         * lib/unistd.in.h (chown): Update declaration.
24065         * lib/lchown.c (chown): Update client.
24066         * modules/lchown (Depends-on): Add lstat.
24067         * doc/posix-functions/chown.texi (chown): Document the bug.
24068         * doc/posix-functions/getgroups.texi (getgroups): Document
24069         getgroups pitfall.
24070         * modules/chown-tests: New file.
24071         * tests/test-chown.h (test_chown): Likewise.
24072         * tests/test-chown.c (main): Likewise.
24073
24074 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
24075
24076         gnulib-tool: correctly detect absence of m4 directories
24077         * gnulib-tool: Avoid extra newline on data passed to wc -l.
24078
24079 2009-11-14  Jim Meyering  <meyering@redhat.com>
24080
24081         maint.mk: Prohibit inclusion of "xalloc.h" without use.
24082         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24083
24084 2009-11-14  John W. Eaton  <jwe@gnu.org>
24085
24086         strftime.h: wrap funtion declaration in extern "C" block
24087         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
24088
24089 2009-11-13  Eric Blake  <ebb9@byu.net>
24090
24091         getgroups: avoid compiler warning
24092         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
24093
24094         getgroups: work around FreeBSD bug
24095         * lib/getgroups.c (rpl_getgroups): Work around the bug.
24096         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
24097         * doc/posix-functions/getgroups.texi (getgroups): Document it.
24098         * tests/test-getgroups.c (main): Fix buffer overrun.
24099
24100         getgroups: avoid compilation failure
24101         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
24102         * modules/getgroups (Depends-on): Add stdint.
24103
24104 2009-11-13  Jim Meyering  <meyering@redhat.com>
24105
24106         test-getgroups: avoid compilation failure
24107         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
24108
24109 2009-11-13  Eric Blake  <ebb9@byu.net>
24110
24111         mgetgroups: new module, taken from coreutils
24112         * modules/mgetgroups: New file.
24113         * lib/mgetgroups.h: Likewise.
24114         * lib/mgetgroups.c (mgetgroups): Likewise.
24115         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
24116         * MODULES.html.sh (Users and groups): Mention it.
24117
24118         getgroups: don't expose GETGROUPS_T to user
24119         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
24120         an element at a time if GETGROUPS_T is wrong size.
24121         * lib/getugroups.h (getugroups): Change signature.
24122         * lib/unistd.in.h (getgroups): Likewise.
24123         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
24124         signature needs fixing.
24125         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
24126         AC_TYPE_GETGROUPS.
24127         * modules/group-member (Depends-on): Add getgroups.
24128         * lib/group-member.c (group_info, get_group_info): Use gid_t.
24129         (group_member): Rely on getgroups replacement.
24130         * lib/getugroups.c (getugroups): Use gid_t.
24131         * tests/test-getgroups.c (main): Likewise.
24132         * NEWS: Mention the signature change.
24133         * doc/posix-functions/getgroups.texi (getgroups): Mention the
24134         problem with signature.
24135         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
24136         GETGROUPS_T is still useful for setgroups.
24137
24138         getgroups, getugroups: provide stubs for mingw
24139         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
24140         * lib/getugroups.c (getugroups): Likewise.
24141         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
24142         function.  Modernize replacement scheme.
24143         (gl_PREREQ_GETGROUPS): Delete.
24144         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
24145         * modules/getgroups (configure.ac): Declare witness.
24146         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
24147         * modules/unistd (Depends-on): Substitute witness.
24148         * lib/unistd.in.h (getgroups): Declare replacement.
24149
24150         getgroups: avoid calling exit
24151         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
24152         drop xalloc.
24153         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
24154         dependencies.
24155         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
24156         exiting, in the rare case of malloc failure.
24157
24158         getgroups: fix logic error
24159         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
24160         has more than 20 groups.
24161         * modules/getgroups-tests: New test.
24162         * tests/test-getgroups.c: New file.
24163
24164 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24165
24166         * tests/test-base64.c: Improve.
24167
24168 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24169
24170         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
24171         Blake <ebb9@byu.net>.
24172
24173 2009-11-13  Simon Josefsson  <simon@josefsson.org>
24174
24175         * tests/test-xvasprintf.c: Add %s%s related checks.
24176
24177 2009-11-12  Eric Blake  <ebb9@byu.net>
24178
24179         version-etc: match standards.texi style
24180         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
24181         and use <> only for URLs.
24182
24183 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
24184
24185         fts: do not fail on a submount during traversal
24186         * lib/fts.c (fts_build): Read the stat info again after opening
24187         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
24188         Original report at http://bugzilla.redhat.com/501848.
24189
24190 2009-11-12  Jim Meyering  <meyering@redhat.com>
24191
24192         bootstrap: sync from coreutils
24193         * build-aux/bootstrap (bootstrap_epilogue): New function.
24194         Use git_modules_config in one more place.  This make bootstrap's
24195         --gnulib-srcdir option more useful for testing.
24196
24197         bootstrap: generalize autoheader check
24198         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
24199         AC_CONFIG_HEADERS.
24200
24201 2009-11-11  Eric Blake  <ebb9@byu.net>
24202
24203         mkfifoat: use new modules for Solaris and BSD bugs
24204         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
24205         * lib/mkfifoat.c (mknodat): Split...
24206         * lib/mknodat.c (mknodat): ...into new file.
24207         * modules/mkfifoat (Files): Ship new file.
24208         (Depends-on): Add mkfifo, mknod.
24209         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
24210         (Depends-on): Add symlink.
24211         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
24212         redundant with test_mkfifo.h.
24213         (do_mkfifoat, do_mknodat): New helpers.
24214
24215         mknod: new module
24216         * modules/mknod: New file.
24217         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
24218         * lib/mknod.c (mknod): Likewise.
24219         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24220         defaults.
24221         * modules/sys_stat (Makefile.am): Substitute them.
24222         * lib/sys_stat.in.h (mknod): Declare replacement.
24223         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24224         Document it.
24225         * doc/posix-functions/mknod.texi (mknod): Likewise.
24226         * modules/mknod-tests: New test.
24227         * tests/test-mknod.c: Likewise.
24228
24229         mkfifo: new module
24230         * modules/mkfifo: New file.
24231         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
24232         * lib/mkfifo.c (mkfifo): Likewise.
24233         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
24234         defaults.
24235         * modules/sys_stat (Makefile.am): Substitute them.
24236         * lib/sys_stat.in.h (mkfifo): Declare replacement.
24237         * MODULES.html.sh (Support for systems lacking POSIX:2008):
24238         Document it.
24239         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
24240         * modules/mkfifo-tests: New test.
24241         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
24242         from test-mkfifoat.c.
24243         * tests/test-mkfifo.c: New file.
24244
24245         readlink: detect FreeBSD bug
24246         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
24247         slash on symlink.
24248         * doc/posix-functions/readlink.texi (readlink): Document the bug.
24249         * tests/test-readlink.h (test_readlink): Enhance test.
24250
24251         symlink: detect FreeBSD bug
24252         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
24253         slash on symlink.
24254         * doc/posix-functions/symlink.texi (symlink): Document the bug.
24255         * tests/test-symlink.h (test_symlink): Enhance test.
24256
24257 2009-11-10  Eric Blake  <ebb9@byu.net>
24258
24259         link: detect FreeBSD bug
24260         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
24261         symlink.
24262         * doc/posix-functions/link.texi (link): Document the bug.
24263         * tests/test-link.h (test_link): Enhance test.
24264         * tests/test-linkat.c (main): Update caller.
24265
24266         unlink, remove: detect FreeBSD bug
24267         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
24268         slash on symlink.
24269         * doc/posix-functions/unlink.texi (unlink): Document the bug.
24270         * doc/posix-functions/remove.texi (remove): Likewise.
24271         * tests/test-unlink.h (test_unlink): Enhance test.
24272         * tests/test-remove.c (main): Likewise.
24273
24274 2009-11-09  Eric Blake  <ebb9@byu.net>
24275
24276         rename: detect FreeBSD bug
24277         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
24278         slash on symlink.
24279         * modules/renameat-tests (Depends-on): Add filenamecat.
24280         * tests/test-rename.h (test_rename): Allow one more errno.
24281         * tests/test-renameat.c (main): Likewise.
24282         * doc/posix-functions/rename.texi (rename): Document the bug.
24283
24284         open: detect FreeBSD bug
24285         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
24286         symlink.
24287         * doc/posix-functions/open.texi (open): Document the bug.
24288         * doc/posix-functions/utimes.texi (utimes): Likewise.
24289         * tests/test-open.h (test_open): Add parameters, and test symlink
24290         handling.
24291         * tests/test-open.c (main): Adjust caller.
24292         * tests/test-fcntl-safer.c (main): Likewise.
24293         * modules/open-tests (Depends-on): Add stdbool, symlink.
24294         * modules/fcntl-safer-tests (Depends-on): Likewise.
24295         * tests/test-openat.c (main): Add test-open tests.
24296
24297         stat: detect FreeBSD bug
24298         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
24299         symlink.
24300         * doc/posix-functions/stat.texi (stat): Document the bug.
24301         * tests/test-stat.h (test_stat_func): Add argument.
24302         * tests/test-stat.c (main): Adjust caller.
24303         * tests/test-fstatat.c (main): Likewise.
24304         * modules/stat-tests (Depends-on): Add stdbool, symlink.
24305         Reported by Jim Meyering.
24306
24307 2009-11-09  James Youngman  <jay@gnu.org>
24308
24309         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
24310         * lib/strftime.c: Correct placement of #include "ignore-value.h".
24311
24312 2009-11-08  Jim Meyering  <meyering@redhat.com>
24313
24314         utimens: remove invalid futimesat call
24315         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
24316         It used the file descriptor of the target file as the DIR_FD
24317         parameter and NULL as the file name.  That caused failure with
24318         errno == EFAULT on FreeBSD-8.0-rc2
24319
24320 2009-11-07  Eric Blake  <ebb9@byu.net>
24321
24322         fflush, freadseek: use fseeko, not fseek
24323         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
24324         (clear_ungetc_buffer): Avoid potential problems on large files.
24325         * lib/freadseek.c (freadseek): Likewise.
24326         * modules/freadseek (Depends-on): Add fseeko.
24327         * modules/fseek (configure.ac): Set a witness.
24328         * tests/test-fflush.c (main): Use fseeko.
24329         * tests/test-fpurge.c (fseek): Disable link warning.
24330         * tests/test-freadable.c (fseek): Likewise.
24331         * tests/test-freading.c (fseek): Likewise.
24332         * tests/test-fseeko.c (fseek): Likewise.
24333         * tests/test-ftell.c (fseek): Likewise.
24334         * tests/test-ftello.c (fseek): Likewise.
24335         * tests/test-fwritable.c (fseek): Likewise.
24336         * tests/test-fwriting.c (fseek): Likewise.
24337
24338 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24339
24340         * modules/memchr (Depends-on): Drop getpagesize dependency.
24341
24342 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24343
24344         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
24345         Reported by Ludovic Courtès.
24346         * build-aux/pmccabe2html: Improve example usage.
24347         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
24348
24349 2009-11-06  Jim Meyering  <meyering@redhat.com>
24350
24351         do-release-commit-and-tag: New module.
24352         Automate the release-commit and tag process.
24353         * build-aux/do-release-commit-and-tag: New script, from coreutils.
24354         * modules/do-release-commit-and-tag: New file.
24355         * MODULES.html.sh (Support for maintaining and releasing): Add it.
24356
24357 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24358
24359         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
24360         because test-select.c uses inet_pton.
24361
24362 2009-11-06  Simon Josefsson  <simon@josefsson.org>
24363
24364         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
24365         GETADDRINFO_LIB.  Bump serial number.
24366         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
24367         Suggested by Eric Blake <ebb9@byu.net>.
24368
24369 2009-11-05  Eric Blake  <ebb9@byu.net>
24370
24371         strtod: detect darwin bug
24372         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
24373         Reported by Leo Davis.
24374
24375         freopen-safer: new module
24376         * modules/freopen-safer: New module.
24377         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
24378         * lib/freopen-safer.c (freopen_safer): New file.
24379         * lib/stdio-safer.h (freopen_safer): New declaration.
24380         * lib/stdio--.h (freopen): New override.
24381         * MODULES.html.sh (File stream based Input/Output): Mention it.
24382         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
24383         freopen-safer module.
24384         * doc/posix-functions/stderr.texi (stderr): Likewise.
24385         * doc/posix-functions/stdin.texi (stdin): Likewise.
24386         * doc/posix-functions/stdout.texi (stdout): Likewise.
24387         * modules/freopen-safer-tests: New test.
24388         * tests/test-reopen-safer.c: New file.
24389
24390 2009-11-05  Jim Meyering  <meyering@redhat.com>
24391
24392         maint.mk: Prohibit inclusion of "close-stream.h" without use.
24393         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
24394
24395 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24396
24397         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
24398
24399 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24400
24401         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
24402
24403 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24404
24405         Fix link error.
24406         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24407         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24408
24409 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24410
24411         * tests/test-func.c: Also test value of __func__.
24412
24413 2009-11-05  Simon Josefsson  <simon@josefsson.org>
24414
24415         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
24416         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
24417
24418 2009-11-05  Bruno Haible  <bruno@clisp.org>
24419
24420         Fix link error.
24421         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
24422         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
24423         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
24424
24425 2009-11-05  Bruno Haible  <bruno@clisp.org>
24426
24427         Tests for module 'inet_pton'.
24428         * modules/inet_pton-tests: New file.
24429         * tests/test-inet_pton.c: New file.
24430
24431 2009-11-05  Bruno Haible  <bruno@clisp.org>
24432
24433         Tests for module 'inet_ntop'.
24434         * modules/inet_ntop-tests: New file.
24435         * tests/test-inet_ntop.c: New file.
24436
24437 2009-11-04  Eric Blake  <ebb9@byu.net>
24438
24439         stdlib-safer: wrap all mkstemp variants
24440         * modules/mkostemp (configure.ac): Set witness.
24441         * modules/mkostemps (configure.ac): Likewise.
24442         * modules/mkstemps (configure.ac): Likewise.
24443         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
24444         (mkstemps_safer): Wrap more functions.
24445         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
24446         wrapping.
24447         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
24448         (mkstemps_safer): Implement the wrappers.
24449
24450         mkstemps, mkostemps: new modules
24451         * modules/mkostemps: New module.
24452         * modules/mkstemps: Likewise.
24453         * lib/mkostemps.c (mkostemps): New file.
24454         * lib/mkstemps.c (mkstemps): Likewise.
24455         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
24456         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
24457         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
24458         * modules/stdlib (Makefile.am): Substitute them.
24459         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
24460         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
24461         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24462         * doc/gnulib.texi (Glibc stdlib.h): Include them.
24463         * MODULES.html.sh (File system functions): Mention them.
24464
24465         tempname: resync from glibc
24466         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
24467         same values for __GT_FILE as glibc.  Abort even when assertions
24468         are disabled.
24469         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
24470         match its value otherwise.  Allow idempotent inclusion.
24471         * lib/mkdtemp.c (mkdtemp): Adjust caller.
24472         * lib/mkostemp.c (mkostemp): Likewise.
24473         * lib/mkstemp.c (mkstemp): Likewise.
24474         * lib/tmpfile.c (tmpfile): Likewise.
24475         * NEWS: Document this.
24476
24477         utimens: fix use of futimens on older Linux
24478         * lib/utimens.c (fdutimens): Use updated, rather than original,
24479         timespec to avoid bug in older Linux kernel.
24480         Reported by Simon Josefsson.
24481
24482 2009-11-04  Bruno Haible  <bruno@clisp.org>
24483
24484         Make num_processors more flexible and consistent.
24485         * lib/nproc.h (enum nproc_query): New type.
24486         (num_processors): Add a 'query' argument.
24487         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
24488         (num_processors): Add a 'query' argument. Test the value of the
24489         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
24490         mingw, count the number of CPUs available for the current process.
24491         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
24492         Check for sched_getaffinity and sched_getaffinity_np.
24493         * modules/nproc (Depends-on): Add c-ctype, extensions.
24494         * NEWS: Mention the change.
24495
24496 2009-11-03  Bruno Haible  <bruno@clisp.org>
24497
24498         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
24499
24500 2009-11-03  Jim Meyering  <meyering@redhat.com>
24501
24502         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
24503         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
24504         if it is defined.
24505
24506 2009-11-02  Eric Blake  <ebb9@byu.net>
24507
24508         mktime, timegm: share common declaration
24509         * lib/mktime-internal.h: New file.
24510         * lib/mktime.c: Use it rather than open-coding a declaration.
24511         * lib/timegm.c: Likewise.
24512         * modules/mktime (Files): Ship it.
24513         * modules/timegm (Files): Likewise.
24514         Suggested by Bruno Haible.
24515
24516         test-update-copyright: update test to match script changes
24517         * tests/test-update-copyright.sh: Avoid hard-coding perl
24518         location.  Don't update *.bak created by earlier runs.
24519
24520 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
24521             Simon Josefsson  <simon@josefsson.org>
24522             Bruno Haible  <bruno@clisp.org>
24523
24524         Fix link error on Solaris 8.
24525         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
24526         also in libnsl. Define also INET_PTON_LIB.
24527         * modules/inet_pton (Link): New section.
24528
24529 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24530             Bruno Haible  <bruno@clisp.org>
24531
24532         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
24533         * modules/inet_ntop (Link): New section.
24534         Reported by Boyan Kasarov <bkasarov@gmail.com>.
24535
24536 2009-11-02  Eric Blake  <ebb9@byu.net>
24537
24538         maint: avoid compiler warnings in m4 macros
24539         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
24540         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
24541
24542 2009-11-02  Simon Josefsson  <simon@josefsson.org>
24543
24544         * m4/pmccabe2html.m4: Remove file.
24545         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
24546         function.  Change maintainer.
24547         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
24548         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
24549         Courtès).
24550
24551 2009-10-31  Eric Blake  <ebb9@byu.net>
24552
24553         fseeko: fix m4 regression
24554         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
24555         regression from 2009-10-27.
24556         Reported by Ralf Wildenhues.
24557
24558 2009-10-31  Jim Meyering  <meyering@redhat.com>
24559
24560         inttostr: aesthetics and improved (compile-time) safety
24561         Define inttype_is_signed rather than inttype_is_unsigned,
24562         since the sole use is via "#if inttype_is_signed".
24563         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
24564         inttype_is_unsigned.
24565         * lib/offtostr.c (inttype_is_signed): Likewise.
24566         * lib/uinttostr.c (inttype_is_signed): Likewise.
24567         * lib/umaxtostr.c (inttype_is_signed): Likewise.
24568         * lib/inttostr.c (inttostr): Use verify to cross-check the
24569         inttype_is_signed value and the signedness of the actual type.
24570         * modules/inttostr (Depends-on): Add verify.
24571
24572 2009-10-30  Eric Blake  <ebb9@byu.net>
24573
24574         build: avoid compiler warnings
24575         * lib/fchmodat.c (lchmod): Mark unused variables.
24576         * lib/getopt.c (_getopt_initialize): Likewise.
24577         * lib/mktime.c (__mktime_internal): Provide prototype.
24578         * lib/inttostr.c (inttostr): Avoid compiler warning even with
24579         older gcc that do not understand #pragma GCC diagnostic.
24580         * lib/uinttostr.c (inttype_is_unsigned): Define.
24581         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
24582
24583 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
24584
24585         stat: fix compilation on AIX
24586         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
24587         only see struct stat64.
24588
24589 2009-10-30  Eric Blake  <ebb9@byu.net>
24590
24591         exclude: make more robust
24592         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
24593         rather than masking a coding bug.
24594         Suggested by Bruno Haible.
24595
24596 2009-10-30  Jim Meyering  <meyering@redhat.com>
24597
24598         perl scripts: remove #!/usr/bin/perl in favor of more portable...
24599         Rather than putting #!/usr/bin/perl on the first line,
24600         start with a variant of what's recommended by "man perlrun" that
24601         invokes the first "perl" program from your shell's search path.
24602         * build-aux/gitlog-to-changelog: Replace #!... as above.
24603         Add a "Local Variables" perl mode setting.
24604         Prompted by a patch from Ludovic Courtès.
24605         Improved by Eric Blake.
24606         * build-aux/useless-if-before-free: Likewise.
24607         * build-aux/announce-gen: Likewise.
24608         * build-aux/update-copyright: Likewise.
24609
24610 2009-10-29  Eric Blake  <ebb9@byu.net>
24611
24612         filenamecat-lgpl: adjust clients
24613         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
24614         filenamecat.
24615         * modules/renameat (Depends-on): Likewise.
24616
24617         filenamecat: split into filenamecat-lgpl
24618         * modules/filenamecat-lgpl: New module.
24619         * modules/filenamecat (Files): Move library-safe files into
24620         filenamecat-lgpl.
24621         (Depends-on): Add filenamecat-lgpl.
24622         (configure.ac): Declare witness.
24623         * lib/filenamecat.h (file_name_concat): Only declare when using
24624         GPL module.
24625         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
24626         Move...
24627         * lib/filenamecat-lgpl.c: ...into new file.
24628         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
24629         (gl_FILE_NAME_CONCAT): Use it.
24630         * MODULES.html.sh (File system functions): Mention new module.
24631
24632         argp: avoid memory leak
24633         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
24634         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
24635         base_name, since the latter malloc()s and can call exit().
24636         Leak introduced 2006-07-03.
24637
24638         dirname-lgpl: adjust clients that don't need full dirname
24639         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
24640         * modules/filenamecat (Depends-on): Likewise.
24641         * modules/linkat (Depends-on): Likewise.
24642         * modules/mkancesdirs (Depends-on): Likewise.
24643         * modules/mkdir (Depends-on): Likewise.
24644         * modules/openat (Depends-on): Likewise.
24645         * modules/savewd (Depends-on): Likewise.
24646         * modules/rename (Depends-on): Likewise.
24647         (License): Relax license.
24648         * modules/mkdir-tests (Depends-on): Drop progname.
24649         (Makefile.am): Delete unneeded LDADD.
24650         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
24651
24652         dirname: split into dirname-lgpl
24653         * modules/dirname-lgpl: New module.
24654         * modules/dirname (Files): Move library-safe files into
24655         dirname-lgpl.
24656         (Depends-on): Add dirname-lgpl.
24657         (configure.ac): Declare witness.
24658         * modules/double-slash-root (License): Relax license.
24659         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
24660         module.
24661         * lib/dirname.c (dir_len, mdir_name): Move...
24662         * lib/dirname-lgpl.c: ...into new file.
24663         * lib/basename.c (last_component, base_len): Move...
24664         * lib/basename-lgpl.c: ...into new file.
24665         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
24666         (gl_DIRNAME): Use it.
24667         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
24668         Mention new module.
24669         * modules/dirname-tests (Depends-on): Add progname.
24670         * tests/test-dirname.c (program_name): Delete.
24671
24672         mkdir: make safe for libraries
24673         * modules/mkdir (Depends-on): Drop xalloc.
24674         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
24675         exit.
24676
24677         tests: avoid some compiler warnings
24678         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
24679         literals.
24680         * tests/test-memchr.c (main): Avoid type mismatch.
24681         * tests/test-arpa_inet.c (main): Avoid unused parameters.
24682         * tests/test-base64.c (main): Likewise.
24683         * tests/test-getdelim.c (main): Likewise.
24684         * tests/test-gethostname.c (main): Likewise.
24685         * tests/test-getline.c (main): Likewise.
24686         * tests/test-netinet_in.c (main): Likewise.
24687         * tests/test-select.c (open_server_socket, main): Likewise.
24688         * tests/test-select-stdin.c (main): Likewise.
24689         * tests/test-sockets.c (main): Likewise.
24690         * tests/test-strsignal.c (main): Likewise.
24691         * tests/test-sys_select.c (main): Likewise.
24692         * tests/test-sys_socket.c (main): Likewise.
24693         * tests/test-u64.c (main): Likewise.
24694         * tests/test-xfprintf-posix.c (main): Likewise.
24695         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
24696
24697         sockets: avoid compiler warning
24698         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
24699
24700         maint: detect usage(1) and other suspicious exits
24701         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
24702
24703 2009-10-29  Jim Meyering  <meyering@redhat.com>
24704
24705         timespec: long-to-int truncation could make timespec_cmp malfunction
24706         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
24707         a multiple of 2^32 nanoseconds as no difference.
24708
24709 2009-10-28  Jim Meyering  <meyering@redhat.com>
24710
24711         fprintftime: wrap macro code argument in "do {...} while(0)"
24712         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
24713         cpy macro must be a statement that can be followed by a semicolon.
24714         Now that the else clause contains a comment and is hence longer
24715         than one line, I require curly braces.  That in turn requires
24716         that we wrap this code block in the standard do...while(0).
24717
24718         fprintftime: remove stray semicolon from previous change
24719         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
24720
24721         fprintftime: avoid a warning about ignored fwrite return value
24722         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
24723         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
24724         that is unsafe.
24725         * modules/fprintftime (Depends-on): Add ignore-value.
24726
24727         exclude: avoid an unwarranted warning
24728         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
24729
24730 2009-10-27  Eric Blake  <ebb9@byu.net>
24731
24732         fseek: avoid compilation failure when fflush is replaced
24733         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
24734         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
24735         module is in use.
24736         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
24737         module is not in use; since REPLACE_FSEEK worked otherwise.
24738         (GNULIB_FTELLO): Likewise for ftell.
24739         Reported by Ian Beckwith and others.
24740
24741 2009-10-27  Bruno Haible  <bruno@clisp.org>
24742
24743         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
24744         Reported by Jim Meyering.
24745
24746 2009-10-27  Jim Meyering  <jim@meyering.net>
24747             Bruno Haible  <bruno@clisp.org>
24748
24749         Avoid warning despite dropping the return value of fwrite.
24750         * lib/unicodeio.c: Include ignore-value.h.
24751         (fwrite_success_callback): Explicitly ignore fwrite's return value.
24752         * modules/unicodeio (Depends-on): Add ignore-value.
24753
24754 2009-10-26  Eric Blake  <ebb9@byu.net>
24755
24756         areadlinkat: fix fallback path
24757         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
24758         pointer and zero.
24759
24760 2009-10-22  Pádraig Brady  <P@draigBrady.com>
24761
24762         Use a better IO block size for modern systems
24763         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
24764         * lib/md2.c: Likewise.
24765         * lib/md4.c: Likewise.
24766         * lib/md5.c: Likewise.
24767         * lib/sha1.c: Likewise.
24768         * lib/sha256.c: Likewise.
24769         * lib/sha512.c: Likewise.
24770
24771 2009-10-22  Eric Blake  <ebb9@byu.net>
24772
24773         tests: avoid several compiler warnings
24774         * tests/test-getcwd.c (main): Avoid buffer underflow.
24775         * tests/test-getdate.c (main): String literals are not safe with
24776         putenv, so use setenv.  Declare unused argument.
24777         * modules/getdate-tests (Depends-on): Add setenv.
24778         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
24779         problems with string literals in char *.
24780         * tests/test-hash.c (main): Avoid shadowing declaration.
24781         (insert_new): Treat string literals as char const *.
24782         * tests/test-getopt.h (test_getopt): Likewise.
24783         (getopt_loop): Alter types to minimize casting elsewhere.
24784         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
24785         (test_getopt_long_posix): Likewise.
24786         (do_getopt_long): Add wrapper to minimize casting.
24787         * tests/test-atexit.c (clear_temp_file): Use void.
24788         * tests/test-areadlink-with-size.c (main): Declare unused
24789         arguments.
24790         * tests/test-areadlink.c (main): Likewise.
24791         * tests/test-areadlinkat-with-size.c (main): Likewise.
24792         * tests/test-areadlinkat.c (main): Likewise.
24793         * tests/test-canonicalize-lgpl.c (main): Likewise.
24794         * tests/test-canonicalize.c (main): Likewise.
24795         * tests/test-dirent-safer.c (main): Likewise.
24796         * tests/test-dirname.c (main): Likewise.
24797         * tests/test-dup2.c (main): Likewise.
24798         * tests/test-fchdir.c (main): Likewise.
24799         * tests/test-fcntl-h.c (main): Likewise.
24800         * tests/test-fcntl-safer.c (main): Likewise.
24801         * tests/test-fdopendir.c (main): Likewise.
24802         * tests/test-fdutimensat.c (main): Likewise.
24803         * tests/test-fflush.c (main): Likewise.
24804         * tests/test-filenamecat.c (main): Likewise.
24805         * tests/test-filevercmp.c (main): Likewise.
24806         * tests/test-fopen-safer.c (main): Likewise.
24807         * tests/test-fopen.c (main): Likewise.
24808         * tests/test-fpending.c (main): Likewise.
24809         * tests/test-fpurge.c (main): Likewise.
24810         * tests/test-freading.c (main): Likewise.
24811         * tests/test-fstatat.c (main): Likewise.
24812         * tests/test-fsync.c (main): Likewise.
24813         * tests/test-futimens.c (main): Likewise.
24814         * tests/test-getndelim2.c (main): Likewise.
24815         * tests/test-gettimeofday.c (main): Likewise.
24816         * tests/test-getopt.c (main): Likewise.
24817         * tests/test-i-ring.c (main): Likewise.
24818         * tests/test-inttypes.c (main): Likewise.
24819         * tests/test-link.c (main): Likewise.
24820         * tests/test-lstat.c (main): Likewise.
24821         * tests/test-math.c (main): Likewise.
24822         * tests/test-md5.c (main): Likewise.
24823         * tests/test-memchr2.c (main): Likewise.
24824         * tests/test-memrchr.c (main): Likewise.
24825         * tests/test-mkdir.c (main): Likewise.
24826         * tests/test-mkdirat.c (main): Likewise.
24827         * tests/test-mkfifoat.c (main): Likewise.
24828         * tests/test-open.c (main): Likewise.
24829         * tests/test-openat-safer.c (main): Likewise.
24830         * tests/test-openat.c (main): Likewise.
24831         * tests/test-quotearg.c (main): Likewise.
24832         * tests/test-rawmemchr.c (main): Likewise.
24833         * tests/test-readlink.c (main): Likewise.
24834         * tests/test-remove.c (main): Likewise.
24835         * tests/test-rename.c (main): Likewise.
24836         * tests/test-renameat.c (main): Likewise.
24837         * tests/test-rmdir.c (main): Likewise.
24838         * tests/test-sha1.c (main): Likewise.
24839         * tests/test-signal.c (main): Likewise.
24840         * tests/test-sigaction.c (main): Likewise.
24841         * tests/test-stat.c (main): Likewise.
24842         * tests/test-stat-time.c (main): Likewise.
24843         * tests/test-stddef.c (main): Likewise.
24844         * tests/test-stdint.c (main): Likewise.
24845         * tests/test-stdio.c (main): Likewise.
24846         * tests/test-stdlib.c (main): Likewise.
24847         * tests/test-strchrnul.c (main): Likewise.
24848         * tests/test-strerror.c (main): Likewise.
24849         * tests/test-string.c (main): Likewise.
24850         * tests/test-strtod.c (main): Likewise.
24851         * tests/test-strverscmp.c (main): Likewise.
24852         * tests/test-symlink.c (main): Likewise.
24853         * tests/test-symlinkat.c (main): Likewise.
24854         * tests/test-sys_stat.c (main): Likewise.
24855         * tests/test-sys_time.c (main): Likewise.
24856         * tests/test-time.c (main): Likewise.
24857         * tests/test-unistd.c (main): Likewise.
24858         * tests/test-unlink.c (main): Likewise.
24859         * tests/test-unlinkat.c (main): Likewise.
24860         * tests/test-utimens.c (main): Likewise.
24861         * tests/test-utimensat.c (main): Likewise.
24862         * tests/test-version-etc.c (main): Likewise.
24863         * tests/test-wchar.c (main): Likewise.
24864         * tests/test-wctype.c (main): Likewise.
24865         * tests/test-xprintf-posix.c (main): Likewise.
24866         * tests/test-posixtm.c (main): Likewise.
24867         (STREQ): Delete unused macro.
24868         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
24869         shadowed variables.
24870         * tests/test-memchr.c (main): Likewise.
24871
24872 2009-10-21  Eric Blake  <ebb9@byu.net>
24873
24874         areadlinkat: avoid failure on older glibc
24875         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
24876         rather than mis-comparing 0 against FUNC_RESULT of char*.
24877
24878 2009-10-21  Bruno Haible  <bruno@clisp.org>
24879
24880         * modules/stpncpy (License): Relicense under LGPLv2+.
24881         Reported by David Lutterkort <lutter@redhat.com>.
24882
24883 2009-10-20  Eric Blake  <ebb9@byu.net>
24884
24885         utimensat: work around Solaris 9 bug
24886         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
24887         has trailing slash bugs.
24888         * tests/test-lutimens.h (test_lutimens): Enhance test.
24889         * tests/test-utimens.h (test_utimens): Likewise.
24890         * doc/posix-functions/utime.texi (utime): Enhance documentation.
24891         * doc/posix-functions/utimes.texi (utimes): Likewise.
24892         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
24893         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
24894         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
24895         * doc/posix-functions/futimens.texi (futimens): Likewise.
24896
24897         fdutimensat: new module
24898         * modules/fdutimensat: New file.
24899         * lib/fdutimensat.c (fdutimensat): Likewise.
24900         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
24901         * MODULES.html.sh (File system functions): Mention module.
24902         * modules/fdutimensat-tests: New test.
24903         * tests/test-fdutimensat.c: Likewise.
24904
24905         doc: regenerate INSTALL
24906         * doc/INSTALL: Reflect recent autoconf update.
24907         * doc/INSTALL.ISO: Likewise.
24908         * doc/INSTALL.UTF-8: Likewise.
24909
24910 2009-10-20  Pádraig Brady  <P@draigBrady.com>
24911
24912         acl: warn if ACL support is not detected
24913         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
24914
24915 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
24916
24917         * lib/nproc.h: Add extern "C" block for C++.
24918
24919 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
24920             Bruno Haible  <bruno@clisp.org>
24921
24922         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
24923         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
24924         * doc/posix-functions/isalpha.texi: Likewise.
24925         * doc/posix-functions/isblank.texi: Likewise.
24926         * doc/posix-functions/iscntrl.texi: Likewise.
24927         * doc/posix-functions/isdigit.texi: Likewise.
24928         * doc/posix-functions/isgraph.texi: Likewise.
24929         * doc/posix-functions/islower.texi: Likewise.
24930         * doc/posix-functions/isprint.texi: Likewise.
24931         * doc/posix-functions/ispunct.texi: Likewise.
24932         * doc/posix-functions/isspace.texi: Likewise.
24933         * doc/posix-functions/isupper.texi: Likewise.
24934         * doc/posix-functions/isxdigit.texi: Likewise.
24935
24936 2009-10-18  Bruno Haible  <bruno@clisp.org>
24937
24938         Tests for module 'isblank'.
24939         * modules/isblank-tests: New file.
24940         * tests/test-isblank.c: New file.
24941
24942         New module 'isblank'.
24943         * lib/isblank.c: New file.
24944         * m4/isblank.m4: New file.
24945         * modules/isblank: New file.
24946         * doc/posix-functions/isblank.texi: Mention the new module.
24947
24948 2009-10-18  Bruno Haible  <bruno@clisp.org>
24949
24950         New module 'ctype'.
24951         * lib/ctype.in.h: New file.
24952         * m4/ctype.m4: New file.
24953         * modules/ctype: New file.
24954         * doc/posix-headers/ctype.texi: Mention the new module.
24955
24956 2009-10-18  Jim Meyering  <meyering@redhat.com>
24957
24958         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
24959         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
24960         right after its initialization, rather than farther down.
24961         Keeping these in close proximity makes it easier to ensure
24962         that each such variable is initialized.  E.g.,
24963
24964             LIB_CLOCK_GETTIME=
24965             AC_SUBST([LIB_CLOCK_GETTIME])
24966
24967         This change also increments these serial numbers.
24968         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
24969         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
24970         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24971
24972 2009-10-18  Bruno Haible  <bruno@clisp.org>
24973
24974         Don't let environment variables perturb build.
24975         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
24976         (gl_PREREQ_GETHRXTIME): ... not here.
24977
24978 2009-10-18  Bruno Haible  <bruno@clisp.org>
24979
24980         Avoid symlink attack in localcharset module.
24981         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
24982         (O_NOFOLLOW): Define fallback.
24983         (get_charset_aliases): Don't open the file if it is a symbolic link.
24984         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
24985         gl_FCNTL_H.
24986         (gl_FCNTL_H): Require it.
24987         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
24988         * modules/localcharset (Files): Add m4/fcntl_h.m4.
24989         Reported by Fergal Glynn <fglynn@veracode.com>.
24990
24991 2009-10-18  Bruno Haible  <bruno@clisp.org>
24992
24993         Implement nproc for mingw.
24994         * lib/nproc.c: Include <windows.h>
24995         (num_processors): On native Windows platforms, try GetSystemInfo.
24996
24997 2009-10-18  Bruno Haible  <bruno@clisp.org>
24998
24999         Implement nproc for IRIX.
25000         * lib/nproc.c: Include <sys/sysmp.h>.
25001         (num_processors): On IRIX systems, try sysmp.
25002         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
25003
25004 2009-10-18  Bruno Haible  <bruno@clisp.org>
25005
25006         Implement nproc for HP-UX.
25007         * lib/nproc.c: Include <sys/pstat.h>
25008         (num_processors): On HP-UX systems, try pstat_getdynamic.
25009         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
25010         pstat_getdynamic.
25011
25012 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
25013             Bruno Haible  <bruno@clisp.org>
25014
25015         Implement nproc for NetBSD, OpenBSD.
25016         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
25017         (ARRAY_SIZE): New macro.
25018         (num_processors): On BSD systems, try sysctl of HW_NCPU.
25019         * m4/nproc.m4: New file.
25020         * modules/nproc (Files): Add m4/nproc.m4.
25021         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
25022         (Makefile.am): Instead, augment lib_SOURCES.
25023
25024 2009-10-18  Bruno Haible  <bruno@clisp.org>
25025
25026         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
25027         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
25028         sys/param.h.
25029
25030 2009-10-16  Eric Blake  <ebb9@byu.net>
25031
25032         utimensat: new module
25033         * modules/utimensat: New file.
25034         * lib/utimensat.c (utimensat): Likewise.
25035         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25036         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
25037         so we can work around Linux bugs.
25038         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25039         * modules/sys_stat (Makefile.am): Substitute them.
25040         * lib/sys_stat.in.h (utimensat): Declare it.
25041         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25042         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25043         * modules/utimensat-tests: New test.
25044         * tests/test-utimensat.c: Likewise.
25045
25046         utimens: let lutimens work on non-symlinks
25047         * lib/utimens.c (lutimens): Fall back to utimens rather than
25048         failing with ENOSYS, when file is not a symlink.
25049         (utimens): Reduce redirection.
25050         * tests/test-lutimens.h (test_lutimens): Update test to cover
25051         non-symlinks.
25052         * tests/test-utimens.h (test_utimens): Update test to cover
25053         symlinks.
25054         * tests/test-utimens.c (main): Update caller.
25055
25056         utimens: cache whether utimensat syscall works
25057         * lib/utimens.c (utimensat_works_really): New cache variable.
25058         (fdutimens, lutimens): Use it to avoid failing syscall.
25059
25060         test-stat-time, test-utimens: improve portability
25061         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
25062         ext4 on alpha, and for cygwin.
25063         * tests/test-utimens-common.h: New file.
25064         (nap): Factor delays into single function.
25065         * tests/test-lutimens.h (test_lutimens): Use new header.
25066         * tests/test-futimens.h (test_futimens): Likewise.
25067         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
25068         timestamps to occur from same machine, as was done previously for
25069         test_utimens.
25070         * modules/utimens-tests (Files): Ship new file.
25071         * modules/futimens-tests (Files): Likewise.
25072         Reported in part by Jim Meyering.
25073
25074         sys_stat: sort replacement declarations
25075         * lib/sys_stat.in.h: Sort declarations.
25076         * lib/futimens.c (futimens): Fix typo.
25077
25078 2009-10-15  Jim Meyering  <meyering@redhat.com>
25079
25080         don't let environment settings perturb build
25081         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
25082         could cause a configure-time and/or build-time malfunction.
25083         Typically, a configure-time function-in-library test is performed
25084         via code like this:
25085
25086           LIB_VAR=
25087           AC_SUBST([LIB_VAR])
25088           prefix_saved_LIBS=$LIBS
25089             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
25090                        [test "$ac_cv_search_FUNC" = "none required" ||
25091                         LIB_VAR=$ac_cv_search_FUNC])
25092           LIBS=$prefix_saved_LIBS
25093
25094         However, in each of the files affected by this change, the LIB_VAR=
25095         initialization was omitted.  Thus, when set in the environment, its
25096         value would propagate into generated Makefiles when FUNC is not found
25097         in LIB_NAME.
25098         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
25099         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
25100         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25101
25102 2009-10-14  Eric Blake  <ebb9@byu.net>
25103
25104         fchdir: avoid infinite recursion in mingw
25105         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
25106         recursing.
25107
25108         test-stat-time: port to mingw
25109         * tests/test-stat-time.c (force_unlink): Return a value.
25110         (test_ctime) [W32]: Fix compilation error.
25111         (nap): Don't call usleep with too large an argument.  Use
25112         force_unlink.
25113         * doc/pastposix-functions/usleep.texi (usleep): Document the
25114         portability issue.
25115
25116 2009-10-13  Jim Meyering  <meyering@redhat.com>
25117
25118         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
25119         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
25120         * modules/pipe-filter-ii: Likewise.
25121         * modules/sys_socket-tests: Likewise.
25122         * modules/tsearch-tests: Likewise.
25123         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
25124         (check): Depend on it.
25125
25126 2009-10-12  Eric Blake  <ebb9@byu.net>
25127
25128         utimens-tests: port to NFS file systems
25129         * tests/test-utimens.h (test_utimens): Refactor utimecmp
25130         comparisons to avoid spurious failures from timestamp drift
25131         between NFS machines.
25132
25133 2009-10-12  Eric Blake  <ebb9@byu.net>
25134
25135         stat-time-tests: minor cleanups
25136         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
25137         * tests/test-stat-time.c (nap): Separate assignment from call.
25138         Suggested by Paolo Bonzini and Bruno Haible.
25139
25140         sys_stat: guarantee struct timespec
25141         * lib/sys_stat.in.h (includes): Always include <time.h>
25142         * modules/sys_stat (Depends-on): Add time.
25143         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
25144         mode_t permission values.
25145         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
25146         get at subsecond timestamps.
25147
25148 2009-10-10  Eric Blake  <ebb9@byu.net>
25149
25150         futimens: new module
25151         * modules/futimens: New file.
25152         * lib/futimens.c (futimens): Likewise.
25153         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
25154         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
25155         we can work around Linux bugs.
25156         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
25157         * modules/sys_stat (Makefile.am): Substitute them.
25158         * lib/sys_stat.in.h (futimens): Declare it.
25159         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25160         * doc/posix-functions/futimens.texi (futimens): Likewise.
25161         * modules/futimens-tests: New test.
25162         * tests/test-futimens.c: Likewise.
25163
25164         utimens: introduce fdutimens
25165         * lib/utimens.h (fdutimens): New prototype.
25166         * lib/utimens.c (gl_futimens): Move guts...
25167         (fdutimens): ...to new interface.
25168         * tests/test-utimens.c (do_fdutimens): Use it.
25169
25170         utimens: add UTIME_NOW and UTIME_OMIT support
25171         * lib/utimens.c (validate_timespec, update_timespec): New helper
25172         functions.
25173         (gl_futimens, lutimens): Use them.
25174         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
25175         stdbool, sys_stat.
25176         (Link): Mention resulting library dependency.
25177         * modules/utimecmp (Link): Likewise.
25178         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
25179         (Makefile.am): Pick up library dependency.
25180         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
25181         definition.
25182         * tests/test-sys_stat.c: Test the definitions.
25183         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
25184         * NEWS: Document library dependency.
25185
25186         utimecmp: support symlink timestamps
25187         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
25188         hashing when possible.  Use pathconf when available.
25189         (SYSCALL_RESOLUTION): Recognize tighter resolution.
25190         * modules/utimecmp (Depends-on): Add lstat.
25191
25192         utimens: add lutimens interface
25193         * lib/utimens.c (lutimens): New function.
25194         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
25195         * lib/utimens.h (lutimens): Declare new interface.
25196         * tests/test-utimens.c (main): Enhance test.
25197         * tests/test-lutimens.h (test_lutimens): New file.
25198         * modules/utimens-tests (Files): Distribute it.
25199         (Depends-on): Add symlink.
25200         (configure.ac): Check for usleep.
25201
25202         utimens: validate futimens usage
25203         * lib/utimens.c (gl_futimens): Require valid fd up front, using
25204         fewer syscalls on failure later on.  Avoid compiler warning on
25205         mingw.
25206         * modules/utimens (Depends-on): Add dup2.
25207
25208         utimens: add test
25209         * modules/utimens-tests: New test.
25210         * tests/test-utimens.h: New file.
25211         * tests/test-futimens.h: Likewise.
25212         * tests/test-utimens.c: Likewise.
25213
25214         doc: mention timestamp portability issues
25215         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
25216         instead.
25217         * doc/posix-functions/utime.texi (utime): Likewise.
25218         * doc/posix-functions/utimes.texi (utimes): Likewise.
25219         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
25220         instead.
25221         * doc/posix-functions/futimens.texi (futimens): Mention utimens
25222         module.
25223         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
25224         Mention weakness with symlink timestamps.
25225         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
25226         to utimensat/futimens instead.
25227         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
25228
25229         test-dup2: enhance test
25230         * tests/test-dup2.c (main): Also check AT_FDCWD.
25231
25232         test-stat-time: avoid more spurious failures
25233         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
25234         xfs; and avoid race if the two timestamps cross quantization edge.
25235
25236         relocatable: prefer 'file system' over 'filesystem'
25237         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
25238         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
25239         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
25240         * doc/relocatable.texi (Enabling Relocatability): Likewise.
25241         * lib/relocatable.c (compute_curr_prefix): Likewise.
25242
25243 2009-10-10  Jim Meyering  <meyering@redhat.com>
25244
25245         stat-time-tests: check for the usleep function
25246         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
25247
25248 2009-10-10  Bruno Haible  <bruno@clisp.org>
25249
25250         * modules/xnanosleep: Put the Link section after the Include section.
25251
25252 2009-10-09  Eric Blake  <ebb9@byu.net>
25253
25254         dup2: work around FreeBSD 6.1 bug
25255         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
25256         * doc/posix-functions/dup2.texi (dup2): Document it.
25257         Reported by Nelson H. F. Beebe and Jim Meyering.
25258
25259         test-stat-time: port to buggy NFS clients
25260         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
25261         (test_ctime): Also skip test if mtime and ctime are skewed.
25262
25263         maint: prefer 'file system' over 'filesystem'
25264         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25265         * doc/posix-functions/lstat.texi (lstat): Likewise.
25266         * lib/file-has-acl.c (file_has_acl): Likewise.
25267         * lib/fwriteerror.c [TEST]: Likewise.
25268         * tests/test-areadlink.h (test_areadlink): Likewise.
25269         * tests/test-areadlinkat-with-size.c (main): Likewise.
25270         * tests/test-areadlinkat.c (main): Likewise.
25271         * tests/test-canonicalize-lgpl.c (main): Likewise.
25272         * tests/test-canonicalize.c (main): Likewise.
25273         * tests/test-fstatat.c (main): Likewise.
25274         * tests/test-linkat.c (main): Likewise.
25275         * tests/test-lstat.h (test_lstat_func): Likewise.
25276         * tests/test-mkdir.h (test_mkdir): Likewise.
25277         * tests/test-readlink.h (test_readlink): Likewise.
25278         * tests/test-remove.c (main): Likewise.
25279         * tests/test-rename.h (test_rename): Likewise.
25280         * tests/test-renameat.c (main): Likewise.
25281         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25282         * tests/test-symlink.h (test_symlink): Likewise.
25283         * tests/test-symlinkat.c (main): Likewise.
25284         * tests/test-unlink.h (test_unlink_func): Likewise.
25285         * tests/test-unlinkat.c (main): Likewise.
25286
25287         maint: make realtime library usage explicit
25288         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
25289         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
25290         * modules/settime (Link): Likewise.
25291         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
25292
25293         test-stat-time: speed up execution
25294         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
25295         warning on mingw.
25296         (nap): New helper function.
25297         (prepare_test): Use it to reduce sleep time.
25298         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
25299         execution.
25300         * modules/stat-time-tests (configure.ac): Check for usleep.
25301
25302 2009-10-09  Jim Meyering  <meyering@redhat.com>
25303
25304         selinux-h: always use getfilecon wrappers
25305         * lib/getfilecon.c: New file.
25306         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
25307         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
25308         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
25309         (fgetfilecon): Provide a stub.
25310         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
25311         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
25312         file unconditionally.
25313         When <selinux/selinux.h> is found, arrange to use wrappers.
25314         * modules/selinux-h (Files): Add getfilecon.c.
25315         (Makefile.am): Substitute include-next-related bits
25316         into the now-always-generated selinux/selinux.h file.
25317         * doc/glibc-functions/lgetfilecon.texi: New file.
25318         * doc/glibc-functions/fgetfilecon.texi: New file.
25319         * doc/glibc-functions/getfilecon.texi: New file.
25320         * doc/glibc-functions/getfilecon-desc.texi: New file.
25321         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
25322         which to pull in the new files.
25323         * MODULES.html.sh (Misc): Add selinux-h.
25324
25325 2009-10-08  Jim Meyering  <meyering@redhat.com>
25326
25327         unistd: fix comment typo
25328         * lib/unistd.in.h (euidaccess): Fix a comment typo.
25329
25330 2009-10-08  Eric Blake  <ebb9@byu.net>
25331
25332         areadlink: use SIZE_MAX consistently
25333         * modules/areadlink (Depends-on): Add stdint.
25334         * modules/areadlink-with-size (Depends-on): Likewise.
25335         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
25336         gives NULL; drop sys/types, since unistd gives size_t; and add
25337         stdint for SIZE_MAX.
25338         (SIZE_MAX): Rely on headers.
25339         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
25340         and add stdint.
25341         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
25342         (SIZE_MAX): Likewise.
25343         (INITIAL_BUF_SIZE): Turn into enum.
25344         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
25345
25346 2009-10-08  Jim Meyering  <meyering@redhat.com>
25347
25348         areadlinkat: avoid compilation failure
25349         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
25350         Fix typo in comment.
25351
25352 2009-10-07  Eric Blake  <ebb9@byu.net>
25353
25354         areadlinkat-with-size: new module
25355         * modules/areadlinkat-with-size: New module.
25356         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
25357         * lib/areadlink.h (areadlinkat): Declare it.
25358         * MODULES.html.sh (File system functions): Mention it.
25359         * modules/areadlinkat-with-size-tests: New test.
25360         * tests/test-areadlinkat-with-size.c: New file.
25361
25362         xreadlinkat: new module
25363         * modules/xreadlinkat: New module.
25364         * lib/xreadlinkat.c (xreadlinkat): New file.
25365         * lib/xreadlink.h (xreadlinkat): Declare it.
25366         * MODULES.html.sh (File system functions): Mention it.
25367
25368         areadlinkat: new module
25369         * lib/at-func.c (FUNC_FAIL): New define.
25370         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
25371         * modules/areadlinkat: New module.
25372         * lib/linkat.c (areadlinkat): Move...
25373         * lib/areadlinkat.c (areadlinkat): ...to new file.
25374         * lib/areadlink.h (areadlinkat): Declare it.
25375         * modules/linkat (Depends-on): Add areadlinkat.
25376         * MODULES.html.sh (File system functions): Mention it.
25377         * modules/areadlinkat-tests: New test.
25378         * tests/test-areadlinkat.c: New file.
25379
25380         areadlink, areadlink-with-size: add tests
25381         * modules/areadlink-tests: New test.
25382         * modules/areadlink-with-size-tests: Likewise.
25383         * tests/test-areadlink.h: New file.
25384         * tests/test-areadlink.c: Likewise.
25385         * tests/test-areadlink-with-size.c: Likewise.
25386
25387         maint: minor cleanups
25388         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
25389         _UNUSED_PARAMETER_ instead.
25390         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
25391         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
25392         * modules/linkat-tests (Files): Distribute test-link.h.
25393
25394         openat, utimens: whitespace cleanup
25395         * lib/openat.c: Prefer space throughout, rather than mix of 8
25396         spaces vs. tabs.
25397         * lib/at-func.c: Likewise.
25398         * lib/utimens.c: Likewise.
25399
25400         openat: avoid using wrong fd
25401         * lib/openat.c (openat_permissive): Reject user's fd if saving the
25402         working directory chooses same fd.
25403         * lib/at-func.c (AT_FUNC_NAME): Likewise.
25404
25405         mkdir, mkdirat: fix cygwin 1.5.x bug
25406         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
25407         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
25408         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
25409         bug.
25410         (gl_PREREQ_MKDIR): Delete unused macro.
25411         * modules/mkdir (Files): Track file rename.
25412         (configure.ac): Update macro name.
25413         * modules/openat (Depends-on): Add mkdir.
25414         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
25415
25416         mkdir, mkdirat: add tests
25417         * modules/mkdir-tests: New test.
25418         * tests/test-mkdir.h: New file.
25419         * tests/test-mkdir.c: Likewise.
25420         * tests/test-mkdirat.c: Likewise.
25421         * modules/openat-tests (Files): Add new files.
25422         (Makefile.am): Run new test.
25423
25424 2009-10-06  Eric Blake  <ebb9@byu.net>
25425
25426         doc: tweak *at function documentation
25427         * doc/posix-functions/faccessat.texi (faccessat): Mention
25428         known issue with replacement.
25429         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
25430         * doc/posix-functions/linkat.texi (linkat): Likewise.
25431         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
25432         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
25433         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25434         * doc/posix-functions/renameat.texi (renameat): Likewise.
25435         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
25436
25437         openat: fix GNU/Hurd bug in unlinkat
25438         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
25439         broken.
25440         * doc/posix-functions/unlink.texi (unlink): Document this.
25441         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
25442
25443         fdopendir: fix GNU/Hurd bug
25444         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
25445         allowing non-directory fds.
25446         * lib/fdopendir.c (rpl_fdopendir): Work around it.
25447         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
25448         * modules/dirent (Makefile.am): Substitute it.
25449         * lib/dirent.in.h (fdopendir): Declare replacement.
25450         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
25451         * tests/test-fdopendir.c (main): Test something other than
25452         /dev/null, since on Hurd that behaves like a directory.
25453
25454         test-symlink: port to GNU/Hurd
25455         * tests/test-symlink.h (test_symlink): Relax expected errno.
25456
25457         doc: tweak more cygwin information
25458         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
25459         now compatible with glibc.
25460         * doc/posix-functions/getopt.texi (getopt): Likewise.
25461
25462         getopt-gnu: add another test
25463         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
25464         guarantee behavior relied on by m4.
25465         * tests/test-getopt.c (main): Use it.
25466         * modules/getopt-posix-tests (Depends-on): Add setenv.
25467         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
25468
25469         getopt: fix compilation on darwin
25470         * lib/getopt.in.h (includes): Leave breadcrumbs during system
25471         include.
25472         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
25473         Reported by Ludovic Courtès.
25474
25475 2009-10-06  Bruno Haible  <bruno@clisp.org>
25476
25477         * modules/size_max (Description): Discourage its use.
25478         Reported by Simon Josefsson.
25479
25480 2009-10-06  Jim Meyering  <meyering@redhat.com>
25481
25482         linkat: avoid compilation failure
25483         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
25484
25485 2009-10-05  Eric Blake  <ebb9@byu.net>
25486
25487         linkat: support Linux 2.6.17
25488         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
25489         linkat on Linux, but allow cache variable override.
25490         * lib/linkat.c (rpl_linkat): Define override.
25491         * modules/linkat (Depends-on): Add symlinkat.
25492         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
25493         * modules/unistd (Makefile.am): Substitute it.
25494         * lib/unistd.in.h (linkat): Declare replacement.
25495         Reported by Pádraig Brady.
25496
25497         quotearg: port test to systems with C.UTF-8 locale
25498         * tests/test-quotearg.c (struct result_strings): Add another
25499         member, differentiating between C.ASCII and C.UTF-8 handling.
25500         (compare_strings): Add parameter.
25501         (main): Adjust all callers.
25502
25503         getopt: avoid clash with FreeBSD _getopt_internal
25504         * lib/getopt.in.h (_getopt_internal): Override the name.
25505         * lib/getopt_int.h (includes): Pick up any overrides.
25506         Reported by Reuben Thomas.
25507
25508         hash: allow C89 compilation
25509         * lib/hash.c (check_tuning): Move declaration before statement.
25510         Reported by Reuben Thomas.
25511
25512 2009-10-05  Karl Berry  <karl@gnu.org>
25513
25514         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
25515
25516 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
25517             Bruno Haible  <bruno@clisp.org>
25518
25519         * lib/uname.c (uname): Use a table-driven algorithm to compute
25520         Windows NT versions.
25521
25522 2009-10-04  Bruno Haible  <bruno@clisp.org>
25523
25524         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
25525         program_invocation_short_name.
25526         * modules/progname (configure.ac): Test for presence of
25527         program_invocation_short_name.
25528         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
25529
25530 2009-10-04  Bruno Haible  <bruno@clisp.org>
25531
25532         * lib/progname.c (set_program_name): Fix comment.
25533         Reported by Jim Meyering.
25534
25535 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25536             Bruno Haible  <bruno@clisp.org>
25537
25538         * lib/uname.c: Include <string.h>.
25539         (uname): Do only one call to GetVersionEx in the common case.
25540
25541 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
25542             Bruno Haible  <bruno@clisp.org>
25543
25544         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
25545         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
25546         (uname): Add support for Windows CE and various non-x86 CPU types.
25547
25548 2009-10-03  Bruno Haible  <bruno@clisp.org>
25549
25550         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
25551         invocation to tests/configure.ac.
25552         Reported by Ian Beckwith <ianb@erislabs.net>.
25553
25554 2009-10-02  Eric Blake  <ebb9@byu.net>
25555
25556         fchdir: avoid compiler warning
25557         * lib/fchdir.c (canonicalize_file_name)
25558         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
25559
25560         test-open: support mingw errno values
25561         * tests/test-open.h (test_open): Relax test.
25562         * tests/test-fopen.h (test_fopen): Likewise.
25563         * tests/test-openat-safer.c (main): Likewise.
25564
25565         open: fix opening directory on mingw
25566         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
25567
25568         test-open: on GNU/Hurd, /dev/null is a directory
25569         * tests/test-fopen.h (main): Rename...
25570         (test_fopen): ...to this.  Use a guaranteed non-directory when
25571         confirming open behavior on trailing slash.
25572         * tests/test-openat-safer.c (main): Likewise.
25573         * tests/test-open.h (main): Likewise....
25574         (test_open): ...to this.
25575         * tests/test-fopen.c (main): Adjust caller.
25576         * tests/test-fopen-safer.c (main): Likewise.
25577         * tests/test-open.c (main): Likewise.
25578         * tests/test-fcntl-safer.c (main): Likewise.
25579         Reported by Samuel Thibault.
25580
25581         rename, fchdir: don't ignore chdir failure
25582         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
25583         * lib/rename.c (rpl_rename) [W32]: Likewise.
25584         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
25585         an empty destination directory if source cannot be renamed,
25586         although there is still possibility for failure.
25587         * doc/posix-functions/rename.texi (rename): Document the race.
25588         Reported by Jim Meyering.
25589
25590         maint: cleanup whitespace in recent commits
25591         * lib/rename.c (rpl_rename): Remove tabs.
25592         * tests/test-link.h (test_link): Likewise.
25593         * lib/fchdir.c (get_name): Likewise.
25594         Reported by Jim Meyering.
25595
25596 2009-10-02  Ben Pfaff  <blp@gnu.org>
25597
25598         relocatable-prog-wrapper: Add missing dependency on
25599         double-slash-root.
25600         * modules/relocatable-prog-wrapper: Add dependency.
25601         Reported by Ian Beckwith <ianb@erislabs.net>.
25602
25603 2009-10-02  Eric Blake  <ebb9@byu.net>
25604
25605         renameat: fix Solaris bugs
25606         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
25607         needed fixing.
25608         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
25609         * modules/stdio (Makefile.am): Substitute it.
25610         * lib/stdio.in.h (renameat): Declare replacement.
25611         * lib/renameat.c (rpl_renameat): Implement fix.
25612
25613         renameat: new module
25614         * modules/renameat: New file.
25615         * lib/renameat.c (renameat): Likewise.
25616         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
25617         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
25618         * modules/stdio (Makefile.am): Substitute them.
25619         * lib/stdio.in.h (renameat): Declare it.
25620         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25621         * doc/posix-functions/renameat.texi (renameat): Likewise.
25622         * modules/renameat-tests: New test.
25623         * tests/test-renameat.c: Likewise.
25624
25625         rename: fix mingw bugs
25626         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
25627         directory overwrite bugs.
25628
25629         rename: fix another cygwin 1.5 bug
25630         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
25631         checks.
25632         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
25633         unnecessary cygwin workarounds.  Also work around bug with moving
25634         full directory onto an empty one.
25635         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
25636
25637         rename-dest-slash: merge into rename module
25638         * modules/rename-dest-slash (Status): Mark obsolete.
25639         (Depends-on): Add rename.
25640         (Files): Let rename do it all.
25641         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
25642         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
25643         * m4/rename-dest-slash.m4: ...so this file can be deleted.
25644         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
25645         * lib/rename.c (rpl_rename): Update comments.
25646
25647         rename: fix cygwin 1.5.x bugs
25648         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
25649         * lib/rename.c (rpl_rename): Work around them.
25650         * modules/rename (Depends-on): Add same-inode.
25651
25652         rename: fix Solaris 10 bug
25653         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25654         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
25655         was the only bug.
25656
25657         rename: fix Solaris 9 bug
25658         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
25659         on non-directory.  Avoid calling exit.
25660         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
25661         strdup.
25662         * modules/rename-tests (Depends-on): Drop lstat.
25663         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
25664         (gl_PREREQ_RENAME): Delete unused macro.
25665
25666         rename-dest-slash: fix NetBSD bug
25667         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
25668         links.
25669         * modules/rename-dest-slash (Depends-on): Add same-inode.
25670
25671         rename-tests: new test, exposes several platform bugs
25672         * modules/rename-tests: New file.
25673         * tests/test-rename.h: Likewise.
25674         * tests/test-rename.c: Likewise.
25675         * doc/posix-functions/rename.texi (rename): Improve documentation,
25676         including bugs that will eventually be fixed in gnulib.
25677
25678 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
25679
25680         * lib/uname.c: Include <stdlib.h>
25681         (uname): Assume version info is available.
25682
25683 2009-10-02  Jim Meyering  <meyering@redhat.com>
25684
25685         gnu-web-doc-update: correct --help output
25686         * build-aux/gnu-web-doc-update: Make --help output relevant.
25687
25688         gnu-web-doc-update: add standard options
25689         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
25690
25691         gnu-web-doc-update: New module.
25692         Use this script to automatically update the on-line web documentation
25693         for your GNU project at http://www.gnu.org/software/$pkg/manual/
25694         * modules/gnu-web-doc-update: New file, from coreutils.
25695         * build-aux/gnu-web-doc-update: New script.
25696
25697 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
25698
25699         link: LoadLibrary is not needed.
25700         * lib/link.c: Use GetModuleHandle.
25701
25702 2009-10-01  Eric Blake  <ebb9@byu.net>
25703
25704         getopt: bump serial number
25705         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
25706         change.
25707
25708         tests: tighten link, rmdir, and remove tests
25709         * tests/test-link.h (includes): No need to use <config.h> here.
25710         Clean up if directory hard link was created, otherwise test for
25711         trailing '.'.
25712         * tests/test-linkat.c (main): Simplify.
25713         * tests/test-remove.c (main): Enhance test for trailing '.'.
25714         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25715
25716 2009-10-01  Jim Meyering  <meyering@redhat.com>
25717
25718         maint.mk: requiring "make major" was annoying, for a "minor" release.
25719         What is intended is "stable", to contrast with alpha and beta,
25720         so require "make stable", not "make major".
25721         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
25722         (get_tool_versions): Likewise.
25723         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
25724
25725 2009-09-30  Ben Pfaff  <blp@gnu.org>
25726
25727         Fix broken build of replacement for Windows tmpfile().
25728         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
25729         flags argument added along with the 'mkostemp' module.
25730
25731 2009-09-28  Bruno Haible  <bruno@clisp.org>
25732
25733         Avoid identifier clash with POSIX function 'remove' defined as a macro.
25734         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
25735         to 'remove_elt'.
25736         (gl_list_remove): Update.
25737         * lib/gl_list.c (gl_list_remove): Update.
25738         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
25739         to 'remove_elt'.
25740         (gl_oset_remove): Update.
25741         * lib/gl_list.c (gl_oset_remove): Update.
25742         Reported by Eric Blake.
25743
25744 2009-09-28  Eric Blake  <ebb9@byu.net>
25745
25746         doc: mention yet more cygwin 1.7 status
25747         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
25748         cygwin.
25749         * doc/glibc-functions/execvpe.texi (execvpe): New file.
25750         * doc/gnulib.texi (Glibc unistd.h): Mention it.
25751
25752         argp: fix test failure
25753         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
25754         that are not upper-case.  Pass correct range to tolower.
25755
25756 2009-09-27  Jim Meyering  <meyering@redhat.com>
25757
25758         test-yesno: work around sparc-dash here-document infelicity
25759         Without this change, the literal \177 byte in a here document
25760         would make dash 0.5.5.1-3 access uninitialized memory.
25761         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
25762         Instead, use a marker, "@", and filter through tr to create the desired
25763         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
25764
25765 2009-09-27  Bruno Haible  <bruno@clisp.org>
25766
25767         Disable untested support for new flavours of ACLs on AIX.
25768         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
25769         progress.
25770         * lib/set-mode-acl.c (qset_acl): Likewise.
25771
25772 2008-12-07  Bruno Haible  <bruno@clisp.org>
25773
25774         Add support for new flavours of ACLs on AIX. (Untested.)
25775         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
25776         (file_has_acl): Add support for newer AIX.
25777         * lib/set-mode-acl.c (qset_acl): Likewise.
25778         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
25779         Rainer Tammer <tammer@tammer.net>.
25780
25781 2009-09-26  Eric Blake  <ebb9@byu.net>
25782
25783         argp: fix compilation of getopt
25784         * lib/getopt.in.h (includes): Use different guard than glibc.
25785         Reported by Sergey Poznyakoff.
25786
25787         doc: mention more cygwin 1.7 status
25788         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
25789         bug.
25790         * doc/posix-functions/execl.texi (execl): Likewise.
25791         * doc/posix-functions/execle.texi (execle): Likewise.
25792         * doc/posix-functions/execlp.texi (execlp): Likewise.
25793         * doc/posix-functions/execv.texi (execv): Likewise.
25794         * doc/posix-functions/execve.texi (execve): Likewise.
25795         * doc/posix-functions/execvp.texi (execvp): Likewise.
25796         * doc/glibc-functions/canonicalize_file_name.texi
25797         (canonicalize_file_name): Cygwin 1.7 now provides this.
25798         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
25799         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
25800         on AT_SYMLINK_NOFOLLOW.
25801
25802 2009-09-24  Eric Blake  <ebb9@byu.net>
25803
25804         test-linkat: make test more robust
25805         * tests/test-linkat.c (main): Avoid collision with EEXIST.
25806
25807         getopt: fix inclusion guards for cygwin
25808         * modules/getopt-posix (Depends-on): Add include-next.
25809         (Makefile.am): Substitute more items in replacement header.
25810         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
25811         <getopt.h>.
25812         * lib/getopt.in.h (includes): Use split inclusion guard, and
25813         prefer <getopt.h> over include <unistd.h> when one is present.
25814         (option): Also override name of 'struct option'.
25815
25816         same-inode: revert prior change; it is not yet ready
25817         * NEWS: Undo mention of this change.
25818         * lib/same-inode.h (same-inode.h): Undo tri-state change.
25819         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
25820         * lib/cycle-check.c (cycle_check): Likewise.
25821         * lib/same.c (same_name): Likewise.
25822         * lib/at-func2.c (at_func2): Likewise.
25823
25824 2009-09-23  Eric Blake  <ebb9@byu.net>
25825
25826         linkat: new module
25827         * modules/linkat: New file.
25828         * lib/at-func2.c (at_func2): Likewise.
25829         * lib/linkat.c (linkat): Likewise.
25830         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
25831         * lib/openat-priv.h (at_func2): Add declaration.
25832         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
25833         * modules/unistd (Makefile.am): Substitute them.
25834         * lib/unistd.in.h (linkat): Declare it.
25835         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
25836         * doc/posix-functions/linkat.texi (linkat): Likewise.
25837         * doc/posix-functions/link.texi (link): Tweak wording.
25838         * tests/test-link.c (main): Move guts...
25839         * tests/test-link.h (test_link): ...into new file.
25840         * modules/linkat-tests: New test.
25841         * tests/test-linkat.c: Likewise.
25842         * modules/link-tests (Files): Ship new file.
25843         (Depends-on): Add stdbool.
25844
25845         dirname: add library-safe mdir_name
25846         * lib/dirname.h (mdir_name): New prototype.
25847         * lib/dirname.c (dir_name): Move guts...
25848         (mdir_name): ...to new function that avoids xalloc_die.
25849
25850         fchdir: another mingw fix
25851         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
25852         * lib/fchdir.c (get_name): New helper method; skips canonicalize
25853         on mingw (where it has not yet been ported), and make it optional
25854         elsewhere.
25855         (_gl_register_fd): Use it.
25856
25857         same-inode: make SAME_INODE tri-state, to port to mingw
25858         * NEWS: Mention this change.
25859         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
25860         st_ino always being 0.
25861         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
25862         * lib/cycle-check.c (cycle_check): Likewise.
25863         * lib/same.c (same_name): Likewise.
25864
25865         lstat: avoid mingw compilation error
25866         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
25867         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
25868         lstat ourselves.
25869         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
25870         was adequate.
25871         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
25872         the checks for lstat.
25873         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
25874
25875         link: fix test failure on Solaris 9
25876         * lib/link.c (rpl_link): Don't assume link will catch bogus
25877         trailing slash on source.
25878
25879         test-symlinkat: enhance test
25880         * tests/test-readlink.c (main): Move guts...
25881         * tests/test-readlink.h (test_readlink): ...into new file.
25882         * tests/test-symlink.c (main): Move guts...
25883         * tests/test-symlink.h (test_symlink): ...into new file.
25884         * tests/test-symlinkat.c (main): Use new files for further
25885         coverage.
25886         (do_symlink, do_readlink): New helper functions.
25887         * modules/symlink-tests (Files): Ship new file.
25888         (Depends-on): Add stdbool.
25889         * modules/readlink-tests (Files): Ship new file.
25890         (Depends-on): Add stdbool.
25891         * modules/symlinkat-tests (Files): Use new files.
25892
25893 2009-09-23  Eric Blake  <ebb9@byu.net>
25894
25895         readlink: document portability issue with symlink length
25896         * doc/posix-functions/lstat.texi (lstat): Mention that some file
25897         systems have bogus st_size on symlinks, and mention the
25898         areadlink-with-size module.
25899         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
25900         * doc/posix-functions/readlink.texi (readlink): Mention the
25901         areadlink module, and ERANGE failure.
25902         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25903         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
25904
25905         readlink: fix Solaris 9 bug with trailing slash
25906         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
25907         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
25908         * doc/posix-functions/readlink.texi (readlink): Document this.
25909         * modules/readlink-tests: New test.
25910         * tests/test-readlink.c: Likewise.
25911
25912         readlink: fix cygwin 1.5.x bug with return type
25913         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
25914         * lib/unistd.in.h (readlink): Use ssize_t.
25915         * lib/readlink.c (readlink): Likewise.
25916         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
25917         * modules/unistd (Makefile.am): Substitute it.
25918         * lib/unistd.in.h (readlink): Declare replacement.
25919         * doc/posix-functions/readlink.texi (readlink): Document this.
25920
25921         symlink: use throughout gnulib
25922         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
25923         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
25924         symlink is not used.
25925         * modules/symlinkat (Depends-on): Add symlink.
25926         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
25927         * modules/canonicalize-tests (Depends-on): Likewise.
25928         * modules/lstat-tests (Depends-on): Likewise.
25929         * modules/openat-tests (Depends-on): Likewise.
25930         * modules/remove-tests (Depends-on): Likewise.
25931         * modules/rmdir-tests (Depends-on): Likewise.
25932         * modules/unlink-tests (Depends-on): Likewise.
25933         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
25934         * tests/test-canonicalize.c (symlink): Likewise.
25935         * tests/test-fstatat.c (symlink): Likewise.
25936         * tests/test-lstat.c (symlink): Likewise.
25937         * tests/test-remove.c (symlink): Likewise.
25938         * tests/test-rmdir.c (symlink): Likewise.
25939         * tests/test-unlink.c (symlink): Likewise.
25940         * tests/test-unlinkat.c (symlink): Likewise.
25941
25942         symlink: new module, for Solaris 9 bug
25943         * modules/symlink: New file.
25944         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
25945         * lib/symlink.c: Likewise.
25946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
25947         * modules/unistd (Makefile.am): Substitute them.
25948         * lib/unistd.in.h (symlink): Declare replacement.
25949         * MODULES.html.sh (File system functions): Mention it.
25950         * doc/posix-functions/symlink.texi (symlink): Likewise.
25951         * modules/symlink-tests: New test.
25952         * tests/test-symlink.c: Likewise.
25953
25954 2009-09-23  Bruno Haible  <bruno@clisp.org>
25955
25956         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
25957         when needed.
25958         Test case: gnulib-tool --import --with-tests atexit inttypes.
25959         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
25960
25961 2009-09-23  Bruno Haible  <bruno@clisp.org>
25962
25963         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
25964         subcommand, not in a subshell.
25965
25966 2009-09-22  Eric Blake  <ebb9@byu.net>
25967
25968         unistd: sort replacement declarations
25969         * lib/unistd.in.h: Sort declarations.
25970
25971         open, openat: minor optimization
25972         * lib/open.c (open): If open succeeded, len is non-zero.
25973         * lib/openat.c (rpl_openat): Likewise.
25974
25975         link-follow: ensure correct result
25976         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
25977         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
25978         distinguish between possible failures.
25979
25980 2009-09-21  Eric Blake  <ebb9@byu.net>
25981
25982         fts: avoid compiler warning
25983         * lib/fts.c (dirent_inode_sort_may_be_useful)
25984         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
25985
25986 2009-09-19  Bruno Haible  <bruno@clisp.org>
25987
25988         * lib/progreloc.c (canonicalize_file_name): New declaration.
25989
25990 2009-09-19  Eric Blake  <ebb9@byu.net>
25991
25992         link: fix quoting
25993         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
25994
25995         openat: fix openat bugs on Solaris 9
25996         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
25997         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
25998         * modules/openat (Depends-on): Add open.
25999         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
26000         * modules/fcntl-h (Makefile.am): Substitute it.
26001         * lib/fcntl.in.h (openat): Declare replacement.
26002         * doc/posix-functions/openat.texi (openat): Document this.
26003
26004         openat: move fstatat and unlinkat into correct files
26005         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
26006         compiled.
26007         * lib/openat.c (fstatat, unlinkat): Move...
26008         * lib/fstatat.c (fstatat): ...into correct files.
26009         * lib/unlinkat.c (unlinkat): Likewise.
26010
26011         openat: fix unlinkat bugs on Solaris 9
26012         * lib/unlinkat.c (unlinkat): New file.
26013         * modules/openat (Depends-on): Add unlink.
26014         (Files): Distribute it.
26015         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
26016         trailing slash behavior is broken.
26017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26018         * modules/unistd (Makefile.am): Substitute it.
26019         * lib/unistd.in.h (unlinkat): Declare replacement.
26020         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
26021
26022         openat: fix fstatat bugs on Solaris 9
26023         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
26024         stat.
26025         * doc/posix-functions/fstatat.texi (fstatat): Document this.
26026
26027         test-unlinkat: enhance test, to expose Solaris 9 bug
26028         * tests/test-unlink.c (main): Factor guts...
26029         * tests/test-unlink.h (test_rmdir_func): ...into new file.
26030         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
26031         * tests/test-rmdir.c (main): Adjust caller.
26032         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
26033         (unlinker): New helper function.
26034         (rmdirat): Enhance check.
26035         * modules/rmdir-tests (Depends-on): Add stdbool.
26036         * modules/unlink-tests (Depends-on): Likewise.
26037         (Files): Add test-unlink.h.
26038         * modules/openat-tests (Files): Likewise.
26039         (Depends-on): Add unlinkdir.
26040
26041         test-fstatat: new test, to expose Solaris 9 bugs
26042         * tests/test-stat.c (main): Factor guts...
26043         * tests/test-stat.h (test_stat_func): ...into new file.
26044         * tests/test-lstat.c (main): Factor guts...
26045         * tests/test-lstat.h (test_lstat_func): ...into new file.
26046         * tests/test-fstatat.c: New file.
26047         * modules/stat-tests (Files): Add test-stat.h.
26048         * modules/lstat-tests (Files): Add test-lstat.h.
26049         (Depends-on): Add stdbool.
26050         * modules/openat-tests (Depends-on): Add pathmax.
26051         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
26052         (Makefile.am): Run new test.
26053
26054         remove: new module, for mingw and Solaris 9 bugs
26055         * modules/remove: New file.
26056         * lib/remove.c: Likewise.
26057         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
26058         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
26059         * modules/stdio (Makefile.am): Use them.
26060         * lib/stdio.in.h (remove): Declare replacement.
26061         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26062         * doc/posix-functions/remove.texi (remove): Likewise.
26063         * modules/remove-tests: New test.
26064         * tests/test-remove.c: Likewise.
26065
26066         unlink: new module, for Solaris 9 bug
26067         * modules/unlink: New file.
26068         * lib/unlink.c: Likewise.
26069         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
26070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26071         * modules/unistd (Makefile.am): Use them.
26072         * lib/unistd.in.h (stat): Declare replacement.
26073         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26074         * doc/posix-functions/unlink.texi (unlink): Likewise.
26075         * modules/unlink-tests: New test.
26076         * tests/test-unlink.c: Likewise.
26077
26078         lstat: fix Solaris 9 bug
26079         * lib/lstat.c (lstat): Also check for trailing slash on
26080         non-symlink, non-directories.  Use stat module to simplify logic.
26081         * doc/posix-functions/lstat.texi (lstat): Document it.
26082         * modules/lstat-tests (Depends-on): Add errno, same-inode.
26083         (configure.ac): Check for symlink.
26084         * tests/test-lstat.c (main): Add more tests.
26085
26086         stat: add as dependency to other modules
26087         * modules/chown (Depends-on): Add stat.
26088         * modules/euidaccess (Depends-on): Likewise.
26089         * modules/fchdir (Depends-on): Likewise.
26090         * modules/isdir (Depends-on): Likewise.
26091         * modules/link (Depends-on): Likewise.
26092         * modules/lstat (Depends-on): Likewise.
26093         * modules/mkdir-p (Depends-on): Likewise.
26094         * modules/modechange (Depends-on): Likewise.
26095         * modules/open (Depends-on): Likewise.
26096         * modules/readlink (Depends-on): Likewise.
26097         * modules/same (Depends-on): Likewise.
26098
26099         stat: fix Solaris 9 bug
26100         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
26101         slash.
26102         * lib/stat.c (rpl_stat): Work around it.
26103         * doc/posix-functions/stat.texi (stat): Update documentation.
26104
26105         stat: new module, for mingw bug
26106         * modules/stat: New file.
26107         * lib/stat.c: Likewise.
26108         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26109         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26110         * modules/sys_stat (Makefile.am): Use them.
26111         * lib/sys_stat.in.h (stat): Declare replacement.
26112         * lib/openat.c (fstatat): Deal with lstat and stat being function
26113         macros.
26114         * modules/openat (Depends-on): Add inline.
26115         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
26116         * doc/posix-functions/stat.texi (stat): Likewise.
26117         * modules/stat-tests: New test.
26118         * tests/test-stat.c: Likewise.
26119
26120 2009-09-19  Jim Meyering  <meyering@redhat.com>
26121
26122         syntax-check: detect unnecessary inclusion of canonicalize.h
26123         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
26124
26125 2009-09-19  Eric Blake  <ebb9@byu.net>
26126
26127         canonicalize-lgpl: adjust clients to use correct header
26128         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
26129         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
26130         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
26131         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
26132         * lib/progreloc.c (includes): Likewise.
26133
26134 2009-09-19  Jim Meyering  <meyering@redhat.com>
26135
26136         test-posixtm.c: correct a comment
26137         * tests/test-posixtm.c: Correct first-line comment.
26138         Spotted by Eric Blake.
26139
26140 2009-09-16  Jim Meyering  <meyering@redhat.com>
26141
26142         posixtm-tests: make T const-correct; add a test case
26143         * tests/test-posixtm.c (T): Declare const.
26144         Add a test for -(2^31+1).
26145         Remove useless can-succeed-only-in-2002 test.
26146
26147         posixtm-tests: adjust the sole failing test
26148         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
26149         expected output matches what mktime now produces.  Cross-checked via
26150         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
26151
26152         posixtm: move #ifdef'd tests into a new module
26153         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
26154         * tests/test-posixtm.c: ... this new file.
26155         * modules/posixtm-tests: New module.
26156
26157 2009-09-19  Eric Blake  <ebb9@byu.net>
26158
26159         openat: simplify use of at-func.c
26160         * lib/at-func.c (includes): Include prerequisites here, to
26161         simplify requirements on client files.
26162         * lib/openat-priv.h: Add double-inclusion guard.
26163         * lib/faccessat.c (includes): Simplify.
26164         * lib/fchmodat.c (includes): Likewise.
26165         * lib/fchownat.c (includes): Likewise.
26166         * lib/mkdirat.c (includes): Likewise.
26167         * lib/mkfifoat.c (includes): Likewise.
26168         * lib/symlinkat.c (includes): Likewise.
26169
26170         openat: allow return of fd 0
26171         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
26172         * modules/save-cwd (Depends-on): Replace fcntl-safer with
26173         unistd-safer.
26174         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
26175         <fcntl.h>; this module does not leak fds.
26176         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
26177         must be allowed to return 0, leaving openat_safer to add the
26178         safety.
26179         (openat_permissive): Avoid writing to just-opened fd 2 if
26180         restoring the current directory fails.
26181         * lib/openat-die.c (openat_restore_fail): Add comment.
26182         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
26183         (save_cwd): Guarantee safe fd, but without use of open_safer.
26184         * tests/test-openat.c: New test.
26185         * modules/openat-tests (Files, Makefile.am): Distribute and build
26186         new file.
26187
26188         relocatable-prog-wrapper: fix build
26189         * modules/relocatable-prog-wrapper (Files): Update name of
26190         canonicalize m4 file, broken on 2009-09-17.
26191         Reported by emad hajjar <aleppos@hotmail.com>.
26192
26193 2009-09-19  Bruno Haible  <bruno@clisp.org>
26194
26195         * lib/safe-alloc.h: Use the standard header with GPL copyright.
26196         * lib/safe-alloc.c: Likewise.
26197         Reported by Ian Beckwith <ianb@erislabs.net>.
26198
26199 2009-09-18  Bruno Haible  <bruno@clisp.org>
26200
26201         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
26202         Reported by <erobles@sensacd.com.mx>.
26203
26204 2009-09-17  Eric Blake  <ebb9@byu.net>
26205
26206         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
26207         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
26208         slashes when checking if last component is missing.
26209         * tests/test-canonicalize.c (main): Test this.
26210
26211         canonicalize, canonicalize-lgpl: honor // if distinct from /
26212         * modules/canonicalize (Files): Add double-slash-root.m4.
26213         * modules/canonicalize-lgpl (Files): Likewise.
26214         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
26215         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
26216         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
26217         fallback definition.
26218         (canonicalize_filename_mode): Use it to protect //.
26219         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
26220         (__realpath): Likewise.
26221         * tests/test-canonicalize.c (main): Test this.
26222         * tests/test-canonicalize-lgpl.c (main): Likewise.
26223         * modules/canonicalize-tests (Depends-on): Add same-inode.
26224         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
26225
26226         canonicalize-lgpl: fix glibc bug with trailing slash
26227         * m4/canonicalize-lgpl.m4: Move contents...
26228         * m4/canonicalize.m4: ...here.
26229         (gl_CANONICALIZE_LGPL): Factor realpath check...
26230         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
26231         glibc 2.3.5 bug, fixed 2005-04-27.
26232         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
26233         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
26234         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
26235         * modules/canonicalize-lgpl (Files): Manage file rename.
26236         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26237         * modules/stdlib (Makefile.am): Substitute witness.
26238         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
26239         is needed.
26240         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
26241         replacement is required.
26242         * lib/canonicalize.c (canonicalize_file_name): Likewise.
26243         * doc/glibc-functions/canonicalize_file_name.texi
26244         (canonicalize_file_name): Document this.
26245         * doc/posix-functions/realpath.texi (realpath): Likewise.
26246
26247         canonicalize-lgpl: reject non-directory with trailing slash
26248         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
26249         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
26250         catches failures in glibc 2.3.5.
26251         * tests/test-canonicalize.c (main): Likewise.
26252
26253         canonicalize-lgpl: use native realpath if it works
26254         * lib/canonicalize-lgpl.c (realpath): Guard with
26255         FUNC_REALPATH_WORKS.
26256         * lib/stdlib.in.h (realpath): Make declaration optional based on
26257         HAVE_REALPATH.
26258         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
26259         native realpath works.
26260         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
26261         * modules/stdlib (Makefile.am): Substitute witness.
26262
26263         canonicalize, canonicalize-lgpl: use <stdlib.h>
26264         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
26265         (Include): Mention <stdlib.h>.
26266         (configure.ac): Mention functions we provide.
26267         * modules/canonicalize (configure.ac): Likewise.
26268         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
26269         realpath if canonicalize_file_name is missing.
26270         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
26271         * modules/stdlib (Makefile.am): Substitute witnesses.
26272         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
26273         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
26274         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
26275         * NEWS: Document this.
26276         * doc/glibc-functions/canonicalize_file_name.texi
26277         (canonicalize_file_name): Likewise.
26278         * doc/posix-functions/realpath.texi (realpath): Likewise.
26279         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
26280
26281         test-canonicalize: consolidate into single C program
26282         * tests/test-canonicalize.sh: Delete; move setup into...
26283         * tests/test-canonicalize.c (main): ...the program, making it
26284         easier to run in debugger.  Add some tests.
26285         * modules/canonicalize-tests (Files): Remove unused file.
26286         (Depends-on): Add progname.
26287         (configure.ac, Makefile.am): Simplify.
26288
26289         test-canonicalize-lgpl: consolidate into single C program
26290         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
26291         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
26292         easier to run in debugger.  Add some tests.
26293         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
26294         (configure.ac, Makefile.am): Simplify.
26295
26296         canonicalize: avoid resolvepath
26297         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
26298         unnecessary checks.
26299         * lib/canonicalize.c (includes): Simplify.
26300         (canonicalize_file_name): Drop resolvepath implementation.
26301         * modules/canonicalize (Depends-on): Drop filenamecat.
26302
26303         canonicalize: don't lose errno
26304         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
26305         over calls to free.
26306
26307         canonicalize: simplify errno handling
26308         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
26309         assignment.
26310
26311         canonicalize, canonicalize-lgpl: update module dependencies
26312         * modules/canonicalize (Depends-on): Add extensions, lstat,
26313         pathmax, stdlib.
26314         (Files): Drop pathmax.h.
26315         (configure.ac): Adjust macro name.
26316         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
26317         lstat, stdlib, sys_stat.
26318         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
26319         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
26320         extensions.
26321         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
26322         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
26323         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
26324         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
26325         declaration, if available.
26326         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
26327         we can rely on the readlink module.
26328         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
26329         (includes): Use <unistd.h> unconditionally.
26330
26331 2009-09-17  Eric Blake  <ebb9@byu.net>
26332
26333         maint: make Include sections of modules consistent
26334         * modules/alloca: Use only header name; no need to list #include.
26335         * modules/alloca-opt: Likewise.
26336         * modules/arpa_inet: Likewise.
26337         * modules/canon-host: Likewise.
26338         * modules/configmake: Likewise.
26339         * modules/dirent: Likewise.
26340         * modules/eealloc: Likewise.
26341         * modules/environ: Likewise.
26342         * modules/fchdir: Likewise.
26343         * modules/fcntl: Likewise.
26344         * modules/fcntl-h: Likewise.
26345         * modules/gethrxtime: Likewise.
26346         * modules/gettime: Likewise.
26347         * modules/ignore-value: Likewise.
26348         * modules/inet_ntop: Likewise.
26349         * modules/inet_pton: Likewise.
26350         * modules/inttypes: Likewise.
26351         * modules/isnand-nolibm: Likewise.
26352         * modules/isnanf-nolibm: Likewise.
26353         * modules/mbchar: Likewise.
26354         * modules/mbfile: Likewise.
26355         * modules/mbiter: Likewise.
26356         * modules/mbuiter: Likewise.
26357         * modules/netdb: Likewise.
26358         * modules/netinet_in: Likewise.
26359         * modules/nproc: Likewise.
26360         * modules/pagealign_alloc: Likewise.
26361         * modules/poll: Likewise.
26362         * modules/printf-frexp: Likewise.
26363         * modules/pthread: Likewise.
26364         * modules/putenv: Likewise.
26365         * modules/random_r: Likewise.
26366         * modules/relocatable-prog: Likewise.
26367         * modules/search: Likewise.
26368         * modules/select: Likewise.
26369         * modules/selinux-h: Likewise.
26370         * modules/settime: Likewise.
26371         * modules/signal: Likewise.
26372         * modules/size_max: Likewise.
26373         * modules/socklen: Likewise.
26374         * modules/ssize_t: Likewise.
26375         * modules/stdarg: Likewise.
26376         * modules/stdbool: Likewise.
26377         * modules/stddef: Likewise.
26378         * modules/stdint: Likewise.
26379         * modules/stdio: Likewise.
26380         * modules/stdlib: Likewise.
26381         * modules/string: Likewise.
26382         * modules/strings: Likewise.
26383         * modules/sys_file: Likewise.
26384         * modules/sys_ioctl: Likewise.
26385         * modules/sys_select: Likewise.
26386         * modules/sys_socket: Likewise.
26387         * modules/sys_stat: Likewise.
26388         * modules/sys_time: Likewise.
26389         * modules/sys_times: Likewise.
26390         * modules/sys_utsname: Likewise.
26391         * modules/sys_wait: Likewise.
26392         * modules/sysexits: Likewise.
26393         * modules/time: Likewise.
26394         * modules/times: Likewise.
26395         * modules/tmpfile: Likewise.
26396         * modules/trim: Likewise.
26397         * modules/unistd: Likewise.
26398         * modules/wchar: Likewise.
26399         * modules/wctype: Likewise.
26400
26401 2009-09-17  Bruno Haible  <bruno@clisp.org>
26402
26403         Make getdate.y compile on QNX and NetBSD 5 / i386.
26404         * m4/getdate.m4 (gl_GETDATE): Conditionally define
26405         TIME_T_FITS_IN_LONG_INT.
26406         * lib/getdate.y (long_time_t): New type.
26407         (relative_time): Change type of 'seconds' field to long_time_t.
26408         (get_date): Update types of local variables. Check against overflow
26409         during conversion from long_time_t to time_t.
26410         Reported by Matt Kraai <kraai@ftbfs.org>
26411         and Hasso Tepper <hasso@netbsd.org>.
26412
26413 2009-09-17  Bruno Haible  <bruno@clisp.org>
26414
26415         * modules/COPYING: Update copyright years.
26416         * modules/README: Likeiwse.
26417         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
26418         Reported by Ian Beckwith <ianb@erislabs.net>.
26419
26420 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26421
26422         * users.txt: Update references for gnuit package.
26423
26424 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
26425
26426         * m4/getdelim.m4: Fix typo in copyright line.
26427
26428 2009-09-17  Bruno Haible  <bruno@clisp.org>
26429
26430         * lib/atoll.c: Use the standard header with GPL copyright.
26431         * lib/argz.in.h: Likewise.
26432         * lib/glob.c: Likewise.
26433         * lib/glob-libc.h: Likewise.
26434         * lib/random_r.c: Likewise.
26435         * lib/siglist.h: Likewise.
26436         * lib/strsignal.c: Likewise.
26437         Reported by Ian Beckwith <ianb@erislabs.net>.
26438
26439 2009-09-17  Eric Blake  <ebb9@byu.net>
26440
26441         rmdir: ensure correct dependency order
26442         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
26443
26444 2009-09-17  Bruno Haible  <bruno@clisp.org>
26445
26446         Disable assertion that fails on NetBSD 5 / i386.
26447         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
26448         Reported by Sam Steingold <sds@gnu.org>
26449         and Hasso Tepper <hasso@netbsd.org>.
26450
26451 2009-09-16  Eric Blake  <ebb9@byu.net>
26452
26453         unlinkdir: port to mingw
26454         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
26455         on which no one can unlink a directory.
26456
26457         stdlib: sort witness names
26458         * modules/stdlib (Makefile.am): Sort replacements.
26459         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
26460         * lib/stdlib.in.h: Likewise.
26461
26462         parse-duration-tests: avoid link failure
26463         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
26464         LIBINTL.
26465         Reported by Tom G. Christensen.
26466
26467         openat-tests: ensure unlinkat behaves like rmdir
26468         * tests/test-rmdir.c (main): Factor guts...
26469         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
26470         * modules/rmdir-tests (Files): Ship new file.
26471         * modules/openat-tests: New test.
26472         * tests/test-unlinkat.c: Likewise.
26473
26474         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
26475         * modules/rmdir-errno (Status, Notice): Now obsolete.
26476
26477         rmdir: work around cygwin 1.5.x and mingw bugs
26478         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
26479         * lib/rmdir.c (rmdir): Work around it.
26480         * modules/rmdir (Status, Notice): No longer obsolete.
26481         (Files): Add dos.m4.
26482         (Depends-on): Add unistd.
26483         (configure.ac): Set witnesses.
26484         (License): Relax to LGPLv2+.
26485         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
26486         * modules/unistd (Makefile.am): Substitute witnesses.
26487         * lib/unistd.in.h (rmdir): Declare replacement.
26488         * doc/posix-functions/rmdir.texi (rmdir): Document this.
26489         * modules/rmdir-tests: New tests.
26490         * tests/test-rmdir.c: Likewise.
26491
26492 2009-09-15  Eric Blake  <ebb9@byu.net>
26493
26494         fchdir: improve use of replacement functions
26495         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
26496         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
26497         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
26498         REPLACE_CLOSEDIR.
26499         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
26500         * modules/sys_stat (Makefile.am): Substitute correct witness.
26501         * modules/dirent (Makefile.am): Likewise.
26502         * modules/unistd (Makefile.am): Likewise.
26503         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
26504         * lib/unistd.in.h (dup): Likewise.
26505         * lib/sys_stat.in.h (fstat): Likewise.
26506
26507         maint: ignore gnulib-tool temp files
26508         * .gitignore: Ignore files created during gnulib-tool --test.
26509
26510 2009-09-13  Jim Meyering  <meyering@redhat.com>
26511
26512         posixtm: don't reject a time that specify "60" as the number of seconds
26513         * lib/posixtm.c (posixtime): The code to reject invalid dates
26514         would also reject a time specified with the .60 suffix.
26515         But POSIX allows that, in order to accommodate leap seconds.
26516         So don't reject it.
26517         (main): Adjust tests accordingly.
26518         * modules/posixtm (Depends-on): Add stpcpy.
26519
26520 2009-09-11  Jim Meyering  <meyering@redhat.com>
26521
26522         announce-gen: include [$release_type] in emitted Subject:
26523         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
26524         e.g., [stable] in the emitted Subject: line.
26525
26526 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26527
26528         Remove obsolete macros from several modules.
26529         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
26530         obsolete Autoconf macros with their modern counterparts.
26531         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
26532         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
26533         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
26534         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
26535         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
26536         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26537         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26538         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26539         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26540         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
26541         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26542         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26543         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
26544         * m4/sockets.m4 (gl_SOCKETS): Likewise.
26545         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
26546         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
26547         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
26548         * m4/time_r.m4 (gl_TIME_R): Likewise.
26549         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26550         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
26551         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
26552
26553         Fix copyright header in build-aux scripts.
26554         * build-aux/git-version-gen: Fix copyright header to match GPLv3
26555         recommendation.
26556         * build-aux/ncftpput-ftp: Likewise.
26557         * build-aux/update-copyright: Likewise.
26558
26559 2009-09-09  Eric Blake  <ebb9@byu.net>
26560
26561         test-link: allow Linux choice of errno
26562         * tests/test-link.c (main): Relax test for alternate error.
26563
26564         strndup: fix improper m4 caching
26565         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
26566         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
26567         (gl_PREREQ_STRNDUP): Delete.
26568         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
26569         * modules/string (Makefile.am): Substitute it.
26570         * lib/string.in.h (strndup): Modernize prototype.
26571
26572         getcwd: port to mingw
26573         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
26574         different from the POSIX assumptions made throughout the getcwd
26575         module; fortunately, the mingw getcwd does not need replacement.
26576         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
26577         * modules/getcwd-tests: New test.
26578         * tests/test-getcwd.c: Likewise.
26579
26580         link: fix platform bugs
26581         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
26582         * lib/link.c (link): Work around them.  Fix related mingw bug.
26583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
26584         * modules/unistd (Makefile.am): Substitute it.
26585         * lib/unistd.in.h (link): Declare replacement.
26586         * doc/posix-functions/link.texi (link): Document this.
26587         * modules/link (Depends-on): Add strdup-posix, sys_stat.
26588
26589         test-link: consolidate into single C program, test more cases
26590         * tests/test-link.sh: Delete.
26591         * tests/test-link.c: Test more error conditions.  Exposes bugs on
26592         at least Cygwin and Solaris.
26593         * modules/link-tests (Files): Remove unused file.
26594         (Depends-on): Add errno, sys_stat.
26595         (Makefile.am): Simplify.
26596
26597 2009-09-08  Bruno Haible  <bruno@clisp.org>
26598
26599         Work around towlower, towupper bug on mingw.
26600         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
26601         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
26602         * doc/posix-functions/towlower.texi: Mention the mingw bug.
26603         * doc/posix-functions/towupper.texi: Likewise.
26604         Reported by Eric Blake.
26605
26606 2009-09-08  Jim Meyering  <meyering@redhat.com>
26607
26608         build: don't try to run autoheader if we don't use it
26609         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
26610         is not used in configure.ac.
26611
26612 2009-09-08  Eric Blake  <ebb9@byu.net>
26613
26614         euidaccess: fix compilation error
26615         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
26616
26617         rawmemchr: relax license
26618         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
26619         okay.
26620         Reported by Jim Meyering.
26621
26622         mkfifoat: new module
26623         * modules/mkfifoat: New file.
26624         * lib/mkfifoat.c: Likewise.
26625         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
26626         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
26627         * modules/sys_stat (Makefile.am): Use them.
26628         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
26629         * MODULES.html.sh (File system functions): Mention module.
26630         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
26631         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
26632         * modules/mkfifoat-tests: New test.
26633         * tests/test-mkfifoat.c: Likewise.
26634
26635         strchrnul: relax license
26636         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
26637         okay.
26638         Reported by Jim Meyering.
26639
26640 2009-09-08  Eric Blake  <ebb9@byu.net>
26641
26642         fstatat: fix compilation on Solaris
26643         * lib/fstatat.c (includes): Add fcntl.h.
26644         Reported by Pádraig Brady.
26645
26646 2009-09-07  Eric Blake  <ebb9@byu.net>
26647
26648         rename: modernize replacement
26649         * modules/rename (Depends-on): Add stdio.
26650         (configure.ac): Declare witness.
26651         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
26652         stdio take care of replacement.
26653         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
26654         * modules/stdio (Makefile.am): Substitute them.
26655         * lib/stdio.in.h (rename): Declare replacement.
26656         * lib/rename.c (includes): Allow cross-compilation to non-windows
26657         machines.
26658         * doc/posix-functions/rename.texi (rename): Improve
26659         documentation.
26660
26661         stdio: sort witness names
26662         * modules/stdio (Makefile.am): Sort replacements.
26663         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26664         * lib/stdio.in.h: Likewise.
26665
26666         getcwd: minor cleanups
26667         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
26668         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
26669
26670         openat: provide more convenience names
26671         * modules/faccessat (configure.ac): Add C witness.
26672         * lib/unistd.in.h (readlinkat): Fix typo.
26673         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
26674         convenience wrappers.
26675         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
26676         wrappers in syntax checks.
26677
26678 2009-09-06  Eric Blake  <ebb9@byu.net>
26679
26680         doc: fix comments in recent patches
26681         * lib/faccessat.c: Mention correct function.
26682         * lib/fchmodat.c: Likewise.
26683         * lib/fchownat.c: Likewise.
26684         * lib/symlinkat.c: Likewise.
26685         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
26686         constants.
26687
26688         faccessat, symlinkat: continue cleanup of previous patch
26689         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
26690         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26691         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
26692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
26693         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
26694         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
26695         set.
26696
26697 2009-09-06  Bruno Haible  <bruno@clisp.org>
26698
26699         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
26700         (fstatat): Declare if GNULIB_FSTATAT is set.
26701         (mkdirat): Declare if GNULIB_MKDIRAT is set.
26702         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
26703         (unlinkat): Declare if GNULIB_UNLINKAT is set.
26704         * modules/fcntl-h (Files): Remove m4/openat.m4.
26705         * modules/sys_stat (Files): Remove m4/openat.m4.
26706         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
26707         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
26708         * modules/unistd (Files): Remove m4/openat.m4.
26709         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
26710         GNULIB_OPENAT.
26711         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
26712         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
26713         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
26714         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
26715         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
26716         gl_OPENAT_DEFAULTS.
26717         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
26718         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
26719         Don't require gl_OPENAT_DEFAULTS.
26720         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
26721         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
26722         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
26723         (gl_OPENAT_DEFAULTS): Remove macro.
26724
26725 2009-09-06  Bruno Haible  <bruno@clisp.org>
26726
26727         * modules/openat (configure.ac): Remove unneeded witness.
26728
26729 2009-09-06  Bruno Haible  <bruno@clisp.org>
26730
26731         Set errno to ENOSYS when a function is entirely unsupported.
26732         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
26733         EOPNOTSUPP.
26734         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
26735         * modules/chown (Depends-on): Remove errno.
26736
26737 2009-09-06  Bruno Haible  <bruno@clisp.org>
26738
26739         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
26740
26741 2009-09-06  Bruno Haible  <bruno@clisp.org>
26742
26743         * lib/sys_stat.in.h: Fix preprocessor command indentation.
26744
26745 2009-09-06  Ben Pfaff  <blp@gnu.org>
26746             Bruno Haible  <bruno@clisp.org>
26747
26748         Work around a glibc bug in strtok_r.
26749         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
26750         Undefine if UNDEFINE_STRTOK_R is set.
26751         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
26752         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26753         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
26754         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
26755         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
26756         UNDEFINE_STRTOK_R.
26757         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
26758
26759 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
26760
26761         exclude: minor fix
26762         * lib/exclude.c: Include wctype.h
26763
26764 2009-09-06  Akim Demaille  <demaille@gostai.com>
26765
26766         bootstrap: improve error message
26767         * build-aux/bootstrap (find_tool): Upon failure, report the list
26768         of candidates.
26769         Honor the initial value of the envvar.
26770
26771 2009-09-05  Eric Blake  <ebb9@byu.net>
26772
26773         symlinkat: new module
26774         * modules/symlinkat: New file.
26775         * lib/symlinkat.c: Likewise.
26776         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
26777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
26778         * modules/unistd (Makefile.am): Use them.
26779         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
26780         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
26781         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
26782         * MODULES.html.sh (File system functions): Mention module.
26783         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26784         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26785         * modules/symlinkat-tests: New test.
26786         * tests/test-symlinkat.c: Likewise.
26787
26788         test-openat-safer: add more checks
26789         * tests/test-openat-safer.c (main): Check more code paths.
26790
26791 2009-09-05  Jim Meyering  <meyering@redhat.com>
26792
26793         syntax-check: detect unnecessary inclusion of openat.h
26794         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
26795
26796 2009-09-05  Bruno Haible  <bruno@clisp.org>
26797
26798         Support towlower, towupper.
26799         * doc/posix-functions/towlower.texi: Mention module wctype.
26800         * doc/posix-functions/towupper.texi: Likewise.
26801         * lib/wctype.in.h (towlower, towupper): New functions.
26802         * tests/test-wctype.c: Include stdio.h, stdlib.h.
26803         (ASSERT): New macro.
26804         (e): New variable.
26805         (main): Test also towlower, towupper. Test WEOF argument.
26806         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
26807
26808 2009-09-05  Bruno Haible  <bruno@clisp.org>
26809
26810         Fix conversion behaviour when the input is invalid.
26811         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
26812         mark occurring in first pass of indirect conversion.
26813         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
26814         input.
26815         Found by clang's static analyzer.
26816
26817 2009-09-05  Bruno Haible  <bruno@clisp.org>
26818
26819         * tests/test-striconveh.c (main): Test indirect conversion on platforms
26820         where direct conversion is possible.
26821
26822 2009-09-04  Eric Blake  <ebb9@byu.net>
26823
26824         openat: fail with ENOENT on empty name
26825         * lib/openat-proc.c (openat_proc_name): Special-case the empty
26826         buffer.
26827
26828         link-follow: fix logic bug in prior patch
26829         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
26830         reversed sense of yes and no in prior patch.  Avoid confusing
26831         compilation failure with desired semantics.
26832
26833         link-follow: accomodate mingw and cross-compilation
26834         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
26835         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
26836         cross-compilation results to -1, to make linkat easier to
26837         implement when cross-compiling.  Trivially support mingw.
26838         * modules/link-follow (configure.ac): Call new name.
26839         * NEWS: Mention this.
26840
26841 2009-09-03  Eric Blake  <ebb9@byu.net>
26842
26843         faccessat: compile replacement
26844         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
26845         needed.
26846
26847         fts: fix compilation error
26848         * lib/fts.c (includes): Re-add "openat.h", for
26849         openat_needs_fchdir.
26850
26851         faccessat: new module
26852         * modules/faccessat: New file.
26853         * lib/faccessat.c: Likewise.
26854         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
26855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
26856         * modules/unistd (Makefile.am): Use it.
26857         * lib/unistd.in.h (faccessat): Declare it.
26858         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
26859         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
26860         * MODULES.html.sh (File system functions): Mention it.
26861         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
26862         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
26863
26864         euidaccess: prefer POSIX over non-standard implementation
26865         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
26866         * lib/euidaccess.c (euidaccess): Use it if available.
26867
26868         openat: make template easier to use
26869         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
26870         AT_FUNC_F2 to be undefined.
26871         (VALIDATE_FLAG): New macro; use it to reject bad flags.
26872         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
26873         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
26874         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
26875         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
26876         Likewise.
26877         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
26878         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
26879         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
26880         Likewise.
26881
26882         openat: declare in POSIX headers
26883         * NEWS: Mention this.
26884         * modules/openat (configure.ac): Declare witnesses.
26885         (Depends-on): Add fcntl-h, sys_stat, unistd.
26886         (Include): Mention correct headers.
26887         * modules/fcntl-h (Depends-on): Add link-warning.
26888         (Files): Add openat.m4.
26889         (Makefile.am): Substitute witnesses.
26890         * modules/sys_stat (Files, Makefile.am): Likewise.
26891         * modules/unistd (Files, Makefile.am): Likewise.
26892         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
26893         (gl_OPENAT_DEFAULTS): New macro.
26894         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
26895         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
26896         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
26897         (SYS_STAT_H): Remove unused variable.
26898         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
26899         * lib/fcntl--.h (includes): Remove unneeded header.
26900         * lib/openat-safer.c (includes): Likewise.
26901         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
26902         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
26903         appropriate headers.
26904         (__OPENAT_PREFIX): Delete.
26905         * lib/fcntl.in.h (openat): Provide declaration.
26906         (AT_FDCWD): Fix Solaris bug.
26907         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
26908         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
26909         * lib/fchmodat.c (includes):  Adjust to find declaration.
26910         * lib/fchownat.c (includes): Likewise.
26911         * lib/mkdirat.c (includes): Likewise.
26912         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
26913         still visible.
26914
26915 2009-09-02  Eric Blake  <ebb9@byu.net>
26916
26917         errno: use consistently
26918         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
26919         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
26920         * lib/canonicalize.c (ELOOP): Likewise.
26921         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
26922         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
26923         * lib/lchown.c (EOPNOTSUPP): Likewise.
26924         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
26925         * lib/savewd.c (ESTALE): Likewise.
26926         * lib/settime.c (ENOSYS): Likewise.
26927         * lib/utimens.c (ENOSYS): Likewise.
26928         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
26929         * lib/chdir-safer.c (ELOOP): Likewise.
26930         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
26931         * modules/c-stack (Depends-on): Add errno.
26932         * modules/canonicalize (Depends-on): Likewise.
26933         * modules/chdir-safer (Depends-on): Likewise.
26934         * modules/fdopendir (Depends-on): Likewise.
26935         * modules/inet_ntop (Depends-on): Likewise.
26936         * modules/inet_pton (Depends-on): Likewise.
26937         * modules/lchown (Depends-on): Likewise.
26938         * modules/openat (Depends-on): Likewise.
26939         * modules/savewd (Depends-on): Likewise.
26940         * modules/settime (Depends-on): Likewise.
26941         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
26942
26943         fts: avoid leaking fds
26944         * modules/fts (Depends-on): Add cloexec.
26945         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
26946         flag.
26947
26948         fts: make directory fds more robust
26949         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
26950         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
26951
26952         backupfile, chdir-long, fts, savedir: make safer
26953         * lib/backupfile.c (includes): Use "dirent--.h", since
26954         numbered_backup can write to stderr during readdir.
26955         * lib/savedir.c (includes): Likewise.
26956         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
26957         emulation can write to stderr on failure.
26958         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
26959         * lib/getcwd.c: Document why opendir_safer is unused.
26960         * lib/glob.c: Likewise.
26961         * lib/scandir.c: Likewise.
26962         * lib/openat-proc.c: Likewise, for open_safer.
26963         * modules/backupfile (Depends-on): Add dirent-safer.
26964         * modules/savedir (Depends-on): Likewise.
26965         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
26966         * modules/chdir-long (Depends-on): Add openat-safer.
26967
26968         openat-safer: new module
26969         * modules/openat-safer: New file.
26970         * lib/openat-safer.c: Likewise.
26971         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
26972         * lib/fcntl-safer.h (openat_safer): Declare.
26973         * lib/fcntl--.h (openat): Override.
26974         * MODULES.html.sh (File descriptor based I/O): Mention it.
26975         * lib/openat.h: Add double-inclusion guards.
26976         * lib/openat.c (includes): Only include "fcntl-safer.h", not
26977         "fcntl--.h", so we can implement openat.
26978         * modules/openat-safer-tests: New test.
26979         * tests/test-openat-safer.c: New file.
26980
26981         dirent-safer: new module
26982         * modules/dirent-safer: New file.
26983         * lib/dirent--.h: Likewise.
26984         * lib/dirent-safer.h: Likewise.
26985         * lib/opendir-safer.c: Likewise.
26986         * m4/dirent-safer.m4: Likewise.
26987         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
26988         * modules/dirent-safer-tests: New test.
26989         * tests/test-dirent-safer.c: New file.
26990         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
26991
26992         fdopendir: optimize on mingw
26993         * lib/unistd.in.h (_gl_directory_name): New prototype.
26994         * lib/fchdir.c (_gl_directory_name): Implement it.
26995         (fchdir): Use it to simplify implementation.
26996         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
26997         fchdir, when available, to avoid calling [f]chdir().
26998
26999         fdopendir: split into its own module
27000         * lib/openat.c (fdopendir): Move...
27001         * lib/fdopendir.c: ...into new file.
27002         * modules/fdopendir: New module.
27003         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
27004         * modules/openat (Depends-on): Add fdopendir.
27005         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
27006         fdopendir here.
27007         * modules/savedir (Depends-on): Only need fdopendir, not full
27008         openat.
27009         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
27010         * lib/openat.h (fdopendir): Drop prototype.
27011         * lib/dirent.in.h (fdopendir): Provide prototype.
27012         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
27013         * modules/dirent (Makefile.am): Substitute them.
27014         * MODULES.html.sh (File system functions): Mention it.
27015         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
27016         * modules/fdopendir-tests: New file.
27017         * tests/test-fdopendir.c: Likewise.
27018
27019         fchdir: use more consistent macro convention
27020         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
27021         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
27022         REPLACE_FCHDIR, rather than relying on config.h macros.
27023         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
27024         inside a single make-time REPLACE_FCHDIR block, rather than using
27025         the config.h FCHDIR_REPLACEMENT.
27026         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
27027         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
27028         Manage fstat replacement.
27029         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
27030         REPLACE_FCHDIR.
27031         * modules/sys_stat (Files): Add m4/unistd_h.m4.
27032         (Makefile.am): Substitute REPLACE_FCHDIR.
27033         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
27034         FCHDIR_REPLACEMENT.
27035         * lib/dup-safer.c (dup_safer): Likewise.
27036         * lib/dup2.c (rpl_dup2): Likewise.
27037         * lib/dup3.c (rpl_dup3): Likewise.
27038         * lib/open.c (rpl_open): Likewise.
27039
27040         fchdir: simplify error handling, and support dup3
27041         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
27042         stdbool, malloc-posix, realloc-posix.
27043         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
27044         (ensure_dirs_slot): Return false on allocation failure.
27045         (rpl_dup2): Delete.
27046         (_gl_register_dup): New function.
27047         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
27048         (_gl_register_fd): Close fd on allocation failure.
27049         * lib/fcntl.in.h (_gl_register_fd): Update signature.
27050         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
27051         prototype.
27052         (rpl_dup2_fchdir): Delete prototype.
27053         * lib/open.c (open): Update caller.
27054         * lib/dup2.c (dup2): Track fchdir metadata.
27055         * lib/dup3.c (dup3): Likewise.
27056         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
27057         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
27058
27059 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27060
27061         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
27062         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
27063         don't pass arguments to AC_OUTPUT.
27064
27065 2009-09-02  Bruno Haible  <bruno@clisp.org>
27066
27067         * modules/mkdtemp (License): Relicense under LGPLv2+.
27068         Reported by Paolo Bonzini.
27069
27070 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27071
27072         Replace uses of obsolete autoconf macros in Jim's modules.
27073         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
27074         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
27075         can evoke a warning from autoconf when run with -Wobsolete
27076         enabled.  They were declared obsolete for good reasons (see
27077         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
27078         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
27079         should not continue using the deprecated macros.
27080         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
27081         obsolete Autoconf macros with modern counterparts.
27082         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27083         * m4/dos.m4 (gl_AC_DOS): Likewise.
27084         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
27085         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27086         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
27087         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
27088         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
27089         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
27090         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
27091         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
27092         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
27093         Likewise.
27094         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
27095         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
27096         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
27097         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
27098         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
27099         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
27100
27101 2009-09-01  Eric Blake  <ebb9@byu.net>
27102
27103         fchdir: fix off-by-one bug in previous patch
27104         * lib/fchdir.c (rpl_fstat): Use correct bounds.
27105         (_gl_unregister_fd): Delete useless if.
27106
27107 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
27108
27109         maint.mk: sort the list of syntax-check rules
27110         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
27111         easier to get a sense of progress when the rules are run sequentially
27112         and take a long time.
27113
27114 2009-09-01  Simon Josefsson  <simon@josefsson.org>
27115
27116         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
27117         * modules/netinet_in: Likewise.
27118         * modules/sys_file: Likewise.
27119         * modules/sys_ioctl: Likewise.
27120         * modules/sys_select: Likewise.
27121         * modules/sys_socket: Likewise.
27122         * modules/sys_stat: Likewise.
27123         * modules/sys_time: Likewise.
27124         * modules/sys_times: Likewise.
27125         * modules/sys_utsname: Likewise.
27126         * modules/sys_wait: Likewise.
27127
27128 2009-09-01  Jim Meyering  <meyering@redhat.com>
27129
27130         fts: help ensure that return values are not ignored
27131         * lib/fts_.h (__GNUC_PREREQ): Define.
27132         (__attribute_warn_unused_result__): Define.
27133         (fts_children, fts_close, fts_open, fts_read): Declare with
27134         __attribute_warn_unused_result__.
27135
27136         fts: fts_close now fails also when closing a dir file descriptor fails
27137         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
27138         and propagate to caller, along with errno.
27139
27140         announce-gen: correct formatting in --help output
27141         * build-aux/announce-gen (usage): Move the one-line description in
27142         --help output "up", to where it belongs, just after Usage:.
27143
27144 2009-08-31  Eric Blake  <ebb9@byu.net>
27145
27146         fchdir: port to mingw
27147         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
27148         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
27149         opened, then use a substitute.
27150         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
27151         replacement.
27152         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
27153         (_gl_register_fd): No need to check stat if open already filters
27154         all directories.
27155         (fchdir): Fix error condition to match POSIX.
27156         * modules/fchdir (Depends-on): Add sys_stat.
27157         * doc/posix-functions/open.texi (open): Document the limitation.
27158         * modules/fchdir-tests: New file.
27159         * tests/test-fchdir.c: Likewise.
27160
27161         canonicalize: allow cross-testing from cygwin to mingw
27162         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
27163         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
27164         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
27165         Likewise.
27166         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
27167         target does not support symlinks.
27168         * tests/test-canonicalize-lgpl.sh: Likewise.
27169
27170         chown: avoid compilation warning on mingw
27171         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
27172         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
27173         mingw.
27174         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
27175         * modules/chown (Depends-on): Add errno.
27176
27177 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27178
27179         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
27180         command.
27181
27182 2009-08-31  Jim Meyering  <meyering@redhat.com>
27183
27184         canonicalize: remove useless initialization
27185         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
27186         initialization of local, "end".
27187
27188 2009-08-30  Bruno Haible  <bruno@clisp.org>
27189
27190         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
27191         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
27192         ENOSYS.
27193
27194 2009-08-30  Bruno Haible  <bruno@clisp.org>
27195
27196         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
27197         /usr/xpg4/bin/tr when it exists.
27198         * tests/test-pipe-filter-gi1.sh: Likewise.
27199
27200 2009-08-30  Bruno Haible  <bruno@clisp.org>
27201
27202         Work around deficient /usr/bin/id program on Solaris.
27203         * tests/test-file-has-acl.sh (ID): New variable.
27204         * tests/test-set-mode-acl.sh (ID): Likewise.
27205         * tests/test-copy-acl.sh (ID): Likewise.
27206         * tests/test-copy-file.sh (ID): Likewise.
27207
27208 2009-08-30  Bruno Haible  <bruno@clisp.org>
27209
27210         New module 'xstriconveh'.
27211         * lib/xstriconveh.h: New file.
27212         * lib/xstriconveh.c: New file.
27213         * modules/xstriconveh: New file.
27214
27215 2009-08-30  Bruno Haible  <bruno@clisp.org>
27216
27217         Make it easier to use mem_cd_iconveh.
27218         * lib/striconveh.h (iconveh_t): New type.
27219         (iconveh_open, iconveh_close): New declarations.
27220         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27221         with a single 'const iconveh_t *' argument.
27222         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
27223         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
27224         with a single 'const iconveh_t *' argument.
27225         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
27226         * tests/test-striconveh.c (main): Update.
27227         * NEWS: Mention the change.
27228
27229 2009-08-30  Bruno Haible  <bruno@clisp.org>
27230
27231         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
27232         problem.
27233
27234 2009-08-30  Bruno Haible  <bruno@clisp.org>
27235
27236         Work around iconv_open problem on Solaris.
27237         * lib/iconv_open-solaris.gperf: New file.
27238         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
27239         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
27240         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
27241         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
27242         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
27243         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
27244
27245 2009-08-29  Jim Meyering  <meyering@redhat.com>
27246
27247         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
27248         * top/maint.mk (cvs-check): Remove target; it was just an alias
27249         to the better-named vc-diff-check.
27250         (maintainer-distcheck): Remove rule.  It was used only from
27251         the (alpha/beta/major) target, and all of its commands but one
27252         were coreutils-specific.
27253         (vc-dist): Remove rule.
27254         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
27255         Run vc-diff-check, not vc-dist.
27256         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
27257
27258 2009-08-27  Bruno Haible  <bruno@clisp.org>
27259
27260         * tests/test-bitrotate.c (main): Remove test that uses a shift count
27261         of 0.
27262
27263 2009-08-27  Bruno Haible  <bruno@clisp.org>
27264
27265         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
27266         compilers.
27267         * doc/func.texi: Document the SunPRO C bug.
27268
27269 2009-08-27  Bruno Haible  <bruno@clisp.org>
27270
27271         Fix link error on Solaris.
27272         * tests/test-parse-duration.c (xstrdup): Remove function.
27273
27274 2009-08-26  Pádraig Brady  <P@draigbrady.com>
27275
27276         ignore-value: handle pointer types, too
27277         * lib/ignore-value.h (__attribute__): Remove definition.
27278         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
27279         of a more concise and more-often effective "(void) i" statement.
27280         (ignore_ptr): New function to suppress warnings from functions that
27281         return pointers, and to make it explicit that one function doesn't
27282         handle all cases.
27283
27284 2009-08-25  Bruno Haible  <bruno@clisp.org>
27285
27286         dup2: work around a Linux bug.
27287         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
27288         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
27289         * doc/posix-functions/dup2.texi: Mention the Linux bug.
27290         Reported by Simon Josefsson.
27291
27292 2009-08-25  Jim Meyering  <meyering@redhat.com>
27293
27294         libguestfs uses gnulib
27295         * users.txt: Add libguestfs.
27296
27297 2009-08-24  Eric Blake  <ebb9@byu.net>
27298
27299         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
27300         * lib/pipe2.c (includes): Add binary-io.h.
27301         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
27302
27303 2009-08-24  Bruno Haible  <bruno@clisp.org>
27304
27305         Tolerate declared but missing accept4 syscall.
27306         * lib/accept4.c (accept4): Invoke original accept4 function first, if
27307         available.
27308         * lib/sys_socket.in.h (accept4): If the function is already present,
27309         override it.
27310         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
27311         * modules/accept4 (Makefile.am): Compile accept4.c always.
27312         Reported by Paolo Bonzini and Eric Blake.
27313
27314 2009-08-23  Bruno Haible  <bruno@clisp.org>
27315
27316         New module 'accept4'.
27317         * lib/sys_socket.in.h (accept4): New declaration.
27318         * lib/accept4.c: New file.
27319         * m4/accept4.m4: New file.
27320         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27321         GNULIB_ACCEPT4, HAVE_ACCEPT4.
27322         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
27323         HAVE_ACCEPT4.
27324         * modules/accept4: New file.
27325         * doc/glibc-functions/accept4.texi: Mention the new module.
27326
27327 2009-08-24  Jim Meyering  <meyering@redhat.com>
27328
27329         progname: also set global program_invocation_name, when possible
27330         Before this change, a libtool-enabled program that calls glibc's
27331         error function would report the program name as
27332         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
27333         * modules/progname (configure.ac): Check for a declaration of
27334         program_invocation_name.
27335         * lib/progname.c:  Include <errno.h>.
27336         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
27337         Set program_invocation_name.
27338
27339 2009-08-23  Bruno Haible  <bruno@clisp.org>
27340
27341         * lib/dup3.c: Include <string.h>.
27342
27343 2009-08-23  Bruno Haible  <bruno@clisp.org>
27344
27345         * lib/dup3.c (dup3): Test only once whether the system actually exists.
27346         * lib/pipe2.c (pipe2): Likewise.
27347         Suggested by Eric Blake.
27348
27349 2009-08-23  Bruno Haible  <bruno@clisp.org>
27350
27351         Tolerate declared but missing dup3 syscall.
27352         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
27353         * lib/unistd.in.h (dup3): If the function is already present,
27354         override it.
27355         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
27356         * modules/dup3 (Makefile.am): Compile dup3.c always.
27357         Reported by Paolo Bonzini.
27358
27359 2009-08-23  Bruno Haible  <bruno@clisp.org>
27360
27361         Tolerate declared but missing pipe2 syscall.
27362         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
27363         available.
27364         * lib/unistd.in.h (pipe2): If the function is already present,
27365         override it.
27366         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
27367         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
27368         Reported by Paolo Bonzini.
27369
27370 2009-08-23  Bruno Haible  <bruno@clisp.org>
27371
27372         * lib/pipe2.c (pipe2): Move #ifs inside function.
27373
27374 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27375
27376         quotearg: document limitations of quote_these_too
27377         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
27378         those limitations are created.
27379         * lib/quotearg.h (set_char_quoting): Document that digits and
27380         letters that are special after backslash are not permitted.
27381         (quotearg_char): Cross-reference set_char_quoting documentation.
27382
27383 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
27384
27385         quotearg: implement custom_quoting_style
27386         * lib/quotearg.c: (struct quoting_options): Add left_quote and
27387         right_quote fields.
27388         (set_custom_quoting): New public function.
27389         (quotearg_buffer_restyled): Add left_quote and right_quote
27390         arguments, handle them very much like locale quoting, and update
27391         all uses.
27392         (quotearg_n_custom): New public function.
27393         (quotearg_n_custom_mem): New public function.
27394         (quotearg_custom): New public function.
27395         (quotearg_custom_mem): New public function.
27396         * lib/quotearg.h: Prototype and document new public functions.
27397         (enum quoting_style): For escape_quoting_style and
27398         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
27399         ignored even though they're otherwise like c_quoting_style.
27400         Add custom_quoting_style member and document with comparison to
27401         clocale_quoting_style.
27402         * tests/test-quotearg.c (custom_quotes): New array.
27403         (custom_results): New array.
27404         (main): Extend to test custom quoting.
27405
27406 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27407
27408         quotearg: fix right quote escaping when it's in quote_these_too
27409         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
27410         quote, be sure to prepend only one backslash.
27411         * tests/test-quotearg.c (use_quote_double_quotes): New function.
27412         (main): Test it.
27413
27414 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
27415
27416         quotearg-tests: test escaping of embedded locale quotes
27417         * tests/test-quotearg.c (struct result_strings): Add member for
27418         new input.
27419         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
27420         (inputs): Add new input.
27421         (results_g): Add expected results.
27422         (flag_results): Likewise.
27423         (locale_results): Likewise.
27424         (compare_strings): Check those.
27425
27426 2009-08-23  Bruno Haible  <bruno@clisp.org>
27427
27428         Tests for module 'dup3'.
27429         * modules/dup3-tests: New file.
27430         * tests/test-dup3.c: New file.
27431
27432         New module 'dup3'.
27433         * lib/unistd.in.h (dup3): New declaration.
27434         * lib/dup3.c: New file.
27435         * m4/dup3.m4: New file.
27436         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
27437         HAVE_DUP3.
27438         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
27439         * modules/dup3: New file.
27440         * doc/glibc-functions/dup3.texi: Mention the new module.
27441
27442 2009-08-23  Bruno Haible  <bruno@clisp.org>
27443
27444         Tweak the dup2 test.
27445         * tests/test-dup2.c (main): Create the test file empty. Verify that an
27446         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
27447         the test file is still empty. Fix argument order of lseek.
27448
27449 2009-08-23  Bruno Haible  <bruno@clisp.org>
27450
27451         Avoid test link errors when the modules getopt-gnu, gettext are used.
27452         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
27453         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27454
27455 2009-08-23  Bruno Haible  <bruno@clisp.org>
27456
27457         Fix getdtablesize() on mingw.
27458         * lib/getdtablesize.c (getdtablesize): Implement differently.
27459         * lib/unistd.in.h (getdtablesize): Improve comment.
27460
27461 2009-08-23  Bruno Haible  <bruno@clisp.org>
27462
27463         New module 'mkostemp'.
27464         Based on Ulrich Drepper's 2007-08-10 change in glibc.
27465         * lib/stdlib.in.h (mksotemp): New declaration.
27466         * lib/mkostemp.c: New file, from glibc with modifications.
27467         * lib/tempname.h (GT_FILE): Remove outdated comment.
27468         (gen_tempname): Add flags argument.
27469         * lib/tempname.c (__GT_BIGFILE): Remove macro.
27470         (__GT_FILE): Map to 1.
27471         (small_open, large_open): Remove macros.
27472         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
27473         * lib/mkstemp.c (mkstemp): Update.
27474         * lib/mkdtemp.c (mkdtemp): Likewise.
27475         * m4/mkostemp.m4: New file.
27476         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
27477         HAVE_MKOSTEMP.
27478         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
27479         HAVE_MKOSTEMP.
27480         * modules/mkostemp: New file, based on modules/mkstemp.
27481         * doc/glibc-functions/mkostemp.texi: Mention the new module.
27482         * NEWS: Mention the change.
27483
27484 2009-08-23  Bruno Haible  <bruno@clisp.org>
27485
27486         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
27487         Reported by Eric Blake.
27488
27489 2009-08-23  Bruno Haible  <bruno@clisp.org>
27490
27491         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
27492         Reported by Eric Blake.
27493
27494 2009-08-23  Bruno Haible  <bruno@clisp.org>
27495
27496         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
27497         * modules/pipe2 (Depends-on): Likewise.
27498
27499 2009-08-23  Eric Blake  <ebb9@byu.net>
27500
27501         fcntl-h: add O_TTY_INIT support
27502         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
27503         * tests/test-fcntl-h.c (o): Test it.
27504         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27505
27506         fcntl-h: rename from fcntl, in preparation for fcntl(2)
27507         * modules/fcntl: Move <fcntl.h> header replacement...
27508         * modules/fcntl-h: ...to new name, so as not to collide with
27509         like-named function.
27510         * tests/test-fcntl.c: Rename...
27511         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
27512         * modules/fcntl-tests: Rename...
27513         * modules/fcntl-h-tests: ...to this.  Update test file name.
27514         * modules/chdir-long (Depends-on): Update clients.
27515         * modules/chdir-safer (Depends-on): Likewise.
27516         * modules/fcntl-safer (Depends-on): Likewise.
27517         * modules/fts (Depends-on): Likewise.
27518         * modules/mkancesdirs (Depends-on): Likewise.
27519         * modules/mkdir-p (Depends-on): Likewise.
27520         * modules/open (Depends-on): Likewise.
27521         * modules/savewd (Depends-on): Likewise.
27522         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
27523         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27524
27525 2009-08-22  Bruno Haible  <bruno@clisp.org>
27526
27527         * modules/binary-io (License): Relicense under LGPL.
27528         * modules/pipe2 (License): Likewise.
27529
27530 2009-08-22  Bruno Haible  <bruno@clisp.org>
27531
27532         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
27533         return value.
27534         * lib/pipe-filter-gi.c (filter_init): Likewise.
27535         Reported by Eric Blake.
27536
27537 2009-08-22  Bruno Haible  <bruno@clisp.org>
27538
27539         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
27540         * modules/pipe (Depends-on): Add pipe2.
27541
27542 2009-08-22  Bruno Haible  <bruno@clisp.org>
27543
27544         Tests for module 'pipe2'.
27545         * modules/pipe2-tests: New file.
27546         * tests/test-pipe2.c: New file.
27547
27548         New module 'pipe2'.
27549         * lib/unistd.in.h (pipe2): New declaration.
27550         * lib/pipe2.c: New file.
27551         * m4/pipe2.m4: New file.
27552         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
27553         HAVE_PIPE2.
27554         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
27555         * modules/pipe2: New file.
27556         * doc/glibc-functions/pipe2.texi: Mention the new module.
27557
27558 2009-08-22  Bruno Haible  <bruno@clisp.org>
27559
27560         Reference some new glibc functions.
27561         * doc/glibc-functions/accept4.texi: New file.
27562         * doc/glibc-functions/dup3.texi: New file.
27563         * doc/glibc-functions/mkostemp.texi: New file.
27564         * doc/glibc-functions/pipe2.texi: New file.
27565         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
27566         (Glibc sys/socket.h): Refer to accept4.
27567         (Glibc unistd.h): Refer to dup3, pipe2.
27568         Reported by Eric Blake.
27569
27570 2009-08-22  Jim Meyering  <meyering@redhat.com>
27571             Bruno Haible  <bruno@clisp.org>
27572
27573         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
27574         This makes it so packages using automake-1.11's silent-rules option
27575         can print e.g., a single "GEN    configmake.h" line, rather than
27576         the 30+ statements that perform the job.  If you want to see the
27577         actual commands, you can still run "make V=1".
27578         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
27579         so that make output is abbreviated when those variables are defined
27580         appropriately.
27581         * modules/argz: Likewise.
27582         * modules/arpa_inet: Likewise.
27583         * modules/byteswap: Likewise.
27584         * modules/configmake: Likewise.
27585         * modules/dirent: Likewise.
27586         * modules/errno: Likewise.
27587         * modules/fcntl: Likewise.
27588         * modules/float: Likewise.
27589         * modules/fnmatch: Likewise.
27590         * modules/getopt-posix: Likewise.
27591         * modules/glob: Likewise.
27592         * modules/iconv_open: Likewise.
27593         * modules/inttypes: Likewise.
27594         * modules/localcharset: Likewise.
27595         * modules/locale: Likewise.
27596         * modules/math: Likewise.
27597         * modules/netdb: Likewise.
27598         * modules/netinet_in: Likewise.
27599         * modules/poll: Likewise.
27600         * modules/posix_spawnp-tests: Likewise.
27601         * modules/sched: Likewise.
27602         * modules/search: Likewise.
27603         * modules/selinux-h: Likewise.
27604         * modules/signal: Likewise.
27605         * modules/spawn: Likewise.
27606         * modules/stdarg: Likewise.
27607         * modules/stdbool: Likewise.
27608         * modules/stddef: Likewise.
27609         * modules/stdint: Likewise.
27610         * modules/stdio: Likewise.
27611         * modules/stdlib: Likewise.
27612         * modules/string: Likewise.
27613         * modules/strings: Likewise.
27614         * modules/sys_file: Likewise.
27615         * modules/sys_ioctl: Likewise.
27616         * modules/sys_select: Likewise.
27617         * modules/sys_socket: Likewise.
27618         * modules/sys_stat: Likewise.
27619         * modules/sys_time: Likewise.
27620         * modules/sys_times: Likewise.
27621         * modules/sys_utsname: Likewise.
27622         * modules/sys_wait: Likewise.
27623         * modules/sysexits: Likewise.
27624         * modules/time: Likewise.
27625         * modules/unistd: Likewise.
27626         * modules/wchar: Likewise.
27627         * modules/wctype: Likewise.
27628
27629 2009-08-22  Jim Meyering  <meyering@redhat.com>
27630
27631         announce-gen: detect write failure
27632         * build-aux/announce-gen: Add Coda at end.
27633         Remove equivalent-but-more-verbose block at top.
27634
27635 2009-08-19  Akim Demaille  <demaille@gostai.com>
27636
27637         bootstrap: --help to stdout.
27638         * bootstrap (usage): Don't send --help to stderr.
27639         Use a here doc instead of a long string.
27640
27641 2009-08-21  Eric Blake  <ebb9@byu.net>
27642
27643         test-popen-safer: split from test-popen
27644         * tests/test-popen.c (main): Move...
27645         * tests/test-popen.h: ...into new file.
27646         * tests/test-popen-safer2.c: New file.
27647         * modules/popen-tests (Files): Add test-popen.h.
27648         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
27649         Suggested by Bruno Haible.
27650
27651         test-fcntl-safer: split from test-open
27652         * tests/test-open.c (main): Move...
27653         * tests/test-open.h: ...into new file.
27654         * tests/test-fcntl-safer.c: New file.
27655         * modules/open-tests (Files): Add test-open.h.
27656         * modules/fcntl-safer-tests: New file.
27657         Suggested by Bruno Haible.
27658
27659         test-fopen-safer: split from test-fopen
27660         * tests/test-fopen.c (main): Move...
27661         * tests/test-fopen.h: ...into new file.
27662         * tests/test-fopen-safer.c: New file.
27663         * modules/fopen-tests (Files): Add test-fopen.h.
27664         * modules/fopen-safer-tests: New file.
27665         Suggested by Bruno Haible.
27666
27667 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27668
27669         popen-safer: test O_CLOEXEC at run-time.
27670         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
27671
27672 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
27673
27674         fcntl: move more flags to the header
27675         * lib/cloexec.c: Do not define FD_CLOEXEC here.
27676         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
27677         * lib/fcntl.in.h: Do both things here.
27678
27679 2009-08-21  Jim Meyering  <meyering@redhat.com>
27680
27681         consistently remove $@-t before redirecting to it
27682         * modules/argz: Remove $@-t and $@ before redirecting to the former.
27683         * modules/alloca-opt: Likewise.
27684         * modules/byteswap: Likewise.
27685         * modules/fnmatch: Likewise.
27686         * modules/getopt-posix: Likewise.
27687         * modules/glob: Likewise.
27688         * modules/poll: Likewise.
27689         * modules/posix_spawnp-tests: Likewise.
27690         * modules/sys_socket: Likewise.
27691         * modules/sysexits: Likewise.
27692
27693 2009-08-21  Eric Blake  <ebb9@byu.net>
27694
27695         popen: simplify access to original popen
27696         * lib/popen.c (rpl_popen): No need to worry about popen being a
27697         macro.
27698         Reported by Bruno Haible.
27699
27700 2009-08-20  Eric Blake  <ebb9@byu.net>
27701
27702         build: avoid some compiler warnings
27703         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
27704         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
27705         type.
27706         (new_exclude_segment, excluded_file_pattern_p)
27707         (excluded_file_name_p): Reduce scope.
27708         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
27709         old-style declaration.
27710
27711 2009-08-20  Simon Josefsson  <simon@josefsson.org>
27712
27713         * tests/test-exclude1.sh: Handle Windows EOL.
27714         * tests/test-exclude2.sh: Likewise.
27715         * tests/test-exclude3.sh: Likewise.
27716         * tests/test-exclude4.sh: Likewise.
27717         * tests/test-exclude5.sh: Likewise.
27718         * tests/test-exclude6.sh: Likewise.
27719         * tests/test-exclude7.sh: Likewise.
27720
27721 2009-08-19  Akim Demaille  <demaille@gostai.com>
27722
27723         bootstrap: find sha1sum when named gsha1sum.
27724         * bootstrap (find_tool): New.
27725         ($SHA1SUM): New.
27726         Use it.
27727
27728 2009-08-20  Jim Meyering  <meyering@redhat.com>
27729
27730         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
27731         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
27732         expression that converts "." in a file name to "\." in the resulting
27733         regexp.  Start with a dummy statement, so that prior shell variable
27734         definitions are expanded portably.  Reported by Simon Josefsson.
27735
27736 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
27737
27738         Fix polling for writeability of a screen buffer.
27739         * lib/poll.c: Distinguish input and screen buffers for the
27740         Win32 implementation.
27741         * lib/select.c: Likewise.
27742
27743 2009-08-19  Eric Blake  <ebb9@byu.net>
27744
27745         popen-safer: prevent popen from clobbering std descriptors
27746         * modules/popen-safer: New file.
27747         * lib/popen-safer.c: Likewise.
27748         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
27749         * lib/stdio--.h (popen): Provide override.
27750         * lib/stdio-safer.h (popen_safer): Provide declaration.
27751         * tests/test-popen.c (includes): Partially test this.
27752         * modules/popen-safer-tests: New file, for more tests.
27753         * tests/test-popen-safer.c: Likewise.
27754         * MODULES.html.sh (file stream based Input/Output): Mention it.
27755
27756         tests: test some of the *-safer modules
27757         * modules/fopen-safer (Depends-on): Add fopen.
27758         * modules/fcntl-safer (Depends-on): Add fcntl.
27759         * modules/stdlib-safer (Depends-on): Add stdlib.
27760         (configure.ac): Set indicator.
27761         * modules/unistd-safer (configure.ac): Likewise.
27762         * modules/tmpfile-safer (configure.ac): Likewise.
27763         (Depends-on): Add tmpfile.
27764         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
27765         active.
27766         * tests/test-fopen.c (includes): Test safer versions when they are
27767         in use.
27768         * tests/test-open.c (includes): Likewise.
27769
27770         popen: fix cygwin 1.5 bug when stdin closed
27771         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
27772         * modules/popen: New file.
27773         * modules/popen-tests: Likewise.
27774         * tests/test-popen.c: Likewise.
27775         * m4/popen.m4: Likewise.
27776         * lib/popen.c: Likewise.
27777         * lib/stdio.in.h (popen): New declaration.
27778         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
27779         * modules/stdio (Makefile.am): Likewise.
27780         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
27781
27782 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
27783
27784         maint.mk: give full control over update-copyright exclusions
27785         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
27786         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
27787         (update-copyright): Don't force inclusion of top-level
27788         ChangeLog.  Don't force exclusion of all COPYING files, but make
27789         them the default exclusion instead.
27790
27791 2009-08-16  Bruno Haible  <bruno@clisp.org>
27792
27793         Fix test failures on Solaris 10.
27794         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
27795         tests when Solaris iconv() is used.
27796         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
27797         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
27798         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
27799         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
27800         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
27801
27802 2009-08-16  Bruno Haible  <bruno@clisp.org>
27803
27804         Fix test failures on Solaris 10.
27805         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
27806         'tr' program and pass it as first argument.
27807         * tests/test-pipe-filter-gi1.sh: Likewise.
27808         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
27809         program as first argument.
27810         * tests/test-pipe-filter-gi1.c (main): Likewise.
27811
27812 2009-08-16  Eric Blake  <ebb9@byu.net>
27813
27814         fpurge: fix previous commits
27815         * modules/fpurge (Makefile.am): Make replacement conditional,
27816         partially reverting 2007-04-29 change; missed in previous
27817         attempt.
27818         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
27819         is missing.
27820
27821 2009-08-16  Bruno Haible  <bruno@clisp.org>
27822
27823         Clarify fpurge's effect on the file position.
27824         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
27825         * tests/test-fpurge.c (main): Make a second pass for checking the file
27826         position.
27827
27828 2009-08-16  Bruno Haible  <bruno@clisp.org>
27829
27830         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
27831         declaration of fpurge is missing.
27832         * tests/test-fpurge.c (main): Check that the file has not more contents
27833         than expected. Close the file before removing it.
27834
27835 2009-08-15  Eric Blake  <ebb9@byu.net>
27836
27837         fpurge: don't wrap working cygwin implementation
27838         * lib/fpurge.c (fpurge): Fix comment typo.
27839         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
27840         1.7 to avoid replacement.
27841         * tests/test-fpurge.c (main): Enhance test.
27842
27843 2009-08-15  Eric Blake  <ebb9@byu.net>
27844         and Jim Meyering  <meyering@redhat.com>
27845
27846         test-update-copyright: skip if perl is insufficient
27847         * tests/test-update-copyright.sh: Failure to run maintainer tool
27848         should not cause testsuite failure on cygwin 1.5.
27849
27850 2009-08-14  Eric Blake  <ebb9@byu.net>
27851
27852         doc: mention more functions added in cygwin 1.7.0
27853         * doc/posix-headers/limits.texi (limits.h): Update for recent
27854         cygwin additions.
27855         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
27856         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
27857         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
27858         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
27859         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
27860
27861 2009-08-14  Eric Blake  <ebb9@byu.net>
27862
27863         maint.mk: simplify update-copyright rule
27864         * top/maint.mk (update-copyright-local): Delete, and document how
27865         to do it in cfg.mk instead.
27866         (update-copyright-exclude-regexp): Delete, and document how to do
27867         it in .x-update-copyright instead.
27868         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
27869         exclude ChangeLog.
27870
27871 2009-08-14  Bruno Haible  <bruno@clisp.org>
27872
27873         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
27874
27875 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27876
27877         maint.mk: support update-copyright-env
27878         * top/maint.mk (update-copyright-env): Define place-holder.
27879         (update-copyright): Expand $(update-copyright-env) before
27880         invoking update-copyright.
27881
27882 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27883
27884         update-copyright: implement forced reformatting
27885         * build-aux/update-copyright: Implement and document
27886         UPDATE_COPYRIGHT_FORCE.
27887         * tests/test-update-copyright.sh: Test it.
27888
27889 2009-08-14  Eric Blake  <ebb9@byu.net>
27890         and Bruno Haible  <bruno@clisp.org>
27891
27892         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
27893         * tests/test-locale.c: Revert previous patch related to NULL.
27894         * tests/test-stdio.c: Likewise.
27895         * tests/test-stdlib.c: Likewise.
27896         * tests/test-string.c: Likewise.
27897         * tests/test-unistd.c: Likewise.
27898         * modules/time-tests (Depends-on): Add verify.
27899         * modules/wchar-tests (Depends-on): Likewise.
27900         * tests/test-time.c: Test for NULL compliance.
27901         * tests/test-wchar.c: Likewise.
27902         * modules/locale (Depends-on): Add stddef.
27903         * modules/stdio (Depends-on): Likewise.
27904         * modules/stdlib (Depends-on): Likewise.
27905         * modules/string (Depends-on): Likewise.
27906         * modules/time (Depends-on): Likewise.
27907         * modules/unistd (Depends-on): Likewise.
27908         * modules/wchar (Depends-on): Likewise.
27909         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
27910         * lib/stdlib.in.h (includes): Likewise.
27911         * lib/string.in.h (includes): Likewise.
27912         * lib/time.in.h (includes): Likewise.
27913         * lib/unistd.in.h (includes): Likewise.
27914         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
27915         replaced.
27916         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27917         * m4/stddef_h.m4: New file.
27918         * modules/stddef: Likewise.
27919         * lib/stddef.in.h: Likewise.
27920         * modules/stddef-tests: Likewise.
27921         * tests/test-stddef.c: Likewise.
27922         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
27923         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
27924         * doc/posix-headers/locale.texi (locale.h): Likewise.
27925         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
27926         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27927         * doc/posix-headers/string.texi (string.h): Likewise.
27928         * doc/posix-headers/time.texi (time.h): Likewise.
27929         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
27930         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
27931
27932 2009-08-14  Eric Blake  <ebb9@byu.net>
27933
27934         doc: improve git diff of texinfo files
27935         * .gitattributes: Add rule for *.texi files, with hint on how to
27936         use it.
27937         Copied from m4, and based on a report by Bruno Haible.
27938
27939 2009-08-14  Bruno Haible  <bruno@clisp.org>
27940
27941         Disable multithread support by default on Cygwin 1.5.x for real.
27942         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
27943
27944 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
27945
27946         update-copyright: much ado about intervals
27947         * build-aux/update-copyright: Implement and document
27948         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
27949         of copyright year intervals.
27950         Also, document UPDATE_COPYRIGHT_YEAR.
27951         * tests/test-update-copyright.sh: Test it.
27952
27953         update-copyright: convert 2-digit to 4-digit years
27954         * build-aux/update-copyright: Implement and document.
27955         * tests/test-update-copyright.sh: Update.
27956
27957 2009-08-14  Jim Meyering  <meyering@redhat.com>
27958
27959         test-exclude: avoid coreutils "make check" failure
27960         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
27961         just as in test-argmatch.c.
27962
27963 2009-08-13  Eric Blake  <ebb9@byu.net>
27964
27965         test-dup2: fix bad assumption
27966         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
27967         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
27968
27969         test-version-etc: fix CRLF portability issue
27970         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
27971         recognize \r.
27972         * tests/test-argp-version-etc-1.sh: Likewise.
27973
27974         getopt: update client modules
27975         * modules/argp (Depends-on): Use getopt-gnu.
27976         * modules/git-merge-changelog (Depends-on): Likewise.
27977         * modules/long-options (Depends-on): Likewise.
27978         * modules/xstrtol (Depends-on): Likewise.
27979
27980 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27981
27982         * tests/test-version-etc.sh: Don't fail on different
27983         project/version.  Don't fail on CRLF differences.  Rewrite to use
27984         multiple -e instead of multiple sed forks, suggested by Eric Blake
27985         <ebb9@byu.net>.
27986         * tests/test-argp-version-etc-1.sh: Likewise.
27987
27988 2009-08-13  Simon Josefsson  <simon@josefsson.org>
27989
27990         * tests/test-version-etc.sh: Don't fail on different
27991         project/version.
27992
27993 2009-08-12  Bruno Haible  <bruno@clisp.org>
27994
27995         Tests for modules 'getopt-posix', 'getopt-gnu'.
27996         * modules/getopt-posix-tests: New file.
27997         * tests/test-getopt.c: New file.
27998         * tests/test-getopt.h: New file.
27999         * tests/test-getopt_long.h: New file.
28000
28001         New modules 'getopt-posix', 'getopt-gnu'.
28002         * modules/getopt-gnu: New file, renamed from modules/getopt.
28003         * modules/getopt-posix: New file.
28004         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
28005         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
28006         (gl_GETOPT): Remove macro.
28007         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
28008         Disable the test against BSD systems that declare optreset. Test
28009         against mingw bug. Test against lack of support of optional arguments
28010         on many platforms.
28011         * doc/glibc-headers/getopt.texi: Update module name and list of
28012         relevant platforms.
28013         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
28014         'getopt-gnu' and more portability problems.
28015         * NEWS: Mention the changes.
28016
28017 2009-08-12  Bruno Haible  <bruno@clisp.org>
28018
28019         Ensure that optarg etc. get declared by <unistd.h>.
28020         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
28021         AC_USE_SYSTEM_EXTENSIONS.
28022         * modules/getopt (Depends-on): Add 'extensions'.
28023
28024 2009-08-12  Bruno Haible  <bruno@clisp.org>
28025
28026         Avoid test link errors.
28027         * modules/pipe-filter-ii-tests (Makefile.am): Define
28028         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
28029         * modules/pipe-filter-gi-tests (Makefile.am): Define
28030         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
28031         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28032
28033 2009-08-12  Bruno Haible  <bruno@clisp.org>
28034
28035         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
28036         gl_GETOPT_SUBSTITUTE before.
28037         (gl_GETOPT): Use it.
28038         * m4/argp.m4 (gl_ARGP): Update.
28039         Reported by Sergey Poznyakoff.
28040
28041         * m4/getopt.m4: Reorder macros.
28042         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
28043         (gl_GETOPT_SUBSTITUTE): Remove macro.
28044
28045 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
28046
28047         Minor improvement in gitlog-to-changelog
28048
28049         * build-aux/gitlog-to-changelog: New option `--format' makes
28050         output format string configurable.
28051
28052 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
28053
28054         Optimize exclude: use hash tables for non-wildcard patterns.
28055
28056         * lib/exclude.c: Include hash.h and mbuiter.h
28057         (struct exclude_pattern, exclude_segment): New data types.
28058         (struct exclude): Rewrite.
28059         (fnmatch_pattern_has_wildcards): New function.
28060         (new_exclude_segment, free_exclude_segment): New functions.
28061         (excluded_file_pattern_p, excluded_file_name_p): New functions.
28062         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
28063         * lib/exclude.h (is_fnmatch_pattern): New prototype.
28064         * modules/exclude: Depend on hash and mbuiter.
28065
28066         * modules/exclude-tests: New file.
28067         * tests/test-exclude.c: New file.
28068         * tests/test-exclude1.sh: New file.
28069         * tests/test-exclude2.sh: New file.
28070         * tests/test-exclude3.sh: New file.
28071         * tests/test-exclude4.sh: New file.
28072         * tests/test-exclude5.sh: New file.
28073         * tests/test-exclude6.sh: New file.
28074         * tests/test-exclude7.sh: New file.
28075
28076 2009-08-12  Bruno Haible  <bruno@clisp.org>
28077
28078         Ensure that getopt() gets declared by <unistd.h>.
28079         * lib/unistd.in.h: Conditionally include getopt.h.
28080         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
28081         Set GNULIB_UNISTD_H_GETOPT.
28082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28083         GNULIB_UNISTD_H_GETOPT.
28084         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
28085
28086 2009-08-12  Bruno Haible  <bruno@clisp.org>
28087
28088         Clarify logic.
28089         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
28090         gl_replace_getopt instead of GETOPT_H.
28091
28092 2009-08-12  Bruno Haible  <bruno@clisp.org>
28093
28094         * m4/getopt.m4: Add comments.
28095
28096 2009-08-12  Bruno Haible  <bruno@clisp.org>
28097
28098         Disable multithread support by default on Cygwin 1.5.x.
28099         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
28100         set gl_use_threads=no if not specified otherwise.
28101
28102 2009-08-11  Bruno Haible  <bruno@clisp.org>
28103
28104         Avoid compilation error on NetBSD 5.0.
28105         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
28106         * tests/test-stdio.c: Likewise.
28107         * tests/test-stdlib.c: Likewise.
28108         * tests/test-string.c: Likewise.
28109         * tests/test-unistd.c: Likewise.
28110         Reported by Greg Troxel <gdt@ir.bbn.com>
28111         at <https://savannah.gnu.org/support/?106973>.
28112
28113 2009-08-11  Bruno Haible  <bruno@clisp.org>
28114
28115         * modules/dup2-tests (Depends-on): Remove close.
28116
28117         Undo 2009-07-19 commit.
28118         * modules/acl-tests (Depends-on): Remove close.
28119         * modules/binary-io-tests (Depends-on): Likewise.
28120         * modules/closein-tests (Depends-on): Likewise.
28121         * modules/flock-tests (Depends-on): Likewise.
28122         * modules/fsync-tests (Depends-on): Likewise.
28123         * modules/lseek-tests (Depends-on): Likewise.
28124         * modules/pipe-tests (Depends-on): Likewise.
28125         * modules/posix_spawn-tests (Depends-on): Likewise.
28126         * modules/posix_spawnp-tests (Depends-on): Likewise.
28127         * modules/stat-time-tests (Depends-on): Likewise.
28128         * modules/yesno-tests (Depends-on): Likewise.
28129
28130 2009-08-10  Bruno Haible  <bruno@clisp.org>
28131
28132         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
28133
28134 2009-08-10  Bruno Haible  <bruno@clisp.org>
28135
28136         Fix a gcc warning.
28137         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
28138
28139 2009-08-10  Bruno Haible  <bruno@clisp.org>
28140
28141         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
28142         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
28143         not only the first time.
28144         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
28145         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
28146         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
28147         is 1, not only the the first time.
28148
28149 2009-08-10  Bruno Haible  <bruno@clisp.org>
28150
28151         Make it possible to use module 'gethostname' without module 'close'.
28152         * lib/unistd.in.h (close): Evoke a link error only if
28153         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
28154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28155         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28156         * modules/unistd (Makefile.am): Substitute
28157         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28158         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
28159         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
28160         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
28161         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28162         * modules/sys_ioctl (Makefile.am): Substitute
28163         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28164         * modules/socket (configure.ac): On native Windows, set
28165         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
28166         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
28167         Reported by Sam Steingold <sds@gnu.org>.
28168
28169 2009-08-10  Bruno Haible  <bruno@clisp.org>
28170
28171         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
28172         * modules/ioctl (configure.ac): Likewise.
28173
28174 2009-08-10  Bruno Haible  <bruno@clisp.org>
28175
28176         Avoid collision between gnulib wrapper and libintl wrapper.
28177         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
28178         already defined in intl/printf.c.
28179         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
28180         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
28181
28182 2009-08-09  Bruno Haible  <bruno@clisp.org>
28183
28184         Make <sys/select.h> really self-contained, also on Solaris 10.
28185         * lib/sys_select.in.h: Include <string.h>.
28186         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
28187         Solaris 10 problem.
28188         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
28189         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
28190         Reported by Jim Meyering.
28191
28192 2009-08-09  Bruno Haible  <bruno@clisp.org>
28193
28194         Avoid warnings from 'aclocal' that are due to a use of macro name
28195         AM_XGETTEXT_OPTION that is not defined in automake.
28196         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
28197         automake.
28198         * modules/error (configure.ac): Likewise.
28199         * modules/propername (configure.ac): Likewise.
28200         * modules/vasprintf (configure.ac): Likewise.
28201         * modules/verror (configure.ac): Likewise.
28202         * modules/xprintf (configure.ac): Likewise.
28203         * modules/xvasprintf (configure.ac): Likewise.
28204
28205 2009-08-08  Bruno Haible  <bruno@clisp.org>
28206
28207         Avoid compilation error in C++ mode.
28208         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
28209         Reported by Sam Steingold <sds@gnu.org>.
28210
28211 2009-08-08  Bruno Haible  <bruno@clisp.org>
28212
28213         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
28214         for the various Unix platforms.
28215         * doc/posix-headers/limits.texi: Update platforms list regarding
28216         HOST_NAME_MAX.
28217         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28218
28219 2009-08-07  Jim Meyering  <meyering@redhat.com>
28220
28221         selinux-at: fix typo in a comment
28222         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
28223         Spotted by Paolo Bonzini.
28224
28225         selinux-at: remove redundant m4 code, add documentation
28226         * modules/selinux-at (configure.ac): Remove redundant code.
28227         LIB_SELINUX is already set via the dependent module, selinux-h.
28228         (Include): Add quotes around selinux-at.h.
28229         * lib/selinux-at.h: Add documentation.
28230         Reported by Bruno Haible in
28231         http://marc.info/?l=gnulib-bug&m=124958988300749
28232
28233 2009-08-07  Bruno Haible  <bruno@clisp.org>
28234
28235         Avoid link error on MacOS X 10.3 and 10.4.
28236         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
28237         on non-ELF systems.
28238         * lib/argp-pv.c (argp_program_version): Likewise.
28239         Reported by Simon Josefsson.
28240
28241 2009-08-07  Simon Josefsson  <simon@josefsson.org>
28242
28243         * tests/test-version-etc.sh: Use $EXEEXT.
28244
28245 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
28246
28247         update-copyright: update documentation to point to maint.mk
28248         * build-aux/update-copyright: Here.
28249
28250 2009-08-06  Jim Meyering  <meyering@redhat.com>
28251
28252         maint.mk: support update-copyright-local
28253         * top/maint.mk (update-copyright-local): Define place-holder.
28254         (update-copyright): Depend on $(update-copyright-local).
28255
28256 2009-08-06  Jim Meyering  <meyering@redhat.com>
28257
28258         selinux-at: new module
28259         Initially written for coreutils, this module will soon be
28260         used by findutils, too.
28261         * MODULES.html.sh [Misc]: Add selinux-at.
28262         * lib/selinux-at.h: New file, from coreutils.
28263         * lib/selinux-at.c: Likewise.
28264         * modules/selinux-at: Likewise.
28265         (License): Change from LGPL to GPL, since it depends
28266         on the GPL'd openat module.
28267
28268         doc: update README
28269         * README: Remove references to cogito.
28270         Remove cvs-repo-updating instructions from 2007.
28271         Don't imply that CVS is better if you have limited disk space.
28272
28273 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28274
28275         update-copyright: support C-style comments
28276         * build-aux/update-copyright: Implement and document.
28277         * tests/test-update-copyright.sh: Test.
28278
28279 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28280
28281         update-copyright: support omitted "(C)"
28282         * build-aux/update-copyright: Implement and document.  Also,
28283         allow variable whitespace before "(C)".
28284         * tests/test-update-copyright.sh: Test.
28285
28286 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28287
28288         update-copyright: don't trip on non-FSF copyright statements
28289         * build-aux/update-copyright: Fix so that the first correctly
28290         formatted FSF copyright statement is recognized no matter what
28291         appears before it.  Update documentation.
28292         * tests/test-update-copyright.sh: Test that.
28293
28294 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28295
28296         update-copyright: clean up code a little
28297         * build-aux/update-copyright: Append "_re" to the name of any
28298         variable holding a regular expression.
28299         Replace "old" and "new" with "stmt" in variable names.
28300         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
28301         handled correctly.
28302         Format code more consistently.
28303
28304 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
28305
28306         update-copyright-tests: improve portability
28307         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
28308         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
28309
28310 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28311
28312         update-copyright: support @copyright{} and &copy;
28313         * build-aux/update-copyright: Implement and document.
28314         * tests/test-update-copyright.sh: Test.
28315
28316 2009-08-04  Jim Meyering  <meyering@redhat.com>
28317
28318         update-copyright-tests: correctly test EOL=\r\n handling
28319         * tests/test-update-copyright.sh: Put \r at the end of some lines
28320         for the dos-eol tests.  Based on a patch by Joel E. Denny.
28321
28322         maint.mk: make update-copyright exclusion list more configurable
28323         * top/maint.mk (update-copyright): Default to excluding COPYING,
28324         but allow an override, in case someone does want to update that file.
28325
28326         maint.mk: don't update copyright date in COPYING
28327         * top/maint.mk (update-copyright): Exclude COPYING.
28328
28329         maint.mk: add a copyright-updating rule
28330         * top/maint.mk (update-copyright): New rule.
28331         Derived from coreutils/Makefile.am.
28332
28333         update-copyright: rename some variables
28334         * build-aux/update-copyright: Rename a few variables for clarity.
28335         Tweak syntax.  List Joel E. Denny as coauthor.
28336
28337 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
28338
28339         update-copyright: fix bug for 2-digit last year and add tests
28340         * build-aux/update-copyright: Fix bug.
28341         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
28342         specified.
28343         * modules/update-copyright-tests: New
28344         * tests/test-update-copyright.sh: New.
28345
28346 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28347
28348         update-copyright: handle leading tabs in line prefix
28349         * build-aux/update-copyright: Count leading tabs as 8 spaces
28350         when computing margin.  This helps with the formatting of
28351         ChangeLogs, for example.
28352         Fix documentation a little.
28353
28354 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28355
28356         update-copyright: support EOL=\r\n
28357         * build-aux/update-copyright: Implement that.
28358
28359 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
28360
28361         update-copyright: automatically format copyright statements
28362         * build-aux/update-copyright: Implement that.
28363         Also, be a little more predictable and safer by always failing
28364         when the full copyright format is not perfectly recognized as an
28365         unbroken whole.  Discussed at
28366         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
28367         Rewrite documentation.
28368
28369 2009-08-03  Bruno Haible  <bruno@clisp.org>
28370
28371         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
28372
28373 2009-08-02  Bruno Haible  <bruno@clisp.org>
28374
28375         Tests for module 'uname'.
28376         * modules/uname-tests: New file.
28377         * tests/test-uname.c: New file.
28378
28379         New module 'uname'.
28380         * lib/uname.c: New file.
28381         * m4/uname.m4: New file.
28382         * modules/uname: New file.
28383         * doc/posix-functions/uname.texi: Mention the new module.
28384
28385 2009-08-02  Bruno Haible  <bruno@clisp.org>
28386
28387         Tests for module 'sys_utsname'.
28388         * modules/sys_utsname-tests: New file.
28389         * tests/test-sys_utsname.c: New file.
28390
28391         New module 'sys_utsname'.
28392         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
28393         * m4/sys_utsname_h.m4: New file.
28394         * modules/sys_utsname: New file.
28395         * doc/posix-headers/sys_utsname.texi: Mention the new module.
28396
28397 2009-08-02  Bruno Haible  <bruno@clisp.org>
28398
28399         Implicitly initialize the sockets library.
28400         * lib/gethostname.c: Include sockets.h.
28401         (rpl_gethostname): Invoke gl_sockets_startup.
28402         * lib/socket.c: Include sockets.h.
28403         (rpl_socket): Invoke gl_sockets_startup.
28404         * modules/gethostname (Depends-on): Add sockets.
28405         * modules/socket (Depends-on): Likewise.
28406         * tests/test-poll.c: Don't include sockets.h.
28407         (main): Don't invoke gl_sockets_startup.
28408         * tests/test-select.c: Don't include sockets.h.
28409         (main): Don't invoke gl_sockets_startup.
28410
28411 2009-08-02  Bruno Haible  <bruno@clisp.org>
28412
28413         Allow multiple calls to gl_sockets_startup.
28414         * lib/sockets.c (initialized_sockets_version): New variable.
28415         (gl_sockets_startup): Do nothing if already called for this or a higher
28416         version.
28417         (gl_sockets_cleanup): Reset initialized_sockets_version.
28418
28419 2009-08-03  Simon Josefsson  <simon@josefsson.org>
28420
28421         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
28422         different project/version.
28423
28424 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
28425             Bruno Haible  <bruno@clisp.org>
28426
28427         Tests for module 'pipe-filter-gi'.
28428         * modules/pipe-filter-gi-tests: New file.
28429         * tests/test-pipe-filter-gi1.sh: New file.
28430         * tests/test-pipe-filter-gi1.c: New file.
28431         * tests/test-pipe-filter-gi2.sh: New file.
28432         * tests/test-pipe-filter-gi2-main.c: New file.
28433         * tests/test-pipe-filter-gi2-child.c: New file.
28434
28435         New module 'pipe-filter-gi'.
28436         * lib/pipe-filter-gi.c: New file.
28437         * modules/pipe-filter-gi: New file.
28438
28439 2009-08-02  Bruno Haible  <bruno@clisp.org>
28440             Paolo Bonzini  <bonzini@gnu.org>
28441
28442         Tests for module 'pipe-filter-ii'.
28443         * modules/pipe-filter-ii-tests: New file.
28444         * tests/test-pipe-filter-ii1.sh: New file.
28445         * tests/test-pipe-filter-ii1.c: New file.
28446         * tests/test-pipe-filter-ii2.sh: New file.
28447         * tests/test-pipe-filter-ii2-main.c: New file.
28448         * tests/test-pipe-filter-ii2-child.c: New file.
28449
28450         New module 'pipe-filter-ii'.
28451         * lib/pipe-filter.h: New file.
28452         * lib/pipe-filter-ii.c: New file.
28453         * lib/pipe-filter-aux.h: New file.
28454         * modules/pipe-filter-ii: New file.
28455
28456 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28457
28458         * lib/gc-libgcrypt.c: Change copyright to FSF.
28459         * lib/gc-gnulib.c: Likewise.
28460
28461 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
28462
28463         * lib/gethostname.c: Include limits.h.
28464
28465 2009-08-02  Simon Josefsson  <simon@josefsson.org>
28466             Bruno Haible  <bruno@clisp.org>
28467
28468         Ensure HOST_NAME_MAX as part of the gethostname module.
28469         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
28470         define also HOST_NAME_MAX.
28471         * tests/test-gethostname.c: Include <limits.h>.
28472         (main): Check also HOST_NAME_MAX.
28473         * doc/posix-headers/limits.texi: Document the mingw problem.
28474
28475 2009-08-02  Bruno Haible  <bruno@clisp.org>
28476
28477         * lib/gethostname.c (gethostname): Fix handling of large len argument.
28478         Add comments.
28479
28480 2009-03-31  Simon Josefsson  <simon@josefsson.org>
28481
28482         * lib/gethostname.c: Add Windows wrapper.
28483         * m4/gethostname.m4: Look for gethostname in -lws2_32.
28484         * modules/gethostname: Depend on sys_socket & errno, for also
28485         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
28486         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
28487
28488 2009-07-31  Jim Meyering  <meyering@redhat.com>
28489
28490         getloadavg: fix symbol name in comment
28491         * lib/getloadavg.c: Correct a typo I introduced when adding
28492         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
28493         Matt Kraai spotted the problem.
28494
28495 2009-07-29  Matt Kraai  <mkraai@beckman.com>
28496
28497         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
28498         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
28499         code also if ! defined N_NAME_POINTER.
28500         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
28501         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
28502         but the n_name member is a 12-byte array.
28503
28504 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
28505
28506         update-copyright: generalize comment handling
28507         * build-aux/update-copyright: Handle copyright statements
28508         within more comment styles.
28509         Document usage.
28510         Report any file with an external copyright holder or parse failure.
28511
28512 2009-07-29  Jim Meyering  <meyering@redhat.com>
28513
28514         mktime: correct setting of REPLACE_MKTIME
28515         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
28516
28517         update-copyright: new module
28518         * modules/update-copyright: New file.
28519         * build-aux/update-copyright: New file.
28520         * MODULES.html.sh (maint+release support): Add update-copyright.
28521
28522 2009-07-27  Bruno Haible  <bruno@clisp.org>
28523
28524         Fix compilation error when <ctime> is used and mktime is replaced.
28525         * lib/time.in.h (mktime): New declaration.
28526         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
28527         REPLACE_MKTIME instead of defining mktime in config.h.
28528         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
28529         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
28530         Reported by Ross McFarland <rwmcfa1@neces.com>.
28531
28532 2009-07-27  Bruno Haible  <bruno@clisp.org>
28533
28534         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
28535         Reported by Matt Kraai <mkraai@beckman.com>.
28536
28537 2009-07-25  Jim Meyering  <meyering@redhat.com>
28538
28539         maint.mk: avoid warnings about missing files
28540         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
28541         diagnostic when .prev-version does not exist.
28542         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
28543         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
28544         nonexistent cfg.mk.
28545         Suggestions from Simon Josefsson.
28546
28547 2009-07-25  Bruno Haible  <bruno@clisp.org>
28548
28549         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
28550         defined as macros. Needed on QNX 6.4.1.
28551         Reported by Matt Kraai <mkraai@beckman.com>.
28552
28553 2009-07-23  Jim Meyering  <meyering@redhat.com>
28554
28555         maint.mk: invoke "make dist" with a working value of XZ_OPT
28556         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
28557
28558 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
28559
28560         Make fseeko.c compile on QNX.
28561         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
28562
28563 2009-07-22  Peter Simons  <simons@cryp.to>
28564
28565         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
28566         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
28567         * lib/md4.h: Likewise.
28568         * lib/md5.h: Likewise.
28569         * lib/sha1.h: Likewise.
28570         * lib/sha256.h: Likewise.
28571         * lib/sha512.h: Likewise.
28572
28573         tests-sha1: don't assign literal string to 'char *' variable
28574         * tests/test-sha1.c (main): Declare locals with "const" to match
28575         attributes of the right hand side.
28576
28577 2009-07-21  Eric Blake  <ebb9@byu.net>
28578
28579         dup2: fix more mingw problems
28580         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
28581         fd to itself.
28582         * doc/posix-functions/dup2.texi (dup2): Document the bug.
28583         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
28584         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
28585         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
28586         care of mingw bugs.
28587
28588 2009-07-21  Jim Meyering  <meyering@redhat.com>
28589
28590         vc-list-files: avoid failure when /bin/sh is dash
28591         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
28592         On some Debian based systems, /bin/sh is a symlink to dash, and running
28593         this command would omit the "/" following each 'tests' prefix:
28594           dash -x build-aux/vc-list-files -C . tests
28595         That is because bash and dash work differently:
28596           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
28597           bash ok
28598           dash odd
28599
28600 2009-07-21  Eric Blake  <ebb9@byu.net>
28601
28602         dup2-tests: test previous patch
28603         * modules/dup2-tests: New file.
28604         * tests/test-dup2.c: Likewise.
28605         * tests/test-open.c (main): Avoid unspecified behavior.
28606         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
28607         test.
28608
28609         dup2: work around mingw and cygwin 1.5 bug
28610         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
28611         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28612         * modules/unistd (Makefile.am): Substitute it.
28613         * lib/unistd.in.h (dup2): Declare the replacement.
28614         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
28615         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
28616         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
28617         * modules/execute (Depends-on): Add dup2.
28618         * modules/fseterr (Depends-on): Likewise.
28619         * modules/pipe (Depends-on): Likewise.
28620         * modules/posix_spawn-internal (Depends-on): Likewise.
28621
28622 2009-07-21  Bruno Haible  <bruno@clisp.org>
28623
28624         * modules/.gitattributes: New file.
28625
28626 2009-07-20  Bruno Haible  <bruno@clisp.org>
28627
28628         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
28629         (main): Use it.
28630
28631 2009-07-20  Eric Blake  <ebb9@byu.net>
28632
28633         test-pipe: make a bit more robust.
28634         * tests/test-pipe.c (myerr): Allow error messages regardless of
28635         what we do to stderr.
28636         (test_pipe): Rearrange to avoid deadlock.
28637         (child_main): Try a larger read, to ensure we avoided deadlock.
28638         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
28639         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
28640         if misused.
28641
28642 2009-07-19  Jim Meyering  <meyering@redhat.com>
28643
28644         fts: avoid false-positive cycle-detection
28645         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
28646         for each new command line argument.
28647
28648 2009-07-19  Bruno Haible  <bruno@clisp.org>
28649
28650         Fix build error on mingw with the modules sys_select and unistd.
28651         * modules/acl-tests (Depends-on): Add close.
28652         * modules/binary-io-tests (Depends-on): Likewise.
28653         * modules/closein-tests (Depends-on): Likewise.
28654         * modules/flock-tests (Depends-on): Likewise.
28655         * modules/fsync-tests (Depends-on): Likewise.
28656         * modules/lseek-tests (Depends-on): Likewise.
28657         * modules/pipe-tests (Depends-on): Likewise.
28658         * modules/posix_spawn-tests (Depends-on): Likewise.
28659         * modules/posix_spawnp-tests (Depends-on): Likewise.
28660         * modules/stat-time-tests (Depends-on): Likewise.
28661         * modules/yesno-tests (Depends-on): Likewise.
28662
28663 2009-07-19  Bruno Haible  <bruno@clisp.org>
28664
28665         Unify conditionals.
28666         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
28667         macros, not at the compiler macros.
28668         * lib/pipe.c: Likewise.
28669         * lib/execute.c: Likewise.
28670         * lib/spawni.c: Likewise.
28671
28672 2009-07-19  Bruno Haible  <bruno@clisp.org>
28673
28674         Fix handling of closed stdin/stdout/stderr on mingw.
28675         * lib/w32spawn.h: Include unistd.h.
28676         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
28677         file descriptor with O_NOINHERIT flag.
28678         (fd_safer_noinherit): New function, based on fd-safer.c.
28679         (dup_safer_noinherit): New function, based on dup-safer.c.
28680         (undup_safer_noinherit): New function.
28681         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
28682         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
28683         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
28684         instead of fd_safer.
28685         * tests/test-pipe.c: Include <windows.h>.
28686         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
28687         result.
28688
28689         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
28690         from main.
28691         (test_pipe): Pass an extra argument for disambiguation.
28692         (main): Invoke parent_main or child_main.
28693
28694         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
28695         consistently.
28696
28697 2009-07-18  Eric Blake  <ebb9@byu.net>
28698
28699         test-pipe: fix mingw build
28700         * tests/test-pipe.c (main): Avoid fcntl on mingw.
28701
28702 2009-07-18  Bruno Haible  <bruno@clisp.org>
28703
28704         * modules/pipe-tests (Makefile.am): Fix typo.
28705
28706 2009-07-18  Eric Blake  <ebb9@byu.net>
28707
28708         error: fix mingw build
28709         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
28710         Reported by Bruno Haible.
28711
28712         error: avoid undefined use of stdout
28713         * lib/error.c (error, error_at_line): Check that fd 1 is open
28714         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
28715         is handling faults and the close_stdout module wants to report the
28716         detection of closed stdout as an error.
28717
28718 2009-07-17  Eric Blake  <ebb9@byu.net>
28719
28720         pipe: be robust in face of closed fds
28721         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
28722         should cause child to misbehave.
28723         * modules/pipe-tests: New module.
28724         * tests/test-pipe.c: New file.
28725         * tests/test-pipe.sh: New file.
28726         Reported by Akim Demaille.
28727
28728 2009-07-14  Bruno Haible  <bruno@clisp.org>
28729
28730         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
28731         Reported by anonymous kc.
28732
28733 2009-07-07  Jim Meyering  <meyering@redhat.com>
28734
28735         maint.mk: don't look for translatable strings in *.m4 or *.mk
28736         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
28737         when searching for translatable strings.
28738
28739 2009-07-05  Jim Meyering  <meyering@redhat.com>
28740
28741         remove superfluous parentheses in STREQ definition
28742         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
28743         * lib/getugroups.c (STREQ): Likewise.
28744         * lib/fnmatch.c (STREQ): Likewise.
28745         Spotted by Bruno Haible.
28746
28747 2009-07-04  Jim Meyering  <meyering@redhat.com>
28748
28749         argv-iter: new module
28750         * MODULES.html.sh: Add argv-iter.
28751         * lib/argv-iter.c, lib/argv-iter.h: New files.
28752         * modules/argv-iter: New file.
28753         * modules/argv-iter-tests: New file.
28754         * tests/test-argv-iter.c: Test it.
28755
28756 2009-07-04  Bruno Haible  <bruno@clisp.org>
28757
28758         Fix assertion.
28759         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
28760         contains more exact copies of a given entry than file2, leave the extra
28761         copies unpaired rather than aborting.
28762         Reported by Eric Blake.
28763
28764 2009-07-02  Bruno Haible  <bruno@clisp.org>
28765
28766         Speedup git-merge-changelog for git cherry-pick.
28767         * lib/git-merge-changelog.c (struct entries_mapping): New type.
28768         (entries_mapping_get): New function, extracted from compute_mapping.
28769         (entries_mapping_reverse_get): New function.
28770         (compute_mapping): Add a 'full' argument. Return the result in a
28771         'struct entries_mapping'.
28772         (main): Update. Access the mappings through entries_mapping_get.
28773         Reported by Eric Blake.
28774
28775 2009-07-02  Bruno Haible  <bruno@clisp.org>
28776
28777         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
28778         best_i.
28779
28780 2009-07-02  Bruno Haible  <bruno@clisp.org>
28781
28782         Speed up approximate search for matching ChangeLog entries.
28783         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
28784         argument. Call fstrcmp_bounded instead of fstrcmp.
28785         (compute_mapping, try_split_merged_entry, main): Update callers.
28786
28787 2009-07-02  Bruno Haible  <bruno@clisp.org>
28788
28789         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
28790
28791 2009-06-30  Bruno Haible  <bruno@clisp.org>
28792
28793         Reduce the number of uc_is_cased calls.
28794         * lib/unicase.h (casing_suffix_context_t): Add
28795         'first_char_except_ignorable' field.
28796         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
28797         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
28798         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
28799         Update initializer.
28800         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
28801         case-ignorable characters.
28802         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
28803         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
28804         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
28805         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
28806         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
28807
28808 2009-06-30  Bruno Haible  <bruno@clisp.org>
28809
28810         Tests for module 'unicase/ignorable'.
28811         * modules/unicase/ignorable-tests: New file.
28812         * tests/unicase/test-ignorable.c: New file, generated by
28813         gen-uni-tables.
28814
28815         Tests for module 'unicase/cased'.
28816         * modules/unicase/cased-tests: New file.
28817         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
28818         * tests/unicase/test-predicate-part1.h: New file, derived from
28819         tests/unictype/test-predicate-part1.h.
28820         * tests/unicase/test-predicate-part2.h: New file, same as
28821         tests/unictype/test-predicate-part2.h.
28822
28823         Fix evaluation of "Before C" condition of FINAL_SIGMA.
28824         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
28825         (output_casing_properties): New function.
28826         (main): Call it.
28827         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
28828         * lib/unicase/cased.c: Include unictype/bitmap.h.
28829         (uc_is_cased): Define through a bitmap lookup.
28830         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
28831         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
28832         (uc_is_case_ignorable): Define through a bitmap lookup.
28833         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
28834         lib/unictype/bitmap.h.
28835         (Depends-on): Add inline. Clean up.
28836         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
28837         lib/unictype/bitmap.h.
28838         (Depends-on): Add inline. Clean up.
28839         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
28840         recognition.
28841         * tests/unicase/test-u16-tolower.c (main): Likewise.
28842         * tests/unicase/test-u32-tolower.c (main): Likewise.
28843
28844 2009-06-30  Bruno Haible  <bruno@clisp.org>
28845
28846         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
28847         * lib/unicase/u16-casemap.c: Likewise.
28848         * lib/unicase/u32-casemap.c: Likewise.
28849
28850 2009-06-29  Bruno Haible  <bruno@clisp.org>
28851
28852         Define u32_casefold as a wrapper around u32_ct_casefold.
28853         * lib/unicase/u32-casefold.c: Update.
28854         * modules/unicase/u32-casefold (Depends-on): Add
28855         unicase/u32-ct-casefold, unicase/empty-prefix-context,
28856         unicase/empty-suffix-context. Clean up.
28857
28858         Define u16_casefold as a wrapper around u16_ct_casefold.
28859         * lib/unicase/u16-casefold.c: Update.
28860         * modules/unicase/u16-casefold (Depends-on): Add
28861         unicase/u16-ct-casefold, unicase/empty-prefix-context,
28862         unicase/empty-suffix-context. Clean up.
28863
28864         Define u8_casefold as a wrapper around u8_ct_casefold.
28865         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
28866         * lib/unicase/u8-casefold.c: Update.
28867         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
28868         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28869
28870         Define u32_totitle as a wrapper around u32_ct_totitle.
28871         * lib/unicase/u32-totitle.c: Update.
28872         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
28873         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28874
28875         Define u16_totitle as a wrapper around u16_ct_totitle.
28876         * lib/unicase/u16-totitle.c: Update.
28877         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
28878         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28879
28880         Define u8_totitle as a wrapper around u8_ct_totitle.
28881         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
28882         functions.
28883         (FUNC): Delegate to U_CT_TOTITLE.
28884         * lib/unicase/u8-totitle.c: Update.
28885         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
28886         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
28887
28888         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
28889         invocation.
28890         * modules/unicase/u32-tolower (Depends-on): Add
28891         unicase/empty-prefix-context, unicase/empty-suffix-context.
28892
28893         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
28894         invocation.
28895         * modules/unicase/u16-tolower (Depends-on): Add
28896         unicase/empty-prefix-context, unicase/empty-suffix-context.
28897
28898         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
28899         * modules/unicase/u8-tolower (Depends-on): Add
28900         unicase/empty-prefix-context, unicase/empty-suffix-context.
28901
28902         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
28903         invocation.
28904         * modules/unicase/u32-toupper (Depends-on): Add
28905         unicase/empty-prefix-context, unicase/empty-suffix-context.
28906
28907         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
28908         invocation.
28909         * modules/unicase/u16-toupper (Depends-on): Add
28910         unicase/empty-prefix-context, unicase/empty-suffix-context.
28911
28912         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
28913         * modules/unicase/u8-toupper (Depends-on): Add
28914         unicase/empty-prefix-context, unicase/empty-suffix-context.
28915
28916         New module 'unicase/u32-ct-casefold'.
28917         * lib/unicase/u32-ct-casefold.c: New file.
28918         * modules/unicase/u32-ct-casefold: New file.
28919
28920         New module 'unicase/u16-ct-casefold'.
28921         * lib/unicase/u16-ct-casefold.c: New file.
28922         * modules/unicase/u16-ct-casefold: New file.
28923
28924         New module 'unicase/u8-ct-casefold'.
28925         * lib/unicase/u8-ct-casefold.c: New file.
28926         * lib/unicase/u-ct-casefold.h: New file, derived from
28927         lib/unicase/u-casefold.h.
28928         * modules/unicase/u8-ct-casefold: New file.
28929
28930         New module 'unicase/u32-ct-totitle'.
28931         * lib/unicase/u32-ct-totitle.c: New file.
28932         * modules/unicase/u32-ct-totitle: New file.
28933
28934         New module 'unicase/u16-ct-totitle'.
28935         * lib/unicase/u16-ct-totitle.c: New file.
28936         * modules/unicase/u16-ct-totitle: New file.
28937
28938         New module 'unicase/u8-ct-totitle'.
28939         * lib/unicase/u8-ct-totitle.c: New file.
28940         * lib/unicase/u-ct-totitle.h: New file, derived from
28941         lib/unicase/u-totitle.h.
28942         * modules/unicase/u8-ct-totitle: New file.
28943
28944         New module 'unicase/u32-ct-tolower'.
28945         * lib/unicase/u32-ct-tolower.c: New file.
28946         * modules/unicase/u32-ct-tolower: New file.
28947
28948         New module 'unicase/u16-ct-tolower'.
28949         * lib/unicase/u16-ct-tolower.c: New file.
28950         * modules/unicase/u16-ct-tolower: New file.
28951
28952         New module 'unicase/u8-ct-tolower'.
28953         * lib/unicase/u8-ct-tolower.c: New file.
28954         * modules/unicase/u8-ct-tolower: New file.
28955
28956         New module 'unicase/u32-ct-toupper'.
28957         * lib/unicase/u32-ct-toupper.c: New file.
28958         * modules/unicase/u32-ct-toupper: New file.
28959
28960         New module 'unicase/u16-ct-toupper'.
28961         * lib/unicase/u16-ct-toupper.c: New file.
28962         * modules/unicase/u16-ct-toupper: New file.
28963
28964         New module 'unicase/u8-ct-toupper'.
28965         * lib/unicase/u8-ct-toupper.c: New file.
28966         * modules/unicase/u8-ct-toupper: New file.
28967
28968         Add context arguments to u*_casemap functions.
28969         * lib/unicase/unicasemap.h: Include unicase.h.
28970         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
28971         suffix_context arguments.
28972         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
28973         functions.
28974         (FUNC): Add prefix_context and suffix_context arguments. Use
28975         uc_is_cased and uc_is_case_ignorable.
28976         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
28977         * lib/unicase/u16-casemap.c: Likewise.
28978         * lib/unicase/u32-casemap.c: Likewise.
28979         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
28980         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28981         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
28982         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28983         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
28984         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
28985
28986         New module 'unicase/u32-suffix-context'.
28987         * lib/unicase/u32-suffix-context.c: New file.
28988         * modules/unicase/u32-suffix-context: New file.
28989
28990         New module 'unicase/u16-suffix-context'.
28991         * lib/unicase/u16-suffix-context.c: New file.
28992         * modules/unicase/u16-suffix-context: New file.
28993
28994         New module 'unicase/u8-suffix-context'.
28995         * lib/unicase/u8-suffix-context.c: New file.
28996         * lib/unicase/u-suffix-context.h: New file.
28997         * modules/unicase/u8-suffix-context: New file.
28998
28999         New module 'unicase/empty-suffix-context'.
29000         * lib/unicase/empty-suffix-context.c: New file.
29001         * modules/unicase/empty-suffix-context: New file.
29002
29003         New module 'unicase/u32-prefix-context'.
29004         * lib/unicase/u32-prefix-context.c: New file.
29005         * modules/unicase/u32-prefix-context: New file.
29006
29007         New module 'unicase/u16-prefix-context'.
29008         * lib/unicase/u16-prefix-context.c: New file.
29009         * modules/unicase/u16-prefix-context: New file.
29010
29011         New module 'unicase/u8-prefix-context'.
29012         * lib/unicase/u8-prefix-context.c: New file.
29013         * lib/unicase/u-prefix-context.h: New file.
29014         * lib/unicase/context.h: New file.
29015         * modules/unicase/u8-prefix-context: New file.
29016
29017         New module 'unicase/empty-prefix-context'.
29018         * lib/unicase/empty-prefix-context.c: New file.
29019         * modules/unicase/empty-prefix-context: New file.
29020
29021         New module 'unicase/ignorable'.
29022         * lib/unicase/ignorable.c: New file.
29023         * modules/unicase/ignorable: New file.
29024
29025         New module 'unicase/cased'.
29026         * lib/unicase/caseprop.h: New file.
29027         * lib/unicase/cased.c: New file.
29028         * modules/unicase/cased: New file.
29029
29030         New functions for case mapping of substrings.
29031         * lib/unicase.h (casing_prefix_context_t): New type.
29032         (unicase_empty_prefix_context): New variable.
29033         (u8_casing_prefix_context, u16_casing_prefix_context,
29034         u32_casing_prefix_context, u8_casing_prefixes_context,
29035         u16_casing_prefixes_context, u32_casing_prefixes_context): New
29036         declarations.
29037         (casing_suffix_context_t): New type.
29038         (unicase_empty_suffix_context): New variable.
29039         (u8_casing_suffix_context, u16_casing_suffix_context,
29040         u32_casing_suffix_context, u8_casing_suffixes_context,
29041         u16_casing_suffixes_context, u32_casing_suffixes_context,
29042         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
29043         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
29044         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
29045         declarations.
29046
29047 2009-06-28  Jim Meyering  <meyering@redhat.com>
29048
29049         boostrap: indent only with spaces
29050         * build-aux/bootstrap: Indent only with spaces, never TABs.
29051
29052         bootstrap: split long lines
29053         * build-aux/bootstrap: Keep line length < 80.
29054
29055         bootstrap: sync from coreutils
29056         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
29057         just as autoreconf does.  Verify a list of prerequisite
29058         package-name,version-number pairs if defined in bootstrap.conf.
29059         Refer to README-prereq, if prerequisites are not satisfied.
29060
29061 2009-06-27  Eric Blake  <ebb9@byu.net>
29062
29063         tests: add test for bogus NULL definition
29064         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
29065         * tests/test-stdlib.c: Likewise.
29066         * tests/test-string.c: Likewise.
29067         * tests/test-locale.c: Likewise.
29068         * tests/test-unistd.c: Likewise.
29069         * modules/stdio-tests (Depends-on): Add verify.
29070         * modules/stdlib-tests (Depends-on): Likewise.
29071         * modules/string-tests (Depends-on): Likewise.
29072         * modules/locale-tests (Depends-on): Likewise.
29073         * modules/unistd-tests (Depends-on): Likewise.
29074
29075 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
29076
29077         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
29078         self-explaining comment.
29079         * m4/selinux-selinux-h: Update serial.
29080         (gl_LIBSELINUX): New macro, adding a warning for missing development
29081         packages to code extracted from...
29082         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
29083         Add warning for missing development packages here, too.
29084
29085 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
29086
29087         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
29088
29089 2009-06-25  Eric Blake  <ebb9@byu.net>
29090
29091         version-etc: fix regression
29092         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
29093         gcc.
29094         (version_etc): Use it, to catch bugs with trailing NULL.
29095         * lib/version-etc.c (version_etc_arn): Delete unused argument.
29096         (version_etc_va): Fix logic bug.
29097         * modules/version-etc-tests: Add test.
29098         * tests/test-version-etc.c: New file.
29099         * tests/test-version-etc.sh: Likewise.
29100
29101 2009-06-25  Sam Steingold  <sds@gnu.org>
29102
29103         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
29104         mbtowc declaration.
29105
29106 2009-06-25  Eric Blake  <ebb9@byu.net>
29107
29108         fpurge: migrate into <stdio.h>
29109         * lib/fpurge.h: Delete...
29110         * lib/stdio.in.h (fpurge): ...and declare here, instead.
29111         * lib/fpurge.c (fpurge): Change declaring header.
29112         * modules/fpurge (Files): Drop deleted file.
29113         (Depends-on): Add stdio.
29114         (configure.ac): Set witness.
29115         * modules/stdio (Makefile.am): Support fpurge macros.
29116         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29117         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
29118         * lib/fflush.c: Update client.
29119         * tests/test-fpurge.c: Likewise.
29120         * NEWS: Mention the change.
29121
29122 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29123
29124         * lib/argp-version-etc.c (program_authors): Add const
29125         qualifier.
29126         * lib/version-etc.c: Fix typos in the comments.
29127         * modules/argp-version-etc: Depends on version-etc.
29128
29129 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29130
29131         argp-version-etc: new module.
29132
29133         * lib/argp-version-etc.c: New file.
29134         * lib/argp-version-etc.h: New file.
29135         * modules/argp-version-etc: New file.
29136         * modules/argp-version-etc-tests: New file.
29137         * tests/test-argp-version-etc.c: New test.
29138         * tests/test-argp-version-etc-1.sh: New test.
29139
29140 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
29141
29142         Provide additional interfaces and documentation for version-etc
29143         module.
29144
29145         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
29146         interfaces.
29147         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
29148         prototypes.
29149
29150 2009-06-24  Bruno Haible  <bruno@clisp.org>
29151
29152         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
29153         HAVE_LIB${NAME} macro.
29154         Reported by Sam Steingold <sds@gnu.org>.
29155
29156 2009-06-23  Simon Josefsson  <simon@josefsson.org>
29157
29158         * modules/hash-tests (test_hash_LDADD): Link to libintl when
29159         needed.
29160
29161 2009-06-21  Bruno Haible  <bruno@clisp.org>
29162
29163         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
29164         work.
29165         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
29166         together with LIB${NAME}, LTLIB${NAME}.
29167         Reported by Sam Steingold <sds@gnu.org>.
29168
29169 2009-06-20  Jim Meyering  <meyering@redhat.com>
29170
29171         tests: make sc_require_test_exit_idiom more generic
29172         * top/maint.mk (Exit_witness_file): New overridable variable.
29173         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
29174         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
29175
29176 2009-06-19  Jim Meyering  <meyering@redhat.com>
29177
29178         hash: reverse order of src/dst parameters in an internal interface
29179         * lib/hash.c (transfer_entries): Reverse order of parameters to
29180         put DST before SRC.  Adjust callers.
29181
29182         tests: test-hash: avoid wholesale duplication
29183         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
29184         Instead, use a loop and add a single conditional.
29185
29186         tests: test-hash: allow seed selection via a command line argument
29187         * tests/test-hash.c (get_seed): New function.
29188         (main): Use it.
29189
29190 2009-06-19  Eric Blake  <ebb9@byu.net>
29191
29192         hash: avoid memory leak on allocation failure
29193         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
29194         failure.  Factor repeated algorithm...
29195         (transfer_entries): ...into new helper routine.
29196         (hash_delete): React to hash_rehash return value.
29197
29198         hash: reduce memory pressure in hash_rehash no-op case
29199         * lib/hash.c (next_prime): Avoid overflow.
29200         (hash_initialize): Factor bucket size computation...
29201         (compute_bucket_size): ...into new helper function.
29202         (hash_rehash): Use new function and open coding to reduce memory
29203         pressure, and avoid a memory leak in USE_OBSTACK code.
29204         Reported by Jim Meyering.
29205
29206 2009-06-18  Eric Blake  <ebb9@byu.net>
29207
29208         hash: make rotation more obvious
29209         * modules/hash (Depends-on): Add bitrotate and stdint.
29210         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
29211         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
29212         (SIZE_MAX): Rely on headers for definition.
29213         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
29214         (raw_hasher): Use rotr_sz.
29215         Suggested by Jim Meyering.
29216
29217         hash: fix memory leak in last patch
29218         * lib/hash.c (hash_rehash): Avoid memory leak.
29219
29220         hash: avoid no-op rehashing
29221         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
29222
29223         hash: provide default callback functions
29224         * lib/hash.c (raw_hasher, raw_comparator): New functions.
29225         (hash_initialize): Use them as defaults.
29226         * tests/test-hash.c (main): Test this.
29227
29228         hash: minor optimization
29229         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
29230         when possible.
29231         (hash_initialize): Document this promise.
29232         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
29233         * tests/test-hash.c (hash_compare_strings): Test this.
29234
29235 2009-06-18  Bruno Haible  <bruno@clisp.org>
29236
29237         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
29238         going to be replaced anyway.
29239
29240 2009-06-18  Bruno Haible  <bruno@clisp.org>
29241
29242         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
29243         in one place.
29244         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
29245         be replaced anyway.
29246
29247 2009-06-18  Eric Blake  <ebb9@byu.net>
29248
29249         hash: check for resize before insertion
29250         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
29251         threshold before insertion, so that a pathological hash_rehash
29252         that fills every bucket can still trigger another rehash.
29253
29254 2009-06-18  Jim Meyering  <meyering@redhat.com>
29255
29256         hash-tests: add a loop around the small tests
29257         * tests/test-hash.c (main): Repeat small tests with selected
29258         small initial table sizes.
29259
29260 2009-06-17  Eric Blake  <ebb9@byu.net>
29261
29262         hash: minor cleanups
29263         * lib/hash.h (hash_entry): Make opaque, by moving...
29264         * lib/hash.c (hash_entry): ...here.
29265         (hash_insert): Clarify restrictions on what can be inserted.
29266         (hash_get_next): Clarify when it is safe to remove an element
29267         during traversal.
29268         (check_tuning): Skip verification when tuning is known safe.
29269         (hash_initialize): Clarify restrictions on tuning.
29270
29271 2009-06-17  Jim Meyering  <jim@meyering.net>
29272         and Eric Blake  <ebb9@byu.net>
29273
29274         hash-tests: new module
29275         * modules/hash-tests: New file.
29276         * tests/test-hash.c: New file.
29277
29278 2009-06-17  Eric Blake  <ebb9@byu.net>
29279
29280         strstr-simple: document new module
29281         * MODULES.html.sh: Document new module.
29282
29283         strstr, strcasestr: replace on platforms with broken memchr
29284         * modules/strstr: Split into...
29285         * modules/strstr-simple: ...new module that does not care about
29286         performance, but does care about glibc bug.
29287         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
29288         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
29289         if platform memchr is broken, per Debian bug 521737.
29290         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
29291         memchr.
29292         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
29293         * doc/posix-functions/strstr.texi (strstr): Document the fix.
29294         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29295         * modules/mountlist (Depends-on): Add strstr-simple.
29296         * modules/gen-uni-tables (Depends-on): Likewise.
29297         * modules/argz (Depends-on): Add strstr.
29298
29299 2009-06-17  Bruno Haible  <bruno@clisp.org>
29300
29301         * modules/posix_spawn-internal (Depends-on): Add errno.
29302
29303 2009-06-17  Bruno Haible  <bruno@clisp.org>
29304
29305         Define missing ESTALE on Interix 3.5.
29306         * lib/errno.in.h (ESTALE): Assign a value if missing.
29307         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
29308         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
29309         missing.
29310         * doc/posix-headers/errno.texi: Mention the Interix bug.
29311         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
29312
29313 2009-06-15  Eric Blake  <ebb9@byu.net>
29314
29315         memchr, memchr2: add valgrind exception
29316         * lib/memchr.valgrind: New file.
29317         * lib/memchr2.valgrind: New file.
29318         * modules/memchr (Files): Distribute valgrind file.
29319         * modules/memchr2 (Files): Likewise.
29320
29321         docs: memchr is no longer obsolete
29322         * MODULES.html.sh: Move memchr from obsolete to string.h section.
29323         * lib/string.in.h (memchr): Simplify logic.
29324
29325 2009-06-14  Jim Meyering  <meyering@redhat.com>
29326
29327         link-follow: fix the "checking..." message to not mention trailing slash
29328         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
29329         never considered trailing slashes.
29330
29331 2009-06-14  Bruno Haible  <bruno@clisp.org>
29332
29333         * m4/memchr.m4: Mention also the bug on IA-64.
29334         * doc/posix-functions/memchr.texi: Likewise.
29335
29336 2009-06-12  Eric Blake  <ebb9@byu.net>
29337
29338         memchr: detect broken x86_64 and alpha implementations
29339         * modules/memchr-tests (Depends-on): Move mmap detection...
29340         * modules/memchr (Depends-on): ...here.
29341         (configure.ac): Set indicator.
29342         * lib/string.in.h (memchr): Declare replacement.
29343         * modules/string (Makefile.am): Trigger replacement.
29344         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
29345         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
29346         bugs.
29347         * doc/posix-functions/memchr.texi (memchr): Document the bug.
29348         * modules/getpagesize (License): Relax license.
29349
29350 2009-06-11  Bruno Haible  <bruno@clisp.org>
29351
29352         * lib/idpriv.h: Add more references.
29353
29354 2009-06-08  Bruno Haible  <bruno@clisp.org>
29355
29356         Tests for module 'idpriv-droptemp'.
29357         * modules/idpriv-droptemp-tests: New file.
29358         * tests/test-idpriv-droptemp.sh: New file.
29359         * tests/test-idpriv-droptemp.su.sh: New file.
29360         * tests/test-idpriv-droptemp.c: New file.
29361
29362         New module 'idpriv-droptemp'.
29363         * lib/idpriv-droptemp.c: New file.
29364         * modules/idpriv-droptemp: New file.
29365
29366 2009-06-08  Bruno Haible  <bruno@clisp.org>
29367
29368         Tests for module 'idpriv-drop'.
29369         * modules/idpriv-drop-tests: New file.
29370         * tests/test-idpriv-drop.sh: New file.
29371         * tests/test-idpriv-drop.su.sh: New file.
29372         * tests/test-idpriv-drop.c: New file.
29373
29374         New module 'idpriv-drop'.
29375         * lib/idpriv.h: New file.
29376         * lib-idpriv-drop.c: New file.
29377         * m4/idpriv.m4: New file.
29378         * modules/idpriv-drop: New file.
29379
29380 2009-06-08  Bruno Haible  <bruno@clisp.org>
29381
29382         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
29383         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
29384         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
29385         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
29386         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
29387         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
29388         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
29389
29390 2009-06-08  Eric Blake  <ebb9@byu.net>
29391
29392         test-strstr: use memory fence, when possible
29393         * tests/test-strstr.c (main): Use memory fence, in order to be
29394         more likely to trigger Debian bug 521737.
29395         * modules/strstr-tests (Files): Pull in additional files.
29396
29397         memchr: no longer obsolete, for wider field testing
29398         * modules/memchr (Status, Notice): Delete, this module is no
29399         longer obsolete.
29400         * modules/vasnprintf (Depends-on): Add memchr.
29401
29402 2009-06-07  Jim Meyering  <meyering@redhat.com>
29403
29404         hash: declare some functions with the warn_unused_result attribute
29405         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
29406
29407 2009-06-07  Bruno Haible  <bruno@clisp.org>
29408
29409         * tests/test-alignof.c: Don't test int64_t if it does not exist.
29410         Reported by Eric Blake.
29411
29412 2009-06-06  Eric Blake  <ebb9@byu.net>
29413
29414         test-alignof: fix typo with long double
29415         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
29416         compiler error.
29417
29418 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
29419
29420         Escape non-texinfo { and }s.
29421         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
29422         markup error.
29423
29424 2009-06-04  Jim Meyering  <meyering@redhat.com>
29425
29426         gitlog-to-changelog: don't infloop on an empty commit log
29427         * build-aux/gitlog-to-changelog: Warn about an empty log message.
29428         Reported by Boris Petersen <transacid@centerim.org>.
29429
29430 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
29431
29432         version-etc: extend for packagers
29433         Add three new configure options, intended for packagers:
29434           --with-packager="packager name"
29435           --with-packager-version="packager-specific version"
29436           --with-packager-bug-reports="packager bug reporting"
29437         An example with coreutils:
29438           $ ./configure \
29439             --with-packager=Gentoo \
29440             --with-packager-bug-report=http://bugs.gentoo.org/ \
29441             --with-packager-version="patchset 1.6"
29442           $ ./src/ls --version | head -n2
29443           ls (GNU coreutils) 7.1-dirty
29444           Packaged by Gentoo (patchset 1.6)
29445         Note that the bug reporting info via --help doesn't show up because
29446         coreutils uses its own custom emit_bug_reporting_address() implementation
29447         in src/system.h.  If it didn't, it'd look like:
29448           $ ./src/ls --help | tail -n4
29449           Report bugs to <bug-coreutils@gnu.org>.
29450           Report Gentoo bugs to <http://bugs.gentoo.org/>.
29451           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
29452           General help using GNU software: <http://www.gnu.org/gethelp/>.
29453         * lib/version-etc.c: Print new information, if provided.
29454         * m4/version-etc.m4: New file.
29455         * modules/version-etc (Files): Add m4/version-etc.m4.
29456         (configure.ac): Add gl_VERSION_ETC.
29457
29458 2009-05-31  Bruno Haible  <bruno@clisp.org>
29459
29460         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
29461         and 'int64_t'.
29462         * modules/alignof-tests (Dependencies): Add stdint.
29463         Reported by Eric Blake.
29464
29465 2009-05-31  Bruno Haible  <bruno@clisp.org>
29466
29467         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
29468         restriction due to compiler bugs.
29469         Reported by Eric Blake.
29470
29471 2009-05-31  Simon Josefsson  <simon@josefsson.org>
29472             Bruno Haible  <bruno@clisp.org>
29473
29474         Fix test-alignof failure.
29475         * lib/alignof.h (alignof_slot): New macro.
29476         (alignof_type): New macro, with the same semantics as the previous
29477         'alignof'.
29478         (alignof): Alias to alignof_slot.
29479         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
29480         check that the results are usable as constant expressions.
29481
29482 2009-05-31  Bruno Haible  <bruno@clisp.org>
29483
29484         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
29485         * tests/test-memchr.c (main): Check that memchr does not read past the
29486         first occurrence of the byte.
29487         * tests/test-strstr.c (main): Update comment.
29488         Suggested by Eric Blake.
29489
29490 2009-05-30  Bruno Haible  <bruno@clisp.org>
29491
29492         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
29493         detail how to use dumpbin.
29494         Reported by David Byron <dbyron@dbyron.com>.
29495
29496 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29497
29498         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
29499
29500 2009-06-02  Simon Josefsson  <simon@josefsson.org>
29501
29502         * m4/manywarnings.m4: Add GCC 4.4 warnings.
29503
29504 2009-05-28  Bruno Haible  <bruno@clisp.org>
29505
29506         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
29507         build-aux/ files.
29508
29509 2009-05-28  Simon Josefsson  <simon@josefsson.org>
29510
29511         * gnulib-tool (func_import): Transform license on build-aux/ files too.
29512
29513 2009-05-27  Simon Josefsson  <simon@josefsson.org>
29514
29515         * gnulib-tool (sed_transform_main_lib_file)
29516         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
29517         regexps.
29518
29519 2009-05-26  Simon Josefsson  <simon@josefsson.org>
29520
29521         * tests/test-strstr.c: Add another self-test.
29522         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
29523         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
29524
29525 2009-05-23  Bruno Haible  <bruno@clisp.org>
29526
29527         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
29528         change.
29529
29530 2009-05-21  Bruno Haible  <bruno@clisp.org>
29531
29532         Simplify use of mode_t varargs.
29533         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
29534         uses 'mode_t' or 'int'.
29535         * lib/openat.c (openat): Likewise.
29536         * lib/open-safer.c (open_safer): Likewise.
29537         * m4/mode_t.m4: New file.
29538         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
29539         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
29540         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
29541         * modules/open (Files): Add m4/mode_t.m4.
29542         * modules/openat (Files): Likewise.
29543         * modules/fcntl-safer (Files): Likewise.
29544         Suggested by Eric Blake.
29545
29546 2009-05-21  Pádraig Brady  <P@draigbrady.com>
29547
29548         * doc/glibc-functions/fallocate.texi: New file.
29549         * doc/gnulib.texi: Include it.
29550
29551 2009-05-21  Eric Blake  <ebb9@byu.net>
29552             Bruno Haible  <bruno@clisp.org>
29553
29554         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
29555         invocations.
29556         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
29557
29558 2009-05-21  Eric Blake  <ebb9@byu.net>
29559             Bruno Haible  <bruno@clisp.org>
29560
29561         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
29562         include_next. Fix of 2008-11-20 commit.
29563         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
29564         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
29565         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
29566         NEXT_MATH_H.
29567         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
29568         instead of NEXT_MATH_H.
29569
29570 2009-05-21  Bruno Haible  <bruno@clisp.org>
29571
29572         Avoid redefinition warnings for SIZE_MAX.
29573         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
29574         Reported by Simon Josefsson.
29575
29576 2009-05-21  Bruno Haible  <bruno@clisp.org>
29577
29578         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
29579         AC_CACHE_VAL.
29580
29581 2009-05-20  Bruno Haible  <bruno@clisp.org>
29582
29583         Make zeroptr.h work on mingw.
29584         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
29585         mprotect.
29586         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
29587         * modules/memchr2-tests (configure.ac): Likewise.
29588         * modules/memcmp-tests (configure.ac): Likewise.
29589         * modules/memmem-tests (configure.ac): Likewise.
29590         * modules/memrchr-tests (configure.ac): Likewise.
29591         Reported by Simon Josefsson.
29592
29593 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29594
29595         * tests/test-glob.c: Include string.h for strcmp prototype.
29596
29597 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29598
29599         * modules/getdelim (Depends-on): Add explicit stdint, although it
29600         was implicitly already pulled in via realloc-posix.
29601         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
29602
29603 2009-05-20  Simon Josefsson  <simon@josefsson.org>
29604
29605         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
29606         G. Christensen" <tgc@jupiterrise.com>.
29607         * m4/sys_socket_h.m4: Check for sa_family_t.
29608         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
29609         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
29610         * tests/test-sys_socket.c: Check that sa_family_t works.
29611
29612 2009-05-18  Eric Blake  <ebb9@byu.net>
29613
29614         maint.mk: allow gnulib_dir in VPATH build
29615         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
29616
29617 2009-05-15  Jim Meyering  <meyering@redhat.com>
29618
29619         maint.mk: Give gnulib_dir a default definition.
29620         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
29621         Thus, most packages no longer need to specify this variable in cfg.mk
29622
29623 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
29624
29625         rename.m4: fix typos that would make non-mingw cross-configure fail
29626         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
29627
29628 2009-05-13  Eric Blake  <ebb9@byu.net>
29629
29630         mmap-anon: avoid out-of-order autoconf expansion
29631         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
29632         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
29633         * modules/memchr-tests (Depends-on): Add extensions.
29634         * modules/memchr2-tests (Depends-on): Add extensions.
29635         * modules/memcmp-tests (Depends-on): Add extensions.
29636         * modules/memmem-tests (Depends-on): Add extensions.
29637         * modules/memrchr-tests (Depends-on): Add extensions.
29638
29639 2009-05-13  Bruno Haible  <bruno@clisp.org>
29640
29641         Make some tests ISO C 99 compliant.
29642         * tests/zerosize-ptr.h: New file.
29643         * tests/test-memchr.c: Include zerosize-ptr.h.
29644         (main): Use a zero-size object pointer instead of NULL.
29645         * tests/test-memchr2.c: Include zerosize-ptr.h.
29646         (main): Use a zero-size object pointer instead of NULL.
29647         * tests/test-memcmp.c: Include zerosize-ptr.h.
29648         (main): Use a zero-size object pointer instead of NULL.
29649         * tests/test-memmem.c: Include zerosize-ptr.h.
29650         (main): Use a zero-size object pointer instead of NULL.
29651         * tests/test-memrchr.c: Include zerosize-ptr.h.
29652         (main): Use a zero-size object pointer instead of NULL.
29653         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
29654         m4/mmap-anon.m4.
29655         (Depends-on): Add getpagesize.
29656         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29657         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
29658         m4/mmap-anon.m4.
29659         (Depends-on): Add getpagesize.
29660         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29661         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
29662         m4/mmap-anon.m4.
29663         (Depends-on): Add getpagesize.
29664         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29665         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
29666         m4/mmap-anon.m4.
29667         (Depends-on): Add getpagesize.
29668         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29669         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
29670         m4/mmap-anon.m4.
29671         (Depends-on): Add getpagesize.
29672         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
29673
29674 2009-05-12  Bruno Haible  <bruno@clisp.org>
29675
29676         Tests for module 'alignof'.
29677         * modules/alignof-tests: New file.
29678         * tests/test-alignof.c: New file.
29679
29680 2009-05-12  Bruno Haible  <bruno@clisp.org>
29681
29682         Fix alignof macro.
29683         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
29684         vendor compilers that are always correct.
29685
29686 2009-05-12  Bruno Haible  <bruno@clisp.org>
29687
29688         Make the MAP_ANONYMOUS detection work on HP-UX 11.
29689         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
29690         not whether its fully works.
29691
29692 2009-05-12  Bruno Haible  <bruno@clisp.org>
29693
29694         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
29695
29696 2009-05-12  Jim Meyering  <meyering@redhat.com>
29697
29698         * top/maint.mk: Adjust backslash alignment.
29699
29700 2009-05-11  Simon Josefsson  <simon@josefsson.org>
29701
29702         * top/maint.mk: Make $(srcdir)/build-aux configurable.
29703
29704 2009-05-11  Eric Blake  <ebb9@byu.net>
29705
29706         argp: avoid undefined behavior
29707         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
29708         macros.
29709
29710 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29711
29712         * tests/test-vc-list-files-git.sh: Do git config of user.email and
29713         user.name to prevent git commit from complaining.
29714
29715 2009-05-10  Bruno Haible  <bruno@clisp.org>
29716
29717         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
29718         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
29719         it rewrites every file name only once.
29720         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
29721
29722 2009-05-08  Bruno Haible  <bruno@clisp.org>
29723
29724         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
29725         instead of 'max'.
29726
29727 2009-05-08  Simon Josefsson  <simon@josefsson.org>
29728
29729         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
29730         sockaddr_storage test.
29731
29732 2009-05-07  Simon Josefsson  <simon@josefsson.org>
29733
29734         * modules/sys_socket (Makefile.am): Substitute
29735         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
29736         * m4/sys_socket_h.m4: Check for sockaddr_storage.
29737         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
29738         * tests/test-sys_socket.c: Check sockaddr_storage.
29739
29740 2009-05-08  Bruno Haible  <bruno@clisp.org>
29741
29742         New module 'alignof'.
29743         * lib/alignof.h: New file.
29744         * modules/alignof: New file.
29745
29746 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29747             Bruno Haible  <bruno@clisp.org>
29748
29749         Fix test-file-has-acl on FreeBSD.
29750         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
29751         mask is implicitly added.
29752         * tests/test-file-has-acl.c: Include <signal.h>.
29753         (main): Terminate the test after 5 seconds.
29754         * modules/acl-tests (configure.ac): Check for alarm function.
29755
29756 2009-05-04  Bruno Haible  <bruno@clisp.org>
29757
29758         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
29759         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
29760         * modules/errno (configure.ac): Drop AC_REQUIRE.
29761         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
29762         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
29763
29764 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29765
29766         * modules/glob-tests: New module.
29767         * tests/test-glob.c: Add.
29768
29769 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29770
29771         * modules/fnmatch-tests: New module.
29772         * tests/test-fnmatch.c: Add.
29773
29774 2009-05-04  Eric Blake  <ebb9@byu.net>
29775
29776         maint: make the new no-submodule-changes rule VPATH-safe
29777         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
29778
29779 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29780             Bruno Haible  <bruno@clisp.org>
29781
29782         acl: Fix infinite loop on FreeBSD.
29783         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
29784         of return value from acl_get_entry.
29785         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
29786         Likewise.
29787
29788 2009-05-03  Bruno Haible  <bruno@clisp.org>
29789
29790         * lib/acl-internal.h (acl_entries): Clarify return value.
29791         * lib/acl_entries.c (acl_entries): Likewise.
29792
29793 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29794
29795         Bug fix in acl module.
29796         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
29797
29798 2009-05-03  Bruno Haible  <bruno@clisp.org>
29799
29800         Create gperf-generated file in the source dir, not in the build dir.
29801         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
29802         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
29803         * modules/unicase/locale-language (unicase/locale-languages.h):
29804         Likewise.
29805         * modules/unicase/special-casing (unicase/special-casing-table.h):
29806         Likewise.
29807         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
29808         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
29809         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
29810         Reported by Ralf Wildenhues.
29811
29812 2009-05-03  Bruno Haible  <bruno@clisp.org>
29813
29814         * modules/fnmatch (Description, configure.ac): Taken from
29815         fnmatch-posix.
29816         * modules/fnmatch-posix: Turn into a symbolic reference to the
29817         'fnmatch' module, and deprecate.
29818         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
29819
29820 2009-05-03  Bruno Haible  <bruno@clisp.org>
29821
29822         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
29823         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
29824         Reported by Ralf Wildenhues.
29825
29826 2009-05-04  Simon Josefsson  <simon@josefsson.org>
29827
29828         * m4/fnmatch.m4: Fix fnmatch re-define.
29829
29830 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
29831
29832         priv-set: new module and tests; adapt write-any-file
29833         * lib/priv-set.c: New file.
29834         * lib/priv-set.h: New file.
29835         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
29836         * lib/write-any-file.c: Simplify by using priv-set module.
29837         * m4/priv-set.m4: New file.
29838         * modules/priv-set: New file.
29839         * modules/unlinkdir: Add dependency on priv-set module.
29840         * modules/write-any-file: Likewise.
29841
29842         Tests for module 'priv-set'.
29843         * modules/priv-set-tests: New file.
29844         * tests/test-priv-set.c: New file.
29845
29846 2009-05-03  Jim Meyering  <meyering@redhat.com>
29847             Bruno Haible  <bruno@clisp.org>
29848
29849         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
29850         use the converted UTF-8 variant of the name instead.
29851
29852 2009-05-03  Jim Meyering  <meyering@redhat.com>
29853
29854         tests: tighten some getdate tests
29855         * tests/test-getdate.c (main): Tighten tests: require equality,
29856         not just greater than.  Set TZ envvar to UTC0.
29857
29858 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
29859
29860         getdate: correctly interpret "next monday" when run on a Monday
29861         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
29862         that e.g., "next tues" (when run on a tuesday) results in a date
29863         that is one week in the future, and not today's date.
29864         I.e., add a week when the wday is the same as the current one.
29865         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
29866         and earlier by Martin Bernreuther and Jan Minář.
29867         * tests/test-getdate.c (main): Check that "next DAY" is always in
29868         the future and that "last DAY" is always in the past.
29869
29870 2009-05-02  Jim Meyering  <meyering@redhat.com>
29871
29872         build: ensure that a release build fails when a submodule is unclean
29873         * top/maint.mk (no-submodule-changes): New rule.
29874         (alpha beta major): Depend on it.
29875
29876 2009-05-02  Bruno Haible  <bruno@clisp.org>
29877
29878         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
29879         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
29880         shell variable gl_fnmatch_required to detect which variant is
29881         requested.
29882         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
29883         gl_FUNC_FNMATCH_POSIX.
29884         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
29885         exclude fnmatch-posix.
29886
29887 2009-05-02  Bruno Haible  <bruno@clisp.org>
29888
29889         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
29890         * modules/mbsrtowcs (License): Change to LGPLv2+.
29891         * modules/strnlen1 (License): Likewise.
29892         Reported by Simon Josefsson.
29893
29894 2009-05-02  Bruno Haible  <bruno@clisp.org>
29895
29896         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
29897         "cross".
29898         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
29899         gnulib-tool was called with option --source-base=lib.
29900
29901 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29902
29903         Use automake *-local hooks without commands, for extensibility.
29904         * modules/localcharset (Makefile.am): Rename install-exec-local
29905         rule to install-exec-localcharset, and make it a prerequisite of
29906         install-exec-local.  Likewise, rename the uninstall-local rule to
29907         uninstall-localcharset, and make it a prerequisite of the former.
29908
29909 2009-05-01  Bruno Haible  <bruno@clisp.org>
29910
29911         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
29912         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29913         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
29914         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
29915         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
29916         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29917         m4/locale-zh.m4, m4/codeset.m4.
29918
29919         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
29920         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
29921         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
29922         m4/locale-zh.m4.
29923
29924         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
29925         REPLACE_WCRTOMB if mbstate_t must be replaced.
29926         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
29927         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
29928
29929 2009-05-01  Bruno Haible  <bruno@clisp.org>
29930
29931         Avoid compiler warnings when redefining macros defined by <libintl.h>.
29932         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
29933         dngettext, dcngettext, textdomain, bindtextdomain,
29934         bind_textdomain_codeset): Undefine before redefining.
29935
29936 2009-04-30  Bruno Haible  <bruno@clisp.org>
29937
29938         Fix bug introduced on 2009-04-25.
29939         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
29940         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
29941         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
29942         is defined.
29943         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
29944         is defined.
29945         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
29946         is defined.
29947         Reported by Elbert_Pol <elbert.pol@gmail.com>.
29948
29949 2009-04-28  Bruno Haible  <bruno@clisp.org>
29950
29951         Comment tweaks.
29952         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
29953         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
29954         * lib/unicase.h (u*_casexfrm): Likewise.
29955         Reported by Paolo Bonzini.
29956
29957 2009-04-28  Bruno Haible  <bruno@clisp.org>
29958
29959         Fix a compilation error.
29960         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
29961         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
29962         Reported by Jim Meyering.
29963
29964 2009-04-27  Bruno Haible  <bruno@clisp.org>
29965
29966         New module 'libunistring'.
29967         * modules/libunistring: New file.
29968         * m4/libunistring.m4: New file.
29969         * MODULES.html.sh (Unicode string functions): Add it.
29970
29971 2009-04-27  Eric Blake  <ebb9@byu.net>
29972
29973         maint.mk: allow package-specific header to provide <config.h>
29974         * top/maint.mk (sc_require_config_h): New variable.
29975         (sc_require_config_h, sc_require_config_h_first): Use it.
29976
29977 2009-04-27  Simon Josefsson  <simon@josefsson.org>
29978
29979         * top/maint.mk (sc_avoid_if_before_free): Except
29980         useless-if-before-free script.
29981
29982 2009-04-27  Eric Blake  <ebb9@byu.net>
29983
29984         maintainer-makefile: depend on all required helper scripts
29985         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
29986         useless-if-before-free.
29987         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
29988         version, rather than assuming gnulib checkout is available.
29989         Reported by Simen Josefsson.
29990
29991 2009-04-26  Bruno Haible  <bruno@clisp.org>
29992
29993         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
29994         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
29995         "../" or "..".
29996
29997 2009-04-26  Bruno Haible  <bruno@clisp.org>
29998
29999         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
30000         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
30001         AC_LIB_HAVE_LINKFLAGS.
30002
30003 2009-04-26  Bruno Haible  <bruno@clisp.org>
30004
30005         Simplify calling convention of u*_conv_from_encoding.
30006         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
30007         u32_conv_from_encoding): Expect a resultbuf argument and return the
30008         result directly as a pointer.
30009         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
30010         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
30011         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
30012         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
30013         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
30014         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
30015         Update.
30016         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
30017         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
30018         * lib/vasnprintf.c (VASNPRINTF): Update.
30019         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
30020         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
30021         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
30022         * NEWS: Mention the change.
30023
30024 2009-04-26  Bruno Haible  <bruno@clisp.org>
30025
30026         Simplify calling convention of u*_conv_to_encoding.
30027         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
30028         u32_conv_to_encoding): Expect a resultbuf argument and return the
30029         result directly as a pointer.
30030         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
30031         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
30032         freeing scaled_offsets if mem_iconveha failed.
30033         * lib/unicase/u-casexfrm.h (FUNC): Update.
30034         * lib/uninorm/u-normxfrm.h (FUNC): Update.
30035         * lib/vasnprintf.c (VASNPRINTF): Update.
30036         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
30037         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
30038         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
30039         * NEWS: Mention the change.
30040
30041 2009-04-26  Bruno Haible  <bruno@clisp.org>
30042
30043         Avoid test failures on AIX and OSF/1.
30044         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
30045         malloc(0).
30046         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
30047         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
30048         Likewise.
30049         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
30050         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
30051         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
30052         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
30053         * doc/posix-functions/malloc.texi: Document the portability problem
30054         related to malloc(0).
30055
30056 2009-04-26  Bruno Haible  <bruno@clisp.org>
30057
30058         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
30059         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
30060         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
30061
30062 2009-04-25  Bruno Haible  <bruno@clisp.org>
30063
30064         Avoid link error when creating a namespace clean library.
30065         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
30066         as macro with arguments if already defined as an alias.
30067         * lib/signbitf.c (gl_signbitf): Don't undefine.
30068         * lib/signbitd.c (gl_signbitd): Don't undefine.
30069         * lib/signbitl.c (gl_signbitl): Don't undefine.
30070
30071 2009-04-25  Jim Meyering  <meyering@redhat.com>
30072
30073         vc-list-files: fix another quoting bug
30074         * build-aux/vc-list-files: Avoid sed backslash expansion
30075         of pathological directory names.
30076
30077 2009-04-25  Eric Blake  <ebb9@byu.net>
30078
30079         vc-list-files: fix shell quoting error
30080         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
30081         timestamp.
30082
30083 2009-04-25  Jim Meyering  <meyering@redhat.com>
30084
30085         vc-list-files: restore lost functionality with subdir argument
30086         * build-aux/vc-list-files: When given a non-"." sub-directory
30087         argument, substitute the $dir/ prefix back onto each resulting name.
30088         Otherwise, coreutils' root_tests check would fail.
30089
30090 2009-04-24  Eric Blake  <ebb9@byu.net>
30091
30092         vc-list-files: ignore git symlinks
30093         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
30094         than ls-files, to ignore git symlinks.
30095
30096         maint.mk: import improvements from m4
30097         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
30098         (move_if_change): Delete unused macro.
30099         (news-date-check, vc-diff-check): Support VPATH builds.
30100         (announcement): Likewise.  Split --bootstrap-tools list...
30101         (boostrap-tools): ...into separate list, which can be overridden
30102         in cfg.mk.
30103         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
30104         requiring dependency on useless-if-before-free module.
30105         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
30106         Support VPATH builds.
30107
30108 2009-04-24  Jim Meyering  <meyering@redhat.com>
30109
30110         maint.mk: remove coreutils-specific rules and variables
30111         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
30112         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
30113         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
30114
30115         maint.mk: remove obsolete rule
30116         * top/maint.mk (rel-check): Remove rule.
30117         (WGET, WGETFLAGS): Remove now-unused variables.
30118
30119 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30120
30121         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
30122         consistency.
30123
30124         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
30125         '$(PATH_SEPARATOR)' instead of ':'.
30126
30127 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30128
30129         * lib/getopt1.c (main): Use 'const' for static array.
30130
30131 2009-04-24  Simon Josefsson  <simon@josefsson.org>
30132
30133         * top/maint.mk: Sync with coreutils.
30134         * NEWS: Explain incompatibilities.
30135
30136 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30137             Bruno Haible  <bruno@clisp.org>
30138
30139         Fix cross-compilation results.
30140         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
30141         statement, as third argument of AC_TRY_RUN.
30142         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
30143         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
30144         Likewise.
30145         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
30146         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
30147         Likewise.
30148         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30149         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
30150         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
30151
30152 2009-04-20  Bruno Haible  <bruno@clisp.org>
30153
30154         Avoid test failure on mingw.
30155         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
30156
30157 2009-04-20  Bruno Haible  <bruno@clisp.org>
30158
30159         Avoid compilation error on mingw.
30160         * modules/localename-tests (Depends-on): Add locale.
30161
30162 2009-04-19  Bruno Haible  <bruno@clisp.org>
30163
30164         Support for building a shared library on Windows platforms.
30165         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
30166         (main): Test the presence of UNINORM_NFC here.
30167         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
30168         (main): Test the presence of UNINORM_NFD here.
30169         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
30170         (main): Test the presence of UNINORM_NFKC here.
30171         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
30172         (main): Test the presence of UNINORM_NFKD here.
30173
30174 2009-04-19  Bruno Haible  <bruno@clisp.org>
30175
30176         Avoid a compiler warning.
30177         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
30178         Change type of variable 'sequence'.
30179
30180 2009-04-19  Bruno Haible  <bruno@clisp.org>
30181
30182         * modules/configmake (Makefile.am): When the contents of configmake.h
30183         does not change, arrange to preserve its modification time.
30184
30185 2009-04-17  Simon Josefsson  <simon@josefsson.org>
30186
30187         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
30188         gettext domain.
30189
30190 2009-04-16  Jim Meyering  <meyering@redhat.com>
30191
30192         useless-if-before-free: improve conversion code
30193         * build-aux/useless-if-before-free: Adjust code-in-comment to match
30194         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
30195
30196 2009-04-14  Bruno Haible  <bruno@clisp.org>
30197
30198         * modules/fcntl (Depends-on): Add extensions.
30199         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
30200
30201 2009-04-12  Ben Pfaff  <blp@gnu.org>
30202
30203         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
30204         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
30205
30206 2009-03-20  Ben Pfaff  <blp@gnu.org>
30207
30208         Make rename replace existing destinations on Windows.
30209         * m4/rename.m4: Add test for Mingw.
30210         * lib/rename.c: Add rename replacement that uses MoveFileEx with
30211         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
30212         * doc/posix-functions/rename.texi: Document.
30213
30214 2009-04-10  Bruno Haible  <bruno@clisp.org>
30215
30216         New include file "iconveh.h".
30217         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
30218         * lib/striconveh.h: Include it.
30219         (enum iconv_ilseq_handler): Remove definition.
30220         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
30221         striconveh.h.
30222         * lib/striconveha.c: Include striconveh.h.
30223         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
30224         * modules/striconveh (Files): Add lib/iconveh.h.
30225         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
30226         lib/striconveh.h.
30227
30228 2009-04-10  Bruno Haible  <bruno@clisp.org>
30229
30230         * lib/uniconv.h: Update comment.
30231
30232 2009-04-10  Bruno Haible  <bruno@clisp.org>
30233
30234         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
30235         always.
30236         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
30237         * lib/unistr/u16-mbtouc-aux.c: Likewise.
30238         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
30239         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
30240         "unistring-notinline.h", so that the function gets defined always.
30241         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
30242         * lib/unistr/u8-uctomb.c: Likewise.
30243         * lib/unistr/u16-mbtouc.c: Likewise.
30244         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
30245         * lib/unistr/u16-uctomb.c: Likewise.
30246         * lib/unistr/u32-mbtouc.c: Likewise.
30247         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
30248         * lib/unistr/u32-uctomb.c: Likewise.
30249
30250 2009-04-10  Bruno Haible  <bruno@clisp.org>
30251
30252         Mark 'utime' obsolete.
30253         * modules/utime (Status, Notice): New sections.
30254         Suggested by Jim Meyering.
30255
30256         Fix cross-compile guess for utime test.
30257         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
30258         autoconf.
30259         * doc/posix-functions/utime.texi: Give more precisions.
30260         Reported by Jan <ipif@ymail.com>.
30261
30262 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
30263
30264         filevercmp: correct today's change
30265         * lib/filevercmp.c: Also handle coreutils' test inputs.
30266         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
30267
30268         Fix regression in 'filevercmp' module. Thanks Sven Joachim
30269         for reporting it.
30270         * lib/filevercmp.c: Special handle for "", "." and "..".
30271         * tests/test-filevercmp.c: Enlarge the set suite.
30272
30273 2009-04-07  Jim Meyering  <meyering@redhat.com>
30274
30275         useless-if-before-free: show how to remove braced useless free, too
30276         * build-aux/useless-if-before-free: still only in a comment, though.
30277
30278 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
30279
30280         maint.mk: import changes to syntax-check macros from coreutils
30281         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
30282         Use them in the relevant macros.
30283
30284 2009-04-06  Bruno Haible  <bruno@clisp.org>
30285
30286         Fix unportable use of bit-fields.
30287         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
30288         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
30289         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
30290
30291 2009-04-06  Bruno Haible  <bruno@clisp.org>
30292
30293         Avoid test failures on AIX and OSF/1.
30294         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
30295         that malloc(0) = NULL.
30296         * tests/unicase/test-u8-tolower.c (check): Likewise.
30297         * tests/unicase/test-u8-totitle.c (check): Likewise.
30298         * tests/unicase/test-u8-toupper.c (check): Likewise.
30299         * tests/unicase/test-u16-casefold.c (check): Likewise.
30300         * tests/unicase/test-u16-tolower.c (check): Likewise.
30301         * tests/unicase/test-u16-totitle.c (check): Likewise.
30302         * tests/unicase/test-u16-toupper.c (check): Likewise.
30303         * tests/unicase/test-u32-casefold.c (check): Likewise.
30304         * tests/unicase/test-u32-tolower.c (check): Likewise.
30305         * tests/unicase/test-u32-totitle.c (check): Likewise.
30306         * tests/unicase/test-u32-toupper.c (check): Likewise.
30307         * tests/uninorm/test-u8-nfc.c (check): Likewise.
30308         * tests/uninorm/test-u8-nfd.c (check): Likewise.
30309         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
30310         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
30311         * tests/uninorm/test-u16-nfc.c (check): Likewise.
30312         * tests/uninorm/test-u16-nfd.c (check): Likewise.
30313         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
30314         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
30315         * tests/uninorm/test-u32-nfc.c (check): Likewise.
30316         * tests/uninorm/test-u32-nfd.c (check): Likewise.
30317         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
30318         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
30319
30320 2009-04-05  Bruno Haible  <bruno@clisp.org>
30321
30322         Work around an autoconf limitation.
30323         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
30324         comment line if it would be longer than 3 KB.
30325
30326 2009-04-05  Bruno Haible  <bruno@clisp.org>
30327
30328         Avoid test failure with libiconv-1.13.
30329         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
30330         of the expected test results.
30331
30332 2009-04-05  Bruno Haible  <bruno@clisp.org>
30333
30334         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
30335         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
30336         that it should be installed.
30337
30338 2009-04-05  Bruno Haible  <bruno@clisp.org>
30339
30340         * gnulib-tool: New option --copy-file.
30341         (func_usage): Document it.
30342         (func_dest_tmpfilename): Moved out of func_import.
30343         (func_add_file, func_update_file): New functions, extracted from
30344         func_import.
30345         (func_import): Update.
30346
30347 2009-04-05  Karl Berry  <karl@gnu.org>
30348
30349         * README: prominently mention gnulib-tool.
30350         Rearrange sections so getting the code is near the top.
30351
30352 2009-04-05  Bruno Haible  <bruno@clisp.org>
30353
30354         * lib/unicase.h: Mention u*_cmp2.
30355         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30356         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
30357         * lib/unicase/ulc-casecmp.c: Likewise.
30358         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
30359         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
30360         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
30361         unistr/u8-cmp.
30362         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
30363         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
30364         unistr/u16-cmp.
30365         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
30366         unistr/u32-cmp.
30367
30368         * lib/uninorm.h: Mention u*_cmp2.
30369         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
30370         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
30371         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
30372         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
30373         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
30374         unistr/u8-cmp.
30375         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
30376         unistr/u16-cmp.
30377         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
30378         unistr/u32-cmp.
30379
30380         New module 'unistr/u32-cmp2'.
30381         * lib/unistr/u32-cmp2.c: New file.
30382         * modules/unistr/u32-cmp2: New file.
30383
30384         New module 'unistr/u16-cmp2'.
30385         * lib/unistr/u16-cmp2.c: New file.
30386         * modules/unistr/u16-cmp2: New file.
30387
30388         New module 'unistr/u8-cmp2'.
30389         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
30390         * lib/unistr/u8-cmp2.c: New file.
30391         * lib/unistr/u-cmp2.h: New file.
30392         * modules/unistr/u8-cmp2: New file.
30393
30394 2009-04-05  Bruno Haible  <bruno@clisp.org>
30395
30396         * lib/unictype.h (uc_property_is_valid): New macro.
30397         * tests/unictype/test-pr_byname.c (main): Use it.
30398
30399         * lib/unistr.h: Doc fixes.
30400         * lib/uniconv.h: Doc fixes.
30401         * lib/unictype.h: Doc fixes.
30402
30403 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
30404
30405         Port coreutils 7.2 to Solaris 8.
30406
30407         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
30408         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
30409         for Solaris 8.  This is a bit of a hack, as it means it's the
30410         caller's responsibility to add -lnsl if needed, but most likely it
30411         won't be needed since only getaddrinfo uses this and getaddrinfo
30412         isn't needed on Solaris 8.
30413
30414         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
30415         problem to Solaris 8 encountered with coreutils 7.2, which
30416         resulted in a message "fnmatch.c:292: warning: passing argument 4
30417         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
30418         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
30419
30420 2009-04-03  Simon Josefsson  <simon@josefsson.org>
30421
30422         * m4/ld-version-script.m4: Add FIXME comment.
30423
30424 2009-04-02  Simon Josefsson  <simon@josefsson.org>
30425
30426         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
30427         SOVERSION variable.
30428
30429 2009-04-02  Bruno Haible  <bruno@clisp.org>
30430
30431         * Makefile (info, html, dvi, pdf): Combine the rules.
30432         Suggested by Jim Meyering.
30433
30434 2009-04-01  Bruno Haible  <bruno@clisp.org>
30435
30436         * Makefile (info, html, dvi, pdf): New targets.
30437         Reported by Reuben Thomas <rrt@sc3d.org>.
30438
30439 2009-04-01  Bruno Haible  <bruno@clisp.org>
30440
30441         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
30442         can be put into PATH.
30443         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
30444
30445 2009-04-01  Bruno Haible  <bruno@clisp.org>
30446
30447         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
30448
30449 2009-04-01  Bruno Haible  <bruno@clisp.org>
30450
30451         Rename module 'visibility'.
30452         * modules/lib-symbol-visibility: Renamed from modules/visibility.
30453         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
30454         * doc/gnulib.texi: Update.
30455         * MODULES.html.sh (Misc): Update.
30456         * NEWS: Mention the change.
30457
30458 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30459
30460         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
30461         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
30462         Eric Blake <ebb9@byu.net> for review.
30463         * MODULES.html.sh: Add lib-msvc-compat.
30464         * doc/gnulib.texi: Link to new section.
30465         * m4/ld-output-def.m4: New file.
30466         * doc/ld-output-def.texi: New file.
30467
30468 2009-04-01  Simon Josefsson  <simon@josefsson.org>
30469
30470         Rename ld-version-script to lib-symbol-versions.  Suggested by
30471         Bruno Haible <bruno@clisp.org>.
30472         * modules/ld-version-script: Renamed to lib-symbol-versions.
30473         * doc/ld-version-script.texi: Fix module name.
30474         * MODULES.html.sh: Add lib-symbol-versions.
30475
30476 2009-03-31  Simon Josefsson  <simon@josefsson.org>
30477
30478         * modules/u64-tests: New file.
30479         * tests/test-u64.c: New file.
30480
30481 2009-03-04  Simon Josefsson  <simon@josefsson.org>
30482
30483         * MODULES.html.sh: Mention u64.
30484         * modules/u64: New module.
30485         * modules/crypto/sha512: Depend on u64 module instead of providing
30486         u64.h.
30487
30488 2009-03-27  Eric Blake  <ebb9@byu.net>
30489
30490         test-strerror: make debugging EAI_SYSTEM easier
30491         * modules/getaddrinfo-tests (Depends-on): Add strerror.
30492         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
30493         failure was EAI_SYSTEM.
30494
30495 2009-03-25  Bruno Haible  <bruno@clisp.org>
30496
30497         Fix a problem with --enable-relocatable on Solaris 7.
30498         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
30499         since 2008-02-24.
30500
30501 2009-03-25  Eric Blake  <ebb9@byu.net>
30502
30503         test-sockets: avoid gcc warning
30504         * tests/test-sockets.c (main): Silence compiler warning.
30505
30506 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
30507
30508         New modules nproc, pthread, contributed by Glen Lenker.
30509
30510         * MODULES.html.sh: Add pthread, nproc.
30511         * lib/nproc.c: New file.
30512         * lib/nproc.h: New file.
30513         * lib/pthread.in.h: New file.
30514         * m4/pthread.m4: New file.
30515         * modules/nproc: New file.
30516         * modules/pthread: New file.
30517
30518 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30519
30520         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
30521         New variable.
30522
30523 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
30524
30525         filevercmp: handle simple~ and numbered.~3~ backup suffixes
30526         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
30527         * tests/test-filevercmp.c: Add tests for backup suffixes.
30528
30529 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30530
30531         * modules/stdlib (Depends-on): Add stdint, needed when defining
30532         struct random_data on, for example, HP-UX 10.20.  Reported by
30533         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30534
30535 2009-03-24  Simon Josefsson  <simon@josefsson.org>
30536
30537         * lib/readline.c (readline): Call fflush on stdout after printing
30538         prompt.
30539
30540 2009-03-20  Bruno Haible  <bruno@clisp.org>
30541
30542         Remove dependency from 'close' module to -lws2_32 on native Windows.
30543         * lib/close-hook.h: New file.
30544         * lib/close-hook.c: New file.
30545         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
30546         w32sock.h.
30547         (_gl_close_fd_maybe_socket): Remove function.
30548         (rpl_close): Invoke execute_all_close_hooks instead of
30549         _gl_close_fd_maybe_socket.
30550         * lib/sockets.c: Include close-hook.h, w32sock.h.
30551         (close_fd_maybe_socket): New function, essentially from lib/close.c.
30552         (close_sockets_hook): New variable.
30553         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
30554         (gl_sockets_cleanup): Unregister it.
30555         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
30556         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
30557         * modules/close-hook: New file.
30558         * modules/close (Files): Remove lib/w32sock.h.
30559         (Depends-on): Add close-hook.
30560         (Link): Remove section.
30561         * modules/sockets (Files): Add lib/w32sock.h.
30562         (Depends-on): Add close-hook.
30563         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
30564         invocation.
30565         * NEWS: Mention that LIB_CLOSE is gone.
30566
30567 2009-03-23  Eric Blake  <ebb9@byu.net>
30568
30569         signal-tests: test previous patch
30570         * tests/test-signal.c: New file.
30571         * modules/signal-tests: Likewise.
30572
30573         signal.h: always support 'volatile sig_atomic_t'
30574         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
30575         (gl_SIGNAL_H_DEFAULTS): Add a default.
30576         * modules/signal (Makefile.am): Substitute if needed.
30577         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
30578         users can blindly add volatile.
30579         * doc/posix-headers/signal.texi (signal.h): Document it.
30580         Reported by Matthew Woehlke.
30581
30582 2009-03-23  Jim Meyering  <meyering@redhat.com>
30583
30584         pathmax: PATH_MAX: use pathconf only when available
30585         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
30586         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
30587         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
30588         This avoids a link failure in a PSP cross-compilation environment
30589         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
30590
30591         * lib/vasnprintf.c (divide): Fix typo in comment.
30592
30593 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30594
30595         * gnulib-tool (func_filter_filelist): Fix comment.
30596
30597 2009-03-20  Bruno Haible  <bruno@clisp.org>
30598
30599         Make sockets.h self-contained.
30600         * lib/sockets.c: Include sockets.h first.
30601         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
30602
30603 2009-03-19  Eric Blake  <ebb9@byu.net>
30604
30605         doc: mention more functions added in cygwin 1.7.0
30606         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
30607         addition.
30608         * doc/posix-functions/log2f.texi: Likewise.
30609
30610 2009-03-19  Jim Meyering  <meyering@redhat.com>
30611
30612         fsusage: avoid syntax error due to statement-before-declaration
30613         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
30614         after all declarations.  Reported by Matthew Woehlke in
30615         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
30616
30617 2009-03-18  Eric Blake  <ebb9@byu.net>
30618
30619         build-aux/compile: sync from automake
30620         * build-aux/compile: New file, from automake.
30621         * config/srclist.txt: Mention build-aux/compile.
30622
30623 2009-03-17  Bruno Haible  <bruno@clisp.org>
30624
30625         * lib/git-merge-changelog.c: Fix typo in comment.
30626         Reported by Reuben Thomas <rrt@sc3d.org>.
30627
30628 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
30629
30630         * m4/regex.m4: update and improve help for
30631         --without-included-regex.
30632
30633 2009-03-17  Simon Josefsson  <simon@josefsson.org>
30634
30635         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
30636         failure on missing include files.
30637
30638 2009-03-17  Eric Blake  <ebb9@byu.net>
30639
30640         doc: mention more functions added in cygwin 1.7.0
30641         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
30642         addition.
30643         * doc/posix-functions/fwscanf.texi: Likewise.
30644         * doc/posix-functions/swprintf.texi: Likewise.
30645         * doc/posix-functions/swscanf.texi: Likewise.
30646         * doc/posix-functions/vfwprintf.texi: Likewise.
30647         * doc/posix-functions/vfwscanf.texi: Likewise.
30648         * doc/posix-functions/vswprintf.texi: Likewise.
30649         * doc/posix-functions/vswscanf.texi: Likewise.
30650         * doc/posix-functions/vwprintf.texi: Likewise.
30651         * doc/posix-functions/vwscanf.texi: Likewise.
30652         * doc/posix-functions/wcscasecmp.texi: Likewise.
30653         * doc/posix-functions/wcsdup.texi: Likewise.
30654         * doc/posix-functions/wcsftime.texi: Likewise.
30655         * doc/posix-functions/wcsncasecmp.texi: Likewise.
30656         * doc/posix-functions/wprintf.texi: Likewise.
30657         * doc/posix-functions/wscanf.texi: Likewise.
30658         * doc/glibc-functions/gethostbyname2.texi: Likewise.
30659
30660 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30661
30662         maint.mk: really add $(AM_MAKEFLAGS)
30663         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
30664         was inadvertently omitted in the last commit.
30665         Spotted by Bruno Haible.
30666
30667         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
30668         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
30669         $(AM_MAKEFLAGS)' rather than plain `make'.
30670
30671         gnulib-tool: execute $MAKE not make
30672         * gnulib-tool: Default $MAKE to 'make'.
30673         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
30674         than make.  Initialize $MAKE in the do-autobuild script.
30675
30676         gnulib-tool: use $MAKE not make in generated files
30677         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
30678         make, in generated files.  Initialize $MAKE in the do-autobuild
30679         script.
30680
30681         * top/GNUmakefile (_have-git-version-gen): Fix typo.
30682
30683         GNUmakefile: disable parallelism only for multiple, recursive targets
30684         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
30685         additions in the Makefile.
30686         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
30687         by Automake.
30688         (.NOTPARALLEL): Only disable parallel builds if multiple targets
30689         are listed on the command line and at least one of them is
30690         listed in $(ALL_RECURSIVE_TARGETS).
30691
30692 2009-03-14  Bruno Haible  <bruno@clisp.org>
30693
30694         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
30695         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
30696         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
30697         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
30698         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
30699         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
30700         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
30701         unistr/u8-uctomb.
30702         * modules/unistr/u8-strchr (Depends-on): Likewise.
30703         * modules/unistr/u8-strrchr (Depends-on): Likewise.
30704         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
30705         unistr/u16-uctomb.
30706         * modules/unistr/u16-strchr (Depends-on): Likewise.
30707         * modules/unistr/u16-strrchr (Depends-on): Likewise.
30708
30709 2009-03-12  Bruno Haible  <bruno@clisp.org>
30710
30711         Work around select() bug on Interix 3.5.
30712         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
30713         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
30714         * m4/select.m4: New file.
30715         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
30716         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
30717         * modules/select (Files): Add m4/select.m4.
30718         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
30719         * modules/nanosleep (Depends-on): Add select.
30720         * modules/poll (Depends-on): Likewise.
30721         * doc/posix-functions/select.texi: Mention the Interix bug.
30722         Reported by Markus Duft <mduft@gentoo.org>.
30723
30724         * lib/select.c: Renamed from lib/winsock-select.c.
30725         * modules/select (Files): Add lib/select.c, remove
30726         lib/winsock-select.c.
30727         (configure.ac): Update.
30728
30729 2009-03-12  Jim Meyering  <meyering@redhat.com>
30730
30731         avoid gcc warnings about unused macro definitions
30732         * lib/readtokens.c (STREQ): Remove unused definition.
30733         * lib/xmalloc.c (SIZE_MAX): Likewise.
30734         * lib/openat-die.c (N_): Likewise.
30735         * lib/mountlist.c (SIZE_MAX): Remove definition.
30736         Instead, include <stdint.h>.
30737         * lib/readutmp.c: Likewise.
30738         * modules/readutmp (Depends-on): Add stdint.
30739         * modules/mountlist (Depends-on): Add stdint.
30740         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
30741
30742 2009-03-10  Bruno Haible  <bruno@clisp.org>
30743
30744         Tests for module 'mbmemcasecoll'.
30745         * modules/mbmemcasecoll-tests: New file.
30746         * tests/test-mbmemcasecoll1.sh: New file.
30747         * tests/test-mbmemcasecoll2.sh: New file.
30748         * tests/test-mbmemcasecoll3.sh: New file.
30749         * tests/test-mbmemcasecoll.c: New file.
30750
30751         New module 'mbmemcasecoll'.
30752         * lib/mbmemcasecoll.h: New file.
30753         * lib/mbmemcasecoll.c: New file.
30754         * modules/mbmemcasecoll: New file.
30755
30756         * tests/test-mbmemcasecmp.h: New file, extracted from
30757         tests/test-mbmemcasecmp.c.
30758         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
30759         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
30760         (main): Update.
30761         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
30762
30763 2009-03-09  Bruno Haible  <bruno@clisp.org>
30764
30765         Tests for module 'mbmemcasecmp'.
30766         * modules/mbmemcasecmp-tests: New file.
30767         * tests/test-mbmemcasecmp1.sh: New file.
30768         * tests/test-mbmemcasecmp2.sh: New file.
30769         * tests/test-mbmemcasecmp3.sh: New file.
30770         * tests/test-mbmemcasecmp.c: New file.
30771
30772         New module 'mbmemcasecmp'.
30773         * lib/mbmemcasecmp.h: New file.
30774         * lib/mbmemcasecmp.c: New file.
30775         * modules/mbmemcasecmp: New file.
30776
30777 2009-03-09  Bruno Haible  <bruno@clisp.org>
30778
30779         Tests for module 'unicase/ulc-casecoll'.
30780         * modules/unicase/ulc-casecoll-tests: New file.
30781         * tests/unicase/test-ulc-casecoll1.sh: New file.
30782         * tests/unicase/test-ulc-casecoll2.sh: New file.
30783         * tests/unicase/test-ulc-casecoll.c: New file.
30784
30785         New module 'unicase/ulc-casecoll'.
30786         * lib/unicase.h (ulc_casecoll): New declaration.
30787         * lib/unicase/ulc-casecoll.c: New file.
30788         * modules/unicase/ulc-casecoll: New file.
30789
30790         New module 'unicase/ulc-casexfrm'.
30791         * lib/unicase.h (ulc_casexfrm): New declaration.
30792         * lib/unicase/ulc-casexfrm.c: New file.
30793         * modules/unicase/ulc-casexfrm: New file.
30794
30795 2009-03-09  Bruno Haible  <bruno@clisp.org>
30796
30797         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
30798         invocations.
30799
30800         * m4/mbscasecmp.m4: Remove file.
30801         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
30802         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
30803
30804         * m4/mbscasestr.m4: Remove file.
30805         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
30806         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
30807
30808         * m4/mbschr.m4: Remove file.
30809         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
30810         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
30811
30812         * m4/mbscspn.m4: Remove file.
30813         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
30814         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
30815
30816         * m4/mbslen.m4: Remove file.
30817         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
30818         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
30819
30820         * m4/mbsncasecmp.m4: Remove file.
30821         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
30822         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
30823
30824         * m4/mbsnlen.m4: Remove file.
30825         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
30826         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
30827
30828         * m4/mbspbrk.m4: Remove file.
30829         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
30830         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
30831
30832         * m4/mbspcasecmp.m4: Remove file.
30833         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
30834         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
30835
30836         * m4/mbsrchr.m4: Remove file.
30837         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
30838         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
30839
30840         * m4/mbssep.m4: Remove file.
30841         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
30842         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
30843
30844         * m4/mbsspn.m4: Remove file.
30845         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
30846         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
30847
30848         * m4/mbsstr.m4: Remove file.
30849         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
30850         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
30851
30852         * m4/mbstok_r.m4: Remove file.
30853         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
30854         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
30855
30856         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
30857
30858         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
30859         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
30860
30861         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
30862
30863 2009-03-08  Bruno Haible  <bruno@clisp.org>
30864
30865         Tests for module 'unicase/ulc-casecmp'.
30866         * modules/unicase/ulc-casecmp-tests: New file.
30867         * tests/unicase/test-ulc-casecmp1.sh: New file.
30868         * tests/unicase/test-ulc-casecmp2.sh: New file.
30869         * tests/unicase/test-ulc-casecmp.c: New file.
30870
30871         New module 'unicase/ulc-casecmp'.
30872         * lib/unicase.h (ulc_casecmp): New declaration.
30873         * lib/unicase/ulc-casecmp.c: New file.
30874         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
30875         'const SRC_UNIT *'.
30876         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
30877         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
30878         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
30879         * modules/unicase/ulc-casecmp: New file.
30880
30881         Tests for module 'unicase/u32-is-cased'.
30882         * modules/unicase/u32-is-cased-tests: New file.
30883         * tests/unicase/test-u32-is-cased.c: New file.
30884
30885         Tests for module 'unicase/u16-is-cased'.
30886         * modules/unicase/u16-is-cased-tests: New file.
30887         * tests/unicase/test-u16-is-cased.c: New file.
30888
30889         Tests for module 'unicase/u8-is-cased'.
30890         * modules/unicase/u8-is-cased-tests: New file.
30891         * tests/unicase/test-u8-is-cased.c: New file.
30892         * tests/unicase/test-is-cased.h: New file.
30893
30894         New module 'unicase/u32-is-cased'.
30895         * lib/unicase/u32-is-cased.c: New file.
30896         * modules/unicase/u32-is-cased: New file.
30897
30898         New module 'unicase/u16-is-cased'.
30899         * lib/unicase/u16-is-cased.c: New file.
30900         * modules/unicase/u16-is-cased: New file.
30901
30902         New module 'unicase/u8-is-cased'.
30903         * lib/unicase/u8-is-cased.c: New file.
30904         * lib/unicase/u-is-cased.h: New file.
30905         * modules/unicase/u8-is-cased: New file.
30906
30907         Tests for module 'unicase/u32-is-casefolded'.
30908         * modules/unicase/u32-is-casefolded-tests: New file.
30909         * tests/unicase/test-u32-is-casefolded.c: New file.
30910
30911         Tests for module 'unicase/u16-is-casefolded'.
30912         * modules/unicase/u16-is-casefolded-tests: New file.
30913         * tests/unicase/test-u16-is-casefolded.c: New file.
30914
30915         Tests for module 'unicase/u8-is-casefolded'.
30916         * modules/unicase/u8-is-casefolded-tests: New file.
30917         * tests/unicase/test-u8-is-casefolded.c: New file.
30918         * tests/unicase/test-is-casefolded.h: New file.
30919
30920         New module 'unicase/u32-is-casefolded'.
30921         * lib/unicase/u32-is-casefolded.c: New file.
30922         * modules/unicase/u32-is-casefolded: New file.
30923
30924         New module 'unicase/u16-is-casefolded'.
30925         * lib/unicase/u16-is-casefolded.c: New file.
30926         * modules/unicase/u16-is-casefolded: New file.
30927
30928         New module 'unicase/u8-is-casefolded'.
30929         * lib/unicase/u8-is-casefolded.c: New file.
30930         * modules/unicase/u8-is-casefolded: New file.
30931
30932         Tests for module 'unicase/u32-is-titlecase'.
30933         * modules/unicase/u32-is-titlecase-tests: New file.
30934         * tests/unicase/test-u32-is-titlecase.c: New file.
30935
30936         Tests for module 'unicase/u16-is-titlecase'.
30937         * modules/unicase/u16-is-titlecase-tests: New file.
30938         * tests/unicase/test-u16-is-titlecase.c: New file.
30939
30940         Tests for module 'unicase/u8-is-titlecase'.
30941         * modules/unicase/u8-is-titlecase-tests: New file.
30942         * tests/unicase/test-u8-is-titlecase.c: New file.
30943         * tests/unicase/test-is-titlecase.h: New file.
30944
30945         New module 'unicase/u32-is-titlecase'.
30946         * lib/unicase/u32-is-titlecase.c: New file.
30947         * modules/unicase/u32-is-titlecase: New file.
30948
30949         New module 'unicase/u16-is-titlecase'.
30950         * lib/unicase/u16-is-titlecase.c: New file.
30951         * modules/unicase/u16-is-titlecase: New file.
30952
30953         New module 'unicase/u8-is-titlecase'.
30954         * lib/unicase/u8-is-titlecase.c: New file.
30955         * modules/unicase/u8-is-titlecase: New file.
30956
30957         Tests for module 'unicase/u32-is-lowercase'.
30958         * modules/unicase/u32-is-lowercase-tests: New file.
30959         * tests/unicase/test-u32-is-lowercase.c: New file.
30960
30961         Tests for module 'unicase/u16-is-lowercase'.
30962         * modules/unicase/u16-is-lowercase-tests: New file.
30963         * tests/unicase/test-u16-is-lowercase.c: New file.
30964
30965         Tests for module 'unicase/u8-is-lowercase'.
30966         * modules/unicase/u8-is-lowercase-tests: New file.
30967         * tests/unicase/test-u8-is-lowercase.c: New file.
30968         * tests/unicase/test-is-lowercase.h: New file.
30969
30970         New module 'unicase/u32-is-lowercase'.
30971         * lib/unicase/u32-is-lowercase.c: New file.
30972         * modules/unicase/u32-is-lowercase: New file.
30973
30974         New module 'unicase/u16-is-lowercase'.
30975         * lib/unicase/u16-is-lowercase.c: New file.
30976         * modules/unicase/u16-is-lowercase: New file.
30977
30978         New module 'unicase/u8-is-lowercase'.
30979         * lib/unicase/u8-is-lowercase.c: New file.
30980         * modules/unicase/u8-is-lowercase: New file.
30981
30982         Tests for module 'unicase/u32-is-uppercase'.
30983         * modules/unicase/u32-is-uppercase-tests: New file.
30984         * tests/unicase/test-u32-is-uppercase.c: New file.
30985
30986         Tests for module 'unicase/u16-is-uppercase'.
30987         * modules/unicase/u16-is-uppercase-tests: New file.
30988         * tests/unicase/test-u16-is-uppercase.c: New file.
30989
30990         Tests for module 'unicase/u8-is-uppercase'.
30991         * modules/unicase/u8-is-uppercase-tests: New file.
30992         * tests/unicase/test-u8-is-uppercase.c: New file.
30993         * tests/unicase/test-is-uppercase.h: New file.
30994
30995         New module 'unicase/u32-is-uppercase'.
30996         * lib/unicase/u32-is-uppercase.c: New file.
30997         * modules/unicase/u32-is-uppercase: New file.
30998
30999         New module 'unicase/u16-is-uppercase'.
31000         * lib/unicase/u16-is-uppercase.c: New file.
31001         * modules/unicase/u16-is-uppercase: New file.
31002
31003         New module 'unicase/u8-is-uppercase'.
31004         * lib/unicase/u8-is-uppercase.c: New file.
31005         * modules/unicase/u8-is-uppercase: New file.
31006
31007         New module 'unicase/u32-is-invariant'.
31008         * lib/unicase/u32-is-invariant.c: New file.
31009         * modules/unicase/u32-is-invariant: New file.
31010
31011         New module 'unicase/u16-is-invariant'.
31012         * lib/unicase/u16-is-invariant.c: New file.
31013         * modules/unicase/u16-is-invariant: New file.
31014
31015         New module 'unicase/u8-is-invariant'.
31016         * lib/unicase/u8-is-invariant.c: New file.
31017         * lib/unicase/invariant.h: New file.
31018         * lib/unicase/u-is-invariant.h: New file.
31019         * modules/unicase/u8-is-invariant: New file.
31020
31021         Tests for module 'unicase/u32-casecoll'.
31022         * modules/unicase/u32-casecoll-tests: New file.
31023         * tests/unicase/test-u32-casecoll.c: New file.
31024
31025         Tests for module 'unicase/u16-casecoll'.
31026         * modules/unicase/u16-casecoll-tests: New file.
31027         * tests/unicase/test-u16-casecoll.c: New file.
31028
31029         Tests for module 'unicase/u8-casecoll'.
31030         * modules/unicase/u8-casecoll-tests: New file.
31031         * tests/unicase/test-u8-casecoll.c: New file.
31032
31033         New module 'unicase/u32-casecoll'.
31034         * lib/unicase/u32-casecoll.c: New file.
31035         * modules/unicase/u32-casecoll: New file.
31036
31037         New module 'unicase/u16-casecoll'.
31038         * lib/unicase/u16-casecoll.c: New file.
31039         * modules/unicase/u16-casecoll: New file.
31040
31041         New module 'unicase/u8-casecoll'.
31042         * lib/unicase/u8-casecoll.c: New file.
31043         * lib/unicase/u-casecoll.h: New file.
31044         * modules/unicase/u8-casecoll: New file.
31045
31046         New module 'unicase/u32-casexfrm'.
31047         * lib/unicase/u32-casexfrm.c: New file.
31048         * modules/unicase/u32-casexfrm: New file.
31049
31050         New module 'unicase/u16-casexfrm'.
31051         * lib/unicase/u16-casexfrm.c: New file.
31052         * modules/unicase/u16-casexfrm: New file.
31053
31054         New module 'unicase/u8-casexfrm'.
31055         * lib/unicase/u8-casexfrm.c: New file.
31056         * lib/unicase/u-casexfrm.h: New file.
31057         * modules/unicase/u8-casexfrm: New file.
31058
31059         Tests for module 'unicase/u32-casecmp'.
31060         * modules/unicase/u32-casecmp-tests: New file.
31061         * tests/unicase/test-u32-casecmp.c: New file.
31062
31063         Tests for module 'unicase/u16-casecmp'.
31064         * modules/unicase/u16-casecmp-tests: New file.
31065         * tests/unicase/test-u16-casecmp.c: New file.
31066
31067         Tests for module 'unicase/u8-casecmp'.
31068         * modules/unicase/u8-casecmp-tests: New file.
31069         * tests/unicase/test-u8-casecmp.c: New file.
31070         * tests/unicase/test-casecmp.h: New file.
31071
31072         New module 'unicase/u32-casecmp'.
31073         * lib/unicase/u32-casecmp.c: New file.
31074         * modules/unicase/u32-casecmp: New file.
31075
31076         New module 'unicase/u16-casecmp'.
31077         * lib/unicase/u16-casecmp.c: New file.
31078         * modules/unicase/u16-casecmp: New file.
31079
31080         New module 'unicase/u8-casecmp'.
31081         * lib/unicase/u8-casecmp.c: New file.
31082         * lib/unicase/u-casecmp.h: New file.
31083         * modules/unicase/u8-casecmp: New file.
31084
31085         Tests for module 'unicase/u32-casefold'.
31086         * modules/unicase/u32-casefold-tests: New file.
31087         * tests/unicase/test-u32-casefold.c: New file.
31088
31089         Tests for module 'unicase/u16-casefold'.
31090         * modules/unicase/u16-casefold-tests: New file.
31091         * tests/unicase/test-u16-casefold.c: New file.
31092
31093         Tests for module 'unicase/u8-casefold'.
31094         * modules/unicase/u8-casefold-tests: New file.
31095         * tests/unicase/test-u8-casefold.c: New file.
31096
31097         New module 'unicase/u32-casefold'.
31098         * lib/unicase/u32-casefold.c: New file.
31099         * modules/unicase/u32-casefold: New file.
31100
31101         New module 'unicase/u16-casefold'.
31102         * lib/unicase/u16-casefold.c: New file.
31103         * modules/unicase/u16-casefold: New file.
31104
31105         New module 'unicase/u8-casefold'.
31106         * lib/unicase/u8-casefold.c: New file.
31107         * lib/unicase/u-casefold.h: New file.
31108         * modules/unicase/u8-casefold: New file.
31109
31110         New module 'unicase/tocasefold'.
31111         * lib/unicase/casefold.h: New file.
31112         * lib/unicase/tocasefold.c: New file.
31113         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
31114         * modules/unicase/tocasefold: New file.
31115
31116         Tests for module 'unicase/u32-totitle'.
31117         * modules/unicase/u32-totitle-tests: New file.
31118         * tests/unicase/test-u32-totitle.c: New file.
31119
31120         Tests for module 'unicase/u16-totitle'.
31121         * modules/unicase/u16-totitle-tests: New file.
31122         * tests/unicase/test-u16-totitle.c: New file.
31123
31124         Tests for module 'unicase/u8-totitle'.
31125         * modules/unicase/u8-totitle-tests: New file.
31126         * tests/unicase/test-u8-totitle.c: New file.
31127
31128         New module 'unicase/u32-totitle'.
31129         * lib/unicase/u32-totitle.c: New file.
31130         * modules/unicase/u32-totitle: New file.
31131
31132         New module 'unicase/u16-totitle'.
31133         * lib/unicase/u16-totitle.c: New file.
31134         * modules/unicase/u16-totitle: New file.
31135
31136         New module 'unicase/u8-totitle'.
31137         * lib/unicase/u8-totitle.c: New file.
31138         * lib/unicase/u-totitle.h: New file.
31139         * modules/unicase/u8-totitle: New file.
31140
31141         Tests for module 'unicase/u32-tolower'.
31142         * modules/unicase/u32-tolower-tests: New file.
31143         * tests/unicase/test-u32-tolower.c: New file.
31144
31145         Tests for module 'unicase/u16-tolower'.
31146         * modules/unicase/u16-tolower-tests: New file.
31147         * tests/unicase/test-u16-tolower.c: New file.
31148
31149         Tests for module 'unicase/u8-tolower'.
31150         * modules/unicase/u8-tolower-tests: New file.
31151         * tests/unicase/test-u8-tolower.c: New file.
31152
31153         New module 'unicase/u32-tolower'.
31154         * lib/unicase/u32-tolower.c: New file.
31155         * modules/unicase/u32-tolower: New file.
31156
31157         New module 'unicase/u16-tolower'.
31158         * lib/unicase/u16-tolower.c: New file.
31159         * modules/unicase/u16-tolower: New file.
31160
31161         New module 'unicase/u8-tolower'.
31162         * lib/unicase/u8-tolower.c: New file.
31163         * modules/unicase/u8-tolower: New file.
31164
31165         Tests for module 'unicase/u32-toupper'.
31166         * modules/unicase/u32-toupper-tests: New file.
31167         * tests/unicase/test-u32-toupper.c: New file.
31168
31169         Tests for module 'unicase/u16-toupper'.
31170         * modules/unicase/u16-toupper-tests: New file.
31171         * tests/unicase/test-u16-toupper.c: New file.
31172
31173         Tests for module 'unicase/u8-toupper'.
31174         * modules/unicase/u8-toupper-tests: New file.
31175         * tests/unicase/test-u8-toupper.c: New file.
31176
31177         New module 'unicase/u32-toupper'.
31178         * lib/unicase/u32-toupper.c: New file.
31179         * modules/unicase/u32-toupper: New file.
31180
31181         New module 'unicase/u16-toupper'.
31182         * lib/unicase/u16-toupper.c: New file.
31183         * modules/unicase/u16-toupper: New file.
31184
31185         New module 'unicase/u8-toupper'.
31186         * lib/unicase/u8-toupper.c: New file.
31187         * modules/unicase/u8-toupper: New file.
31188
31189         New module 'unicase/u32-casemap'.
31190         * lib/unicase/u32-casemap.c: New file.
31191         * modules/unicase/u32-casemap: New file.
31192
31193         New module 'unicase/u16-casemap'.
31194         * lib/unicase/u16-casemap.c: New file.
31195         * modules/unicase/u16-casemap: New file.
31196
31197         New module 'unicase/u8-casemap'.
31198         * lib/unicase/unicasemap.h: New file.
31199         * lib/unicase/u8-casemap.c: New file.
31200         * lib/unicase/u-casemap.h: New file.
31201         * modules/unicase/u8-casemap: New file.
31202
31203         New module 'unicase/special-casing'.
31204         * lib/unicase/special-casing.h: New file.
31205         * lib/unicase/special-casing.c: New file.
31206         * lib/unicase/special-casing-table.gperf: New file, generated by
31207         gen-uni-tables.c.
31208         * modules/unicase/special-casing: New file.
31209
31210         Tests for module 'unicase/locale-language'.
31211         * modules/unicase/locale-language-tests: New file.
31212         * tests/unicase/test-locale-language.sh: New file.
31213         * tests/unicase/test-locale-language.c: New file.
31214
31215         New module 'unicase/locale-language'.
31216         * lib/unicase/locale-language.c: New file.
31217         * lib/unicase/locale-languages.gperf: New file.
31218         * modules/unicase/locale-language: New file.
31219
31220         Generate more tables for case conversion and case folding.
31221         * lib/gen-uni-tables.c (SCC_*): New enum items.
31222         (struct special_casing_rule): New type.
31223         (casing_rules, num_casing_rules, allocated_casing_rules): New
31224         variables.
31225         (add_casing_rule, fill_casing_rules): New functions.
31226         (struct casefold_rule): New type.
31227         (casefolding_rules, num_casefolding_rules,
31228         allocated_casefolding_rules): New variables.
31229         (fill_casefolding_rules): New function.
31230         (unicode_casefold): New variable.
31231         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
31232         sort_casing_rules, output_casing_rules): New functions.
31233         (main): Accept to more arguments: SpecialCasing.txt and
31234         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
31235         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
31236         Output mapping for casefolding.
31237
31238         * lib/unicase.h: Include stdbool.h, uninorm.h.
31239         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
31240         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
31241         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
31242         arguments.
31243         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
31244         resultp arguments.
31245         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
31246         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
31247         resultp arguments.
31248         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
31249         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
31250         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
31251         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
31252         declarations.
31253         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
31254
31255 2009-03-08  Bruno Haible  <bruno@clisp.org>
31256
31257         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31258         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
31259         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
31260         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31261
31262 2009-03-07  Bruno Haible  <bruno@clisp.org>
31263
31264         Adjust u*_normcmp, u*_normcoll API.
31265         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
31266         u16_normcoll, u32_normcoll): Change failure conventions.
31267         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
31268         errno and return -1.
31269         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
31270
31271 2009-03-07  Bruno Haible  <bruno@clisp.org>
31272
31273         Tests for module 'uninorm/u32-normcoll'.
31274         * modules/uninorm/u32-normcoll-tests: New file.
31275         * tests/uninorm/test-u32-normcoll.c: New file.
31276
31277         Tests for module 'uninorm/u16-normcoll'.
31278         * modules/uninorm/u16-normcoll-tests: New file.
31279         * tests/uninorm/test-u16-normcoll.c: New file.
31280
31281         Tests for module 'uninorm/u8-normcoll'.
31282         * modules/uninorm/u8-normcoll-tests: New file.
31283         * tests/uninorm/test-u8-normcoll.c: New file.
31284
31285 2009-03-07  Bruno Haible  <bruno@clisp.org>
31286
31287         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
31288         tests/uninorm/test-u32-normcmp.c.
31289         * tests/uninorm/test-u32-normcmp.c: Include it.
31290         (test_nonascii): New function, extracted from main. Add some more
31291         tests.
31292         (main): Invoke test_ascii and test_nonascii.
31293         * modules/uninorm/u32-normcmp-tests (Files): Add
31294         tests/uninorm/test-u32-normcmp.h.
31295         (Depends-on): Remove uninorm/u32-normcmp.
31296
31297         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
31298         tests/uninorm/test-u16-normcmp.c.
31299         * tests/uninorm/test-u16-normcmp.c: Include it.
31300         (test_nonascii): New function, extracted from main. Add some more
31301         tests.
31302         (main): Invoke test_ascii and test_nonascii.
31303         * modules/uninorm/u16-normcmp-tests (Files): Add
31304         tests/uninorm/test-u16-normcmp.h.
31305         (Depends-on): Remove uninorm/u16-normcmp.
31306
31307         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
31308         tests/uninorm/test-u8-normcmp.c.
31309         * tests/uninorm/test-u8-normcmp.c: Include it.
31310         (test_nonascii): New function, extracted from main. Add some more
31311         tests.
31312         (main): Invoke test_ascii and test_nonascii.
31313         * modules/uninorm/u8-normcmp-tests (Files): Add
31314         tests/uninorm/test-u8-normcmp.h.
31315         (Depends-on): Remove uninorm/u8-normcmp.
31316
31317 2009-03-07  Bruno Haible  <bruno@clisp.org>
31318
31319         New module 'uninorm/u32-normcoll'.
31320         * lib/uninorm/u32-normcoll.c: New file.
31321         * modules/uninorm/u32-normcoll: New file.
31322
31323         New module 'uninorm/u16-normcoll'.
31324         * lib/uninorm/u16-normcoll.c: New file.
31325         * modules/uninorm/u16-normcoll: New file.
31326
31327         New module 'uninorm/u8-normcoll'.
31328         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
31329         declarations.
31330         * lib/uninorm/u8-normcoll.c: New file.
31331         * lib/uninorm/u-normcoll.h: New file.
31332         * modules/uninorm/u8-normcoll: New file.
31333
31334         New module 'uninorm/u32-normxfrm'.
31335         * lib/uninorm/u32-normxfrm.c: New file.
31336         * modules/uninorm/u32-normxfrm: New file.
31337
31338         New module 'uninorm/u16-normxfrm'.
31339         * lib/uninorm/u16-normxfrm.c: New file.
31340         * modules/uninorm/u16-normxfrm: New file.
31341
31342         New module 'uninorm/u8-normxfrm'.
31343         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
31344         declarations.
31345         * lib/uninorm/u8-normxfrm.c: New file.
31346         * lib/uninorm/u-normxfrm.h: New file.
31347         * modules/uninorm/u8-normxfrm: New file.
31348
31349 2009-03-07  Bruno Haible  <bruno@clisp.org>
31350
31351         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
31352         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
31353         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
31354
31355 2009-03-07  Bruno Haible  <bruno@clisp.org>
31356
31357         New module 'memxfrm'.
31358         * lib/memxfrm.h: New file.
31359         * lib/memxfrm.c: New file.
31360         * modules/memxfrm: New file.
31361
31362 2009-03-07  Bruno Haible  <bruno@clisp.org>
31363
31364         New module 'memcmp2'.
31365         * lib/memcmp2.h: New file.
31366         * lib/memcmp2.c: New file.
31367         * modules/memcmp2: New file.
31368
31369 2009-03-07  Bruno Haible  <bruno@clisp.org>
31370
31371         Tests for module 'uninorm/decomposing-form'.
31372         * modules/uninorm/decomposing-form-tests: New file.
31373         * tests/uninorm/test-decomposing-form.c: New file.
31374
31375         New module 'uninorm/decomposing-form'.
31376         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
31377         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
31378         Add 'decomposing_variant' field.
31379         * lib/uninorm/decomposing-form.c: New file.
31380         * lib/uninorm/nfc.c (uninorm_nfc): Update.
31381         * lib/uninorm/nfd.c (uninorm_nfd): Update.
31382         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
31383         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
31384         * modules/uninorm/decomposing-form: New file.
31385         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
31386         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
31387
31388 2009-03-07  Bruno Haible  <bruno@clisp.org>
31389
31390         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
31391         strings.
31392
31393 2009-03-06  Bruno Haible  <bruno@clisp.org>
31394
31395         Tests for module 'uninorm/u32-normcmp'.
31396         * tests/uninorm/test-u32-normcmp.c: New file.
31397         * modules/uninorm/u32-normcmp-tests: New file.
31398
31399         Tests for module 'uninorm/u16-normcmp'.
31400         * tests/uninorm/test-u16-normcmp.c: New file.
31401         * modules/uninorm/u16-normcmp-tests: New file.
31402
31403         Tests for module 'uninorm/u8-normcmp'.
31404         * tests/uninorm/test-u8-normcmp.c: New file.
31405         * modules/uninorm/u8-normcmp-tests: New file.
31406
31407         New module 'uninorm/u32-normcmp'.
31408         * lib/uninorm/u32-normcmp.c: New file.
31409         * modules/uninorm/u32-normcmp: New file.
31410
31411         New module 'uninorm/u16-normcmp'.
31412         * lib/uninorm/u16-normcmp.c: New file.
31413         * modules/uninorm/u16-normcmp: New file.
31414
31415         New module 'uninorm/u8-normcmp'.
31416         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
31417         declarations.
31418         * lib/uninorm/u8-normcmp.c: New file.
31419         * lib/uninorm/u-normcmp.h: New file.
31420         * modules/uninorm/u8-normcmp: New file.
31421
31422 2009-03-06  Bruno Haible  <bruno@clisp.org>
31423
31424         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
31425         Reported by Eric Blake.
31426
31427 2009-03-06  Eric Blake  <ebb9@byu.net>
31428             Bruno Haible  <bruno@clisp.org>
31429
31430         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
31431         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
31432         condition.
31433         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31434         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
31435         condition.
31436         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
31437
31438 2009-03-06  Eric Blake  <ebb9@byu.net>
31439
31440         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
31441         to avoid compiler warnings.
31442         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
31443
31444 2009-03-05  Bruno Haible  <bruno@clisp.org>
31445
31446         * tests/test-ftell.c (main): Disable test beyond end of file on
31447         FreeMiNT.
31448         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31449
31450 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
31451
31452         * lib/filevercmp.c: Move hidden files up in ordering.
31453         * tests/test-filevercmp.c: Add tests for hidden files.
31454
31455 2009-03-04  Bruno Haible  <bruno@clisp.org>
31456
31457         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
31458         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
31459         AM_CFLAGS.
31460         Reported by Simon Josefsson.
31461
31462 2009-03-03  Bruno Haible  <bruno@clisp.org>
31463
31464         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
31465         Reported by Simon Josefsson.
31466
31467         * doc/ld-version-script.texi: Update node reference.
31468
31469 2009-03-03  Bruno Haible  <bruno@clisp.org>
31470
31471         * modules/visibility (License): Change to 'unlimited'.
31472         Suggested by Simon Josefsson.
31473
31474 2009-03-03  Jim Meyering  <meyering@redhat.com>
31475
31476         unlinkdir: cannot_unlink_dir may modify process state
31477         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
31478         it's neither thread-safe nor appropriate for use in a library.
31479
31480 2009-03-03  Eric Blake  <ebb9@byu.net>
31481
31482         test-closein: silence test under Darwin
31483         * tests/test-closein.sh: Ignore stderr from cat, since we don't
31484         care if it dies from EPIPE or EBADF.
31485
31486 2009-03-03  Bruno Haible  <bruno@clisp.org>
31487
31488         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
31489         earlier.
31490         * doc/visibility.texi: Fix @node and @section.
31491
31492 2009-03-03  Simon Josefsson  <simon@josefsson.org>
31493
31494         * doc/gnulib.texi: Link to sections for ld version script and
31495         visibility.
31496         * doc/visibility.texi: Add @node and @section.
31497         * modules/ld-version-script: New module.
31498         * m4/ld-version-script.m4: New file.
31499         * doc/ld-version-script.texi: New file.
31500
31501 2009-03-02  David Lutterkort  <lutter@redhat.com>
31502
31503         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
31504         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31505
31506 2009-03-02  Bruno Haible  <bruno@clisp.org>
31507
31508         * doc/visibility.texi: Mention libtool's -export-symbols option.
31509
31510 2009-03-02  Jim Meyering  <meyering@redhat.com>
31511
31512         announce-gen: new option: --no-print-checksums
31513         * build-aux/announce-gen (usage): Describe it.
31514         (print_checksums): Print a newline here, not in the [*] footnote.
31515         (main): Honor it.
31516
31517 2009-03-01  Bruno Haible  <bruno@clisp.org>
31518
31519         Use socklen_t in the native Windows replacements prototypes.
31520         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
31521         instead of 'int'.
31522         * lib/getsockopt.c (rpl_getsockopt): Likewise.
31523         * lib/setsockopt.c (rpl_setsockopt): Likewise.
31524         * modules/getsockopt (Depends-on): Add socklen.
31525         * modules/setsockopt (Depends-on): Add socklen.
31526
31527 2009-03-01  Bruno Haible  <bruno@clisp.org>
31528
31529         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
31530         least 4.2.
31531
31532 2009-03-01  Eric Blake  <ebb9@byu.net>
31533             Bruno Haible  <bruno@clisp.org>
31534
31535         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
31536         error messages.
31537         * lib/wait-process.c (wait_subprocess): Omit error message about
31538         deadly signal sent to the child of termsigp != NULL.
31539
31540 2009-03-01  Eric Blake  <ebb9@byu.net>
31541
31542         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
31543
31544 2009-03-01  Bruno Haible  <bruno@clisp.org>
31545
31546         Avoid a gcc warning.
31547         * tests/test-sched.c (b): Make global.
31548         Reported by Eric Blake.
31549
31550 2009-01-19  Martin Lambers  <marlam@marlam.de>
31551
31552         Provide POSIX semantics for socket timeout options on W32.
31553         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
31554         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
31555         * modules/setsockopt: Depend on sys_time module for struct timeval.
31556         * modules/getsockopt: Depend on sys_time module for struct timeval.
31557
31558 2009-03-01  Simon Josefsson  <simon@josefsson.org>
31559
31560         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
31561         __USE_GNU, for consistency with netdb.in.h.
31562         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31563
31564 2009-03-01  Bruno Haible  <bruno@clisp.org>
31565
31566         More support for FreeMiNT.
31567         * lib/fseeko.c (rpl_fseeko): Complete last commit.
31568         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31569
31570 2009-03-01  Bruno Haible  <bruno@clisp.org>
31571
31572         More support for FreeMiNT.
31573         * lib/fpurge.c (fpurge): Correct last commit.
31574         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31575
31576 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31577
31578         Fix unportable awk script in vc-list-files.
31579         * build-aux/vc-list-files: In the replacement awk script, use
31580         substr with a second argument of 1, not zero.
31581         Report by Simon Josefsson.
31582
31583 2009-02-28  Bruno Haible  <bruno@clisp.org>
31584
31585         More support for FreeMiNT.
31586         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
31587         to FreeMiNT today.
31588         * lib/fwriting.c (fwriting): Likewise.
31589         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
31590
31591 2009-02-28  Bruno Haible  <bruno@clisp.org>
31592
31593         * tests/test-freadseek.c (main): Disable test beyond end of file on
31594         FreeMiNT.
31595         * tests/test-ftello.c (main): Likewise.
31596         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
31597
31598 2009-02-28  Bruno Haible  <bruno@clisp.org>
31599
31600         Add tentative support for FreeMiNT.
31601         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
31602         * lib/fpurge.c (fpurge): Likewise.
31603         * lib/freadable.c (freadable): Likewise.
31604         * lib/freading.c (freading): Likewise.
31605         * lib/freadptr.c (freadptr): Likewise.
31606         * lib/freadseek.c (freadptrinc): Likewise.
31607         * lib/fseeko.c (rpl_fseeko): Likewise.
31608         * lib/fseterr.c (fseterr): Likewise.
31609         * lib/fwritable.c (fwritable): Likewise.
31610         * lib/fwriting.c (fwriting): Likewise.
31611         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
31612         Hourihane.
31613         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31614
31615 2009-02-28  Bruno Haible  <bruno@clisp.org>
31616
31617         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
31618         SIGCHLD.
31619         Reported by Jim Meyering.
31620
31621 2009-02-28  Bruno Haible  <bruno@clisp.org>
31622
31623         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
31624         Mention the results of these tests on various platforms.
31625         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
31626         order.
31627         * doc/posix-functions/printf.texi: Likewise.
31628         * doc/posix-functions/snprintf.texi: Likewise.
31629         * doc/posix-functions/sprintf.texi: Likewise.
31630         * doc/posix-functions/vfprintf.texi: Likewise.
31631         * doc/posix-functions/vprintf.texi: Likewise.
31632         * doc/posix-functions/vsnprintf.texi: Likewise.
31633         * doc/posix-functions/vsprintf.texi: Likewise.
31634         * doc/glibc-functions/obstack_printf.texi: Likewise.
31635         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
31636
31637 2009-02-28  Bruno Haible  <bruno@clisp.org>
31638
31639         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
31640         Reported by Loïc Minier <lool@dooz.org>.
31641
31642 2009-02-27  Bruno Haible  <bruno@clisp.org>
31643
31644         * gnulib-tool (func_import): Make the sed expression used to create the
31645         sed script for updating the .gitignore file POSIX compliant.
31646         Reported by Eric Blake.
31647
31648 2009-02-27  Bruno Haible  <bruno@clisp.org>
31649
31650         * gnulib-tool (sed): Don't alias as "sed --posix".
31651         Reported by Eric Blake.
31652
31653 2009-02-27  Bruno Haible  <bruno@clisp.org>
31654
31655         Avoid test link errors.
31656         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
31657         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
31658         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
31659         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
31660         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
31661
31662 2009-02-27  Bruno Haible  <bruno@clisp.org>
31663
31664         Avoid spurious "(cached)" in configure output.
31665         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
31666         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
31667         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
31668         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
31669         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
31670         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
31671         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
31672         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
31673         Reported by Eric Blake.
31674
31675 2009-02-27  Eric Blake  <ebb9@byu.net>
31676
31677         printf: fix regression in previous patch
31678         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
31679
31680 2009-02-27  Bruno Haible  <bruno@clisp.org>
31681
31682         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
31683         value.
31684         * lib/stdint.in.h: Likewise.
31685         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
31686
31687 2009-02-27  Eric Blake  <ebb9@byu.net>
31688
31689         doc: mention more functions added in cygwin 1.7.0
31690         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
31691         addition.
31692         * doc/posix-functions/open_wmemstream.texi: Likewise.
31693         * doc/posix-functions/wcsnlen.texi: Likewise.
31694         * doc/posix-functions/wcsnrtombs.texi: Likewise.
31695         * doc/posix-functions/wcstod.texi: Likewise.
31696         * doc/posix-functions/wcstof.texi: Likewise.
31697         * doc/posix-functions/wcstoimax.texi: Likewise.
31698         * doc/posix-functions/wcstok.texi: Likewise.
31699         * doc/posix-functions/wcstoumax.texi: Likewise.
31700
31701         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
31702         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
31703         * doc/posix-functions/fprintf.texi: Update.
31704         * doc/posix-functions/printf.texi: Update.
31705         * doc/posix-functions/snprintf.texi: Update.
31706         * doc/posix-functions/sprintf.texi: Update.
31707         * doc/posix-functions/vfprintf.texi: Update.
31708         * doc/posix-functions/vprintf.texi: Update.
31709         * doc/posix-functions/vsnprintf.texi: Update.
31710         * doc/posix-functions/vsprintf.texi: Update.
31711         * doc/glibc-functions/obstack_printf.texi: Update.
31712         * doc/glibc-functions/obstack_vprintf.texi: Update.
31713
31714 2009-02-26  Eric Blake  <ebb9@byu.net>
31715
31716         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
31717         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
31718         compilation bug by using runtime conversion.
31719         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
31720         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
31721         * modules/ceill-tests (Files): Use nan.h.
31722         * modules/floorl-tests (Files): Likewise.
31723         * modules/frexpl-tests (Files): Likewise.
31724         * modules/isnanl-tests (Files): Likewise.
31725         * modules/ldexpl-tests (Files): Likewise.
31726         * modules/roundl-tests (Files): Likewise.
31727         * modules/truncl-tests (Files): Likewise.
31728         * tests/test-ceill.c (main): Use a working NaN.
31729         * tests/test-floorl.c (main): Likewise.
31730         * tests/test-frexpl.c (main): Likewise.
31731         * tests/test-isnan.c (test_long_double): Likewise.
31732         * tests/test-isnanl.h (main): Likewise.
31733         * tests/test-ldexpl.h (main): Likewise.
31734         * tests/test-roundl.h (main): Likewise.
31735         * tests/test-truncl.h (main): Likewise.
31736         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
31737
31738 2009-02-26  Eric Blake  <ebb9@byu.net>
31739             Bruno Haible  <bruno@clisp.org>
31740
31741         Work around a *printf bug with %ls on Solaris.
31742         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
31743         precision is specified, sprintf stops converting the wide string
31744         argument when the number of bytes that have been produced by this
31745         conversion equals or exceeds the precision.
31746         * doc/posix-functions/fprintf.texi: Update.
31747         * doc/posix-functions/printf.texi: Update.
31748         * doc/posix-functions/snprintf.texi: Update.
31749         * doc/posix-functions/sprintf.texi: Update.
31750         * doc/posix-functions/vfprintf.texi: Update.
31751         * doc/posix-functions/vprintf.texi: Update.
31752         * doc/posix-functions/vsnprintf.texi: Update.
31753         * doc/posix-functions/vsprintf.texi: Update.
31754         * doc/glibc-functions/obstack_printf.texi: Update.
31755         * doc/glibc-functions/obstack_vprintf.texi: Update.
31756
31757 2009-02-26  Eric Blake  <ebb9@byu.net>
31758
31759         stdlib: favor compiler check of random.h
31760         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
31761         to avoid an ObjC random.h installed by Swarm.
31762
31763 2009-02-26  Bruno Haible  <bruno@clisp.org>
31764
31765         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
31766         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
31767         Reported by Gary V. Vaughan <gary@gnu.org>.
31768
31769 2009-02-26  Bruno Haible  <bruno@clisp.org>
31770
31771         Fix *printf behaviour regarding the %ls directive.
31772         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
31773         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
31774         NEED_PRINTF_DIRECTIVE_LS.
31775         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
31776         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
31777         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
31778         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
31779         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
31780         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
31781         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
31782         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31783         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31784         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31785         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31786         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
31787         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31788         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31789         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31790         * doc/posix-functions/fprintf.texi: Update.
31791         * doc/posix-functions/printf.texi: Update.
31792         * doc/posix-functions/snprintf.texi: Update.
31793         * doc/posix-functions/sprintf.texi: Update.
31794         * doc/posix-functions/vfprintf.texi: Update.
31795         * doc/posix-functions/vprintf.texi: Update.
31796         * doc/posix-functions/vsnprintf.texi: Update.
31797         * doc/posix-functions/vsprintf.texi: Update.
31798         * doc/glibc-functions/obstack_printf.texi: Update.
31799         * doc/glibc-functions/obstack_vprintf.texi: Update.
31800         Reported by Eric Blake.
31801
31802 2009-02-25  Bruno Haible  <bruno@clisp.org>
31803
31804         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
31805         with known value.
31806         Reported by Gary V. Vaughan <gary@gnu.org>.
31807
31808 2009-02-25  Bruno Haible  <bruno@clisp.org>
31809
31810         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
31811         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
31812         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
31813         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
31814         Reported by Gary V. Vaughan <gary@gnu.org>.
31815
31816 2009-02-25  Bruno Haible  <bruno@clisp.org>
31817
31818         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
31819         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
31820         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
31821         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
31822         Reported by Gary V. Vaughan <gary@gnu.org>.
31823
31824 2009-02-25  Eric Blake  <ebb9@byu.net>
31825
31826         tests: skip fseek/ftell tests if ungetc is broken
31827         * m4/ungetc.m4: New file.
31828         * modules/fseek-tests: Split test, so ungetc dependency is
31829         separate from rest of test.
31830         * modules/fseeko-tests: Likewise.
31831         * modules/ftell-tests: Likewise.
31832         * modules/ftello-tests: Likewise.
31833         * tests/test-fseek.c (main): Isolate ungetc dependency.
31834         * tests/test-fseeko.c (main): Likewise.
31835         * tests/test-ftell.c (main): Likewise.
31836         * tests/test-ftello.c (main): Likewise.
31837         * tests/test-fseek2.sh: New file.
31838         * tests/test-fseeko2.sh: Likewise.
31839         * tests/test-ftell2.sh: Likewise.
31840         * tests/test-ftello2.sh: Likewise.
31841
31842 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
31843
31844         test-getaddrinfo: fix usage of skip return code 77
31845         * tests/test-gettaddrinfo.c: Return skip code 77 only
31846         for first occurance of skip (4x77 is not 77)
31847
31848 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
31849
31850         strtod: avoid C99 decl-after-statement
31851         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
31852
31853 2009-02-24  Eric Blake  <ebb9@byu.net>
31854
31855         strtod: detect HP-UX 11.31 bug
31856         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
31857         Reported by Gary V. Vaughan.
31858
31859 2009-02-23  Bruno Haible  <bruno@clisp.org>
31860
31861         Fix invalid read past end of memory block.
31862         * lib/vasnprintf.c (DCHAR_SET): Define.
31863         (local_wcslen): Define only when needed.
31864         (local_strnlen, local_wcsnlen): New functions.
31865         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
31866         directives that involve a conversion ourselves.
31867         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
31868         wcsnlen, mbrtowc, wcrtomb.
31869         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
31870         * tests/test-vasprintf-posix.c (test_function): Likewise.
31871         * tests/test-snprintf-posix.h (test_function): Likewise.
31872         * tests/test-sprintf-posix.h (test_function): Likewise.
31873         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31874
31875 2009-02-22  Bruno Haible  <bruno@clisp.org>
31876
31877         Implement new clarified decomposition of Hangul syllables.
31878         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
31879         of type LTV, return only a pairwise decomposition.
31880         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
31881         Likewise.
31882         * tests/uninorm/test-decomposition.c (main): Updated expected result.
31883         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
31884         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
31885
31886 2009-02-22  Bruno Haible  <bruno@clisp.org>
31887
31888         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
31889         zero-length results and shrink excess allocated memory.
31890         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
31891         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
31892         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
31893         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
31894         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
31895         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
31896         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
31897         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
31898         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
31899         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
31900         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
31901         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
31902
31903 2009-02-21  Bruno Haible  <bruno@clisp.org>
31904
31905         * doc/gnulib.texi: Include safe-alloc.texi earlier.
31906         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
31907         spaces after a period. Put a space between a macro name and its
31908         argument list. Trivial rewordings.
31909         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
31910         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
31911         (main): Return 0 explicitly.
31912
31913 2009-02-21  Bruno Haible  <bruno@clisp.org>
31914
31915         Tests for module 'uninorm/filter'.
31916         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
31917         * modules/uninorm/filter-tests: New file.
31918
31919         New module 'uninorm/filter'.
31920         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
31921         uninorm_filter_flush, uninorm_filter_free): New declarations.
31922         * lib/uninorm/uninorm-filter.c: New file.
31923         * modules/uninorm/filter: New file.
31924
31925 2009-02-21  Bruno Haible  <bruno@clisp.org>
31926
31927         Tests for module 'uninorm/nfkc'.
31928         * tests/uninorm/test-nfkc.c: New file.
31929         * tests/uninorm/test-u8-nfkc.c: New file.
31930         * tests/uninorm/test-u16-nfkc.c: New file.
31931         * tests/uninorm/test-u32-nfkc.c: New file.
31932         * tests/uninorm/test-u32-nfkc-big.sh: New file.
31933         * tests/uninorm/test-u32-nfkc-big.c: New file.
31934         * modules/uninorm/nfkc-tests: New file.
31935
31936         New module 'uninorm/nfkc'.
31937         * lib/uninorm/nfkc.c: New file.
31938         * modules/uninorm/nfkc: New file.
31939
31940         Tests for module 'uninorm/nfkd'.
31941         * tests/uninorm/test-nfkd.c: New file.
31942         * tests/uninorm/test-u8-nfkd.c: New file.
31943         * tests/uninorm/test-u16-nfkd.c: New file.
31944         * tests/uninorm/test-u32-nfkd.c: New file.
31945         * tests/uninorm/test-u32-nfkd-big.sh: New file.
31946         * tests/uninorm/test-u32-nfkd-big.c: New file.
31947         * modules/uninorm/nfkd-tests: New file.
31948
31949         New module 'uninorm/nfkd'.
31950         * lib/uninorm/nfkd.c: New file.
31951         * modules/uninorm/nfkd: New file.
31952
31953         Tests for module 'uninorm/nfc'.
31954         * tests/uninorm/test-nfc.c: New file.
31955         * tests/uninorm/test-u8-nfc.c: New file.
31956         * tests/uninorm/test-u16-nfc.c: New file.
31957         * tests/uninorm/test-u32-nfc.c: New file.
31958         * tests/uninorm/test-u32-nfc-big.sh: New file.
31959         * tests/uninorm/test-u32-nfc-big.c: New file.
31960         * modules/uninorm/nfc-tests: New file.
31961
31962         New module 'uninorm/nfc'.
31963         * lib/uninorm/nfc.c: New file.
31964         * modules/uninorm/nfc: New file.
31965
31966         Tests for module 'uninorm/nfd'.
31967         * tests/uninorm/test-nfd.c: New file.
31968         * tests/uninorm/test-u8-nfd.c: New file.
31969         * tests/uninorm/test-u16-nfd.c: New file.
31970         * tests/uninorm/test-u32-nfd.c: New file.
31971         * tests/uninorm/test-u32-nfd-big.sh: New file.
31972         * tests/uninorm/test-u32-nfd-big.c: New file.
31973         * tests/uninorm/test-u32-normalize-big.h: New file.
31974         * tests/uninorm/test-u32-normalize-big.c: New file.
31975         * tests/uninorm/NormalizationTest.txt: New file, created from
31976         Unicode 5.1.0 NormalizationTest.txt.
31977         * modules/uninorm/nfd-tests: New file.
31978
31979         New module 'uninorm/nfd'.
31980         * lib/uninorm/nfd.c: New file.
31981         * modules/uninorm/nfd: New file.
31982
31983         New module 'uninorm/u32-normalize'.
31984         * lib/uninorm/u32-normalize.c: New file.
31985         * modules/uninorm/u32-normalize: New file.
31986
31987         New module 'uninorm/u16-normalize'.
31988         * lib/uninorm/u16-normalize.c: New file.
31989         * modules/uninorm/u16-normalize: New file.
31990
31991         New module 'uninorm/u8-normalize'.
31992         * lib/uninorm/u8-normalize.c: New file.
31993         * lib/uninorm/normalize-internal.h: New file.
31994         * lib/uninorm/u-normalize-internal.h: New file.
31995         * modules/uninorm/u8-normalize: New file.
31996
31997         New module 'uninorm/decompose-internal'.
31998         * lib/uninorm/decompose-internal.c: New file.
31999         * modules/uninorm/decompose-internal: New file.
32000
32001         Tests for module 'uninorm/composition'.
32002         * tests/uninorm/test-composition.c: New file.
32003         * modules/uninorm/composition-tests: New file.
32004
32005         New module 'uninorm/composition'.
32006         * lib/uninorm/composition.c: New file.
32007         * lib/uninorm/composition-table.gperf: New file, generated by
32008         gen-uni-tables.
32009         * modules/uninorm/composition: New file.
32010
32011         Tests for module 'uninorm/compat-decomposition'.
32012         * tests/uninorm/test-compat-decomposition.c: New file.
32013         * modules/uninorm/compat-decomposition-tests: New file.
32014
32015         New module 'uninorm/compat-decomposition'.
32016         * lib/uninorm/decompose-internal.h: New file.
32017         * lib/uninorm/compat-decomposition.c: New file.
32018         * modules/uninorm/compat-decomposition: New file.
32019
32020         Tests for module 'uninorm/canonical-decomposition'.
32021         * tests/uninorm/test-canonical-decomposition.c: New file.
32022         * modules/uninorm/canonical-decomposition-tests: New file.
32023
32024         New module 'uninorm/canonical-decomposition'.
32025         * lib/uninorm/canonical-decomposition.c: New file.
32026         * modules/uninorm/canonical-decomposition: New file.
32027
32028         Tests for module 'uninorm/decomposition'.
32029         * tests/uninorm/test-decomposition.c: New file.
32030         * modules/uninorm/decomposition-tests: New file.
32031
32032         New module 'uninorm/decomposition'.
32033         * lib/uninorm/decomposition.c: New file.
32034         * modules/uninorm/decomposition: New file.
32035
32036         New module 'uninorm/decomposition-table'.
32037         * lib/uninorm/decomposition-table.h: New file.
32038         * lib/uninorm/decomposition-table.c: New file.
32039         * lib/uninorm/decomposition-table1.h: New file, generated by
32040         gen-uni-tables.
32041         * lib/uninorm/decomposition-table2.h: New file, generated by
32042         gen-uni-tables.
32043         * modules/uninorm/decomposition-table: New file.
32044
32045         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
32046         (UC_DECOMP_*): New enumeration items.
32047         (get_decomposition): New function.
32048         (struct decomp_table): New type.
32049         (output_decomposition, output_decomposition_tables): New functions.
32050         (unicode_composition_exclusions): New variable.
32051         (fill_composition_exclusions, debug_output_composition_tables): New
32052         functions.
32053         (main): Accept one more argument. Invoke fill_composition_exclusions.
32054         Output decomposition and composition tables.
32055
32056         New module 'uninorm/base'.
32057         * lib/uninorm.h: New file.
32058         * lib/unictype.h: Update comment.
32059         * modules/uninorm/base: New file.
32060
32061 2009-02-21  David Lutterkort  <lutter@redhat.com>
32062
32063         Tests for module 'safe-alloc'.
32064         * tests/test-safe-alloc.c: New file.
32065         * modules/safe-alloc-tests: New file.
32066
32067         New module 'safe-alloc'.
32068         * lib/safe-alloc.h: New file.
32069         * lib/safe-alloc.c: New file.
32070         * m4/safe-alloc.m4: New file.
32071         * modules/safe-alloc: New file.
32072         * doc/safe-alloc.texi: New file.
32073         * doc/gnulib.texi: Include it.
32074         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
32075         safe-alloc.
32076
32077 2009-02-18  Bruno Haible  <bruno@clisp.org>
32078
32079         Fix link error on non-glibc systems.
32080         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
32081         variable.
32082         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32083
32084 2009-02-18  Jim Meyering  <meyering@redhat.com>
32085
32086         fts: avoid used-uninitialized error due to recent change
32087         * lib/fts.c (fts_read): Guard uses of the new member,
32088         parent->fts_n_dirs_remaining, since it's not relevant for
32089         the parent of a directory specified on the command-line.
32090
32091 2009-02-17  James Youngman  <jay@gnu.org>
32092             Bruno Haible  <bruno@clisp.org>
32093
32094         * m4/include_next.m4: Reformulate comment.
32095
32096 2009-02-16  Jim Meyering  <meyering@redhat.com>
32097
32098         fts: add #if guards so that the fts_lgpl module still builds
32099         * lib/fts.c: Guard just-added hash-table-using parts with
32100         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
32101         Reported by Simon Josefsson.
32102
32103 2009-02-15  Bruno Haible  <bruno@clisp.org>
32104
32105         * modules/array-mergesort-tests: New file.
32106         * tests/test-array-mergesort.c: New file.
32107
32108         New module 'array-mergesort'.
32109         * modules/array-mergesort: New file.
32110         * lib/array-mergesort.h: New file.
32111
32112 2009-02-15  Bruno Haible  <bruno@clisp.org>
32113
32114         Fix 2009-02-07 commit.
32115         * lib/gen-uni-tables.c (output_predicate, output_category,
32116         output_combclass, output_bidi_category, output_decimal_digit,
32117         output_digit, output_numeric, output_mirror, output_scripts,
32118         output_ident_category, output_simple_mapping): Fix format directives.
32119         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
32120
32121 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
32122
32123         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
32124         fixes are available from IBM.
32125
32126 2009-02-13  Jim Meyering  <meyering@redhat.com>
32127
32128         fts: arrange not to stat non-directories in more cases
32129         This makes GNU find (when it doesn't need to stat each file)
32130         *much* more efficient at traversing reiserfs file systems.
32131         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
32132         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
32133         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
32134         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
32135         (leaf_optimization_applies): New function.
32136         (LCO_hash, LCO_compare): New helper functions.
32137         (link_count_optimize_ok): New function.
32138         (fts_stat): Initialize new member (if dir).
32139         (fts_read): Decrement parent's fts_n_dirs_remaining count if
32140         we've just stat'ed a directory.  Skip the stat call when possible.
32141         ---
32142         Note this AFS-related exchange:
32143         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
32144         and note find's pioctl call in find/fstype.c.
32145         But that is necessary only if you want to enable the
32146         optimization for AFS, and for now, I don't.
32147
32148         fts: move a function definition "up" (no semantic change)
32149         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
32150         "up" to precede upcoming use of a related function.
32151
32152 2009-02-11  Jim Meyering  <meyering@redhat.com>
32153
32154         fts: correct internal computation of nlinks (optimization-related)
32155         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
32156         whether the current entry is a directory, so don't test it.
32157
32158 2009-02-10  Bruno Haible  <bruno@clisp.org>
32159
32160         Tests for module 'uniwbrk/ulc-wordbreaks'.
32161         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
32162         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
32163         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
32164
32165         Tests for module 'uniwbrk/u32-wordbreaks'.
32166         * modules/uniwbrk/u32-wordbreaks-tests: New file.
32167         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
32168
32169         Tests for module 'uniwbrk/u16-wordbreaks'.
32170         * modules/uniwbrk/u16-wordbreaks-tests: New file.
32171         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
32172
32173         Tests for module 'uniwbrk/u8-wordbreaks'.
32174         * modules/uniwbrk/u8-wordbreaks-tests: New file.
32175         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
32176
32177 2009-02-10  Bruno Haible  <bruno@clisp.org>
32178
32179         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
32180         property.
32181         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
32182         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
32183         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
32184
32185 2009-02-10  Simon Josefsson  <simon@josefsson.org>
32186
32187         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
32188         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
32189
32190 2009-02-10  Bruno Haible  <bruno@clisp.org>
32191
32192         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
32193         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
32194         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
32195         * lib/unilbrk/u8-possible-linebreaks.c: Update.
32196         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
32197         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
32198
32199 2009-02-09  Simon Josefsson  <simon@josefsson.org>
32200
32201         * lib/sockets.h (gl_fd_to_handle): New function.
32202
32203         * tests/test-sockets.c: Call gl_fd_to_handle.
32204
32205 2009-02-09  Bruno Haible  <bruno@clisp.org>
32206
32207         * doc/havelib.texi: Document the conventions on bi-arch systems.
32208
32209 2009-02-08  Bruno Haible  <bruno@clisp.org>
32210
32211         Document the AC_LIB_LINKFLAGS macro.
32212         * doc/havelib.texi: New file, mostly written on 2005-05-24.
32213         * doc/gnulib.texi: Include it.
32214
32215 2009-02-08  Bruno Haible  <bruno@clisp.org>
32216
32217         Fix wrong order of sections, compared to TOC.
32218         * doc/gnulib.texi: Include relocatable-maint.texi after the
32219         "Regular expressions" node, not before.
32220
32221 2009-02-08  Bruno Haible  <bruno@clisp.org>
32222
32223         Tests for module 'unicase/totitle'.
32224         * modules/unicase/totitle-tests: New file.
32225
32226         Tests for module 'unicase/tolower'.
32227         * modules/unicase/tolower-tests: New file.
32228
32229         Tests for module 'unicase/toupper'.
32230         * modules/unicase/toupper-tests: New file.
32231         * tests/unicase/test-mapping-part1.h: New file.
32232         * tests/unicase/test-mapping-part2.h: New file.
32233
32234         New module 'unicase/totitle'.
32235         * modules/unicase/totitle: New file.
32236         * lib/unicase/totitle.c: New file.
32237
32238         New module 'unicase/tolower'.
32239         * modules/unicase/tolower: New file.
32240         * lib/unicase/tolower.c: New file.
32241
32242         New module 'unicase/toupper'.
32243         * modules/unicase/toupper: New file.
32244         * lib/unicase/toupper.c: New file.
32245         * lib/unicase/simple-mapping.h: New file.
32246
32247         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
32248         (mapping_table): New structure.
32249         (output_simple_mapping): New function.
32250         (main): Invoke output_simple_mapping_test and output_simple_mapping.
32251         * modules/gen-uni-tables (Description): Update.
32252         * lib/unicase/toupper.h: New file, automatically generated by
32253         gen-uni-tables.
32254         * lib/unicase/tolower.h: New file, automatically generated by
32255         gen-uni-tables.
32256         * lib/unicase/totitle.h: New file, automatically generated by
32257         gen-uni-tables.
32258         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
32259         gen-uni-tables.
32260         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
32261         gen-uni-tables.
32262         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
32263         gen-uni-tables.
32264
32265         New module 'unicase/base'.
32266         * modules/unicase/base: New file.
32267         * lib/unicase.h: New file.
32268
32269 2009-02-08  Bruno Haible  <bruno@clisp.org>
32270
32271         New module 'uniwbrk/ulc-wordbreaks'.
32272         * modules/uniwbrk/ulc-wordbreaks: New file.
32273         * lib/uniwbrk/ulc-wordbreaks.c: New file.
32274
32275         New module 'uniwbrk/u32-wordbreaks'.
32276         * modules/uniwbrk/u32-wordbreaks: New file.
32277         * lib/uniwbrk/u32-wordbreaks.c: New file.
32278
32279         New module 'uniwbrk/u16-wordbreaks'.
32280         * modules/uniwbrk/u16-wordbreaks: New file.
32281         * lib/uniwbrk/u16-wordbreaks.c: New file.
32282
32283         New module 'uniwbrk/u8-wordbreaks'.
32284         * modules/uniwbrk/u8-wordbreaks: New file.
32285         * lib/uniwbrk/u8-wordbreaks.c: New file.
32286         * lib/uniwbrk/u-wordbreaks.h: New file.
32287
32288         New module 'uniwbrk/table'.
32289         * modules/uniwbrk/table: New file.
32290         * lib/uniwbrk/wbrktable.h: New file.
32291         * lib/uniwbrk/wbrktable.c: New file.
32292
32293         New module 'uniwbrk/wordbreak-property'.
32294         * modules/uniwbrk/wordbreak-property: New file.
32295         * lib/uniwbrk/wordbreak-property.c: New file.
32296
32297         * lib/gen-uni-tables.c (WBP_*): New enum items.
32298         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
32299         (unicode_org_wbp): New variable.
32300         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
32301         New functions.
32302         (wbp_table): New structure.
32303         (output_wbp, output_wbrk_tables): New functions.
32304         (main): Accept additional argument. Invoke fill_org_wbp,
32305         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
32306         output_wbrk_tables.
32307         * modules/gen-uni-tables (Description): Update.
32308         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
32309         gen-uni-tables.
32310
32311         New module 'uniwbrk/base'.
32312         * modules/uniwbrk/base: New file.
32313         * lib/uniwbrk.h: New file.
32314
32315 2009-02-08  Bruno Haible  <bruno@clisp.org>
32316
32317         Update to Unicode 5.1.0.
32318         * lib/gen-uni-tables.c (is_property_alphabetic): Include
32319         U+2185..U+2188.
32320         (is_property_default_ignorable_code_point): Don't include characters
32321         of category Cc or Cs and not-a-characters.
32322         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
32323         U+0D79, U+109E, U+109F, U+A60C.
32324         * lib/unictype/bidi_of.h: Regenerated.
32325         * lib/unictype/blocks.h: Regenerated.
32326         * lib/unictype/categ_C.h: Regenerated.
32327         * lib/unictype/categ_Cf.h: Regenerated.
32328         * lib/unictype/categ_Cn.h: Regenerated.
32329         * lib/unictype/categ_L.h: Regenerated.
32330         * lib/unictype/categ_Ll.h: Regenerated.
32331         * lib/unictype/categ_Lm.h: Regenerated.
32332         * lib/unictype/categ_Lo.h: Regenerated.
32333         * lib/unictype/categ_Lu.h: Regenerated.
32334         * lib/unictype/categ_M.h: Regenerated.
32335         * lib/unictype/categ_Mc.h: Regenerated.
32336         * lib/unictype/categ_Me.h: Regenerated.
32337         * lib/unictype/categ_Mn.h: Regenerated.
32338         * lib/unictype/categ_N.h: Regenerated.
32339         * lib/unictype/categ_Nd.h: Regenerated.
32340         * lib/unictype/categ_Nl.h: Regenerated.
32341         * lib/unictype/categ_No.h: Regenerated.
32342         * lib/unictype/categ_P.h: Regenerated.
32343         * lib/unictype/categ_Pd.h: Regenerated.
32344         * lib/unictype/categ_Pe.h: Regenerated.
32345         * lib/unictype/categ_Pf.h: Regenerated.
32346         * lib/unictype/categ_Pi.h: Regenerated.
32347         * lib/unictype/categ_Po.h: Regenerated.
32348         * lib/unictype/categ_Ps.h: Regenerated.
32349         * lib/unictype/categ_S.h: Regenerated.
32350         * lib/unictype/categ_Sk.h: Regenerated.
32351         * lib/unictype/categ_Sm.h: Regenerated.
32352         * lib/unictype/categ_So.h: Regenerated.
32353         * lib/unictype/categ_of.h: Regenerated.
32354         * lib/unictype/combining.h: Regenerated.
32355         * lib/unictype/ctype_alnum.h: Regenerated.
32356         * lib/unictype/ctype_alpha.h: Regenerated.
32357         * lib/unictype/ctype_graph.h: Regenerated.
32358         * lib/unictype/ctype_lower.h: Regenerated.
32359         * lib/unictype/ctype_print.h: Regenerated.
32360         * lib/unictype/ctype_punct.h: Regenerated.
32361         * lib/unictype/ctype_upper.h: Regenerated.
32362         * lib/unictype/decdigit.h: Regenerated.
32363         * lib/unictype/digit.h: Regenerated.
32364         * lib/unictype/mirror.h: Regenerated.
32365         * lib/unictype/numeric.h: Regenerated.
32366         * lib/unictype/pr_alphabetic.h: Regenerated.
32367         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
32368         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
32369         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
32370         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
32371         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
32372         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
32373         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
32374         * lib/unictype/pr_combining.h: Regenerated.
32375         * lib/unictype/pr_dash.h: Regenerated.
32376         * lib/unictype/pr_decimal_digit.h: Regenerated.
32377         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
32378         * lib/unictype/pr_deprecated.h: Regenerated.
32379         * lib/unictype/pr_diacritic.h: Regenerated.
32380         * lib/unictype/pr_extender.h: Regenerated.
32381         * lib/unictype/pr_format_control.h: Regenerated.
32382         * lib/unictype/pr_grapheme_base.h: Regenerated.
32383         * lib/unictype/pr_grapheme_extend.h: Regenerated.
32384         * lib/unictype/pr_grapheme_link.h: Regenerated.
32385         * lib/unictype/pr_id_continue.h: Regenerated.
32386         * lib/unictype/pr_id_start.h: Regenerated.
32387         * lib/unictype/pr_ideographic.h: Regenerated.
32388         * lib/unictype/pr_ignorable_control.h: Regenerated.
32389         * lib/unictype/pr_lowercase.h: Regenerated.
32390         * lib/unictype/pr_math.h: Regenerated.
32391         * lib/unictype/pr_numeric.h: Regenerated.
32392         * lib/unictype/pr_other_alphabetic.h: Regenerated.
32393         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
32394         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
32395         * lib/unictype/pr_other_id_continue.h: Regenerated.
32396         * lib/unictype/pr_other_lowercase.h: Regenerated.
32397         * lib/unictype/pr_other_math.h: Regenerated.
32398         * lib/unictype/pr_punctuation.h: Regenerated.
32399         * lib/unictype/pr_sentence_terminal.h: Regenerated.
32400         * lib/unictype/pr_soft_dotted.h: Regenerated.
32401         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
32402         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
32403         * lib/unictype/pr_unified_ideograph.h: Regenerated.
32404         * lib/unictype/pr_uppercase.h: Regenerated.
32405         * lib/unictype/pr_xid_continue.h: Regenerated.
32406         * lib/unictype/pr_xid_start.h: Regenerated.
32407         * lib/unictype/pr_zero_width.h: Regenerated.
32408         * lib/unictype/scripts.h: Regenerated.
32409         * lib/unictype/scripts_byname.gperf: Regenerated.
32410         * lib/unictype/sy_java_ident.h: Regenerated.
32411         * lib/unilbrk/lbrkprop1.h: Regenerated.
32412         * lib/unilbrk/lbrkprop2.h: Regenerated.
32413         * tests/unictype/test-categ_C.c: Regenerated.
32414         * tests/unictype/test-categ_Cf.c: Regenerated.
32415         * tests/unictype/test-categ_Cn.c: Regenerated.
32416         * tests/unictype/test-categ_L.c: Regenerated.
32417         * tests/unictype/test-categ_Ll.c: Regenerated.
32418         * tests/unictype/test-categ_Lm.c: Regenerated.
32419         * tests/unictype/test-categ_Lo.c: Regenerated.
32420         * tests/unictype/test-categ_Lu.c: Regenerated.
32421         * tests/unictype/test-categ_M.c: Regenerated.
32422         * tests/unictype/test-categ_Mc.c: Regenerated.
32423         * tests/unictype/test-categ_Me.c: Regenerated.
32424         * tests/unictype/test-categ_Mn.c: Regenerated.
32425         * tests/unictype/test-categ_N.c: Regenerated.
32426         * tests/unictype/test-categ_Nd.c: Regenerated.
32427         * tests/unictype/test-categ_Nl.c: Regenerated.
32428         * tests/unictype/test-categ_No.c: Regenerated.
32429         * tests/unictype/test-categ_P.c: Regenerated.
32430         * tests/unictype/test-categ_Pd.c: Regenerated.
32431         * tests/unictype/test-categ_Pe.c: Regenerated.
32432         * tests/unictype/test-categ_Pf.c: Regenerated.
32433         * tests/unictype/test-categ_Pi.c: Regenerated.
32434         * tests/unictype/test-categ_Po.c: Regenerated.
32435         * tests/unictype/test-categ_Ps.c: Regenerated.
32436         * tests/unictype/test-categ_S.c: Regenerated.
32437         * tests/unictype/test-categ_Sk.c: Regenerated.
32438         * tests/unictype/test-categ_Sm.c: Regenerated.
32439         * tests/unictype/test-categ_So.c: Regenerated.
32440         * tests/unictype/test-ctype_alnum.c: Regenerated.
32441         * tests/unictype/test-ctype_alpha.c: Regenerated.
32442         * tests/unictype/test-ctype_graph.c: Regenerated.
32443         * tests/unictype/test-ctype_lower.c: Regenerated.
32444         * tests/unictype/test-ctype_print.c: Regenerated.
32445         * tests/unictype/test-ctype_punct.c: Regenerated.
32446         * tests/unictype/test-ctype_upper.c: Regenerated.
32447         * tests/unictype/test-decdigit.h: Regenerated.
32448         * tests/unictype/test-digit.h: Regenerated.
32449         * tests/unictype/test-numeric.h: Regenerated.
32450         * tests/unictype/test-pr_alphabetic.c: Regenerated.
32451         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
32452         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
32453         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
32454         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
32455         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
32456         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
32457         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
32458         * tests/unictype/test-pr_combining.c: Regenerated.
32459         * tests/unictype/test-pr_dash.c: Regenerated.
32460         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
32461         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
32462         * tests/unictype/test-pr_deprecated.c: Regenerated.
32463         * tests/unictype/test-pr_diacritic.c: Regenerated.
32464         * tests/unictype/test-pr_extender.c: Regenerated.
32465         * tests/unictype/test-pr_format_control.c: Regenerated.
32466         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
32467         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
32468         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
32469         * tests/unictype/test-pr_id_continue.c: Regenerated.
32470         * tests/unictype/test-pr_id_start.c: Regenerated.
32471         * tests/unictype/test-pr_ideographic.c: Regenerated.
32472         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
32473         * tests/unictype/test-pr_lowercase.c: Regenerated.
32474         * tests/unictype/test-pr_math.c: Regenerated.
32475         * tests/unictype/test-pr_numeric.c: Regenerated.
32476         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
32477         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
32478         Regenerated.
32479         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
32480         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
32481         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
32482         * tests/unictype/test-pr_other_math.c: Regenerated.
32483         * tests/unictype/test-pr_punctuation.c: Regenerated.
32484         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
32485         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
32486         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
32487         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
32488         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
32489         * tests/unictype/test-pr_uppercase.c: Regenerated.
32490         * tests/unictype/test-pr_xid_continue.c: Regenerated.
32491         * tests/unictype/test-pr_xid_start.c: Regenerated.
32492         * tests/unictype/test-pr_zero_width.c: Regenerated.
32493
32494         Update to Unicode 5.1.0.
32495         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
32496         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
32497         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
32498         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
32499         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
32500         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
32501         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
32502         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
32503         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
32504         (nonspacing_table_ind): Update.
32505         * tests/uniwidth/test-uc_width2.sh: Update expected result.
32506
32507         Update to Unicode 5.1.0.
32508         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
32509         code transform.
32510         * lib/uniname/uniname.c (unicode_character_name,
32511         unicode_name_character): Add the range 0x1Fxxx to the code transform.
32512         * lib/uniname/uninames.h: Regenerated.
32513         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
32514
32515 2009-02-07  Bruno Haible  <bruno@clisp.org>
32516
32517         Merge gen-ctype and gen-lbrk into a single program.
32518         * lib/gen-uni-tables.c: New file, incorporating
32519         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
32520         Add directory prefixes to the names of the generated files.
32521         * lib/unictype/gen-ctype.c: Remove file.
32522         * lib/unilbrk/gen-lbrk.c: Remove file.
32523         * modules/gen-uni-tables: New file.
32524         * modules/unictype/gen-ctype: Remove file.
32525         * modules/unilbrk/gen-lbrk: Remove file.
32526
32527 2009-02-07  Bruno Haible  <bruno@clisp.org>
32528
32529         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
32530
32531         New module 'unistr/u32-strcoll'.
32532         * modules/unistr/u32-strcoll: New file.
32533         * lib/unistr/u32-strcoll.c: New file.
32534
32535         New module 'unistr/u16-strcoll'.
32536         * modules/unistr/u16-strcoll: New file.
32537         * lib/unistr/u16-strcoll.c: New file.
32538
32539         New module 'unistr/u8-strcoll'.
32540         * modules/unistr/u8-strcoll: New file.
32541         * lib/unistr/u8-strcoll.c: New file.
32542         * lib/unistr/u-strcoll.h: New file.
32543
32544 2009-02-07  Bruno Haible  <bruno@clisp.org>
32545
32546         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
32547         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32548         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
32549         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
32550         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
32551         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
32552
32553 2009-02-07  Bruno Haible  <bruno@clisp.org>
32554
32555         Make 64-bit clean.
32556         * lib/unictype/gen-ctype.c (output_predicate, output_category,
32557         output_combclass, output_bidi_category, output_decimal_digit,
32558         output_digit, output_numeric, output_mirror, output_scripts,
32559         output_ident_category): Use proper width specifier in format strings.
32560
32561 2009-02-07  Bruno Haible  <bruno@clisp.org>
32562
32563         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
32564         failure behaviour.
32565
32566 2009-02-07  Jim Meyering  <meyering@redhat.com>
32567
32568         regex: avoid compilation failure with upcoming gcc-4.4
32569         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
32570         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
32571         "... error: integer overflow in preprocessor expression".
32572
32573 2009-02-05  Ben Pfaff  <blp@gnu.org>
32574
32575         Fix link errors on Windows when close module is used.
32576         * modules/close: Add $(LIB_CLOSE) to Link section.
32577         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
32578         $(LIB_CLOSE) on Windows.
32579
32580 2009-02-05  Jim Meyering  <meyering@redhat.com>
32581
32582         still avoid unused-parameter warnings, but do it cleanly
32583         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
32584         (get_fs_usage): Cast to void instead.
32585         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
32586         (dev_from_mount_options, read_file_system_list): Cast to void.
32587         Prompted by Bruno Haible.
32588
32589 2009-02-04  Jim Meyering  <meyering@redhat.com>
32590
32591         fsusage.c: correct copyright year
32592         * lib/fsusage.c: Reflect year in which the change is pushed into
32593
32594         avoid misc. warnings
32595         * lib/fsusage.c (UNUSED_PARAM): Define.
32596         (get_fs_usage): Mark parameter "disk" as unused.
32597         * lib/getugroups.c (getgrent): Use "void" in prototype.
32598         * lib/mountlist.c: Mark unused parameters.
32599         (read_file_system_list): Declare a local with "const".
32600         * lib/nanosleep.c (getnow): Declare static.
32601         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
32602
32603         dirfd: set errno upon failure
32604         * lib/dirfd.c: Include <errno.h>.
32605         Set errno to ENOTSUP when returning -1.
32606         * modules/dirfd (Depends-on): Add errno.
32607         Suggested by John Kodis <kodis@comcast.net>.
32608
32609 2009-02-01  Bruno Haible  <bruno@clisp.org>
32610
32611         Don't assume sizeof (long) >= sizeof (void *).
32612         * lib/memcmp.c: Include stdint.h.
32613         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
32614         srcp2 to 'const byte *'.
32615         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
32616         types to uintptr_t.
32617         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
32618         * modules/memcmp (Depends-on): Add stdint.
32619         Reported by Ozkan Sezer <sezeroz@gmail.com>.
32620
32621 2009-01-30  Eric Blake  <ebb9@byu.net>
32622
32623         fix more require-before-expand issues
32624         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
32625         expand, AC_PROG_AWK.
32626         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
32627
32628 2009-01-28  Eric Blake  <ebb9@byu.net>
32629
32630         version-etc: use consistent URL formatting
32631         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
32632         Improve formatting.  Use fputs for string without %.
32633
32634 2009-01-28  Jim Meyering  <meyering@redhat.com>
32635
32636         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
32637         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
32638         "underquoted definition of NAME" from autoconf-2.59.
32639
32640 2009-01-28  Bruno Haible  <bruno@clisp.org>
32641
32642         * doc/gnulib.texi: Add "Obsolete modules" to index.
32643
32644 2009-01-28  Jim Meyering  <meyering@redhat.com>
32645
32646         useless-if-before-free: recognize more variants
32647         * build-aux/useless-if-before-free: Also recognize e.g.,
32648         if (NULL != p) free (p);
32649
32650 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
32651
32652         test-getaddrinfo: skip (don't fail) this test when there's no network
32653         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
32654         on the presumption that it means you lack network access.
32655
32656 2009-01-26  Jim Meyering  <meyering@redhat.com>
32657
32658         fflush: avoid warnings on modern systems
32659         * lib/fflush.c (rpl_fflush): Move declarations of locals,
32660         pos and result, into scopes where they're used.
32661
32662 2009-01-26  Eric Blake  <ebb9@byu.net>
32663
32664         Silence warning reintroduced by recent extensions patch.
32665         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
32666         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
32667         autoconf.
32668
32669         Backport improved autoconf semantics of AC_DEFUN_ONCE.
32670         * m4/00gnulib.m4: New file.
32671         * gnulib-tool (func_get_filelist): Always use it.
32672         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
32673         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
32674
32675 2009-01-25  Bruno Haible  <bruno@clisp.org>
32676
32677         Make test-quotearg work on MacOS X and AIX.
32678         * tests/test-quotearg.sh: New file.
32679         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
32680         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
32681         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
32682         include <libintl.h>.
32683         (fake_locale): Remove variable.
32684         (gettext, dgettext, dcgettext): Remove functions.
32685         (main): Instead of setting a fake locale, set a real locale. Call
32686         textdomain and bindtextdomain.
32687         * modules/quotearg-tests (Files): Add the new files.
32688         (Depends-on): Add gettext, setenv, unsetenv.
32689         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
32690         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
32691         Augment TESTS_ENVIRONMENT.
32692
32693 2009-01-25  Bruno Haible  <bruno@clisp.org>
32694
32695         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
32696         fr_FR.ISO8859-1 locale on MacOS X.
32697         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
32698         ja_JP.eucJP locale on MacOS X.
32699         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
32700         zh_CN.GB18030 locale on MacOS X.
32701
32702 2009-01-25  Bruno Haible  <bruno@clisp.org>
32703
32704         Avoid link errors on MacOS X 10.3.
32705         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
32706         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
32707
32708 2009-01-25  Bruno Haible  <bruno@clisp.org>
32709
32710         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32711         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
32712         * modules/pipe (Files): Remove m4/posix_spawn.m4.
32713         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32714         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
32715         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32716         posix_spawnattr_init, posix_spawnattr_setsigmask,
32717         posix_spawnattr_setflags, posix_spawnattr_destroy.
32718
32719         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
32720         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
32721         * modules/execute (Files): Remove m4/posix_spawn.m4.
32722         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
32723         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
32724         posix_spawnattr_init, posix_spawnattr_setsigmask,
32725         posix_spawnattr_setflags, posix_spawnattr_destroy.
32726
32727 2009-01-25  Bruno Haible  <bruno@clisp.org>
32728
32729         * lib/glthread/threadlib.c: Include <stdlib.h>.
32730
32731 2009-01-25  Bruno Haible  <bruno@clisp.org>
32732
32733         * lib/glthread/threadlib.c (dummy): New declaration.
32734
32735 2009-01-25  Bruno Haible  <bruno@clisp.org>
32736
32737         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
32738         multibyte characters also for the GB18030 encoding. Don't crash when
32739         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
32740
32741 2009-01-25  Bruno Haible  <bruno@clisp.org>
32742
32743         Avoid redefining 'struct random_data' on OSF/1 5.1.
32744         * lib/stdlib.in.h: Include <random.h> if it exists.
32745         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
32746         HAVE_RANDOM_H. Include <random.h> when testing whether
32747         'struct random_data' exists.
32748         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
32749
32750 2009-01-25  Bruno Haible  <bruno@clisp.org>
32751
32752         Don't install charset.alias on MacOS X >= 10.3.
32753         * lib/localcharset.c (DARWIN7): New macro.
32754         (get_charset_aliases): Hardcode the result for Darwin7.
32755         * modules/localcharset (install-exec-local): Don't install
32756         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
32757
32758 2009-01-25  Bruno Haible  <bruno@clisp.org>
32759
32760         Don't install charset.alias on mingw and Cygwin.
32761         * modules/localcharset (install-exec-local): Don't install
32762         charset.alias on mingw and Cygwin, if the file does not yet exist.
32763         The result for these platforms is hardcoded in localcharset.c.
32764
32765 2009-01-25  Bruno Haible  <bruno@clisp.org>
32766
32767         Make it possible again to use AC_GNU_SOURCE together with gnulib.
32768         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
32769         before requiring AC_USE_SYSTEM_EXTENSIONS.
32770
32771 2009-01-25  Jim Meyering  <meyering@redhat.com>
32772
32773         c-strtod: avoid warnings
32774         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
32775         "assignment discards qualifiers from pointer target type" warnings.
32776
32777 2009-01-24  Bruno Haible  <bruno@clisp.org>
32778
32779         Add support for non-UTF-8 locales on MacOS X.
32780         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
32781         canonical encodings. For Darwin 7 and newer, don't map traditional
32782         encodings to UTF-8.
32783         Reported by Vincent Lefevre <vincent@vinc17.org>
32784         at <http://savannah.gnu.org/bugs/?25235>.
32785
32786 2009-01-24  Bruno Haible  <bruno@clisp.org>
32787
32788         * doc/gnulib.texi (Obsolete modules): New section.
32789         Reported by Mike Frysinger <vapier@gentoo.org>.
32790
32791 2009-01-24  Bruno Haible  <bruno@clisp.org>
32792
32793         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
32794         (%.dvi): New rule.
32795
32796 2009-01-24  Bruno Haible  <bruno@clisp.org>
32797
32798         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
32799         Reported by Eric Blake.
32800
32801 2009-01-24  Bruno Haible  <bruno@clisp.org>
32802
32803         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
32804         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
32805         Reported by Gary V. Vaughan <gary@gnu.org>.
32806
32807 2009-01-24  Bruno Haible  <bruno@clisp.org>
32808
32809         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
32810
32811 2009-01-23  Bruno Haible  <bruno@clisp.org>
32812
32813         Make c-strtod, c-strtold usable in libraries.
32814         * lib/c-strtod.c: Include string.h instead of xalloc.h.
32815         (C_STRTOD): Call strdup instead of xstrdup.
32816         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
32817         * modules/c-strtold (Depends-on): Likewise.
32818         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
32819         * NEWS: Mention the change.
32820         Reported by Michael Gold <mgold@ncf.ca>.
32821
32822 2009-01-23  Jim Meyering  <meyering@redhat.com>
32823
32824         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
32825         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
32826         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
32827
32828 2009-01-23  Simon Josefsson  <simon@josefsson.org>
32829
32830         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
32831         GNU CoreUtils.
32832         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
32833         * modules/version-etc (Description): Update.
32834
32835 2009-01-22  Bruno Haible  <bruno@clisp.org>
32836
32837         Cache the C locale object.
32838         * lib/c-strtod.c (c_locale_cache): New variable.
32839         (c_locale): New function.
32840         (C_STRTOD): Use it, and don't call freelocale.
32841         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
32842         Suggested by Paolo Bonzini.
32843
32844 2009-01-21  Bruno Haible  <bruno@clisp.org>
32845
32846         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
32847         conditions other than overflow.
32848
32849 2009-01-21  Bruno Haible  <bruno@clisp.org>
32850
32851         * lib/c-strtod.c: Include errno.h.
32852         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
32853         value from STRTOD_L and STRTOD.
32854
32855 2009-01-21  Bruno Haible  <bruno@clisp.org>
32856         and Jim Meyering  <meyering@redhat.com>
32857
32858         nanosleep: skip configure test (fail it) for apple universal builds
32859         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
32860         universal builds, assume that nanosleep does not work.
32861         * modules/nanosleep (Depends-on): Add multiarch.
32862
32863         mktime: skip configure test (fail it) for apple universal builds
32864         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
32865         universal builds, assume that mktime does not work.
32866         * modules/mktime (Depends-on): Add multiarch.
32867
32868 2009-01-21  Eric Blake  <ebb9@byu.net>
32869
32870         multiarch: avoid expand-before-require warning
32871         * modules/multiarch (configure.ac): Require, rather than expand,
32872         gl_MULTIARCH.
32873         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
32874         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
32875         enforce that all clients require it.  Partial reversion of
32876         2008-12-29 patch.
32877
32878         error: avoid expand-before-require warning
32879         * modules/errno (configure.ac): Require, rather than expand,
32880         gl_HEADER_ERRNO_H.
32881         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
32882         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
32883         enforce that all clients require it.
32884
32885         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
32886         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
32887         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
32888         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
32889
32890 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
32891
32892         Revert:
32893         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32894
32895         regex: do not depend on obsolete modules.
32896         * modules/regex: Remove memcmp and memmove.
32897
32898 2009-01-20  Bruno Haible  <bruno@clisp.org>
32899
32900         Make the 'link' module link on Windows NT 4.
32901         * lib/link.c (_WIN32_WINNT): Don't define.
32902         (CreateHardLinkFuncType): New type.
32903         (CreateHardLinkFunc, initialized): New variables.
32904         (initialize): New function.
32905         (link): Invoke CreateHardLink indirectly through the function pointer.
32906
32907 2009-01-20  Bruno Haible  <bruno@clisp.org>
32908
32909         Fix compilation failure on mingw.
32910         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
32911
32912 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
32913
32914         * doc/c-strtod.texi: Mention a couple of restrictions.
32915
32916 2009-01-20  Jim Meyering  <meyering@redhat.com>
32917
32918         gettimeofday: move more declarations out of functions
32919         * lib/gettimeofday.c: Move extern declarations of tzset and
32920         gmtime out of containing functions.  Prompted by Bruno Haible.
32921
32922 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
32923
32924         regex: do not depend on obsolete modules.
32925         * modules/regex: Remove memcmp and memmove.
32926
32927 2009-01-19  Bruno Haible  <bruno@clisp.org>
32928
32929         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32930         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
32931         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32932         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
32933         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
32934
32935 2009-01-19  Bruno Haible  <bruno@clisp.org>
32936
32937         * tests/test-link.c: Include <errno.h>.
32938         (main): Exit with code 77 when a hard link cannot be created due to
32939         the file system.
32940         * tests/test-link.sh: Skip test when a hard link cannot be created due
32941         to the file system.
32942         Suggested by Eric Blake.
32943
32944 2009-01-19  Martin Lambers  <marlam@marlam.de>
32945
32946         * modules/link-tests: New file.
32947         * tests/test-link.sh: New file.
32948         * tests/test-link.c: New file.
32949
32950 2009-01-19  Eric Blake  <ebb9@byu.net>
32951
32952         doc: mention another function added in cygwin 1.7.0
32953         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
32954         Another new function in cygwin 1.7.
32955
32956 2009-01-19  Bruno Haible  <bruno@clisp.org>
32957
32958         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
32959         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
32960         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
32961         gl_BIGENDIAN, not AC_C_BIGENDIAN.
32962         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32963         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
32964         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
32965         * m4/md4.m4 (gl_MD4): Likewise.
32966         * m4/md5.m4 (gl_MD5): Likewise.
32967         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
32968         * m4/sha1.m4 (gl_SHA1): Likewise.
32969         * m4/sha256.m4 (gl_SHA256): Likewise.
32970         * m4/sha512.m4 (gl_SHA512): Likewise.
32971
32972 2009-01-19  Bruno Haible  <bruno@clisp.org>
32973
32974         * modules/uniname/uniname-tests (Depends-on): Add progname.
32975         * tests/uniname/test-uninames.c: Include progname.h.
32976         (main): Call set_program_name.
32977
32978         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
32979         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
32980         (main): Call set_program_name.
32981
32982         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
32983         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
32984         (main): Call set_program_name.
32985
32986         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
32987         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
32988         (main): Call set_program_name.
32989
32990         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
32991         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
32992         (main): Call set_program_name.
32993
32994         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
32995         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
32996         (main): Call set_program_name.
32997
32998         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
32999         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
33000         (main): Call set_program_name.
33001
33002         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
33003         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
33004         (main): Call set_program_name.
33005
33006         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
33007         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
33008         (main): Call set_program_name.
33009
33010 2009-01-19  Eric Blake  <ebb9@byu.net>
33011
33012         test-unistd: test previous patch
33013         * tests/test-unistd.c: Test *_FILENO macros.
33014
33015         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
33016         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33017         Guarantee a definition.
33018         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
33019         * modules/unistd-safer (Depends-on): Add dependency on unistd.
33020         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
33021         * lib/dup-safer.c (STDERR_FILENO): Likewise.
33022         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33023         Likewise.
33024         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
33025         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
33026         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
33027         Likewise.
33028         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
33029         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
33030         (STDERR_FILENO): Likewise.
33031         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
33032         (STDERR_FILENO): Likewise.
33033         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
33034         (STDERR_FILENO): Likewise.
33035         Reported by Elbert Pol.
33036
33037 2009-01-19  Eric Blake  <ebb9@byu.net>
33038
33039         doc: mention more functions added in cygwin 1.7.0
33040         * doc/posix-functions/abort.texi (abort): Update wording related
33041         to cygwin.
33042         * doc/posix-functions/daylight.texi (daylight): Likewise.
33043         * doc/posix-functions/optarg.texi (optarg): Likewise.
33044         * doc/posix-functions/optarg.texi (opterr): Likewise.
33045         * doc/posix-functions/optarg.texi (optind): Likewise.
33046         * doc/posix-functions/optarg.texi (optopt): Likewise.
33047         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
33048         worked in 1.5.x, and was withdrawn in 1.7.
33049         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
33050         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
33051         cygwin versions.
33052         * doc/posix-functions/perror.texi (perror): Likewise.
33053         * doc/posix-functions/printf.texi (printf): Likewise.
33054         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
33055         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
33056         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
33057         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
33058         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
33059         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
33060         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
33061         Likewise.
33062         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
33063         Likewise.
33064         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
33065         this function.
33066         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
33067         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
33068         Likewise.
33069         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
33070         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
33071         * doc/posix-functions/confstr.texi (confstr): Likewise.
33072         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
33073         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
33074         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
33075         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
33076         * doc/posix-functions/fputws.texi (fputws): Likewise.
33077         * doc/posix-functions/fwide.texi (fwide): Likewise.
33078         * doc/posix-functions/getwc.texi (getwc): Likewise.
33079         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
33080         * doc/posix-functions/putwc.texi (putwc): Likewise.
33081         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
33082         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
33083         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
33084         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
33085         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
33086         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
33087         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
33088         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
33089         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
33090         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
33091         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
33092
33093 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
33094
33095         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
33096         * lib/ioctl.c: Include <sys/ioctl.h>.
33097
33098 2009-01-19  Simon Josefsson  <simon@josefsson.org>
33099
33100         * modules/getdate-tests (Depends-on): Add progname.
33101         * tests/test-getdate.c: Use progname module, to avoid link errors
33102         on non-glibc systems.
33103
33104 2009-01-18  Simon Josefsson  <simon@josefsson.org>
33105
33106         * modules/filenamecat-tests (Depends-on): Add progname.
33107         * modules/fstrcmp-tests (Depends-on): Likewise.
33108
33109         * tests/test-filenamecat.c: Use progname module, to avoid link
33110         errors on non-glibc systems.
33111         * tests/test-fstrcmp.c: Likewise.
33112
33113 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
33114
33115         gettimeofday: avoid warning: nested extern declaration of 'localtime'
33116         * lib/gettimeofday.c: Move extern declaration out of function.
33117
33118 2009-01-18  Bruno Haible  <bruno@clisp.org>
33119
33120         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
33121         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
33122         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
33123
33124 2009-01-18  Bruno Haible  <bruno@clisp.org>
33125
33126         * lib/strftime.c (MEMPCPY): Remove unused macro.
33127         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
33128
33129 2009-01-18  Martin Lambers  <marlam@marlam.de>
33130
33131         New module 'link'.
33132         * lib/unistd.in.h (link): New declaration.
33133         * lib/link.c: New file.
33134         * m4/link.m4: New file.
33135         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
33136         HAVE_LINK.
33137         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
33138         * modules/link: New file.
33139         * doc/posix-functions/link.texi: Mention the new module.
33140
33141 2009-01-18  Bruno Haible  <bruno@clisp.org>
33142
33143         * tests/test-avltree_list.c (main): Call set_program_name.
33144         * tests/test-avltree_oset.c (main): Likewise.
33145         * tests/test-obstack-printf.c: Include progname.h.
33146         (main): Call set_program_name.
33147         * tests/test-quotearg.c: Include progname.h.
33148         (main): Call set_program_name.
33149         * tests/test-xmemdup0.c: Include progname.h.
33150         (main): Call set_program_name.
33151
33152 2009-01-18  Bruno Haible  <bruno@clisp.org>
33153
33154         New module 'alphasort'.
33155         * lib/dirent.in.h (alphasort): New declaration.
33156         * lib/alphasort.c: New file, from glibc with modifications.
33157         * m4/alphasort.m4: New file.
33158         * modules/alphasort: New file.
33159         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
33160         HAVE_ALPHASORT.
33161         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
33162         HAVE_ALPHASORT.
33163         * doc/posix-functions/alphasort.texi: Mention the new module and the
33164         portability problems.
33165
33166 2009-01-18  Bruno Haible  <bruno@clisp.org>
33167
33168         New module 'scandir'.
33169         * lib/dirent.in.h (scandir): New declaration.
33170         * lib/scandir.c: New file, from glibc with modifications.
33171         * m4/scandir.m4: New file.
33172         * modules/scandir: New file.
33173         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
33174         HAVE_SCANDIR.
33175         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
33176         HAVE_SCANDIR.
33177         * doc/posix-functions/scandir.texi: Mention the new module and the
33178         portability problems.
33179
33180 2009-01-17  Bruno Haible  <bruno@clisp.org>
33181
33182         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
33183         Update documentation.
33184         (func_remove_suffix): Escape all dots in the suffix. Update
33185         documentation.
33186         (func_filter_filelist): Update documentation.
33187         Reported by Ralf Wildenhues.
33188
33189 2009-01-17  Bruno Haible  <bruno@clisp.org>
33190
33191         * modules/dprintf-posix-tests: New file.
33192         * tests/test-dprintf-posix.sh: New file.
33193         * tests/test-dprintf-posix.c: New file.
33194
33195         New modules 'dprintf', 'dprintf-posix'.
33196         * lib/stdio.in.h (dprintf): New declaration.
33197         * lib/dprintf.c: New file.
33198         * m4/dprintf.m4: New file.
33199         * m4/dprintf-posix.m4: New file.
33200         * modules/dprintf: New file.
33201         * modules/dprintf-posix: New file.
33202         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
33203         HAVE_DPRINTF, REPLACE_DPRINTF.
33204         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
33205         HAVE_DPRINTF, REPLACE_DPRINTF.
33206         * doc/posix-functions/dprintf.texi: Mention the new modules.
33207
33208 2009-01-17  Bruno Haible  <bruno@clisp.org>
33209
33210         * modules/vdprintf-posix-tests: New file.
33211         * tests/test-vdprintf-posix.sh: New file.
33212         * tests/test-vdprintf-posix.c: New file.
33213
33214         New modules 'vdprintf', 'vdprintf-posix'.
33215         * lib/stdio.in.h (vdprintf): New declaration.
33216         * lib/vdprintf.c: New file.
33217         * m4/vdprintf.m4: New file.
33218         * m4/vdprintf-posix.m4: New file.
33219         * modules/vdprintf: New file.
33220         * modules/vdprintf-posix: New file.
33221         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
33222         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33223         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
33224         HAVE_VDPRINTF, REPLACE_VDPRINTF.
33225         * doc/posix-functions/vdprintf.texi: Mention the new modules.
33226
33227 2009-01-17  Bruno Haible  <bruno@clisp.org>
33228
33229         Fix replacement of fopen on mingw.
33230         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
33231         mingw.
33232
33233 2009-01-17  Bruno Haible  <bruno@clisp.org>
33234
33235         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
33236         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
33237
33238 2009-01-17  Bruno Haible  <bruno@clisp.org>
33239
33240         Avoid test-fflush2.sh failure on mingw.
33241         * tests/test-fflush2.c: Include binary-io.h.
33242         (main): Put standard input into binary mode.
33243         * modules/fflush-tests (Depends-on): Add binary-io.
33244
33245 2009-01-17  Bruno Haible  <bruno@clisp.org>
33246
33247         * lib/wchar.in.h: In another particular situation, include only the
33248         system's <wchar.h> file.
33249         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
33250         Reported by Albert Chin-A-Young <china@thewrittenword.com>
33251         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
33252
33253 2009-01-17  Bruno Haible  <bruno@clisp.org>
33254
33255         Support for stripping executables in --enable-relocatable.
33256         * build-aux/install-reloc: Expect one more argument, or an environment
33257         variable RELOC_STRIP_PROG. If set, strip the destination program and
33258         its wrapper.
33259         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
33260         RELOC_STRIP_PROG.
33261         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
33262         to set RELOCATABLE_STRIP.
33263         * NEWS: Mention the new Makefile requirement.
33264
33265 2009-01-17  Bruno Haible  <bruno@clisp.org>
33266
33267         * build-aux/install-reloc: Remove debugging information left over by
33268         C compiler on MacOS X.
33269
33270 2009-01-17  Bruno Haible  <bruno@clisp.org>
33271
33272         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
33273         * lib/progreloc.c (find_executable): Fix type of pointer passed to
33274         _NSGetExecutablePath.
33275
33276 2009-01-16  Jim Meyering  <meyering@redhat.com>
33277
33278         strerror: avoid warnings about discarding "const"
33279         * lib/strerror.c (rpl_strerror): Instead of returning a const
33280         string from each and every "case", use a variable, and add a single
33281         cast after the switch.
33282
33283 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
33284
33285         * lib/arpa_inet.in.h: Add extern "C" block for C++.
33286
33287 2009-01-16  Bruno Haible  <bruno@clisp.org>
33288
33289         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
33290         array initializer syntax that also works in C++ mode.
33291         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33292
33293 2009-01-16  Jim Meyering  <meyering@redhat.com>
33294
33295         poll: suppress a warning
33296         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
33297         to ignore "...unsigned expression < 0 is always false" warnings.
33298
33299 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
33300
33301         poll: remove declarations of unused variables
33302         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
33303         sockbuf and optlen.
33304
33305 2009-01-15  Bruno Haible  <bruno@clisp.org>
33306
33307         Make fflush-after-ungetc POSIX compliant on BSD systems.
33308         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
33309         (clear_ungetc_buffer): Implement also for other systems.
33310         (rpl_fflush): On glibc systems, invoke
33311         clear_ungetc_buffer_preserving_position. Otherwise, invoke
33312         clear_ungetc_buffer after fetching the stream's position, not before.
33313
33314 2009-01-15  Bruno Haible  <bruno@clisp.org>
33315
33316         Make fflush-after-ungetc POSIX compliant on glibc systems.
33317         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
33318         after ungetc.
33319         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
33320         (rpl_fflush): On glibc systems, simply call the system's fflush
33321         function after clearing the ungetc buffer.
33322         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
33323         Instead, lseek only to the end of file, then use the system's fseeko
33324         for the rest. On glibc systems, reset the EOF indicator bit.
33325
33326 2009-01-15  Jim Meyering  <meyering@redhat.com>
33327
33328         openmp.m4: revert quote-adding change, for portability to older autoconf
33329         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
33330         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
33331         Simon Josefsson noticed the problem when using autoconf-2.61.
33332
33333 2009-01-15  Bruno Haible  <bruno@clisp.org>
33334
33335         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
33336         * tests/test-fflush2.c (ASSERT): Always fail.
33337         (main): Add two tests for fflush() after ungetc(), taking into account
33338         the Austin Group's clarification.
33339         Suggested by Eric Blake.
33340
33341 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
33342
33343         mktime.m4: remove K&R-style function prototypes
33344         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
33345         for the Sun C++ compiler.
33346
33347 2009-01-14  Bruno Haible  <bruno@clisp.org>
33348
33349         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
33350         while including <wchar.h>.
33351         * lib/wchar.in.h: In two particular situations on HP-UX, include only
33352         the system's <wchar.h> file.
33353         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
33354
33355 2009-01-14  Bruno Haible  <bruno@clisp.org>
33356
33357         * m4/csharp.m4: Don't mention gettext on the serial number line.
33358         * m4/csharpexec.m4: Likewise.
33359         * m4/eaccess.m4: Likewise.
33360         * m4/javaexec.m4: Likewise.
33361         * m4/sig_atomic_t.m4: Likewise.
33362         * m4/tmpdir.m4: Likewise.
33363         * m4/intldir.m4: Bump gettext version.
33364         * m4/lib-ld.m4: Likewise.
33365
33366 2009-01-14  Bruno Haible  <bruno@clisp.org>
33367
33368         * lib/progname.c (set_program_name): Add more comments.
33369         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
33370
33371 2009-01-14  Simon Josefsson  <simon@josefsson.org>
33372
33373         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
33374         were sys/stat.h does not define it.
33375
33376 2009-01-14  Jim Meyering  <meyering@redhat.com>
33377
33378         many *.m4 files: improve m4 quoting
33379         99% of this change was performed by running the following commands:
33380         git ls-files | grep '\.m4$' | xargs perl -pi \
33381           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
33382           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33383           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
33384           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
33385         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
33386         The remainder were to add Copyright dates, increment serial numbers,
33387         undo some changes in comments, exclude m4/intl.m4, and add quotes
33388         around the "1" in ",1" where the unusual spacing prohibited the
33389         above regexps from doing the job.  For more details, see
33390         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
33391         * m4/acl.m4: Modified.
33392         * m4/afs.m4: Likewise.
33393         * m4/alloca.m4: Likewise.
33394         * m4/argp.m4: Likewise.
33395         * m4/argz.m4: Likewise.
33396         * m4/atexit.m4: Likewise.
33397         * m4/bison-i18n.m4: Likewise.
33398         * m4/bison.m4: Likewise.
33399         * m4/byteswap.m4: Likewise.
33400         * m4/c-stack.m4: Likewise.
33401         * m4/c-strtod.m4: Likewise.
33402         * m4/calloc.m4: Likewise.
33403         * m4/canonicalize-lgpl.m4: Likewise.
33404         * m4/chown.m4: Likewise.
33405         * m4/clock_time.m4: Likewise.
33406         * m4/codeset.m4: Likewise.
33407         * m4/copy-file.m4: Likewise.
33408         * m4/csharp.m4: Likewise.
33409         * m4/csharpcomp.m4: Likewise.
33410         * m4/csharpexec.m4: Likewise.
33411         * m4/d-ino.m4: Likewise.
33412         * m4/d-type.m4: Likewise.
33413         * m4/dirfd.m4: Likewise.
33414         * m4/double-slash-root.m4: Likewise.
33415         * m4/eaccess.m4: Likewise.
33416         * m4/eealloc.m4: Likewise.
33417         * m4/environ.m4: Likewise.
33418         * m4/errno_h.m4: Likewise.
33419         * m4/euidaccess.m4: Likewise.
33420         * m4/execute.m4: Likewise.
33421         * m4/fatal-signal.m4: Likewise.
33422         * m4/fchdir.m4: Likewise.
33423         * m4/fcntl_h.m4: Likewise.
33424         * m4/fileblocks.m4: Likewise.
33425         * m4/filenamecat.m4: Likewise.
33426         * m4/findprog.m4: Likewise.
33427         * m4/flexmember.m4: Likewise.
33428         * m4/fnmatch.m4: Likewise.
33429         * m4/fopen.m4: Likewise.
33430         * m4/fpending.m4: Likewise.
33431         * m4/fprintf-posix.m4: Likewise.
33432         * m4/free.m4: Likewise.
33433         * m4/frexp.m4: Likewise.
33434         * m4/frexpl.m4: Likewise.
33435         * m4/fsusage.m4: Likewise.
33436         * m4/ftruncate.m4: Likewise.
33437         * m4/gc-camellia.m4: Likewise.
33438         * m4/gc-random.m4: Likewise.
33439         * m4/gc.m4: Likewise.
33440         * m4/getaddrinfo.m4: Likewise.
33441         * m4/getcwd-abort-bug.m4: Likewise.
33442         * m4/getcwd-path-max.m4: Likewise.
33443         * m4/getdate.m4: Likewise.
33444         * m4/getdomainname.m4: Likewise.
33445         * m4/getgroups.m4: Likewise.
33446         * m4/gethostname.m4: Likewise.
33447         * m4/gethrxtime.m4: Likewise.
33448         * m4/getline.m4: Likewise.
33449         * m4/getloadavg.m4: Likewise.
33450         * m4/getndelim2.m4: Likewise.
33451         * m4/getpass.m4: Likewise.
33452         * m4/gettext.m4: Likewise.
33453         * m4/gettime.m4: Likewise.
33454         * m4/gettimeofday.m4: Likewise.
33455         * m4/gnulib-common.m4: Likewise.
33456         * m4/group-member.m4: Likewise.
33457         * m4/host-os.m4: Likewise.
33458         * m4/iconv.m4: Likewise.
33459         * m4/iconv_open.m4: Likewise.
33460         * m4/inet_ntop.m4: Likewise.
33461         * m4/inet_pton.m4: Likewise.
33462         * m4/inline.m4: Likewise.
33463         * m4/intldir.m4: Likewise.
33464         * m4/intlmacosx.m4: Likewise.
33465         * m4/intmax.m4: Likewise.
33466         * m4/intmax_t.m4: Likewise.
33467         * m4/inttypes.m4: Likewise.
33468         * m4/inttypes_h.m4: Likewise.
33469         * m4/inttypes-pri.m4: Likewise.
33470         * m4/isapipe.m4: Likewise.
33471         * m4/isnand.m4: Likewise.
33472         * m4/isnanf.m4: Likewise.
33473         * m4/isnanl.m4: Likewise.
33474         * m4/javacomp.m4: Likewise.
33475         * m4/javaexec.m4: Likewise.
33476         * m4/jm-winsz1.m4: Likewise.
33477         * m4/jm-winsz2.m4: Likewise.
33478         * m4/lchown.m4: Likewise.
33479         * m4/lcmessage.m4: Likewise.
33480         * m4/ldexpl.m4: Likewise.
33481         * m4/lib-ld.m4: Likewise.
33482         * m4/lib-link.m4: Likewise.
33483         * m4/libsigsegv.m4: Likewise.
33484         * m4/link-follow.m4: Likewise.
33485         * m4/localcharset.m4: Likewise.
33486         * m4/locale-fr.m4: Likewise.
33487         * m4/locale-ja.m4: Likewise.
33488         * m4/locale-tr.m4: Likewise.
33489         * m4/locale-zh.m4: Likewise.
33490         * m4/lock.m4: Likewise.
33491         * m4/longlong.m4: Likewise.
33492         * m4/ls-mntd-fs.m4: Likewise.
33493         * m4/lstat.m4: Likewise.
33494         * m4/malloc.m4: Likewise.
33495         * m4/mathl.m4: Likewise.
33496         * m4/mbrtowc.m4: Likewise.
33497         * m4/mbstate_t.m4: Likewise.
33498         * m4/mbswidth.m4: Likewise.
33499         * m4/memchr.m4: Likewise.
33500         * m4/memcmp.m4: Likewise.
33501         * m4/memcpy.m4: Likewise.
33502         * m4/memmem.m4: Likewise.
33503         * m4/memmove.m4: Likewise.
33504         * m4/mempcpy.m4: Likewise.
33505         * m4/memrchr.m4: Likewise.
33506         * m4/memset.m4: Likewise.
33507         * m4/minmax.m4: Likewise.
33508         * m4/mkdir-slash.m4: Likewise.
33509         * m4/mkdtemp.m4: Likewise.
33510         * m4/mktime.m4: Likewise.
33511         * m4/mmap-anon.m4: Likewise.
33512         * m4/mountlist.m4: Likewise.
33513         * m4/nanosleep.m4: Likewise.
33514         * m4/nls.m4: Likewise.
33515         * m4/nocrash.m4: Likewise.
33516         * m4/open.m4: Likewise.
33517         * m4/openat.m4: Likewise.
33518         * m4/openmp.m4: Likewise.
33519         * m4/pathmax.m4: Likewise.
33520         * m4/perl.m4: Likewise.
33521         * m4/physmem.m4: Likewise.
33522         * m4/pipe.m4: Likewise.
33523         * m4/po.m4: Likewise.
33524         * m4/poll.m4: Likewise.
33525         * m4/posixtm.m4: Likewise.
33526         * m4/posixver.m4: Likewise.
33527         * m4/printf-frexp.m4: Likewise.
33528         * m4/printf-frexpl.m4: Likewise.
33529         * m4/printf-posix.m4: Likewise.
33530         * m4/printf-posix-rpl.m4: Likewise.
33531         * m4/printf.m4: Likewise.
33532         * m4/progtest.m4: Likewise.
33533         * m4/putenv.m4: Likewise.
33534         * m4/readline.m4: Likewise.
33535         * m4/readlink.m4: Likewise.
33536         * m4/readutmp.m4: Likewise.
33537         * m4/realloc.m4: Likewise.
33538         * m4/regex.m4: Likewise.
33539         * m4/relocatable.m4: Likewise.
33540         * m4/relocatable-lib.m4: Likewise.
33541         * m4/rename-dest-slash.m4: Likewise.
33542         * m4/rename.m4: Likewise.
33543         * m4/rmdir-errno.m4: Likewise.
33544         * m4/rmdir.m4: Likewise.
33545         * m4/roundf.m4: Likewise.
33546         * m4/roundl.m4: Likewise.
33547         * m4/rpmatch.m4: Likewise.
33548         * m4/save-cwd.m4: Likewise.
33549         * m4/selinux-selinux-h.m4: Likewise.
33550         * m4/setenv.m4: Likewise.
33551         * m4/settime.m4: Likewise.
33552         * m4/sig2str.m4: Likewise.
33553         * m4/sig_atomic_t.m4: Likewise.
33554         * m4/signalblocking.m4: Likewise.
33555         * m4/signbit.m4: Likewise.
33556         * m4/sigpipe.m4: Likewise.
33557         * m4/sockets.m4: Likewise.
33558         * m4/sockpfaf.m4: Likewise.
33559         * m4/st_dm_mode.m4: Likewise.
33560         * m4/stat-time.m4: Likewise.
33561         * m4/stdbool.m4: Likewise.
33562         * m4/stdint.m4: Likewise.
33563         * m4/stdint_h.m4: Likewise.
33564         * m4/stpcpy.m4: Likewise.
33565         * m4/stpncpy.m4: Likewise.
33566         * m4/strcase.m4: Likewise.
33567         * m4/strchrnul.m4: Likewise.
33568         * m4/strcspn.m4: Likewise.
33569         * m4/strdup.m4: Likewise.
33570         * m4/strftime.m4: Likewise.
33571         * m4/strndup.m4: Likewise.
33572         * m4/strnlen.m4: Likewise.
33573         * m4/strpbrk.m4: Likewise.
33574         * m4/strptime.m4: Likewise.
33575         * m4/strsep.m4: Likewise.
33576         * m4/strtod.m4: Likewise.
33577         * m4/strtoimax.m4: Likewise.
33578         * m4/strtok_r.m4: Likewise.
33579         * m4/strtol.m4: Likewise.
33580         * m4/strtoll.m4: Likewise.
33581         * m4/strtoul.m4: Likewise.
33582         * m4/strtoull.m4: Likewise.
33583         * m4/strtoumax.m4: Likewise.
33584         * m4/strverscmp.m4: Likewise.
33585         * m4/threadlib.m4: Likewise.
33586         * m4/timegm.m4: Likewise.
33587         * m4/tm_gmtoff.m4: Likewise.
33588         * m4/tmpdir.m4: Likewise.
33589         * m4/tmpfile.m4: Likewise.
33590         * m4/tzset.m4: Likewise.
33591         * m4/uintmax_t.m4: Likewise.
33592         * m4/unlinkdir.m4: Likewise.
33593         * m4/unlocked-io.m4: Likewise.
33594         * m4/uptime.m4: Likewise.
33595         * m4/userspec.m4: Likewise.
33596         * m4/utimbuf.m4: Likewise.
33597         * m4/utime.m4: Likewise.
33598         * m4/utimes-null.m4: Likewise.
33599         * m4/utimes.m4: Likewise.
33600         * m4/vararrays.m4: Likewise.
33601         * m4/vasnprintf.m4: Likewise.
33602         * m4/vfprintf-posix.m4: Likewise.
33603         * m4/vprintf-posix.m4: Likewise.
33604         * m4/wait-process.m4: Likewise.
33605         * m4/wchar_t.m4: Likewise.
33606         * m4/wint_t.m4: Likewise.
33607         * m4/write-any-file.m4: Likewise.
33608         * m4/yield.m4: Likewise.
33609
33610 2009-01-13  Bruno Haible  <bruno@clisp.org>
33611
33612         Avoid test-copy-file.sh failures when ACL support insufficient.
33613         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
33614         TESTS_ENVIRONMENT.
33615         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
33616         Reported by Jim Meyering.
33617
33618 2009-01-13  Bruno Haible  <bruno@clisp.org>
33619
33620         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
33621         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
33622         * modules/unistdio/u8-printf-parse (Files): Likewise.
33623         * modules/unistdio/u32-printf-parse (Files): Likewise.
33624         * modules/unistdio/ulc-printf-parse (Files): Likewise.
33625
33626 2009-01-13  Simon Josefsson  <simon@josefsson.org>
33627
33628         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
33629         and m4/inttypes_h.m4 too.
33630
33631 2009-01-12  Eric Blake  <ebb9@byu.net>
33632
33633         tests: IRIX 6.2 cc can't compile -0.0 into .data
33634         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
33635         rather than at compile-time.
33636         * tests/test-floorl.c (minus_zero): Likewise.
33637         * tests/test-frexpl.c (minus_zero): Likewise.
33638         * tests/test-isnan.c (minus_zerol): Likewise.
33639         * tests/test-isnanl.h (minus_zero): Likewise.
33640         * tests/test-ldexpl.c (minus_zero): Likewise.
33641         * tests/test-roundl.c (minus_zero): Likewise.
33642         * tests/test-signbit.c (minus_zerol): Likewise.
33643         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
33644         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
33645         * tests/test-truncl.c (minus_zero): Likewise.
33646         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
33647         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
33648         Reported by Tom G. Christensen and Nelson H. F. Beebe.
33649
33650 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33651
33652         regex: fix glibc bug 9697
33653         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
33654         handling.
33655
33656 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33657
33658         regex: fix glibc bug 697
33659         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
33660         being NULL also if there are no backreferences.
33661
33662 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
33663
33664         regex: merge glibc changes
33665         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
33666         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
33667         re_string_skip_chars, re_string_reconstruct): Likewise.
33668         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
33669
33670 2009-01-07  Jim Meyering  <meyering@redhat.com>
33671
33672         poll: filter through cppi
33673         * lib/poll.c: Indent cpp directives to reflect nesting.
33674
33675 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
33676
33677         poll: don't return uninitialized
33678         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
33679
33680 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
33681
33682         avoid compile failure on AIX 6.1
33683         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
33684         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
33685
33686 2009-01-04  Jim Meyering  <meyering@redhat.com>
33687
33688         remove duplicate inclusion of <stdio.h>
33689         * tests/test-fprintf-posix.c: Likewise.
33690         * tests/test-printf-posix.c: Likewise.
33691         * tests/test-snprintf-posix.c: Likewise.
33692         * tests/test-sprintf-posix.c: Likewise.
33693         * tests/test-vasprintf-posix.c: Likewise.
33694         * tests/test-vfprintf-posix.c: Likewise.
33695         * tests/test-vprintf-posix.c: Likewise.
33696         * tests/test-vsnprintf-posix.c: Likewise.
33697         * tests/test-vsprintf-posix.c: Likewise.
33698
33699 2009-01-03  Jim Meyering  <meyering@redhat.com>
33700
33701         gnulib-tool: fix sed-based filtering
33702         * gnulib-tool (func_filter_filelist): Remove extra backslash
33703         in sed_fff_filter definition.
33704
33705 2009-01-02  Jim Meyering  <meyering@redhat.com>
33706
33707         strftime: avoid compilation failure on Solaris 2.6
33708         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
33709         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
33710         Don't #define mbrlen or mbsinit, since now they're guaranteed to
33711         be available.  Reported by Tom G. Christensen.  Details in
33712         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
33713
33714 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33715             Bruno Haible  <bruno@clisp.org>
33716
33717         Speed up gnulib-tool by doing more string processing through shell
33718         built-ins.
33719         * gnulib-tool (fast_func_append): New variable.
33720         (func_remove_prefix, func_remove_suffix): New functions.
33721         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
33722         (func_filter_filelist): New function.
33723         (func_get_dependencies): Use func_remove_suffix instead of sed.
33724         (func_get_automake_snippet): Use func_filter_filelist instead of a
33725         subshell and sed invocation.
33726
33727 2009-01-01  Bruno Haible  <bruno@clisp.org>
33728
33729         Fix a security bug.
33730         * gnulib-tool (func_import, import, update): Don't allow the characters
33731         '"', '$', '`', '\' in macro arguments that become part of commands that
33732         are evaluated.
33733
33734 2009-01-01  Bruno Haible  <bruno@clisp.org>
33735
33736         * gnulib-tool (func_reset_sigpipe): Add more comments.
33737
33738 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33739
33740         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
33741         func_emit_tests_Makefile_am, func_import): Abort loops early if we
33742         already know the answer.
33743
33744 2009-01-01  Jim Meyering  <meyering@redhat.com>
33745
33746         * lib/version-etc.c (version_etc_va): Update copyright year.
33747
33748 2008-12-30  Bruno Haible  <bruno@clisp.org>
33749
33750         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
33751         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
33752         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
33753
33754 2008-12-29  Eric Blake  <ebb9@byu.net>
33755
33756         multiarch: avoid autoconf AC_REQUIRE bug
33757         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
33758         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
33759         2.63 and older.
33760         Reported by Bruno Haible, and analyzed in
33761         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
33762
33763 2008-12-29  Bruno Haible  <bruno@clisp.org>
33764
33765         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
33766         files in subdirectories correctly.
33767         Reported by Ralf Wildenhues.
33768
33769 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33770
33771         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
33772         rather than 'join FILE -', for Solaris join.
33773
33774 2008-12-29  Bruno Haible  <bruno@clisp.org>
33775
33776         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
33777         quoting.
33778         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
33779         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
33780         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
33781         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
33782         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
33783         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
33784         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
33785         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
33786         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
33787         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
33788         * m4/nls.m4 (AM_NLS): Likewise.
33789         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
33790         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
33791         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
33792         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
33793         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
33794         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
33795         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
33796         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
33797         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
33798         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
33799         * m4/xsize.m4 (gl_XSIZE): Likewise.
33800         Suggested by Jim Meyering.
33801
33802 2008-11-17  Bruce Korb  <bkorb@gnu.org>
33803
33804         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
33805         * lib/parse-duration.c: use a switch instead of cascading if's.
33806
33807 2008-12-29  Eric Blake  <ebb9@byu.net>
33808
33809         wchar.h: supply WEOF on Irix 5.3
33810         * lib/wchar.in.h (wint_t): Also supply WEOF.
33811         * lib/wctype.in.h (wint_t): Likewise.
33812         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
33813         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
33814         Reported by Tom G. Christensen.
33815
33816 2008-12-26  Bruno Haible  <bruno@clisp.org>
33817
33818         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
33819         i486, i586, i686.
33820
33821 2008-12-26  Bruno Haible  <bruno@clisp.org>
33822
33823         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
33824
33825 2008-12-26  Bruno Haible  <bruno@clisp.org>
33826
33827         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
33828         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
33829         not __STDC_CONSTANT_MACROS.
33830         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
33831
33832 2008-12-25  Bruno Haible  <bruno@clisp.org>
33833
33834         Add support for universal builds to vasnprintf.
33835         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
33836         universal builds, guess no.
33837         * modules/vasnprintf-posix (Depends-on): Add multiarch.
33838         * modules/vasprintf-posix (Depends-on): Likewise.
33839         * modules/fprintf-posix (Depends-on): Likewise.
33840         * modules/vfprintf-posix (Depends-on): Likewise.
33841         * modules/snprintf-posix (Depends-on): Likewise.
33842         * modules/vsnprintf-posix (Depends-on): Likewise.
33843         * modules/sprintf-posix (Depends-on): Likewise.
33844         * modules/vsprintf-posix (Depends-on): Likewise.
33845         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33846         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33847         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33848         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33849         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33850         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33851         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33852
33853         Add support for universal builds to <inttypes.h>.
33854         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
33855         _SCNu64_PREFIX): In Apple
33856         universal builds, define directly, using _LP64.
33857         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
33858         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
33859         * modules/inttypes (Depends-on): Add multiarch.
33860         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
33861
33862         Add support for universal builds to <stdint.h>.
33863         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
33864         universal builds, define directly, using _LP64.
33865         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
33866         Apple universal builds, don't test for the size and suffix of ptrdiff_t
33867         and size_t.
33868         * modules/stdint (Depends-on): Add multiarch.
33869         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
33870
33871         New module 'multiarch'.
33872         * modules/multiarch: New file.
33873         * m4/multiarch.m4: New file.
33874
33875 2008-12-25  Bruno Haible  <bruno@clisp.org>
33876
33877         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
33878
33879 2008-12-25  Bruno Haible  <bruno@clisp.org>
33880
33881         * modules/btowc (License): Relicense under LGPLv2+.
33882         * modules/mbsinit (License): Likewise.
33883         * modules/mbrtowc (License): Likewise.
33884         * modules/wcrtomb (License): Likewise.
33885         * modules/streq (License): Likewise.
33886         Reported by David Lutterkort <lutter@redhat.com>.
33887
33888 2008-12-23  Bruno Haible  <bruno@clisp.org>
33889
33890         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
33891
33892 2008-12-23  Bruno Haible  <bruno@clisp.org>
33893
33894         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
33895         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
33896         GETADDRINFO_LIB, not in LIBS.
33897         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
33898         * modules/canon-host (Link): Likewise.
33899         * NEWS: Mention the change.
33900         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
33901         GETADDRINFO_LIB.
33902
33903 2008-12-22  Bruno Haible  <bruno@clisp.org>
33904
33905         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
33906         * doc/posix-functions/iswalpha_l.texi: Likewise.
33907         * doc/posix-functions/iswblank_l.texi: Likewise.
33908         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33909         * doc/posix-functions/iswctype_l.texi: Likewise.
33910         * doc/posix-functions/iswdigit_l.texi: Likewise.
33911         * doc/posix-functions/iswgraph_l.texi: Likewise.
33912         * doc/posix-functions/iswlower_l.texi: Likewise.
33913         * doc/posix-functions/iswprint_l.texi: Likewise.
33914         * doc/posix-functions/iswpunct_l.texi: Likewise.
33915         * doc/posix-functions/iswspace_l.texi: Likewise.
33916         * doc/posix-functions/iswupper_l.texi: Likewise.
33917         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33918         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
33919         * doc/posix-functions/open_wmemstream.texi: Likewise.
33920         * doc/posix-functions/swscanf.texi: Likewise.
33921         * doc/posix-functions/towctrans_l.texi: Likewise.
33922         * doc/posix-functions/towlower.texi: Likewise.
33923         * doc/posix-functions/towlower_l.texi: Likewise.
33924         * doc/posix-functions/towupper.texi: Likewise.
33925         * doc/posix-functions/towupper_l.texi: Likewise.
33926         * doc/posix-functions/vfwprintf.texi: Likewise.
33927         * doc/posix-functions/vfwscanf.texi: Likewise.
33928         * doc/posix-functions/vswscanf.texi: Likewise.
33929         * doc/posix-functions/vwprintf.texi: Likewise.
33930         * doc/posix-functions/vwscanf.texi: Likewise.
33931         * doc/posix-functions/wcpcpy.texi: Likewise.
33932         * doc/posix-functions/wcpncpy.texi: Likewise.
33933         * doc/posix-functions/wcscasecmp.texi: Likewise.
33934         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
33935         * doc/posix-functions/wcscoll_l.texi: Likewise.
33936         * doc/posix-functions/wcsdup.texi: Likewise.
33937         * doc/posix-functions/wcsncasecmp.texi: Likewise.
33938         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
33939         * doc/posix-functions/wcsnlen.texi: Likewise.
33940         * doc/posix-functions/wcsnrtombs.texi: Likewise.
33941         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33942         * doc/posix-functions/wctrans_l.texi: Likewise.
33943         * doc/posix-functions/wctype_l.texi: Likewise.
33944         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
33945         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
33946         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
33947         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
33948         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
33949         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
33950         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
33951         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
33952         * doc/glibc-functions/wcschrnul.texi: Likewise.
33953         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33954         * doc/glibc-functions/wcstod_l.texi: Likewise.
33955         * doc/glibc-functions/wcstof_l.texi: Likewise.
33956         * doc/glibc-functions/wcstol_l.texi: Likewise.
33957         * doc/glibc-functions/wcstold_l.texi: Likewise.
33958         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33959         * doc/glibc-functions/wcstoq.texi: Likewise.
33960         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33961         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33962         * doc/glibc-functions/wcstouq.texi: Likewise.
33963         * doc/glibc-functions/wmempcpy.texi: Likewise.
33964
33965 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
33966             Eric Blake  <ebb9@byu.net>
33967             Paolo Bonzini  <bonzini@gnu.org>
33968             Bruno Haible  <bruno@clisp.org>
33969
33970         Make c-stack work on Haiku.
33971         * lib/c-stack.c (SA_ONSTACK): Define fallback.
33972         (c_stack_action): Use SA_ONSTACK flag.
33973
33974 2008-12-22  Bruno Haible  <bruno@clisp.org>
33975
33976         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
33977
33978 2008-12-22  Bruno Haible  <bruno@clisp.org>
33979
33980         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
33981         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
33982         being overridden.
33983         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
33984         New macros.
33985         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
33986         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
33987         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
33988         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
33989
33990 2008-12-22  Bruno Haible  <bruno@clisp.org>
33991
33992         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
33993         from test code.
33994
33995 2008-12-22  Eric Blake  <ebb9@byu.net>
33996
33997         Avoid gcc warnings on cygwin.
33998         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
33999         Avoid unused variable.
34000         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
34001         Likewise.
34002
34003 2008-12-22  Bruno Haible  <bruno@clisp.org>
34004
34005         Remove HAVE_MBRTOWC conditionals.
34006         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
34007         (mbscasecmp): Assume mbrtowc function.
34008         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
34009         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
34010         * lib/mbschr.c: Include mbuiter.h unconditionally.
34011         (mbschr): Assume mbrtowc function.
34012         * lib/mbscspn.c: Include mbuiter.h unconditionally.
34013         (mbscspn): Assume mbrtowc function.
34014         * lib/mbslen.c: Include mbuiter.h unconditionally.
34015         (mbslen): Assume mbrtowc function.
34016         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
34017         (mbsncasecmp): Assume mbrtowc function.
34018         * lib/mbsnlen.c: Include mbiter.h unconditionally.
34019         (mbsnlen): Assume mbrtowc function.
34020         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
34021         (mbspbrk): Assume mbrtowc function.
34022         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
34023         (mbspcasecmp): Assume mbrtowc function.
34024         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
34025         (mbsrchr): Assume mbrtowc function.
34026         * lib/mbssep.c: Include mbuiter.h unconditionally.
34027         (mbssep): Assume mbrtowc function.
34028         * lib/mbsspn.c: Include mbuiter.h unconditionally.
34029         (mbsspn): Assume mbrtowc function.
34030         * lib/mbsstr.c: Include mbuiter.h unconditionally.
34031         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
34032         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
34033         (mbstok_r): Assume mbrtowc function.
34034         * lib/propername.c: Include mbuiter.h unconditionally.
34035         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
34036         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
34037         (trim2): Assume mbrtowc function.
34038         * lib/mbswidth.c (mbsinit): Remove fallback definition.
34039         (mbsnwidth): Assume mbrtowc function.
34040         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
34041         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
34042         fallback definitions.
34043         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
34044
34045 2008-12-22  Bruno Haible  <bruno@clisp.org>
34046
34047         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
34048
34049 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
34050
34051         * modules/regex: Request emulations for the mb*/wc* functions we need.
34052         * m4/regex.m4: Don't look for those functions here.
34053         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
34054
34055 2008-12-22  Bruno Haible  <bruno@clisp.org>
34056
34057         * modules/fnmatch (Depends-on): Remove duplicated dependency.
34058
34059 2008-12-21  Bruno Haible  <bruno@clisp.org>
34060
34061         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
34062         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
34063         (Include): Remove conditionalization.
34064         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
34065         (Include): Remove conditionalization.
34066         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
34067         (Include): Remove conditionalization.
34068         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
34069         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34070         * NEWS: Mention the change.
34071         Reported by Alan Hourihane <alanh@fairlite.co.uk>
34072         via Sergey Poznyakoff <gray@gnu.org.ua>.
34073
34074 2008-12-21  Bruno Haible  <bruno@clisp.org>
34075
34076         * MODULES.html.sh (Extended multibyte and wide character utilities
34077         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
34078         wcrtomb, wcsrtombs.
34079         (Support for systems lacking POSIX:2008): Add accept, bind, close,
34080         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
34081         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
34082         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
34083
34084 2008-12-21  Bruno Haible  <bruno@clisp.org>
34085
34086         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
34087
34088 2008-12-21  Bruno Haible  <bruno@clisp.org>
34089
34090         * modules/wcsnrtombs-tests: New file.
34091         * tests/test-wcsnrtombs1.sh: New file.
34092         * tests/test-wcsnrtombs2.sh: New file.
34093         * tests/test-wcsnrtombs3.sh: New file.
34094         * tests/test-wcsnrtombs4.sh: New file.
34095         * tests/test-wcsnrtombs.c: New file.
34096
34097         New module 'wcsnrtombs'.
34098         * lib/wchar.in.h (wcsnrtombs): New declaration.
34099         * lib/wcsnrtombs.c: New file.
34100         * lib/wcsrtombs-state.c: New file.
34101         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
34102         (internal_state): Remove variable.
34103         * m4/wcsnrtombs.m4: New file.
34104         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
34105         compilation units.
34106         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
34107         HAVE_WCSNRTOMBS.
34108         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
34109         HAVE_WCSNRTOMBS.
34110         * modules/wcsnrtombs: New file.
34111         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
34112         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
34113
34114 2008-12-21  Bruno Haible  <bruno@clisp.org>
34115
34116         * modules/wcsrtombs-tests: New file.
34117         * tests/test-wcsrtombs1.sh: New file.
34118         * tests/test-wcsrtombs2.sh: New file.
34119         * tests/test-wcsrtombs3.sh: New file.
34120         * tests/test-wcsrtombs4.sh: New file.
34121         * tests/test-wcsrtombs.c: New file.
34122
34123         New module 'wcsrtombs'.
34124         * lib/wchar.in.h (wcsrtombs): New declaration.
34125         * lib/wcsrtombs.c: New file.
34126         * m4/wcsrtombs.m4: New file.
34127         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
34128         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
34129         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
34130         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
34131         * modules/wcsrtombs: New file.
34132         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
34133         bugs.
34134
34135 2008-12-21  Bruno Haible  <bruno@clisp.org>
34136
34137         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
34138         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
34139         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
34140         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
34141         if not correct.
34142         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
34143         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
34144         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34145         m4/locale-zh.m4, m4/codeset.m4.
34146         * doc/posix-functions/wcrtomb.texi: Document the bug.
34147
34148 2008-12-21  Bruno Haible  <bruno@clisp.org>
34149
34150         Work around a btowc() bug on IRIX 6.5.
34151         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
34152         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
34153         REPLACE_WTOBC if not.
34154         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
34155         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
34156         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
34157
34158 2008-12-21  Bruno Haible  <bruno@clisp.org>
34159
34160         * modules/wcrtomb-tests: New file.
34161         * tests/test-wcrtomb.sh: New file.
34162         * tests/test-wcrtomb.c: New file.
34163
34164         New module 'wcrtomb'.
34165         * lib/wchar.in.h (wcrtomb): New declaration.
34166         * lib/wcrtomb.c: New file.
34167         * m4/wcrtomb.m4: New file.
34168         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
34169         HAVE_WCRTOMB.
34170         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
34171         HAVE_WCRTOMB.
34172         * modules/wcrtomb: New file.
34173         * doc/posix-functions/wcrtomb.texi: Mention the new module.
34174
34175 2008-12-21  Bruno Haible  <bruno@clisp.org>
34176
34177         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
34178         * modules/mbsrtowcs (Files): Likewise.
34179         * modules/wctob (Files): Likewise.
34180         * modules/c-strcase-tests (Files): Likewise.
34181         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
34182         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
34183         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
34184         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
34185         * modules/vasnprintf-posix-tests (Files): Likewise.
34186
34187 2008-12-21  William Pursell  <bill.pursell@gmail.com>
34188
34189         gitlog-to-changelog: pass all command-line arguments to git-log
34190         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
34191         it is sometimes convenient to filter the commits in various ways.
34192         gitlog-to-changelog only allows --since to specify a start date,
34193         but git-log itself supports many other filtering mechanisms.
34194         At the moment, I want to filter by branch name.  Rather than
34195         adding a --branch option to gitlog-to-changelog, it seems more
34196         flexible to simply pass all options directly to git-log and let
34197         git do the work.  Notice that this effectively makes --since a
34198         redundant option for gitlog-to-changelog, but removing it would
34199         require current usage to change since calls would then require
34200         an additional '--'.
34201
34202 2008-12-21  Bruno Haible  <bruno@clisp.org>
34203
34204         * modules/mbsnrtowcs-tests: New file.
34205         * tests/test-mbsnrtowcs1.sh: New file.
34206         * tests/test-mbsnrtowcs2.sh: New file.
34207         * tests/test-mbsnrtowcs3.sh: New file.
34208         * tests/test-mbsnrtowcs4.sh: New file.
34209         * tests/test-mbsnrtowcs.c: New file.
34210
34211         New module 'mbsnrtowcs'.
34212         * lib/wchar.in.h (mbsnrtowcs): New declaration.
34213         * lib/mbsnrtowcs.c: New file.
34214         * lib/mbsrtowcs-state.c: New file.
34215         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
34216         (internal_state): Remove variable.
34217         * m4/mbsnrtowcs.m4: New file.
34218         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
34219         compilation units.
34220         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
34221         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34222         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
34223         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
34224         * modules/mbsnrtowcs: New file.
34225         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
34226         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
34227         portability problem.
34228
34229 2008-12-21  Bruno Haible  <bruno@clisp.org>
34230
34231         Work around mbsrtowcs bug.
34232         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
34233         (gl_FUNC_MBSRTOWCS): Invoke it.
34234         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34235         m4/locale-zh.m4.
34236         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
34237
34238 2008-12-21  Bruno Haible  <bruno@clisp.org>
34239
34240         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
34241
34242 2008-12-21  Bruno Haible  <bruno@clisp.org>
34243
34244         Update doc for AIX.
34245         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
34246         16-bit wchar_t type.
34247         * doc/posix-functions/btowc.texi: Likewise.
34248         * doc/posix-functions/fgetwc.texi: Likewise.
34249         * doc/posix-functions/fgetws.texi: Likewise.
34250         * doc/posix-functions/fputwc.texi: Likewise.
34251         * doc/posix-functions/fputws.texi: Likewise.
34252         * doc/posix-functions/fwide.texi: Likewise.
34253         * doc/posix-functions/fwprintf.texi: Likewise.
34254         * doc/posix-functions/fwscanf.texi: Likewise.
34255         * doc/posix-functions/getwchar.texi: Likewise.
34256         * doc/posix-functions/getwc.texi: Likewise.
34257         * doc/posix-functions/iswalnum.texi: Likewise.
34258         * doc/posix-functions/iswalpha.texi: Likewise.
34259         * doc/posix-functions/iswblank.texi: Likewise.
34260         * doc/posix-functions/iswcntrl.texi: Likewise.
34261         * doc/posix-functions/iswctype.texi: Likewise.
34262         * doc/posix-functions/iswdigit.texi: Likewise.
34263         * doc/posix-functions/iswgraph.texi: Likewise.
34264         * doc/posix-functions/iswlower.texi: Likewise.
34265         * doc/posix-functions/iswprint.texi: Likewise.
34266         * doc/posix-functions/iswpunct.texi: Likewise.
34267         * doc/posix-functions/iswspace.texi: Likewise.
34268         * doc/posix-functions/iswupper.texi: Likewise.
34269         * doc/posix-functions/iswxdigit.texi: Likewise.
34270         * doc/posix-functions/mbrtowc.texi: Likewise.
34271         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34272         * doc/posix-functions/mbstowcs.texi: Likewise.
34273         * doc/posix-functions/mbtowc.texi: Likewise.
34274         * doc/posix-functions/putwchar.texi: Likewise.
34275         * doc/posix-functions/putwc.texi: Likewise.
34276         * doc/posix-functions/swprintf.texi: Likewise.
34277         * doc/posix-functions/tolower.texi: Likewise.
34278         * doc/posix-functions/toupper.texi: Likewise.
34279         * doc/posix-functions/towctrans.texi: Likewise.
34280         * doc/posix-functions/ungetwc.texi: Likewise.
34281         * doc/posix-functions/vswprintf.texi: Likewise.
34282         * doc/posix-functions/wcrtomb.texi: Likewise.
34283         * doc/posix-functions/wcscat.texi: Likewise.
34284         * doc/posix-functions/wcschr.texi: Likewise.
34285         * doc/posix-functions/wcscmp.texi: Likewise.
34286         * doc/posix-functions/wcscoll.texi: Likewise.
34287         * doc/posix-functions/wcscpy.texi: Likewise.
34288         * doc/posix-functions/wcscspn.texi: Likewise.
34289         * doc/posix-functions/wcsftime.texi: Likewise.
34290         * doc/posix-functions/wcslen.texi: Likewise.
34291         * doc/posix-functions/wcsncat.texi: Likewise.
34292         * doc/posix-functions/wcsncmp.texi: Likewise.
34293         * doc/posix-functions/wcsncpy.texi: Likewise.
34294         * doc/posix-functions/wcspbrk.texi: Likewise.
34295         * doc/posix-functions/wcsrchr.texi: Likewise.
34296         * doc/posix-functions/wcsrtombs.texi: Likewise.
34297         * doc/posix-functions/wcsspn.texi: Likewise.
34298         * doc/posix-functions/wcsstr.texi: Likewise.
34299         * doc/posix-functions/wcstod.texi: Likewise.
34300         * doc/posix-functions/wcstof.texi: Likewise.
34301         * doc/posix-functions/wcstoimax.texi: Likewise.
34302         * doc/posix-functions/wcstok.texi: Likewise.
34303         * doc/posix-functions/wcstold.texi: Likewise.
34304         * doc/posix-functions/wcstoll.texi: Likewise.
34305         * doc/posix-functions/wcstol.texi: Likewise.
34306         * doc/posix-functions/wcstombs.texi: Likewise.
34307         * doc/posix-functions/wcstoull.texi: Likewise.
34308         * doc/posix-functions/wcstoul.texi: Likewise.
34309         * doc/posix-functions/wcstoumax.texi: Likewise.
34310         * doc/posix-functions/wcswidth.texi: Likewise.
34311         * doc/posix-functions/wcsxfrm.texi: Likewise.
34312         * doc/posix-functions/wctob.texi: Likewise.
34313         * doc/posix-functions/wctomb.texi: Likewise.
34314         * doc/posix-functions/wctrans.texi: Likewise.
34315         * doc/posix-functions/wctype.texi: Likewise.
34316         * doc/posix-functions/wcwidth.texi: Likewise.
34317         * doc/posix-functions/wmemchr.texi: Likewise.
34318         * doc/posix-functions/wmemcmp.texi: Likewise.
34319         * doc/posix-functions/wmemcpy.texi: Likewise.
34320         * doc/posix-functions/wmemmove.texi: Likewise.
34321         * doc/posix-functions/wmemset.texi: Likewise.
34322         * doc/posix-functions/wprintf.texi: Likewise.
34323         * doc/posix-functions/wscanf.texi: Likewise.
34324
34325 2008-12-21  Bruno Haible  <bruno@clisp.org>
34326
34327         Update doc for HP-UX 11.11.
34328         * doc/posix-functions/btowc.texi: Clarify that the function is missing
34329         in HP-UX version 11.00, not in all versions of HP-UX 11.
34330         * doc/posix-functions/fwide.texi: Likewise.
34331         * doc/posix-functions/fwprintf.texi: Likewise.
34332         * doc/posix-functions/fwscanf.texi: Likewise.
34333         * doc/posix-functions/inet_ntop.texi: Likewise.
34334         * doc/posix-functions/inet_pton.texi: Likewise.
34335         * doc/posix-functions/mbrlen.texi: Likewise.
34336         * doc/posix-functions/mbrtowc.texi: Likewise.
34337         * doc/posix-functions/mbsinit.texi: Likewise.
34338         * doc/posix-functions/mbsrtowcs.texi: Likewise.
34339         * doc/posix-functions/swprintf.texi: Likewise.
34340         * doc/posix-functions/swscanf.texi: Likewise.
34341         * doc/posix-functions/towctrans.texi: Likewise.
34342         * doc/posix-functions/vfwprintf.texi: Likewise.
34343         * doc/posix-functions/vswprintf.texi: Likewise.
34344         * doc/posix-functions/vwprintf.texi: Likewise.
34345         * doc/posix-functions/wcrtomb.texi: Likewise.
34346         * doc/posix-functions/wcsrtombs.texi: Likewise.
34347         * doc/posix-functions/wcsstr.texi: Likewise.
34348         * doc/posix-functions/wctob.texi: Likewise.
34349         * doc/posix-functions/wctrans.texi: Likewise.
34350         * doc/posix-functions/wmemchr.texi: Likewise.
34351         * doc/posix-functions/wmemcmp.texi: Likewise.
34352         * doc/posix-functions/wmemcpy.texi: Likewise.
34353         * doc/posix-functions/wmemmove.texi: Likewise.
34354         * doc/posix-functions/wmemset.texi: Likewise.
34355         * doc/posix-functions/wprintf.texi: Likewise.
34356         * doc/posix-functions/wscanf.texi: Likewise.
34357
34358 2008-12-21  Bruno Haible  <bruno@clisp.org>
34359
34360         Work around a portability problem.
34361         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
34362         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
34363
34364 2008-12-20  Bruno Haible  <bruno@clisp.org>
34365
34366         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
34367         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
34368         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
34369         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
34370         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
34371
34372         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
34373         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
34374         set.
34375         (GNULIB_defined_mbstate_t): New macro.
34376         (mbsinit): Redefine if REPLACE_MBSINIT is set.
34377         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
34378         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
34379         reuses the system's mbrtowc function but works around the bugs.
34380         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
34381         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
34382         macros.
34383         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
34384         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
34385         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
34386         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
34387         REPLACE_MBSINIT if mbsinit needs to be overridden.
34388         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
34389         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34390         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
34391         REPLACE_MBSINIT, REPLACE_MBRTOWC.
34392         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
34393         m4/locale-zh.m4.
34394         (Depends): Add mbsinit.
34395         * modules/mbsinit (Depends): Add mbrtowc.
34396         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
34397
34398 2008-12-20  Bruno Haible  <bruno@clisp.org>
34399
34400         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
34401         so that there are no conversion errors on AIX.
34402         * tests/test-mbsrtowcs.c (main): LIkewise.
34403
34404 2008-12-20  Bruno Haible  <bruno@clisp.org>
34405
34406         Work around wctob bug on Solaris <= 9.
34407         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
34408         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
34409         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
34410         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
34411         * modules/wctob (Files): Add m4/locale-fr.m4.
34412         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
34413
34414 2008-12-20  Bruno Haible  <bruno@clisp.org>
34415
34416         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
34417         /dev/null.
34418         * tests/test-select-in.sh: Likewise.
34419         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
34420
34421 2008-12-20  Bruno Haible  <bruno@clisp.org>
34422
34423         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
34424         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
34425         Cygwin 1.5.x.
34426
34427 2008-12-20  Bruno Haible  <bruno@clisp.org>
34428
34429         Ensure mbstate_t is defined on HP-UX 11.11.
34430         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
34431         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
34432         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
34433         AC_USE_SYSTEM_EXTENSIONS.
34434         * modules/fnmatch (Depends-on): Add extensions.
34435         * modules/mbrlen (Depends-on): Likewise.
34436         * modules/mbrtowc (Depends-on): Likewise.
34437         * modules/mbsinit (Depends-on): Likewise.
34438         * modules/mbsrtowcs (Depends-on): Likewise.
34439         * modules/mbswidth (Depends-on): Likewise.
34440         * modules/quotearg (Depends-on): Likewise.
34441         * modules/strftime (Depends-on): Likewise.
34442
34443 2008-12-20  Bruno Haible  <bruno@clisp.org>
34444
34445         Ensure wctob is declared on IRIX 6.5.
34446         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
34447         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
34448         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
34449         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
34450         of HAVE_WCTOB.
34451         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
34452         HAVE_WCTOB.
34453         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
34454
34455 2008-12-19  Bruno Haible  <bruno@clisp.org>
34456
34457         * modules/mbsrtowcs-tests: New file.
34458         * tests/test-mbsrtowcs1.sh: New file.
34459         * tests/test-mbsrtowcs2.sh: New file.
34460         * tests/test-mbsrtowcs3.sh: New file.
34461         * tests/test-mbsrtowcs4.sh: New file.
34462         * tests/test-mbsrtowcs.c: New file.
34463
34464         New module 'mbsrtowcs'.
34465         * lib/wchar.in.h (mbsrtowcs): New declaration.
34466         * lib/mbsrtowcs.c: New file.
34467         * m4/mbsrtowcs.m4: New file.
34468         * modules/mbsrtowcs: New file.
34469         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
34470         HAVE_MBSRTOWCS.
34471         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
34472         HAVE_MBSRTOWCS.
34473         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
34474
34475 2008-12-19  Bruno Haible  <bruno@clisp.org>
34476
34477         New module 'mbrlen'.
34478         * lib/wchar.in.h (mbrlen): New declaration.
34479         * lib/mbrlen.c: New file.
34480         * m4/mbrlen.m4: New file.
34481         * modules/mbrlen: New file.
34482         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
34483         HAVE_MBRLEN.
34484         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
34485         HAVE_MBRLEN.
34486         * doc/posix-functions/mbrlen.texi: Document the new module.
34487
34488 2008-12-19  Bruno Haible  <bruno@clisp.org>
34489
34490         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
34491         * modules/mbrtowc (Depends-on): Add verify.
34492         Suggested by Paul Eggert.
34493
34494 2008-12-18  Bruno Haible  <bruno@clisp.org>
34495
34496         * modules/mbsinit-tests: New file.
34497         * tests/test-mbsinit.sh: New file.
34498         * tests/test-mbsinit.c: New file.
34499
34500 2008-12-18  Bruno Haible  <bruno@clisp.org>
34501
34502         * modules/mbrtowc-tests: New file.
34503         * tests/test-mbrtowc1.sh: New file.
34504         * tests/test-mbrtowc2.sh: New file.
34505         * tests/test-mbrtowc3.sh: New file.
34506         * tests/test-mbrtowc4.sh: New file.
34507         * tests/test-mbrtowc.c: New file.
34508
34509         New module 'mbrtowc'.
34510         * lib/wchar.in.h (mbstate_t): Override when the system does not have
34511         mbsinit and mbrtowc.
34512         (mbrtowc): New declaration.
34513         * lib/mbrtowc.c: New file.
34514         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
34515         * modules/mbrtowc: New file.
34516         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
34517         HAVE_MBRTOWC.
34518         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
34519         HAVE_MBRTOWC.
34520         * doc/posix-functions/mbrtowc.texi: Document the new module.
34521
34522 2008-12-18  Bruno Haible  <bruno@clisp.org>
34523
34524         New module 'wctob'.
34525         * lib/wchar.in.h (wctob): New declaration.
34526         * lib/wctob.c: New file.
34527         * m4/wctob.m4: New file.
34528         * modules/wctob: New file.
34529         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
34530         HAVE_WCTOB.
34531         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
34532         * doc/posix-functions/wctob.texi: Document the new module.
34533
34534 2008-12-18  Bruno Haible  <bruno@clisp.org>
34535
34536         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
34537         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
34538
34539 2008-12-18  Simon Josefsson  <simon@josefsson.org>
34540
34541         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
34542         G. Christensen" <tgc@jupiterrise.com>.
34543
34544         * lib/flock.c: Need to include errno.h.  Reported by "Tom
34545         G. Christensen" <tgc@jupiterrise.com>.
34546
34547         * lib/flock.c: Need to include string.h.  Reported by "Tom
34548         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
34549         <ebb9@byu.net>.
34550
34551 2008-12-18  Bruno Haible  <bruno@clisp.org>
34552
34553         * m4/locale-ja.m4: New file, from GNU gettext.
34554
34555 2008-12-17  Bruno Haible  <bruno@clisp.org>
34556
34557         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
34558         Suggested by Eric Blake.
34559
34560 2008-12-17  Bruno Haible  <bruno@clisp.org>
34561
34562         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
34563
34564 2008-12-17  Bruno Haible  <bruno@clisp.org>
34565
34566         * lib/mbsinit.c: Include verify.h. Verify an assumption.
34567         * modules/mbsinit (Depends-on): Add verify.
34568         Suggested by Paul Eggert.
34569
34570 2008-12-17  Bruno Haible  <bruno@clisp.org>
34571
34572         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
34573         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
34574         gl_FUNC_MBRTOWC.
34575         * m4/mbiter.m4 (gl_MBITER): LIkewise.
34576         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
34577         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
34578         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
34579         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
34580         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
34581         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
34582         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
34583         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
34584         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
34585         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
34586         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
34587         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
34588         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
34589         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
34590         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
34591         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
34592         * modules/trim (configure.ac): Likewise.
34593
34594 2008-12-17  Bruno Haible  <bruno@clisp.org>
34595
34596         * modules/btowc-tests: New file.
34597         * tests/test-btowc1.sh: New file.
34598         * tests/test-btowc2.sh: New file.
34599         * tests/test-btowc.c: New file.
34600
34601         New module 'btowc'.
34602         * lib/wchar.in.h (btowc): New declaration.
34603         * lib/btowc.c: New file.
34604         * m4/btowc.m4: New file.
34605         * modules/btowc: New file.
34606         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
34607         HAVE_BTOWC.
34608         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
34609         * doc/posix-functions/btowc.texi: Document the new module.
34610
34611 2008-12-17  Bruno Haible  <bruno@clisp.org>
34612
34613         New module 'mbsinit'.
34614         * lib/wchar.in.h (mbsinit): New declaration.
34615         * lib/mbsinit.c: New file.
34616         * m4/mbsinit.m4: New file.
34617         * modules/mbsinit: New file.
34618         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
34619         HAVE_MBSINIT.
34620         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
34621         HAVE_MBSINIT.
34622         * doc/posix-functions/mbsinit.texi: Document the new module.
34623
34624 2008-12-16  Bruno Haible  <bruno@clisp.org>
34625
34626         * lib/unistd.in.h: Add comment.
34627         * tests/test-environ.c: Don't include <stdlib.h>.
34628
34629 2008-12-16  Bruno Haible  <bruno@clisp.org>
34630
34631         * lib/parse-duration.h (parse_duration): Document return value
34632         convention.
34633         * lib/parse-duration.c: Include specification header first. Add
34634         comments.
34635         (_): Remove macro.
34636         (parse_year_month_day, parse_hour_minute_second): Move side effects
34637         outside of strchr call.
34638         (parse_non_iso8601): Move side effects outside of isspace call.
34639         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
34640         call.
34641
34642 2008-12-16  Bruno Haible  <bruno@clisp.org>
34643
34644         * tests/test-parse-duration.sh: Produce no output when the test
34645         succeeds.
34646
34647 2008-12-16  Bruno Haible  <bruno@clisp.org>
34648
34649         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
34650         expressions.
34651
34652 2008-12-15  Bruno Haible  <bruno@clisp.org>
34653
34654         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
34655         * doc/glibc-functions/flistxattr.texi: Likewise.
34656         * doc/glibc-functions/fopencookie.texi: Likewise.
34657         * doc/glibc-functions/fremovexattr.texi: Likewise.
34658         * doc/glibc-functions/fsetxattr.texi: Likewise.
34659         * doc/glibc-functions/getxattr.texi: Likewise.
34660         * doc/glibc-functions/lgetxattr.texi: Likewise.
34661         * doc/glibc-functions/listxattr.texi: Likewise.
34662         * doc/glibc-functions/llistxattr.texi: Likewise.
34663         * doc/glibc-functions/lremovexattr.texi: Likewise.
34664         * doc/glibc-functions/lsetxattr.texi: Likewise.
34665         * doc/glibc-functions/removexattr.texi: Likewise.
34666         * doc/glibc-functions/setxattr.texi: Likewise.
34667         * doc/posix-functions/open_memstream.texi: Likewise.
34668
34669 2008-12-15  Eric Blake  <ebb9@byu.net>
34670
34671         Update doc for cygwin 1.7.
34672         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
34673         functions.
34674         * doc/posix-functions/fchmodat.texi: Likewise.
34675         * doc/posix-functions/fchownat.texi: Likewise.
34676         * doc/posix-functions/fdopendir.texi: Likewise.
34677         * doc/posix-functions/fmemopen.texi: Likewise.
34678         * doc/posix-functions/freeaddrinfo.texi: Likewise.
34679         * doc/posix-functions/fstatat.texi: Likewise.
34680         * doc/posix-functions/futimens.texi: Likewise.
34681         * doc/posix-functions/gai_strerror.texi: Likewise.
34682         * doc/posix-functions/getaddrinfo.texi: Likewise.
34683         * doc/posix-functions/getnameinfo.texi: Likewise.
34684         * doc/posix-functions/if_freenameindex.texi: Likewise.
34685         * doc/posix-functions/if_indextoname.texi: Likewise.
34686         * doc/posix-functions/if_nameindex.texi: Likewise.
34687         * doc/posix-functions/if_nametoindex.texi: Likewise.
34688         * doc/posix-functions/insque.texi: Likewise.
34689         * doc/posix-functions/linkat.texi: Likewise.
34690         * doc/posix-functions/llrint.texi: Likewise.
34691         * doc/posix-functions/llrintf.texi: Likewise.
34692         * doc/posix-functions/llrintl.texi: Likewise.
34693         * doc/posix-functions/lockf.texi: Likewise.
34694         * doc/posix-functions/lrintl.texi: Likewise.
34695         * doc/posix-functions/mkdirat.texi: Likewise.
34696         * doc/posix-functions/mkfifoat.texi: Likewise.
34697         * doc/posix-functions/mknodat.texi: Likewise.
34698         * doc/posix-functions/mq_close.texi: Likewise.
34699         * doc/posix-functions/mq_getattr.texi: Likewise.
34700         * doc/posix-functions/mq_notify.texi: Likewise.
34701         * doc/posix-functions/mq_open.texi: Likewise.
34702         * doc/posix-functions/mq_receive.texi: Likewise.
34703         * doc/posix-functions/mq_send.texi: Likewise.
34704         * doc/posix-functions/mq_setattr.texi: Likewise.
34705         * doc/posix-functions/mq_timedreceive.texi: Likewise.
34706         * doc/posix-functions/mq_timedsend.texi: Likewise.
34707         * doc/posix-functions/mq_unlink.texi: Likewise.
34708         * doc/posix-functions/open_memstream.texi: Likewise.
34709         * doc/posix-functions/openat.texi: Likewise.
34710         * doc/posix-functions/posix_fadvise.texi: Likewise.
34711         * doc/posix-functions/posix_fallocate.texi: Likewise.
34712         * doc/posix-functions/posix_madvise.texi: Likewise.
34713         * doc/posix-functions/posix_memalign.texi: Likewise.
34714         * doc/posix-functions/posix_openpt.texi: Likewise.
34715         * doc/posix-functions/readlinkat.texi: Likewise.
34716         * doc/posix-functions/remque.texi: Likewise.
34717         * doc/posix-functions/renameat.texi: Likewise.
34718         * doc/posix-functions/rintl.texi: Likewise.
34719         * doc/posix-functions/sem_unlink.texi: Likewise.
34720         * doc/posix-functions/shm_open.texi: Likewise.
34721         * doc/posix-functions/shm_unlink.texi: Likewise.
34722         * doc/posix-functions/signgam.texi: Likewise.
34723         * doc/posix-functions/sigset.texi: Likewise.
34724         * doc/posix-functions/stpcpy.texi: Likewise.
34725         * doc/posix-functions/stpncpy.texi: Likewise.
34726         * doc/posix-functions/strerror.texi: Likewise.
34727         * doc/posix-functions/strtod.texi: Likewise.
34728         * doc/posix-functions/symlinkat.texi: Likewise.
34729         * doc/posix-functions/unlinkat.texi: Likewise.
34730         * doc/posix-functions/utimensat.texi: Likewise.
34731         * doc/glibc-functions/bindresvport.texi: Likewise.
34732         * doc/glibc-functions/dn_expand.texi: Likewise.
34733         * doc/glibc-functions/exp10.texi: Likewise.
34734         * doc/glibc-functions/exp10f.texi: Likewise.
34735         * doc/glibc-functions/fgetxattr.texi: Likewise.
34736         * doc/glibc-functions/flistxattr.texi: Likewise.
34737         * doc/glibc-functions/fopencookie.texi: Likewise.
34738         * doc/glibc-functions/freeifaddrs.texi: Likewise.
34739         * doc/glibc-functions/fremovexattr.texi: Likewise.
34740         * doc/glibc-functions/fsetxattr.texi: Likewise.
34741         * doc/glibc-functions/getifaddrs.texi: Likewise.
34742         * doc/glibc-functions/getxattr.texi: Likewise.
34743         * doc/glibc-functions/lgetxattr.texi: Likewise.
34744         * doc/glibc-functions/listxattr.texi: Likewise.
34745         * doc/glibc-functions/llistxattr.texi: Likewise.
34746         * doc/glibc-functions/lremovexattr.texi: Likewise.
34747         * doc/glibc-functions/lsetxattr.texi: Likewise.
34748         * doc/glibc-functions/pow10.texi: Likewise.
34749         * doc/glibc-functions/pow10f.texi: Likewise.
34750         * doc/glibc-functions/rcmd_af.texi: Likewise.
34751         * doc/glibc-functions/removexattr.texi: Likewise.
34752         * doc/glibc-functions/res_init.texi: Likewise.
34753         * doc/glibc-functions/res_mkquery.texi: Likewise.
34754         * doc/glibc-functions/res_query.texi: Likewise.
34755         * doc/glibc-functions/res_querydomain.texi: Likewise.
34756         * doc/glibc-functions/res_send.texi: Likewise.
34757         * doc/glibc-functions/rresvport_af.texi: Likewise.
34758         * doc/glibc-functions/setxattr.texi: Likewise.
34759         * doc/glibc-functions/strcasestr.texi: Likewise.
34760
34761 2008-12-15  Bruno Haible  <bruno@clisp.org>
34762
34763         Fix compilation error on OSF/1 4.0.
34764         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
34765         <sys/time.h>, simply delegate to the system header.
34766         Reported by Daniel Richard G. <oss@teragram.com>.
34767
34768 2008-12-15  Bruno Haible  <bruno@clisp.org>
34769
34770         * doc/posix-functions/openat.texi: Mention the 'openat' module.
34771         * doc/posix-functions/fchmodat.texi: Likewise.
34772         * doc/posix-functions/fchownat.texi: Likewise.
34773         * doc/posix-functions/fdopendir.texi: Likewise.
34774         * doc/posix-functions/fstatat.texi: Likewise.
34775         * doc/posix-functions/mkdirat.texi: Likewise.
34776         * doc/posix-functions/unlinkat.texi: Likewise.
34777
34778 2008-12-14  Bruno Haible  <bruno@clisp.org>
34779
34780         Update doc for POSIX:2008.
34781         * doc/posix-functions/faccessat.texi: New file.
34782         * doc/posix-functions/fchmodat.texi: New file.
34783         * doc/posix-functions/fchownat.texi: New file.
34784         * doc/posix-functions/fdopendir.texi: New file.
34785         * doc/posix-functions/fstatat.texi: New file.
34786         * doc/posix-functions/futimens.texi: New file.
34787         * doc/posix-functions/linkat.texi: New file.
34788         * doc/posix-functions/mkdirat.texi: New file.
34789         * doc/posix-functions/mkfifoat.texi: New file.
34790         * doc/posix-functions/mknodat.texi: New file.
34791         * doc/posix-functions/open_wmemstream.texi: New file.
34792         * doc/posix-functions/openat.texi: New file.
34793         * doc/posix-functions/psiginfo.texi: New file.
34794         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
34795         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
34796         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
34797         * doc/posix-functions/readlinkat.texi: New file.
34798         * doc/posix-functions/renameat.texi: New file.
34799         * doc/posix-functions/strerror_l.texi: New file.
34800         * doc/posix-functions/symlinkat.texi: New file.
34801         * doc/posix-functions/unlinkat.texi: New file.
34802         * doc/posix-functions/utimensat.texi: New file.
34803         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34804
34805 2008-12-14  Bruno Haible  <bruno@clisp.org>
34806
34807         Update doc for POSIX:2008.
34808         * doc/posix-functions/alphasort.texi: Renamed from
34809         doc/glibc-functions/alphasort.texi.
34810         * doc/posix-functions/dirfd.texi: Renamed from
34811         doc/glibc-functions/dirfd.texi.
34812         * doc/posix-functions/dprintf.texi: Renamed from
34813         doc/glibc-functions/dprintf.texi.
34814         * doc/posix-functions/duplocale.texi: Renamed from
34815         doc/glibc-functions/duplocale.texi.
34816         * doc/posix-functions/fexecve.texi: Renamed from
34817         doc/glibc-functions/fexecve.texi.
34818         * doc/posix-functions/fmemopen.texi: Renamed from
34819         doc/glibc-functions/fmemopen.texi.
34820         * doc/posix-functions/freelocale.texi: Renamed from
34821         doc/glibc-functions/freelocale.texi.
34822         * doc/posix-functions/getdate_err.texi: Renamed from
34823         doc/glibc-functions/getdate_err.texi.
34824         * doc/posix-functions/isalnum_l.texi: Renamed from
34825         doc/glibc-functions/isalnum_l.texi.
34826         * doc/posix-functions/isalpha_l.texi: Renamed from
34827         doc/glibc-functions/isalpha_l.texi.
34828         * doc/posix-functions/isblank_l.texi: Renamed from
34829         doc/glibc-functions/isblank_l.texi.
34830         * doc/posix-functions/iscntrl_l.texi: Renamed from
34831         doc/glibc-functions/iscntrl_l.texi.
34832         * doc/posix-functions/isdigit_l.texi: Renamed from
34833         doc/glibc-functions/isdigit_l.texi.
34834         * doc/posix-functions/isgraph_l.texi: Renamed from
34835         doc/glibc-functions/isgraph_l.texi.
34836         * doc/posix-functions/islower_l.texi: Renamed from
34837         doc/glibc-functions/islower_l.texi.
34838         * doc/posix-functions/isprint_l.texi: Renamed from
34839         doc/glibc-functions/isprint_l.texi.
34840         * doc/posix-functions/ispunct_l.texi: Renamed from
34841         doc/glibc-functions/ispunct_l.texi.
34842         * doc/posix-functions/isspace_l.texi: Renamed from
34843         doc/glibc-functions/isspace_l.texi.
34844         * doc/posix-functions/isupper_l.texi: Renamed from
34845         doc/glibc-functions/isupper_l.texi.
34846         * doc/posix-functions/iswalnum_l.texi: Renamed from
34847         doc/glibc-functions/iswalnum_l.texi.
34848         * doc/posix-functions/iswalpha_l.texi: Renamed from
34849         doc/glibc-functions/iswalpha_l.texi.
34850         * doc/posix-functions/iswblank_l.texi: Renamed from
34851         doc/glibc-functions/iswblank_l.texi.
34852         * doc/posix-functions/iswcntrl_l.texi: Renamed from
34853         doc/glibc-functions/iswcntrl_l.texi.
34854         * doc/posix-functions/iswctype_l.texi: Renamed from
34855         doc/glibc-functions/iswctype_l.texi.
34856         * doc/posix-functions/iswdigit_l.texi: Renamed from
34857         doc/glibc-functions/iswdigit_l.texi.
34858         * doc/posix-functions/iswgraph_l.texi: Renamed from
34859         doc/glibc-functions/iswgraph_l.texi.
34860         * doc/posix-functions/iswlower_l.texi: Renamed from
34861         doc/glibc-functions/iswlower_l.texi.
34862         * doc/posix-functions/iswprint_l.texi: Renamed from
34863         doc/glibc-functions/iswprint_l.texi.
34864         * doc/posix-functions/iswpunct_l.texi: Renamed from
34865         doc/glibc-functions/iswpunct_l.texi.
34866         * doc/posix-functions/iswspace_l.texi: Renamed from
34867         doc/glibc-functions/iswspace_l.texi.
34868         * doc/posix-functions/iswupper_l.texi: Renamed from
34869         doc/glibc-functions/iswupper_l.texi.
34870         * doc/posix-functions/iswxdigit_l.texi: Renamed from
34871         doc/glibc-functions/iswxdigit_l.texi.
34872         * doc/posix-functions/isxdigit_l.texi: Renamed from
34873         doc/glibc-functions/isxdigit_l.texi.
34874         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
34875         doc/glibc-functions/mbsnrtowcs.texi.
34876         * doc/posix-functions/mkdtemp.texi: Renamed from
34877         doc/glibc-functions/mkdtemp.texi.
34878         * doc/posix-functions/newlocale.texi: Renamed from
34879         doc/glibc-functions/newlocale.texi.
34880         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
34881         doc/glibc-functions/nl_langinfo_l.texi.
34882         * doc/posix-functions/open_memstream.texi: Renamed from
34883         doc/glibc-functions/open_memstream.texi.
34884         * doc/posix-functions/opterr.texi: Renamed from
34885         doc/glibc-functions/opterr.texi.
34886         * doc/posix-functions/optind.texi: Renamed from
34887         doc/glibc-functions/optind.texi.
34888         * doc/posix-functions/optopt.texi: Renamed from
34889         doc/glibc-functions/optopt.texi.
34890         * doc/posix-functions/psignal.texi: Renamed from
34891         doc/glibc-functions/psignal.texi.
34892         * doc/posix-functions/scandir.texi: Renamed from
34893         doc/glibc-functions/scandir.texi.
34894         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
34895         doc/glibc-functions/sched_get_priority_min.texi.
34896         * doc/posix-functions/signgam.texi: Renamed from
34897         doc/glibc-functions/signgam.texi.
34898         * doc/posix-functions/stpcpy.texi: Renamed from
34899         doc/glibc-functions/stpcpy.texi.
34900         * doc/posix-functions/stpncpy.texi: Renamed from
34901         doc/glibc-functions/stpncpy.texi.
34902         * doc/posix-functions/strcasecmp_l.texi: Renamed from
34903         doc/glibc-functions/strcasecmp_l.texi.
34904         * doc/posix-functions/strcoll_l.texi: Renamed from
34905         doc/glibc-functions/strcoll_l.texi.
34906         * doc/posix-functions/strfmon_l.texi: Renamed from
34907         doc/glibc-functions/strfmon_l.texi.
34908         * doc/posix-functions/strftime_l.texi: Renamed from
34909         doc/glibc-functions/strftime_l.texi.
34910         * doc/posix-functions/strncasecmp_l.texi: Renamed from
34911         doc/glibc-functions/strncasecmp_l.texi.
34912         * doc/posix-functions/strndup.texi: Renamed from
34913         doc/glibc-functions/strndup.texi.
34914         * doc/posix-functions/strnlen.texi: Renamed from
34915         doc/glibc-functions/strnlen.texi.
34916         * doc/posix-functions/strsignal.texi: Renamed from
34917         doc/glibc-functions/strsignal.texi.
34918         * doc/posix-functions/strxfrm_l.texi: Renamed from
34919         doc/glibc-functions/strxfrm_l.texi.
34920         * doc/posix-functions/timer_gettime.texi: Renamed from
34921         doc/glibc-functions/timer_gettime.texi.
34922         * doc/posix-functions/tolower_l.texi: Renamed from
34923         doc/glibc-functions/tolower_l.texi.
34924         * doc/posix-functions/toupper_l.texi: Renamed from
34925         doc/glibc-functions/toupper_l.texi.
34926         * doc/posix-functions/towctrans_l.texi: Renamed from
34927         doc/glibc-functions/towctrans_l.texi.
34928         * doc/posix-functions/towlower_l.texi: Renamed from
34929         doc/glibc-functions/towlower_l.texi.
34930         * doc/posix-functions/towupper_l.texi: Renamed from
34931         doc/glibc-functions/towupper_l.texi.
34932         * doc/posix-functions/uselocale.texi: Renamed from
34933         doc/glibc-functions/uselocale.texi.
34934         * doc/posix-functions/vdprintf.texi: Renamed from
34935         doc/glibc-functions/vdprintf.texi.
34936         * doc/posix-functions/wcpcpy.texi:
34937         Renamed from doc/glibc-functions/wcpcpy.texi.
34938         * doc/posix-functions/wcpncpy.texi: Renamed from
34939         doc/glibc-functions/wcpncpy.texi.
34940         * doc/posix-functions/wcscasecmp.texi: Renamed from
34941         doc/glibc-functions/wcscasecmp.texi.
34942         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
34943         doc/glibc-functions/wcscasecmp_l.texi.
34944         * doc/posix-functions/wcscoll_l.texi: Renamed from
34945         doc/glibc-functions/wcscoll_l.texi.
34946         * doc/posix-functions/wcsdup.texi: Renamed from
34947         doc/glibc-functions/wcsdup.texi.
34948         * doc/posix-functions/wcsncasecmp.texi: Renamed from
34949         doc/glibc-functions/wcsncasecmp.texi.
34950         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
34951         doc/glibc-functions/wcsncasecmp_l.texi.
34952         * doc/posix-functions/wcsnlen.texi: Renamed from
34953         doc/glibc-functions/wcsnlen.texi.
34954         * doc/posix-functions/wcsnrtombs.texi: Renamed from
34955         doc/glibc-functions/wcsnrtombs.texi.
34956         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
34957         doc/glibc-functions/wcsxfrm_l.texi.
34958         * doc/posix-functions/wctrans_l.texi: Renamed from
34959         doc/glibc-functions/wctrans_l.texi.
34960         * doc/posix-functions/wctype_l.texi: Renamed from
34961         doc/glibc-functions/wctype_l.texi.
34962         * doc/gnulib.texi (Function Substitutes): Add these subsections.
34963         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
34964         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
34965         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
34966         these subsections.
34967         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
34968         Remove sections.
34969
34970 2008-12-14  Bruno Haible  <bruno@clisp.org>
34971
34972         Update doc for POSIX:2008.
34973         * doc/posix-functions/*.texi: Update URL of POSIX specification.
34974
34975 2008-12-14  Bruno Haible  <bruno@clisp.org>
34976
34977         Update doc for POSIX:2008.
34978         * doc/pastposix-functions/bcmp.texi: Renamed from
34979         doc/posix-functions/bcmp.texi.
34980         * doc/pastposix-functions/bcopy.texi: Renamed from
34981         doc/posix-functions/bcopy.texi.
34982         * doc/pastposix-functions/bsd_signal.texi: Renamed from
34983         doc/posix-functions/bsd_signal.texi.
34984         * doc/pastposix-functions/bzero.texi: Renamed from
34985         doc/posix-functions/bzero.texi.
34986         * doc/pastposix-functions/ecvt.texi: Renamed from
34987         doc/posix-functions/ecvt.texi.
34988         * doc/pastposix-functions/fcvt.texi: Renamed from
34989         doc/posix-functions/fcvt.texi.
34990         * doc/pastposix-functions/ftime.texi: Renamed from
34991         doc/posix-functions/ftime.texi.
34992         * doc/pastposix-functions/gcvt.texi: Renamed from
34993         doc/posix-functions/gcvt.texi.
34994         * doc/pastposix-functions/getcontext.texi: Renamed from
34995         doc/posix-functions/getcontext.texi.
34996         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
34997         doc/posix-functions/gethostbyaddr.texi.
34998         * doc/pastposix-functions/gethostbyname.texi: Renamed from
34999         doc/posix-functions/gethostbyname.texi.
35000         * doc/pastposix-functions/getwd.texi: Renamed from
35001         doc/posix-functions/getwd.texi.
35002         * doc/pastposix-functions/h_errno.texi: Renamed from
35003         doc/posix-functions/h_errno.texi.
35004         * doc/pastposix-functions/index.texi: Renamed from
35005         doc/posix-functions/index.texi.
35006         * doc/pastposix-functions/makecontext.texi: Renamed from
35007         doc/posix-functions/makecontext.texi.
35008         * doc/pastposix-functions/mktemp.texi: Renamed from
35009         doc/posix-functions/mktemp.texi.
35010         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
35011         doc/posix-functions/pthread_attr_getstackaddr.texi.
35012         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
35013         doc/posix-functions/pthread_attr_setstackaddr.texi.
35014         * doc/pastposix-functions/rindex.texi: Renamed from
35015         doc/posix-functions/rindex.texi.
35016         * doc/pastposix-functions/scalb.texi: Renamed from
35017         doc/posix-functions/scalb.texi.
35018         * doc/pastposix-functions/setcontext.texi: Renamed from
35019         doc/posix-functions/setcontext.texi.
35020         * doc/pastposix-functions/swapcontext.texi: Renamed from
35021         doc/posix-functions/swapcontext.texi.
35022         * doc/pastposix-functions/ualarm.texi: Renamed from
35023         doc/posix-functions/ualarm.texi.
35024         * doc/pastposix-functions/usleep.texi: Renamed from
35025         doc/posix-functions/usleep.texi.
35026         * doc/pastposix-functions/vfork.texi: Renamed from
35027         doc/posix-functions/vfork.texi.
35028         * doc/pastposix-functions/wcswcs.texi: Renamed from
35029         doc/posix-functions/wcswcs.texi.
35030         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
35031         (Function Substitutes): Update.
35032
35033 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35034
35035         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
35036         m4/strerror.m4.
35037
35038 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35039             Bruno Haible  <bruno@clisp.org>
35040
35041         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
35042
35043 2008-12-13  Bruno Haible  <bruno@clisp.org>
35044
35045         * modules/strtoull (Depends-on): Remove unistd.
35046
35047 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35048
35049         * modules/strtoull (Depends-on): Add stdlib.
35050
35051 2008-12-11  Simon Josefsson  <simon@josefsson.org>
35052
35053         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
35054
35055 2008-12-10  Jim Meyering  <meyering@redhat.com>
35056
35057         gl_ASSERT: don't say assertions are disabled when they're not
35058         * m4/assert.m4 (gl_ASSERT): Do not make configure report
35059         "checking whether to enable assertions... no", when they are in
35060         fact enabled.  This is solely a bug in the output of configure.
35061         In spite of saying "no", NDEBUG was not defined in that case.
35062         Also, as noted by Eric Blake, leave assertions enabled upon
35063         --enable-assert=INVALID.
35064
35065 2008-12-10  Bruno Haible  <bruno@clisp.org>
35066
35067         Change MODULES.html to refer to POSIX:2008 where possible.
35068         * MODULES.html.sh (POSIX2008_URL): New variable.
35069         (posix_headers): Remove sys/timeb, ucontext.
35070         (posix2001_headers): New variable.
35071         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
35072         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
35073         index, makecontext, mktemp, pthread_attr_getstackaddr,
35074         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
35075         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
35076         (posix2001_functions): New variable.
35077         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
35078         otherwise.
35079
35080 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35081
35082         add missing include to parse-duration.c
35083         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
35084         * modules/parse-duration (Depends-on): Add xalloc.
35085
35086         fix sed script reading maint.mk
35087         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
35088         (syntax-check-rules): Use it.
35089
35090 2008-12-09  Bruno Haible  <bruno@clisp.org>
35091
35092         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
35093         MacOS X 10.4/PowerPC.
35094         Reported by Simon Josefsson.
35095
35096 2008-12-08  Jim Meyering  <meyering@redhat.com>
35097
35098         work around mingw's lack of some S_IF definitions
35099         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
35100         Reported by Simon Josefsson.
35101
35102 2008-12-08  Bruno Haible  <bruno@clisp.org>
35103
35104         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
35105         applied to variables. Needed on MacOS X 10.4/PowerPC.
35106         Reported by Simon Josefsson.
35107
35108 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
35109         and Eric Blake  <ebb9@byu.net>
35110
35111         assert: honor --enable-assert
35112         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
35113         order to honor --enable-assert, rather than treating it as a
35114         synonym for --disable-assert.
35115
35116 2008-12-08  Jim Meyering  <meyering@redhat.com>
35117
35118         * lib/posixtm.c: Remove now-useless declaration of mktime.
35119
35120         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
35121
35122 2008-12-07  Bruno Haible  <bruno@clisp.org>
35123
35124         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
35125         test_once): Mark functions as static.
35126         * tests/test-tls.c (test_tls): Likewise.
35127
35128 2008-12-07  Bruno Haible  <bruno@clisp.org>
35129
35130         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
35131         iconv_register_autodetect.
35132
35133 2008-12-07  Jim Meyering  <meyering@redhat.com>
35134
35135         posixtm.c: avoid a warning
35136         * lib/posixtm.c (posixtime): Don't initialize tm0.
35137         It's no longer needed to placate gcc4's -Wuninitialized,
35138         and the attempt to placate would elicit a new warning.
35139
35140         unicodeio.c: mark unused parameters
35141         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
35142         (fallback_failure_callback): Likewise.
35143
35144 2008-12-07  Bruno Haible  <bruno@clisp.org>
35145
35146         * gnulib-tool (func_create_testdir): When building the tests
35147         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
35148         Reported by Simon Josefsson.
35149
35150 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35151
35152         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
35153
35154 2008-12-06  Bruno Haible  <bruno@clisp.org>
35155
35156         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
35157         Suggested by Eric Blake.
35158
35159 2008-12-06  Bruno Haible  <bruno@clisp.org>
35160
35161         Fix a c-stack test failure on MacOS X.
35162         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
35163         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
35164         handler for SIGBUS as well.
35165         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
35166         install a signal handler for SIGBUS as well.
35167         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
35168
35169 2008-12-06  Bruno Haible  <bruno@clisp.org>
35170
35171         Advocacy documentation.
35172         * doc/gnulib-intro.texi (Benefits): New section.
35173         * doc/gnulib.texi: Update.
35174
35175 2008-12-06  Bruno Haible  <bruno@clisp.org>
35176
35177         Document the 'manywarnings' module.
35178         * doc/manywarnings.texi: New file.
35179         * doc/gnulib.texi: Include it.
35180
35181 2008-12-05  Eric Blake  <ebb9@byu.net>
35182
35183         tests: silence some gcc warnings
35184         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
35185         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
35186         type mismatches.
35187
35188 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35189             Bruno Haible  <bruno@clisp.org>
35190
35191         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
35192
35193 2008-11-29  Jim Meyering  <meyering@redhat.com>
35194
35195         unicodeio.c: mark unused parameters
35196         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
35197         (fallback_failure_callback): Likewise.
35198
35199         fts: fix a thinko
35200         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
35201         (set_stat_type): Return S_IF*-valued "type" directly.
35202         Prompted by James Youngman's spotting a related bug.
35203         Confirmed by further testing through find.
35204
35205         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
35206         * lib/fts.c (D_TYPE): Define.
35207         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
35208         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
35209         (s_ifmt_shift_bits): New function.
35210         (set_stat_type): New function.
35211         (fts_build): When not calling fts_stat, call set_stat_type
35212         to propagate dirent.d_type info to fts_read caller.
35213         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
35214         fts_statp->st_mode type information may be valid.
35215
35216 2008-11-28  Simon Josefsson  <simon@josefsson.org>
35217
35218         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
35219         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
35220         <sds@gnu.org>.
35221
35222 2008-11-20  Bruno Haible  <bruno@clisp.org>
35223
35224         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
35225         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
35226         INCLUDE_NEXT.
35227         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
35228         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
35229         * modules/math (Makefile.am): Substitute
35230         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
35231         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35232
35233 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35234             Bruno Haible  <bruno@clisp.org>
35235
35236         * lib/stdint.in.h: Define all type macros so that their expansion is
35237         a single typedef'ed token. Fixes a compilation failure in Boost which
35238         does "using ::int8_t;".
35239
35240 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35241
35242         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
35243         gl_MANYWARN_ALL_GCC.
35244         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
35245         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
35246         * modules/manywarnings: New file.
35247         * MODULES.html.sh: Mention manywarnings module.
35248
35249 2008-11-18  Bruno Haible  <bruno@clisp.org>
35250
35251         * doc/gnulib-tool.texi (Unit tests): New section.
35252
35253 2008-11-18  Simon Josefsson  <simon@josefsson.org>
35254
35255         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
35256         paths like 'lib/po/foo.po'.
35257
35258 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35259
35260         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
35261         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
35262
35263 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35264
35265         * m4/warnings.m4: Use CPPFLAGS to really check whether the
35266         parameter works.
35267
35268 2008-11-17  Simon Josefsson  <simon@josefsson.org>
35269
35270         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
35271
35272 2008-11-17  Bruce Korb  <bkorb@gnu.org>
35273
35274         * modules/parse-duration-tests: New file.
35275         * tests/test-parse-duration.sh: New file.
35276         * tests/test-parse-duration.c: New file.
35277
35278         New module 'parse-duration'.
35279         * lib/parse-duration.h: New file.
35280         * lib/parse-duration.c: New file.
35281         * modules/parse-duration: New file.
35282
35283 2008-11-17  Bruno Haible  <bruno@clisp.org>
35284
35285         * tests/test-select-out.sh: Comment out the first pipe test.
35286         Reported by Simon Josefsson.
35287
35288 2008-11-17  Bruno Haible  <bruno@clisp.org>
35289
35290         * modules/getaddrinfo (Depends-on): Add servent, hostent.
35291         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
35292         gl_HOSTENT.
35293
35294 2008-11-17  Bruno Haible  <bruno@clisp.org>
35295
35296         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
35297         -lnetwork and -lnet. Needed for Haiku and BeOS.
35298
35299 2008-11-16  Bruno Haible  <bruno@clisp.org>
35300
35301         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
35302
35303 2008-11-16  Bruno Haible  <bruno@clisp.org>
35304
35305         Avoid test failure on Haiku.
35306         * tests/test-fsync.c: Include <errno.h>.
35307         (main): Don't require that fsync (0) fails.
35308
35309 2008-11-15  Bruno Haible  <bruno@clisp.org>
35310
35311         New module 'hostent'.
35312         * modules/hostent: New file.
35313         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
35314
35315 2008-11-15  Bruno Haible  <bruno@clisp.org>
35316
35317         New module 'servent'.
35318         * modules/servent: New file.
35319         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
35320
35321 2008-11-15  Bruno Haible  <bruno@clisp.org>
35322
35323         Avoid generating same test program with two different rules.
35324         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
35325         test-frexp to test-frexp-nolibm.
35326         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
35327         test-frexpl to test-frexpl-nolibm.
35328
35329 2008-11-15  Bruno Haible  <bruno@clisp.org>
35330
35331         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
35332         $(FREXPL_LIBM).
35333
35334 2008-11-15  Bruno Haible  <bruno@clisp.org>
35335
35336         * lib/netdb.in.h: Activate the definitions also when the system's
35337         <netdb.h> has 'struct addrinfo'.
35338         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
35339         EAI_OVERFLOW or AI_NUMERICSERV.
35340         * doc/posix-headers/netdb.texi: Document the problem.
35341
35342 2008-11-15  Bruno Haible  <bruno@clisp.org>
35343
35344         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
35345
35346         Make the 'sched' module work on platforms where <sched.h> exists but
35347         is incomplete (such as Haiku).
35348         * lib/sched.in.h; Include the system's <sched.h> if it exists.
35349         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
35350         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
35351         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
35352         HAVE_STRUCT_SCHED_PARAM.
35353         * modules/sched (Depends-on): Add include_next.
35354         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
35355         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
35356         * doc/posix-headers/sched.texi: Document the issue.
35357
35358 2008-11-13  Jim Meyering  <meyering@redhat.com>
35359
35360         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
35361         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
35362         test would fail due to the difference in the Report bugs to ...
35363         line.  The expected address is empty, "<>", while the actual
35364         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
35365
35366 2008-11-12  Bruno Haible  <bruno@clisp.org>
35367
35368         lstat: don't compile lstat.c on systems lacking lstat
35369         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
35370         which don't have lstat; this is handled by lib/sys_stat.in.h already.
35371         Reported by Daniel P. Berrange via Jim Meyering.
35372
35373 2008-11-12  Jim Meyering  <meyering@redhat.com>
35374
35375         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
35376
35377 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35378
35379         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
35380         instead.
35381
35382 2008-11-12  Bruno Haible  <bruno@clisp.org>
35383
35384         * lib/unicodeio.c: Include unistr.h.
35385         (utf8_wctomb): Remove function.
35386         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
35387
35388 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35389
35390         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
35391         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
35392         <bruno@clisp.org>.
35393         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
35394
35395 2008-11-12  Simon Josefsson  <simon@josefsson.org>
35396
35397         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
35398         * doc/gnulib.texi: Add section for warnings.
35399
35400 2008-11-11  Bruno Haible  <bruno@clisp.org>
35401
35402         * lib/sockets.h: Add a comment.
35403
35404 2008-11-11  Karl Berry  <karl@gnu.org>
35405
35406         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
35407
35408 2008-11-11  Eric Blake  <ebb9@byu.net>
35409
35410         fdl.texi: avoid git symlinks
35411         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
35412
35413 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35414
35415         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
35416
35417 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35418
35419         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
35420         (gl_WARN_ADD): Substitute $2 if literal.
35421
35422 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35423
35424         * m4/warning.m4: Remove.
35425
35426 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
35427
35428         * m4/warnings.m4: Almost complete rewrite. :-)
35429
35430 2008-11-10  Simon Josefsson  <simon@josefsson.org>
35431
35432         * modules/warnings: New module.
35433         * m4/warnings.m4: New file.
35434         * MODULES.html.sh: Mention warnings module.
35435         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
35436         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35437
35438 2008-11-10  Eric Blake  <ebb9@byu.net>
35439
35440         fdl.texi: make a symlink to the latest version
35441         * doc/standards.texi: Revert today's earlier change.
35442         * doc/fdl-1.2.texi: Rename from old fdl.texi...
35443         * doc/fdl.texi: ...and replace this with a symlink to the newer
35444         fdl-1.3.texi.
35445
35446 2008-11-10  Bruno Haible  <bruno@clisp.org>
35447
35448         * tests/test-select-fd.c (main): Accept the result file name as fourth
35449         argument.
35450         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
35451         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
35452
35453 2008-11-10  Bruno Haible  <bruno@clisp.org>
35454
35455         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
35456         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
35457         as autoconf-substituted macros.
35458         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
35459         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
35460         gl_NETDB_H_DEFAULTS. Set these variables.
35461         * modules/netdb (Makefile.am): Substitute these variables.
35462
35463 2008-11-10  Eric Blake  <ebb9@byu.net>
35464
35465         standards.texi: include correct file for FDL 1.3
35466         * doc/standards.texi (GNU Free Documentation License): Change
35467         include file to pull in FDL 1.3, not 1.2.
35468
35469         fdl.texi: revert accidental change to license
35470         * doc/fdl.texi: This is FDL 1.2, not 1.3.
35471
35472 2008-11-10  Bruno Haible  <bruno@clisp.org>
35473
35474         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
35475         cross-compiling guesses also when the native compile gives no result.
35476
35477 2008-11-10  Bruno Haible  <bruno@clisp.org>
35478
35479         * lib/spawni.c (__spawni): Force variable into the stack.
35480
35481 2008-11-10  Bruno Haible  <bruno@clisp.org>
35482
35483         Add support for Haiku.
35484         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
35485         glibc and BeOS, but also on Haiku.
35486         * lib/fpurge.c (fpurge): Likewise.
35487         * lib/freadable.c (freadable): Likewise.
35488         * lib/freadahead.c (freadahead): Likewise.
35489         * lib/freading.c (freading): Likewise.
35490         * lib/freadptr.c (freadptr): Likewise.
35491         * lib/freadseek.c (freadptrinc): Likewise.
35492         * lib/fseeko.c (rpl_fseeko): Likewise.
35493         * lib/fseterr.c (fseterr): Likewise.
35494         * lib/fwritable.c (fwritable): Likewise.
35495         * lib/fwriting.c (fwriting): Likewise.
35496         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
35497
35498 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35499
35500         * lib/config.charset: Treat Haiku like BeOS.
35501
35502 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
35503
35504         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
35505         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
35506
35507 2008-11-08  Bruno Haible  <bruno@clisp.org>
35508
35509         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
35510         AC_CACHE_CHECK.
35511
35512 2008-11-08  Bruno Haible  <bruno@clisp.org>
35513
35514         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
35515
35516 2008-11-08  Bruno Haible  <bruno@clisp.org>
35517
35518         * tests/test-select-fd.c: New file.
35519         * tests/test-select-in.sh: New file.
35520         * tests/test-select-out.sh: New file.
35521         * tests/test-select-stdin.c: New file.
35522         * modules/select-tests (Files): Add the new files.
35523         (Depends-on): Add gettimeofday.
35524         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
35525         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
35526         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
35527
35528 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
35529             Bruno Haible  <bruno@clisp.org>
35530
35531         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
35532
35533 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
35534
35535         * build-aux/pmccabe2html: Added support for C++ source files.
35536
35537 2008-11-05  Ben Pfaff  <blp@gnu.org>
35538
35539         Fix lib/close.c build on Windows.
35540         * modules/close (Files): Add lib/w32sock.h.
35541
35542 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
35543
35544         Accept Bison's NEWS format.
35545         * build-aux/announce-gen (print_news_deltas): Tweak
35546         $re_prefix.
35547
35548 2008-11-04  Bruno Haible  <bruno@clisp.org>
35549
35550         * modules/random_r (Maintainer): Add glibc.
35551
35552 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35553
35554         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
35555         by karl@freefriends.org (Karl Berry).
35556         * doc/alloca.texi: Likewise.
35557         * doc/c-ctype.texi: Likewise.
35558         * doc/c-strcase.texi: Likewise.
35559         * doc/c-strcaseeq.texi: Likewise.
35560         * doc/c-strcasestr.texi: Likewise.
35561         * doc/c-strstr.texi: Likewise.
35562         * doc/c-strtod.texi: Likewise.
35563         * doc/c-strtold.texi: Likewise.
35564         * doc/ctime.texi: Likewise.
35565         * doc/error.texi: Likewise.
35566         * doc/fdl.texi: Likewise.
35567         * doc/gcd.texi: Likewise.
35568         * doc/getdate.texi: Likewise.
35569         * doc/gnulib-intro.texi: Likewise.
35570         * doc/gnulib-tool.texi: Likewise.
35571         * doc/gnulib.texi: Likewise.
35572         * doc/inet_ntoa.texi: Likewise.
35573         * doc/maintain.texi: Likewise.
35574         * doc/make-stds.texi: Likewise.
35575         * doc/quote.texi: Likewise.
35576         * doc/regexprops-generic.texi: Likewise.
35577         * doc/standards.texi: Likewise.
35578         * doc/verify.texi: Likewise.
35579         * doc/visibility.texi: Likewise.
35580         * doc/gnulib.texi (GNU Free Documentation License): Include
35581         fdl-1.3.texi instead of fdl.texi.
35582
35583 2008-11-04  Simon Josefsson  <simon@josefsson.org>
35584
35585         * doc/fdl-1.3.texi: New file, from
35586         <http://www.gnu.org/licenses/fdl-1.3.texi>.
35587         * modules/fdl-1.3: Add.
35588         * MODULES.html.sh: Add fdl-1.3.
35589
35590 2008-11-03  Bruno Haible  <bruno@clisp.org>
35591
35592         Make determination of absolute name of header file work with AIX xlc.
35593         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
35594         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
35595         preprocessing.
35596         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35597         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
35598
35599 2008-11-03  Simon Josefsson  <simon@josefsson.org>
35600
35601         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
35602         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
35603         <ludo@gnu.org>.
35604
35605 2008-11-02  Bruno Haible  <bruno@clisp.org>
35606
35607         Mark 'strpbrk' obsolete.
35608         * modules/strpbrk (Status, Notice): New sections.
35609         * modules/strtok_r (Depends-on): Add strpbrk.
35610
35611 2008-11-02  Bruno Haible  <bruno@clisp.org>
35612
35613         Mark 'strdup' obsolete.
35614         * modules/strdup (Status, Notice): New sections.
35615         * modules/findprog (Depends-on): Add strdup.
35616         * modules/getaddrinfo (Depends-on): Likewise.
35617         * modules/localename (Depends-on): Likewise.
35618         * modules/relocatable-lib (Depends-on): Likewise.
35619         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
35620         * modules/relocatable-prog (Depends-on): Likewise.
35621         * modules/trim (Depends-on): Likewise.
35622         * modules/unictype/gen-ctype (Depends-on): Likewise.
35623         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35624
35625 2008-11-02  Bruno Haible  <bruno@clisp.org>
35626
35627         Mark 'strcspn' obsolete.
35628         * modules/strcspn (Status, Notice): New sections.
35629
35630 2008-11-02  Bruno Haible  <bruno@clisp.org>
35631
35632         Mark 'rmdir' obsolete.
35633         * modules/rmdir (Status, Notice): New sections.
35634         * modules/clean-temp (Depends-on): Add rmdir.
35635         * modules/openat (Depends-on): Likewise.
35636
35637 2008-11-02  Bruno Haible  <bruno@clisp.org>
35638
35639         Mark 'raise' obsolete.
35640         * modules/raise (Status, Notice): New sections.
35641         (Include): Specify <signal.h>.
35642         * modules/stdio (Depends-on): Add raise.
35643         * modules/write (Depends-on): Likewise.
35644
35645 2008-11-02  Bruno Haible  <bruno@clisp.org>
35646
35647         Mark 'memset' obsolete.
35648         * modules/memset (Status, Notice): New sections.
35649
35650 2008-11-02  Bruno Haible  <bruno@clisp.org>
35651
35652         Mark 'memmove' obsolete.
35653         * modules/memmove (Status, Notice): New sections.
35654         * modules/argp (Depends-on): Add memmove.
35655         * modules/argz (Depends-on): Likewise.
35656         * modules/canonicalize (Depends-on): Likewise.
35657         * modules/canonicalize-lgpl (Depends-on): Likewise.
35658         * modules/fts (Depends-on): Likewise.
35659         * modules/getcwd (Depends-on): Likewise.
35660         * modules/human (Depends-on): Likewise.
35661         * modules/regex (Depends-on): Likewise.
35662         * modules/striconveh (Depends-on): Likewise.
35663         * modules/trim (Depends-on): Likewise.
35664         * modules/unistr/u8-move (Depends-on): Likewise.
35665         * modules/unistr/u16-move (Depends-on): Likewise.
35666         * modules/unistr/u32-move (Depends-on): Likewise.
35667
35668 2008-11-02  Bruno Haible  <bruno@clisp.org>
35669
35670         Mark 'memcpy' obsolete.
35671         * modules/memcpy (Status, Notice): New sections.
35672
35673 2008-11-02  Bruno Haible  <bruno@clisp.org>
35674
35675         Mark 'memcmp' obsolete.
35676         * modules/memcmp (Status, Notice): New sections.
35677         * modules/argmatch (Depends-on): Add memchr.
35678         * modules/backupfile (Depends-on): Likewise.
35679         * modules/c-strcasestr (Depends-on): Likewise.
35680         * modules/crypto/des (Depends-on): Likewise.
35681         * modules/csharpcomp (Depends-on): Likewise.
35682         * modules/fnmatch (Depends-on): Likewise.
35683         * modules/git-merge-changelog (Depends-on): Likewise.
35684         * modules/isnand (Depends-on): Likewise.
35685         * modules/isnand-nolibm (Depends-on): Likewise.
35686         * modules/isnanf (Depends-on): Likewise.
35687         * modules/isnanf-nolibm (Depends-on): Likewise.
35688         * modules/isnanl (Depends-on): Likewise.
35689         * modules/isnanl-nolibm (Depends-on): Likewise.
35690         * modules/mbchar (Depends-on): Likewise.
35691         * modules/memcoll (Depends-on): Likewise.
35692         * modules/quotearg (Depends-on): Likewise.
35693         * modules/regex (Depends-on): Likewise.
35694         * modules/relocatable-prog (Depends-on): Likewise.
35695         * modules/same (Depends-on): Likewise.
35696         * modules/signbit (Depends-on): Likewise.
35697         * modules/strcasestr-simple (Depends-on): Likewise.
35698         * modules/unictype/gen-ctype (Depends-on): Likewise.
35699         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
35700         * modules/uniname/uniname (Depends-on): Likewise.
35701         * modules/unistr/u8-cmp (Depends-on): Likewise.
35702
35703 2008-11-02  Bruno Haible  <bruno@clisp.org>
35704
35705         Mark 'memchr' obsolete.
35706         * modules/memchr (Status, Notice): New sections.
35707         * modules/argp (Depends-on): Add memchr.
35708         * modules/base64 (Depends-on): Likewise.
35709         * modules/c-strcasestr (Depends-on): Likewise.
35710         * modules/chdir-long (Depends-on): Likewise.
35711         * modules/fnmatch (Depends-on): Likewise.
35712         * modules/getsubopt (Depends-on): Likewise.
35713         * modules/git-merge-changelog (Depends-on): Likewise.
35714         * modules/glob (Depends-on): Likewise.
35715         * modules/strcasestr-simple (Depends-on): Likewise.
35716         * modules/strnlen (Depends-on): Likewise.
35717
35718 2008-11-02  Bruno Haible  <bruno@clisp.org>
35719
35720         Mark 'atexit' obsolete.
35721         * modules/atexit (Status, Notice): New sections.
35722         * modules/chdir-long (Depends-on): Add atexit.
35723         * modules/wait-process (Depends-on): Likewise.
35724
35725 2008-11-02  Bruno Haible  <bruno@clisp.org>
35726
35727         * gnulib-tool: New option --with-obsolete.
35728         (func_usage): Document it.
35729         (func_modules_transitive_closure): Drop obsolete dependencies if
35730         incobsolete is not true.
35731         (func_import): Read and save the incobsolete variable to the cache.
35732
35733 2008-11-02  Bruno Haible  <bruno@clisp.org>
35734
35735         * modules/TEMPLATE-EXTENDED: New field 'Status'.
35736         * gnulib-tool: New option --extract-status.
35737         (func_usage): Document it.
35738         (sed_extract_prog): Recognize it.
35739         (func_get_status): New function.
35740
35741 2008-10-30  Simon Josefsson  <simon@josefsson.org>
35742
35743         * modules/sockets (License): Change from LGPL to LGPLv2+.
35744
35745 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35746
35747         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
35748
35749 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35750
35751         * MODULES.html.sh (Support for systems lacking POSIX:2001):
35752         Mention times and sys_times.
35753         * modules/sys_times, modules/sys_times-tests: New modules.
35754         * modules/times, modules/times-tests: Likewise
35755         * m4/sys_times_h.m4: New file.
35756         * lib/sys_times.in.h: Likewise
35757         * lib/times.c: Likewise.
35758         * tests/test-sys_times.c: Likewise.
35759         * tests/test-times.c: Likewise.
35760         * doc/posix-headers/sys_times.texi: Update.
35761         * doc/posix-functions/times.texi: Update.
35762
35763 2008-10-28  Jim Meyering  <meyering@redhat.com>
35764
35765         * modules/tempname (Depends-on): Add lstat.
35766
35767         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
35768
35769 2008-10-28  Simon Josefsson  <simon@josefsson.org>
35770
35771         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
35772         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
35773         using idiom used elsewhere in gnulib.
35774
35775 2008-10-27  Jim Meyering  <meyering@redhat.com>
35776
35777         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
35778
35779 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35780
35781         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
35782         TESTS_ENVIRONMENT, for shell scripts that needs to call built
35783         programs.
35784         * tests/test-argp-2.sh: Use $EXEEXT when needed.
35785
35786 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35787
35788         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
35789
35790 2008-10-27  Bruno Haible  <bruno@clisp.org>
35791
35792         * tests/test-lstat.c: Include <stdio.h>.
35793
35794 2008-10-27  Simon Josefsson  <simon@josefsson.org>
35795
35796         * modules/lstat-tests: New module.
35797         * tests/test-lstat.c: New file.
35798
35799 2008-10-26  Jim Meyering  <meyering@redhat.com>
35800
35801         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
35802
35803 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35804             Bruno Haible  <bruno@clisp.org>
35805
35806         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
35807         * modules/configmake (Include): Add a note that the include must come
35808         after all system headers.
35809         * lib/javaversion.c: Include configmake.h after all other includes.
35810
35811 2008-10-26  Bruno Haible  <bruno@clisp.org>
35812
35813         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
35814         HAVE_STRUCT_RANDOM_DATA to 1.
35815         (gl_STDLIB_H): Simplify.
35816
35817 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35818
35819         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
35820         substitute HAVE_STRUCT_RANDOM_DATA.
35821         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
35822         random_data.
35823         * modules/stdlib (Makefile.am): Substitute
35824         HAVE_STRUCT_RANDOM_DATA.
35825
35826 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35827
35828         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
35829         * doc/gnulib-intro.texi (Copyright): Likewise.
35830
35831 2008-10-26  Simon Josefsson  <simon@josefsson.org>
35832
35833         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
35834         findings.
35835
35836 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
35837             Bruno Haible  <bruno@clisp.org>
35838
35839         * lib/unistd.in.h: Include <winsock2.h>.
35840         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
35841         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
35842         Provide dummy declarations.
35843         (gethostname): Override.
35844         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
35845         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
35846         gl_PREREQ_SYS_H_WINSOCK2.
35847         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
35848         * doc/posix-functions/gethostname.texi: More details.
35849
35850 2008-10-25  Bruno Haible  <bruno@clisp.org>
35851
35852         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
35853         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
35854         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
35855
35856         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
35857         here ...
35858         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
35859         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
35860         gl_UNISTD_H_DEFAULTS.
35861
35862 2008-10-25  Eric Blake  <ebb9@byu.net>
35863
35864         signbit: avoid spurious compiler failure
35865         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
35866         declarations inside function.
35867
35868 2008-10-24  Simon Josefsson  <simon@josefsson.org>
35869             Bruno Haible  <bruno@clisp.org>
35870
35871         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
35872         * modules/random_r (Depends-on): Add stdint.
35873
35874 2008-10-24  Bruno Haible  <bruno@clisp.org>
35875
35876         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
35877         Eggert.
35878         * modules/strerror (License): Likewise.
35879
35880 2008-10-24  Jim Meyering  <meyering@redhat.com>
35881
35882         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
35883         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
35884
35885 2008-10-24  Eric Blake  <ebb9@byu.net>
35886
35887         getgroups: fix compilation when getgroups is available
35888         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
35889         but with <config.h> override of getgroups disabled.
35890
35891 2008-10-24  Simon Josefsson  <simon@josefsson.org>
35892
35893         * doc/gnulib.texi (Header files): Add note about C++ problems.
35894         Explained by Bruno Haible <bruno@clisp.org>.
35895
35896 2008-10-23  Bruno Haible  <bruno@clisp.org>
35897
35898         Define a dummy SA_NODEFER macro on Interix.
35899         * lib/signal.in.h (SA_NODEFER): Define fallback.
35900         Reported by Aleksey Cheusov <cheusov@tut.by> via
35901         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
35902
35903 2008-10-23  Bruno Haible  <bruno@clisp.org>
35904
35905         * modules/freadahead (License): Change to LGPLv2+.
35906         Suggested by Simon Josefsson.
35907
35908 2008-10-23  Jim Meyering  <meyering@redhat.com>
35909
35910         random_r: new module
35911         * modules/random_r: New file.
35912         * m4/random_r.m4: New file.
35913         * lib/random_r.c: New file, from glibc.
35914         * modules/random_r-tests: New file.
35915         * tests/test-random_r.c: New file.
35916         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
35917          Declare.
35918         (RAND_MAX): Define.
35919         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
35920         * modules/stdlib: Substitute them, too.
35921         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
35922         * doc/glibc-functions/initstate_r.texi: Mention the new module.
35923         * doc/glibc-functions/random_r.texi: Likewise.
35924         * doc/glibc-functions/setstate_r.texi: Likewise.
35925         * doc/glibc-functions/srandom_r.texi: Likewise.
35926         * config/srclist.txt: Mention it.
35927
35928 2008-10-23  David Lutterkort  <lutter@redhat.com>
35929
35930         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
35931         link requirement
35932
35933 2008-10-23  Jim Meyering  <meyering@redhat.com>
35934
35935         selinux-h: mark parameters of stub functions as intentionally unused
35936         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
35937         * lib/se-context.in.h: Likewise.
35938
35939 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35940
35941         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
35942
35943 2008-10-22  Simon Josefsson  <simon@josefsson.org>
35944
35945         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
35946
35947 2008-10-22  Eric Blake  <ebb9@byu.net>
35948
35949         glthread/thread: avoid compiler warning
35950         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
35951         Add unreachable abort to silence compiler.
35952
35953 2008-10-22  Eric Blake  <ebb9@byu.net>
35954
35955         netdb: also supply struct addrinfo for cygwin 1.5.x
35956         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
35957         older cygwin.
35958         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
35959         cygwin.
35960         * doc/posix-headers/netdb.texi (netdb.h): Document this.
35961
35962 2008-10-22  Bruno Haible  <bruno@clisp.org>
35963
35964         * users.txt: Update entry about pspp.
35965
35966 2008-10-21  Bruno Haible  <bruno@clisp.org>
35967
35968         Simplification.
35969         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
35970         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
35971
35972         Simplification.
35973         * lib/ioctl.c (ioctl): Don't undefine.
35974         * lib/socket.c (socket): Don't undefine.
35975
35976         Remove unused module indicator macros.
35977         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
35978         GNULIB_$1 as a C macro.
35979
35980         * doc/posix-functions/close.texi: Undo last change.
35981         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
35982         Windows platforms.
35983
35984 2008-10-21  Bruno Haible  <bruno@clisp.org>
35985
35986         Add gethostname() declaration to <unistd.h>.
35987         * lib/unistd.in.h (gethostname): New declaration.
35988         * lib/gethostname.c: Include <unistd.h>.
35989         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
35990         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
35991         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
35992         and HAVE_GETHOSTNAME.
35993         * modules/gethostname (Depends-on): Add unistd.
35994         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
35995         (Include): Specify <unistd.h>.
35996         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
35997         HAVE_GETHOSTNAME.
35998         * tests/test-gethostname.c: Include <unistd.h> first.
35999
36000 2008-10-21  Bruno Haible  <bruno@clisp.org>
36001
36002         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
36003         * modules/select-tests (Depends-on): Likewise.
36004         Reported by Simon Josefsson.
36005
36006 2008-10-21  Simon Josefsson  <simon@josefsson.org>
36007
36008         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
36009         * lib/accept.c: New file, based on winsock.c.
36010         * lib/bind.c: New file, based on winsock.c.
36011         * lib/connect.c: New file, based on winsock.c.
36012         * lib/getpeername.c: New file, based on winsock.c.
36013         * lib/getsockname.c: New file, based on winsock.c.
36014         * lib/getsockopt.c: New file, based on winsock.c.
36015         * lib/ioctl.c: New file, based on winsock.c.
36016         * lib/listen.c: New file, based on winsock.c.
36017         * lib/recv.c: New file, based on winsock.c.
36018         * lib/recvfrom.c: New file, based on winsock.c.
36019         * lib/send.c: New file, based on winsock.c.
36020         * lib/sendto.c: New file, based on winsock.c.
36021         * lib/setsockopt.c: New file, based on winsock.c.
36022         * lib/shutdown.c: New file, based on winsock.c.
36023         * lib/socket.c: New file, based on winsock.c.
36024         * lib/w32sock.h: New file, based on winsock.c.
36025         * lib/winsock.c: Remove file.
36026         * modules/accept: Likewise.
36027         * modules/bind: Likewise.
36028         * modules/connect: Likewise.
36029         * modules/getpeername: Likewise.
36030         * modules/getsockname: Likewise.
36031         * modules/getsockopt: Likewise.
36032         * modules/ioctl: Likewise.
36033         * modules/listen: Likewise.
36034         * modules/recv: Likewise.
36035         * modules/recvfrom: Likewise.
36036         * modules/send: Likewise.
36037         * modules/sendto: Likewise.
36038         * modules/setsockopt: Likewise.
36039         * modules/shutdown: Likewise.
36040         * modules/socket: Use socket.c instead of winsock.c.
36041         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
36042         * doc/posix-functions/accept.texi: Doc fix.
36043         * doc/posix-functions/bind.texi: Doc fix.
36044         * doc/posix-functions/close.texi: Doc fix.
36045         * doc/posix-functions/connect.texi: Doc fix.
36046         * doc/posix-functions/getpeername.texi: Doc fix.
36047         * doc/posix-functions/getsockname.texi: Doc fix.
36048         * doc/posix-functions/getsockopt.texi: Doc fix.
36049         * doc/posix-functions/ioctl.texi: Doc fix.
36050         * doc/posix-functions/listen.texi: Doc fix.
36051         * doc/posix-functions/recv.texi: Doc fix.
36052         * doc/posix-functions/recvfrom.texi: Doc fix.
36053         * doc/posix-functions/send.texi: Doc fix.
36054         * doc/posix-functions/sendto.texi: Doc fix.
36055         * doc/posix-functions/setsockopt.texi: Doc fix.
36056         * doc/posix-functions/shutdown.texi: Doc fix.
36057         * doc/posix-functions/socket.texi: Doc fix.
36058
36059 2008-10-20  Bruno Haible  <bruno@clisp.org>
36060
36061         Take into account the role of SIGABRT_COMPAT on Windows 2008.
36062         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
36063         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
36064         as an alias for SIGABRT.
36065         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
36066         (sigaction): Map it to SIGABRT.
36067         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
36068
36069 2008-10-20  Bruno Haible  <bruno@clisp.org>
36070
36071         * lib/fts.c: Don't include lstat.h.
36072         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
36073
36074         Move the lstat() declaration to <sys/stat.h>.
36075         * lib/lstat.h: Remove file.
36076         * lib/sys_stat.in.h: Add special invocation convention.
36077         (lstat): New declaration.
36078         * lib/lstat.c (orig_lstat): New function.
36079         (rpl_lstat): Use orig_lstat instead of lstat.
36080         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
36081         AC_C_INLINE. Set REPLACE_LSTAT.
36082         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
36083         and REPLACE_LSTAT.
36084         * modules/lstat (Files): Remove lib/lstat.h.
36085         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
36086         (Include): Specify <sys/stat.h> instead of lstat.h.
36087         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
36088         REPLACE_LSTAT.
36089         * NEWS: Mention the change.
36090
36091 2008-10-20  Bruno Haible  <bruno@clisp.org>
36092
36093         * modules/posix_spawn-tests: New file.
36094         * tests/test-posix_spawn3.c: New file.
36095
36096 2008-10-20  Bruno Haible  <bruno@clisp.org>
36097
36098         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
36099         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
36100         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
36101         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
36102         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
36103
36104 2008-10-20  Bruno Haible  <bruno@clisp.org>
36105
36106         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
36107         of posix_spawn on AIX 5.3.
36108
36109 2008-10-20  Bruno Haible  <bruno@clisp.org>
36110
36111         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
36112
36113 2008-10-20  Bruno Haible  <bruno@clisp.org>
36114
36115         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
36116         of AC_LANG_PROGRAM.
36117
36118 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36119
36120         * lib/netdb.in.h: Don't define GNU specific constants until they
36121         are supported or needed.  Reported by Bruno Haible
36122         <bruno@clisp.org>.
36123
36124 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36125
36126         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
36127
36128 2008-10-20  Simon Josefsson  <simon@josefsson.org>
36129
36130         * lib/getaddrinfo.h: Remove file.
36131         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
36132         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
36133         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
36134         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
36135         * modules/netdb: Substitute GNULIB_GETADDRINFO.
36136         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
36137         * tests/test-getaddrinfo.c: Likewise.
36138         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
36139         * NEWS: Mention change.
36140
36141 2008-10-19  Bruno Haible  <bruno@clisp.org>
36142
36143         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
36144
36145 2008-10-19  Bruno Haible  <bruno@clisp.org>
36146
36147         * lib/wait-process.c: Include simply <sys/wait.h>.
36148         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
36149         WIFSTOPPED): Remove fallback definitions.
36150         * modules/wait-process (Depends-on): Add sys_wait.
36151
36152         New module 'sys_wait'.
36153         * modules/sys_wait: New file.
36154         * lib/sys_wait.in.h: New file, partially copied from
36155         lib/wait-process.c.
36156         * m4/sys_wait_h.m4: New file.
36157         * doc/posix-headers/sys_wait.texi: Mention the new module.
36158
36159 2008-10-19  Bruno Haible  <bruno@clisp.org>
36160
36161         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
36162
36163 2008-10-19  Bruno Haible  <bruno@clisp.org>
36164
36165         Assume that waitpid() fills an 'int' status, not a 'union wait'.
36166         * lib/wait-process.c (WAIT_T): Remove type.
36167         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
36168         (wait_subprocess): Update.
36169
36170 2008-10-19  Bruno Haible  <bruno@clisp.org>
36171
36172         New module 'atoll'.
36173         * modules/atoll: New file.
36174         * lib/stdlib.in.h (atoll): New declaration.
36175         * lib/atoll.c: New file, from glibc with modifications.
36176         * m4/atoll.m4: New file.
36177         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
36178         HAVE_ATOLL.
36179         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
36180         * doc/posix-functions/atoll.texi: Mention the new module.
36181
36182 2008-10-19  Bruno Haible  <bruno@clisp.org>
36183
36184         Add strtoull() declaration to <stdlib.h>.
36185         * lib/stdlib.in.h (strtoull): New declaration.
36186         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
36187         Set HAVE_STRTOULL.
36188         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
36189         HAVE_STRTOULL.
36190         * modules/strtoull (Depends-on): Add stdlib.
36191         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36192         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
36193         HAVE_STRTOULL.
36194
36195 2008-10-19  Bruno Haible  <bruno@clisp.org>
36196
36197         Add strtoll() declaration to <stdlib.h>.
36198         * lib/stdlib.in.h (strtoll): New declaration.
36199         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
36200         Set HAVE_STRTOLL.
36201         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
36202         HAVE_STRTOLL.
36203         * modules/strtoll (Depends-on): Add stdlib.
36204         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36205         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
36206
36207 2008-10-19  Bruno Haible  <bruno@clisp.org>
36208
36209         * modules/bcopy (Depends-on): Add strings.
36210         (Include): Specify <strings.h>.
36211
36212 2008-10-19  Bruno Haible  <bruno@clisp.org>
36213
36214         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
36215
36216 2008-10-19  Bruno Haible  <bruno@clisp.org>
36217
36218         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
36219         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
36220         mingw.
36221
36222 2008-10-19  Bruno Haible  <bruno@clisp.org>
36223
36224         * lib/atanl.c: Don't include isnanl.h.
36225         * lib/cosl.c: Likewise.
36226         * lib/ldexpl.c: Likewise.
36227         * lib/logl.c: Likewise.
36228         * lib/sinl.c: Likewise.
36229         * lib/sqrtl.c: Likewise.
36230         * lib/tanl.c: Likewise.
36231
36232         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
36233         * lib/isnanf.h: Remove file.
36234         * lib/isnand.h: Remove file.
36235         * lib/isnanl.h: Remove file.
36236         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
36237         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
36238         macros.
36239         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
36240         HAVE_ISNANF, don't define it as a C macro.
36241         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
36242         HAVE_ISNAND, don't define it as a C macro.
36243         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
36244         HAVE_ISNANL, don't define it as a C macro.
36245         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
36246         HAVE_ISNAN[FDL].
36247         * modules/isnanf (Files): Remove lib/isnanf.h.
36248         (Depends-on): Add math.
36249         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36250         (Include): Specify <math.h> instead of isnanf.h.
36251         * modules/isnand (Files): Remove lib/isnand.h.
36252         (Depends-on): Add math.
36253         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36254         (Include): Specify <math.h> instead of isnand.h.
36255         * modules/isnanl (Files): Remove lib/isnanl.h.
36256         (Depends-on): Add math.
36257         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
36258         (Include): Specify <math.h> instead of isnanl.h.
36259         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
36260         HAVE_ISNAN[FDL].
36261         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
36262         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
36263         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
36264         * NEWS: Mention the change.
36265
36266 2008-10-18  Bruno Haible  <bruno@clisp.org>
36267
36268         Add getusershell(), setusershell(), endusershell() declarations to
36269         <unistd.h>.
36270         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
36271         declarations.
36272         * lib/getusershell.c: Include unistd.h.
36273         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
36274         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36275         HAVE_GETUSERSHELL.
36276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
36277         and HAVE_GETUSERSHELL.
36278         * modules/getusershell (Depends-on): Add unistd, extensions.
36279         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36280         (Include): Specify <unistd.h>.
36281         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
36282         HAVE_GETUSERSHELL.
36283
36284 2008-10-18  Bruno Haible  <bruno@clisp.org>
36285
36286         Add a getloadavg() declaration to <stdlib.h>.
36287         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
36288         getloadavg declaration.
36289         (getloadavg): New declaration.
36290         * lib/getloadavg.c: Include <stdlib.h> first.
36291         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
36292         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
36293         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
36294         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
36295         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36296         * modules/getloadavg (Depends-on): Add stdlib, extensions.
36297         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36298         (Include): Specify <stdlib.h>.
36299         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
36300         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
36301
36302 2008-10-18  Bruno Haible  <bruno@clisp.org>
36303
36304         * lib/dirchownmod.c: Don't include lchmod.h.
36305
36306         Move the lchmod() declaration to <sys/stat.h>.
36307         * lib/lchmod.h: Remove file.
36308         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
36309         (lchmod): New declaration, moved here from lib/lchown.h.
36310         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
36311         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
36312         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
36313         and HAVE_LCHMOD.
36314         * modules/lchmod (Files): Remove lib/lchmod.h.
36315         (Depends-on): Add sys_stat, extensions.
36316         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
36317         (Include): Specify <sys/stat.h> instead of lchmod.h.
36318         * modules/sys_stat (Depends-on): Add link-warning.
36319         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
36320         definition of GL_LINK_WARNING.
36321         * NEWS: Mention the change.
36322
36323 2008-10-18  Bruno Haible  <bruno@clisp.org>
36324
36325         * lib/fchdir.c: Don't include dirfd.h.
36326         * lib/fts.c: Likewise.
36327         * lib/getcwd.c: Likewise.
36328         * lib/glob.c: Likewise.
36329
36330         Move the dirfd() declaration to <dirent.h>.
36331         * lib/dirfd.h: Remove file.
36332         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
36333         (dirfd): New declaration.
36334         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
36335         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
36336         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
36337         HAVE_DECL_DIRFD.
36338         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
36339         HAVE_DECL_DIRFD.
36340         * modules/dirfd (Files): Remove lib/dirfd.h.
36341         (Depends-on): Add dirent, extensions.
36342         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
36343         (Include): Specify <dirent.h> instead of dirfd.h.
36344         * modules/dirent (Depends-on): Add link-warning.
36345         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
36346         definition of GL_LINK_WARNING.
36347         * NEWS: Mention the change.
36348
36349 2008-10-18  Bruno Haible  <bruno@clisp.org>
36350
36351         Move the euidaccess() declaration to <unistd.h>.
36352         * lib/euidaccess.h: Remove file.
36353         * lib/unistd.in.h (euidaccess): New declaration.
36354         * lib/euidaccess.c: Don't include euidaccess.h.
36355         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
36356         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
36357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
36358         and HAVE_EUIDACCESS.
36359         * modules/euidaccess (Files): Remove lib/euidaccess.h.
36360         (Depends-on): Add unistd.
36361         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36362         (Include): Specify <unistd.h> instead of euidaccess.h.
36363         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
36364         HAVE_EUIDACCESS.
36365         * NEWS: Mention the change.
36366
36367 2008-10-18  Bruno Haible  <bruno@clisp.org>
36368
36369         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
36370
36371         Move the getdomainname() declaration to <unistd.h>.
36372         * lib/getdomainname.h: Remove file.
36373         * lib/unistd.in.h (getdomainname): New declaration.
36374         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
36375         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
36376         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
36377         HAVE_GETDOMAINNAME.
36378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36379         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
36380         * modules/getdomainname (Files): Remove lib/getdomainname.h.
36381         (Depends-on): Add unistd, extensions.
36382         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36383         (Includes): Specify <unistd.h> instead of getdomainname.h.
36384         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
36385         HAVE_GETDOMAINNAME.
36386         * NEWS: Mention the change.
36387
36388 2008-10-18  Bruno Haible  <bruno@clisp.org>
36389
36390         * modules/dirent: New file.
36391         * m4/dirent_h.m4: New file.
36392         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
36393         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
36394         * modules/fchdir (Files): Remove lib/dirent.in.h.
36395         (Depends-on): Add dirent.
36396         (Makefile.am): Move rules to modules/dirent.
36397         * doc/posix-headers/dirent.texi: Mention the new module.
36398
36399 2008-10-18  Bruno Haible  <bruno@clisp.org>
36400
36401         Avoid -Wunused-parameter warnings in public gnulib header files.
36402         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
36403         macro.
36404         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
36405
36406 2008-10-18  Bruno Haible  <bruno@clisp.org>
36407
36408         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
36409         * doc/glibc-functions/error.texi: Mention the module 'error'.
36410         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
36411         * doc/glibc-functions/getdomainname.texi: Mention the module
36412         'getdomainname'.
36413         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
36414         * doc/glibc-functions/getpagesize.texi: Mention the module
36415         'getpagesize'.
36416         * doc/glibc-functions/getusershell.texi: Mention the module
36417         'getusershell'.
36418         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
36419         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
36420         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
36421         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
36422         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
36423         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
36424         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
36425         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
36426         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
36427         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
36428         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
36429         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
36430         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
36431         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
36432
36433 2008-10-17  Bruno Haible  <bruno@clisp.org>
36434
36435         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
36436         HP-UX and IRIX, use -0.0L.
36437         * tests/test-ceill.c (minus_zero): Likewise.
36438         * tests/test-floorl.c (minus_zero): Likewise.
36439         * tests/test-frexpl.c (minus_zero): Likewise.
36440         * tests/test-isnan.c (minus_zerol): Likewise.
36441         * tests/test-isnanl.h (minus_zero): Likewise.
36442         * tests/test-ldexpl.c (minus_zero): Likewise.
36443         * tests/test-roundl.c (minus_zero): Likewise.
36444         * tests/test-signbit.c (minus_zerol): Likewise.
36445         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
36446         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
36447         * tests/test-truncl.c (minus_zero): Likewise.
36448         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
36449         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
36450         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
36451         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
36452
36453 2008-10-17  Bruno Haible  <bruno@clisp.org>
36454
36455         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
36456         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
36457         that it gets activated only for gcc >= 3.0.
36458         * lib/dirent.in.h: Likewise.
36459         * lib/errno.in.h: Likewise.
36460         * lib/fcntl.in.h: Likewise.
36461         * lib/float.in.h: Likewise.
36462         * lib/iconv.in.h: Likewise.
36463         * lib/inttypes.in.h: Likewise.
36464         * lib/locale.in.h: Likewise.
36465         * lib/math.in.h: Likewise.
36466         * lib/netdb.in.h: Likewise.
36467         * lib/netinet_in.in.h: Likewise.
36468         * lib/search.in.h: Likewise.
36469         * lib/signal.in.h: Likewise.
36470         * lib/spawn.in.h: Likewise.
36471         * lib/stdarg.in.h: Likewise.
36472         * lib/stdint.in.h: Likewise.
36473         * lib/stdio.in.h: Likewise.
36474         * lib/stdlib.in.h: Likewise.
36475         * lib/string.in.h: Likewise.
36476         * lib/strings.in.h: Likewise.
36477         * lib/sys_file.in.h: Likewise.
36478         * lib/sys_ioctl.in.h: Likewise.
36479         * lib/sys_select.in.h: Likewise.
36480         * lib/sys_socket.in.h: Likewise.
36481         * lib/sys_stat.in.h: Likewise.
36482         * lib/sys_time.in.h: Likewise.
36483         * lib/sysexits.in.h: Likewise.
36484         * lib/time.in.h: Likewise.
36485         * lib/unistd.in.h: Likewise.
36486         * lib/wchar.in.h: Likewise.
36487         * lib/wctype.in.h: Likewise.
36488         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36489
36490 2008-10-17  Jim Meyering  <meyering@redhat.com>
36491
36492         ignore-value: don't depend on inline module
36493         * modules/ignore-value (Depends-on): Remove 'inline'.
36494         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
36495         Suggestion from Bruno Haible.
36496
36497 2008-10-17  Bruno Haible  <bruno@clisp.org>
36498
36499         New implementation of condition variables for Win32.
36500         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
36501         (gl_linked_waitqueue_t): New type.
36502         (gl_cond_t): Use it.
36503         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
36504         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
36505         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
36506         (glthread_cond_init_func, glthread_cond_wait_func,
36507         glthread_cond_timedwait_func, glthread_cond_signal_func,
36508         glthread_cond_broadcast_func, glthread_cond_destroy_func):
36509         Reimplemented on the basis of gl_linked_waitqueue_t.
36510         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
36511         gl_waitqueue_t.
36512         (gl_rwlock_t): Update.
36513         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
36514
36515 2008-10-17  Simon Josefsson  <simon@josefsson.org>
36516
36517         * modules/recvfrom (Depends-on): Add dependency on getpeername.
36518         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36519
36520 2008-10-17  Jim Meyering  <meyering@redhat.com>
36521
36522         ignore-value: new module
36523         * modules/ignore-value: New file.
36524         * lib/ignore-value.h: New file.
36525         * MODULES.html.sh (Compiler warning management): New section,
36526         just for this module.  More to come.
36527
36528 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36529
36530         open-safer.c: avoid 'signed and unsigned in conditional...' warning
36531         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
36532         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
36533
36534 2008-10-16  Jim Meyering  <meyering@redhat.com>
36535
36536         openat-die.c: avoid 'no previous prototype' warning
36537         * lib/openat-die.c: Include "openat.h".
36538         Reported by Reuben Thomas <rrt@sc3d.org>.
36539
36540 2008-10-16  Simon Josefsson  <simon@josefsson.org>
36541
36542         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
36543         * lib/netdb.in.h: Fix typo.
36544         Reported by Bruno Haible  <bruno@clisp.org>
36545
36546         * lib/netdb.in.h: Include sys/socket.h for platforms without
36547         netdb.h, to get structures like hostent on MinGW.
36548         * modules/netdb (Depends-on): Add sys_socket.
36549
36550 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36551
36552         * modules/netdb, modules/netdb-tests: New file.
36553         * m4/netdb_h.m4: New file.
36554         * lib/netdb.in.h: Add, currently just an empty file pending
36555         definitions.
36556         * tests/test-netdb.c: New file.
36557         * doc/posix-headers/netdb.texi: Mention that we replace it if
36558         needed.
36559         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36560         netdb.
36561
36562 2008-10-15  Simon Josefsson  <simon@josefsson.org>
36563
36564         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
36565         with code.
36566
36567 2008-10-13  Bruno Haible  <bruno@clisp.org>
36568
36569         * lib/glthread/cond.c (glthread_cond_wait_func,
36570         glthread_cond_timedwait_func): Add a comment.
36571
36572 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36573
36574         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
36575         * tests/test-select.c: Likewise,
36576
36577 2008-10-13  Bruno Haible  <bruno@clisp.org>
36578
36579         * lib/glthread/cond.c (glthread_cond_wait_func,
36580         glthread_cond_timedwait_func): Fix variable name.
36581         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
36582
36583 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
36584
36585         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
36586         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
36587         struct sockaddr.sa_len.
36588         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
36589
36590 2008-10-13  Simon Josefsson  <simon@josefsson.org>
36591
36592         * build-aux/pmccabe2html: Add css and css_url parameters.
36593
36594 2008-10-12  Bruno Haible  <bruno@clisp.org>
36595
36596         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
36597         calling aclx_get.
36598         Reported by Rainer Tammer <tammer@tammer.net>.
36599
36600 2008-10-12  Bruno Haible  <bruno@clisp.org>
36601
36602         Use msvcrt aware primitives for creation/termination of Win32 threads.
36603         * lib/glthread/thread.c: Include <process.h>.
36604         (glthread_create_func): Use _beginthreadex instead of CreateThread.
36605         (wrapper_func): Update signature.
36606         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
36607
36608 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
36609             Bruno Haible  <bruno@clisp.org>
36610
36611         Provide a Win32 implementation of the 'cond' module.
36612         * lib/glthread/cond.h [USE_WIN32]: New implementation.
36613         * lib/glthread/cond.c (glthread_cond_init_func,
36614         glthread_cond_wait_func, glthread_cond_timedwait_func,
36615         glthread_cond_signal_func, glthread_cond_broadcast_func,
36616         glthread_cond_destroy_func) [USE_WIN32]: New functions.
36617         * modules/cond (Dependencies): Add gettimeofday.
36618
36619 2008-10-11  Bruno Haible  <bruno@clisp.org>
36620
36621         Make sleep work on older versions of mingw.
36622         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
36623         only whether it exists.
36624         * doc/posix-functions/sleep.texi: Mention the problem with older
36625         versions of mingw.
36626
36627 2008-10-11  Bruno Haible  <bruno@clisp.org>
36628
36629         New module 'shutdown'.
36630         * modules/shutdown: New file.
36631         * lib/sys_socket.in.h (shutdown): New declaration.
36632         * lib/winsock.c (shutdown): New function.
36633         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
36634         GNULIB_SHUTDOWN.
36635         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
36636         * doc/posix-functions/shutdown.texi: Document the new module.
36637
36638 2008-10-11  Jim Meyering  <meyering@redhat.com>
36639
36640         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
36641
36642 2008-10-11  Bruno Haible  <bruno@clisp.org>
36643
36644         New module 'fclose'.
36645         * modules/fclose: New file.
36646         * lib/stdio.in.h (fclose): New declaration.
36647         * lib/fclose.c: New file.
36648         * m4/fclose.m4: New file.
36649         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
36650         REPLACE_FCLOSE.
36651         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
36652         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
36653         REPLACE_FCLOSE.
36654         * modules/close (Depends-on): fclose.
36655         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
36656
36657 2008-10-11  Bruno Haible  <bruno@clisp.org>
36658
36659         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
36660         set errno and don't call _close.
36661
36662 2008-10-10  Bruno Haible  <bruno@clisp.org>
36663
36664         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
36665         ACL, not afterwards. Fixes test failure on Cygwin.
36666
36667 2008-10-09  Ben Pfaff  <blp@gnu.org>
36668
36669         * build-aux/announce-gen: Fix gnulib version related part of usage
36670         message.  Die with a useful error message if no tarballs are
36671         found.
36672
36673 2008-10-10  Jim Meyering  <meyering@redhat.com>
36674
36675         bootstrap: use git's --depth=N option only if it's supported
36676         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
36677         recognize the --depth option.  Reported by Pádraig Brady.
36678
36679 2008-10-09  Bruno Haible  <bruno@clisp.org>
36680
36681         New module 'ioctl'.
36682         * modules/ioctl: New file.
36683         * lib/sys_socket.in.h (ioctl): Remove declaration.
36684         * lib/winsock.c: Include <sys/ioctl.h>.
36685         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
36686         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
36687         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
36688         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
36689         * doc/posix-functions/ioctl.texi: Mention the new module.
36690
36691 2008-10-09  Bruno Haible  <bruno@clisp.org>
36692
36693         New module 'sys_ioctl'.
36694         * lib/sys_ioctl.in.h: New file.
36695         * m4/sys_ioctl_h.m4: New file.
36696         * modules/sys_ioctl: New file.
36697         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
36698
36699 2008-10-09  Bruno Haible  <bruno@clisp.org>
36700
36701         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
36702         * lib/winsock.c: Include <stdarg.h>.
36703         (rpl_ioctl): Change to second argument 'int' and then varargs.
36704
36705 2008-10-09  Bruno Haible  <bruno@clisp.org>
36706
36707         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
36708         when the sys_socket module is present and the system has <winsock2.h>.
36709
36710 2008-10-09  Bruno Haible  <bruno@clisp.org>
36711
36712         * doc/posix-functions/close.texi: Mention module 'close' instead of
36713         module 'sys_socket'.
36714
36715 2008-10-09  Bruno Haible  <bruno@clisp.org>
36716
36717         * doc/glibc-headers/sys_ioctl.texi: New file.
36718         * doc/gnulib.texi: Include it.
36719
36720 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36721             Bruno Haible  <bruno@clisp.org>
36722
36723         Combine the two replacements of 'close'.
36724         * lib/sys_socket.in.h (close): Define to a reminder to include
36725         <unistd.h>.
36726         (_gl_close_fd_maybe_socket): New declaration.
36727         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
36728         * lib/winsock.c (close): Remove undefinition.
36729         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
36730         needed for the gnulib module 'close'.
36731         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
36732         define to an error symbol or to a warning, if suitable.
36733         * lib/close.c: Include <sys/socket.h>.
36734         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
36735         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
36736         UNISTD_H_HAVE_WINSOCK2_H.
36737         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
36738         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
36739         UNISTD_H_HAVE_WINSOCK2_H.
36740         * modules/sys_socket (Files): Add m4/unistd_h.m4.
36741         (configure.ac): Set a module indicator.
36742         (Makefile.am): Substitute GNULIB_CLOSE.
36743         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
36744         * modules/poll-tests (Depends-on): Add close.
36745         * modules/select-tests (Depends-on): Likewise.
36746
36747 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36748             Bruno Haible  <bruno@clisp.org>
36749
36750         New module 'close'.
36751         * modules/close: New file.
36752         * lib/unistd.in.h (close): Move declaration out of the
36753         FCHDIR_REPLACEMENT scope.
36754         (_gl_unregister_fd): New declaration.
36755         * lib/close.c: New file.
36756         * lib/fchdir.c (rpl_close): Remove function.
36757         * m4/close.m4: New file.
36758         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
36759         close.
36760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
36761         REPLACE_CLOSE.
36762         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
36763         REPLACE_CLOSE.
36764         * modules/fchdir (Depends-on): Add close.
36765
36766 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36767             Bruno Haible  <bruno@clisp.org>
36768
36769         * lib/fcntl.in.h (open): Simplify conditionals.
36770         (_gl_register_fd): New declaration.
36771         * lib/fchdir.c (rpl_open): Remove function.
36772         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
36773         also.
36774         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
36775         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
36776         open.
36777
36778 2008-10-09  Jim Meyering  <meyering@redhat.com>
36779
36780         GNUmakefile: use the more name-space-friendly "_version"
36781         * top/GNUmakefile (_dummy): Update.
36782         (_version): Rename from "version".
36783
36784 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36785             Bruno Haible  <bruno@clisp.org>
36786
36787         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
36788         rpl_close.
36789         (_gl_register_fd): New function, extracted from rpl_open.
36790         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
36791         (rpl_open, rpl_opendir): Use _gl_register_fd.
36792
36793 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
36794
36795         Fix organization of 'open' replacement.
36796         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
36797         (gl_FUNC_OPEN): Use it.
36798         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
36799
36800 2008-10-08  Bruno Haible  <bruno@clisp.org>
36801
36802         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
36803
36804 2008-10-08  Simon Josefsson  <simon@josefsson.org>
36805
36806         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
36807         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
36808         listen).
36809
36810 2008-10-08  Eric Blake  <ebb9@byu.net>
36811
36812         GNUmakefile: add 'make version' target
36813         * top/GNUmakefile (_curr-ver): Split version update rules...
36814         (version): ...into a target.
36815
36816 2008-10-07  Bruno Haible  <bruno@clisp.org>
36817
36818         Use a more portable replacement expression for -0.0L.
36819         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
36820         instead of -0.0L. Fix m4 quotation.
36821
36822         * tests/test-signbit.c: Include <float.h>.
36823         (minus_zero): New variable.
36824         (test_signbitl): Use minus_zero instead of -zero.
36825         * modules/signbit-tests (Depends-on): Add float.
36826
36827         * tests/test-ceill.c: Include <float.h>.
36828         (zero): Remove variable.
36829         (minus_zero): New variable.
36830         (main): Use minus_zero instead of -zero.
36831         * modules/ceill-tests (Depends-on): Add float.
36832
36833         * tests/test-floorl.c: Include <float.h>.
36834         (zero): Remove variable.
36835         (minus_zero): New variable.
36836         (main): Use minus_zero instead of -zero.
36837         * modules/floorl-tests (Depends-on): Add float.
36838
36839         * tests/test-roundl.c: Include <float.h>.
36840         (zero): Remove variable.
36841         (minus_zero): New variable.
36842         (main): Use minus_zero instead of -zero.
36843         * modules/roundl-tests (Depends-on): Add float.
36844
36845         * tests/test-truncl.c: Include <float.h>.
36846         (zero): Remove variable.
36847         (minus_zero): New variable.
36848         (main): Use minus_zero instead of -zero.
36849         * modules/truncl-tests (Depends-on): Add float.
36850
36851         * tests/test-frexpl.c (zero): Remove variable.
36852         (minus_zero): New variable.
36853         (main): Use minus_zero instead of -zero.
36854         * modules/frexpl-tests (Depends-on): Add float.
36855
36856         * tests/test-isnan.c (zerol): Remove variable.
36857         (minus_zerol): New variable.
36858         (test_long_double): Use minus_zerol instead of -zerol.
36859         * modules/isnan-tests (Depends-on): Add float.
36860
36861         * tests/test-isnanl.h (zero): Remove variable.
36862         (minus_zero): New variable.
36863         (main): Use minus_zero instead of -zero.
36864         * modules/isnanl-nolibm-tests (Depends-on): Add float.
36865         * modules/isnanl-tests (Depends-on): Add float.
36866
36867         * tests/test-ldexpl.c (zero): Remove variable.
36868         (minus_zero): New variable.
36869         (main): Use minus_zero instead of -zero.
36870         * modules/ldexpl-tests (Depends-on): Add float.
36871
36872         * tests/test-snprintf-posix.h (zerol): Remove variable.
36873         (minus_zerol): New variable.
36874         (test_function): Use minus_zerol instead of -zerol.
36875         * modules/snprintf-posix-tests (Depends-on): Add float.
36876         * modules/vsnprintf-posix-tests (Depends-on): Add float.
36877
36878         * tests/test-sprintf-posix.h (zerol): Remove variable.
36879         (minus_zerol): New variable.
36880         (test_function): Use minus_zerol instead of -zerol.
36881         * modules/sprintf-posix-tests (Depends-on): Add float.
36882         * modules/vsprintf-posix-tests (Depends-on): Add float.
36883
36884         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
36885         (minus_zerol): New variable.
36886         (test_function): Use minus_zerol instead of -zerol.
36887         * modules/vasnprintf-posix-tests (Depends-on): Add float.
36888
36889         * tests/test-vasprintf-posix.c (zerol): Remove variable.
36890         (minus_zerol): New variable.
36891         (test_function): Use minus_zerol instead of -zerol.
36892         * modules/vasprintf-posix-tests (Depends-on): Add float.
36893
36894 2008-10-07  Simon Josefsson  <simon@josefsson.org>
36895
36896         * MODULES.html.sh (Support for building documentation): Mention
36897         pmccabe2html.  Sort entries.
36898
36899         Add pmccabe2html module, from gnupdf.
36900         * build-aux/pmccabe.css: New file.
36901         * build-aux/pmccabe2html: New file.
36902         * m4/pmccabe2html.m4: New file.
36903         * modules/pmccabe2html: New file.
36904
36905 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
36906
36907         flock: new module
36908         * MODULES.html.sh: Add to list of modules.
36909         * lib/flock.c: flock implementation for Windows and Unix systems
36910         which have fcntl.
36911         * doc/glibc-functions/flock.texi: Update documentation.
36912         * lib/sys_file.in.h: <sys/file.h> header file.
36913         * m4/flock.m4: M4 macros.
36914         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
36915         * modules/flock: flock module.
36916         * modules/flock-tests: flock tests module.
36917         * modules/sys_file: sys/file.h module.
36918         * tests/test-flock.c: test suite for flock.
36919
36920 2008-10-06  Jim Meyering  <meyering@redhat.com>
36921
36922         bootstrap: check for LT_INIT more portably still ;-)
36923         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
36924         Spotted by Bruno Haible.
36925
36926 2008-10-06  Eric Blake  <ebb9@byu.net>
36927
36928         test-signbit: avoid tripping Irix cc bug on -0.0L
36929         * tests/test-signbit.c (minus_zerol): Delete, and replace with
36930         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
36931         entire testsuite consistent and avoids an Irix 6.2 bug.
36932
36933 2008-10-05  Bruno Haible  <bruno@clisp.org>
36934             Jim Meyering  <jim@meyering.net>
36935
36936         Add an option for ignoring EPIPE during close_stdout.
36937         * lib/closeout.h: Include <stdbool.h>.
36938         (close_stdout_set_ignore_EPIPE): New declaration.
36939         * lib/closeout.c: Include <stdbool.h>.
36940         (ignore_EPIPE): New variable.
36941         (close_stdout_set_ignore_EPIPE): New function.
36942         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
36943         * lib/close-stream.c (close_stream): Mention the possible EPIPE
36944         failure.
36945         * modules/closeout (Depends-on): Add stdbool.
36946
36947 2008-10-05  Bruno Haible  <bruno@clisp.org>
36948
36949         * modules/accept: New file.
36950         * modules/bind: New file.
36951         * modules/connect: New file.
36952         * modules/getpeername: New file.
36953         * modules/getsockname: New file.
36954         * modules/getsockopt: New file.
36955         * modules/listen: New file.
36956         * modules/recv: New file.
36957         * modules/recvfrom: New file.
36958         * modules/send: New file.
36959         * modules/sendto: New file.
36960         * modules/setsockopt: New file.
36961         * modules/socket: New file.
36962         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
36963         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36964         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
36965         the particular module is requested. Add a link warning when the
36966         particular module is not requested.
36967         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
36968         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
36969         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
36970         the particular module is requested.
36971         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
36972         gl_SYS_SOCKET_H_DEFAULTS): New macros.
36973         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
36974         * modules/sys_socket (Depends-on): Add link-warning.
36975         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
36976         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
36977         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
36978         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
36979         GL_LINK_WARNING.
36980         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
36981         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
36982         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
36983         * doc/posix-functions/getpeername.texi: Mention the new module
36984         'getpeername'.
36985         * doc/posix-functions/getsockname.texi: Mention the new module
36986         'getsockname'.
36987         * doc/posix-functions/getsockopt.texi: Mention the new module
36988         'getsockopt'.
36989         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
36990         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
36991         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
36992         * doc/posix-functions/send.texi: Mention the new module 'send'.
36993         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
36994         * doc/posix-functions/setsockopt.texi: Mention the new module
36995         'setsockopt'.
36996         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
36997         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
36998         listen, connect, accept.
36999         * modules/select-tests (Depends-on): Likewise.
37000
37001 2008-10-05  Bruno Haible  <bruno@clisp.org>
37002
37003         * lib/winsock.c (strerror): Remove unused #undef.
37004         (rpl_close): Remove unused local variable.
37005
37006         * modules/sys_socket (Depends-on); Add errno.
37007
37008 2008-10-05  Bruno Haible  <bruno@clisp.org>
37009
37010         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
37011         (select): Add a link warning when the 'select' module is not used.
37012         * modules/sys_select (Depends-on): Add link-warning.
37013         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
37014         Suggested by Paolo Bonzini.
37015
37016 2008-10-05  Jim Meyering  <meyering@redhat.com>
37017
37018         bootstrap: check for LT_INIT more portably
37019         * build-aux/bootstrap: Avoid using grep -E, since it's not
37020         portable enough.  Suggestion from Bruno Haible.
37021
37022 2008-10-05  Bruno Haible  <bruno@clisp.org>
37023
37024         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
37025         as being fixed by gnulib.
37026
37027 2008-10-05  Bruno Haible  <bruno@clisp.org>
37028
37029         * modules/select-tests: New file, mostly copied from
37030         modules/sys_select-tests.
37031         * tests/test-select.c: New file, mostly copied from
37032         tests/test-sys_select.c.
37033         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
37034         * modules/sys_select-tests (Depends-on): Remove all dependencies.
37035         (Makefile.am): Remove test_sys_select_LDADD.
37036
37037         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
37038         to an undefined symbol, for an error message.
37039         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
37040         (gl_SYS_SELECT_H_DEFAULTS): New macro.
37041         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
37042         winsock-select.c here.
37043         * modules/sys_select (Files): Remove lib/winsock-select.c.
37044         (Depends-on): Remove alloca.
37045         (Makefile.am): Substitute GNULIB_SELECT.
37046         * modules/select: New file.
37047         * doc/posix-functions/select.texi: Update.
37048
37049 2008-10-05  Bruno Haible  <bruno@clisp.org>
37050
37051         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
37052         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
37053         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
37054         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
37055         getdtablesize.
37056         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
37057         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
37058
37059 2008-10-05  Bruno Haible  <bruno@clisp.org>
37060
37061         * modules/getdtablesize-tests: New file.
37062         * tests/test-getdtablesize.c: New file.
37063
37064         New module 'getdtablesize'.
37065         * lib/unistd.in.h (getdtablesize): New declaration.
37066         * lib/getdtablesize.c: New file.
37067         * m4/getdtablesize.m4: New file.
37068         * modules/getdtablesize: New file.
37069         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37070         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
37071         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
37072         HAVE_GETDTABLESIZE.
37073         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
37074
37075 2008-10-05  Bruno Haible  <bruno@clisp.org>
37076
37077         * modules/sched (Makefile.am): Fix typo.
37078         Reported by Simon Josefsson.
37079
37080 2008-10-05  Jim Meyering  <meyering@redhat.com>
37081
37082         bootstrap: check for LT_INIT, too
37083         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
37084         are deprecated.  Suggestion from Ralf Wildenhues.
37085
37086 2008-10-05  Bruno Haible  <bruno@clisp.org>
37087
37088         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
37089         overriding them by ours.
37090         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
37091
37092 2008-10-05  Jim Meyering  <meyering@redhat.com>
37093
37094         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
37095         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
37096         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
37097
37098 2008-10-04  Bruno Haible  <bruno@clisp.org>
37099
37100         * modules/dup2 (License): Change to LGPLv2+.
37101         * modules/sleep (License): Likewise.
37102         * modules/perror (License): Likewise.
37103         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
37104         Blake.
37105         * modules/signal (License): Likewise.
37106         * modules/sigprocmask (License): Likewise.
37107         * modules/raise (License): Change to LGPLv2+, with approval by Jim
37108         Meyering.
37109
37110 2008-10-04  Bruno Haible  <bruno@clisp.org>
37111
37112         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
37113         Reported by Rainer Tammer <tammer@tammer.net>.
37114
37115 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
37116             Bruno Haible  <bruno@clisp.org>
37117
37118         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
37119         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
37120         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
37121
37122 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
37123
37124         filevercmp: new module
37125         * lib/filevercmp.h: New function filevercmp comparing version strings.
37126         * lib/filevercmp.c: Implementation of filevercmp function.
37127         * modules/filevercmp: Module metadata.
37128         * tests/test-filevercmp.c: Unit test for new module.
37129         * modules/filevercmp-tests: Unit test metadata.
37130         * MODULES.html.sh: Add filevercmp module.
37131
37132 2008-10-03  Bruno Haible  <bruno@clisp.org>
37133
37134         * lib/c-ctype.h: Add comment.
37135         Reported by Jim Meyering.
37136
37137 2008-10-02  Bruno Haible  <bruno@clisp.org>
37138
37139         * modules/posix_spawn-internal (Depends-on): Add 'open'.
37140
37141 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37142
37143         * build-aux/bootstrap: Allow renaming bootstrap, and change the
37144         name of bootstrap.conf accordingly.
37145
37146 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37147
37148         * build-aux/bootstrap: Install git-merge-changelog configuration
37149         items into .gitconfig if needed.
37150
37151 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
37152
37153         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
37154         git repository, and initialize/update it accordingly.
37155
37156 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
37157
37158         * modules/fsync-tests: New file.
37159         * tests/test-fsync.c: New file.
37160
37161         New module 'fsync'.
37162         * lib/fsync.c: New file.
37163         * m4/fsync.m4: New file.
37164         * modules/fsync: New file.
37165         * lib/unistd.in.h (fsync): New declaration.
37166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
37167         GNULIB_FSYNC and HAVE_FSYNC.
37168         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
37169         * MODULES.html.sh (posix_functions): Add fsync.
37170         * doc/posix-functions/fsync.texi: Mention the new module.
37171
37172 2008-10-02  Jim Meyering  <meyering@redhat.com>
37173
37174         fts.c: sync with similar code from coreutils' remove.c
37175         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
37176         Guard also with "#if defined __linux__", since for now at least,
37177         this code is Linux-kernel-specific.
37178
37179 2008-10-02  Jim Meyering  <meyering@redhat.com>
37180
37181         fts: bug fixes
37182         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
37183         Include <sys/vfs.h>, not <sys/statfs.h>.
37184
37185         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
37186         Include <sys/vfs.h>, not <sys/statfs.h>.
37187
37188 2008-10-01  Bruno Haible  <bruno@clisp.org>
37189
37190         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
37191         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
37192         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
37193         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
37194         * doc/posix-functions/posix_spawnp.texi: Likewise.
37195         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
37196         whether posix_spawn actually works.
37197         * m4/pipe.m4 (gl_PIPE): Likewise.
37198         * modules/execute (Files): Add m4/posix_spawn.m4.
37199         * modules/pipe (Files): Add m4/posix_spawn.m4.
37200         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
37201
37202 2008-10-01  Jim Meyering  <meyering@redhat.com>
37203
37204         remove trailing spaces
37205         * NEWS: Likewise.
37206         * lib/poll.c (poll): Likewise.
37207         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
37208         * lib/winsock.c (rpl_close): Likewise.
37209         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
37210         * modules/yield: Likewise.
37211         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
37212         * tests/test-sys_select.c (connect_to_socket): Likewise.
37213
37214         fts.c: adjust a new interface to be more generally useful
37215         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
37216         (fts_build): Adjust caller.
37217
37218 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37219
37220         * modules/cond-tests: New file.
37221         * tests/test-cond.c: New file.
37222
37223 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37224             Bruno Haible  <bruno@clisp.org>
37225
37226         * modules/cond (Dependencies): Add errno, time.
37227         * lib/glthread/cond.h: Include <time.h>.
37228         (gl_cond_define, gl_cond_define_initialized): Use the same definition
37229         across platforms.
37230
37231 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37232             Bruno Haible  <bruno@clisp.org>
37233
37234         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
37235
37236 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37237             Bruno Haible  <bruno@clisp.org>
37238
37239         * modules/tls-tests (Depends-on): Add thread, yield.
37240         (configure.ac): Remove all checks.
37241         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
37242         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37243         gl_thread_self): Remove definitions. Include glthread/thread.h and
37244         glthread/yield.h instead.
37245         (test_tls): Pass an additional NULL argument to gl_thread_join.
37246
37247 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37248             Bruno Haible  <bruno@clisp.org>
37249
37250         * modules/lock-tests (Depends-on): Add thread, yield.
37251         (configure.ac): Remove all checks.
37252         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
37253         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
37254         gl_thread_self): Remove definitions. Include glthread/thread.h and
37255         glthread/yield.h instead.
37256         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
37257         additional NULL argument to gl_thread_join.
37258
37259 2008-09-30  Bruno Haible  <bruno@clisp.org>
37260
37261         Fix the Win32 implementation of the 'thread' module.
37262         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
37263         pointer type.
37264         (gl_thread_self): Invoke gl_thread_self_func.
37265         (gl_thread_self_func): New declaration.
37266         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
37267         (do_init_self_key, init_self_key): New functions.
37268         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
37269         Remove some fields.
37270         (running_threads, running_lock): Remove variables.
37271         (get_current_thread_handle): New function.
37272         (gl_thread_self_func, wrapper_func, glthread_create_func,
37273         glthread_join_func, gl_thread_exit_func): Largely rewritten and
37274         simplified.
37275
37276 2008-09-30  Bruno Haible  <bruno@clisp.org>
37277
37278         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
37279         files.
37280
37281 2008-09-30  Jim Meyering  <meyering@redhat.com>
37282
37283         fts.m4: correct the test for statfs.f_type
37284         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
37285         when checking for statfs.f_type.
37286
37287 2008-09-15  Simon Josefsson  <simon@josefsson.org>
37288
37289         tests: avoid some compiler warnings
37290         * tests/test-memchr.c (main): Pass NULL indirectly.
37291         * tests/test-getdate.c (main): Remove unused variable 'ret'.
37292
37293 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
37294
37295         getdate.y: disallow countable dayshifts like "4 yesterday ago"
37296         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
37297         exactly specified dayshifts.
37298         (dayshift): New rule.
37299         (rel): Add dayshift.
37300         (relative_time_table) [tomorrow, yesterday, today, now]:
37301         Use tDAY_SHIFT in place of tDAY_UNIT.
37302         * tests/test-getdate.c: Add tests for now-disallowed countable
37303         dayshifts, e.g., "4 yesterday ago".
37304
37305 2008-09-29  Bruno Haible  <bruno@clisp.org>
37306
37307         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
37308         * tests/test-posix_spawn1.in.sh: Renamed from
37309         tests/test-posix_spawn.in.sh.
37310         * tests/test-posix_spawn2.c: New file.
37311         * tests/test-posix_spawn2.in.sh: New file.
37312         * modules/posix_spawnp-tests (Files): Update.
37313         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
37314
37315 2008-09-29  Bruno Haible  <bruno@clisp.org>
37316
37317         Propagate effects of putenv/setenv/unsetenv to child processes.
37318         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
37319         * lib/pipe.c (create_pipe): Likewise.
37320
37321 2008-09-29  Bruno Haible  <bruno@clisp.org>
37322
37323         Enable use of shell scripts as executables in mingw.
37324         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
37325         run the program as a shell script.
37326         * lib/pipe.c (create_pipe): Likewise.
37327         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
37328         resulting array.
37329
37330 2008-09-29  Eric Blake  <ebb9@byu.net>
37331
37332         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
37333
37334 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
37335
37336         * doc/posix-functions/accept.texi: Update mingw problems.
37337         * doc/posix-functions/bind.texi: Update mingw problems.
37338         * doc/posix-functions/close.texi: Update mingw problems.
37339         * doc/posix-functions/connect.texi: Update mingw problems.
37340         * doc/posix-functions/getpeername.texi: Update mingw problems.
37341         * doc/posix-functions/getsockname.texi: Update mingw problems.
37342         * doc/posix-functions/getsockopt.texi: Update mingw problems.
37343         * doc/posix-functions/ioctl.texi: Update mingw problems.
37344         * doc/posix-functions/listen.texi: Update mingw problems.
37345         * doc/posix-functions/recv.texi: Update mingw problems.
37346         * doc/posix-functions/recvfrom.texi: Update mingw problems.
37347         * doc/posix-functions/select.texi: Update mingw problems.
37348         * doc/posix-functions/send.texi: Update mingw problems.
37349         * doc/posix-functions/sendto.texi: Update mingw problems.
37350         * doc/posix-functions/setsockopt.texi: Update mingw problems.
37351         * doc/posix-functions/socket.texi: Update mingw problems.
37352
37353 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
37354             Bruno Haible  <bruno@clisp.org>
37355
37356         * lib/sys_select.in.h: Include sys/time.h.
37357         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
37358         * modules/sys_select: Depend on sys_time.
37359         * tests/test-sys_select.c: Test that sys/select.h defines struct
37360         timeval fully.
37361
37362 2008-09-29  Bruno Haible  <bruno@clisp.org>
37363
37364         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
37365         * lib/sys_select.in.h: Likewise.
37366
37367 2008-09-29  Bruno Haible  <bruno@clisp.org>
37368
37369         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
37370
37371 2008-09-29  Bruno Haible  <bruno@clisp.org>
37372
37373         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
37374         Set LIBSOCKET instead of augmenting LIBS.
37375         * modules/sockets (Link): New section.
37376         * modules/sockets-tests (test_sockets_LDADD): New variable.
37377         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
37378         * modules/poll-tests (test_poll_LDADD): New variable.
37379         * NEWS: Document the change.
37380
37381 2008-09-29  Bruno Haible  <bruno@clisp.org>
37382
37383         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
37384         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
37385         ARPA_INET_H directly.
37386         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37387
37388 2008-09-28  Bruno Haible  <bruno@clisp.org>
37389
37390         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
37391         from gl_HEADER_SYS_SOCKET.
37392         (gl_HEADER_SYS_SOCKET): Invoke it.
37393         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37394
37395 2008-09-28  Bruno Haible  <bruno@clisp.org>
37396
37397         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
37398         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
37399         Needed on OSF/1 4.0.
37400
37401 2008-09-28  Bruno Haible  <bruno@clisp.org>
37402
37403         Override open more carefully.
37404         * lib/open.c (orig_open): New function.
37405         (rpl_open): Use orig_open instead of open.
37406         * lib/fcntl.in.h: Add special invocation convention.
37407         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
37408         (gl_FUNC_OPEN): Invoke it.
37409
37410         Override freopen more carefully.
37411         * lib/freopen.c (orig_freopen): New function.
37412         (rpl_freopen): Use orig_freopen instead of freopen.
37413         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
37414         (gl_FUNC_FREOPEN): Invoke it.
37415
37416         Override fopen more carefully.
37417         * lib/fopen.c (orig_fopen): New function.
37418         (rpl_fopen): Use orig_fopen instead of fopen.
37419         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
37420         (gl_FUNC_FOPEN): Invoke it.
37421         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
37422
37423 2008-09-28  Bruno Haible  <bruno@clisp.org>
37424
37425         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
37426         SIGPIPE.
37427
37428 2008-09-28  Bruno Haible  <bruno@clisp.org>
37429
37430         * tests/test-sigaction.c (handler, main): Disable the check whether
37431         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
37432         glibc systems with LinuxThreads.
37433
37434 2008-09-28  Bruno Haible  <bruno@clisp.org>
37435
37436         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
37437
37438         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
37439         with AIX xlc.
37440         * lib/fcntl.in.h (open): Likewise.
37441         Reported by Rainer Tammer <tammer@tammer.net>.
37442
37443 2008-09-28  Bruno Haible  <bruno@clisp.org>
37444
37445         * modules/posix_spawnp-tests: New file.
37446         * tests/test-posix_spawn.c: New file.
37447         * tests/test-posix_spawn.in.sh: New file.
37448
37449         New module 'posix_spawnp'.
37450         * modules/posix_spawnp: New file.
37451         * lib/spawnp.c: New file, from GNU libc with modifications.
37452         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
37453
37454         New module 'posix_spawn'.
37455         * modules/posix_spawn: New file.
37456         * lib/spawn.c: New file, from GNU libc with modifications.
37457         * doc/posix-functions/posix_spawn.texi: Mention the new module.
37458
37459         New module 'posix_spawnattr_destroy'.
37460         * modules/posix_spawnattr_destroy: New file.
37461         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
37462         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
37463         module.
37464
37465         New module 'posix_spawnattr_setsigmask'.
37466         * modules/posix_spawnattr_setsigmask: New file.
37467         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
37468         modifications.
37469         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
37470         new module.
37471
37472         New module 'posix_spawnattr_getsigmask'.
37473         * modules/posix_spawnattr_getsigmask: New file.
37474         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
37475         modifications.
37476         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
37477         new module.
37478
37479         New module 'posix_spawnattr_setsigdefault'.
37480         * modules/posix_spawnattr_setsigdefault: New file.
37481         * lib/spawnattr_setdefault.c: New file, from GNU libc with
37482         modifications.
37483         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
37484         new module.
37485
37486         New module 'posix_spawnattr_getsigdefault'.
37487         * modules/posix_spawnattr_getsigdefault: New file.
37488         * lib/spawnattr_getdefault.c: New file, from GNU libc with
37489         modifications.
37490         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
37491         new module.
37492
37493         New module 'posix_spawnattr_setschedpolicy'.
37494         * modules/posix_spawnattr_setschedpolicy: New file.
37495         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
37496         modifications.
37497         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
37498         new module.
37499
37500         New module 'posix_spawnattr_getschedpolicy'.
37501         * modules/posix_spawnattr_getschedpolicy: New file.
37502         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
37503         modifications.
37504         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
37505         new module.
37506
37507         New module 'posix_spawnattr_setschedparam'.
37508         * modules/posix_spawnattr_setschedparam: New file.
37509         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
37510         modifications.
37511         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
37512         new module.
37513
37514         New module 'posix_spawnattr_getschedparam'.
37515         * modules/posix_spawnattr_getschedparam: New file.
37516         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
37517         modifications.
37518         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
37519         new module.
37520
37521         New module 'posix_spawnattr_setpgroup'.
37522         * modules/posix_spawnattr_setpgroup: New file.
37523         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
37524         modifications.
37525         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
37526         module.
37527
37528         New module 'posix_spawnattr_getpgroup'.
37529         * modules/posix_spawnattr_getpgroup: New file.
37530         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
37531         modifications.
37532         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
37533         module.
37534
37535         New module 'posix_spawnattr_setflags'.
37536         * modules/posix_spawnattr_setflags: New file.
37537         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
37538         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
37539         module.
37540
37541         New module 'posix_spawnattr_getflags'.
37542         * modules/posix_spawnattr_getflags: New file.
37543         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
37544         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
37545         module.
37546
37547         New module 'posix_spawnattr_init'.
37548         * modules/posix_spawnattr_init: New file.
37549         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
37550         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
37551         module.
37552
37553         New module 'posix_spawn_file_actions_destroy'.
37554         * modules/posix_spawn_file_actions_destroy: New file.
37555         * lib/spawn_faction_destroy.c: New file, from GNU libc with
37556         modifications.
37557         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
37558         the new module.
37559
37560         New module 'posix_spawn_file_actions_addopen'.
37561         * modules/posix_spawn_file_actions_addopen: New file.
37562         * lib/spawn_faction_addopen.c: New file, from GNU libc with
37563         modifications.
37564         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
37565         the new module.
37566
37567         New module 'posix_spawn_file_actions_adddup2'.
37568         * modules/posix_spawn_file_actions_adddup2: New file.
37569         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
37570         modifications.
37571         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
37572         the new module.
37573
37574         New module 'posix_spawn_file_actions_addclose'.
37575         * modules/posix_spawn_file_actions_addclose: New file.
37576         * lib/spawn_faction_addclose.c: New file, from GNU libc with
37577         modifications.
37578         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
37579         the new module.
37580
37581         New module 'posix_spawn_file_actions_init'.
37582         * modules/posix_spawn_file_actions_init: New file.
37583         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
37584         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
37585         new module.
37586
37587         New module 'posix_spawn-internal'.
37588         * modules/posix_spawn-internal: New file.
37589         * lib/spawn_int.h: New file, from GNU libc with modifications.
37590         * lib/spawni.c: New file, from GNU libc with modifications.
37591         * m4/posix_spawn.m4: New file.
37592
37593         New module 'spawn'.
37594         * modules/spawn: New file.
37595         * lib/spawn.in.h: New file, from GNU libc with modifications.
37596         * m4/spawn_h.m4: New file.
37597         * doc/posix-headers/spawn.texi: Mention the new module.
37598
37599 2008-09-28  Bruno Haible  <bruno@clisp.org>
37600
37601         * modules/sched-tests: New file.
37602         * tests/test-sched.c: New file.
37603
37604         New module 'sched'.
37605         * modules/sched: New file.
37606         * lib/sched.in.h: New file.
37607         * m4/sched_h.m4: New file.
37608         * doc/posix-headers/sched.texi: Mention the new module.
37609
37610 2008-09-27  Eric Blake  <ebb9@byu.net>
37611
37612         Fix previous patch, and tweak references to $0.
37613         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
37614         (func_version, func_gnulib_dir): Don't call this program
37615         gnulib-tool.
37616         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
37617         with using $0 in function.
37618         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
37619         (func_fatal_error): Reuse the name the user invoked us with.
37620
37621 2008-09-27  Bruno Haible  <bruno@clisp.org>
37622
37623         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
37624         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
37625         (gl_ICONV_H): Not here.
37626         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
37627         instead of assigning ICONV_H directly.
37628
37629         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
37630         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
37631         WCHAR_H directly.
37632
37633 2008-09-27  Bruno Haible  <bruno@clisp.org>
37634
37635         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
37636         * modules/arpa_inet (Depends-on): Add link-warning.
37637         (Makefile.am): Insert the definition of GL_LINK-WARNING.
37638         * modules/unistd (Makefile.am): Likewise.
37639
37640 2008-09-26  Bruno Haible  <bruno@clisp.org>
37641
37642         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
37643         variables.
37644         (func_version): Essentially copied from gnulib-tool.
37645         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
37646         func_readlink): Copied from gnulib-tool.
37647
37648 2008-09-26  Bruno Haible  <bruno@clisp.org>
37649
37650         * gnulib-tool (func_version): Change directory to $gnulib_dir before
37651         invoking git-version-gen.
37652
37653 2008-09-26  Bruno Haible  <bruno@clisp.org>
37654
37655         * posix-modules: Update to directory names changed on 2008-01-19.
37656         Remove commas in output before splitting into words. No more need to
37657         avoid 'ftruncate' since 2007-02-19.
37658
37659 2008-09-26  Bruno Haible  <bruno@clisp.org>
37660
37661         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
37662
37663 2008-09-26  Bruno Haible  <bruno@clisp.org>
37664
37665         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
37666         * modules/fwriteerror (Depends-on): Add errno.
37667
37668 2008-09-26  Bruno Haible  <bruno@clisp.org>
37669
37670         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
37671         * tests/test-vc-list-files-cvs.sh: Likewise.
37672
37673 2008-09-26  Bruno Haible  <bruno@clisp.org>
37674
37675         * doc/posix-headers/sys_resource.texi: Reorder items.
37676
37677 2008-09-26  Jim Meyering  <meyering@redhat.com>
37678
37679         fts: tweak inode comparison function
37680         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
37681         inode numbers, as documented.
37682
37683         fts: sort dirent entries on inode number before traversing
37684         This avoids a quadratic, seek-related performance penalty when
37685         operating on a directory containing many entries (measurable at 10k;
37686         3.5 hours at 2 million entries with a cold cache) on certain types
37687         of file systems, including ext3 and ext4, but not tmpfs.
37688         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
37689         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
37690         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
37691         (fs_handles_readdir_ordered_dirents_efficiently): New function.
37692         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
37693         (fts_build): Set the stat.st_ino member from D_INO.
37694         If it is likely to be useful, sort dirent entries on inode number.
37695
37696         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
37697         and the struct statfs.f_type member.
37698         * modules/fts (Depends-on): Add d-ino.
37699
37700 2008-09-26  Bruno Haible  <bruno@clisp.org>
37701
37702         * modules/sigpipe-die (Depends-on): Add sigpipe.
37703
37704         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
37705         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
37706         and GNULIB_STDIO_H_SIGPIPE are set.
37707         * lib/stdio-write.c: New file.
37708         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
37709         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37710         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37711         REPLACE_STDIO_WRITE_FUNCS.
37712         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
37713         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37714         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37715         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37716         * modules/stdio (Files): Add lib/stdio-write.c.
37717         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
37718         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
37719         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
37720         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
37721         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
37722         REPLACE_FPRINTF_POSIX.
37723         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
37724         REPLACE_PRINTF_POSIX.
37725         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
37726         REPLACE_VFPRINTF_POSIX.
37727         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
37728         REPLACE_VPRINTF_POSIX.
37729         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
37730         SIGPIPE issue.
37731         * doc/posix-functions/fputc.texi: Likewise.
37732         * doc/posix-functions/fputs.texi: Likewise.
37733         * doc/posix-functions/fwrite.texi: Likewise.
37734         * doc/posix-functions/printf.texi: Likewise.
37735         * doc/posix-functions/putc.texi: Likewise.
37736         * doc/posix-functions/putchar.texi: Likewise.
37737         * doc/posix-functions/puts.texi: Likewise.
37738         * doc/posix-functions/vfprintf.texi: Likewise.
37739         * doc/posix-functions/vprintf.texi: Likewise.
37740
37741         * modules/safe-write (Depends-on): Add write.
37742
37743         * modules/sigpipe-tests: New file.
37744         * tests/test-sigpipe.c: New file.
37745         * tests/test-sigpipe.sh: New file.
37746
37747         * modules/write: New file.
37748         * lib/unistd.in.h: Include <sys/types.h>.
37749         (write): New declaration.
37750         * lib/write.c: New file.
37751         * m4/write.m4: New file.
37752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
37753         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
37754         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
37755         GNULIB_WRITE, REPLACE_WRITE.
37756         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
37757         and the SIGPIPE issue.
37758
37759         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
37760         (raise): New declaration.
37761         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
37762         (ext_signal): New function.
37763         (rpl_raise): New function.
37764         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
37765         GNULIB_SIGNAL_H_SIGPIPE.
37766         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
37767         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
37768
37769         * modules/sigpipe: New file.
37770         * m4/sigpipe.m4: New file.
37771
37772 2008-09-25  Derek Price  <derek@ximbiot.com>
37773             Bruno Haible  <bruno@clisp.org>
37774
37775         * gnulib-tool (func_import): Report all license incompatibilities, not
37776         just the first one.
37777
37778 2008-09-25  Bruno Haible  <bruno@clisp.org>
37779
37780         * gnulib-tool (func_import): When computing the edits, consider not
37781         only the Makefile.ams that exist but also those that will be generated.
37782
37783 2008-09-25  Simon Josefsson  <simon@josefsson.org>
37784
37785         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
37786         fixes gnulib-tool --test warning about duplicate dependency.
37787
37788 2008-09-25  Bruno Haible  <bruno@clisp.org>
37789
37790         * gnulib-tool: Don't ask the user to perform edits in the generated
37791         Makefile.ams.
37792         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
37793         apply to the Makefile.am being generated.
37794         (func_emit_tests_Makefile_am): Execute edits that apply to the
37795         Makefile.am being generated.
37796         (func_import): Setup list of Makefile.am edits before emitting the
37797         Makefile.ams, not at the end.
37798         (func_create_testdir): Update.
37799         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
37800
37801 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37802
37803         * gnulib-tool (func_import): Store the --tests-base option in the
37804         comment in gnulib-cache.m4.
37805
37806 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
37807
37808         * NEWS: Document increased portability that sys_select now provides.
37809
37810         * lib/sys_select.in.h: Install select wrapper.
37811         * lib/sys_socket.in.h: Use more descriptive name when there is no
37812         select wrapper.
37813         * lib/winsock-select.c: New.
37814         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
37815         Require gl_HEADER_SYS_SOCKET.
37816         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
37817         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
37818         * tests/test-sys_select.c: Add functional tests.
37819
37820 2008-09-24  Eric Blake  <ebb9@byu.net>
37821
37822         open, fopen: close fd leak in last patch
37823         * lib/open.c (rpl_open): Close fd before returning error.
37824         * lib/fopen.c (rpl_fopen): Close fd before returning error.
37825         * doc/posix-functions/open.texi (open): Document that Irix also
37826         has the bug.
37827         * doc/posix-functions/fopen.texi (fopen): Likewise.
37828         Reported by Paolo Bonzini.
37829
37830 2008-09-24  Bruno Haible  <bruno@clisp.org>
37831
37832         Ensure that a filename ending in a slash cannot be used to access a
37833         non-directory.
37834         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
37835         to check whether it's really a directory.
37836         * lib/fopen.c: Include fcntl.h, unistd.h.
37837         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
37838         and fdopen().
37839         * modules/fopen (Depends-on): Add unistd.
37840         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
37841         * tests/test-fopen.c (main): Likewise.
37842         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
37843         * doc/posix-functions/fopen.texi: Likewise.
37844         Reported by Eric Blake.
37845
37846 2008-09-23  Eric Blake  <ebb9@byu.net>
37847
37848         c-stack: avoid compiler optimizations when provoking overflow
37849         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
37850         recursion harder to optimize, to ensure a stack overflow occurs.
37851         * tests/test-c-stack.c (recurse): Likewise.
37852         Borrowed from libsigsegv.
37853
37854         c-stack: work around Irix sigaltstack bug
37855         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
37856         whether sigaltstack uses wrong end of stack_t (copied in part from
37857         libsigsegv).
37858         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
37859         Irix bug, without requiring an over-allocation.
37860         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
37861         bug.
37862
37863         fopen: document mingw bug on directories
37864         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
37865         not allowing a stream visiting a directory, even though reading
37866         from such a stream is not portable.
37867
37868 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37869
37870         * lib/poll.c: Rewrite.
37871         * modules/poll: Depend on alloca.
37872
37873 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37874
37875         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
37876         instead define prototypes for a full set of wrappers.  Ensure
37877         that Cygwin does not use the compatibility code, which is only
37878         for MinGW.
37879         * lib/winsock.c: New.
37880         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
37881         * modules/sys_socket: Add lib/winsock.c.
37882
37883         * modules/poll-tests: Add errno and perror.
37884         * tests/test-poll.c: Use ioctl, not ioctlsocket.
37885
37886 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
37887
37888         * tests/test-poll.c: Downgrade minimum needed Winsock version.
37889
37890 2008-09-23  Bruno Haible  <bruno@clisp.org>
37891
37892         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
37893         * doc/glibc-functions/*: Likewise.
37894
37895 2008-09-23  Simon Josefsson  <simon@josefsson.org>
37896
37897         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
37898         success.
37899
37900 2008-09-22  Eric Blake  <ebb9@byu.net>
37901             Bruno Haible  <bruno@clisp.org>
37902
37903         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
37904         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
37905         supply %A but mishandle pseudo-NaN.
37906         Reported by Simon Josefsson.
37907
37908 2008-09-21  Bruno Haible  <bruno@clisp.org>
37909
37910         * tests/test-lock.c (main): Tweak skip message.
37911         * tests/test-tls.c (main): Likewise.
37912
37913 2008-09-21  Bruno Haible  <bruno@clisp.org>
37914
37915         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
37916         whether 'struct sigaction' has sa_sigaction here...
37917         (gl_PREREQ_SIG_HANDLER_H): ... not here.
37918         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
37919
37920 2008-09-21  Bruno Haible  <bruno@clisp.org>
37921
37922         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
37923         section.
37924         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
37925         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
37926         the new section.
37927         (Support for obsolete systems lacking POSIX:2001): New section.
37928         (String handling <string.h>): Move strdup to the new section.
37929         Suggested by Simon Josefsson and Paolo Bonzini.
37930
37931 2008-09-21  Bruno Haible  <bruno@clisp.org>
37932
37933         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
37934         exponents in %e and %g results on 'long double'. Needed for mingw's
37935         improved *printf functions.
37936         * tests/test-vasprintf-posix.c (test_function): Likewise.
37937         * tests/test-snprintf-posix.h (test_function): Likewise.
37938         * tests/test-sprintf-posix.h (test_function): Likewise.
37939         Reported by Eric Blake.
37940
37941 2008-09-21  Bruno Haible  <bruno@clisp.org>
37942
37943         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
37944         * tests/test-sprintf-posix.h (test_function): Likewise.
37945
37946 2008-09-21  Bruno Haible  <bruno@clisp.org>
37947
37948         * modules/getpass (Depends-on): Add strdup-posix.
37949
37950         New module 'strdup-posix'.
37951         * modules/strdup-posix: New file.
37952         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
37953         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
37954         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37955         REPLACE_STRDUP.
37956         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
37957         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
37958         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37959         strdup-posix.
37960
37961         * modules/strdup (Depends-on): Remove malloc-posix.
37962
37963 2008-09-20  Bruno Haible  <bruno@clisp.org>
37964
37965         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
37966         Wildenhues.
37967
37968 2008-09-20  Bruno Haible  <bruno@clisp.org>
37969
37970         Ensure that wint_t gets defined on IRIX 5.3.
37971         * lib/wchar.in.h (wint_t): Define if not defined by the system.
37972         * lib/wctype.in.h (wint_t): Likewise.
37973         (__wctype_wint_t): Remove type.
37974         (isw*): Use wint_t instead of __wctype_wint_t.
37975         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
37976         * modules/wchar (Files): Add m4/wint_t.m4.
37977         (Makefile.am): Substitute HAVE_WINT_T.
37978         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
37979         * tests/test-wctype.c: Check that wint_t is defined.
37980         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
37981         * doc/posix-headers/wctype.texi: Likewise.
37982         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37983
37984 2008-09-18  Bruno Haible  <bruno@clisp.org>
37985
37986         * gnulib-tool (func_exit): Update comment.
37987
37988 2008-09-18  Simon Josefsson  <simon@josefsson.org>
37989
37990         * modules/getaddrinfo (Depends-on): Remove strdup, this module
37991         assumes strdup exists and does not depend on strdup to return
37992         ENOMEM on out of memory conditions.
37993
37994 2008-09-18  Bruno Haible  <bruno@clisp.org>
37995
37996         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
37997         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
37998         digits for the exponent.
37999
38000 2008-09-18  Jim Meyering  <meyering@redhat.com>
38001             Bruno Haible  <bruno@clisp.org>
38002
38003         * lib/vasnprintf.c (decimal_point_char): Define also if
38004         NEED_PRINTF_INFINITE_LONG_DOUBLE.
38005
38006 2008-09-16  Bruno Haible  <bruno@clisp.org>
38007         and Eric Blake  <ebb9@byu.net>
38008
38009         vasnprintf: support Irix 5.3
38010         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
38011         that mishandle long double infinity.
38012         Reported by Tom G. Christensen.
38013
38014 2008-09-16  Bruno Haible  <bruno@clisp.org>
38015
38016         * doc/glibc-functions/scandir.texi: Mention the function is missing on
38017         Solaris 9.
38018         * doc/glibc-functions/alphasort.texi: Likewise.
38019         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
38020
38021 2008-09-16  Jim Meyering  <meyering@redhat.com>
38022
38023         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
38024         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
38025         a umask modification leak out of a subshell.  Otherwise, the
38026         opensolaris /bin/sh would be accepted and thus cause unwarranted
38027         failures in the coreutils test suite.
38028
38029 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
38030
38031         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
38032         to succeed.
38033
38034 2008-09-16  Jim Meyering  <meyering@redhat.com>
38035
38036         avoid spurious test failure when library is built without ACL support
38037         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
38038         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
38039         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
38040         * tests/test-copy-acl.sh: Likewise.
38041
38042 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38043
38044         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
38045         based on character occurrence counts.
38046
38047 2008-09-15  Eric Blake  <ebb9@byu.net>
38048
38049         tests: avoid some compiler warnings
38050         * tests/test-memchr.c (main): Pass NULL indirectly.
38051         * tests/test-closein.c (main): Avoid unused variable.
38052
38053 2008-09-15  Bruno Haible  <bruno@clisp.org>
38054
38055         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
38056         are missing on OpenBSD 4.0 individually.
38057         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
38058
38059 2008-09-15  Bruno Haible  <bruno@clisp.org>
38060
38061         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
38062         * doc/posix-functions/strerror.texi: Mention also Cygwin.
38063         * doc/posix-functions/perror.texi: Likewise.
38064         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
38065         is missing.
38066         Reported by Eric Blake.
38067
38068         * lib/errno.in.h: Use replacement values >= 2000.
38069         Reported by Eric Blake.
38070
38071 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38072
38073         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
38074         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
38075         limit.
38076         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
38077         compareseq was aborted.
38078
38079 2008-09-14  Bruno Haible  <bruno@clisp.org>
38080
38081         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
38082         yvec_edit_count.
38083         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
38084         (fstrcmp_bounded): Simplify result computation accordingly.
38085
38086 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38087
38088         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
38089         (fstrcmp): Define in terms of fstrcmp_bounded.
38090         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
38091         lower_bound argument.
38092         Return quickly if the result is certainly < lower_bound.
38093         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
38094
38095 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38096
38097         * lib/diffseq.h (EARLY_ABORT): New macro.
38098         (compareseq): Change return type to bool. Return true when EARLY_ABORT
38099         evaluates to true.
38100
38101 2008-09-14  Bruno Haible  <bruno@clisp.org>
38102
38103         * modules/perror-tests: New file.
38104         * tests/test-perror.sh: New file.
38105         * tests/test-perror.c: New file.
38106
38107         New module 'perror'.
38108         * lib/stdio.in.h (perror): New declaration.
38109         * lib/perror.c: New file.
38110         * m4/perror.m4: New file.
38111         * modules/perror: New file.
38112         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
38113         * doc/posix-functions/perror.texi: Mention the perror module.
38114         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
38115         REPLACE_PERROR.
38116         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
38117         REPLACE_PERROR.
38118
38119 2008-09-14  Bruno Haible  <bruno@clisp.org>
38120
38121         * modules/stdio (Makefile.am): Reorder to match the order in
38122         lib/stdio.in.h.
38123         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
38124
38125 2008-09-13  Bruno Haible  <bruno@clisp.org>
38126
38127         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
38128
38129 2008-09-13  Bruno Haible  <bruno@clisp.org>
38130
38131         Extend strerror to cover the added errno values.
38132         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
38133         (rpl_strerror): Provide error messages for the added errno values and
38134         for the WSA* values.
38135         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
38136         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
38137         strerror.
38138         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
38139         * modules/strerror (Depends-on): Add errno.
38140         * doc/posix-functions/strerror.texi: Document the change.
38141         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
38142         and EOVERFLOW.
38143
38144 2008-09-13  Bruno Haible  <bruno@clisp.org>
38145
38146         * modules/EOVERFLOW: Remove file.
38147         * m4/eoverflow.m4: Remove file.
38148         * modules/EOVERFLOW-tests: Remove file.
38149         * tests/test-EOVERFLOW.c: Remove file.
38150         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
38151         * modules/ftell (Depends-on): Likewise.
38152         * modules/getdelim (Depends-on): Likewise.
38153         * modules/getugroups (Depends-on): Likewise.
38154         * modules/poll (Depends-on): Likewise.
38155         * modules/snprintf (Depends-on): Likewise.
38156         * modules/sprintf-posix (Depends-on): Likewise.
38157         * modules/vasnprintf (Depends-on): Likewise.
38158         * modules/vasprintf (Depends-on): Likewise.
38159         * modules/vfprintf-posix (Depends-on): Likewise.
38160         * modules/vsnprintf (Depends-on): Likewise.
38161         * modules/vsprintf-posix (Depends-on): Likewise.
38162         * modules/xvasprintf (Depends-on): Likewise.
38163         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38164         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
38165         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
38166         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
38167         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38168         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
38169         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
38170         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
38171         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38172         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
38173         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
38174         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
38175         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38176         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
38177         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
38178         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
38179         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38180         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
38181         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
38182         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
38183         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38184         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
38185         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
38186         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
38187         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
38188         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38189         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
38190         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
38191         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
38192         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
38193         * MODULES.html.sh: Remove EOVERFLOW.
38194         * NEWS: Mention the change.
38195
38196 2008-09-13  Bruno Haible  <bruno@clisp.org>
38197
38198         * modules/errno-tests: New file.
38199         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
38200
38201         * lib/errno.in.h: New file.
38202         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
38203         * modules/errno: New file.
38204         * doc/posix-headers/errno.texi: Update documentation.
38205         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
38206
38207 2008-09-13  Bruno Haible  <bruno@clisp.org>
38208
38209         * tests/test-poll.c: Use #if for native Windows, rather than testing
38210         __MSVCRT__.
38211
38212 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38213             Bruno Haible  <bruno@clisp.org>
38214
38215         * lib/glob.c: Don't include <pwd.h> on native Windows.
38216         (WINDOWS32): New macro.
38217         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
38218
38219 2008-09-13  Bruno Haible  <bruno@clisp.org>
38220
38221         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
38222         (ETIMEDOUT): Remove macro.
38223         (glthread_cond_timedwait_multithreaded): New declaration.
38224         (glthread_cond_timedwait): Use it.
38225         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
38226         (glthread_cond_timedwait_multithreaded): New function.
38227
38228 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38229
38230         * modules/poll-tests: Do not check for io.h.
38231         * tests/test-poll.c: Check for __MSVCRT__ instead.
38232
38233 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38234
38235         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
38236         * modules/poll-tests: Add inet_pton, stdbool, sockets.
38237         * tests/test-poll.c: Use them.  Use _pipe on Windows.
38238
38239 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
38240
38241         * modules/poll-tests: New.
38242         * tests/test-poll.c: New.
38243
38244 2008-09-12  Eric Blake  <ebb9@byu.net>
38245
38246         frexp: test for NetBSD failure on -0.0
38247         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
38248         not all, bugs from NetBSD 3.0 have been fixed.
38249         * doc/posix-functions/frexp.texi (frexp): Document bug.
38250         Reported by Thomas Klausner.
38251
38252         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
38253         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
38254         literal -0.0.
38255         Reported by Jonathan C. Patschke <jp@centtech.com>.
38256
38257 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38258
38259         * lib/glthread/cond.h: Use dummy implementation also if
38260         USE_WIN32_THREADS.
38261
38262 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38263
38264         * modules/fnmatch-posix (License): Change to LGPLv2+.
38265         * modules/fnmatch-gnu (License): Likewise.
38266
38267 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38268
38269         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
38270
38271 2008-09-11  Jim Meyering  <meyering@redhat.com>
38272
38273         * users.txt: Add gtk-vnc.
38274
38275 2008-09-08  Simon Josefsson  <simon@josefsson.org>
38276
38277         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
38278         rotate amounts.
38279
38280         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
38281         required for 16-bit and 8-bit rotates.
38282         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
38283         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
38284         UINT8_MAX instead of hard-coded constants.
38285         Suggested by Paul Eggert.
38286
38287 2008-09-07  Bruno Haible  <bruno@clisp.org>
38288
38289         * tests/test-striconveh.c (main): Check behaviour when converting from
38290         UTF-7.
38291
38292         Make striconveh work better with stateful encodings.
38293         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
38294         that iconv does not increment the inptr when returning -1/EINVAL.
38295
38296 2008-09-07  Bruno Haible  <bruno@clisp.org>
38297
38298         * build-aux/config.rpath: Update according to libtool-2.2.6.
38299         * build-aux/config.libpath: Likewise.
38300
38301 2008-09-06  Bruno Haible  <bruno@clisp.org>
38302
38303         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
38304         * lib/freadptr.c (freadptr): Likewise.
38305         * lib/freadseek.c (freadptrinc): Likewise.
38306         Reported by Simon Josefsson.
38307
38308 2008-09-06  Bruno Haible  <bruno@clisp.org>
38309
38310         * modules/freadptr (License): Change to LGPLv2+.
38311         * modules/freadseek (License): Likewise.
38312         Suggested by Eric Blake.
38313
38314         * modules/memchr2 (License): Change to LGPLv2+.
38315         Approved by Eric Blake.
38316
38317 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38318             Bruno Haible  <bruno@clisp.org>
38319
38320         Make gnulib-tool work with native 'sed' on AIX.
38321         * gnulib-tool (sed_noop): New variable.
38322         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
38323         func_add_or_update, func_create_testdir): Use it to initialize sed
38324         script variables.
38325         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38326
38327 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
38328             Bruno Haible  <bruno@clisp.org>
38329
38330         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
38331         also works after #include directives.
38332
38333 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
38334
38335         getdate.y: reject an out-of-range timezone value
38336         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
38337         the range [-24...+24].  When specified with only one or two digits,
38338         * tests/test-getdate.c: Tests for the fix.
38339         * doc/getdate.texi: Document this change.
38340
38341 2008-09-03  Bruno Haible  <bruno@clisp.org>
38342
38343         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
38344
38345 2008-09-02  Simon Josefsson  <simon@josefsson.org>
38346
38347         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
38348         <bruce.korb@gmail.com> with ideas from Ben Pfaff
38349         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
38350         Blake <ebb9@byu.net>.
38351
38352         * tests/test-bitrotate.c: Add more test vectors.
38353
38354 2008-09-02  Eric Blake  <ebb9@byu.net>
38355
38356         vasnprintf-posix: handle large precision via %.*d
38357         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
38358         when handling it ourselves.
38359         * tests/test-vasnprintf-posix.c (test_function): Add test.
38360         * tests/test-snprintf-posix.h (test_function): Likewise.
38361         * tests/test-sprintf-posix.h (test_function): Likewise.
38362         * tests/test-vasprintf-posix.c (test_function): Likewise.
38363         Reported by Alain Guibert.
38364
38365 2008-09-01  Eric Blake  <ebb9@byu.net>
38366
38367         c-stack: make configure-time check more robust
38368         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
38369         successful sigaction call.
38370         Reported by Tom G. Christensen.
38371
38372 2008-09-01  Bruno Haible  <bruno@clisp.org>
38373
38374         New module 'findprog-lgpl'.
38375         * modules/findprog-lgpl: New file.
38376         * lib/findprog-lgpl.c: New file.
38377         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
38378         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
38379         to decide whether to use strdup or xstrdup, concatenated_filename or
38380         xconcatenated_filename.
38381
38382 2008-09-01  Bruno Haible  <bruno@clisp.org>
38383
38384         Split module 'concat-filename' into 'concat-filename' (LGPL) and
38385         'xconcat-filename' (GPL).
38386         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
38387         (License): Change to LGPLv2+.
38388         * modules/xconcat-filename: New file.
38389         * lib/concat-filename.h (concatenated_filename): Change specification.
38390         (xconcatenated_filename): New declaration.
38391         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
38392         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
38393         memory situations.
38394         * lib/xconcat-filename.c: New file.
38395         * NEWS: Mention the change.
38396         * lib/findprog.c: Include concat-filename.h, not filename.h.
38397         (find_in_path): Use xconcatenated_filename instead of
38398         concatenated_filename.
38399         * lib/javacomp.c: Include concat-filename.h, not filename.h.
38400         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
38401         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
38402         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
38403         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
38404         instead of concatenated_filename.
38405         * lib/javaexec.c: Include concat-filename.h, not filename.h.
38406         (execute_java_class): Use xconcatenated_filename instead of
38407         concatenated_filename.
38408         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
38409         * modules/javacomp (Depends-on): Likewise.
38410         * modules/javaexec (Depends-on): Likewise.
38411
38412 2008-09-01  Bruno Haible  <bruno@clisp.org>
38413
38414         Split module 'filename' into 'filename' and 'concat-filename'.
38415         * modules/filename: Keep only lib/filename.h.
38416         (License): Change to LGPLv2+.
38417         * modules/concat-filename: New file, extracted from modules/filename.
38418         * lib/filename.h (concatenated_filename): Remove declaration.
38419         * lib/concat-filename.h: New file, extracted from lib/filename.h.
38420         * lib/concat-filename.c: Include concat-filename.h.
38421         * NEWS: Mention the change.
38422
38423 2008-09-01  Simon Josefsson  <simon@josefsson.org>
38424
38425         * lib/bitrotate.h (rotl8, rotr8): Add.
38426
38427         * modules/bitrotate (configure.ac): Need
38428         AC_REQUIRE([AC_C_INLINE]).
38429         (Description): Mention stdint.h.  Reported by Bruno Haible
38430         <bruno@clisp.org>.
38431
38432         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
38433         Paolo Bonzini <bonzini@gnu.org>.
38434
38435 2008-08-31  Bruno Haible  <bruno@clisp.org>
38436
38437         Assume Solaris specific bi-arch conventions on Solaris systems.
38438         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
38439         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
38440         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
38441         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
38442         like acl_libdirstem.
38443         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
38444         acl_libdirstem.
38445         * NEWS: Mention the change.
38446         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
38447
38448 2008-08-31  Jim Meyering  <meyering@redhat.com>
38449
38450         * lib/strftime.h: Add comments describing the two added arguments.
38451
38452         remove duplicate #include directives
38453         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
38454         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
38455
38456 2008-08-31  Bruno Haible  <bruno@clisp.org>
38457
38458         New module 'sigpipe-die'.
38459         * modules/sigpipe-die: New file.
38460         * lib/sigpipe-die.h: New file.
38461         * lib/sigpipe-die.c: New file.
38462         * MODULES.html.sh (Signal handling): Add sigpipe-die.
38463
38464 2008-08-31  Bruno Haible  <bruno@clisp.org>
38465
38466         Don't override previously installed signal handlers.
38467         * lib/fatal-signal.c (saved_sigactions): New variable.
38468         (uninstall_handlers): Reset the signal to the saved handler, not
38469         to SIG_DFL (except when ignored).
38470         (install_handlers): Save the previous handlers.
38471
38472 2008-08-30  Bruno Haible  <bruno@clisp.org>
38473
38474         * gnulib-tool (func_reset_sigpipe): New function.
38475         (func_get_automake_snippet, func_modules_transitive_closure,
38476         func_import): Invoke it before a join command that reads from stdin,
38477         to avoid "echo: write error: Broken pipe" error messages on stderr.
38478         Reported by Sam Steingold <sds@gnu.org>.
38479
38480 2008-08-30  Bruno Haible  <bruno@clisp.org>
38481
38482         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
38483         Code copied from m4/open.m4.
38484         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
38485         access and the filename ends in a slash. Code copied from lib/open.c.
38486         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
38487         * tests/test-fopen.c (main): Check against bug with trailing slash.
38488
38489 2008-08-29  Bruno Haible  <bruno@clisp.org>
38490
38491         Avoid some "gcc -pedantic" warnings.
38492         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
38493         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
38494         * lib/dirent.in.h: Likewise.
38495         * lib/fcntl.in.h: Likewise.
38496         * lib/float.in.h: Likewise.
38497         * lib/iconv.in.h: Likewise.
38498         * lib/inttypes.in.h: Likewise.
38499         * lib/locale.in.h: Likewise.
38500         * lib/math.in.h: Likewise.
38501         * lib/netinet_in.in.h: Likewise.
38502         * lib/search.in.h: Likewise.
38503         * lib/signal.in.h: Likewise.
38504         * lib/stdarg.in.h: Likewise.
38505         * lib/stdint.in.h: Likewise.
38506         * lib/stdio.in.h: Likewise.
38507         * lib/stdlib.in.h: Likewise.
38508         * lib/string.in.h: Likewise.
38509         * lib/strings.in.h: Likewise.
38510         * lib/sys_select.in.h: Likewise.
38511         * lib/sys_socket.in.h: Likewise.
38512         * lib/sys_stat.in.h: Likewise.
38513         * lib/sys_time.in.h: Likewise.
38514         * lib/sysexits.in.h: Likewise.
38515         * lib/time.in.h: Likewise.
38516         * lib/unistd.in.h: Likewise.
38517         * lib/wchar.in.h: Likewise.
38518         * lib/wctype.in.h: Likewise.
38519         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
38520         * modules/fchdir (Makefile.am): Likewise.
38521         * modules/fcntl (Makefile.am): Likewise.
38522         * modules/float (Makefile.am): Likewise.
38523         * modules/iconv_open (Makefile.am): Likewise.
38524         * modules/inttypes (Makefile.am): Likewise.
38525         * modules/locale (Makefile.am): Likewise.
38526         * modules/math (Makefile.am): Likewise.
38527         * modules/netinet_in (Makefile.am): Likewise.
38528         * modules/search (Makefile.am): Likewise.
38529         * modules/signal (Makefile.am): Likewise.
38530         * modules/stdarg (Makefile.am): Likewise.
38531         * modules/stdint (Makefile.am): Likewise.
38532         * modules/stdio (Makefile.am): Likewise.
38533         * modules/stdlib (Makefile.am): Likewise.
38534         * modules/string (Makefile.am): Likewise.
38535         * modules/strings (Makefile.am): Likewise.
38536         * modules/sys_select (Makefile.am): Likewise.
38537         * modules/sys_socket (Makefile.am): Likewise.
38538         * modules/sys_stat (Makefile.am): Likewise.
38539         * modules/sys_time (Makefile.am): Likewise.
38540         * modules/sysexits (Makefile.am): Likewise.
38541         * modules/time (Makefile.am): Likewise.
38542         * modules/unistd (Makefile.am): Likewise.
38543         * modules/wchar (Makefile.am): Likewise.
38544         * modules/wctype (Makefile.am): Likewise.
38545         Reported by Reuben Thomas <rrt@sc3d.org>.
38546
38547 2008-08-29  Bruno Haible  <bruno@clisp.org>
38548
38549         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
38550         any more.
38551
38552 2008-08-29  Simon Josefsson  <simon@josefsson.org>
38553
38554         * MODULES.html.sh (Misc): Add bitrotate.
38555
38556         * modules/bitrotate: New file.
38557
38558         * lib/bitrotate.h: New file.
38559
38560         * modules/bitrotate-tests: New file.
38561
38562         * tests/test-bitrotate.c: New file.
38563
38564         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
38565         on the bitrotate module.
38566
38567         * lib/arctwo.c: Use new bitrotate module.
38568
38569 2008-08-29  Jim Meyering  <meyering@redhat.com>
38570
38571         bootstrap: merge changes from coreutils
38572         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
38573         of copied files.  Remove a kludge, now that this is fixed.
38574         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
38575         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
38576         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
38577
38578 2008-08-29  Bruno Haible  <bruno@clisp.org>
38579
38580         * MODULES.html.sh: Remove --cvs-urls option.
38581
38582 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
38583
38584         maint.mk: adjust to file name change
38585         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
38586
38587 2008-08-28  Jim Meyering  <meyering@redhat.com>
38588
38589         * modules/getndelim2 (License): Relicense to LGPLv2+.
38590         Approved by Richard Stallman for the version of 1995, and by
38591         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
38592
38593 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
38594
38595         * lib/getdelim.c (flockfile, funlockfile): Make all of them
38596         dummy if one is not available.  Do not touch them if
38597         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
38598         (getc_maybe_unlocked): New.
38599         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
38600
38601 2008-08-26  Eric Blake  <ebb9@byu.net>
38602
38603         doc/INSTALL: resync from autoconf
38604         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
38605         (INSTALL_PRELUDE): Delete; this is done more efficiently by
38606         moving...
38607         * install.texi [!autoconf]: ...here.  Resync from autoconf.
38608         * INSTALL: Regenerate.
38609         * INSTALL.ISO: New file.
38610         * INSTALL.UTF-8: Likewise.
38611
38612 2008-08-26  Jim Meyering  <meyering@redhat.com>
38613
38614         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
38615         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
38616         these definitions conditional, so that they may be overridden, too.
38617
38618 2008-08-26  Bruno Haible  <bruno@clisp.org>
38619
38620         Generate INSTALL file variants with prettier quotes.
38621         * doc/Makefile (INSTALL_PRELUDE): New macro.
38622         (INSTALL): Use it.
38623         (INSTALL.ISO, INSTALL.UTF-8): New rules.
38624
38625 2008-08-26  Bruno Haible  <bruno@clisp.org>
38626
38627         Run makeinfo in an English locale.
38628         * doc/Makefile (MAKEINFO): New variable.
38629
38630 2008-08-26  Bruno Haible  <bruno@clisp.org>
38631
38632         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
38633         Suggested by Eric Blake.
38634
38635 2008-08-25  Bruno Haible  <bruno@clisp.org>
38636
38637         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
38638
38639 2008-08-25  Eric Blake  <ebb9@byu.net>
38640
38641         c-stack: test that stack overflow can be caught
38642         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
38643         that platform allows handling stack overflow; at least OS/2 EMX
38644         has sigaltstack, but crashes before transferring control to
38645         handler on stack overflow.
38646         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
38647         check for HAVE_STACK_OVERFLOW_HANDLING.
38648         Reported by Elbert Pol.
38649
38650 2008-08-25  Bruno Haible  <bruno@clisp.org>
38651
38652         * doc/posix-functions/strftime.texi: Fix description of strftime
38653         module.
38654
38655 2008-08-24  Bruno Haible  <bruno@clisp.org>
38656
38657         * tests/uniwidth/test-uc_width2.c: New file.
38658         * tests/uniwidth/test-uc_width2.sh: New file.
38659         * modules/uniwidth/width-tests (Files): Add the new files.
38660         (TESTS): Add uniwidth/test-uc_width2.sh.
38661         (TESTS_ENVIRONMENT): New variable.
38662         (check_PROGRAMS): Add test-uc_width2.
38663         (test_uc_width2_SOURCES): New variable.
38664
38665         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
38666         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
38667         not 0x00AB.
38668         Reported by Alexander V. Lukyanov <lav@netis.ru>.
38669
38670 2008-08-22  Eric Blake  <ebb9@byu.net>
38671
38672         test-lock, test-tls: mention why a test is skipped
38673         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
38674         skipped.
38675         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
38676
38677         count-one-bits: relax license
38678         * modules/count-one-bits (License): Relicense to LGPLv2+.
38679         Suggested by Ludovic Courtès, approved by Ben Pfaff.
38680
38681 2008-08-22  Andreas Schwab  <schwab@suse.de>
38682
38683         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
38684         Remove spurious space in assignment.
38685
38686 2008-08-21  Simon Josefsson  <simon@josefsson.org>
38687
38688         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
38689         Paul Eggert <eggert@CS.UCLA.EDU>.
38690
38691 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
38692
38693         * modules/gettext: Add m4/threadlib.m4.
38694
38695 2008-08-19  Eric Blake  <ebb9@byu.net>
38696
38697         test-c-stack: fix compilation failure on FreeBSD 5.0
38698         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
38699         headers before <sys/resource.h>.
38700         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
38701         the bug.
38702         Reported by Nelson H. F. Beebe.
38703
38704         strverscmp: migrate from "strverscmp.h" to <string.h>
38705         * modules/string (Makefile.am): Add new hooks.
38706         * modules/strverscmp (Files): Remove strverscmp.h.
38707         (Depends-on): Add string.
38708         (configure.ac): Add indicator.
38709         (Include): Mention new header.
38710         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
38711         defaults.
38712         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
38713         results.
38714         * lib/strverscmp.h: Delete.
38715         * lib/string.in.h (strverscmp): Provide declaration, when needed.
38716         * tests/test-strverscmp.c (includes): Adjust client.
38717         * lib/check-version.c (includes): Likewise.
38718         * NEWS: Document the change.
38719
38720         strverscmp: add unit test
38721         * modules/strverscmp-tests: New file.
38722         * tests/test-strverscmp.c: Likewise.
38723
38724 2008-08-19  Simon Josefsson  <simon@josefsson.org>
38725
38726         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
38727         regarding Windows crypto stuff, from Mono.
38728
38729 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
38730
38731         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
38732         if present, for intel RND.  Return error on failures.
38733
38734 2008-08-18  Ben Pfaff  <blp@gnu.org>
38735
38736         gitlog-to-changelog: give better diagnostic for failed pipe-open
38737         * build-aux/gitlog-to-changelog: Improve error message: suggest
38738         that the version of Git may be too old.
38739
38740 2008-08-18  Simon Josefsson  <simon@josefsson.org>
38741
38742         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
38743         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
38744
38745 2008-08-18  Bruno Haible  <bruno@clisp.org>
38746
38747         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
38748         pthread_in_use().
38749
38750 2008-08-18  Bruno Haible  <bruno@clisp.org>
38751
38752         * lib/glthread/threadlib.c: Include <pthread.h>.
38753
38754 2008-08-18  Bruno Haible  <bruno@clisp.org>
38755
38756         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
38757         glthread_recursive_lock_* macros.
38758         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
38759         Fix syntax error.
38760
38761 2008-08-18  Bruno Haible  <bruno@clisp.org>
38762
38763         * lib/glthread/thread.c: Avoid forcing a context switch right after
38764         thread creation.
38765
38766 2008-08-17  Bruno Haible  <bruno@clisp.org>
38767
38768         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
38769         * lib/glthread/thread.h: Provide Win32 specific implementation.
38770         * modules/thread (Files): Add lib/glthread/thread.c.
38771         (Depends-on): Add lock.
38772         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
38773
38774 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38775
38776         New module 'yield'.
38777         * modules/yield: New file.
38778         * lib/glthread/yield.h: New file.
38779         * m4/yield.m4: New file.
38780         * MODULES.html.sh (Multithreading): Add yield.
38781
38782 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38783
38784         New module 'thread'.
38785         * modules/thread: New file.
38786         * lib/glthread/thread.h: New file.
38787         * m4/thread.m4: New file.
38788         * MODULES.html.sh (Multithreading): Add thread.
38789
38790 2008-08-17  Bruno Haible  <bruno@clisp.org>
38791
38792         * lib/glthread/lock.h: Include <stdlib.h> always.
38793         * lib/glthread/tls.h: Likewise.
38794         * lib/glthread/cond.h: Likewise.
38795
38796 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38797
38798         New module 'cond'.
38799         * modules/cond: New file.
38800         * lib/glthread/cond.h: New file.
38801         * lib/glthread/cond.c: New file.
38802         * m4/cond.m4: New file.
38803         * MODULES.html.sh (Multithreading): Add cond.
38804
38805 2008-08-16  Eric Blake  <ebb9@byu.net>
38806
38807         c-stack: fix regression on Irix 5.3 from 2008-06-21
38808         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
38809         sa_sigaction...
38810         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
38811         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
38812         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
38813         * modules/signal (Makefile.am): Use the value.
38814         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
38815         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
38816         * doc/posix-headers/signal.texi (signal.h): Document this
38817         portability issue.
38818         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
38819         Reported by Tom G. Christensen.
38820
38821 2008-08-17  Bruno Haible  <bruno@clisp.org>
38822
38823         New module 'threadlib'.
38824         * modules/threadlib: New file.
38825         * lib/glthread/threadlib.c: New file, extracted from
38826         lib/glthread/lock.c.
38827         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
38828         functions.
38829         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
38830         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
38831         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
38832         macros.
38833         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
38834         (gl_DISABLE_THREADS): Remove macro.
38835         * modules/lock (Files): Remove build-aux/config.rpath.
38836         (Depends-on): Remove havelib. Add threadlib.
38837         (configure.ac-early): Remove section.
38838         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
38839         * modules/tls (Depends-on): Remove lock. Add threadlib.
38840         (Link): New section, copied from threadlib.
38841         * MODULES.html.sh (Multithreading): Add threadlib.
38842
38843 2008-08-14  Bruno Haible  <bruno@clisp.org>
38844
38845         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
38846         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
38847         glthread_rwlock_unlock, glthread_rwlock_destroy,
38848         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
38849         glthread_recursive_lock_destroy): Define as macros always.
38850         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
38851         glthread_lock_lock.
38852         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
38853         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
38854         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
38855         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
38856         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
38857         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
38858         (glthread_recursive_lock_lock_func): Renamed from
38859         glthread_recursive_lock_lock.
38860         (glthread_recursive_lock_unlock_func): Renamed from
38861         glthread_recursive_lock_unlock.
38862         (glthread_recursive_lock_destroy_func): Renamed from
38863         glthread_recursive_lock_destroy.
38864
38865 2008-08-14  Bruno Haible  <bruno@clisp.org>
38866
38867         * lib/glthread/lock.h: Renamed from lib/lock.h.
38868         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
38869         * lib/glthread/tls.h: Renamed from lib/tls.h.
38870         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
38871         * lib/fstrcmp.c: Update includes.
38872         * lib/strsignal.c: Update includes.
38873         * modules/lock (Files, Makefile.am): Update.
38874         (Include): Change to "glthread/lock.h".
38875         * modules/tls (Files, Makefile.am): Update.
38876         (Include): Change to "glthread/tls.h".
38877         * tests/test-lock.c: Update includes.
38878         * tests/test-tls.c: Update includes.
38879         * NEWS: Mention the renamed header files.
38880
38881 2008-08-11  Jim Meyering  <meyering@redhat.com>
38882
38883         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
38884
38885 2008-08-11  Eric Blake  <ebb9@byu.net>
38886
38887         test-c-stack: avoid C99-ism
38888         * tests/test-c-stack.c (main): Fix whitespace, move declaration
38889         before statement.
38890         Reported by Alain Guibert.
38891
38892 2008-08-10  Jim Meyering  <meyering@redhat.com>
38893
38894         ensure that return value of uinttostr et al are not ignored
38895         * lib/inttostr.h (__GNUC_PREREQ): Define.
38896         (__attribute_warn_unused_result__): Define.
38897         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
38898
38899 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
38900
38901         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
38902         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
38903
38904 2008-08-07  Jim Meyering  <meyering@redhat.com>
38905
38906         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
38907
38908         * modules/mkstemp (License): Relicense under LGPLv2+.
38909         * modules/tempname (License): Likewise.
38910
38911 2008-08-06  Bruno Haible  <bruno@clisp.org>
38912
38913         * lib/poll.c (poll): Further micro-optimization.
38914
38915 2008-08-06  Jim Meyering  <meyering@redhat.com>
38916
38917         inet_pton.c: use locale-independent tolower
38918         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
38919         (inet_pton6): Use c_tolower rather than tolower.
38920         * modules/inet_pton (Depends-on): Add c-ctype.
38921
38922 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
38923
38924         * lib/poll.c (poll): Avoid division when timeout is 0, cache
38925         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
38926
38927 2008-08-06  Jim Meyering  <meyering@redhat.com>
38928
38929         * modules/inet_pton (License): Relicense under LGPLv2+.
38930
38931 2008-08-03  Bruno Haible  <bruno@clisp.org>
38932
38933         Additional non-aborting API for lock and tls.
38934         * lib/lock.h: Include <errno.h>.
38935         (glthread_lock_init): New macro/function.
38936         (gl_lock_init): Define as wrapper around glthread_lock_init.
38937         (glthread_lock_lock): New macro/function.
38938         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
38939         (glthread_lock_unlock): New macro/function.
38940         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
38941         (glthread_lock_destroy): New macro/function.
38942         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
38943         (glthread_rwlock_init): New macro/function.
38944         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
38945         (glthread_rwlock_rdlock): New macro/function.
38946         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
38947         (glthread_rwlock_wrlock): New macro/function.
38948         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
38949         (glthread_rwlock_unlock): New macro/function.
38950         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
38951         (glthread_rwlock_destroy): New macro/function.
38952         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
38953         (glthread_recursive_lock_init): New macro/function.
38954         (gl_recursive_lock_init): Define as wrapper around
38955         glthread_recursive_lock_init.
38956         (glthread_recursive_lock_lock): New macro/function.
38957         (gl_recursive_lock_lock): Define as wrapper around
38958         glthread_recursive_lock_lock.
38959         (glthread_recursive_lock_unlock): New macro/function.
38960         (gl_recursive_lock_unlock): Define as wrapper around
38961         glthread_recursive_lock_unlock.
38962         (glthread_recursive_lock_destroy): New macro/function.
38963         (gl_recursive_lock_destroy): Define as wrapper around
38964         glthread_recursive_lock_destroy.
38965         (glthread_once): New macro/function.
38966         (gl_once): Define as wrapper around glthread_once.
38967         Update function declarations.
38968         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
38969         glthread_rwlock_init. Return error code.
38970         (glthread_rwlock_rdlock_multithreaded): Renamed from
38971         glthread_rwlock_rdlock. Return error code.
38972         (glthread_rwlock_wrlock_multithreaded): Renamed from
38973         glthread_rwlock_wrlock. Return error code.
38974         (glthread_rwlock_unlock_multithreaded): Renamed from
38975         glthread_rwlock_unlock. Return error code.
38976         (glthread_rwlock_destroy_multithreaded): Renamed from
38977         glthread_rwlock_destroy. Return error code.
38978         (glthread_recursive_lock_init_multithreaded): Renamed from
38979         glthread_recursive_lock_init. Return error code.
38980         (glthread_recursive_lock_lock_multithreaded): Renamed from
38981         glthread_recursive_lock_lock. Return error code.
38982         (glthread_recursive_lock_unlock_multithreaded): Renamed from
38983         glthread_recursive_lock_unlock. Return error code.
38984         (glthread_recursive_lock_destroy_multithreaded): Renamed from
38985         glthread_recursive_lock_destroy. Return error code.
38986         (glthread_once_call): Make static.
38987         (glthread_once_multithreaded): Renamed from glthread_once.
38988         * lib/tls.h: Include <errno.h>.
38989         (glthread_tls_key_init): New macro/function.
38990         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
38991         (glthread_tls_set): New macro/function.
38992         (gl_tls_set): Define as wrapper around glthread_tls_set.
38993         (glthread_tls_key_destroy): New macro/function.
38994         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
38995         Update function declarations.
38996         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
38997         glthread_tls_get.
38998         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
38999
39000 2008-08-04  Eric Blake  <ebb9@byu.net>
39001
39002         gnumakefile: use space, not TAB, outside of targets
39003         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
39004
39005 2008-08-02  Jim Meyering  <meyering@redhat.com>
39006
39007         getdate.y: avoid locale-dependent date parsing failure
39008         In Turkish locales, getdate would fail to recognize keywords
39009         containing a lowercase "i".  The solution is not to rely on
39010         locale-sensitive case-conversion.
39011         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
39012         (lookup_word): Use c_toupper in place of toupper.
39013         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
39014         Reported by Vefa Bicakci <bicave@superonline.com> in
39015         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
39016         * modules/getdate (Depends-on): Add c-ctype.
39017
39018 2008-08-02  Bruno Haible  <bruno@clisp.org>
39019
39020         * gnulib-tool (func_import): When updating or creating a .gitignore
39021         file, prepend each added line with a slash, and ignore leading slashes
39022         from the existing lines.
39023         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
39024
39025 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39026
39027         Portability fix for GNU make 3.79.1.
39028         * top/GNUmakefile: Avoid 'else COND', which older GNU make
39029         versions do not understand.
39030
39031 2008-08-01  Bruno Haible  <bruno@clisp.org>
39032
39033         Work around bug of HP-UX 10.20 cc with -0.0 literal.
39034         * tests/test-isnanf.h (zero): New variable.
39035         (main): Avoid literal -0.0f.
39036         * tests/test-isnand.h (zero): New variable.
39037         (main): Avoid literal -0.0.
39038         * tests/test-isnanl.h (zero): New variable.
39039         (main): Avoid literal -0.0L.
39040         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
39041         (test_float, test_double, test_long_double): Avoid literals -0.0f,
39042         -0.0, -0.0L.
39043         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
39044         (test_signbitd): Avoid literal -0.0.
39045         (test_signbitl): Avoid literal -0.0L.
39046         * tests/test-ceilf1.c (zero): New variable.
39047         (main): Avoid literal -0.0f.
39048         * tests/test-ceill.c (zero): New variable.
39049         (main): Avoid literal -0.0L.
39050         * tests/test-floorf1.c (zero): New variable.
39051         (main): Avoid literal -0.0f.
39052         * tests/test-floorl.c (zero): New variable.
39053         (main): Avoid literal -0.0L.
39054         * tests/test-roundf1.c (zero): New variable.
39055         (main): Avoid literal -0.0f.
39056         * tests/test-round1.c (zero): New variable.
39057         (main): Avoid literal -0.0.
39058         * tests/test-roundl.c (zero): New variable.
39059         (main): Avoid literal -0.0L.
39060         * tests/test-truncf1.c (zero): New variable.
39061         (main): Avoid literal -0.0f.
39062         * tests/test-trunc1.c (zero): New variable.
39063         (main): Avoid literal -0.0.
39064         * tests/test-truncl.c (zero): New variable.
39065         (main): Avoid literal -0.0L.
39066         * tests/test-frexp.c (zero): New variable.
39067         (main): Avoid literal -0.0.
39068         * tests/test-frexpl.c (zero): New variable.
39069         (main): Avoid literal -0.0L.
39070         * tests/test-ldexpl.c (zero): New variable.
39071         (main): Avoid literal -0.0L.
39072         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
39073         (zerod, zerol): New variables.
39074         (test_function): Avoid literals -0.0, -0.0L.
39075         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
39076         (zerod, zerol): New variables.
39077         (test_function): Avoid literals -0.0, -0.0L.
39078         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
39079         (zerod, zerol): New variables.
39080         (test_function): Avoid literals -0.0, -0.0L.
39081         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
39082         (zerod, zerol): New variables.
39083         (test_function): Avoid literals -0.0, -0.0L.
39084         * tests/test-strtod.c (zero): New variable.
39085         (main): Avoid literal -0.0.
39086         Reported by Jonathan C. Patschke <jp@centtech.com>.
39087
39088 2008-07-31  Jim Meyering  <meyering@redhat.com>
39089
39090         sha256.h: correct definition of SHA224_DIGEST_SIZE
39091         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
39092         Reported by Paulie Pena IV <paulie4@gmail.com>.
39093         Define as 224 / 8, rather than as a literal.
39094         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
39095         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
39096         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
39097
39098 2008-07-31  Bruno Haible  <bruno@clisp.org>
39099
39100         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
39101         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
39102         Reported by Jonathan Patschke <jp@centtech.com>.
39103
39104 2008-07-31  Bruno Haible  <bruno@clisp.org>
39105
39106         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
39107         Reported by Paolo Bonzini <bonzini@gnu.org>.
39108
39109 2008-07-30  Eric Blake  <ebb9@byu.net>
39110
39111         test-strtod: allow compilation without -lm
39112         * tests/test-strtod.c (main): Avoid link dependence on fabs.
39113         Reported by Dennis Clarke <blastwave@gmail.com>.
39114
39115 2008-07-28  Jim Meyering  <meyering@redhat.com>
39116
39117         bootstrap: work also when there are no .po files in po/
39118         * build-aux/bootstrap (update_po_files): Complete the change
39119         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
39120
39121 2008-07-27  Jim Meyering  <meyering@redhat.com>
39122
39123         * users.txt: Add zile.
39124
39125 2008-07-26  Ben Pfaff  <blp@gnu.org>
39126
39127         Add missing dependencies on new m4/exponent[fdl].m4 files.
39128         * modules/isnanf-nolibm: Add m4/exponentf.m4.
39129         * modules/isnand-nolibm: Add m4/exponentd.m4.
39130         * modules/isnanl-nolibm: Add m4/exponentl.m4.
39131         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
39132         m4/isnan[fdl].m4, because the macros actually used moved.
39133         Reported by Jim Meyering.
39134
39135 2008-07-14  Ben Pfaff  <blp@gnu.org>
39136
39137         Add isinf module.
39138         * lib/isinf.c: New file.
39139         * lib/math.in.h: Define isinf macro if we have decided to replace
39140         it.
39141         * m4/isinf.m4: New file.
39142         * m4/math_h.m4: Initialize and substitute variables for isinf
39143         module.
39144         * modules/isinf: New file.
39145         * modules/isinf-tests: New file.
39146         * modules/math: Add substitutions for new module.
39147         * tests/test-isinf.c: New file.
39148         * doc/posix-functions/isinf.texi: Mention new module.
39149         * MODULES.html.sh: Mention new module.
39150
39151 2008-07-14  Ben Pfaff  <blp@gnu.org>
39152
39153         Factor out some macros for use by additional modules.
39154         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
39155         exponentf.m4.
39156         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
39157         exponentd.m4.
39158         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
39159         file exponentl.m4.
39160         * m4/exponentf.m4: New file.
39161         * m4/exponentd.m4: New file.
39162         * m4/exponentl.m4: New file.
39163         * modules/isnanf: Use new file m4/exponentf.m4.
39164         * modules/isnand: Use new file m4/exponentd.m4.
39165         * modules/isnanl: Use new file m4/exponentl.m4.
39166
39167 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
39168
39169         mktime.c: normalize tp->tm_isdst value to -1/0/1.
39170         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
39171         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
39172         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
39173
39174         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
39175         readlink on platforms without PATH_MAX.
39176
39177 2008-07-21  Eric Blake  <ebb9@byu.net>
39178
39179         Warn, not fail, on stale version.
39180         * top/GNUmakefile (_curr-ver): Tone down previous patch.
39181
39182         Don't allow installation with stale devel version number.
39183         * top/GNUmakefile (_is-install-target): New macro.
39184         (_curr-ver): Forbid installation with stale version number.
39185
39186 2008-07-20  Bruno Haible  <bruno@clisp.org>
39187
39188         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
39189         TESTS_ENVIRONMENT.
39190         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
39191
39192 2008-07-20  Bruno Haible  <bruno@clisp.org>
39193
39194         * lib/c-stack.h (c_stack_action): Add documentation.
39195         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
39196
39197 2008-07-20  Bruno Haible  <bruno@clisp.org>
39198
39199         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
39200         * modules/readlink (License): Likewise.
39201
39202 2008-07-17  Eric Blake  <ebb9@byu.net>
39203
39204         * modules/c-stack (Link): Fix typo.
39205
39206         Make c-stack use libsigsegv, when available.
39207         * modules/c-stack (Depends-on): Add libsigsegv.
39208         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
39209         needed.
39210         * lib/c-stack.c (SIGSTKSZ): Define fallback.
39211         (segv_handler, overflow_handler, c_stack_action)
39212         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
39213         implementation when libsigsegv is available, but only when using
39214         the library is necessary.
39215         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
39216         comment, explaining why XSI check fails on Linux.
39217         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
39218         * tests/test-c-stack2.sh: Tweak skip message.
39219         * NEWS: Document new link-time requirements.
39220
39221 2008-07-16  Eric Blake  <ebb9@byu.net>
39222
39223         c-stack: Expose false positives when not using libsigsegv.
39224         * modules/c-stack-tests (Files): Expand test.
39225         * tests/test-c-stack.c (main): Add means to conditionally trigger
39226         non-overflow SIGSEGV.
39227         * tests/test-c-stack2.sh: New file.
39228
39229 2008-07-14  Bruno Haible  <bruno@clisp.org>
39230
39231         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
39232         Reported by Eric Blake.
39233
39234 2008-07-14  Sam Steingold  <sds@gnu.org>
39235             Bruno Haible  <bruno@clisp.org>
39236
39237         New module libsigsegv.
39238         * modules/libsigsegv: New file.
39239         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
39240         modifications.
39241         * MODULES.html.sh (Signal handling): New section.
39242
39243 2008-07-14  Bruno Haible  <bruno@clisp.org>
39244
39245         * modules/unictype/ctype-* (Description): Add the word "function".
39246         Improves the resulting doc in MODULES.html.
39247
39248 2008-07-12  Ben Pfaff  <blp@gnu.org>
39249
39250         Add longlong module.
39251         * modules/longlong: New file.
39252
39253 2008-07-12  Bruno Haible  <bruno@clisp.org>
39254
39255         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
39256         to empty.
39257
39258 2008-07-10  Ben Pfaff  <blp@gnu.org>
39259
39260         Add isnan module.
39261         * doc/posix-functions/isnan.texi: Mention new module.
39262         * lib/math.in.h: Define isnan macro if we have decided to replace
39263         it.
39264         * m4/isnan.m4: New file.
39265         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
39266         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
39267         also.
39268         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
39269         redundancy.
39270         * m4/math_h.m4: Initialize and substitute variables for isnan
39271         module.
39272         * modules/isnan: New file.
39273         * modules/isnan-tests: New file.
39274         * modules/math: Add substitutions for new module.
39275         * tests/test-isnan.c: New file.
39276         * MODULES.html.sh: Mention new module.
39277
39278 2008-07-10  Ben Pfaff  <blp@gnu.org>
39279
39280         Add isnanf module.
39281         * lib/isnanf.m4: New file.
39282         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
39283         (gl_HAVE_ISNANF_IN_LIBM): New macro.
39284         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
39285         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
39286         * modules/isnanf: New file.
39287         * modules/isnanf-tests: New file.
39288         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
39289         files.
39290         * tests/test-isnanf-nolibm.c: factored most of its contents into
39291         new file tests/test-isnanf.h.
39292         * tests/test-isnanf.h: New file.
39293         * tests/test-isnanf.c: New file.
39294         * MODULES.html.sh: Mention new module.
39295         * doc/glibc-functions/isnanf.texi: Mention new module.
39296
39297 2008-07-10  Ben Pfaff  <blp@gnu.org>
39298
39299         Add isnand module.
39300         * lib/isnand.h: New file.
39301         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
39302         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
39303         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
39304         functionality also.
39305         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
39306         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
39307         (gl_HAVE_ISNAND_IN_LIBM): New macro.
39308         * modules/isnand: New file.
39309         * modules/isnand-tests: New file.
39310         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
39311         files.
39312         * tests/test-isnand-nolibm.c: factored most of its contents into
39313         new file tests/test-isnand.h.
39314         * tests/test-isnand.h: New file.
39315         * tests/test-isnand.c: New file.
39316         * MODULES.html.sh: Mention new module.
39317
39318 2008-07-10  Ben Pfaff  <blp@gnu.org>
39319
39320         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
39321         * lib/isnand.h: Rename lib/isnand-nolibm.h.
39322         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
39323         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
39324         * modules/isnanf-nolibm: Update references to renamed files.
39325         * modules/isnand-nolibm: Likewise.
39326         * modules/isnanf-nolibm-tests: Likewise.
39327         * modules/isnand-nolibm-tests: Likewise.
39328         * lib/frexp.c: Likewise.
39329         * lib/isfinite.c: Likewise.
39330         * lib/signbitd.c: Likewise.
39331         * lib/signbitf.c: Likewise.
39332         * lib/vasnprintf.c: Likewise.
39333         * tests/test-ceilf1.c: Likewise.
39334         * tests/test-ceilf2.c: Likewise.
39335         * tests/test-floorf1.c: Likewise.
39336         * tests/test-floorf2.c: Likewise.
39337         * tests/test-frexp.c: Likewise.
39338         * tests/test-round1.c: Likewise.
39339         * tests/test-round2.c: Likewise.
39340         * tests/test-roundf1.c: Likewise.
39341         * tests/test-strtod.c: Likewise.
39342         * tests/test-trunc1.c: Likewise.
39343         * tests/test-trunc2.c: Likewise.
39344         * tests/test-truncf1.c: Likewise.
39345         * tests/test-truncf2.c: Likewise.
39346         * NEWS: Mention the renamed header files.
39347
39348 2008-07-11  Jim Meyering  <meyering@redhat.com>
39349
39350         vc-list-files: make the last-resort awk code more portable
39351         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
39352         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
39353         does not support it.
39354
39355 2008-07-10  Eric Blake  <ebb9@byu.net>
39356
39357         Work with tar's bootstrap.
39358         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
39359         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
39360         an m4 comment.
39361
39362 2008-07-09  Jim Meyering  <meyering@redhat.com>
39363
39364         posix-shell.m4: fix typo that made this test malfunction
39365         * m4/posix-shell.m4: Remove capitalization in variable name.
39366
39367 2008-07-08  Bruno Haible  <bruno@clisp.org>
39368
39369         * m4/onceonly.m4: Update comments.
39370         Reported by Ben Pfaff <blp@cs.stanford.edu>.
39371
39372 2008-07-04  Jim Meyering  <meyering@redhat.com>
39373
39374         * users.txt: Add vc-dwim.
39375         (bison, coreutils): Use the gitweb URL.
39376
39377 2008-07-03  Jim Meyering  <meyering@redhat.com>
39378
39379         * users.txt: Add libffcall.  From Sam Steingold.
39380
39381 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
39382
39383         getdate.y: do not ignore TZ with relative day, month or year offset
39384         * lib/getdate.y (get_date): Move the tz-handling block to follow the
39385         relative-date-handling, since otherwise, the latter would clobber the
39386         sole output (an updated Start value) of the tz-handling block.
39387         * tests/test-getdate.c: Tests for the fix
39388
39389 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39390
39391         Recognize 'foo_LIBRARIES += libgnu.a'.
39392         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
39393         makefile snippet has already specified an installation location,
39394         also using '+='.
39395
39396 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
39397
39398         getdate.y: factor out common actions
39399         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
39400         Use them in place of open-coded actions.
39401
39402 2008-07-01  Simon Josefsson  <simon@josefsson.org>
39403
39404         Add self-test for getdate module.
39405         * modules/getdate-tests: New file.
39406         * tests/test-getdate.c: New file.
39407
39408 2008-06-29  Bruno Haible  <bruno@clisp.org>
39409
39410         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
39411         .gitignore.
39412         Reported by Sylvain Beucler <beuc@beuc.net>.
39413
39414 2008-06-29  Bruno Haible  <bruno@clisp.org>
39415
39416         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
39417         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
39418
39419 2008-06-29  Bruno Haible  <bruno@clisp.org>
39420
39421         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
39422         EXTRA_DIST.
39423         Reported by Sylvain Beucler <beuc@beuc.net>.
39424
39425 2008-06-26  Jim Meyering  <meyering@redhat.com>
39426
39427         make several modules depend on the "open" module
39428         This provides slightly increased consistency when opening-for-write
39429         the name of a non-directory spelled with a trailing slash.
39430         * modules/chdir-safer: Likewise.
39431         * modules/chown: Likewise.
39432         * modules/clean-temp: Likewise.
39433         * modules/copy-file: Likewise.
39434         * modules/fchdir: Likewise.
39435         * modules/fcntl-safer: Likewise.
39436         * modules/pipe: Likewise.
39437         * modules/utime: Likewise.
39438         Prompted by Eric Blake and Bruno Haible.
39439
39440 2008-06-24  Andreas Schwab  <schwab@suse.de>
39441
39442         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
39443         literals can be used as initializers for global variables.
39444
39445 2008-06-23  Eric Blake  <ebb9@byu.net>
39446
39447         Make gnulib-cache.m4 easier to diff.
39448         * gnulib-tool (func_import): Allow newlines when reading cached
39449         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
39450
39451 2008-06-23  Bruno Haible  <bruno@clisp.org>
39452
39453         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
39454         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
39455         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
39456         m4/signalblocking.m4.
39457         (gl_PREREQ_SIGACTION): Don't invoke it.
39458         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
39459         gl_PREREQ_SIG_HANDLER_H.
39460         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39461         Don't check for sigaction here.
39462
39463 2008-06-23  Bruno Haible  <bruno@clisp.org>
39464
39465         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
39466         (install_handlers): Don't set the SA_RESETHAND flag.
39467
39468 2008-06-23  Bruno Haible  <bruno@clisp.org>
39469
39470         * m4/sigaction.m4: Comment fixes.
39471         * lib/signal.in.h: Likewise.
39472
39473 2008-06-23  Eric Blake  <ebb9@byu.net>
39474
39475         Fix typo.
39476         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
39477
39478         Avoid SA_ namespace.
39479         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
39480         Reported by Ralf Wildenhues.
39481
39482         Avoid test failure due to SA_RESTORER.
39483         * tests/test-sigaction.c (SA_MASK): New macro.
39484         (main): Avoid failing due to extension flags being set.
39485         Reported by Jim Meyering.
39486
39487         Revert use of sig-handler.h in sigprocmask.c.
39488         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
39489         it requires the existence of struct sigaction.
39490         * lib/sigprocmask.c (handler_t): Restore typedef.
39491         (rpl_signal, old_handlers): Use local type.
39492
39493 2008-06-22  Bruno Haible  <bruno@clisp.org>
39494
39495         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
39496         conditionally.
39497         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
39498
39499 2008-06-22  Bruno Haible  <bruno@clisp.org>
39500
39501         * doc/posix-functions/siginterrupt.texi: Move note.
39502
39503         * lib/signal.in.h (SA_RESTART): New macro.
39504         * lib/sigaction.c: Update comment.
39505
39506         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
39507
39508         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
39509         (gl_PREREQ_SIGPROCMASK): Invoke it.
39510         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
39511
39512         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
39513
39514         * lib/sigprocmask.c: Update a comment.
39515
39516 2008-06-21  Eric Blake  <ebb9@byu.net>
39517
39518         Use sigaction module rather than signal().
39519         * modules/c-stack (Depends-on): Add sigaction.
39520         * modules/fatal-signal (Depends-on): Likewise.
39521         * modules/nanosleep (Depends-on): Likewise.
39522         * modules/sigprocmask (Files): Add sig-handler.h.
39523         * modules/sigaction (Files): Likewise.
39524         * lib/sig-handler.h (get_handler): New file, suggested by Paul
39525         Eggert.
39526         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
39527         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
39528         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
39529         (init_fatal_signals): Likewise.
39530         * lib/nanosleep.c (rpl_nanosleep): Likewise.
39531         (siginterrupt): Delete fallback.
39532         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
39533         instead.
39534         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
39535         siginterrupt.
39536
39537         New module sigaction, for mingw.
39538         * modules/sigaction: New module...
39539         * modules/sigaction-tests: ...and its test.
39540         * m4/sigaction.m4: New file.
39541         * lib/sigaction.c: Likewise.
39542         * tests/test-sigaction.c: Likewise.
39543         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
39544         * modules/signal (Makefile.am): Likewise.
39545         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
39546         needed.
39547         * doc/posix-headers/signal.texi (signal.h): Mention provided
39548         types.
39549         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
39550         that sigaction is preferable.
39551         * doc/posix-functions/sigaction.texi (sigaction): Mention new
39552         module.
39553         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
39554         sigaction.
39555
39556         Improve robustness of sigprocmask by overriding signal.
39557         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
39558         is in use.
39559         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
39560         (SIGKILL, SIGSTOP): Provide fallbacks.
39561         (rpl_signal): Implement.
39562         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
39563         signal can be called inside handlers.
39564
39565         Fix nanosleep module on mingw.
39566         * modules/nanosleep (Depends-on): Add sys_select.
39567         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
39568
39569         Fix licensing of sigprocmask.
39570         * modules/raise (License): Relicense as LGPL.
39571
39572 2008-06-21  Bruno Haible  <bruno@clisp.org>
39573
39574         * lib/propername.c (proper_name_utf8): Don't use the transliterated
39575         result if it contains question marks.
39576         Reported by Michael Geng <linux@michaelgeng.de>.
39577
39578 2008-06-19  Bruno Haible  <bruno@clisp.org>
39579
39580         Fix CVS-ism.
39581         * doc/gnulib.texi: Include updated-stamp.texi.
39582         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
39583         (updated-stamp.texi): New rule.
39584         (gnulib.info): Depend on it.
39585         * doc/.gitignore: Add updated-stamp.texi.
39586         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
39587
39588 2008-06-19  Bruno Haible  <bruno@clisp.org>
39589
39590         * doc/Makefile (gnulib.info): Update and simplify dependencies.
39591         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
39592
39593 2008-06-19  Eric Blake  <ebb9@byu.net>
39594
39595         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
39596         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
39597         Reported by Stepan Kasal.
39598
39599 2008-06-18  Bruno Haible  <bruno@clisp.org>
39600
39601         * lib/fatal-signal.c (init_fatal_signals): Add comment.
39602         Reported by Eric Blake.
39603
39604 2008-06-18  Eric Blake  <ebb9@byu.net>
39605
39606         Work around cygwin 1.5.25 strsignal bug.
39607         * tests/test-strsignal.c: Allow for const char *.
39608         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
39609
39610 2008-06-18  Simon Josefsson  <simon@josefsson.org>
39611
39612         * users.txt: Update URL to article and add author/date
39613         information.
39614
39615 2008-06-17  Bruno Haible  <bruno@clisp.org>
39616
39617         New macro gl_DISABLE_THREADS.
39618         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
39619         if the user did not pass --enable-threads or --disable-threads option.
39620         (gl_DISABLE_THREADS): New macro.
39621         Reported by Eric Blake <ebb9@byu.net>.
39622
39623 2008-06-17  Bruno Haible  <bruno@clisp.org>
39624
39625         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
39626         when the macro ignores it.
39627         Based on a patch by Eric Blake <ebb9@byu.net>.
39628
39629 2008-06-17  Bruno Haible  <bruno@clisp.org>
39630
39631         * modules/tls (License): Change to LGPLv2+.
39632         Reported by Eric Blake.
39633
39634 2008-06-17  Eric Blake  <ebb9@byu.net>
39635
39636         Simplify c-stack prerequisites.
39637         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
39638         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
39639         no longer requires <ucontext.h> to exist.  Optimize setrlimit
39640         check.
39641         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
39642         <sys/resource.h>.
39643
39644         Move c-stack test into testsuite.
39645         * modules/c-stack-tests: New file.
39646         * lib/c-stack.c [DEBUG]: Move test program...
39647         * tests/test-c-stack.c: ...into this new file.  Skip rather than
39648         fail test if sigaltstack is lacking.
39649         * tests/test-c-stack.sh: New driver file.
39650
39651 2008-06-16  Eric Blake  <ebb9@byu.net>
39652
39653         Use raise module consistently.
39654         * modules/fatal-signal (Depends-on): Add raise.
39655         * modules/sigprocmask (Depends-on): Likewise.
39656         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
39657         * lib/sigprocmask.c (sigprocmask): Likewise.
39658         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
39659         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
39660
39661         Fix compliance bug in sigpending.
39662         * lib/sigprocmask.c (sigpending): Return pending array via
39663         parameter, not return value.
39664
39665 2008-06-14  Eric Blake  <ebb9@byu.net>
39666
39667         Improve obstack-printf test code.
39668         * tests/test-obstack-printf.c (test_function): Fix comment, and
39669         simplify usage of obstack_* in macros.  Add a test for coverage.
39670         Reported by Bruno Haible.
39671
39672 2008-06-14  Bruno Haible  <bruno@clisp.org>
39673
39674         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
39675         array size as a constant, not as a const variable.
39676         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
39677         AC_USE_SYSTEM_EXTENSIONS.
39678         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
39679         Test whether the obstack_printf function actually exists.
39680         * modules/obstack-printf (Depends-on): Add extensions.
39681         (Include): Remove obstack.h.
39682         * modules/obstack-printf-posix (Depends-on): Add extensions.
39683         (Include): Remove obstack.h.
39684
39685 2008-06-13  Eric Blake  <ebb9@byu.net>
39686
39687         Add obstack-printf and obstack-printf-posix modules.
39688         * modules/obstack-printf: New file.
39689         * modules/obstack-printf-posix: Likewise.
39690         * MODULES.html.sh (Misc): Mention them.
39691         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
39692         Likewise.
39693         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
39694         Likewise.
39695         * modules/stdio (Makefile.am): Accomodate new modules.
39696         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39697         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
39698         Declare.
39699         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
39700         functions.
39701         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
39702         (gl_REPLACE_OBSTACK_PRINTF): New macros
39703         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
39704         * tests/test-obstack-printf.c: New file.
39705         * modules/obstack-printf-tests: Likewise.
39706         * modules/obstack-printf-posix-tests: Likewise.
39707
39708 2008-06-11  Bruno Haible  <bruno@clisp.org>
39709
39710         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
39711         * lib/open.c: Include errno.h.
39712         (open): Fail when attempting to write to a file that has a trailing
39713         slash.
39714         * tests/test-open.c (main): Test against trailing slash bug.
39715         * doc/posix-functions/open.texi: Mention the trailing slash bug.
39716
39717 2008-06-10  Bruno Haible  <bruno@clisp.org>
39718
39719         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
39720         for $? to work inside the trap command, with various /bin/sh-s.
39721         * tests/test-vc-list-files-cvs.sh: Likewise.
39722
39723 2008-06-10  Bruno Haible  <bruno@clisp.org>
39724
39725         * lib/acl-internal.h: Don't include gettext.h here.
39726         * lib/set-mode-acl.c: Include gettext.h here.
39727         * lib/copy-acl.c: Likewise.
39728
39729 2008-06-10  Bruno Haible  <bruno@clisp.org>
39730
39731         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
39732         * lib/wait-process.c (wait_subprocess): Likewise.
39733         * lib/execute.h (execute): Add termsigp argument.
39734         * lib/execute.c (execute): Likewise.
39735         * lib/csharpcomp.c (compile_csharp_using_pnet,
39736         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
39737         * lib/csharpexec.c (execute_csharp_using_pnet,
39738         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
39739         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
39740         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
39741         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
39742         is_jikes_present): Update.
39743         * lib/javaexec.c (execute_java_class): Update.
39744         * lib/javaversion.c (execute_and_read_line): Update.
39745         * NEWS: Document the changes.
39746         Reported by Eric Blake.
39747
39748 2008-06-10  Eric Blake  <ebb9@byu.net>
39749
39750         Add missing include.
39751         * tests/test-strstr.c (includes): Add <signal.h>.
39752         * tests/test-strcasestr.c (includes): Likewise.
39753         * tests/test-memmem.c (includes): Likewise.
39754
39755 2008-06-10  Bruno Haible  <bruno@clisp.org>
39756
39757         * lib/wait-process.c (wait_subprocess): Add an assertion.
39758
39759 2008-06-10  Bruno Haible  <bruno@clisp.org>
39760
39761         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
39762
39763 2008-06-10  Bruno Haible  <bruno@clisp.org>
39764
39765         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
39766         using alarm().
39767         * tests/test-strcasestr.c (main): Likewise.
39768         * tests/test-strstr.c (main): Likewise.
39769
39770 2008-06-09  Bruno Haible  <bruno@clisp.org>
39771
39772         Work around the Solaris 10 ACE ACLs ABI change.
39773         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
39774         declare if ACL_NO_TRIVIAL is present.
39775         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
39776         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
39777         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
39778         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
39779         define if ACL_NO_TRIVIAL is present.
39780         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
39781         and use the current ABI.
39782         (file_has_acl): Use same #if condition as elsewhere.
39783         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
39784         in use, and use the current ABI.
39785         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
39786         Reported by Jim Meyering.
39787
39788 2008-06-09  Eric Blake  <ebb9@byu.net>
39789
39790         Work around environments that (stupidly) ignore SIGALRM.
39791         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
39792         before using alarm().
39793         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
39794         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39795         Reported by Ian Beckwith <ianb@erislabs.net>.
39796
39797         Produce autobuild blurb earlier in log.
39798         * modules/autobuild (configure.ac-early): Move AB_INIT here.
39799
39800 2008-06-09  Jim Meyering  <meyering@redhat.com>
39801         and OndÅ™ej Vašík  <ovasik@redhat.com>
39802
39803         utimens.c: correct kernel bug work-around
39804         OndÅ™ej Vašík found that the invalid return value of 280 indicates
39805         failure, not success, and the kernel bug we're trying to work
39806         around affects not just the utimensat call, but also the fallback
39807         futimens call.
39808         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
39809         not success.
39810         [HAVE_FUTIMENS]: Use the same work-around, here.
39811
39812 2008-06-09  Jim Meyering  <meyering@redhat.com>
39813
39814         add more guards around definition of ACE_-related code
39815         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
39816         ALLOW and ACE_OWNER are also defined.
39817
39818 2008-06-08  Bruno Haible  <bruno@clisp.org>
39819
39820         * lib/acl-internal.h: Add me as co-author.
39821         * lib/file-has-acl.c: Likewise.
39822         * lib/set-mode-acl.c: Likewise.
39823         * lib/copy-acl.c: Likewise.
39824
39825 2008-06-08  Bruno Haible  <bruno@clisp.org>
39826
39827         Add support for AIX ACLs.
39828         * lib/acl-internal.h (acl_nontrivial): New declaration.
39829         * lib/file-has-acl.c (acl_nontrivial): New function.
39830         (file_has_acl): Add implementation using AIX 4 ACL API.
39831         * lib/set-mode-acl.c (qset_acl): Likewise.
39832         * lib/copy-acl.c (qcopy_acl): Likewise.
39833
39834 2008-06-08  Bruno Haible  <bruno@clisp.org>
39835
39836         Add support for HP-UX ACLs.
39837         * lib/acl-internal.h (acl_nontrivial): New declaration.
39838         * lib/file-has-acl.c (acl_nontrivial): New function.
39839         (file_has_acl): Add implementation using HP-UX 11 ACL API.
39840         * lib/set-mode-acl.c (qset_acl): Likewise.
39841         * lib/copy-acl.c (qcopy_acl): Likewise.
39842
39843 2008-06-08  Bruno Haible  <bruno@clisp.org>
39844
39845         Add support for Cygwin ACLs.
39846         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
39847         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
39848         the chmod_or_fchmod call.
39849         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
39850
39851 2008-06-08  Bruno Haible  <bruno@clisp.org>
39852
39853         Fix bug with setuid modes in Solaris 10+ code.
39854         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
39855         succeeded, when the mode contains some special bits.
39856
39857 2008-06-08  Bruno Haible  <bruno@clisp.org>
39858
39859         Add support for Solaris 7..10 ACLs.
39860         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
39861         declarations.
39862         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
39863         functions.
39864         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
39865         * lib/set-mode-acl.c (qset_acl): Likewise.
39866         * lib/copy-acl.c (qcopy_acl): Likewise.
39867
39868 2008-06-08  Bruno Haible  <bruno@clisp.org>
39869
39870         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
39871         declaration.
39872         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
39873         (acl_access_nontrivial): Remove MacOS X case.
39874         (file_has_acl): Use acl_extended_nontrivial.
39875         * lib/copy-acl.c (qcopy_acl): Likewise.
39876
39877 2008-06-08  Bruno Haible  <bruno@clisp.org>
39878
39879         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
39880
39881 2008-06-08  Jim Meyering  <meyering@redhat.com>
39882
39883         * modules/acl (Maintainer): Add Bruno Haible.
39884
39885 2008-06-07  Bruno Haible  <bruno@clisp.org>
39886
39887         Improve support for Tru64 ACLs.
39888         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
39889         ACL on OSF/1.
39890
39891 2008-06-07  Bruno Haible  <bruno@clisp.org>
39892
39893         Add support for MacOS X ACLs.
39894         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
39895         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
39896         * lib/set-mode-acl.c (qset_acl): Likewise.
39897         * lib/copy-acl.c (qcopy_acl): Likewise.
39898
39899 2008-06-07  Bruno Haible  <bruno@clisp.org>
39900
39901         Fix memory leak introduced on 2008-05-22.
39902         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
39903         use.
39904
39905 2008-06-07  Bruno Haible  <bruno@clisp.org>
39906
39907         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
39908         to construct an empty ACL.
39909
39910 2008-06-07  Bruno Haible  <bruno@clisp.org>
39911
39912         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
39913         precisely.
39914         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
39915
39916 2008-06-07  Bruno Haible  <bruno@clisp.org>
39917
39918         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
39919         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
39920
39921 2008-06-07  Bruno Haible  <bruno@clisp.org>
39922
39923         * doc/posix-functions/_setjmp.texi: Explain the use of this function
39924         regardless of POSIX.
39925         * doc/posix-functions/_longjmp.texi: Likewise.
39926         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
39927         SystemV platform in this case.
39928
39929 2008-06-06  Eric Blake  <ebb9@byu.net>
39930
39931         Document abort() bugs.
39932         * doc/posix-functions/abort.texi (abort): Mention anomalies.
39933
39934         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
39935         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
39936         sigsetjmp.
39937         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
39938         siglongjmp, but only as a macro.
39939         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
39940         is obsolete.
39941         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
39942
39943         Tweak documentation to cover cygwin argz bugs.
39944         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
39945         argz bug fix; no code change needed since no cygwin releases
39946         occurred between the last fix and the bug being tested.
39947         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
39948         module and recently fixed cygwin bugs.
39949         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
39950         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
39951         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
39952         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
39953         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
39954         Likewise.
39955         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
39956         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
39957         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
39958         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
39959         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
39960         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
39961         Likewise.
39962
39963         Avoid gcc warning on cygwin.
39964         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
39965         !ACL_NO_TRIVIAL]: Avoid unused variable.
39966
39967 2008-06-05  Eric Blake  <ebb9@byu.net>
39968
39969         Be tolerant of UNKNOWN version in gnulib-tool test dir.
39970         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
39971         git-version-gen fails to come up with a version.
39972         Reported by Simon Josefsson.
39973
39974 2008-06-05  Jim Meyering  <meyering@redhat.com>
39975             Paul Eggert  <eggert@cs.ucla.edu>
39976
39977         utimens.c: work around a probable Linux kernel bug
39978         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
39979         appears to be a kernel bug that causes utimensat to return 280
39980         instead of 0, indicating success.
39981
39982 2008-06-04  Bruno Haible  <bruno@clisp.org>
39983
39984         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
39985         2008-06-01 commit.
39986
39987 2008-06-04  Bruno Haible  <bruno@clisp.org>
39988
39989         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
39990         * lib/file-has-acl.c (acl_access_nontrivial): New function.
39991         (file_has_acl): Use it. Save errno afterwards.
39992         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
39993
39994 2008-06-03  Bruno Haible  <bruno@clisp.org>
39995
39996         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
39997         draft code. Simplify #ifs.
39998         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
39999         Put Solaris code after POSIX-draft code. Fix comments regarding
40000         Solaris 10, HP-UX. Mention Cygwin.
40001         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
40002
40003 2008-06-03  Eric Blake  <ebb9@byu.net>
40004
40005         Provide fallback for older kernels.
40006         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
40007         Provide runtime fallback if kernel lacks support.
40008         Reported by Mike Frysinger.
40009
40010 2008-06-02  Bruno Haible  <bruno@clisp.org>
40011
40012         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
40013         it exists.
40014
40015 2008-06-02  Bruno Haible  <bruno@clisp.org>
40016
40017         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
40018         * lib/copy-acl.c (qcopy_acl): Update comment.
40019
40020 2008-06-02  Bruno Haible  <bruno@clisp.org>
40021
40022         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
40023         like ACL APIs.
40024
40025 2008-06-02  Bruno Haible  <bruno@clisp.org>
40026
40027         * tests/test-file-has-acl.sh: Use different code for Cygwin.
40028         * tests/test-set-mode-acl.sh: Likewise.
40029         * tests/test-copy-acl.sh: Likewise.
40030         * tests/test-copy-file.sh: Likewise.
40031
40032 2008-06-02  Bruno Haible  <bruno@clisp.org>
40033
40034         * tests/test-file-has-acl.sh: Remove unused code.
40035
40036 2008-06-01  Bruno Haible  <bruno@clisp.org>
40037
40038         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
40039         (copy_acl): Just a wrapper around qcopy_acl that emits the error
40040         messages.
40041         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
40042
40043 2008-06-01  Bruno Haible  <bruno@clisp.org>
40044
40045         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
40046         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
40047         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
40048         APIs.
40049         * modules/acl-tests (configure.ac): Remove tests now contained in
40050         m4/acl.m4.
40051
40052 2008-06-02  Jim Meyering  <meyering@redhat.com>
40053
40054         announce-gen: use a better key-server host name
40055         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
40056         it may be more consistently reliable.  Suggested by Werner Koch
40057         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
40058
40059 2008-06-01  Bruno Haible  <bruno@clisp.org>
40060
40061         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
40062         Reported by Voroskoi Andras <voroskoi@gmail.com>.
40063
40064 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
40065
40066         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
40067
40068 2008-06-01  Bruno Haible  <bruno@clisp.org>
40069
40070         New ACL tests.
40071         * tests/test-file-has-acl.sh: New file.
40072         * tests/test-file-has-acl.c: New file.
40073         * tests/test-set-mode-acl.sh: New file.
40074         * tests/test-set-mode-acl.c: New file.
40075         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
40076         * tests/test-copy-acl.c: New file.
40077         * modules/acl-tests: New file, based on modules/copy-file-tests.
40078         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
40079         (Depends-on): Add acl-tests.
40080         (configure.ac): Remove checks.
40081         (Makefile.am): Don't create test-sameacls program here any more.
40082
40083 2008-06-01  Bruno Haible  <bruno@clisp.org>
40084
40085         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
40086         * tests/test-sameacls.c: Include progname.h.
40087         (main): Invoke set_program_name. Portability fixes for MacOS X,
40088         Solaris, HP-UX.
40089
40090 2008-06-01  Bruno Haible  <bruno@clisp.org>
40091
40092         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
40093         function.
40094         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
40095
40096 2008-06-01  Bruno Haible  <bruno@clisp.org>
40097
40098         * modules/rpmatch (Depends-on): Add strdup.
40099
40100 2008-06-01  Bruno Haible  <bruno@clisp.org>
40101
40102         * lib/pipe.c: Include unistd-safer.h.
40103         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
40104         * modules/pipe (Depends-on): Add unistd-safer.
40105
40106 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40107
40108         * modules/autobuild (configure.ac): Call AB_INIT.
40109
40110 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40111
40112         * tests/test-getaddrinfo.c: Don't print debug messages by default.
40113         Suggested by Bruno Haible <bruno@clisp.org>.
40114
40115 2008-05-30  Simon Josefsson  <simon@josefsson.org>
40116
40117         * tests/test-base64.c: Cast size_t to unsigned long when invoking
40118         printf.  Use %lu instead of %d.  Reported by Bruno Haible
40119         <bruno@clisp.org>.
40120
40121 2008-05-29  Eric Blake  <ebb9@byu.net>
40122
40123         Prefer new POSIX 200x interfaces over futimesat.
40124         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
40125         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
40126         when available.
40127         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
40128
40129 2008-05-28  Bruno Haible  <bruno@clisp.org>
40130
40131         * modules/stpcpy (License): Change to LGPLv2+.
40132         Requested by David Lutterkort <dlutter@redhat.com>.
40133
40134 2008-05-27  Bruno Haible  <bruno@clisp.org>
40135
40136         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
40137         current mingw.
40138         Reported by Jose E. Marchesi <jemarch@gnu.org>.
40139
40140 2008-05-27  Bruno Haible  <bruno@clisp.org>
40141
40142         * modules/iconv_open (Link): New section, from module 'iconv'.
40143         * modules/striconv (Link): Likewise.
40144         * modules/striconveh (Link): Likewise.
40145         * modules/xstriconv (Link): Likewise.
40146         * modules/unicodeio (Link): Likewise.
40147         * modules/propername (Link): Likewise.
40148         Reported by Jim Meyering.
40149
40150 2008-05-26  Jim Meyering  <meyering@redhat.com>
40151
40152         sha256: do not artificially restrict buffer length to be < 2^32
40153         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
40154         uint32_t to size_t.
40155         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
40156         to match.
40157
40158         avoid unaligned access errors, e.g., on sparc
40159         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
40160         direct access through a possibly-unaligned uint64* pointer.
40161         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
40162         direct access through a possibly-unaligned uint32* pointer.
40163         Prompted by this patch from Tom "spot" Callaway:
40164         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
40165
40166         sha512.c: fix typo in comment
40167         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
40168
40169 2008-05-25  Bruno Haible  <bruno@clisp.org>
40170
40171         * lib/set-mode-acl.c: Renamed from lib/acl.c.
40172         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
40173         (Makefile.am): Update lib_SOURCES.
40174
40175 2008-05-25  Bruno Haible  <bruno@clisp.org>
40176
40177         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
40178
40179 2008-05-25  Jim Meyering  <meyering@redhat.com>
40180
40181         useless-if-before-free: freed expr may have white-space differences
40182         * build-aux/useless-if-before-free: Recognize cases in which the
40183         freed expression differs from the tested one in embedded white
40184         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
40185         $1 was used, so we can't make any regexp shy.  Improved tests now
40186         detect this.
40187
40188         useless-if-before-free: accept white space in the expression.
40189         * build-aux/useless-if-before-free: For now, any white space
40190         in the expression must be identical in the free argument.
40191
40192         useless-if-before-free: efficiency tweak
40193         * build-aux/useless-if-before-free: Make the expression-matching
40194         regexp "shy".
40195         Make the *outer* regexp shy, not the expr-matching one.
40196
40197         update code-in-comment to accept cast of free arg
40198         * build-aux/useless-if-before-free: Update regexp.
40199
40200 2008-05-25  Bruno Haible  <bruno@clisp.org>
40201
40202         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
40203         * modules/copy-file-tests (Files, Makefile.am): Update.
40204         * tests/test-copy-file.c (func_test_copy): Update.
40205
40206 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
40207
40208         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
40209
40210 2008-05-23  Bruno Haible  <bruno@clisp.org>
40211
40212         Improve support for ACLs on OSF/1.
40213         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
40214         Remove fallback for unknown flavors of ACLs.
40215
40216 2008-05-22  Bruno Haible  <bruno@clisp.org>
40217
40218         Add support for ACLs on OSF/1.
40219         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
40220         replacements.
40221         (acl_free_text): New macro fallback.
40222         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
40223         acl_free.
40224         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
40225         acl_free_text function. Require AC_C_INLINE.
40226
40227 2008-05-22  Bruno Haible  <bruno@clisp.org>
40228
40229         Make copy_acl work on MacOS X 10.5.
40230         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
40231         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
40232         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
40233         If MODE_INSIDE_ACL, don't assume that every system has the same text
40234         representation for ACLs as FreeBSD.
40235         * lib/copy-acl.c (copy_acl): Add support for platforms with
40236         !MODE_INSIDE_ACL.
40237         * lib/file-has-acl.c (file_has_acl): Likewise.
40238         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
40239         FreeBSD, MacOS X, or IRIX, respectively.
40240
40241 2008-05-22  Bruno Haible  <bruno@clisp.org>
40242
40243         * lib/acl.h: Don't include <sys/acl.h>.
40244         (GETACLCNT): Move fallback to lib/acl-internal.h.
40245         * lib/acl-internal.h: Include <sys/acl.h> here.
40246         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
40247
40248 2008-05-22  Bruno Haible  <bruno@clisp.org>
40249
40250         Split off copy_acl function to separate file.
40251         * lib/copy-acl.c: New file, extracted from lib/acl.c.
40252         * lib/acl.c (copy_acl): Moved function to separate file.
40253         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
40254         * modules/acl (Files): Add lib/copy-acl.c.
40255         (Makefiles.am): Augment lib_SOURCES.
40256
40257 2008-05-22  Bruno Haible  <bruno@clisp.org>
40258
40259         * modules/copy-file-tests: New file.
40260         * tests/test-copy-file.sh: New file.
40261         * tests/test-copy-file.c: New file.
40262         * tests/test-copy-file-sameacls.c: New file.
40263
40264 2008-05-22  Eric Blake  <ebb9@byu.net>
40265
40266         Avoid gcc warning.
40267         * tests/test-memcmp.c (main): Pass NULL indirectly.
40268
40269 2008-05-21  Bruno Haible  <bruno@clisp.org>
40270
40271         Add reference doc about ACLs.
40272         * doc/acl-resources.txt: New file.
40273         * doc/acl-cygwin.txt: New file.
40274
40275 2008-05-21  Bruno Haible  <bruno@clisp.org>
40276
40277         Avoid one more warning from gcc.
40278         * lib/vasnprintf.c (IF_LINT): Update comments.
40279         (VASNPRINTF): Use it also for the 'prefix' array initializer.
40280
40281 2008-05-21  Jim Meyering  <meyering@redhat.com>
40282
40283         avoid a warning from gcc
40284         * lib/vasnprintf.c (IF_LINT): Define.
40285         (scale10_round_decimal_long_double):
40286         Use it to avoid a "may be used uninitialized" warning.
40287         (scale10_round_decimal_double): Likewise.
40288
40289 2008-05-21  Simon Josefsson  <simon@josefsson.org>
40290
40291         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
40292         declared.
40293
40294 2008-05-20  Bruno Haible  <bruno@clisp.org>
40295
40296         * tests/test-memcmp.c (main): Test also the sign of the result. Test
40297         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
40298
40299 2008-05-20  Simon Josefsson  <simon@josefsson.org>
40300
40301         * modules/memcmp-tests: New file.
40302         * tests/test-memcmp.c: New file.
40303
40304 2008-05-19  Bruno Haible  <bruno@clisp.org>
40305
40306         * modules/propername (Notice, configure.ac): Put quoted "..." into
40307         --keyword option.
40308         * lib/propername.h: Update comments accordingly.
40309         Reported by Eric Blake.
40310
40311 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
40312
40313         * modules/getpass-gnu (Depends-on): Add fseeko.
40314
40315 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40316
40317         * modules/base64-tests: New file.
40318
40319 2008-05-19  Bo Borgerson <gigabo@gmail.com>
40320
40321         * lib/base64.c (base64_decode_ctx): If a decode context structure
40322         was passed in use it to ignore newlines.  If a context structure
40323         was _not_ passed in, continue to treat newlines as garbage (this
40324         is the historical behavior).  Formerly base64_decode.
40325         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40326         takes a decode context structure.
40327         * lib/base64.h (base64_decode): Macro for four-argument calls.
40328         (base64_decode_alloc): Likewise.
40329         * lib/base64.c (base64_decode_ctx): If a decode context structure
40330         was passed in use it to ignore newlines.  If a context structure
40331         was _not_ passed in, continue to treat newlines as garbage (this
40332         is the historical behavior).  Formerly base64_decode.
40333         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
40334         takes a decode context structure.
40335         * lib/base64.h (base64_decode): Macro for four-argument calls.
40336         (base64_decode_alloc): Likewise.
40337
40338 2008-05-19  Jim Meyering  <meyering@redhat.com>
40339
40340         avoid a warning from gcc
40341         * lib/trim.c (IF_LINT): Define.
40342         (trim2): Use it to avoid a "may be used uninitialized" warning.
40343
40344         Fix doc typo.
40345         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
40346
40347 2008-05-19  Bruno Haible  <bruno@clisp.org>
40348
40349         * doc/glibc-functions/getpass.texi: Document limits of other
40350         implementations.
40351
40352 2008-05-19  Simon Josefsson  <simon@josefsson.org>
40353             Bruno Haible <bruno@clisp.org>
40354
40355         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
40356
40357 2008-05-18  Bruno Haible  <bruno@clisp.org>
40358
40359         * modules/propername: New file, from GNU gettext.
40360         * lib/propername.h: New file, from GNU gettext.
40361         * lib/propername.c: New file, from GNU gettext.
40362         * MODULES.html.sh (Internationalization functions): Add propername.
40363
40364 2008-05-16  Jim Meyering  <meyering@redhat.com>
40365             Bruno Haible  <bruno@clisp.org>
40366
40367         Avoid some warnings from "gcc -Wshadow".
40368         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
40369
40370 2008-05-15  Eric Blake  <ebb9@byu.net>
40371
40372         Extend previous patch to cygwin 1.7.0.
40373         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
40374         fast implementation in cygwin >= 1.7.0.
40375         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40376         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40377
40378 2008-05-15  Bruno Haible  <bruno@clisp.org>
40379
40380         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
40381         implementation in glibc >= 2.9.
40382         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
40383         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
40384
40385 2008-05-15  Bruno Haible  <bruno@clisp.org>
40386
40387         * MODULES.html.sh (Internationalization functions): Remove linebreak.
40388         (Unicode string functions): Add unilbrk/*.
40389         Reported by Karl Berry.
40390
40391 2008-05-15  Eric Blake  <ebb9@byu.net>
40392
40393         Fix violation of <stdbool.h> replacement in regex.
40394         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
40395         * lib/regexec.c (re_search_internal): Likewise.
40396         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
40397
40398 2008-05-15  Jim Meyering  <meyering@redhat.com>
40399
40400         avoid distracting test output when git or cvs is not found
40401         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
40402         * tests/test-vc-list-files-git.sh: Likewise.
40403
40404 2008-05-15  Eric Blake  <ebb9@byu.net>
40405
40406         Glibc finally accepted the memmem speedup code, bugzilla #5514.
40407         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
40408         glibc version.
40409         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40410         * doc/posix-functions/strstr.texi (strstr): Likewise.
40411         * lib/str-two-way.h (MAX): Sychronize with glibc.
40412
40413 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
40414
40415         * lib/regcomp.c (optimize_utf8): Add a note on why we test
40416         opr.ctx_type.
40417         (calc_first): Initialize constraint field.
40418         (duplicate_node_closure): Use it instead of special casing ANCHORS.
40419         Fix grammar.
40420         (duplicate_node): Merge constraint field for all node types.
40421         (calc_eclosure_iter): Look at constraint field for all node types.
40422         * lib/regex_internal.c (create_cd_newstate): Don't look at
40423         opr.ctx_type.
40424
40425 2008-05-14  Bruno Haible  <bruno@clisp.org>
40426
40427         Help GCC to do better code generation.
40428         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
40429         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
40430         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
40431         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
40432         Declare with attribute 'malloc' if supported.
40433
40434 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
40435
40436         use "echo STR|wc -c" rather than unportable "expr length STR"
40437         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
40438         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
40439
40440 2008-05-14  Jim Meyering  <meyering@redhat.com>
40441
40442         use dd ibs=$n count=1 ... rather than less-portable head -c$n
40443         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
40444         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
40445         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
40446         via Collin Lasse.
40447
40448 2008-05-14  Eric Blake  <ebb9@byu.net>
40449
40450         Avoid quadratic growth in gl_LIBSOURCES.
40451         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
40452         Suggested by Bruno Haible.
40453
40454         Test xmemdup0.
40455         * modules/xmemdup0-tests: New file.
40456         * tests/test-xmemdup0.c: Likewise.
40457
40458 2008-05-13  Eric Blake  <ebb9@byu.net>
40459
40460         Split xmemdup0 into its own module.
40461         * modules/xmemdup0: New file.
40462         * lib/xmemdup0.h: Likewise.
40463         * lib/xmemdup0.c: Likewise.
40464         * MODULES.html.sh (Memory management functions): Add xmemdup0.
40465         * lib/xalloc.h (xmemdup0): Remove.
40466         * lib/xmalloc.c (xmemdup0): Likewise.
40467
40468 2008-05-13  Eric Blake  <ebb9@byu.net>
40469             Bruno Haible  <bruno@clisp.org>
40470
40471         Reduce number of forks required during autoconf.
40472         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
40473         and gl_LIBSOURCES_DIR.
40474         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
40475         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
40476         m4_syscmd per file.
40477         <m4_foreach_w>: Move...
40478         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
40479
40480 2008-05-13  Eric Blake  <ebb9@byu.net>
40481
40482         * gnulib-tool: Fix various comment typos.
40483
40484 2008-05-12  Bruno Haible  <bruno@clisp.org>
40485
40486         Tailor the linebreaking algorithm.
40487         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
40488
40489 2008-05-12  Bruno Haible  <bruno@clisp.org>
40490
40491         Update to Unicode 5.0.0.
40492         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40493         LBP_JV, LBP_JT. Redistribute values.
40494         (unilbrk_table): Change size.
40495         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
40496         Unicode TR#14 rev. 22.
40497         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
40498         LBP_JV, LBP_JT. Redistribute values.
40499         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
40500         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
40501         Update.
40502         * lib/unilbrk/lbrkprop1.h: Regenerated.
40503         * lib/unilbrk/lbrkprop2.h: Regenerated.
40504         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
40505         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
40506         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
40507         Likewise.
40508         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
40509         Likewise.
40510         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
40511         result.
40512         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
40513         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
40514         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
40515         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
40516         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
40517         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
40518
40519 2008-05-11  Bruno Haible  <bruno@clisp.org>
40520
40521         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
40522
40523 2008-05-11  Bruno Haible  <bruno@clisp.org>
40524
40525         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
40526         * modules/unilbrk/gen-lbrk: New file.
40527
40528 2008-05-11  Bruno Haible  <bruno@clisp.org>
40529
40530         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
40531         * m4/sha512.m4 (gl_SHA512): Likewise.
40532
40533 2008-05-11  Jim Meyering  <meyering@redhat.com>
40534
40535         New modules: crypto/sha256, crypto/sha512 (from coreutils)
40536         * modules/crypto/sha256: New file.
40537         * modules/crypto/sha512: Likewise.
40538         * lib/sha256.c: Likewise.
40539         * lib/sha256.h: Likewise.
40540         * lib/sha512.c: Likewise.
40541         * lib/sha512.h: Likewise.
40542         * lib/u64.h: Likewise.
40543         * m4/sha256.m4: Likewise.
40544         * m4/sha512.m4: Likewise.
40545         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
40546
40547 2008-05-10  Bruno Haible  <bruno@clisp.org>
40548
40549         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
40550         (Input/Output <stdio.h>): Add xprintf.
40551         (Signal handling <signal.h>): Add strsignal.
40552         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
40553         (Core language properties): Add func.
40554         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
40555         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
40556         strings.
40557         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
40558         (Input/output): New section.
40559         (File system functions): Add openat-die, stat-macros.
40560         (Networking functions): Add sockets.
40561         (Unicode string functions): Add unictype/*.
40562         (Support for building libraries and executables): Add gperf.
40563         (Support for building documentation): Add agpl-3.0.
40564         (Misc): Add nocrash.
40565
40566 2008-05-10  Bruno Haible  <bruno@clisp.org>
40567
40568         * modules/unictype/gen-ctype: New file.
40569
40570 2008-05-10  Jim Meyering  <meyering@redhat.com>
40571
40572         Make chdir-safer.c more efficient on a system with no symlinks.
40573         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
40574         also if ELOOP is zero.  Suggested by Bruno Haible.
40575
40576         Make chdir-safer.c slightly safer.
40577         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
40578         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
40579
40580         Avoid compile failure on systems without ELOOP (like mingw).
40581         * lib/chdir-safer.c (ELOOP): Define if not already defined.
40582         Reported by Bruno Haible.
40583
40584 2008-05-10  Bruno Haible  <bruno@clisp.org>
40585
40586         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
40587         (is_utf8_encoding): Use a case-insensitive comparison.
40588         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
40589         streq.
40590
40591 2008-05-10  Bruno Haible  <bruno@clisp.org>
40592
40593         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
40594         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
40595         * lib/unilbrk/ulc-common.h (iconv_string_length,
40596         iconv_string_keeping_offsets): Remove declarations.
40597         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
40598         Don't include <iconv.h>, streq.h, xsize.h.
40599         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
40600         conversion.
40601         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
40602         <iconv.h>, streq.h, xsize.h.
40603         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
40604         conversion.
40605         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
40606         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
40607         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
40608         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
40609
40610 2008-05-10  Bruno Haible  <bruno@clisp.org>
40611
40612         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
40613         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
40614
40615         * modules/unilbrk/u32-width-linebreaks-tests: New file.
40616         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
40617
40618         * modules/unilbrk/u16-width-linebreaks-tests: New file.
40619         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
40620
40621         * modules/unilbrk/u8-width-linebreaks-tests: New file.
40622         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
40623
40624         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
40625         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
40626
40627         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
40628         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
40629
40630         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
40631         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
40632
40633         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
40634         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
40635
40636 2008-05-10  Bruno Haible  <bruno@clisp.org>
40637
40638         Split up 'linebreak' module.
40639         * lib/unilbrk.h: New file, based on lib/linebreak.h.
40640         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
40641         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
40642         modifications.
40643         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
40644         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
40645         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
40646         lib/linebreak.c.
40647         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
40648         lib/linebreak.c.
40649         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
40650         lib/linebreak.c.
40651         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
40652         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
40653         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
40654         lib/linebreak.c.
40655         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
40656         lib/linebreak.c.
40657         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
40658         lib/linebreak.c.
40659         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
40660         lib/linebreak.c.
40661         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
40662         lib/linebreak.c.
40663         * modules/unilbrk/base: New file.
40664         * modules/unilbrk/tables: New file.
40665         * modules/unilbrk/u8-possible-linebreaks: New file.
40666         * modules/unilbrk/u16-possible-linebreaks: New file.
40667         * modules/unilbrk/u32-possible-linebreaks: New file.
40668         * modules/unilbrk/ulc-common: New file.
40669         * modules/unilbrk/ulc-possible-linebreaks: New file.
40670         * modules/unilbrk/u8-width-linebreaks: New file.
40671         * modules/unilbrk/u16-width-linebreaks: New file.
40672         * modules/unilbrk/u32-width-linebreaks: New file.
40673         * modules/unilbrk/ulc-width-linebreaks: New file.
40674         * lib/linebreak.h: Remove file.
40675         * lib/linebreak.c: Remove file.
40676         * m4/linebreak.m4: Remove file.
40677         * modules/linebreak: Remove file.
40678         * NEWS: Mention the changes.
40679
40680 2008-05-09  Eric Blake  <ebb9@byu.net>
40681
40682         Add xmemdup0.
40683         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
40684         implementation.
40685         * lib/xmalloc.c (xmemdup0): New C implementation.
40686
40687 2008-05-08  Bruno Haible  <bruno@clisp.org>
40688
40689         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
40690
40691 2008-05-07  Eric Blake  <ebb9@byu.net>
40692
40693         Support cross-compilation of <wctype.h>.
40694         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
40695         AC_CACHE_CHECK.
40696
40697 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
40698
40699         * build-aux/vc-list-files: Add support for bzr.
40700
40701 2008-05-03  Jim Meyering  <meyering@redhat.com>
40702
40703         avoid failed assertion with tight malloc
40704         * tests/test-getndelim2.c: Correct an off-by-one assertion.
40705
40706 2008-05-03  Simon Josefsson  <simon@josefsson.org>
40707
40708         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
40709         are needed from arpa/inet.h.
40710         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
40711         Reported by Bruno Haible.
40712
40713 2008-05-02  Jim Meyering  <meyering@redhat.com>
40714
40715         avoid compilation error on FreeBSD 6
40716         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
40717
40718 2008-05-01  Jim Meyering  <meyering@redhat.com>
40719
40720         useless-if-before-free: correct --help's exit status description
40721         * build-aux/useless-if-before-free (usage): Like grep, exit 0
40722         for one or more matches, etc.  Reported by Bruno Haible.
40723
40724         vc-list-files: make the stand-alone gnulib test work
40725         * modules/vc-list-files-tests (configure.ac):
40726         Define and AC_SUBST abs_aux_dir.
40727         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
40728         $(abs_top_srcdir) to each script and having each of them
40729         duplicate the work of setting PATH, set PATH here, using
40730         the new variable, abs_aux_dir instead.
40731         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
40732         * tests/test-vc-list-files-git.sh: Likewise.
40733         Reported by Bruno Haible.
40734
40735 2008-05-01  Bruno Haible  <bruno@clisp.org>
40736
40737         * lib/getndelim2.c (getndelim2): Fix newsize computation during
40738         reallocation. Rename 'done' to 'found_delimiter'.
40739
40740 2008-05-01  Jim Meyering  <meyering@redhat.com>
40741
40742         vc-list-files: accommodate /bin/sh like the one from Solaris 10
40743         * build-aux/vc-list-files: Use `...`, not $(...).
40744
40745 2008-04-30  Jim Meyering  <meyering@redhat.com>
40746
40747         add tests for vc-list-files
40748         * modules/vc-list-files-tests: New module.
40749         * tests/test-vc-list-files-cvs.sh: New file.
40750         * tests/test-vc-list-files-git.sh: New file.
40751
40752         avoid a warning from gcc
40753         * lib/getndelim2.c (IF_LINT): Define.
40754         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
40755
40756         vc-list-files: work properly with build-aux/cvsu, too
40757         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
40758         to all cvs-based clauses.
40759
40760         vc-list-files: work properly in the CVS+awk case, too
40761         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
40762
40763         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
40764         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
40765         take more than one file argument, so .  Add quotes, just in case $dir
40766         ever contains a shell meta-character.  Prompted by Soren Hansen in
40767         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
40768
40769 2008-04-29  Eric Blake  <ebb9@byu.net>
40770
40771         Optimize getndelim2 to use block operations when possible.
40772         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
40773         freadseek, and memchr2.
40774         * lib/getndelim2.c (getndelim2): Use them for block reads.
40775
40776 2008-04-29  Bruno Haible  <bruno@clisp.org>
40777
40778         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
40779         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40780         * modules/inet_ntop (Depends-on): Add extensions.
40781         * modules/inet_pton (Depends-on): Likewise.
40782         Reported by Simon Josefsson.
40783
40784 2008-04-29  Jim Meyering  <meyering@redhat.com>
40785
40786         When the is more than one match in a block, match all of them.
40787         * build-aux/useless-if-before-free: Iterate through each block
40788         until there are no more matches.
40789
40790         Fix broken useless-if-before-free script.
40791         * build-aux/useless-if-before-free: Fix typo: missing "?" after
40792         the expression to match cast of argument to free-like function.
40793
40794 2008-04-29  Eric Blake  <ebb9@byu.net>
40795
40796         Use new header.
40797         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
40798
40799 2008-04-29  Jim Meyering  <meyering@redhat.com>
40800
40801         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
40802         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
40803         by gnulib to exist and to declare e.g., inet_ntop.
40804         Don't include "inet_ntop.h", now removed.
40805
40806         * m4/arpa_inet_h.m4: Remove trailing blanks.
40807
40808 2008-04-29  Eric Blake  <ebb9@byu.net>
40809
40810         Silence valgrind on safe reads beyond potential array bounds.
40811         * lib/rawmemchr.valgrind: New file.
40812         * lib/strchrnul.valgrind: Likewise.
40813         * modules/rawmemchr (Files): Distribute new file.
40814         * modules/strchrnul (Files): Likewise.
40815         Suggested by Bruno Haible.
40816
40817 2008-04-29  Bruno Haible  <bruno@clisp.org>
40818
40819         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
40820         (inet_ntop, inet_pton): Change portability warning's wording.
40821         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
40822         Invoke gl_CHECK_NEXT_HEADERS.
40823         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
40824         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
40825         set ARPA_INET_H.
40826         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40827         * modules/arpa_inet (Description): No longer only for systems that
40828         lack it.
40829         (Depends-on): Add include_next.
40830         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
40831         HAVE_ARPA_INET_H.
40832
40833 2008-04-29  Jim Meyering  <meyering@redhat.com>
40834
40835         * modules/mkdir (License): Re-license as LGPLv2+.
40836
40837 2008-04-29  Bruno Haible  <bruno@clisp.org>
40838
40839         * modules/rawmemchr (Maintainer): Set to Eric.
40840         * modules/strchrnul (Maintainer): Likewise.
40841
40842 2008-04-29  Simon Josefsson  <simon@josefsson.org>
40843
40844         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
40845         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
40846
40847         * modules/arpa_inet (arpa/inet.h): Use them.
40848
40849 2008-04-28  Eric Blake  <ebb9@byu.net>
40850
40851         Test getndelim2.
40852         * modules/getndelim2-tests: New file.
40853         * tests/test-getndelim2.c: Likewise.
40854         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
40855         stream.
40856         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
40857
40858         * MODULES.html.sh: Document new module.
40859
40860 2008-04-20  Bruno Haible  <bruno@clisp.org>
40861
40862         * lib/c-stack.c (die): Use raise.
40863         * modules/c-stack (Depends-on): Add raise.
40864
40865 2008-04-28  Bruno Haible  <bruno@clisp.org>
40866
40867         Expect rpmatch to be declared.
40868         * lib/yesno.c (rpmatch): Remove declaration.
40869
40870         Declare rpmatch.
40871         * lib/stdlib.in.h (rpmatch): New declaration.
40872         * lib/rpmatch.c: Include <stdlib.h> first.
40873         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
40874         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
40875         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
40876         HAVE_RPMATCH.
40877         * modules/rpmatch (Depends-on): Add stdlib, extensions.
40878         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
40879         (Include): Set to <stdlib.h>.
40880         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
40881         HAVE_RPMATCH.
40882         * NEWS: Document the change.
40883
40884 2008-04-28  Bruno Haible  <bruno@clisp.org>
40885
40886         Change rpmatch to use nl_langinfo when appropriate.
40887         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
40888         (N_): New macro.
40889         (localized_pattern): New function/macro.
40890         (try): Remove match, nomatch arguments. Copy the pattern into safe
40891         memory before caching it.
40892         (rpmatch): Use localized_pattern. Add translator comments.
40893         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
40894         Suggested by Eric Blake.
40895         * modules/rpmatch (Depends-on): Add stdbool.
40896
40897 2008-04-28  Eric Blake  <ebb9@byu.net>
40898
40899         Add rawmemchr module, matching glibc.
40900         * modules/string (Makefile.am): New indicator.
40901         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
40902         * lib/string.in.h (rawmemchr): Declare when appropriate.
40903         * modules/rawmemchr: New file.
40904         * m4/rawmemchr.m4: Likewise.
40905         * lib/rawmemchr.c: Likewise.
40906         * modules/rawmemchr-tests: Likewise.
40907         * tests/test-rawmemchr.c: Likewise.
40908         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
40909         module.
40910         * modules/strchrnul (Depends-on): Add rawmemchr.
40911         * lib/strchrnul.c (strchrnul): Optimize a corner case.
40912
40913         Whitespace cleanup.
40914         * tests/test-strchrnul.c: Reindent.
40915         * lib/strchrnul.c: Likewise.
40916
40917         Optimize and test strchrnul.
40918         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
40919         * modules/strchrnul-tests: New file.
40920         * tests/test-strchrnul.c: Likewise.
40921
40922         Remove intprops dependency.
40923         * modules/memchr (Depends-on): Remove intprops.
40924         * modules/memrchr (Depends-on): Likewise.
40925         * modules/memchr2 (Depends-on): Likewise.
40926         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
40927         * lib/memrchr.c (__memrchr): Likewise.
40928         * lib/memrchr2.c (memchr2): Likewise.
40929         Reported by Simon Josefsson.
40930
40931 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40932
40933         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
40934         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40935
40936 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40937
40938         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
40939
40940         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
40941
40942         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
40943
40944         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
40945         declarations.
40946         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
40947
40948         * m4/inet_pton.m4: Don't check for header files.
40949
40950         * m4/inet_ntop.m4: Don't check for header files.
40951
40952 2008-04-28  Simon Josefsson  <simon@josefsson.org>
40953
40954         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
40955         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
40956         trigger for cygwin).
40957         Reported by Bruno Haible  <bruno@clisp.org>.
40958
40959 2008-04-28  Bruno Haible  <bruno@clisp.org>
40960
40961         * doc/posix-functions/strdup.texi: Mention mingw problem.
40962
40963 2008-04-27  Bruno Haible  <bruno@clisp.org>
40964
40965         * modules/stat-time-tests (Depends-on): Add sleep.
40966         * tests/test-stat-time.c (force_unlink): New function.
40967         (cleanup): Use it.
40968         (test_mtime): Remove the ctime related tests.
40969         (test_ctime): New function, containing the ctime related tests.
40970         (main): Call test_ctime, except on native Windows platforms.
40971
40972 2008-04-27  Bruno Haible  <bruno@clisp.org>
40973
40974         * lib/rpmatch.c (rpmatch): Add some comments.
40975         Reported by James Youngman <jay@gnu.org>.
40976
40977 2008-04-27  Bruno Haible  <bruno@clisp.org>
40978
40979         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
40980         quiet NaNs.
40981
40982 2008-04-27  Bruno Haible  <bruno@clisp.org>
40983
40984         Make test-yesno.sh work on mingw.
40985         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
40986         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
40987         (main): Set stdin to binary mode.
40988         * modules/yesno-tests (Depends-on): Add binary-io.
40989
40990 2008-04-27  Bruno Haible  <bruno@clisp.org>
40991
40992         Fix 'isfinite' on x86, x86_64, ia64 platforms.
40993         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
40994         argument that lie outside the IEEE 854 domain.
40995         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
40996         (gl_ISFINITE): Use it.
40997         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
40998
40999 2008-04-27  Bruno Haible  <bruno@clisp.org>
41000
41001         Allow local renaming in config.h.
41002         * lib/memrchr.c (memrchr): Don't undefine outside libc.
41003
41004 2008-04-27  Bruno Haible  <bruno@clisp.org>
41005
41006         * lib/memchr.c (__memchr): Change type of 'i'.
41007         * lib/memchr2.c (memchr2): Likewise.
41008
41009 2008-04-26  Eric Blake  <ebb9@byu.net>
41010         and Bruno Haible  <bruno@clisp.org>
41011
41012         Optimize and test memrchr.
41013         * modules/memrchr (Depends-on): Add intprops.
41014         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
41015         * modules/memrchr-tests: New file.
41016         * tests/test-memrchr.c: New file.
41017
41018 2008-04-26  Bruno Haible  <bruno@clisp.org>
41019
41020         Add tentative support for DragonFly BSD.
41021         * lib/stdio-impl.h: Add macros for DragonFly BSD.
41022         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
41023         fp.
41024         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
41025         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
41026         * lib/fpurge.c (fpurge): Likewise.
41027         * lib/freadable.c (freaadable): Likewise.
41028         * lib/freadahead.c (freadahead): Likewise.
41029         * lib/freading.c (freading): Likewise.
41030         * lib/freadptr.c (freadptr): Likewise.
41031         * lib/freadseek.c (freadptrinc): Likewise.
41032         * lib/fseeko.c (fseeko): Likewise.
41033         * lib/fseterr.c (fseterr): Likewise.
41034         * lib/fwritable.c (fwritable): Likewise.
41035         * lib/fwriting.c (fwriting): Likewise.
41036
41037 2008-04-26  Bruno Haible  <bruno@clisp.org>
41038
41039         * lib/stdio-impl.h: New file.
41040         * lib/fbufmode.c: Include stdio-impl.h.
41041         (fbufmode): Use fp_, remove redundant #defines.
41042         * lib/fflush.c: Include stdio-impl.h.
41043         (clear_ungetc_buffer): Remove redundant #defines.
41044         * lib/fpurge.c: Include stdio-impl.h.
41045         (fpurge): Remove redundant #defines.
41046         * lib/freadable.c: Include stdio-impl.h.
41047         (freadable): Remove redundant #defines.
41048         * lib/freadahead.c: Include stdio-impl.h.
41049         (freadahead): Remove redundant #defines.
41050         * lib/freading.c: Include stdio-impl.h.
41051         (freading): Remove redundant #defines.
41052         * lib/freadptr.c: Include stdio-impl.h.
41053         (freadptr): Remove redundant #defines.
41054         * lib/freadseek.c: Include stdio-impl.h.
41055         (freadptrinc): Remove redundant #defines.
41056         * lib/fseeko.c: Include stdio-impl.h.
41057         (rpl_fseeko): Remove redundant #defines.
41058         * lib/fseterr.c: Include stdio-impl.h.
41059         (fseterr): Remove redundant #defines.
41060         * lib/fwritable.c: Include stdio-impl.h.
41061         (fwritable: Remove redundant #defines.
41062         * lib/fwriting.c: Include stdio-impl.h.
41063         (fwriting): Remove redundant #defines.
41064         * modules/fbufmode (Files): Add lib/stdio-impl.h.
41065         * modules/fflush (Files): Likewise.
41066         * modules/fpurge (Files): Likewise.
41067         * modules/freadable (Files): Likewise.
41068         * modules/freadahead (Files): Likewise.
41069         * modules/freading (Files): Likewise.
41070         * modules/freadptr (Files): Likewise.
41071         * modules/freadseek (Files): Likewise.
41072         * modules/fseeko (Files): Likewise.
41073         * modules/fseterr (Files): Likewise.
41074         * modules/fwritable (Files): Likewise.
41075         * modules/fwriting (Files): Likewise.
41076
41077 2008-04-26  Bruno Haible  <bruno@clisp.org>
41078
41079         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
41080         restore_seek_optimization, update_fpos_cache): New functions, extracted
41081         from rpl_fflush.
41082         (rpl_fflush): Use them.
41083         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
41084         (gl_REPLACE_FFLUSH): Use it.
41085
41086 2008-04-26  Bruno Haible  <bruno@clisp.org>
41087
41088         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
41089         on Solaris.
41090         * tests/test-xstrtoimax.sh: Likewise.
41091         * tests/test-xstrtoumax.sh: Likewise.
41092         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41093
41094 2008-04-26  Bruno Haible  <bruno@clisp.org>
41095
41096         * modules/memchr-tests: New file.
41097         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
41098
41099 2008-04-26  Eric Blake  <ebb9@byu.net>
41100             Bruno Haible  <bruno@clisp.org>
41101
41102         * lib/memchr.c: Include intprops.h.
41103         (__memchr): Optimize parallel detection of matching bytes. Rename local
41104         variables. Add explanatory comments.
41105
41106 2008-04-26  Bruno Haible  <bruno@clisp.org>
41107
41108         Fix module 'memchr', broken since 2000-10-28.
41109         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
41110
41111 2008-04-26  Bruno Haible  <bruno@clisp.org>
41112
41113         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
41114         comments.
41115
41116 2008-04-25  Eric Blake  <ebb9@byu.net>
41117
41118         Use native fstatat on cygwin 1.7.0.
41119         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
41120         first.
41121
41122 2008-04-23  Eric Blake  <ebb9@byu.net>
41123
41124         Improve memchr2 performance.
41125         * lib/memchr2.c (memchr2): Further optimize parallel detection of
41126         NUL bytes.
41127         * modules/memchr2 (Depends-on): Use intprops.h.
41128
41129 2008-04-23  Simon Josefsson  <simon@josefsson.org>
41130
41131         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
41132         an inline function instead of a CPP macro.  Patch by Ben Pfaff
41133         <blp@cs.stanford.edu>.
41134
41135 2008-04-23  Simon Josefsson  <simon@josefsson.org>
41136
41137         * lib/arpa_inet.in.h: New file.
41138
41139         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
41140         (Makefile.am): Sed in substitute header file.
41141
41142         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
41143         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
41144
41145         * modules/inet_ntop (configure.ac): Use
41146         gl_ARPA_INET_MODULE_INDICATOR.
41147
41148         * modules/inet_pton (configure.ac): Use
41149         gl_ARPA_INET_MODULE_INDICATOR.
41150
41151 2008-04-22  Jim Meyering  <meyering@redhat.com>
41152
41153         * modules/verify (License): Re-license as LGPLv2+.
41154
41155 2008-04-22  Simon Josefsson  <simon@josefsson.org>
41156
41157         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
41158         parameter to void* as per POSIX standard (MinGW uses char*).
41159
41160 2008-04-21  Bruno Haible  <bruno@clisp.org>
41161
41162         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
41163         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
41164         Define to replacements if REPLACE_ISWCNTRL is 1.
41165         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
41166         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
41167         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
41168         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
41169         what it fixes.
41170         * doc/posix-functions/iswalpha.texi: Likewise.
41171         * doc/posix-functions/iswblank.texi: Likewise.
41172         * doc/posix-functions/iswcntrl.texi: Likewise.
41173         * doc/posix-functions/iswdigit.texi: Likewise.
41174         * doc/posix-functions/iswgraph.texi: Likewise.
41175         * doc/posix-functions/iswlower.texi: Likewise.
41176         * doc/posix-functions/iswprint.texi: Likewise.
41177         * doc/posix-functions/iswpunct.texi: Likewise.
41178         * doc/posix-functions/iswspace.texi: Likewise.
41179         * doc/posix-functions/iswupper.texi: Likewise.
41180         * doc/posix-functions/iswxdigit.texi: Likewise.
41181         Reported by Alain Guibert.
41182
41183 2008-04-21  Bruno Haible  <bruno@clisp.org>
41184
41185         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
41186         Patch by Alain Guibert.
41187
41188 2008-04-21  Bruno Haible  <bruno@clisp.org>
41189
41190         Fix test failures on mingw.
41191         * tests/test-xstrtol.c (print_no_progname): New function.
41192         (main): Install it in error_print_progname hook.
41193         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
41194         * tests/test-xstrtoimax.sh: Likewise.
41195         * tests/test-xstrtoumax.sh: Likewise.
41196
41197 2008-04-21  Bruno Haible  <bruno@clisp.org>
41198
41199         Fix test failure on mingw.
41200         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
41201
41202 2008-04-21  Bruno Haible  <bruno@clisp.org>
41203
41204         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
41205         Actually assign a value.
41206
41207 2008-04-20  Bruno Haible  <bruno@clisp.org>
41208
41209         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
41210         take 2.
41211         * lib/canonicalize.c (canonicalize_file_name): Elide if the
41212         'canonicalize-lgpl' module is also used.
41213         * lib/canonicalize-lgpl.c: Undo last change.
41214         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
41215
41216 2008-04-20  Bruno Haible  <bruno@clisp.org>
41217
41218         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
41219         config.h. Provide _mkdir based fallback for mingw.
41220         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
41221         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
41222         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
41223         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
41224         rather than defining mkdir in config.h.
41225         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
41226         (gl_SYS_STAT_H_DEFAULTS): New macro.
41227         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
41228         HAVE_IO_H any more.
41229         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
41230         HAVE_DECL_MKDIR and HAVE_IO_H.
41231
41232 2008-04-20  Bruno Haible  <bruno@clisp.org>
41233
41234         * lib/isapipe.c: Port to native Windows platforms.
41235
41236 2008-04-20  Bruno Haible  <bruno@clisp.org>
41237
41238         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
41239
41240 2008-04-21  Eric Blake  <ebb9@byu.net>
41241
41242         Work around preprocessors that don't handle UINTMAX_MAX.
41243         * lib/memchr2.c (memchr2): Avoid embedded #if.
41244         Reported by Alain Guibert, fix suggested by Bruno Haible.
41245
41246 2008-04-21  Simon Josefsson  <simon@josefsson.org>
41247
41248         * doc/posix-functions/strftime.texi (strftime): Explain better
41249         Windows incompatibility.  Suggested by Micah Cowan
41250         <micah@cowan.name>.
41251
41252 2008-04-20  Bruno Haible  <bruno@clisp.org>
41253
41254         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
41255         unistr/u8-mblen.
41256
41257 2008-04-20  Bruno Haible  <bruno@clisp.org>
41258
41259         Fix test failure on platforms with non-GNU iconv.
41260         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
41261         (U_TO_U8): Use it, rather than u16_to_u8.
41262         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
41263         units at the end of the input string.
41264         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
41265
41266 2008-04-20  Bruno Haible  <bruno@clisp.org>
41267
41268         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
41269         when the resulting length is 0.
41270         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
41271
41272 2008-04-20  Bruno Haible  <bruno@clisp.org>
41273
41274         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
41275         works.
41276         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
41277
41278 2008-04-20  Bruno Haible  <bruno@clisp.org>
41279
41280         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
41281         * modules/tsearch-tests (configure.ac): Test for initstate function.
41282
41283 2008-04-20  Bruno Haible  <bruno@clisp.org>
41284
41285         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
41286         for nlink_t if missing.
41287         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
41288
41289 2008-04-19  Bruno Haible  <bruno@clisp.org>
41290
41291         Work around snprintf bug on Linux libc5.
41292         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
41293         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41294         gl_SNPRINTF_SIZE1.
41295         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
41296         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
41297         that test failed.
41298         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
41299         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
41300         * modules/snprintf (Files): Add m4/printf.m4.
41301         * modules/vsnprintf (Files): Likewise.
41302         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
41303         * doc/posix-functions/vsnprintf.texi: Likewise.
41304
41305 2008-04-19  Bruno Haible  <bruno@clisp.org>
41306
41307         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
41308         from 0.0058 to less than 10^-7.
41309
41310 2008-04-19  Bruno Haible  <bruno@clisp.org>
41311
41312         Fix rounding when a precision is given.
41313         * lib/vasnprintf.c (is_borderline): New function.
41314         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
41315         9...9x.
41316         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
41317         %e, %g.
41318         * tests/test-vasprintf-posix.c (test_function): Likewise.
41319         * tests/test-snprintf-posix.h (test_function): Likewise.
41320         * tests/test-sprintf-posix.h (test_function): Likewise.
41321         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
41322         * tests/test-printf-posix.h (test_function): Likewise.
41323         * tests/test-printf-posix.output: Update.
41324         Reported by John Darrington <john@darrington.wattle.id.au> via
41325         Ben Pfaff <blp@cs.stanford.edu>.
41326
41327 2008-04-18  Simon Josefsson  <simon@josefsson.org>
41328
41329         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
41330         Suggested by Bruno Haible <bruno@clisp.org>.
41331
41332 2008-04-17  Bruno Haible  <bruno@clisp.org>
41333
41334         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
41335         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
41336         implementation.
41337         Patch by Bruce Merry <bmerry@gmail.com>.
41338
41339 2008-04-17  Simon Josefsson  <simon@josefsson.org>
41340
41341         * doc/posix-functions/strftime.texi (strftime): Mention that %e
41342         doesn't work under Windows.
41343
41344 2008-04-16  Bruno Haible  <bruno@clisp.org>
41345
41346         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
41347         New macros.
41348         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
41349         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
41350         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
41351         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
41352         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
41353         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
41354         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
41355         macros.
41356         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
41357         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
41358         Northern Sotho, Uighur.
41359
41360 2008-04-16  Bruno Haible  <bruno@clisp.org>
41361
41362         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
41363         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
41364         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
41365         Reported by Daniel Bergström <daniel@octocode.com>.
41366
41367 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
41368             Bruno Haible  <bruno@clisp.org>
41369
41370         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
41371         function.
41372         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
41373         New functions, mostly extracted from gl_locale_name_default.
41374         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
41375
41376 2008-04-16  Eric Blake  <ebb9@byu.net>
41377
41378         Adjust strtod detection to catch glibc 2.7 bug.
41379         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
41380         Reported by John Gatewood Ham.
41381
41382 2008-04-16  Bruno Haible  <bruno@clisp.org>
41383
41384         Add tentative support for Linux libc5.
41385         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
41386         * lib/fpurge.c (fpurge): Likewise.
41387         * lib/freadable.c (freadable): Likewise.
41388         * lib/freadahead.c (freadahead): Likewise.
41389         * lib/freading.c (freading): Likewise.
41390         * lib/freadptr.c (freadptr): Likewise.
41391         * lib/freadseek.c (freadptrinc): Likewise.
41392         * lib/fseeko.c (rpl_fseeko): Likewise.
41393         * lib/fseterr.c (fseterr): Likewise.
41394         * lib/fwritable.c (fwritable): Likewise.
41395         * lib/fwriting.c (fwriting): Likewise.
41396         Reported by Alain Guibert <alguibert+bts@free.fr>.
41397
41398 2008-04-15  Bruno Haible  <bruno@clisp.org>
41399
41400         * modules/mathl (configure.ac): Define module indicator.
41401
41402 2008-04-15  Bruno Haible  <bruno@clisp.org>
41403
41404         * lib/logl.c (logl): Remove unused variables.
41405
41406 2008-04-15  Bruno Haible  <bruno@clisp.org>
41407
41408         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
41409         fails.
41410
41411 2008-04-15  Bruno Haible  <bruno@clisp.org>
41412
41413         * lib/trim.c (trim2): Fix argument of isspace() macro.
41414
41415 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
41416
41417         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
41418         to 0.
41419         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
41420
41421 2008-04-14  Bruno Haible  <bruno@clisp.org>
41422
41423         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
41424         AC_LANG_PROGRAM argument.
41425         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
41426         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
41427         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
41428         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
41429         * m4/math_h.m4 (gl_MATH_H): Likewise.
41430         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
41431         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
41432         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
41433         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
41434         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
41435         * m4/regex.m4 (gl_REGEX): Likewise.
41436         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
41437         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
41438         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
41439         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
41440         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
41441         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
41442         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41443         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41444
41445 2008-04-14  Jim Meyering  <meyering@redhat.com>
41446
41447         test-strtod: fix typos: s/abs/fabs/
41448         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
41449
41450 2008-04-13  Bruno Haible  <bruno@clisp.org>
41451
41452         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
41453         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
41454         module is also used and while not building the reloc-wrapper.
41455
41456 2008-04-13  Bruno Haible  <bruno@clisp.org>
41457
41458         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
41459
41460 2008-04-13  Bruno Haible  <bruno@clisp.org>
41461
41462         Fix AIX compilation failure introduced on 2008-04-02.
41463         * tests/test-frexp.c (exp): Undefine before redefining.
41464         * tests/test-frexpl.c (exp): Likewise.
41465
41466 2008-04-13  Bruno Haible  <bruno@clisp.org>
41467
41468         Work around a HP-UX stdio bug.
41469         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
41470         * tests/test-ftello.c (main): Likewise.
41471         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
41472         * doc/posix-functions/ftello.texi: Likewise.
41473
41474 2008-04-13  Bruno Haible  <bruno@clisp.org>
41475
41476         Make test-signbit pass on HP-UX/hppa.
41477         * tests/test-signbit.c (minus_zerol): New variable.
41478         (test_signbitl): Use it.
41479
41480 2008-04-13  Bruno Haible  <bruno@clisp.org>
41481
41482         Make truncl work on OSF/1 4.0.
41483         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
41484         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41485         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
41486         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
41487         HAVE_DECL_TRUNCL.
41488         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
41489         HAVE_DECL_TRUNCL.
41490         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
41491
41492 2008-04-13  Bruno Haible  <bruno@clisp.org>
41493
41494         * lib/unictype.h: Remove trailing comma from enumeration definitions.
41495
41496 2008-04-13  Bruno Haible  <bruno@clisp.org>
41497
41498         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
41499         expression, so as to avoid HP-UX 11 cc compiler bug.
41500
41501 2008-04-13  Bruno Haible  <bruno@clisp.org>
41502
41503         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
41504
41505 2008-04-13  Bruno Haible  <bruno@clisp.org>
41506
41507         * lib/git-merge-changelog.c: Remove empty declaration outside of
41508         functions.
41509
41510 2008-04-13  Bruno Haible  <bruno@clisp.org>
41511
41512         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
41513
41514 2008-04-13  Bruno Haible  <bruno@clisp.org>
41515
41516         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
41517         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
41518         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
41519         also if it exists but lacks definitions of the SHUT_* macros.
41520         * modules/sys_socket (Description): Update.
41521         Reported by Elbert Pol <e.pol@chello.nl>.
41522
41523 2008-04-13  Bruno Haible  <bruno@clisp.org>
41524
41525         * lib/localcharset.c (OS2): Don't redefine if already defined.
41526         Reported by Elbert Pol <e.pol@chello.nl>.
41527
41528 2008-04-13  Bruno Haible  <bruno@clisp.org>
41529
41530         * lib/binary-io.h [__EMX__]: Include <io.h>.
41531         Reported by Elbert Pol <e.pol@chello.nl>.
41532
41533 2008-04-12  Bruno Haible  <bruno@clisp.org>
41534
41535         * lib/fpucw.h: Enable the definitions also for x86_64.
41536         Needed for NetBSD/x86_64.
41537         Reported by Thomas Klausner <tk@giga.or.at>.
41538
41539 2008-04-12  Bruno Haible  <bruno@clisp.org>
41540
41541         * tests/test-strtod.c: Include isnand.h.
41542         (main): Use isnand instead of isnan.
41543         Reported by Jim Meyering.
41544
41545 2008-04-12  Bruno Haible  <bruno@clisp.org>
41546
41547         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
41548         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
41549
41550 2008-04-12  Jim Meyering  <meyering@redhat.com>
41551
41552         * m4/math_h.m4 (gl_MATH_H): Fix typos.
41553
41554 2008-04-12  Bruno Haible  <bruno@clisp.org>
41555
41556         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
41557         Reported by Elbert Pol <e.pol@chello.nl>.
41558
41559 2008-04-12  Eric Blake  <ebb9@byu.net>
41560
41561         Work around Solaris 10 math.h bug.
41562         * m4/math_h.m4 (gl_MATH_H): Check for bug.
41563         (gl_MATH_H_DEFAULTS): Set up default.
41564         * modules/math (Makefile.am): Replace new indicators.
41565         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
41566         * tests/test-math.c (main): Test this.
41567         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
41568         * doc/posix-headers/math.texi (math.h): Mention bug.
41569         Reported by Nelson H. F. Beebe and Jim Meyering.
41570
41571 2008-04-11  Bruno Haible  <bruno@clisp.org>
41572
41573         Adapt to future versions of Apple GCC.
41574         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
41575         Reported by Peter O'Gorman <peter@pogma.com>.
41576
41577 2008-04-11  Bruno Haible  <bruno@clisp.org>
41578
41579         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
41580
41581 2008-04-11  Bruno Haible  <bruno@clisp.org>
41582
41583         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
41584
41585         * modules/getaddrinfo-tests (Makefile.am): Define
41586         test_getaddrinfo_LDADD.
41587
41588 2008-04-11  Bruno Haible  <bruno@clisp.org>
41589
41590         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
41591         (init): Fix syntax error.
41592         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
41593         is declared.
41594
41595 2008-04-11  Bruno Haible  <bruno@clisp.org>
41596
41597         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
41598         * modules/glob (Depends-on): Add stdbool.
41599
41600 2008-04-11  Bruno Haible  <bruno@clisp.org>
41601
41602         * lib/trim.c: Include <string.h>.
41603
41604 2008-04-11  Eric Blake  <ebb9@byu.net>
41605
41606         Avoid compile failure on OS/2.
41607         * lib/regex_internal.h (internal_function): Disable optimization
41608         on OS/2 (__EMX__), where it caused compiler error.
41609         Reported by Elbert Pol.
41610
41611 2008-04-11  Bruno Haible  <bruno@clisp.org>
41612
41613         Flush the standard error stream before aborting. Needed on mingw.
41614         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
41615         * tests/test-array_list.c (ASSERT): Likewise.
41616         * tests/test-array_oset.c (ASSERT): Likewise.
41617         * tests/test-avltree_list.c (ASSERT): Likewise.
41618         * tests/test-avltree_oset.c (ASSERT): Likewise.
41619         * tests/test-avltreehash_list.c (ASSERT): Likewise.
41620         * tests/test-binary-io.c (ASSERT): Likewise.
41621         * tests/test-byteswap.c (ASSERT): Likewise.
41622         * tests/test-c-ctype.c (ASSERT): Likewise.
41623         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
41624         * tests/test-c-strcasestr.c (ASSERT): Likewise.
41625         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
41626         * tests/test-c-strstr.c (ASSERT): Likewise.
41627         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
41628         * tests/test-canonicalize.c (ASSERT): Likewise.
41629         * tests/test-carray_list.c (ASSERT): Likewise.
41630         * tests/test-ceilf1.c (ASSERT): Likewise.
41631         * tests/test-ceilf2.c (ASSERT): Likewise.
41632         * tests/test-ceill.c (ASSERT): Likewise.
41633         * tests/test-count-one-bits.c (ASSERT): Likewise.
41634         * tests/test-fbufmode.c (ASSERT): Likewise.
41635         * tests/test-fflush2.c (ASSERT): Likewise.
41636         * tests/test-floorf1.c (ASSERT): Likewise.
41637         * tests/test-floorf2.c (ASSERT): Likewise.
41638         * tests/test-floorl.c (ASSERT): Likewise.
41639         * tests/test-fopen.c (ASSERT): Likewise.
41640         * tests/test-fpending.c (ASSERT): Likewise.
41641         * tests/test-fprintf-posix.c (ASSERT): Likewise.
41642         * tests/test-fpurge.c (ASSERT): Likewise.
41643         * tests/test-freadable.c (ASSERT): Likewise.
41644         * tests/test-freadahead.c (ASSERT): Likewise.
41645         * tests/test-freading.c (ASSERT): Likewise.
41646         * tests/test-freadptr.c (ASSERT): Likewise.
41647         * tests/test-freadptr2.c (ASSERT): Likewise.
41648         * tests/test-freadseek.c (ASSERT): Likewise.
41649         * tests/test-freopen.c (ASSERT): Likewise.
41650         * tests/test-frexp.c (ASSERT): Likewise.
41651         * tests/test-frexpl.c (ASSERT): Likewise.
41652         * tests/test-fseek.c (ASSERT): Likewise.
41653         * tests/test-fseeko.c (ASSERT): Likewise.
41654         * tests/test-fstrcmp.c (ASSERT): Likewise.
41655         * tests/test-ftell.c (ASSERT): Likewise.
41656         * tests/test-ftello.c (ASSERT): Likewise.
41657         * tests/test-func.c (ASSERT): Likewise.
41658         * tests/test-fwritable.c (ASSERT): Likewise.
41659         * tests/test-fwriting.c (ASSERT): Likewise.
41660         * tests/test-getdelim.c (ASSERT): Likewise.
41661         * tests/test-getline.c (ASSERT): Likewise.
41662         * tests/test-i-ring.c (ASSERT): Likewise.
41663         * tests/test-iconv-utf.c (ASSERT): Likewise.
41664         * tests/test-iconv.c (ASSERT): Likewise.
41665         * tests/test-isfinite.c (ASSERT): Likewise.
41666         * tests/test-isnand.c (ASSERT): Likewise.
41667         * tests/test-isnanf.c (ASSERT): Likewise.
41668         * tests/test-isnanl.h (ASSERT): Likewise.
41669         * tests/test-ldexpl.c (ASSERT): Likewise.
41670         * tests/test-linked_list.c (ASSERT): Likewise.
41671         * tests/test-linkedhash_list.c (ASSERT): Likewise.
41672         * tests/test-localename.c (ASSERT): Likewise.
41673         * tests/test-lseek.c (ASSERT): Likewise.
41674         * tests/test-mbscasecmp.c (ASSERT): Likewise.
41675         * tests/test-mbscasestr1.c (ASSERT): Likewise.
41676         * tests/test-mbscasestr2.c (ASSERT): Likewise.
41677         * tests/test-mbscasestr3.c (ASSERT): Likewise.
41678         * tests/test-mbscasestr4.c (ASSERT): Likewise.
41679         * tests/test-mbschr.c (ASSERT): Likewise.
41680         * tests/test-mbscspn.c (ASSERT): Likewise.
41681         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
41682         * tests/test-mbspbrk.c (ASSERT): Likewise.
41683         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
41684         * tests/test-mbsrchr.c (ASSERT): Likewise.
41685         * tests/test-mbsspn.c (ASSERT): Likewise.
41686         * tests/test-mbsstr1.c (ASSERT): Likewise.
41687         * tests/test-mbsstr2.c (ASSERT): Likewise.
41688         * tests/test-mbsstr3.c (ASSERT): Likewise.
41689         * tests/test-memchr2.c (ASSERT): Likewise.
41690         * tests/test-memmem.c (ASSERT): Likewise.
41691         * tests/test-open.c (ASSERT): Likewise.
41692         * tests/test-printf-frexp.c (ASSERT): Likewise.
41693         * tests/test-printf-frexpl.c (ASSERT): Likewise.
41694         * tests/test-printf-posix.c (ASSERT): Likewise.
41695         * tests/test-quotearg.c (ASSERT): Likewise.
41696         * tests/test-rbtree_list.c (ASSERT): Likewise.
41697         * tests/test-rbtree_oset.c (ASSERT): Likewise.
41698         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
41699         * tests/test-round1.c (ASSERT): Likewise.
41700         * tests/test-roundf1.c (ASSERT): Likewise.
41701         * tests/test-roundl.c (ASSERT): Likewise.
41702         * tests/test-signbit.c (ASSERT): Likewise.
41703         * tests/test-sleep.c (ASSERT): Likewise.
41704         * tests/test-snprintf-posix.c (ASSERT): Likewise.
41705         * tests/test-snprintf.c (ASSERT): Likewise.
41706         * tests/test-sprintf-posix.c (ASSERT): Likewise.
41707         * tests/test-stat-time.c (ASSERT): Likewise.
41708         * tests/test-strcasestr.c (ASSERT): Likewise.
41709         * tests/test-strerror.c (ASSERT): Likewise.
41710         * tests/test-striconv.c (ASSERT): Likewise.
41711         * tests/test-striconveh.c (ASSERT): Likewise.
41712         * tests/test-striconveha.c (ASSERT): Likewise.
41713         * tests/test-strsignal.c (ASSERT): Likewise.
41714         * tests/test-strstr.c (ASSERT): Likewise.
41715         * tests/test-strtod.c (ASSERT): Likewise.
41716         * tests/test-trunc1.c (ASSERT): Likewise.
41717         * tests/test-trunc2.c (ASSERT): Likewise.
41718         * tests/test-truncf1.c (ASSERT): Likewise.
41719         * tests/test-truncf2.c (ASSERT): Likewise.
41720         * tests/test-truncl.c (ASSERT): Likewise.
41721         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
41722         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
41723         * tests/test-vasnprintf.c (ASSERT): Likewise.
41724         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
41725         * tests/test-vasprintf.c (ASSERT): Likewise.
41726         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
41727         * tests/test-vprintf-posix.c (ASSERT): Likewise.
41728         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
41729         * tests/test-vsnprintf.c (ASSERT): Likewise.
41730         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
41731         * tests/test-wcwidth.c (ASSERT): Likewise.
41732         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
41733         * tests/test-xprintf-posix.c (ASSERT): Likewise.
41734         * tests/test-xvasprintf.c (ASSERT): Likewise.
41735         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
41736         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
41737         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
41738         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
41739         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
41740         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
41741         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
41742         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
41743         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
41744         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
41745         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
41746         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
41747         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
41748         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
41749         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
41750         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
41751         * tests/unictype/test-block_list.c (ASSERT): Likewise.
41752         * tests/unictype/test-block_of.c (ASSERT): Likewise.
41753         * tests/unictype/test-block_test.c (ASSERT): Likewise.
41754         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
41755         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
41756         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
41757         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
41758         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
41759         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
41760         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
41761         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
41762         * tests/unictype/test-combining.c (ASSERT): Likewise.
41763         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
41764         * tests/unictype/test-digit.c (ASSERT): Likewise.
41765         * tests/unictype/test-mirror.c (ASSERT): Likewise.
41766         * tests/unictype/test-numeric.c (ASSERT): Likewise.
41767         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
41768         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
41769         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
41770         * tests/unictype/test-scripts.c (ASSERT): Likewise.
41771         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
41772         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
41773         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
41774         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
41775         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
41776         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
41777         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
41778         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
41779         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
41780         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
41781         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
41782         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
41783         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
41784         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
41785         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
41786         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
41787         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
41788         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
41789         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
41790         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
41791         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
41792         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
41793         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
41794         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
41795         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
41796         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
41797         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
41798         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
41799         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
41800         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
41801         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
41802         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
41803         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
41804         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
41805         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
41806         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
41807         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
41808         Reported by Eric Blake.
41809
41810 2008-04-11  Bruno Haible  <bruno@clisp.org>
41811
41812         * lib/wchar.in.h: Tweak comment.
41813
41814 2008-04-11  Bruno Haible  <bruno@clisp.org>
41815
41816         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
41817         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
41818         gl_COMMON.
41819         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
41820
41821 2008-04-11  Bruno Haible  <bruno@clisp.org>
41822
41823         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
41824
41825 2008-04-11  Simon Josefsson  <simon@josefsson.org>
41826
41827         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
41828         of attempting to use non-existing /dev/*random.  Based on patch
41829         from Adam Strzelecki <ono@java.pl> in
41830         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
41831
41832 2008-04-08  Bruno Haible  <bruno@clisp.org>
41833
41834         Add tentative support for emx+gcc.
41835         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
41836         * lib/fpurge.c (fpurge): Likewise.
41837         * lib/freadable.c (freadable): Likewise.
41838         * lib/freadahead.c (freadahead): Likewise.
41839         * lib/freading.c (freading): Likewise.
41840         * lib/freadptr.c (freadptr): Likewise.
41841         * lib/freadseek.c (freadptrinc): Likewise.
41842         * lib/fseeko.c (rpl_fseeko): Likewise.
41843         * lib/fseterr.c (fseterr): Likewise.
41844         * lib/fwritable.c (fwritable): Likewise.
41845         * lib/fwriting.c (fwriting): Likewise.
41846         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
41847
41848 2008-04-09  Eric Blake  <ebb9@byu.net>
41849
41850         Avoid some autoconf warnings.
41851         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
41852         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
41853         * m4/afs.m4 (gl_AFS): Likewise.
41854         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
41855         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
41856         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41857         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
41858         (gl_INTEGER_TYPE_SUFFIX): Likewise.
41859         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
41860         (AC_CHECK_DECLS_ONCE): Likewise.
41861         Rename file...
41862         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
41863         gnulib-tool requires autoconf 2.59 or better.
41864         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
41865
41866 2008-04-08  Eric Blake  <ebb9@byu.net>
41867
41868         Use 'git describe --match' if present (added in git 1.5.5).
41869         * build-aux/git-version-gen: Limit result to tags that match 'v*'
41870         if possible.
41871
41872 2008-04-08  Bruno Haible  <bruno@clisp.org>
41873
41874         Add tentative support for OpenServer.
41875         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
41876         _ptr, _cnt.
41877         * lib/fpurge.c (fpurge): Likewise.
41878         * lib/freadable.c (freadable): Likewise.
41879         * lib/freadahead.c (freadahead): Likewise.
41880         * lib/freading.c (freading): Likewise.
41881         * lib/freadptr.c (freadptr): Likewise.
41882         * lib/freadseek.c (freadptrinc): Likewise.
41883         * lib/fseeko.c (rpl_fseeko): Likewise.
41884         * lib/fseterr.c (fseterr): Likewise.
41885         * lib/fwritable.c (fwritable): Likewise.
41886         * lib/fwriting.c (fwriting): Likewise.
41887         Reported by Roger Cornelius <rac@tenzing.org> and
41888         Brian K. White <brian@aljex.com>.
41889
41890 2008-04-06  Jim Meyering  <meyering@redhat.com>
41891
41892         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
41893
41894 2008-04-06  Bruno Haible  <bruno@clisp.org>
41895
41896         Avoid possible error with non-ASCII bytes in UTF-8 locales.
41897         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
41898         * tests/test-printf-posix.sh: Likewise.
41899         * tests/test-vfprintf-posix.sh: Likewise.
41900         * tests/test-vprintf-posix.sh: Likewise.
41901         * tests/test-xprintf-posix.sh: Likewise.
41902
41903 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41904
41905         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
41906         hide error from 'ls', needed on OS/2.
41907         Report by Elbert Pol <elbert.pol@gmail.com>.
41908
41909 2008-04-04  Eric Blake  <ebb9@byu.net>
41910
41911         Make test-fseeko.c failures meaningful.
41912         * tests/test-fseeko.c: Print line number on failure.
41913         * tests/test-fseek.c: Likewise.
41914         Reported by Nelson H. F. Beebe.
41915
41916         Improve strtod bug detection check.
41917         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
41918         required for Solaris 10.
41919         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
41920
41921 2008-04-04  Bruno Haible  <bruno@clisp.org>
41922
41923         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
41924         by m4/setenv.m4.
41925
41926 2008-04-03  Eric Blake  <ebb9@byu.net>
41927
41928         Ensure sane .version contents.
41929         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
41930         version string.
41931         * build-aux/git-version-gen: Improve documentation.
41932
41933         Make GNU make output nicer.
41934         * top/GNUmakefile [!_have-Makefile]: Add dependency on
41935         MAKECMDGOALS to enforce message for all command line targets.  Set
41936         srcdir for use in maint.mk.
41937
41938         Another maintainer tweak.
41939         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
41940         a target that regenerates version.
41941
41942 2008-04-03  Jim Meyering  <meyering@redhat.com>
41943
41944         vc-list-files: don't cause coreutils "make po-check" failure
41945         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
41946
41947 2008-04-03  Eric Blake  <ebb9@byu.net>
41948
41949         Allow VPATH usage of vc-list-files.
41950         * build-aux/vc-list-files (scriptversion): Add timestamp.
41951         (options): Add --help, --version, -C.
41952         (CVS): Support installed cvsu.
41953
41954 2008-04-02  Bruno Haible  <bruno@clisp.org>
41955
41956         Avoid some "statement with no effect" warnings from gcc.
41957         * tests/test-wctype.c (main): Explicitly ignore unused values.
41958         Reported by Jim Meyering.
41959
41960 2008-04-02  Jim Meyering  <meyering@redhat.com>
41961
41962         Avoid some warnings from "gcc -Wshadow".
41963         * tests/test-frexp.c (exp): Define to a different identifier.
41964         * tests/test-frexpl.c (exp): Likewise.
41965
41966 2008-04-03  Jim Meyering  <meyering@redhat.com>
41967
41968         bootstrap: remove dangling *.[ch] symlinks from lib
41969         * build-aux/bootstrap [dangling symlink removal]: Move find's
41970         -depth option to precede all others, to avoid a warning.
41971         Remove *.[ch] files too, and from "$source_base" (usually lib/).
41972
41973 2008-04-02  Bruno Haible  <bruno@clisp.org>
41974
41975         Avoid some warnings from "gcc -Wshadow".
41976         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
41977         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
41978         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
41979         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
41980         Reported by Jim Meyering.
41981
41982 2008-04-01  Bruno Haible  <bruno@clisp.org>
41983
41984         Fix test to work on IRIX 6.5 with cc.
41985         * tests/test-math.c (numeric_equal): New function.
41986         (main): Use it.
41987
41988 2008-04-01  Bruno Haible  <bruno@clisp.org>
41989
41990         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
41991
41992 2008-04-01  Bruno Haible  <bruno@clisp.org>
41993
41994         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
41995         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
41996         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
41997         (Depends-on): Remove math.
41998
41999         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
42000         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42001         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
42002         (Depends-on): Remove math.
42003
42004         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
42005         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42006         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
42007         (Depends-on): Remove math.
42008         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
42009         (Depends-on): Remove math.
42010
42011         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
42012         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
42013         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
42014         (Depends-on): Remove math.
42015         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
42016         (Depends-on): Remove math.
42017
42018         * tests/test-round1.c: Include nan.h.
42019         (main): Use NaNd instead of NAN.
42020         * modules/round-tests (Files): Add tests/nan.h.
42021
42022         * tests/test-trunc1.c: Include nan.h.
42023         (main): Use NaNd instead of NAN.
42024         * modules/trunc-tests (Files): Add tests/nan.h.
42025
42026         * tests/test-roundf1.c: Include nan.h.
42027         (main): Use NaNf instead of NAN.
42028         * modules/roundf-tests (Files): Add tests/nan.h.
42029
42030         * tests/test-truncf1.c: Include nan.h.
42031         (main): Use NaNf instead of NAN.
42032         * modules/truncf-tests (Files): Add tests/nan.h.
42033
42034         * tests/test-ceilf1.c: Include nan.h.
42035         (main): Use NaNf instead of NAN.
42036         * modules/ceilf-tests (Files): Add tests/nan.h.
42037
42038         * tests/test-floorf1.c: Include nan.h.
42039         (main): Use NaNf instead of NAN.
42040         * modules/floorf-tests (Files): Add tests/nan.h.
42041
42042         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
42043         (main): Use NaNf instead of NAN.
42044         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
42045
42046         * tests/test-isnand.c: Include nan.h instead of <math.h>.
42047         (main): Use NaNd instead of NAN.
42048         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
42049
42050         * tests/test-frexp.c: Include nan.h.
42051         (main): Use NaNd instead of NAN.
42052         * modules/frexp-tests (Files): Add tests/nan.h.
42053
42054         * lib/isnan.c: Don't include <math.h>.
42055         (FUNC): Don't use NAN macro.
42056         * modules/isnand-nolibm (Depends-on): Remove math.
42057         * modules/isnanf-nolibm (Depends-on): Remove math.
42058         * modules/isnanl (Depends-on): Remove math.
42059         * modules/isnanl-nolibm (Depends-on): Remove math.
42060
42061         * tests/nan.h: New file.
42062
42063 2008-04-01  Eric Blake  <ebb9@byu.net>
42064
42065         Fix typos.
42066         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
42067         values to be the right type.
42068
42069         For now, cater to gnulib strtod inaccuracies.
42070         * tests/test-strtod.c (main): Allow 1-ulp error on expected
42071         fractional results.  While not as nice from a QoI perspective, it
42072         is a quicker patch than correctly implementing decimal to binary
42073         rounding.
42074
42075 2008-03-31  Eric Blake  <ebb9@byu.net>
42076
42077         Guarantee a definition of NAN.
42078         * lib/math.in.h (NAN): Define if missing.
42079         * tests/test-math.c (main): Test it.
42080         * doc/posix-headers/math.texi (math.h): Document this.
42081         * lib/isnan.c (rpl_isnand): Use it.
42082         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
42083         * tests/test-floorf1.c (NaN): Likewise.
42084         * tests/test-frexp.c (NaN): Likewise.
42085         * tests/test-isnand.c (NaN): Likewise.
42086         * tests/test-isnanf.c (NaN): Likewise.
42087         * tests/test-round1.c (NaN): Likewise.
42088         * tests/test-roundf1.c (NaN): Likewise.
42089         * tests/test-snprintf-posix.h (NaN): Likewise.
42090         * tests/test-sprintf-posix.h (NaN): Likewise.
42091         * tests/test-trunc1.c (NaN): Likewise.
42092         * tests/test-truncf1.c (NaN): Likewise.
42093         * tests/test-vasnprintf-posix.c (NaN): Likewise.
42094         * tests/test-vasprintf-posix.c (NaN): Likewise.
42095         * modules/isnand-nolibm (Depends-on): Add math.
42096         * modules/isnanf-nolibm (Depends-on): Likewise.
42097         * modules/isnanl (Depends-on): Likewise.
42098         * modules/isnanl-nolibm (Depends-on): Likewise.
42099         * modules/snprintf-posix-tests (Depends-on): Likewise.
42100         * modules/sprintf-posix-tests (Depends-on): Likewise.
42101         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
42102         * modules/vsprintf-posix-tests (Depends-on): Likewise.
42103         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
42104         * modules/vasprintf-posix-tests (Depends-on): Likewise.
42105
42106 2008-03-31  Bruno Haible  <bruno@clisp.org>
42107
42108         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
42109         * doc/posix-functions/strtod.texi: Likewise.
42110
42111 2008-03-31  Bruno Haible  <bruno@clisp.org>
42112
42113         * tests/test-strtod.c (main): Don't use C99 syntax.
42114
42115 2008-03-31  Bruno Haible  <bruno@clisp.org>
42116
42117         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
42118         Reported by Eric Blake.
42119
42120 2008-03-31  Jim Meyering  <meyering@redhat.com>
42121
42122         Don't compare actual signbit return values.
42123         * tests/test-strtod.c (main): Rather, compare only their
42124         zero/non-zero nature.
42125
42126 2008-03-31  Eric Blake  <ebb9@byu.net>
42127
42128         More strtod documentation.
42129         * doc/posix-functions/strtod.texi (strtod): Interpret more test
42130         failures as distinct bugs.
42131
42132 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
42133
42134         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
42135         Problem reported by Erik Benada in
42136         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
42137
42138 2008-03-30  Bruno Haible  <bruno@clisp.org>
42139
42140         * tests/test-strtod.c: Add comments about which assertion fails on which
42141         platform.
42142         * doc/posix-functions/strtod.texi: Add info about many more platforms.
42143
42144 2008-03-30  Eric Blake  <ebb9@byu.net>
42145
42146         Test signbit behavior on zeros.
42147         * tests/test-signbit.c (test_signbitf): Add tests for zero.
42148         (test_signbitd, test_signbitl): Likewise.
42149
42150         More strtod touchups.
42151         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
42152         sign of negative underflow, for now.  Use .5, not .1.
42153         * doc/posix-functions/strtod.texi (strtod): Mention these
42154         limitations.
42155         Reported by Jim Meyering.
42156
42157 2008-03-30  Bruno Haible  <bruno@clisp.org>
42158
42159         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
42160         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
42161
42162 2008-03-30  Bruno Haible  <bruno@clisp.org>
42163
42164         Avoid failure when attempting to return empty iconv results on some
42165         platforms.
42166         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
42167         allocation, don't report ENOMEM when the resulting string is empty.
42168
42169 2008-03-30  Bruno Haible  <bruno@clisp.org>
42170
42171         Fix buffer overrun.
42172         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
42173         Don't consider the width for tmp_length. Check count against tmp_length
42174         before doing the padding. Ensure enough allocation during padding.
42175
42176 2008-03-30  Eric Blake  <ebb9@byu.net>
42177
42178         strtod touchups.
42179         * lib/strtod.c (strtod): Avoid compiler warnings.
42180         Reported by Jim Meyering.
42181
42182 2008-03-30  Bruno Haible  <bruno@clisp.org>
42183
42184         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
42185         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
42186         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
42187         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
42188         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
42189         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
42190         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
42191         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
42192
42193         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
42194         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
42195         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
42196         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
42197         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
42198         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
42199         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
42200         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
42201
42202         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
42203         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
42204         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
42205         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
42206         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
42207         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
42208         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
42209         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
42210
42211         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
42212         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
42213
42214         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
42215         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
42216
42217         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
42218         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
42219
42220         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
42221         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
42222         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
42223
42224         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
42225         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
42226         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
42227
42228         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
42229         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
42230         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
42231
42232         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
42233         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
42234         * modules/vasprintf (Depends-on): Add EOVERFLOW.
42235
42236         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
42237         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
42238         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
42239         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
42240         (Depends-on): Add EOVERFLOW.
42241         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
42242         (Depends-on): Add EOVERFLOW.
42243         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42244         (Depends-on): Add EOVERFLOW.
42245         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
42246         (Depends-on): Add EOVERFLOW.
42247         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42248         (Depends-on): Add EOVERFLOW.
42249         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
42250         (Depends-on): Add EOVERFLOW.
42251         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42252         (Depends-on): Add EOVERFLOW.
42253         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
42254         (Depends-on): Add EOVERFLOW.
42255
42256         * lib/sprintf.c (EOVERFLOW): Remove fallback.
42257         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
42258         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
42259
42260         * lib/snprintf.c (EOVERFLOW): Remove fallback.
42261         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
42262         * modules/snprintf (Depends-on): Add EOVERFLOW.
42263
42264         * lib/poll.c (EOVERFLOW): Remove fallback.
42265         * modules/poll (Depends-on): Add EOVERFLOW.
42266
42267         * lib/getugroups.c (EOVERFLOW): Remove fallback.
42268         * modules/getugroups (Depends-on): Add EOVERFLOW.
42269
42270         * lib/getdelim.c (EOVERFLOW): Remove fallback.
42271         * modules/getdelim (Depends-on): Add EOVERFLOW.
42272
42273         * lib/ftell.c (EOVERFLOW): Remove fallback.
42274         * modules/ftell (Depends-on): Add EOVERFLOW.
42275
42276         * lib/fprintf.c (EOVERFLOW): Remove fallback.
42277         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
42278         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
42279
42280         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
42281
42282         * modules/EOVERFLOW-tests: New file.
42283         * tests/test-EOVERFLOW.c: New file.
42284
42285         * modules/EOVERFLOW: New file.
42286         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
42287
42288 2008-03-30  Bruno Haible  <bruno@clisp.org>
42289
42290         Fix bug introduced on 2007-06-10.
42291         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
42292         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
42293
42294 2008-03-30  Bruno Haible  <bruno@clisp.org>
42295
42296         Improve freadseek's efficiency after ungetc.
42297         * lib/freadseek.c: Include freadahead.h.
42298         (freadptrinc): New function, extracted from freadseek.
42299         (freadseek): Use it in a loop. Use freadahead to determine the number
42300         of loop iterations.
42301         * modules/freadseek (Depends-on): Add freadahead.
42302         (configure.ac): Require AC_C_INLINE.
42303
42304 2008-03-30  Bruno Haible  <bruno@clisp.org>
42305
42306         * lib/freadseek.c (freadseek): Don't ignore the return value of
42307         freadptr.
42308
42309 2008-03-29  Eric Blake  <ebb9@byu.net>
42310
42311         Add hex float support.
42312         * modules/strtod (Depends-on): Add c-ctype.
42313         (Link): Mention POW_LIB.
42314         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
42315         whitespace between 'e' and exponent.
42316         * tests/test-strtod.c (main): Enable hex float tests.
42317         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
42318         now provides.
42319
42320         Document various strtod bugs, with some fixes.
42321         * doc/posix-functions/strtod.texi (strtod): Document bugs with
42322         "-0x", "inf", "nan", and hex constants.
42323         * doc/posix-functions/atof.texi (atof): Likewise.
42324         * modules/stdlib (Makefile.am): Support strtod.
42325         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42326         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
42327         detect additional strtod bugs.
42328         * lib/stdlib.in.h (rpl_strtod): Add declarations.
42329         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
42330         bool where appropriate.  Parse 'inf' and 'nan'.
42331         * tests/test-strtod.c: New file.
42332         * modules/strtod (Depends-on): Add stdbool, stdlib.
42333         (configure.ac): Turn on module indicator.
42334         * modules/strtod-tests: New module.
42335
42336 2008-03-29  Eric Blake  <ebb9@byu.net>
42337
42338         Fix ftell on mingw.
42339         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
42340         * modules/ftell-tests (Depends-on): Add binary-io.
42341         * modules/ftello-tests (Depends-on): Likewise.
42342         * tests/test-ftell.c (main): Enhance test to cover behavior after
42343         ungetc.  Enforce binary mode.
42344         * tests/test-ftello.c (main): Likewise.
42345
42346         Pass test-freadseek on cygwin.
42347         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
42348         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
42349         ungetc buffer.
42350
42351         * tests/test-fflush2.c (main): Fix typo.
42352
42353 2008-03-29  Bruno Haible  <bruno@clisp.org>
42354
42355         * tests/test-fflush2.c (main): Temporarily disable the contents of
42356         this test.
42357         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
42358         Reported by Eric Blake.
42359
42360 2008-03-28  Simon Josefsson  <simon@josefsson.org>
42361
42362         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
42363         (GC_SHA224_DIGEST_SIZE): Add.
42364
42365         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
42366         (gc_hash_digest_length): Likewise.
42367         (gc_hash_buffer): Likewise.
42368
42369 2008-03-25  Bruno Haible  <bruno@clisp.org>
42370
42371         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
42372         detail which gettext release to use.
42373         Reported by Simon Josefsson.
42374
42375 2008-03-26  Jim Meyering  <meyering@redhat.com>
42376
42377         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
42378         * modules/gnumakefile (clean-GNUmakefile): Also, use
42379         test ... && ... || : syntax rather than if-then ... fi.
42380
42381         gnumakefile: Don't double-quote-expand $(VPATH) value.
42382         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
42383
42384 2008-03-24  Eric Blake  <ebb9@byu.net>
42385
42386         Alter GNUmakefile to install into top directory.
42387         * modules/maintainer-makefile: Split, and add dependency...
42388         * modules/gnumakefile: to this new module.
42389         * build-aux/GNUmakefile: Move...
42390         * top/GNUmakefile: ...here.
42391         * build-aux/maint.mk: Move...
42392         * top/maint.mk: ...here.
42393         * MODULES.html.sh (Support for maintaining...): Document new
42394         module.
42395
42396 2008-03-23  Bruno Haible  <bruno@clisp.org>
42397
42398         * gnulib-tool: New options --vc-files, --no-vc-files.
42399         (func_usage): Document them.
42400         (vc_files): New variable.
42401         (func_import): Consider vc_files.
42402         (func_create_testdir): Set vc_files to empty.
42403         Suggested by Jim Meyering and Karl Berry.
42404
42405 2008-03-23  Bruno Haible  <bruno@clisp.org>
42406
42407         Fix regex compilation error on HP-UX 11.
42408         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
42409         * modules/regex (Files): Add m4/mbstate_t.m4.
42410         Reported by Ton Voon <ton.voon@altinity.com>.
42411
42412 2008-03-23  Bruno Haible  <bruno@clisp.org>
42413
42414         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
42415
42416 2008-03-23  Eric Blake  <ebb9@byu.net>
42417             Bruno Haible  <bruno@clisp.org>
42418
42419         Install files from top/ in the destination directory.
42420         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
42421         augmentation also for the files from top/.
42422         (func_import, func_create_testdir): Rewrite file names:
42423         top/filename -> filename.
42424
42425 2008-03-23  Bruno Haible  <bruno@clisp.org>
42426
42427         Tweak "gnulib --version" output.
42428         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
42429
42430 2008-03-23  Bruno Haible  <bruno@clisp.org>
42431
42432         Tweak "gnulib --version" output.
42433         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
42434         rather than contents of ChangeLog, when possible.
42435
42436 2008-03-21  Eric Blake  <ebb9@byu.net>
42437
42438         More --version tweaks.
42439         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
42440         date of last ChangeLog entry.
42441
42442 2008-03-21  Jim Meyering  <meyering@redhat.com>
42443
42444         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
42445
42446 2008-03-20  Eric Blake  <ebb9@byu.net>
42447
42448         VPATH fix.
42449         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
42450
42451 2008-03-20  Simon Josefsson  <simon@josefsson.org>
42452
42453         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
42454         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
42455
42456 2008-03-20  Eric Blake  <ebb9@byu.net>
42457
42458         Sync GNUmakefile with coreutils.
42459         * build-aux/GNUmakefile (have-Makefile): Rename...
42460         (_have-Makefile): ...to this, for namespace consideration.
42461         (GNUmakefile.cfg): Include, if present.
42462         (_autoreconf): Define a default.
42463         (_is-dist-target): New rule for rebuilds to pick up intra-release
42464         version.
42465         (maint-cfg.mk): Rename...
42466         (cfg.mk): ...to this.
42467
42468 2008-03-18  Jim Meyering  <meyering@redhat.com>
42469
42470         New script and module: mktempd
42471         * MODULES.html.sh (maint+release support): Add mktempd.
42472         * build-aux/mktempd: New file.
42473         * modules/mktempd: New file.
42474
42475 2008-03-15  Jim Meyering  <meyering@redhat.com>
42476
42477         Undo last change.
42478         * lib/sha1.c, lib/md5.c: 63 != ~63.
42479         Reported by Andreas Schwab.
42480
42481         sha1.c, md5.c: Hoist a redundant expression.
42482         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
42483         "ctx->buflen" only once, before calling *_process_block.
42484         * lib/md5.c (md5_process_bytes): Likewise.
42485
42486 2008-03-14  Eric Blake  <ebb9@byu.net>
42487
42488         Bump copyright year in files generated by gnulib-tool.
42489         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
42490         gnulib-tool, rather than hard-coding it.
42491
42492         Fix 'gnulib-tool --version' output to work with git.
42493         * gnulib-tool (func_gnulib_dir): New function, extracted from...
42494         (startup): ...here.
42495         (func_version): Use it to invoke git-version-gen, rather than
42496         relying on CVS keyword expansion.  Modernize wording.
42497         (cvsdatestamp, last_checkin_date, version): Kill unused
42498         variables.
42499
42500 2008-03-12  Jim Meyering  <meyering@redhat.com>
42501
42502         Recognize optional cast of the argument to free.
42503         * build-aux/useless-if-before-free: Update regexps.
42504
42505         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
42506
42507 2008-03-11  Bruno Haible  <bruno@clisp.org>
42508
42509         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
42510         by a single package.
42511         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
42512         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
42513         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
42514         Reported by Sam Steingold <sds@gnu.org>.
42515
42516 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42517
42518         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
42519         repositories.
42520
42521 2008-03-11  Bruno Haible  <bruno@clisp.org>
42522
42523         Avoid conflicts between local macro definitions.
42524         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
42525         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
42526
42527 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
42528             Bruno Haible  <bruno@clisp.org>
42529
42530         Make va_copy work with some version of xlc on AIX 5.1.
42531         * lib/stdarg.in.h: New file.
42532         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
42533         On AIX, use a <stdarg.h> file substitute.
42534         * modules/stdarg (Files): Add lib/stdarg.in.h.
42535         (Depends-on): Add include_next.
42536         (Makefile.am): Build a stdarg.h substitute if requested.
42537         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
42538
42539 2008-03-10  Bruno Haible  <bruno@clisp.org>
42540
42541         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
42542         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42543         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42544
42545 2008-03-10  Bruno Haible  <bruno@clisp.org>
42546
42547         * modules/stdlib (Depends-on): Add include_next, remove
42548         absolute-header.
42549
42550 2008-03-09  Bruno Haible  <bruno@clisp.org>
42551
42552         * lib/freadahead.h (freadahead): Document more precisely.
42553         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
42554         the sum of both buffer sizes.
42555         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
42556         * NEWS: Document the change.
42557
42558 2008-03-09  Bruno Haible  <bruno@clisp.org>
42559
42560         Extend freadptr to return also the buffer size.
42561         * lib/freadptr.h (freadptr): Add sizep argument.
42562         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
42563         (freadptr): Add sizep argument. Determine buffer size like freadahead
42564         does.
42565         * tests/test-freadptr.c: Don't include freadahead.h.
42566         (main): Adapt for new calling convention of freadptr.
42567         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
42568         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
42569         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
42570         tests/test-freadptr2.sh.
42571         (Depends): Remove freadahead.
42572         (TESTS): Add test-freadptr2.sh.
42573         (check_PROGRAMS): Add test-freadptr2.
42574
42575 2008-03-09  Bruno Haible  <bruno@clisp.org>
42576
42577         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
42578         Report and solution by Simon Josefsson.
42579
42580 2008-03-06  Bruno Haible  <bruno@clisp.org>
42581
42582         Make fflush after ungetc work on BSD platforms.
42583         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
42584         * tests/test-fflush2.c: New file.
42585         * tests/test-fflush2.sh: New file.
42586         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
42587         tests/test-fflush2.c.
42588         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
42589         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
42590
42591 2008-03-06  Eric Blake  <ebb9@byu.net>
42592
42593         Likewise for ftello.
42594         * modules/ftello (Dependencies): Add extensions.
42595         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
42596
42597 2008-03-06  Bruno Haible  <bruno@clisp.org>
42598
42599         * modules/fseeko (Dependencies): Add extensions.
42600         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
42601         Needed on glibc systems.
42602
42603 2008-03-06  Bruno Haible  <bruno@clisp.org>
42604
42605         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
42606         email address.
42607         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42608
42609 2008-03-06  Bruno Haible  <bruno@clisp.org>
42610
42611         * users.txt: Add libgnupdf.
42612
42613 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
42614
42615         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
42616         (Header File Substitutes, Function Substitutes,
42617         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
42618         (Build robot for gnulib): Fix typo.
42619
42620 2008-03-06  Bruno Haible  <bruno@clisp.org>
42621
42622         * doc/gnulib-tool.texi (VCS Issues): Small updates.
42623         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
42624
42625 2008-03-06  Bruno Haible  <bruno@clisp.org>
42626
42627         * doc/func.texi: New file, extracted from doc/gnulib.texi.
42628         * doc/gnulib.texi: Include it.
42629
42630 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42631
42632         * modules/func (License): Change license to unlimited; there was
42633         no LGPL parts in the module anyway.
42634
42635 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42636
42637         * modules/__func__: Renamed to modules/func.
42638         * modules/__func__-tests: Renamed to modules/func-tests.
42639         * tests/test-__func__.c: Renamed to tests/test-func.c.
42640         * m4/__func__.m4: Renamed to m4/func.m4.
42641         * doc/gnulib.texi (__func__): Section renamed to func.
42642         Suggested by Eric Blake <ebb9@byu.net>.
42643
42644 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42645
42646         * doc/gnulib.texi (__func__): Use C99 terminology when talking
42647         about __func__.  Make example self-contained.  Suggested by Eric
42648         Blake <ebb9@byu.net>.
42649
42650         * tests/test-__func__.c (main): Avoid extraneous () around __func.
42651         Suggested by Eric Blake <ebb9@byu.net>.
42652
42653 2008-03-06  Simon Josefsson  <simon@josefsson.org>
42654
42655         * modules/__func__: New file.
42656         * modules/__func__-tests: New file.
42657         * tests/test-__func__.c: New file.
42658         * m4/__func__.m4: New file.
42659         * doc/gnulib.texi (__func__): Document __func__ module.
42660
42661 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42662
42663         * modules/byteswap (License): Re-license as LGPLv2+.
42664
42665 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42666
42667         * doc/Makefile: Add pdf target.
42668
42669 2008-03-05  Simon Josefsson  <simon@josefsson.org>
42670
42671         * modules/inline (License): Use 'unlimited', since there are only
42672         *.m4 files in this module.
42673
42674 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42675             Bruno Haible  <bruno@clisp.org>
42676
42677         Add support for HP C 7.1 on OpenVMS 8.3.
42678         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
42679
42680 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
42681
42682         Update VMS specifics.
42683         * lib/getopt.c [VMS]: Remove include of unixlib.h.
42684
42685 2008-03-02  Jim Meyering  <meyering@redhat.com>
42686
42687         Remove the last dependency on the "free" module.
42688         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
42689         Reported by Bob Proulx.
42690
42691         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
42692
42693         Remove useless "if" tests before free.  Deprecate "free" module.
42694         * doc/posix-functions/free.texi: Mention that this
42695         module is no longer useful.
42696         * modules/free (Notice): Say this module is obsolete.
42697         * modules/readutmp (Depends-on): Remove free.
42698         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
42699         * lib/putenv.c (putenv): Likewise.
42700         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
42701         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
42702         * tests/test-c-strcasestr.c (main): Likewise.
42703         * tests/test-c-strstr.c (main): Likewise.
42704         * tests/test-mbscasestr1.c (main): Likewise.
42705         * tests/test-mbscasestr2.c (main): Likewise.
42706         * tests/test-mbsstr1.c (main): Likewise.
42707         * tests/test-mbsstr2.c (main): Likewise.
42708         * tests/test-memmem.c (main): Likewise.
42709         * tests/test-strcasestr.c (main): Likewise.
42710         * tests/test-striconv.c (main): Likewise.
42711         * tests/test-striconveh.c (main): Likewise.
42712         * tests/test-striconveha.c (main): Likewise.
42713         * tests/test-strstr.c (main): Likewise.
42714
42715         * build-aux/git-version-gen: Adjust a comment and the Usage string.
42716
42717         bootstrap: sync from coreutils again
42718         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
42719
42720 2008-03-01  Jim Meyering  <meyering@redhat.com>
42721
42722         bootstrap: sync from coreutils
42723         * build-aux/bootstrap (update_po_files): Copy a .po file into place
42724         also when the target doesn't exist.
42725
42726 2008-03-01  Eric Blake  <ebb9@byu.net>
42727
42728         Fix bugs in last patch.
42729         * lib/memchr2.c (memchr2): Fix typo.
42730         * tests/test-memchr2.c: Test previous bug, and don't use GNU
42731         extension.
42732         Reported by Bruce Korb.
42733
42734         New module 'memchr2'.
42735         * modules/memchr2: New file.
42736         * modules/memchr2-tests: Likewise.
42737         * lib/memchr2.h: Likewise.
42738         * lib/memchr2.c: Likewise, based on memchr.c.
42739         * tests/test-memchr2.c: New test.
42740         * MODULES.html.sh (String handling): Add memchr2.
42741
42742 2008-02-29  Bruno Haible  <bruno@clisp.org>
42743
42744         * modules/freadseek-tests: New file.
42745         * tests/test-freadseek.sh: New file.
42746         * tests/test-freadseek.c: New file.
42747
42748         New module 'freadseek'.
42749         * modules/freadseek: New file.
42750         * lib/freadseek.h: New file.
42751         * lib/freadseek.c: New file.
42752         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
42753
42754 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
42755
42756         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
42757         wydawca.
42758
42759         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
42760         program_invocation_name and program_invocation_short_name are
42761         present.
42762
42763 2008-02-28  Bruno Haible  <bruno@clisp.org>
42764
42765         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
42766         * tests/test-freadptr.sh: Also test non-seekable stdin.
42767
42768 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
42769
42770         * build-aux/bootstrap (source_base, m4_base)
42771         (doc_base, tests_base): New variables.
42772         (gnulib_tool_options): Do not hardcode base directories, use
42773         the above variables instead.
42774
42775 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
42776
42777         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
42778
42779 2008-02-28  Bruno Haible  <bruno@clisp.org>
42780
42781         * modules/freadptr-tests: New file.
42782         * tests/test-freadptr.sh: New file.
42783         * tests/test-freadptr.c: New file.
42784
42785         New module 'freadptr'.
42786         * modules/freadptr: New file.
42787         * lib/freadptr.h: New file.
42788         * lib/freadptr.c: New file.
42789         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
42790
42791 2008-02-26  Karl Berry  <karl@freefriends.org>
42792
42793         Sync from Libtool:
42794         * libltdl/argz.c (argz_add, argz_count): New functions.
42795         * libltdl/argz.in.h: Declare them.
42796         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
42797
42798 2008-02-22  Bruno Haible  <bruno@clisp.org>
42799
42800         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
42801         is a pointer type.  Needed for HP-UX 10.
42802         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
42803         * doc/posix-functions/gmtime_r.texi: Likewise.
42804         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
42805
42806 2008-02-24  Bruno Haible  <bruno@clisp.org>
42807
42808         * modules/environ-tests: New file.
42809         * tests/test-environ.c: New file.
42810
42811         New module 'environ'.
42812         * modules/environ: New file.
42813         * lib/unistd.in.h (environ): New declaration.
42814         * m4/environ.m4: New file.
42815         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
42816         after use.
42817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
42818         HAVE_DECL_ENVIRON.
42819         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
42820         HAVE_DECL_ENVIRON.
42821         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
42822         wrong claim that 'environ' is missing on some systems.
42823         * modules/execute (Depends-on): Add environ.
42824         * lib/execute.c (environ): Remove fallback declaration.
42825         * modules/pipe (Depends-on): Add environ.
42826         * lib/pipe.c (environ): Remove fallback declaration.
42827         * modules/setenv (Depends-on): Add environ.
42828         * lib/setenv.c (environ): Remove fallback declaration.
42829         * modules/unsetenv (Depends-on): Add environ.
42830         * lib/unsetenv.c (environ): Remove fallback declaration.
42831         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
42832         m4/environ.m4.
42833         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
42834         (gl_PREREQ_UNSETENV): Likewise.
42835
42836 2008-02-24  Bruno Haible  <bruno@clisp.org>
42837
42838         * doc/posix-functions/environ.texi: Document the MacOS X problem.
42839
42840 2008-02-20  Bob Proulx  <bob@proulx.com>
42841
42842         Enable use of older two part flavor 'git describe'.
42843         * build-aux/git-version-gen: If using the older two part flavor of
42844         git version then recreate the third part now present in the
42845         newer three part flavor of git describe.
42846
42847 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
42848
42849         * lib/fts.c (fts_build): Typo correction to comment.
42850
42851 2008-02-17  Bruno Haible  <bruno@clisp.org>
42852
42853         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
42854         generating no-op conflicts.
42855
42856 2008-02-17  Bruno Haible  <bruno@clisp.org>
42857
42858         Speed up by 10%.
42859         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
42860         result_entries, rather than an index-based loop.
42861
42862 2008-02-17  Bruno Haible  <bruno@clisp.org>
42863
42864         Speed up by 25%.
42865         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
42866         'hashcode_cached'.
42867         (entry_create): New function.
42868         (entry_hashcode): Use the cached hashcode if possible.
42869         (read_changelog_file, try_split_merged_entry): Use entry_create.
42870
42871 2008-02-17  Bruno Haible  <bruno@clisp.org>
42872
42873         Speed up from O(n^2) to O(n) for long ChangeLog files.
42874         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
42875         (read_changelog_file): Change implementation of entries_reversed list
42876         to rbtreehash.
42877         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
42878
42879 2008-02-17  Bruno Haible  <bruno@clisp.org>
42880
42881         New option --split-merged-entry.
42882         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
42883         (find_paragraph_end, try_split_merged_entry): New functions.
42884         (long_options): Add option --split-merged-entry.
42885         (usage): Document option --split-merged-entry.
42886         (main): Implement option --split-merged-entry.
42887         Reported by Eric Blake.
42888
42889 2008-02-17  Bruno Haible  <bruno@clisp.org>
42890
42891         * lib/git-merge-changelog.c: Include c-strstr.h.
42892         (main): Support the "git pull --rebase" situation.
42893         * modules/git-merge-changelog (Depends-on): Add c-strstr.
42894         Reported by Eric Blake.
42895
42896 2008-02-16  Eric Blake  <ebb9@byu.net>
42897
42898         Avoid doubling \ in common case of "c-maybe" quoting style.
42899         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
42900         eliding outer quotes.
42901         * lib/quotearg.h: Document this.
42902         * tests/test-quotearg.c (result_strings, inputs, results_g)
42903         (flag_results, locale_results): Test it by adding a new string to
42904         each test group.
42905         (compare_strings): Test new string.
42906
42907 2008-02-13  Eric Blake  <ebb9@byu.net>
42908
42909         Avoid trigraph quoting in default output.
42910         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
42911         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
42912         unless explicitly requested.
42913         * tests/test-quotearg.c (flag_results, main): Add additional tests.
42914
42915 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
42916
42917         Don't rely on signed integer overflowing to negative value.
42918         * lib/getugroups.c (getugroups): Include <limits.h>.
42919         Instead, compare against INT_MAX, and increment only if the test passes.
42920
42921 2008-02-13  Jim Meyering  <meyering@redhat.com>
42922         and Eric Blake  <ebb9@byu.net>
42923
42924         Avoid shadowing warning and compile errors on Linux.
42925         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
42926         forwarding macros on Linux.
42927         (dcgettext): Define a stub, for Linux.
42928         (results_g, main): Avoid warnings.
42929
42930 2008-02-12  Eric Blake  <ebb9@byu.net>
42931
42932         Silence warning in last patch.
42933         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
42934
42935         Quotearg part 4: add tests, fix c-maybe colon quoting.
42936         * lib/quotearg.h: Improve documentation.
42937         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
42938         escapes when adding outer quotes.  When quoting trigraphs, use
42939         valid C notation.  When quoting NUL, omit extra characters if next
42940         character is not digit.  Alter prototype.
42941         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
42942         callers.
42943         * modules/quotearg-tests: New module.
42944         * tests/test-quotearg.c: New test.
42945
42946 2008-02-07  Eric Blake  <ebb9@byu.net>
42947
42948         Quotearg part 3: add flag to control outer quote elision.
42949         * lib/quotearg.h (c_maybe_quoting_style): New style.
42950         (enum quoting_flags): Better documentation of flags.
42951         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
42952         c-maybe style.
42953         (quotearg_buffer_restyled): Handle new flag to elide outer
42954         quotes.
42955
42956         Quotearg part 2: add flag that can control NUL elision.
42957         * lib/quotearg.h (set_quoting_flags): New prototype.
42958         * lib/quotearg.c (struct quoting_options): Add flag field.
42959         (set_quoting_flags): New function.
42960         (quotearg_buffer_restyled): Add flags parameter.
42961         (quotearg_alloc_mem): Set the flag if length cannot be returned.
42962         (quotearg_n_options): Set the flag, since length cannot be
42963         returned.
42964         (quoting_options_from_style): Default flags correctly.
42965
42966         Quotearg part 1: more wrappers, restore quotearg_char state.
42967         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
42968         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
42969         (quotearg_colon_mem): New wrappers.
42970         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
42971         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
42972         functions.
42973         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
42974         (quotearg_colon_mem): New functions.
42975
42976 2008-02-11  Bruno Haible  <bruno@clisp.org>
42977
42978         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
42979         library in the current directory: it does not work with parallel make.
42980         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42981
42982 2008-02-11  Bruno Haible  <bruno@clisp.org>
42983
42984         * .gitattributes: New file.
42985
42986 2008-02-11  Jim Meyering  <meyering@redhat.com>
42987
42988         useless-if-before-free: Fix reversed exit values.
42989         * build-aux/useless-if-before-free: Use correct values
42990         for EXIT_MATCH and EXIT_NO_MATCH.
42991
42992         * build-aux/useless-if-before-free: Close stdout carefully.
42993
42994 2008-02-10  Bruno Haible  <bruno@clisp.org>
42995
42996         New module 'git-merge-changelog'.
42997         * modules/git-merge-changelog: New file.
42998         * lib/git-merge-changelog.c: New file.
42999
43000 2008-02-10  Jim Meyering  <meyering@redhat.com>
43001
43002         useless-if-before-free: New option: --list (-l).
43003
43004         useless-if-before-free: Don't exit immediately upon open failure.
43005         * build-aux/useless-if-before-free: Exit 2 for errors.
43006         Upon failure to open a file, don't exit immediately.
43007         Rather, just warn and continue with any remaining files.
43008
43009 2008-02-10  Bruno Haible  <bruno@clisp.org>
43010
43011         New abstract list operation 'node_set_value'.
43012         * lib/gl_list.h (gl_list_node_set_value): New function.
43013         (struct gl_list_implementation): New field node_set_value.
43014         * lib/gl_list.c (gl_list_node_set_value): New function.
43015         * lib/gl_array_list.c (gl_array_node_set_value): New function.
43016         (gl_array_list_implementation): Update.
43017         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
43018         (gl_carray_list_implementation): Update.
43019         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
43020         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
43021         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
43022         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
43023         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
43024         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
43025         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
43026         Update.
43027         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
43028         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
43029         (gl_sublist_list_implementation): Update.
43030
43031 2008-02-10  Bruno Haible  <bruno@clisp.org>
43032
43033         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
43034         Needed when ELEMENT is #defined to 'some_type *'.
43035
43036 2008-02-10  Jim Meyering  <meyering@redhat.com>
43037
43038         New script and module: useless-if-before-free
43039         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
43040         * build-aux/useless-if-before-free: New file.
43041         * modules/useless-if-before-free: New file.
43042
43043         * build-aux/gitlog-to-changelog: Use committer date, not author date.
43044
43045         xstrtol_error: Fix typo.
43046         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
43047         s/exit_failure/exit_status/.
43048
43049 2008-02-09  Jim Meyering  <meyering@redhat.com>
43050
43051         New script and module: gitlog-to-changelog
43052         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
43053         * modules/gitlog-to-changelog: New file.
43054         * build-aux/gitlog-to-changelog: New file.
43055
43056 2008-02-08  Jim Meyering  <meyering@redhat.com>
43057
43058         Avoid two "parameter unused" warnings.
43059         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
43060         Mark "st" as used.
43061
43062         Use "git COMMAND", not "git-COMMAND".
43063         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
43064         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
43065         * build-aux/git-version-gen: Use "git status", not "git-status".
43066
43067 2008-02-07  Bruno Haible  <bruno@clisp.org>
43068
43069         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
43070         Avoids a crash on Windows Vista.
43071         Reported by Adam Strzelecki <ono@java.pl> via
43072         Simon Josefsson <simon@josefsson.org>.
43073
43074 2008-02-06  Bruno Haible  <bruno@clisp.org>
43075
43076         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
43077         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
43078         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
43079         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
43080         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
43081         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43082         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
43083         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
43084         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43085         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43086         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43087         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43088         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43089         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
43090         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43091         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
43092         left-adjust flag.
43093         * tests/test-snprintf-posix.h (test_function): Likewise.
43094         * tests/test-sprintf-posix.h (test_function): Likewise.
43095         * tests/test-vasprintf-posix.c (test_function): Likewise.
43096         * doc/posix-functions/fprintf.texi: Update.
43097         * doc/posix-functions/printf.texi: Update.
43098         * doc/posix-functions/snprintf.texi: Update.
43099         * doc/posix-functions/sprintf.texi: Update.
43100         * doc/posix-functions/vfprintf.texi: Update.
43101         * doc/posix-functions/vprintf.texi: Update.
43102         * doc/posix-functions/vsnprintf.texi: Update.
43103         * doc/posix-functions/vsprintf.texi: Update.
43104         Reported by Peter Fales <psfales@alcatel-lucent.com>.
43105
43106 2008-02-06  Bruno Haible  <bruno@clisp.org>
43107
43108         Fix bug introduced on 2008-01-26.
43109         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
43110
43111 2008-02-06  Bruno Haible  <bruno@clisp.org>
43112
43113         Fix bug introduced on 2007-06-10.
43114         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
43115         !NEED_PRINTF_FLAG_ZERO.
43116
43117 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
43118
43119         getloadavg: use libperfstat on AIX5
43120         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
43121
43122 2008-02-03  Bruno Haible  <bruno@clisp.org>
43123
43124         * lib/diffseq.h: Add comments about required #includes.
43125         Reported by Michael Biggs <gnulib@doubleplum.net>.
43126
43127 2008-02-01  Bruno Haible  <bruno@clisp.org>
43128
43129         * users.txt: Add gnuit.
43130
43131 2008-01-31  Bruno Haible  <bruno@clisp.org>
43132
43133         * lib/md4.c (set_uint32): Mark as inline.
43134         * lib/md5.c (set_uint32): Likewise.
43135         * lib/sha1.c (set_uint32): Likewise.
43136         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
43137         * m4/md5.m4 (gl_MD5): Likewise.
43138         * m4/sha1.m4 (gl_SHA1): Likewise.
43139
43140 2008-01-31  Jim Meyering  <meyering@redhat.com>
43141
43142         Use "sizeof VAR", rather than a literal "4".
43143         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
43144         * lib/md4.c (md4_read_ctx): Likewise.
43145         * lib/sha1.c (sha1_read_ctx): Likewise.
43146
43147 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43148
43149         * tests/test-sha1.c: New file, based on test-md5.c.
43150
43151         * modules/crypto/sha1-tests: New file.
43152
43153 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43154
43155         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
43156
43157 2008-01-31  Jim Meyering  <meyering@redhat.com>
43158
43159         Prefer "sizeof v" over the equivalent "4".
43160         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
43161         * lib/md5.c (set_uint32): Likewise.
43162         * lib/sha1.c (set_uint32): Likewise.
43163
43164 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43165
43166         * lib/sha1.c (set_uint32): Mark function as static.
43167
43168 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43169
43170         md2: clarify comments to say that alignment is not required.
43171         * lib/md2.h: Remove warning about alignment in comment.
43172         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
43173         never been required.
43174
43175 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43176
43177         md4: adapt alignment constraint fix from sha1.
43178         * lib/md4.c (set_uint32): New function, from sha1.c
43179         (md4_read_ctx): Use it.
43180         (md4_finish_ctx): Doc fix.
43181         * lib/md4.h: Doc fix.
43182
43183 2008-01-31  Simon Josefsson  <simon@josefsson.org>
43184
43185         md5: adapt alignment constraint fix from sha1.
43186         * lib/md5.c (set_uint32): New function, from sha1.c
43187         (md5_read_ctx): Use it.
43188         (md5_finish_ctx): Doc fix.
43189         * lib/md5.h: Doc fix.
43190
43191 2008-01-30  Peter Palfrader  <weasel@debian.org>
43192
43193         sha1: remove the result buffer alignment constraint
43194         * lib/sha1.c (set_uint32): New function.
43195         (sha1_read_ctx): Rewrite to remove the result buffer alignment
43196         constraint.
43197         (sha1_finish_ctx): Remove comment warning about alignment constraint.
43198         * lib/sha1.h: Likewise.
43199
43200 2008-01-30  Andreas Schwab  <schwab@suse.de>
43201             Bruno Haible  <bruno@clisp.org>
43202
43203         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
43204         correct definition of LDBL_MIN_EXP.
43205
43206 2008-01-30  Karl Berry  <karl@gnu.org>
43207
43208         * config/srclist-update: try to preserve x bit on updates.
43209         * config/srclistvars.sh: update for karl.
43210
43211 2008-01-29  Jim Meyering  <meyering@redhat.com>
43212
43213         vasnprintf.c: Avoid warning about unused label
43214         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
43215         "overflow" label definition and associated code with the
43216         same cpp condition that guards the sole use of that label.
43217
43218 2008-01-26  Bruno Haible  <bruno@clisp.org>
43219
43220         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
43221         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
43222         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
43223         * lib/isnanl-nolibm.h (isnanl): Likewise.
43224         Reported by Paul Eggert <eggert@cs.ucla.edu>.
43225
43226 2008-01-26  Bruno Haible  <bruno@clisp.org>
43227
43228         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
43229         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
43230
43231 2008-01-26  Bruno Haible  <bruno@clisp.org>
43232
43233         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
43234         GCC >= 4.0 built-in.
43235         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
43236
43237 2008-01-26  Bruno Haible  <bruno@clisp.org>
43238
43239         Rename isnan, applicable to 'double' only, to isnand.
43240         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
43241         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
43242         (configure.ac): Update.
43243         (Include): Replace "isnan.h" with "isnand.h".
43244         * m4/isnand.m4: Renamed from m4/isnan.m4.
43245         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
43246         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
43247         instead of isnan.c.
43248         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
43249         instead of HAVE_ISNAN_IN_LIBC.
43250         (isnand): Renamed from isnan.
43251         * lib/isnand.c: New file.
43252         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
43253         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
43254         (Makefile.am): Update.
43255         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
43256         Include isnand.h instead of isnan.h.
43257         (main): Test isnand instead of isnan.
43258         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
43259         isnan-nolibm.
43260         * modules/frexp (Depends-on): Likewise.
43261         * modules/frexp-tests (Depends-on): Likewise.
43262         * modules/frexp-nolibm (Depends-on): Likewise.
43263         * modules/frexp-nolibm-tests (Depends-on): Likewise.
43264         * modules/isfinite (Depends-on): Likewise.
43265         * modules/round-tests (Depends-on): Likewise.
43266         * modules/signbit (Depends-on): Likewise.
43267         * modules/signbit-tests (Depends-on): Likewise.
43268         * modules/snprintf-posix (Depends-on): Likewise.
43269         * modules/sprintf-posix (Depends-on): Likewise.
43270         * modules/trunc-tests (Depends-on): Likewise.
43271         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43272         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43273         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43274         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43275         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43276         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43277         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43278         * modules/vasnprintf-posix (Depends-on): Likewise.
43279         * modules/vasprintf-posix (Depends-on): Likewise.
43280         * modules/vfprintf-posix (Depends-on): Likewise.
43281         * modules/vsnprintf-posix (Depends-on): Likewise.
43282         * modules/vsprintf-posix (Depends-on): Likewise.
43283         * lib/frexp.c: Include isnand.h instead of isnan.h.
43284         (ISNAN): Set to isnand instead of isnan.
43285         * lib/isfinite.c: Include isnand.h instead of isnan.h.
43286         (gl_isfinited): Use isnand instead of isnan.
43287         * lib/signbitd.c: Include isnand.h instead of isnan.h.
43288         (gl_signbitd): Use isnand instead of isnan.
43289         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
43290         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
43291         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
43292         (main): Use isnand instead of isnan.
43293         * tests/test-round1.c: Include isnand.h.
43294         (main): Use isnand instead of isnan.
43295         * tests/test-round2.c: Include isnand.h instead of isnan.h.
43296         (ISNAN): Set to isnand instead of isnan.
43297         * tests/test-trunc1.c: Include isnand.h.
43298         (main): Use isnand instead of isnan.
43299         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
43300         (equal): Use isnand instead of isnan.
43301         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
43302         isnand-nolibm.
43303         * NEWS: Mention the change.
43304
43305 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
43306             Bruno Haible  <bruno@clisp.org>
43307
43308         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
43309         the GCC builtins for signbits are present and set
43310         REPLACE_SIGNBIT_USING_GCC if so.
43311         * lib/math.in.h (signbit): Define using GCC builtins if
43312         REPLACE_SIGNBIT_USING_GCC is set.
43313         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
43314         REPLACE_SIGNBIT_USING_GCC.
43315         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
43316
43317 2008-01-25  Jim Meyering  <meyering@redhat.com>
43318
43319         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
43320         * lib/poll.c: Include <config.h>, not "config.h".
43321         * tests/test-getaddrinfo.c: Likewise.
43322
43323 2008-01-25  Simon Josefsson  <simon@josefsson.org>
43324
43325         * modules/sockets-tests: New file.
43326
43327 2008-01-24  Simon Josefsson  <simon@josefsson.org>
43328
43329         * modules/sockets: New module, can be used to call WSA_Startup and
43330         WSA_Cleanup when needed.
43331
43332         * lib/sockets.h, lib/sockets.c: New files.
43333
43334         * m4/sockets.m4: New file.
43335
43336         * tests/test-sockets.c: New file.
43337
43338 2008-01-19  Bruno Haible  <bruno@clisp.org>
43339
43340         * doc/posix-headers: Renamed from doc/headers.
43341         * doc/posix-functions: Renamed from doc/functions.
43342         * doc/gnulib.texi: Update.
43343
43344 2008-01-19  Bruno Haible  <bruno@clisp.org>
43345
43346         * doc/glibc-functions/strcasestr.texi: Include contents of
43347         doc/functions/strcasestr.texi, fixing the list of platforms.
43348         * doc/functions/strcasestr.texi: Remove file.
43349
43350 2008-01-19  Bruno Haible  <bruno@clisp.org>
43351
43352         * doc/glibc-functions/memmem.texi: Include contents of
43353         doc/functions/memmem.texi.
43354         * doc/functions/memmem.texi: Remove file.
43355
43356 2008-01-18  Bruno Haible  <bruno@clisp.org>
43357
43358         * doc/glibc-functions/*.texi: New files.
43359         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
43360         to use the new files.
43361
43362 2008-01-17  Bruno Haible  <bruno@clisp.org>
43363
43364         * tests/test-gethostname.c (main): Fix printf statement.
43365
43366 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43367
43368         * modules/gethostname-tests: New file.
43369
43370         * tests/test-gethostname.c: New file.
43371
43372 2008-01-17  Simon Josefsson  <simon@josefsson.org>
43373
43374         * lib/gethostname.c: Include string.h unconditionally, strncpy is
43375         used by the UNAME case.  Reported by Bruno Haible
43376         <bruno@clisp.org>.
43377
43378 2008-01-17  Eric Blake  <ebb9@byu.net>
43379
43380         Convert c-strcasestr to be more efficient.
43381         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
43382         (Depends-on): Add c-strcase, remove malloca, strnlen.
43383         * tests/test-c-strcasestr.c (main): Enhance test.
43384         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
43385
43386 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
43387
43388         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
43389         Use it in creating po/Makevars.
43390
43391 2008-01-15  Simon Josefsson  <simon@josefsson.org>
43392
43393         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
43394         Applications that requires it should initialize libgcrypt
43395         manually.
43396
43397 2008-01-16  Simon Josefsson  <simon@josefsson.org>
43398
43399         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
43400
43401 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
43402
43403         Fix problem with getdate on mingw32 reported by Simon Josefsson
43404         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
43405         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
43406         tzname", when deciding whether to declare tzname.
43407         * lib/strftime.c (tzname): Likewise.
43408
43409 2008-01-15  Bruno Haible  <bruno@clisp.org>
43410
43411         Work around a MacOS X 10.5 bug in frexpl().
43412         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
43413         * doc/functions/frexpl.texi: Document the bug.
43414         Reported by Elias Pipping <pipping@gentoo.org>.
43415
43416 2008-01-14  Eric Blake  <ebb9@byu.net>
43417
43418         Touch up previous patch.
43419         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
43420         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
43421
43422         Convert strcasestr module to use Two-Way algorithm.
43423         * modules/strcasestr-simple: New module, based on the old
43424         strcasestr, but with Two-Way rather than KMP.
43425         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
43426         * lib/string.in.h (rpl_strcasestr): Declare.
43427         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
43428         performance.
43429         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
43430         * modules/string (Makefile.am): Support strcasestr.
43431         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43432         * modules/strcasestr-tests (Depends-on): Check for alarm.
43433         * tests/test-strcasestr.c: Augment test.
43434         * lib/str-two-way.h: Clean up stray macro.
43435         * NEWS: Document new module.
43436         * MODULES.html.sh (string handling): Likewise.
43437         * doc/functions/strcasestr.texi: New file.
43438         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
43439         here, since it is not a POSIX function.
43440
43441 2008-01-14  Colin Watson  <cjwatson@debian.org>
43442             Bruno Haible  <bruno@clisp.org>
43443
43444         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
43445         works fine; if not, set REPLACE_STRSIGNAL.
43446         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
43447         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43448         REPLACE_STRSIGNAL.
43449         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
43450         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
43451         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
43452
43453 2008-01-14  Bruno Haible  <bruno@clisp.org>
43454
43455         * modules/strsignal (Include): Change to <string.h>.
43456
43457 2008-01-14  Colin Watson  <cjwatson@debian.org>
43458
43459         * modules/argp (Notice): Add a notice recommending to change
43460         XGETTEXT_OPTIONS.
43461         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
43462
43463 2008-01-13  Colin Watson  <cjwatson@debian.org>
43464
43465         * modules/strsignal-tests: New file.
43466         * tests/test-strsignal.c: New file.
43467
43468         * lib/strsignal.c: New file, from glibc with modifications.
43469         * lib/siglist.h: New file, from glibc with modifications.
43470         * lib/string.in.h (strsignal): New declaration.
43471         * m4/strsignal.m4: New file.
43472         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43473         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
43474         * modules/strsignal: New file.
43475         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
43476         HAVE_DECL_STRSIGNAL.
43477
43478 2008-01-13  Bruno Haible  <bruno@clisp.org>
43479
43480         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
43481         locale encoding is not ASCII. Needed for OpenBSD 4.0.
43482         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43483         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43484
43485 2008-01-13  Bruno Haible  <bruno@clisp.org>
43486
43487         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
43488         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
43489         * lib/argp.h (__attribute__): Likewise.
43490         * lib/c-stack.c (__attribute__): Likewise.
43491         * lib/error.h (__attribute__): Likewise.
43492         * lib/fts.c (__attribute__): Likewise.
43493         * lib/openat.h (__attribute__): Likewise.
43494         * lib/stdio.in.h (__attribute__): Likewise.
43495         * lib/string.in.h (__attribute__): Likewise.
43496         * lib/utimens.c (__attribute__): Likewise.
43497         * lib/vasnprintf.h (__attribute__): Likewise.
43498         * lib/xalloc.h (__attribute__): Likewise.
43499         * lib/xprintf.h (__attribute__): Likewise.
43500         * lib/xstrtol.h (__attribute__): Likewise.
43501         * lib/xvasprintf.h (__attribute__): Likewise.
43502
43503 2008-01-12  Bruno Haible  <bruno@clisp.org>
43504
43505         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
43506         * doc/glibc-headers/a.out.texi: New file.
43507         * doc/glibc-headers/aliases.texi: New file.
43508         * doc/glibc-headers/alloca.texi: New file.
43509         * doc/glibc-headers/ar.texi: New file.
43510         * doc/glibc-headers/argp.texi: New file.
43511         * doc/glibc-headers/argz.texi: New file.
43512         * doc/glibc-headers/byteswap.texi: New file.
43513         * doc/glibc-headers/crypt.texi: New file.
43514         * doc/glibc-headers/endian.texi: New file.
43515         * doc/glibc-headers/envz.texi: New file.
43516         * doc/glibc-headers/err.texi: New file.
43517         * doc/glibc-headers/error.texi: New file.
43518         * doc/glibc-headers/execinfo.texi: New file.
43519         * doc/glibc-headers/fpu_control.texi: New file.
43520         * doc/glibc-headers/fstab.texi: New file.
43521         * doc/glibc-headers/fts.texi: New file.
43522         * doc/glibc-headers/getopt.texi: New file.
43523         * doc/glibc-headers/ieee754.texi: New file.
43524         * doc/glibc-headers/ifaddrs.texi: New file.
43525         * doc/glibc-headers/libintl.texi: New file.
43526         * doc/glibc-headers/mcheck.texi: New file.
43527         * doc/glibc-headers/mntent.texi: New file.
43528         * doc/glibc-headers/obstack.texi: New file.
43529         * doc/glibc-headers/paths.texi: New file.
43530         * doc/glibc-headers/printf.texi: New file.
43531         * doc/glibc-headers/pty.texi: New file.
43532         * doc/glibc-headers/resolv.texi: New file.
43533         * doc/glibc-headers/shadow.texi: New file.
43534         * doc/glibc-headers/sysexits.texi: New file.
43535         * doc/glibc-headers/ttyent.texi: New file.
43536
43537 2008-01-12  Jim Meyering  <meyering@redhat.com>
43538
43539         announce-gen: emit Gnulib's git-based version string.
43540         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
43541         New option --gnulib-version=V, where V is expected to be
43542         the output of running git describe in the gnulib directory.
43543         (get_tool_versions): Request feedback on xdelta.  I suspect it's
43544         not useful, and plan to stop publishing an xdelta file with each
43545         coreutils release.
43546
43547         * build-aux/announce-gen: Also check for lzma-compressed files.
43548
43549 2008-01-11  Bruno Haible  <bruno@clisp.org>
43550
43551         * tests/test-memmem.c (main): Increase maximum allowed time.
43552         * tests/test-strstr.c (main): Likewise.
43553
43554 2008-01-11  Bruno Haible  <bruno@clisp.org>
43555
43556         * doc/functions/memmem.texi: Add more precisions about platforms.
43557         * doc/functions/strstr.texi: Likewise.
43558
43559 2008-01-10  Eric Blake  <ebb9@byu.net>
43560
43561         * m4/strstr.m4: Delete cruft from copy-n-paste.
43562         Reported by Bruno Haible.
43563
43564 2008-01-10  Bruno Haible  <bruno@clisp.org>
43565
43566         Make c-strstr rely on strstr.
43567         * lib/c-strstr.c: Don't include str-kmp.h.
43568         (c_strstr): Define in terms of strstr.
43569         * modules/c-strstr (Files): Remove lib/str-kmp.h.
43570         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
43571
43572 2008-01-10  Bruno Haible  <bruno@clisp.org>
43573
43574         * doc/gnulib.texi (String Functions in C Locale): New section.
43575         * doc/c-ctype.texi: New file.
43576         * doc/c-strcase.texi: New file.
43577         * doc/c-strcaseeq.texi: New file.
43578         * doc/c-strcasestr.texi: New file.
43579         * doc/c-strstr.texi: New file.
43580         * doc/c-strtod.texi: New file.
43581         * doc/c-strtold.texi: New file.
43582
43583 2008-01-10  Eric Blake  <ebb9@byu.net>
43584
43585         * lib/relocatable.h: Fix a comment.
43586
43587 2008-01-10  Eric Blake  <ebb9@byu.net>
43588
43589         Share two-way algorithm.
43590         * lib/str-two-way.h: New file, merged from...
43591         * lib/memmem.c: ...here...
43592         * lib/strstr.c: ...and here.
43593         * modules/memmem (Files): Use it.
43594         * modules/strstr (Files): Likewise.
43595
43596         Avoid quadratic strstr implementations.
43597         * lib/strstr.c: New file.
43598         * m4/strstr.m4: Likewise.
43599         * modules/strstr: Likewise.
43600         * modules/strstr-tests: Likewise.
43601         * tests/test-strstr.c: Likewise.
43602         * lib/string.in.h (rpl_strstr): Declare.
43603         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
43604         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
43605         * modules/string (Makefile.am): Likewise.
43606         * MODULES.html.sh (string handling): Mention new module.
43607         * doc/functions/strstr.texi (strstr): Document the bug.
43608
43609 2008-01-10  Bruno Haible  <bruno@clisp.org>
43610
43611         * lib/relocatable.h (relocate): State whether result is freshly
43612         allocated or not.
43613         * lib/relocatable.c (relocate): Return a freshly allocated string
43614         instead of a pointer to a privately held string.
43615         Reported by Sylvain Beucler <beuc@gnu.org>.
43616
43617 2008-01-10  Colin Watson  <cjwatson@debian.org>
43618
43619         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
43620         s/S_ISNLK/S_ISLNK/.
43621
43622 2008-01-09  Bruno Haible  <bruno@clisp.org>
43623
43624         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
43625         and other files.
43626         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
43627         if it's only a guess.
43628         * modules/memmem: Simplify by depending on memmem-simple.
43629
43630 2008-01-09  Bruno Haible  <bruno@clisp.org>
43631
43632         Work around OpenBSD 4.0 tdelete() bug.
43633         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
43634         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
43635         macros and don't redefine the enum values.
43636         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
43637         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
43638         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
43639
43640 2008-01-09  Bruno Haible  <bruno@clisp.org>
43641
43642         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
43643         (main): Don't perform the tests if setlocale did not install a UTF-8
43644         locale. Needed on OpenBSD 4.0.
43645         * modules/wcwidth-tests (Depends-on): Add localcharset.
43646
43647 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
43648
43649         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
43650         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
43651         * NEWS: announce this.
43652         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
43653
43654 2008-01-09  Simon Josefsson  <simon@josefsson.org>
43655         and Eric Blake  <ebb9@byu.net>
43656
43657         Add memmem-simple module.
43658         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
43659         (gl_FUNC_MEMMEM): Separate performance from presence checks.
43660         * modules/memmem-simple: New file.
43661         * modules/memmem (Description): Tweak.
43662         * MODULES.html.sh (string handling): Mention new module.
43663         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
43664         addressed by memmem-simple.
43665         * NEWS: Document the difference.
43666
43667 2008-01-09  Eric Blake  <ebb9@byu.net>
43668
43669         Give gcc some memmem optimization hints.
43670         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
43671         (strcasestr): Declare as pure.
43672         * modules/memmem (Maintainer): Claim my implementation.
43673
43674 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43675
43676         Support AIX 6.1 and higher.
43677         * build-aux/config.libpath: Likewise.
43678         * build-aux/config.rpath: Likewise.
43679
43680 2008-01-08  Jim Meyering  <meyering@redhat.com>
43681             Bruno Haible  <bruno@clisp.org>
43682
43683         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
43684         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
43685         Reported by Peter Fales in
43686         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
43687
43688 2008-01-08  Bruno Haible  <bruno@clisp.org>
43689
43690         * modules/unictype/category-of (Depends-on): Add
43691         unictype/category-none.
43692         * modules/unictype/category-and-tests (Depends-on): Add
43693         unictype/category-{L,N,Lu,Nd}.
43694         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
43695         * modules/unictype/category-or-tests (Depends-on): Add
43696         unictype/category-{L,N}.
43697         * modules/unictype/category-name-tests (Depends-on): Add
43698         unictype/category-{Z,Nl}.
43699         Reported by Simon Josefsson.
43700
43701 2008-01-08  Bruno Haible  <bruno@clisp.org>
43702
43703         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
43704         convention better.
43705         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
43706         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
43707         Reported by Peter Miller <millerp@canb.auug.org.au>.
43708
43709 2008-01-08  Eric Blake  <ebb9@byu.net>
43710
43711         Rewrite memmem to guarantee linear complexity without malloc.
43712         * lib/memmem.c (memmem): Use Two-Way rather than
43713         Knuth-Morris-Pratt, to allow O(1) space usage.
43714         (critical_factorization, two_way_short_needle)
43715         (two_way_long_needle): New functions.
43716         (knuth_morris_pratt): Delete.
43717         * modules/memmem (Depends-on): No longer need malloca or stdbool.
43718         Add stdint.
43719         * tests/test-memmem.c (main): Add tests for periodic needle and
43720         sublinear performance.
43721         * doc/functions/memmem.texi (memmem): Document other deficiencies
43722         in cygwin and older glibc.
43723
43724 2008-01-08  Bruno Haible  <bruno@clisp.org>
43725
43726         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
43727         augmentation.
43728
43729 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
43730
43731         Add a configure time option: --disable-acl.
43732         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
43733         AC_ARG_ENABLE(acl).
43734
43735 2008-01-06  Simon Josefsson  <simon@josefsson.org>
43736
43737         * tests/test-localename.c: Don't include obsolete "setenv.h".
43738
43739         * modules/localename-tests (Depends-on): Need unsetenv.
43740
43741 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43742
43743         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
43744
43745 2008-01-06  Colin Watson  <cjwatson@debian.org>
43746
43747         * users.txt: Add man-db.
43748
43749 2008-01-07  Bruno Haible  <bruno@clisp.org>
43750
43751         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
43752         previous section name.
43753
43754 2008-01-07  Bruno Haible  <bruno@clisp.org>
43755
43756         * lib/progname.c (set_program_name): Don't strip off a leading
43757         "lt-" prefix outside a .libs directory.
43758         Suggested by Paul Eggert.
43759
43760 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
43761             Bruno Haible  <bruno@clisp.org>
43762
43763         Improve memory cleanup in 'relocatable' module.
43764         * lib/relocatable.h (compute_curr_prefix): Change return type to
43765         'char *'.
43766         * lib/relocatable.c (compute_curr_prefix): Change return type to
43767         'char *'. Free curr_installdir after use.
43768         (relocate): Free curr_prefix_better after use.
43769         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
43770
43771 2008-01-01  Bruno Haible  <bruno@clisp.org>
43772
43773         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
43774         failure on older glibc systems.
43775         Reported by Peter Fales <psfales@alcatel-lucent.com>.
43776
43777 2008-01-05  Eric Blake  <ebb9@byu.net>
43778
43779         Avoid quadratic system memmem.
43780         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
43781         Reported by Ralf Wildenhues.
43782
43783         Fix memmem test for mingw.
43784         * modules/memmem-tests (configure.ac): Check for alarm.
43785         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
43786         it.
43787         * doc/functions/memmem.texi: New file.
43788         * doc/gnulib.texi (Function Substitutes): Add memmem.
43789         Reported by Bruno Haible.
43790
43791 2008-01-04  Bruno Haible  <bruno@clisp.org>
43792
43793         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
43794         Require gl_HEADER_STRINGS_H_DEFAULTS, not
43795         gl_HEADER_STRING_H_DEFAULTS.
43796
43797 2008-01-04  Eric Blake  <ebb9@byu.net>
43798
43799         Shorten duration of memmem test.
43800         * tests/test-memmem.c (main): Use alarm to declare failure if test
43801         is taking too long.
43802         Reported by Ralf Wildenhues.
43803
43804 2007-12-21  Simon Josefsson  <simon@josefsson.org>
43805
43806         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
43807         string, needed by strerror.
43808
43809 2008-01-03  Colin Watson  <cjwatson@debian.org>
43810             Bruno Haible  <bruno@clisp.org>
43811
43812         * doc/gnulib-tool.texi (Localization): New section.
43813
43814 2008-01-02  Bruno Haible  <bruno@clisp.org>
43815
43816         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
43817         variables to 'unsigned char *' type.
43818         Reported by Paul Eggert.
43819
43820 2008-01-02  Jim Meyering  <jim@meyering.net>
43821
43822         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
43823
43824 2007-12-31  Jim Meyering  <jim@meyering.net>
43825
43826         Avoid use of private FTS type name.
43827         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
43828
43829 2007-12-30  Karl Berry  <karl@gnu.org>
43830
43831         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
43832         work around defect in Texinfo and/or the standalone Info browser.
43833
43834 2007-12-30  Bruno Haible  <bruno@clisp.org>
43835
43836         Unify 5 copies of the KMP code.
43837         * lib/str-kmp.h: New file.
43838         * lib/c-strcasestr.c: Include str-kmp.h.
43839         (knuth_morris_pratt): Remove function.
43840         (c_strcasestr): Update.
43841         * lib/c-strstr.c: Include str-kmp.h.
43842         (knuth_morris_pratt): Remove function.
43843         (c_strcasestr): Update.
43844         * lib/mbscasestr.c: Include str-kmp.h.
43845         (knuth_morris_pratt_unibyte): Remove function.
43846         * lib/mbsstr.c: Include str-kmp.h.
43847         (knuth_morris_pratt_unibyte): Remove function.
43848         * lib/strcasestr.c: Include str-kmp.h.
43849         (knuth_morris_pratt): Remove function.
43850         (strcasestr): Update.
43851         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
43852         * modules/c-strstr (Files): Likewise.
43853         * modules/mbscasestr (Files): Likewise.
43854         * modules/mbsstr (Files): Likewise.
43855         * modules/strcasestr (Files): Likewise.
43856         Suggested by Paul Eggert.
43857
43858 2007-12-30  Bruno Haible  <bruno@clisp.org>
43859
43860         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
43861         defined.
43862
43863 2007-12-30  Bruno Haible  <bruno@clisp.org>
43864
43865         * lib/xmalloca.h: Include xalloc.h.
43866         (xnmalloca): New macro.
43867
43868 2007-12-30  Bruno Haible  <bruno@clisp.org>
43869
43870         * lib/malloca.h (nmalloca): New macro.
43871         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
43872         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
43873         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
43874         knuth_morris_pratt_multibyte): Likewise.
43875         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
43876         knuth_morris_pratt_multibyte): Likewise.
43877         * lib/memmem.c (knuth_morris_pratt): Likewise.
43878         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
43879
43880 2007-12-25  Bruno Haible  <bruno@clisp.org>
43881
43882         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
43883         * lib/glob.c: Don't include openat.h.
43884         (link_exists2_p): Add back the code that deals with the
43885         !GLOB_ALTDIRFUNC case.
43886         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
43887         let it do the filename concatenation.
43888         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
43889         * modules/glob (Depends-on): Remove openat.
43890
43891 2007-12-31  Bruno Haible  <bruno@clisp.org>
43892
43893         * modules/dirfd (License): Change to LGPLv2+.
43894         Approved by Jim Meyering.
43895
43896 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
43897
43898         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
43899         when multiplying M by sizeof (size_t).
43900
43901 2007-12-10  Martin Lambers  <marlam@marlam.de>
43902
43903         Override getpagesize on mingw.
43904         * lib/getpagesize.c: New file.
43905         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
43906         * modules/getpagesize (Files): Add lib/getpagesize.c.
43907         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
43908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43909         REPLACE_GETPAGESIZE.
43910         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
43911
43912 2007-12-25  Bruno Haible  <bruno@clisp.org>
43913
43914         * modules/localcharset (Notice): New field.
43915         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
43916         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
43917
43918 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
43919             Bruno Haible  <bruno@clisp.org>
43920
43921         Avoid using the syntax symbol() in formatted documentation.
43922         * MODULES.html.sh (func_module): When replacing symbol() with a
43923         hyperlink, remove the parentheses. Show an error if some remain.
43924         Recognize and render the '...' syntax.
43925         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
43926         Rework. Add paragraph about GCC's inlining.
43927         * doc/alloca.texi: Likewise.
43928         * doc/error.texi: Remove parentheses from symbol reference.
43929         * doc/gnulib-intro.texi: Likewise.
43930         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
43931         * modules/fnmatch (Description): Reword to say "the ... function".
43932         * modules/full-read (Description): Likewise.
43933         * modules/full-write (Description): Likewise.
43934         * modules/safe-read (Description): Likewise.
43935         * modules/safe-write (Description): Likewise.
43936         * modules/strchrnul (Description): Likewise.
43937         * modules/trim (Description): Likewise.
43938         * modules/error (Description): Remove parentheses from symbol
43939         references.
43940         * modules/verror (Description): Likewise.
43941         Reported by Karl Berry.
43942
43943 2007-12-25  Bruno Haible  <bruno@clisp.org>
43944
43945         Fixup after 2007-10-16 commit.
43946         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
43947
43948 2007-12-24  Bruno Haible  <bruno@clisp.org>
43949
43950         Make --enable-relocatable work with DESTDIR.
43951         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
43952         to compute installdir from destprog.
43953         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
43954         also set the RELOC_DESTDIR variable.
43955         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43956
43957 2007-12-24  Bruno Haible  <bruno@clisp.org>
43958
43959         Fix link error due to xalloc_die().
43960         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
43961         of xreadlink.
43962         * lib/relocwrapper.c: Update comments.
43963         * build-aux/install-reloc: Remove xreadlink.c from file list.
43964         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
43965         xreadlink.c.
43966         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
43967
43968 2007-12-24  Bruno Haible  <bruno@clisp.org>
43969
43970         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
43971         * lib/setenv.h: Remove file.
43972         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
43973         lib/setenv.h.
43974         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
43975         (Depends-on): Add stdlib.
43976         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
43977         gl_FUNC_UNSETENV.
43978         (Include): Replace setenv.h with <stdlib.h>.
43979         * modules/unsetenv: New file.
43980         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
43981         * lib/unsetenv.c: Include <stdlib.h> first.
43982         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
43983         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
43984         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
43985         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
43986         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
43987         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43988         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
43989         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
43990         * doc/functions/unsetenv.texi: Update.
43991         * modules/xsetenv (Depends-on): Add unsetenv.
43992         * modules/getdate (Depends-on): Likewise.
43993         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
43994         * lib/xsetenv.c: Don't include setenv.h.
43995         * lib/getdate.y: Likewise.
43996         * lib/relocwrapper.c: Likewise.
43997         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
43998         (Depends-on): Add stdlib.
43999         * NEWS: Mention the changes.
44000         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
44001
44002 2007-12-23  Bruno Haible  <bruno@clisp.org>
44003
44004         * lib/memmem.c (memmem): Use lowercase variable names. Tab
44005         indentation.
44006
44007 2007-12-23  Bruno Haible  <bruno@clisp.org>
44008
44009         * lib/c-strcasestr.c: Add more comments.
44010         * lib/c-strstr.c: Likewise.
44011         * lib/mbscasestr.c: Likewise.
44012         * lib/mbsstr.c: Likewise.
44013         * lib/strcasestr.c: Likewise.
44014         * lib/memmem.c: Likewise.
44015
44016 2007-12-23  Bruno Haible  <bruno@clisp.org>
44017
44018         * tests/test-memmem.c: Include <string.h> first.
44019
44020 2007-12-22  Bruno Haible  <bruno@clisp.org>
44021
44022         * gnulib-tool (func_create_testdir): Change $auxdir while generating
44023         the contents of $testsbase.
44024         Reported by Ralf Wildenhues.
44025
44026 2007-12-22  Bruno Haible  <bruno@clisp.org>
44027
44028         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
44029         two variables local_ldadd_before, local_ldadd_last.
44030
44031 2007-12-20  Eric Blake  <ebb9@byu.net>
44032
44033         Work around circular library issue when cross-compiling.
44034         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
44035         that progname.o does not need to pull in rpl_memcmp.
44036
44037 2007-12-19  Eric Blake  <ebb9@byu.net>
44038
44039         Fix memmem to avoid O(n^2) worst-case complexity.
44040         * lib/memmem.c (knuth_morris_pratt): New function.
44041         (memmem): Use it if first few naive iterations fail.
44042         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
44043         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
44044         * modules/memchr (License): Likewise.
44045         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
44046         malloca.
44047         * tests/test-memmem.c: Rewrite, borrowing ideas from
44048         test-mbsstr1.c; the old version wouldn't even compile!
44049         * modules/memmem-tests: New file.
44050         * lib/string.in.h (rpl_memmem): Add declaration.
44051         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
44052         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
44053         REPLACE_MEMMEM.
44054
44055 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44056
44057         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
44058         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
44059         before any system include files, and undef after them all.  This
44060         should fix a problem on VMS reported by John E. Malmberg in
44061         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
44062
44063 2007-12-17  Eric Blake  <ebb9@byu.net>
44064
44065         Revert addition of verify, for BSD/OS.
44066         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
44067         can't handle large files, for the sake of obsolete platforms.
44068         * modules/fseeko (Depends-on): Remove verify.
44069         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
44070         * doc/functions/ftello.texi (ftello): Likewise.
44071         * doc/functions/fgetpos.texi (fgetpos): Likewise.
44072         Reported by Larry Jones.
44073
44074 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
44075
44076         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
44077         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
44078
44079 2007-12-17  Jim Meyering  <meyering@redhat.com>
44080
44081         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
44082         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
44083         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
44084         * modules/getcwd (Depends-on): Add openat.
44085         Reported by Petr Salinger.
44086
44087 2007-12-17  Bruno Haible  <bruno@clisp.org>
44088
44089         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
44090         avoid a segmentation fault of the configure test on x86_64 systems.
44091
44092 2007-12-15  Jim Meyering  <meyering@redhat.com>
44093
44094         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
44095
44096 2007-12-13  Eric Blake  <ebb9@byu.net>
44097
44098         Another fseek test.
44099         * tests/test-fseek.c (main): Also test ungetc handling.
44100         * tests/test-fseeko.c (main): Likewise.
44101         * modules/fseeko (Depends-on): Add verify.
44102         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
44103         large.
44104         Reported by Larry Jones.
44105
44106         Fix fseeko on mingw.
44107         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
44108         seek.
44109
44110         Beef up fseek tests.
44111         * tests/test-fseek.c (main): Also test eof handling.
44112         * tests/test-fseeko.c (main): Likewise.
44113         Reported by Larry Jones.
44114
44115 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
44116
44117         Fix fseeko on BSD-based platforms.
44118         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
44119         successful seek.
44120
44121 2007-12-12  Eric Blake  <ebb9@byu.net>
44122
44123         Allow circular dependency of separate libtests.a
44124         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
44125         when use_libtests.
44126
44127 2007-12-11  Eric Blake  <ebb9@byu.net>
44128
44129         Fix bug with -0.0L in previous patch.
44130         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
44131         * tests/test-isnan.c (main): Also test on zeroes.
44132         * tests/test-isnanf.c (main): Likewise.
44133         * tests/test-isnanl.h (main): Likewise.
44134
44135         Detect pseudo-denormals on x86 even when cross-compiling.
44136         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
44137         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
44138         invalid bit patterns that happen to satisfy ==.
44139
44140         Avoid link failures with separate libtests.a.
44141         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
44142         last, to satisfy circular dependencies.
44143
44144 2007-12-11  Eric Blake  <ebb9@byu.net>
44145         and Bruno Haible  <bruno@clisp.org>
44146
44147         Fix OpenBSD 4.0 <float.h> handling of long double.
44148         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
44149         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
44150         * doc/headers/float.texi (float.h): Document OpenBSD bug.
44151
44152 2007-12-11  Jim Meyering  <meyering@redhat.com>
44153
44154         * users.txt: Add libvirt.
44155
44156         Support versions of autoconf prior to 2.59c.
44157         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
44158         if it is not already defined.
44159
44160 2007-12-09  Bruno Haible  <bruno@clisp.org>
44161
44162         Let 'gnulib-tool --import' collect sources needed for the tests in
44163         tests/ rather than in lib/.
44164         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
44165         argument. If true, add rules to generate libtests.a, and put libtests.a
44166         into $(LDADD). Consider source files in subdirectories and set
44167         uses_subdirs.
44168         (func_emit_initmacro_start, func_emit_initmacro_end,
44169         func_emit_initmacro_done): Pass all arguments explicitly.
44170         (func_import): Determine two module lists main_modules,
44171         testsrelated_modules. Determine use_libtests. Determine two variables
44172         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
44173         instead of just sed_transform_lib_file. Determine two variables
44174         main_files and testsrelated_files. Compute 'files' as the union of
44175         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
44176         func_add_or_update. In the generated gnulib-comp.m4, collect the
44177         object files for tests/ in different variables than those for lib/.
44178         Substitute LIBTESTS_LIBDEPS.
44179         (func_create_testdir): Combine the uses_subdirs results from
44180         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
44181
44182 2007-12-09  Bruno Haible  <bruno@clisp.org>
44183
44184         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
44185         the build-aux directory.
44186
44187 2007-12-09  Bruno Haible  <bruno@clisp.org>
44188
44189         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
44190         introduced on 2006-09-09.
44191
44192 2007-12-07  Jim Meyering  <meyering@redhat.com>
44193
44194         Let these macros work also with autoconf-2.59.
44195         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
44196         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
44197         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
44198
44199 2007-12-06  Jim Meyering  <meyering@redhat.com>
44200
44201         Avoid a configure-time syntax error in gl_FUNC_ACL.
44202         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
44203         function in each branch, before testing the cache variable.
44204
44205 2007-12-04  Eric Blake  <ebb9@byu.net>
44206
44207         Make scripts executable.
44208         * build-aux/config.guess: Add execute permissions.
44209         * build-aux/config.sub: Likewise.
44210         * build-aux/gendocs.sh: Likewise.
44211
44212         Fix frexp on mingw.
44213         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
44214         cross-compiling.
44215         * doc/functions/frexp.texi (frexp): Document the bug.
44216
44217         Make cygwin fseeko check more reliable.
44218         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
44219         version numbers, rather than unrelated feature check.
44220         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
44221         * doc/functions/ftello.texi (ftello): Likewise.
44222         Reported by Bruno Haible.
44223
44224         * m4/strerror.m4: Bump version number.
44225
44226 2007-12-03  Bruno Haible  <bruno@clisp.org>
44227
44228         * doc/functions/mprotect.texi: Mention the mingw problem.
44229
44230 2007-12-03  Eric Blake  <ebb9@byu.net>
44231
44232         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
44233         REPLACE_STRERROR is initialized before this macro.
44234
44235 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
44236
44237         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
44238         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
44239         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
44240         put -lsec in even for programs other than 'ls'.  This fixes a problem
44241         for gettext reported by Bruno Haible in
44242         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
44243         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
44244         Add support for Solaris 10.  This isn't efficient, but should get the
44245         job done for now.
44246
44247 2007-12-03  James Youngman  <jay@gnu.org>
44248
44249         * doc/regexprops-generic.texi: change "an close-group" to "a
44250         close-group" and "illegal" to "not allowed".
44251
44252 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44253
44254         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
44255         pr_byname.h. Needed for the rare case when the maintainer has done
44256         "make maintainer-clean" in the source directory and then attempts a
44257         build outside the source directory.
44258         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
44259         scripts_byname.h.
44260
44261 2007-12-02  Martin Lambers <marlam@marlam.de>
44262             Bruno Haible  <bruno@clisp.org>
44263
44264         * lib/getpagesize.h: Remove file.
44265         * lib/unistd.in.h: Include declaration of getpagesize here.
44266         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
44267         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
44268         HAVE_SYS_PARAM_H.
44269         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
44270         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44271         * modules/getpagesize (Files): Remove lib/getpagesize.h.
44272         (Depends-on): Add unistd.
44273         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
44274         (Include): Use <unistd.h> instead of getpagesize.h.
44275         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
44276         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
44277         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
44278         gl_GETPAGESIZE invocation, already handled by module dependency.
44279         * lib/pagealign_alloc.c: Don't include getpagesize.h.
44280
44281 2007-12-02  Bruno Haible  <bruno@clisp.org>
44282
44283         * modules/strings-tests: New file.
44284         * tests/test-strings.c: New file.
44285
44286         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
44287         * lib/strings.in.h: New file.
44288         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
44289         * m4/strings_h.m4: New file.
44290         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
44291         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
44292         * modules/strings: New file.
44293         * modules/string (Makefile.am): Update.
44294         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
44295         Reported by Karl Berry.
44296
44297 2007-12-01  Eric Blake  <ebb9@byu.net>
44298
44299         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
44300         accomodate fix in cygwin 1.5.25.
44301
44302 2007-12-01  Jim Meyering  <meyering@redhat.com>
44303
44304         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
44305         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
44306         that would inhibit utf8-optimization of a regexp containing line-
44307         or buffer-anchors, e.g., `^', `$'.
44308
44309 2007-11-30  Bruno Haible  <bruno@clisp.org>
44310
44311         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
44312         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
44313         glthread_recursive_lock_init.
44314         * lib/lock.c (glthread_recursive_lock_init)
44315         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
44316         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44317
44318 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
44319
44320         New function qset_acl, like set_acl but with syscall semantics.
44321         * lib/acl.h (qset_acl): New decl.
44322         * lib/acl.c (qset_acl): New function.
44323         (set_acl): Use new function.  Use more-consistent diagnostics.
44324
44325 2007-11-28  Jim Meyering  <meyering@redhat.com>
44326
44327         * modules/physmem (License): Change from GPL to LGPLv2+.
44328
44329 2007-11-26  Bruno Haible  <bruno@clisp.org>
44330
44331         * lib/vasnprintf.c (decode_long_double): Don't abort if the
44332         'long double' type has excess precision.
44333         Reported by Jim Meyering in
44334         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
44335
44336 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44337
44338         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
44339         Sync from <http://gnu.org/licenses>.
44340         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
44341         with license text from same location.
44342         * doc/maintain.texi, doc/standards.texi:  Sync from
44343         <http://savannah.gnu.org/projects/gnustandards>.
44344
44345 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
44346         and Jim Meyering  <meyering@redhat.com>
44347
44348         Adjust getdate' grammar to accept a slightly more regular language.
44349         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
44350         Before, the former was rejected.
44351         * lib/getdate.y (digits_to_date_time): New function, factored
44352         out of ...
44353         (number): ...here.  Just call digits_to_date_time.
44354         (hybrid): New non-terminal to handle an <unsigned number,
44355         signed relative offset> sequence consistently.
44356
44357 2007-11-18  Jim Meyering  <meyering@redhat.com>
44358
44359         Pull my changes from coreutils:
44360         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
44361         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
44362         use of $gnulib_tool_option_extras, so that it's separated from the
44363         preceding argument.
44364
44365         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
44366         * build-aux/bootstrap (cp_mark_as_generated): Create any required
44367         parent destination directories before copying a file into place.
44368
44369 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
44370
44371         bootstrap: work also with 4-argument variant of AC_INIT
44372         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
44373
44374 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
44375
44376         Port test-getaddrinfo to Solaris.
44377         Problem reported by Bruno Haible in
44378         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
44379         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
44380         explanation of setting 'hints'.
44381         Don't reject an implementation merely because it returns EAI_SERVICE.
44382         (EAI_SERVICE): Define to 0 if not defined.
44383
44384 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
44385
44386         The license of gnu-make and posix-shell is now "GPLed build tool".
44387         * modules/gnu-make (License): Likewise.
44388         * modules/posix-shell (License): Likewise.
44389
44390         New module posix-shell, for determining a POSIX shell
44391         or perhaps something that is close enough to a POSIX shell.
44392         * m4/posix-shell.m4: New file.
44393         * modules/posix-shell: New file.
44394
44395         * MODULES.html.sh: Mention new module.
44396
44397         New module gnu-make, for determining whether we're using GNU Make.
44398         * m4/gnu-make.m4: New file.
44399         * modules/gnu-make: New file.
44400         * MODULES.html.sh: Mention new module.
44401
44402 2007-11-14  Jim Meyering  <meyering@redhat.com>
44403
44404         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
44405         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
44406         use this macro to create a function _definition_.
44407         Remove useless "#undef ARGMATCH_DIE".
44408
44409 2007-11-14  Bruno Haible  <bruno@clisp.org>
44410
44411         * lib/config.charset: Update for OpenBSD 4.1.
44412         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
44413
44414 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
44415
44416         Document 64-bit #if problems in stdint.texi.
44417         * doc/headers/stdint.texi (stdint.h): Mention problems with
44418         64-bit-#if, and how to work around them.
44419
44420         Don't insist on 'long long int' support in the preprocessor.  It
44421         breaks too many things.  For example, PRIdMAX still uses a 'long
44422         long int' format with the latest Sun compiler, even though
44423         HAVE_LONG_LONG_INT isn't defined due to that compiler's
44424         preprocessor problem.  This causes the latest coreutils to dump
44425         core on Solaris 10 sparc with the Sun C compiler.
44426         Instead, fix the 2007-10-16 problem in a different way, by evaluating
44427         the troublesome expressions at configure-time, not at #if-time.
44428         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
44429         preprocessor.
44430         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
44431         compile-time C checks, done at 'configure'-time.
44432         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
44433         * modules/inttypes (Makefile): Substitute the new symbols that
44434         gl_INTTYPES_H now generates.
44435         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
44436
44437 2007-11-12  Bruno Haible  <bruno@clisp.org>
44438
44439         Tests for Unicode character classification functions.
44440
44441         * modules/unictype/bidicategory-byname-tests: New file.
44442         * modules/unictype/bidicategory-name-tests: New file.
44443         * modules/unictype/bidicategory-of-tests: New file.
44444         * modules/unictype/bidicategory-test-tests: New file.
44445         * modules/unictype/block-list-tests: New file.
44446         * modules/unictype/block-of-tests: New file.
44447         * modules/unictype/block-test-tests: New file.
44448         * modules/unictype/category-C-tests: New file.
44449         * modules/unictype/category-Cc-tests: New file.
44450         * modules/unictype/category-Cf-tests: New file.
44451         * modules/unictype/category-Cn-tests: New file.
44452         * modules/unictype/category-Co-tests: New file.
44453         * modules/unictype/category-Cs-tests: New file.
44454         * modules/unictype/category-L-tests: New file.
44455         * modules/unictype/category-Ll-tests: New file.
44456         * modules/unictype/category-Lm-tests: New file.
44457         * modules/unictype/category-Lo-tests: New file.
44458         * modules/unictype/category-Lt-tests: New file.
44459         * modules/unictype/category-Lu-tests: New file.
44460         * modules/unictype/category-M-tests: New file.
44461         * modules/unictype/category-Mc-tests: New file.
44462         * modules/unictype/category-Me-tests: New file.
44463         * modules/unictype/category-Mn-tests: New file.
44464         * modules/unictype/category-N-tests: New file.
44465         * modules/unictype/category-Nd-tests: New file.
44466         * modules/unictype/category-Nl-tests: New file.
44467         * modules/unictype/category-No-tests: New file.
44468         * modules/unictype/category-P-tests: New file.
44469         * modules/unictype/category-Pc-tests: New file.
44470         * modules/unictype/category-Pd-tests: New file.
44471         * modules/unictype/category-Pe-tests: New file.
44472         * modules/unictype/category-Pf-tests: New file.
44473         * modules/unictype/category-Pi-tests: New file.
44474         * modules/unictype/category-Po-tests: New file.
44475         * modules/unictype/category-Ps-tests: New file.
44476         * modules/unictype/category-S-tests: New file.
44477         * modules/unictype/category-Sc-tests: New file.
44478         * modules/unictype/category-Sk-tests: New file.
44479         * modules/unictype/category-Sm-tests: New file.
44480         * modules/unictype/category-So-tests: New file.
44481         * modules/unictype/category-Z-tests: New file.
44482         * modules/unictype/category-Zl-tests: New file.
44483         * modules/unictype/category-Zp-tests: New file.
44484         * modules/unictype/category-Zs-tests: New file.
44485         * modules/unictype/category-and-not-tests: New file.
44486         * modules/unictype/category-and-tests: New file.
44487         * modules/unictype/category-byname-tests: New file.
44488         * modules/unictype/category-name-tests: New file.
44489         * modules/unictype/category-none-tests: New file.
44490         * modules/unictype/category-of-tests: New file.
44491         * modules/unictype/category-or-tests: New file.
44492         * modules/unictype/category-test-withtable-tests: New file.
44493         * modules/unictype/combining-class-tests: New file.
44494         * modules/unictype/ctype-alnum-tests: New file.
44495         * modules/unictype/ctype-alpha-tests: New file.
44496         * modules/unictype/ctype-blank-tests: New file.
44497         * modules/unictype/ctype-cntrl-tests: New file.
44498         * modules/unictype/ctype-digit-tests: New file.
44499         * modules/unictype/ctype-graph-tests: New file.
44500         * modules/unictype/ctype-lower-tests: New file.
44501         * modules/unictype/ctype-print-tests: New file.
44502         * modules/unictype/ctype-punct-tests: New file.
44503         * modules/unictype/ctype-space-tests: New file.
44504         * modules/unictype/ctype-upper-tests: New file.
44505         * modules/unictype/ctype-xdigit-tests: New file.
44506         * modules/unictype/decimal-digit-tests: New file.
44507         * modules/unictype/digit-tests: New file.
44508         * modules/unictype/mirror-tests: New file.
44509         * modules/unictype/numeric-tests: New file.
44510         * modules/unictype/property-alphabetic-tests: New file.
44511         * modules/unictype/property-ascii-hex-digit-tests: New file.
44512         * modules/unictype/property-bidi-arabic-digit-tests: New file.
44513         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
44514         * modules/unictype/property-bidi-block-separator-tests: New file.
44515         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
44516         * modules/unictype/property-bidi-common-separator-tests: New file.
44517         * modules/unictype/property-bidi-control-tests: New file.
44518         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
44519         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
44520         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
44521         * modules/unictype/property-bidi-european-digit-tests: New file.
44522         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
44523         * modules/unictype/property-bidi-left-to-right-tests: New file.
44524         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
44525         * modules/unictype/property-bidi-other-neutral-tests: New file.
44526         * modules/unictype/property-bidi-pdf-tests: New file.
44527         * modules/unictype/property-bidi-segment-separator-tests: New file.
44528         * modules/unictype/property-bidi-whitespace-tests: New file.
44529         * modules/unictype/property-byname-tests: New file.
44530         * modules/unictype/property-combining-tests: New file.
44531         * modules/unictype/property-composite-tests: New file.
44532         * modules/unictype/property-currency-symbol-tests: New file.
44533         * modules/unictype/property-dash-tests: New file.
44534         * modules/unictype/property-decimal-digit-tests: New file.
44535         * modules/unictype/property-default-ignorable-code-point-tests: New file.
44536         * modules/unictype/property-deprecated-tests: New file.
44537         * modules/unictype/property-diacritic-tests: New file.
44538         * modules/unictype/property-extender-tests: New file.
44539         * modules/unictype/property-format-control-tests: New file.
44540         * modules/unictype/property-grapheme-base-tests: New file.
44541         * modules/unictype/property-grapheme-extend-tests: New file.
44542         * modules/unictype/property-grapheme-link-tests: New file.
44543         * modules/unictype/property-hex-digit-tests: New file.
44544         * modules/unictype/property-hyphen-tests: New file.
44545         * modules/unictype/property-id-continue-tests: New file.
44546         * modules/unictype/property-id-start-tests: New file.
44547         * modules/unictype/property-ideographic-tests: New file.
44548         * modules/unictype/property-ids-binary-operator-tests: New file.
44549         * modules/unictype/property-ids-trinary-operator-tests: New file.
44550         * modules/unictype/property-ignorable-control-tests: New file.
44551         * modules/unictype/property-iso-control-tests: New file.
44552         * modules/unictype/property-join-control-tests: New file.
44553         * modules/unictype/property-left-of-pair-tests: New file.
44554         * modules/unictype/property-line-separator-tests: New file.
44555         * modules/unictype/property-logical-order-exception-tests: New file.
44556         * modules/unictype/property-lowercase-tests: New file.
44557         * modules/unictype/property-math-tests: New file.
44558         * modules/unictype/property-non-break-tests: New file.
44559         * modules/unictype/property-not-a-character-tests: New file.
44560         * modules/unictype/property-numeric-tests: New file.
44561         * modules/unictype/property-other-alphabetic-tests: New file.
44562         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
44563         * modules/unictype/property-other-grapheme-extend-tests: New file.
44564         * modules/unictype/property-other-id-continue-tests: New file.
44565         * modules/unictype/property-other-id-start-tests: New file.
44566         * modules/unictype/property-other-lowercase-tests: New file.
44567         * modules/unictype/property-other-math-tests: New file.
44568         * modules/unictype/property-other-uppercase-tests: New file.
44569         * modules/unictype/property-paired-punctuation-tests: New file.
44570         * modules/unictype/property-paragraph-separator-tests: New file.
44571         * modules/unictype/property-pattern-syntax-tests: New file.
44572         * modules/unictype/property-pattern-white-space-tests: New file.
44573         * modules/unictype/property-private-use-tests: New file.
44574         * modules/unictype/property-punctuation-tests: New file.
44575         * modules/unictype/property-quotation-mark-tests: New file.
44576         * modules/unictype/property-radical-tests: New file.
44577         * modules/unictype/property-sentence-terminal-tests: New file.
44578         * modules/unictype/property-soft-dotted-tests: New file.
44579         * modules/unictype/property-space-tests: New file.
44580         * modules/unictype/property-terminal-punctuation-tests: New file.
44581         * modules/unictype/property-test-tests: New file.
44582         * modules/unictype/property-titlecase-tests: New file.
44583         * modules/unictype/property-unassigned-code-value-tests: New file.
44584         * modules/unictype/property-unified-ideograph-tests: New file.
44585         * modules/unictype/property-uppercase-tests: New file.
44586         * modules/unictype/property-variation-selector-tests: New file.
44587         * modules/unictype/property-white-space-tests: New file.
44588         * modules/unictype/property-xid-continue-tests: New file.
44589         * modules/unictype/property-xid-start-tests: New file.
44590         * modules/unictype/property-zero-width-tests: New file.
44591         * modules/unictype/scripts-tests: New file.
44592         * modules/unictype/syntax-c-ident-tests: New file.
44593         * modules/unictype/syntax-c-whitespace-tests: New file.
44594         * modules/unictype/syntax-java-ident-tests: New file.
44595         * modules/unictype/syntax-java-whitespace-tests: New file.
44596         * tests/unictype/test-bidi_byname.c: New file.
44597         * tests/unictype/test-bidi_name.c: New file.
44598         * tests/unictype/test-bidi_of.c: New file.
44599         * tests/unictype/test-bidi_test.c: New file.
44600         * tests/unictype/test-block_list.c: New file.
44601         * tests/unictype/test-block_of.c: New file.
44602         * tests/unictype/test-block_test.c: New file.
44603         * tests/unictype/test-categ_and.c: New file.
44604         * tests/unictype/test-categ_and_not.c: New file.
44605         * tests/unictype/test-categ_byname.c: New file.
44606         * tests/unictype/test-categ_name.c: New file.
44607         * tests/unictype/test-categ_none.c: New file.
44608         * tests/unictype/test-categ_of.c: New file.
44609         * tests/unictype/test-categ_or.c: New file.
44610         * tests/unictype/test-categ_test_withtable.c: New file.
44611         * tests/unictype/test-combining.c: New file.
44612         * tests/unictype/test-decdigit.c: New file.
44613         * tests/unictype/test-digit.c: New file.
44614         * tests/unictype/test-mirror.c: New file.
44615         * tests/unictype/test-numeric.c: New file.
44616         * tests/unictype/test-pr_byname.c: New file.
44617         * tests/unictype/test-pr_test.c: New file.
44618         * tests/unictype/test-predicate-part1.h: New file.
44619         * tests/unictype/test-predicate-part2.h: New file.
44620         * tests/unictype/test-scripts.c: New file.
44621         * tests/unictype/test-sy_c_ident.c: New file.
44622         * tests/unictype/test-sy_java_ident.c: New file.
44623
44624         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
44625         for Unicode 5.0.0.
44626         * tests/unictype/test-categ_Cc.c: Likewise.
44627         * tests/unictype/test-categ_Cf.c: Likewise.
44628         * tests/unictype/test-categ_Cn.c: Likewise.
44629         * tests/unictype/test-categ_Co.c: Likewise.
44630         * tests/unictype/test-categ_Cs.c: Likewise.
44631         * tests/unictype/test-categ_L.c: Likewise.
44632         * tests/unictype/test-categ_Ll.c: Likewise.
44633         * tests/unictype/test-categ_Lm.c: Likewise.
44634         * tests/unictype/test-categ_Lo.c: Likewise.
44635         * tests/unictype/test-categ_Lt.c: Likewise.
44636         * tests/unictype/test-categ_Lu.c: Likewise.
44637         * tests/unictype/test-categ_M.c: Likewise.
44638         * tests/unictype/test-categ_Mc.c: Likewise.
44639         * tests/unictype/test-categ_Me.c: Likewise.
44640         * tests/unictype/test-categ_Mn.c: Likewise.
44641         * tests/unictype/test-categ_N.c: Likewise.
44642         * tests/unictype/test-categ_Nd.c: Likewise.
44643         * tests/unictype/test-categ_Nl.c: Likewise.
44644         * tests/unictype/test-categ_No.c: Likewise.
44645         * tests/unictype/test-categ_P.c: Likewise.
44646         * tests/unictype/test-categ_Pc.c: Likewise.
44647         * tests/unictype/test-categ_Pd.c: Likewise.
44648         * tests/unictype/test-categ_Pe.c: Likewise.
44649         * tests/unictype/test-categ_Pf.c: Likewise.
44650         * tests/unictype/test-categ_Pi.c: Likewise.
44651         * tests/unictype/test-categ_Po.c: Likewise.
44652         * tests/unictype/test-categ_Ps.c: Likewise.
44653         * tests/unictype/test-categ_S.c: Likewise.
44654         * tests/unictype/test-categ_Sc.c: Likewise.
44655         * tests/unictype/test-categ_Sk.c: Likewise.
44656         * tests/unictype/test-categ_Sm.c: Likewise.
44657         * tests/unictype/test-categ_So.c: Likewise.
44658         * tests/unictype/test-categ_Z.c: Likewise.
44659         * tests/unictype/test-categ_Zl.c: Likewise.
44660         * tests/unictype/test-categ_Zp.c: Likewise.
44661         * tests/unictype/test-categ_Zs.c: Likewise.
44662         * tests/unictype/test-ctype_alnum.c: Likewise.
44663         * tests/unictype/test-ctype_alpha.c: Likewise.
44664         * tests/unictype/test-ctype_blank.c: Likewise.
44665         * tests/unictype/test-ctype_cntrl.c: Likewise.
44666         * tests/unictype/test-ctype_digit.c: Likewise.
44667         * tests/unictype/test-ctype_graph.c: Likewise.
44668         * tests/unictype/test-ctype_lower.c: Likewise.
44669         * tests/unictype/test-ctype_print.c: Likewise.
44670         * tests/unictype/test-ctype_punct.c: Likewise.
44671         * tests/unictype/test-ctype_space.c: Likewise.
44672         * tests/unictype/test-ctype_upper.c: Likewise.
44673         * tests/unictype/test-ctype_xdigit.c: Likewise.
44674         * tests/unictype/test-decdigit.h: Likewise.
44675         * tests/unictype/test-digit.h: Likewise.
44676         * tests/unictype/test-numeric.h: Likewise.
44677         * tests/unictype/test-pr_alphabetic.c: Likewise.
44678         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
44679         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
44680         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
44681         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
44682         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
44683         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
44684         * tests/unictype/test-pr_bidi_control.c: Likewise.
44685         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
44686         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
44687         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
44688         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
44689         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
44690         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
44691         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
44692         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
44693         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
44694         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
44695         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
44696         * tests/unictype/test-pr_combining.c: Likewise.
44697         * tests/unictype/test-pr_composite.c: Likewise.
44698         * tests/unictype/test-pr_currency_symbol.c: Likewise.
44699         * tests/unictype/test-pr_dash.c: Likewise.
44700         * tests/unictype/test-pr_decimal_digit.c: Likewise.
44701         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
44702         * tests/unictype/test-pr_deprecated.c: Likewise.
44703         * tests/unictype/test-pr_diacritic.c: Likewise.
44704         * tests/unictype/test-pr_extender.c: Likewise.
44705         * tests/unictype/test-pr_format_control.c: Likewise.
44706         * tests/unictype/test-pr_grapheme_base.c: Likewise.
44707         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
44708         * tests/unictype/test-pr_grapheme_link.c: Likewise.
44709         * tests/unictype/test-pr_hex_digit.c: Likewise.
44710         * tests/unictype/test-pr_hyphen.c: Likewise.
44711         * tests/unictype/test-pr_id_continue.c: Likewise.
44712         * tests/unictype/test-pr_id_start.c: Likewise.
44713         * tests/unictype/test-pr_ideographic.c: Likewise.
44714         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
44715         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
44716         * tests/unictype/test-pr_ignorable_control.c: Likewise.
44717         * tests/unictype/test-pr_iso_control.c: Likewise.
44718         * tests/unictype/test-pr_join_control.c: Likewise.
44719         * tests/unictype/test-pr_left_of_pair.c: Likewise.
44720         * tests/unictype/test-pr_line_separator.c: Likewise.
44721         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
44722         * tests/unictype/test-pr_lowercase.c: Likewise.
44723         * tests/unictype/test-pr_math.c: Likewise.
44724         * tests/unictype/test-pr_non_break.c: Likewise.
44725         * tests/unictype/test-pr_not_a_character.c: Likewise.
44726         * tests/unictype/test-pr_numeric.c: Likewise.
44727         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
44728         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
44729         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
44730         * tests/unictype/test-pr_other_id_continue.c: Likewise.
44731         * tests/unictype/test-pr_other_id_start.c: Likewise.
44732         * tests/unictype/test-pr_other_lowercase.c: Likewise.
44733         * tests/unictype/test-pr_other_math.c: Likewise.
44734         * tests/unictype/test-pr_other_uppercase.c: Likewise.
44735         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
44736         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
44737         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
44738         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
44739         * tests/unictype/test-pr_private_use.c: Likewise.
44740         * tests/unictype/test-pr_punctuation.c: Likewise.
44741         * tests/unictype/test-pr_quotation_mark.c: Likewise.
44742         * tests/unictype/test-pr_radical.c: Likewise.
44743         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
44744         * tests/unictype/test-pr_soft_dotted.c: Likewise.
44745         * tests/unictype/test-pr_space.c: Likewise.
44746         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
44747         * tests/unictype/test-pr_titlecase.c: Likewise.
44748         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
44749         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
44750         * tests/unictype/test-pr_uppercase.c: Likewise.
44751         * tests/unictype/test-pr_variation_selector.c: Likewise.
44752         * tests/unictype/test-pr_white_space.c: Likewise.
44753         * tests/unictype/test-pr_xid_continue.c: Likewise.
44754         * tests/unictype/test-pr_xid_start.c: Likewise.
44755         * tests/unictype/test-pr_zero_width.c: Likewise.
44756         * tests/unictype/test-sy_c_whitespace.c: Likewise.
44757         * tests/unictype/test-sy_java_whitespace.c: Likewise.
44758
44759 2007-11-12  Bruno Haible  <bruno@clisp.org>
44760
44761         Unicode character classification functions.
44762         * lib/unictype.h: New file.
44763         * modules/unictype/base: New file.
44764         * modules/unictype/category-L: New file.
44765         * modules/unictype/category-Lu: New file.
44766         * modules/unictype/category-Ll: New file.
44767         * modules/unictype/category-Lt: New file.
44768         * modules/unictype/category-Lm: New file.
44769         * modules/unictype/category-Lo: New file.
44770         * modules/unictype/category-M: New file.
44771         * modules/unictype/category-Mn: New file.
44772         * modules/unictype/category-Mc: New file.
44773         * modules/unictype/category-Me: New file.
44774         * modules/unictype/category-N: New file.
44775         * modules/unictype/category-Nd: New file.
44776         * modules/unictype/category-Nl: New file.
44777         * modules/unictype/category-No: New file.
44778         * modules/unictype/category-P: New file.
44779         * modules/unictype/category-Pc: New file.
44780         * modules/unictype/category-Pd: New file.
44781         * modules/unictype/category-Ps: New file.
44782         * modules/unictype/category-Pe: New file.
44783         * modules/unictype/category-Pi: New file.
44784         * modules/unictype/category-Pf: New file.
44785         * modules/unictype/category-Po: New file.
44786         * modules/unictype/category-S: New file.
44787         * modules/unictype/category-Sm: New file.
44788         * modules/unictype/category-Sc: New file.
44789         * modules/unictype/category-Sk: New file.
44790         * modules/unictype/category-So: New file.
44791         * modules/unictype/category-Z: New file.
44792         * modules/unictype/category-Zs: New file.
44793         * modules/unictype/category-Zl: New file.
44794         * modules/unictype/category-Zp: New file.
44795         * modules/unictype/category-C: New file.
44796         * modules/unictype/category-Cc: New file.
44797         * modules/unictype/category-Cf: New file.
44798         * modules/unictype/category-Cs: New file.
44799         * modules/unictype/category-Co: New file.
44800         * modules/unictype/category-Cn: New file.
44801         * modules/unictype/category-or: New file.
44802         * modules/unictype/category-of: New file.
44803         * modules/unictype/category-test: New file.
44804         * modules/unictype/category-test-withtable: New file.
44805         * modules/unictype/category-byname: New file.
44806         * modules/unictype/category-none: New file.
44807         * modules/unictype/category-and: New file.
44808         * modules/unictype/category-and-not: New file.
44809         * modules/unictype/category-name: New file.
44810         * modules/unictype/combining-class: New file.
44811         * modules/unictype/category-all: New file.
44812         * modules/unictype/bidicategory-all: New file.
44813         * modules/unictype/bidicategory-byname: New file.
44814         * modules/unictype/bidicategory-name: New file.
44815         * modules/unictype/bidicategory-of: New file.
44816         * modules/unictype/bidicategory-test: New file.
44817         * modules/unictype/decimal-digit: New file.
44818         * modules/unictype/digit: New file.
44819         * modules/unictype/numeric: New file.
44820         * modules/unictype/mirror: New file.
44821         * modules/unictype/property-white-space: New file.
44822         * modules/unictype/property-alphabetic: New file.
44823         * modules/unictype/property-other-alphabetic: New file.
44824         * modules/unictype/property-not-a-character: New file.
44825         * modules/unictype/property-default-ignorable-code-point: New file.
44826         * modules/unictype/property-other-default-ignorable-code-point: New
44827         file.
44828         * modules/unictype/property-deprecated: New file.
44829         * modules/unictype/property-logical-order-exception: New file.
44830         * modules/unictype/property-variation-selector: New file.
44831         * modules/unictype/property-private-use: New file.
44832         * modules/unictype/property-unassigned-code-value: New file.
44833         * modules/unictype/property-uppercase: New file.
44834         * modules/unictype/property-other-uppercase: New file.
44835         * modules/unictype/property-lowercase: New file.
44836         * modules/unictype/property-other-lowercase: New file.
44837         * modules/unictype/property-titlecase: New file.
44838         * modules/unictype/property-soft-dotted: New file.
44839         * modules/unictype/property-id-start: New file.
44840         * modules/unictype/property-other-id-start: New file.
44841         * modules/unictype/property-id-continue: New file.
44842         * modules/unictype/property-other-id-continue: New file.
44843         * modules/unictype/property-xid-start: New file.
44844         * modules/unictype/property-xid-continue: New file.
44845         * modules/unictype/property-pattern-white-space: New file.
44846         * modules/unictype/property-pattern-syntax: New file.
44847         * modules/unictype/property-join-control: New file.
44848         * modules/unictype/property-grapheme-base: New file.
44849         * modules/unictype/property-grapheme-extend: New file.
44850         * modules/unictype/property-other-grapheme-extend: New file.
44851         * modules/unictype/property-grapheme-link: New file.
44852         * modules/unictype/property-bidi-control: New file.
44853         * modules/unictype/property-bidi-left-to-right: New file.
44854         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
44855         * modules/unictype/property-bidi-arabic-right-to-left: New file.
44856         * modules/unictype/property-bidi-european-digit: New file.
44857         * modules/unictype/property-bidi-eur-num-separator: New file.
44858         * modules/unictype/property-bidi-eur-num-terminator: New file.
44859         * modules/unictype/property-bidi-arabic-digit: New file.
44860         * modules/unictype/property-bidi-common-separator: New file.
44861         * modules/unictype/property-bidi-block-separator: New file.
44862         * modules/unictype/property-bidi-segment-separator: New file.
44863         * modules/unictype/property-bidi-whitespace: New file.
44864         * modules/unictype/property-bidi-non-spacing-mark: New file.
44865         * modules/unictype/property-bidi-boundary-neutral: New file.
44866         * modules/unictype/property-bidi-pdf: New file.
44867         * modules/unictype/property-bidi-embedding-or-override: New file.
44868         * modules/unictype/property-bidi-other-neutral: New file.
44869         * modules/unictype/property-hex-digit: New file.
44870         * modules/unictype/property-ascii-hex-digit: New file.
44871         * modules/unictype/property-ideographic: New file.
44872         * modules/unictype/property-unified-ideograph: New file.
44873         * modules/unictype/property-radical: New file.
44874         * modules/unictype/property-ids-binary-operator: New file.
44875         * modules/unictype/property-ids-trinary-operator: New file.
44876         * modules/unictype/property-zero-width: New file.
44877         * modules/unictype/property-space: New file.
44878         * modules/unictype/property-non-break: New file.
44879         * modules/unictype/property-iso-control: New file.
44880         * modules/unictype/property-format-control: New file.
44881         * modules/unictype/property-dash: New file.
44882         * modules/unictype/property-hyphen: New file.
44883         * modules/unictype/property-punctuation: New file.
44884         * modules/unictype/property-line-separator: New file.
44885         * modules/unictype/property-paragraph-separator: New file.
44886         * modules/unictype/property-quotation-mark: New file.
44887         * modules/unictype/property-sentence-terminal: New file.
44888         * modules/unictype/property-terminal-punctuation: New file.
44889         * modules/unictype/property-currency-symbol: New file.
44890         * modules/unictype/property-math: New file.
44891         * modules/unictype/property-other-math: New file.
44892         * modules/unictype/property-paired-punctuation: New file.
44893         * modules/unictype/property-left-of-pair: New file.
44894         * modules/unictype/property-combining: New file.
44895         * modules/unictype/property-composite: New file.
44896         * modules/unictype/property-decimal-digit: New file.
44897         * modules/unictype/property-numeric: New file.
44898         * modules/unictype/property-diacritic: New file.
44899         * modules/unictype/property-extender: New file.
44900         * modules/unictype/property-ignorable-control: New file.
44901         * modules/unictype/property-test: New file.
44902         * modules/unictype/property-byname: New file.
44903         * modules/unictype/property-all: New file.
44904         * modules/unictype/scripts: New file.
44905         * modules/unictype/scripts-all: New file.
44906         * modules/unictype/block-of: New file.
44907         * modules/unictype/block-test: New file.
44908         * modules/unictype/block-list: New file.
44909         * modules/unictype/block-all: New file.
44910         * modules/unictype/syntax-c-whitespace: New file.
44911         * modules/unictype/syntax-java-whitespace: New file.
44912         * modules/unictype/syntax-c-ident: New file.
44913         * modules/unictype/syntax-java-ident: New file.
44914         * modules/unictype/ctype-alnum: New file.
44915         * modules/unictype/ctype-alpha: New file.
44916         * modules/unictype/ctype-cntrl: New file.
44917         * modules/unictype/ctype-digit: New file.
44918         * modules/unictype/ctype-graph: New file.
44919         * modules/unictype/ctype-lower: New file.
44920         * modules/unictype/ctype-print: New file.
44921         * modules/unictype/ctype-punct: New file.
44922         * modules/unictype/ctype-space: New file.
44923         * modules/unictype/ctype-upper: New file.
44924         * modules/unictype/ctype-xdigit: New file.
44925         * modules/unictype/ctype-blank: New file.
44926         * lib/unictype/bidi_byname.c: New file.
44927         * lib/unictype/bidi_name.c: New file.
44928         * lib/unictype/bidi_of.c: New file.
44929         * lib/unictype/bidi_test.c: New file.
44930         * lib/unictype/bitmap.h: New file.
44931         * lib/unictype/block_test.c: New file.
44932         * lib/unictype/blocks.c: New file.
44933         * lib/unictype/categ_C.c: New file.
44934         * lib/unictype/categ_Cc.c: New file.
44935         * lib/unictype/categ_Cf.c: New file.
44936         * lib/unictype/categ_Cn.c: New file.
44937         * lib/unictype/categ_Co.c: New file.
44938         * lib/unictype/categ_Cs.c: New file.
44939         * lib/unictype/categ_L.c: New file.
44940         * lib/unictype/categ_Ll.c: New file.
44941         * lib/unictype/categ_Lm.c: New file.
44942         * lib/unictype/categ_Lo.c: New file.
44943         * lib/unictype/categ_Lt.c: New file.
44944         * lib/unictype/categ_Lu.c: New file.
44945         * lib/unictype/categ_M.c: New file.
44946         * lib/unictype/categ_Mc.c: New file.
44947         * lib/unictype/categ_Me.c: New file.
44948         * lib/unictype/categ_Mn.c: New file.
44949         * lib/unictype/categ_N.c: New file.
44950         * lib/unictype/categ_Nd.c: New file.
44951         * lib/unictype/categ_Nl.c: New file.
44952         * lib/unictype/categ_No.c: New file.
44953         * lib/unictype/categ_P.c: New file.
44954         * lib/unictype/categ_Pc.c: New file.
44955         * lib/unictype/categ_Pd.c: New file.
44956         * lib/unictype/categ_Pe.c: New file.
44957         * lib/unictype/categ_Pf.c: New file.
44958         * lib/unictype/categ_Pi.c: New file.
44959         * lib/unictype/categ_Po.c: New file.
44960         * lib/unictype/categ_Ps.c: New file.
44961         * lib/unictype/categ_S.c: New file.
44962         * lib/unictype/categ_Sc.c: New file.
44963         * lib/unictype/categ_Sk.c: New file.
44964         * lib/unictype/categ_Sm.c: New file.
44965         * lib/unictype/categ_So.c: New file.
44966         * lib/unictype/categ_Z.c: New file.
44967         * lib/unictype/categ_Zl.c: New file.
44968         * lib/unictype/categ_Zp.c: New file.
44969         * lib/unictype/categ_Zs.c: New file.
44970         * lib/unictype/categ_and.c: New file.
44971         * lib/unictype/categ_and_not.c: New file.
44972         * lib/unictype/categ_byname.c: New file.
44973         * lib/unictype/categ_name.c: New file.
44974         * lib/unictype/categ_none.c: New file.
44975         * lib/unictype/categ_of.c: New file.
44976         * lib/unictype/categ_or.c: New file.
44977         * lib/unictype/categ_test.c: New file.
44978         * lib/unictype/combining.c: New file.
44979         * lib/unictype/ctype_alnum.c: New file.
44980         * lib/unictype/ctype_alpha.c: New file.
44981         * lib/unictype/ctype_blank.c: New file.
44982         * lib/unictype/ctype_cntrl.c: New file.
44983         * lib/unictype/ctype_digit.c: New file.
44984         * lib/unictype/ctype_graph.c: New file.
44985         * lib/unictype/ctype_lower.c: New file.
44986         * lib/unictype/ctype_print.c: New file.
44987         * lib/unictype/ctype_punct.c: New file.
44988         * lib/unictype/ctype_space.c: New file.
44989         * lib/unictype/ctype_upper.c: New file.
44990         * lib/unictype/ctype_xdigit.c: New file.
44991         * lib/unictype/decdigit.c: New file.
44992         * lib/unictype/digit.c: New file.
44993         * lib/unictype/identsyntaxmap.h: New file.
44994         * lib/unictype/mirror.c: New file.
44995         * lib/unictype/numeric.c: New file.
44996         * lib/unictype/pr_alphabetic.c: New file.
44997         * lib/unictype/pr_ascii_hex_digit.c: New file.
44998         * lib/unictype/pr_bidi_arabic_digit.c: New file.
44999         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
45000         * lib/unictype/pr_bidi_block_separator.c: New file.
45001         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
45002         * lib/unictype/pr_bidi_common_separator.c: New file.
45003         * lib/unictype/pr_bidi_control.c: New file.
45004         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
45005         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
45006         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
45007         * lib/unictype/pr_bidi_european_digit.c: New file.
45008         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
45009         * lib/unictype/pr_bidi_left_to_right.c: New file.
45010         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
45011         * lib/unictype/pr_bidi_other_neutral.c: New file.
45012         * lib/unictype/pr_bidi_pdf.c: New file.
45013         * lib/unictype/pr_bidi_segment_separator.c: New file.
45014         * lib/unictype/pr_bidi_whitespace.c: New file.
45015         * lib/unictype/pr_byname.c: New file.
45016         * lib/unictype/pr_byname.gperf: New file.
45017         * lib/unictype/pr_combining.c: New file.
45018         * lib/unictype/pr_composite.c: New file.
45019         * lib/unictype/pr_currency_symbol.c: New file.
45020         * lib/unictype/pr_dash.c: New file.
45021         * lib/unictype/pr_decimal_digit.c: New file.
45022         * lib/unictype/pr_default_ignorable_code_point.c: New file.
45023         * lib/unictype/pr_deprecated.c: New file.
45024         * lib/unictype/pr_diacritic.c: New file.
45025         * lib/unictype/pr_extender.c: New file.
45026         * lib/unictype/pr_format_control.c: New file.
45027         * lib/unictype/pr_grapheme_base.c: New file.
45028         * lib/unictype/pr_grapheme_extend.c: New file.
45029         * lib/unictype/pr_grapheme_link.c: New file.
45030         * lib/unictype/pr_hex_digit.c: New file.
45031         * lib/unictype/pr_hyphen.c: New file.
45032         * lib/unictype/pr_id_continue.c: New file.
45033         * lib/unictype/pr_id_start.c: New file.
45034         * lib/unictype/pr_ideographic.c: New file.
45035         * lib/unictype/pr_ids_binary_operator.c: New file.
45036         * lib/unictype/pr_ids_trinary_operator.c: New file.
45037         * lib/unictype/pr_ignorable_control.c: New file.
45038         * lib/unictype/pr_iso_control.c: New file.
45039         * lib/unictype/pr_join_control.c: New file.
45040         * lib/unictype/pr_left_of_pair.c: New file.
45041         * lib/unictype/pr_line_separator.c: New file.
45042         * lib/unictype/pr_logical_order_exception.c: New file.
45043         * lib/unictype/pr_lowercase.c: New file.
45044         * lib/unictype/pr_math.c: New file.
45045         * lib/unictype/pr_non_break.c: New file.
45046         * lib/unictype/pr_not_a_character.c: New file.
45047         * lib/unictype/pr_numeric.c: New file.
45048         * lib/unictype/pr_other_alphabetic.c: New file.
45049         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
45050         * lib/unictype/pr_other_grapheme_extend.c: New file.
45051         * lib/unictype/pr_other_id_continue.c: New file.
45052         * lib/unictype/pr_other_id_start.c: New file.
45053         * lib/unictype/pr_other_lowercase.c: New file.
45054         * lib/unictype/pr_other_math.c: New file.
45055         * lib/unictype/pr_other_uppercase.c: New file.
45056         * lib/unictype/pr_paired_punctuation.c: New file.
45057         * lib/unictype/pr_paragraph_separator.c: New file.
45058         * lib/unictype/pr_pattern_syntax.c: New file.
45059         * lib/unictype/pr_pattern_white_space.c: New file.
45060         * lib/unictype/pr_private_use.c: New file.
45061         * lib/unictype/pr_punctuation.c: New file.
45062         * lib/unictype/pr_quotation_mark.c: New file.
45063         * lib/unictype/pr_radical.c: New file.
45064         * lib/unictype/pr_sentence_terminal.c: New file.
45065         * lib/unictype/pr_soft_dotted.c: New file.
45066         * lib/unictype/pr_space.c: New file.
45067         * lib/unictype/pr_terminal_punctuation.c: New file.
45068         * lib/unictype/pr_test.c: New file.
45069         * lib/unictype/pr_titlecase.c: New file.
45070         * lib/unictype/pr_unassigned_code_value.c: New file.
45071         * lib/unictype/pr_unified_ideograph.c: New file.
45072         * lib/unictype/pr_uppercase.c: New file.
45073         * lib/unictype/pr_variation_selector.c: New file.
45074         * lib/unictype/pr_white_space.c: New file.
45075         * lib/unictype/pr_xid_continue.c: New file.
45076         * lib/unictype/pr_xid_start.c: New file.
45077         * lib/unictype/pr_zero_width.c: New file.
45078         * lib/unictype/scripts.c: New file.
45079         * lib/unictype/sy_c_ident.c: New file.
45080         * lib/unictype/sy_c_whitespace.c: New file.
45081         * lib/unictype/sy_java_ident.c: New file.
45082         * lib/unictype/sy_java_whitespace.c: New file.
45083
45084         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
45085         Unicode 5.0.0.
45086         * lib/unictype/blocks.h: Likewise.
45087         * lib/unictype/categ_C.h: Likewise.
45088         * lib/unictype/categ_Cc.h: Likewise.
45089         * lib/unictype/categ_Cf.h: Likewise.
45090         * lib/unictype/categ_Cn.h: Likewise.
45091         * lib/unictype/categ_Co.h: Likewise.
45092         * lib/unictype/categ_Cs.h: Likewise.
45093         * lib/unictype/categ_L.h: Likewise.
45094         * lib/unictype/categ_Ll.h: Likewise.
45095         * lib/unictype/categ_Lm.h: Likewise.
45096         * lib/unictype/categ_Lo.h: Likewise.
45097         * lib/unictype/categ_Lt.h: Likewise.
45098         * lib/unictype/categ_Lu.h: Likewise.
45099         * lib/unictype/categ_M.h: Likewise.
45100         * lib/unictype/categ_Mc.h: Likewise.
45101         * lib/unictype/categ_Me.h: Likewise.
45102         * lib/unictype/categ_Mn.h: Likewise.
45103         * lib/unictype/categ_N.h: Likewise.
45104         * lib/unictype/categ_Nd.h: Likewise.
45105         * lib/unictype/categ_Nl.h: Likewise.
45106         * lib/unictype/categ_No.h: Likewise.
45107         * lib/unictype/categ_P.h: Likewise.
45108         * lib/unictype/categ_Pc.h: Likewise.
45109         * lib/unictype/categ_Pd.h: Likewise.
45110         * lib/unictype/categ_Pe.h: Likewise.
45111         * lib/unictype/categ_Pf.h: Likewise.
45112         * lib/unictype/categ_Pi.h: Likewise.
45113         * lib/unictype/categ_Po.h: Likewise.
45114         * lib/unictype/categ_Ps.h: Likewise.
45115         * lib/unictype/categ_S.h: Likewise.
45116         * lib/unictype/categ_Sc.h: Likewise.
45117         * lib/unictype/categ_Sk.h: Likewise.
45118         * lib/unictype/categ_Sm.h: Likewise.
45119         * lib/unictype/categ_So.h: Likewise.
45120         * lib/unictype/categ_Z.h: Likewise.
45121         * lib/unictype/categ_Zl.h: Likewise.
45122         * lib/unictype/categ_Zp.h: Likewise.
45123         * lib/unictype/categ_Zs.h: Likewise.
45124         * lib/unictype/categ_of.h: Likewise.
45125         * lib/unictype/combining.h: Likewise.
45126         * lib/unictype/ctype_alnum.h: Likewise.
45127         * lib/unictype/ctype_alpha.h: Likewise.
45128         * lib/unictype/ctype_blank.h: Likewise.
45129         * lib/unictype/ctype_cntrl.h: Likewise.
45130         * lib/unictype/ctype_digit.h: Likewise.
45131         * lib/unictype/ctype_graph.h: Likewise.
45132         * lib/unictype/ctype_lower.h: Likewise.
45133         * lib/unictype/ctype_print.h: Likewise.
45134         * lib/unictype/ctype_punct.h: Likewise.
45135         * lib/unictype/ctype_space.h: Likewise.
45136         * lib/unictype/ctype_upper.h: Likewise.
45137         * lib/unictype/ctype_xdigit.h: Likewise.
45138         * lib/unictype/decdigit.h: Likewise.
45139         * lib/unictype/digit.h: Likewise.
45140         * lib/unictype/mirror.h: Likewise.
45141         * lib/unictype/numeric.h: Likewise.
45142         * lib/unictype/pr_alphabetic.h: Likewise.
45143         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
45144         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
45145         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
45146         * lib/unictype/pr_bidi_block_separator.h: Likewise.
45147         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
45148         * lib/unictype/pr_bidi_common_separator.h: Likewise.
45149         * lib/unictype/pr_bidi_control.h: Likewise.
45150         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
45151         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
45152         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
45153         * lib/unictype/pr_bidi_european_digit.h: Likewise.
45154         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
45155         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
45156         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
45157         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
45158         * lib/unictype/pr_bidi_pdf.h: Likewise.
45159         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
45160         * lib/unictype/pr_bidi_whitespace.h: Likewise.
45161         * lib/unictype/pr_combining.h: Likewise.
45162         * lib/unictype/pr_composite.h: Likewise.
45163         * lib/unictype/pr_currency_symbol.h: Likewise.
45164         * lib/unictype/pr_dash.h: Likewise.
45165         * lib/unictype/pr_decimal_digit.h: Likewise.
45166         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
45167         * lib/unictype/pr_deprecated.h: Likewise.
45168         * lib/unictype/pr_diacritic.h: Likewise.
45169         * lib/unictype/pr_extender.h: Likewise.
45170         * lib/unictype/pr_format_control.h: Likewise.
45171         * lib/unictype/pr_grapheme_base.h: Likewise.
45172         * lib/unictype/pr_grapheme_extend.h: Likewise.
45173         * lib/unictype/pr_grapheme_link.h: Likewise.
45174         * lib/unictype/pr_hex_digit.h: Likewise.
45175         * lib/unictype/pr_hyphen.h: Likewise.
45176         * lib/unictype/pr_id_continue.h: Likewise.
45177         * lib/unictype/pr_id_start.h: Likewise.
45178         * lib/unictype/pr_ideographic.h: Likewise.
45179         * lib/unictype/pr_ids_binary_operator.h: Likewise.
45180         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
45181         * lib/unictype/pr_ignorable_control.h: Likewise.
45182         * lib/unictype/pr_iso_control.h: Likewise.
45183         * lib/unictype/pr_join_control.h: Likewise.
45184         * lib/unictype/pr_left_of_pair.h: Likewise.
45185         * lib/unictype/pr_line_separator.h: Likewise.
45186         * lib/unictype/pr_logical_order_exception.h: Likewise.
45187         * lib/unictype/pr_lowercase.h: Likewise.
45188         * lib/unictype/pr_math.h: Likewise.
45189         * lib/unictype/pr_non_break.h: Likewise.
45190         * lib/unictype/pr_not_a_character.h: Likewise.
45191         * lib/unictype/pr_numeric.h: Likewise.
45192         * lib/unictype/pr_other_alphabetic.h: Likewise.
45193         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
45194         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
45195         * lib/unictype/pr_other_id_continue.h: Likewise.
45196         * lib/unictype/pr_other_id_start.h: Likewise.
45197         * lib/unictype/pr_other_lowercase.h: Likewise.
45198         * lib/unictype/pr_other_math.h: Likewise.
45199         * lib/unictype/pr_other_uppercase.h: Likewise.
45200         * lib/unictype/pr_paired_punctuation.h: Likewise.
45201         * lib/unictype/pr_paragraph_separator.h: Likewise.
45202         * lib/unictype/pr_pattern_syntax.h: Likewise.
45203         * lib/unictype/pr_pattern_white_space.h: Likewise.
45204         * lib/unictype/pr_private_use.h: Likewise.
45205         * lib/unictype/pr_punctuation.h: Likewise.
45206         * lib/unictype/pr_quotation_mark.h: Likewise.
45207         * lib/unictype/pr_radical.h: Likewise.
45208         * lib/unictype/pr_sentence_terminal.h: Likewise.
45209         * lib/unictype/pr_soft_dotted.h: Likewise.
45210         * lib/unictype/pr_space.h: Likewise.
45211         * lib/unictype/pr_terminal_punctuation.h: Likewise.
45212         * lib/unictype/pr_titlecase.h: Likewise.
45213         * lib/unictype/pr_unassigned_code_value.h: Likewise.
45214         * lib/unictype/pr_unified_ideograph.h: Likewise.
45215         * lib/unictype/pr_uppercase.h: Likewise.
45216         * lib/unictype/pr_variation_selector.h: Likewise.
45217         * lib/unictype/pr_white_space.h: Likewise.
45218         * lib/unictype/pr_xid_continue.h: Likewise.
45219         * lib/unictype/pr_xid_start.h: Likewise.
45220         * lib/unictype/pr_zero_width.h: Likewise.
45221         * lib/unictype/scripts.h: Likewise.
45222         * lib/unictype/scripts_byname.gperf: Likewise.
45223         * lib/unictype/sy_c_ident.h: Likewise.
45224         * lib/unictype/sy_c_whitespace.h: Likewise.
45225         * lib/unictype/sy_java_ident.h: Likewise.
45226         * lib/unictype/sy_java_whitespace.h: Likewise.
45227
45228         * lib/unictype/Makefile: New file.
45229         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
45230         glibc.
45231         * lib/unictype/3level.h: New file, copied from glibc.
45232         * lib/unictype/3levelbit.h: New file.
45233
45234 2007-11-11  Bruno Haible  <bruno@clisp.org>
45235
45236         * modules/gperf: New file.
45237         * modules/iconv_open (Depends-on): Add it.
45238         (Makefile.am): Remove the GPERF definition.
45239
45240 2007-11-11  Bruno Haible  <bruno@clisp.org>
45241
45242         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
45243         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
45244
45245 2007-11-11  Bruno Haible  <bruno@clisp.org>
45246
45247         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
45248         (usage): Remove function.
45249
45250 2007-11-11  Bruno Haible  <bruno@clisp.org>
45251
45252         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
45253         gl_FUNC_CEILF_LIBS.
45254         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
45255         gl_FUNC_CEIL_LIBS.
45256         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
45257         gl_FUNC_CEILL_LIBS.
45258         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
45259         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
45260         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
45261
45262 2007-11-11  Bruno Haible  <bruno@clisp.org>
45263
45264         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
45265         roundf were declared but do not exist on functions.
45266         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
45267         roundl were declared but do not exist on functions.
45268         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
45269         HAVE_FLOORL_AND_CEILL, respectively.
45270         Needed for Sun C on Solaris 10.
45271
45272 2007-11-11  Bruno Haible  <bruno@clisp.org>
45273
45274         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
45275         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
45276         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
45277         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
45278         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
45279         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
45280         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
45281         HAVE_DECL_ROUNDF.
45282         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
45283         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
45284         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
45285         of HAVE_DECL_ROUND*.
45286         * modules/math (Makefile.am): Update.
45287
45288 2007-11-10  Bruno Haible  <bruno@clisp.org>
45289
45290         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
45291         ptrdiff_t as m4/intl.m4.
45292
45293 2007-11-10  Jim Meyering  <meyering@redhat.com>
45294
45295         Avoid link failure for the argmatch test.
45296         * tests/test-argmatch.c (usage): Define function to avoid a link
45297         failure: argmatch_die requires a usage function.
45298
45299 2007-11-09  Bruno Haible  <bruno@clisp.org>
45300
45301         * doc/functions/snprintf.texi: Mention BeOS deficiency.
45302         * doc/functions/vsnprintf.texi: Likewise.
45303         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
45304         with a size argument < 2.
45305
45306 2007-11-09  Bruno Haible  <bruno@clisp.org>
45307
45308         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
45309         buffer. Fixes an inefficiency introduced on 2007-11-03.
45310
45311 2007-11-09  Bruno Haible  <bruno@clisp.org>
45312
45313         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
45314         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
45315
45316 2007-11-08  Jim Meyering  <meyering@redhat.com>
45317
45318         Change cache variable name prefix "jm_" to "gl_" everywhere.
45319         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
45320         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
45321         * m4/uptime.m4: s/gl_/jm_/
45322
45323 2007-11-07  Bruno Haible  <bruno@clisp.org>
45324
45325         Update to GNU gettext 0.17.
45326         * m4/intl.m4: Update to GNU gettext 0.17.
45327         * m4/po.m4: Likewise.
45328         * modules/gettext (Files): Remove m4/ulonglong.m4.
45329         (configure.ac): Require gettext infrastructure from version 0.17.
45330
45331 2007-11-06  Bruno Haible  <bruno@clisp.org>
45332
45333         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
45334         symbolic values are not defined in a public header.
45335         * lib/freadable.c (freadable) [QNX]: Likewise.
45336         * lib/freadahead.c (freadahead) [QNX]: Likewise.
45337         * lib/freading.c (freading) [QNX]: Likewise.
45338         * lib/fseterr.c (fseterr) [QNX]: Likewise.
45339         * lib/fwritable.c (fwritable) [QNX]: Likewise.
45340         * lib/fwriting.c (fwriting) [QNX]: Likewise.
45341         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
45342         Reported by Alain Magloire.
45343
45344         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
45345
45346 2007-11-05  Bruno Haible  <bruno@clisp.org>
45347
45348         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
45349         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
45350         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
45351         Reported by Eric Blake.
45352
45353 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45354             Bruno Haible  <bruno@clisp.org>
45355
45356         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
45357         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
45358         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
45359         (malloc): Undefine also before including <stdlib.h>.
45360         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
45361         Needed on OSF/1 4.0.
45362
45363 2007-11-05  Jim Meyering  <meyering@redhat.com>
45364
45365         git-version-gen: sync from coreutils.
45366         * build-aux/git-version-gen: Add comments.
45367         Change the first '-' to '.' in the snapshot version string,
45368         e.g., 6.9-377-08144 -> 6.9.377-08144
45369         Remove first parameter.
45370         Don't declare a version "-dirty" merely because a time
45371         stamp has changed.
45372
45373 2007-11-04  Bruno Haible  <bruno@clisp.org>
45374
45375         * lib/lock.h: Protect all macro definitions containing an 'if'
45376         statement through a "do { ... } while (0)".
45377         * lib/tls.h: Likewise.
45378
45379 2007-11-04  Bruno Haible  <bruno@clisp.org>
45380
45381         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
45382
45383 2007-11-04  Bruno Haible  <bruno@clisp.org>
45384
45385         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
45386         * modules/fprintf-posix (Depends-on): Add nocrash.
45387         * modules/snprintf-posix (Depends-on): Likewise.
45388         * modules/sprintf-posix (Depends-on): Likewise.
45389         * modules/vasnprintf-posix (Depends-on): Likewise.
45390         * modules/vasprintf-posix (Depends-on): Likewise.
45391         * modules/vfprintf-posix (Depends-on): Likewise.
45392         * modules/vsnprintf-posix (Depends-on): Likewise.
45393         * modules/vsprintf-posix (Depends-on): Likewise.
45394         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
45395         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45396         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45397         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45398         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45399         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45400         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45401
45402 2007-11-04  Bruno Haible  <bruno@clisp.org>
45403
45404         * modules/nocrash: New file.
45405         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
45406         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
45407
45408 2007-11-04  Bruno Haible  <bruno@clisp.org>
45409
45410         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
45411         precision handling.
45412         * tests/test-vasprintf-posix.c (test_function): Likewise.
45413         * tests/test-snprintf-posix.h (test_function): Likewise.
45414         * tests/test-sprintf-posix.h (test_function): Likewise.
45415
45416         Fix *printf behaviour for large precisions on mingw and BeOS.
45417         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
45418         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
45419         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
45420         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45421         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45422         gl_PRINTF_PRECISION and test its result. Invoke
45423         gl_PREREQ_VASNPRINTF_PRECISION.
45424         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45425         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45426         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45427         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45428         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45429         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45430         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45431         * doc/functions/fprintf.texi: Update.
45432         * doc/functions/printf.texi: Update.
45433         * doc/functions/snprintf.texi: Update.
45434         * doc/functions/sprintf.texi: Update.
45435         * doc/functions/vfprintf.texi: Update.
45436         * doc/functions/vprintf.texi: Update.
45437         * doc/functions/vsnprintf.texi: Update.
45438         * doc/functions/vsprintf.texi: Update.
45439
45440 2007-11-04  Bruno Haible  <bruno@clisp.org>
45441
45442         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
45443
45444 2007-11-04  Bruno Haible  <bruno@clisp.org>
45445
45446         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
45447         Reported by Sylvain Beucler <beuc@gnu.org>.
45448
45449 2007-11-03  Bruno Haible  <bruno@clisp.org>
45450
45451         * tests/test-fprintf-posix2.sh: New file.
45452         * tests/test-fprintf-posix2.c: New file.
45453         * modules/fprintf-posix-tests (Files): Add them.
45454         (TESTS): Add test-fprintf-posix2.sh.
45455         (configure.ac): Check for getrlimit and setrlimit.
45456         (check_PROGRAMS): Add test-fprintf-posix2.
45457
45458         * tests/test-printf-posix2.sh: New file.
45459         * tests/test-printf-posix2.c: New file.
45460         * modules/printf-posix-tests (Files): Add them.
45461         (TESTS): Add test-printf-posix2.sh.
45462         (configure.ac): Check for getrlimit and setrlimit.
45463         (check_PROGRAMS): Add test-printf-posix2.
45464
45465         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
45466         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
45467         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
45468         (decode_double): New function, copied from decode_long_double.
45469         (scale10_round_decimal_decoded): New function, extracted from
45470         scale10_round_decimal_long_double.
45471         (scale10_round_decimal_long_double): Use it.
45472         (scale10_round_decimal_double): New function.
45473         (floorlog10): New function.
45474         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
45475         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
45476         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45477         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45478         gl_PRINTF_ENOMEM and test its result. Invoke
45479         gl_PREREQ_VASNPRINTF_ENOMEM.
45480         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45481         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45482         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45483         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45484         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45485         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45486         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45487         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
45488         * modules/snprintf-posix (Depends-on): Likewise.
45489         * modules/sprintf-posix (Depends-on): Likewise.
45490         * modules/vasnprintf-posix (Depends-on): Likewise.
45491         * modules/vasprintf-posix (Depends-on): Likewise.
45492         * modules/vfprintf-posix (Depends-on): Likewise.
45493         * modules/vsnprintf-posix (Depends-on): Likewise.
45494         * modules/vsprintf-posix (Depends-on): Likewise.
45495         * doc/functions/fprintf.texi: Update.
45496         * doc/functions/printf.texi: Update.
45497         * doc/functions/snprintf.texi: Update.
45498         * doc/functions/sprintf.texi: Update.
45499         * doc/functions/vfprintf.texi: Update.
45500         * doc/functions/vprintf.texi: Update.
45501         * doc/functions/vsnprintf.texi: Update.
45502         * doc/functions/vsprintf.texi: Update.
45503
45504 2007-11-03  Bruno Haible  <bruno@clisp.org>
45505
45506         * modules/frexp-nolibm-tests: New file.
45507
45508         * modules/frexp-nolibm: New file.
45509         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
45510
45511 2007-11-03  Bruno Haible  <bruno@clisp.org>
45512
45513         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
45514         value is C99 compliant.
45515         Needed for OSF/1 5.1.
45516
45517 2007-11-03  Bruno Haible  <bruno@clisp.org>
45518
45519         Fix out-of-memory handling of vasnprintf.
45520         * lib/printf-parse.c: Include <errno.h>.
45521         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
45522         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
45523         is already set.
45524
45525 2007-11-02  Eric Blake  <ebb9@byu.net>
45526
45527         Fix tests on cygwin.
45528         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
45529
45530 2007-11-01  Bruno Haible  <bruno@clisp.org>
45531
45532         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
45533         warning.
45534         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
45535         needed for POSIX compatibility.
45536
45537 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45538
45539         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
45540         for compatibility with GNU.
45541
45542 2007-11-01  Bruno Haible  <bruno@clisp.org>
45543
45544         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
45545         (putenv): Renamed from rpl_putenv. Change argument type from
45546         'const char *' to 'char *'.
45547         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
45548         of defining putenv in config.h, just set REPLACE_PUTENV.
45549         * modules/putenv (Depends-on): Add stdlib.
45550         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45551         (Include): Use <stdlib.h>.
45552         * lib/stdlib.in.h (putenv): New declaration.
45553         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
45554         REPLACE_PUTENV.
45555         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
45556         REPLACE_PUTENV.
45557         Needed for MacOS X 10.5.0.
45558         Reported by Peter O'Gorman <peter@pogma.com>.
45559
45560 2007-11-01  Jim Meyering  <meyering@redhat.com>
45561
45562         Treat an empty date string exactly like "0".
45563         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
45564         if the remaining date string (to be parsed) is empty, use "0".
45565         Reported by Mischa Molhoek and discussed in this thread:
45566         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
45567
45568 2007-10-31  Bruno Haible  <bruno@clisp.org>
45569
45570         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
45571         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
45572         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
45573         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
45574         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
45575         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
45576
45577 2007-10-31  Bruno Haible  <bruno@clisp.org>
45578
45579         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
45580         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
45581         (AC_TYPE_LONG_LONG_INT): Use it.
45582         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
45583         it as well.
45584         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
45585         to m4/longlong.m4.
45586         * modules/stdint (Files): Remove m4/ulonglong.m4.
45587         * modules/strtoull (Files): Use m4/longlong.m4 instead of
45588         m4/ulonglong.m4.
45589         * modules/strtoumax (Files): Likewise.
45590
45591 2007-10-30  Bruno Haible  <bruno@clisp.org>
45592
45593         * modules/xvasprintf-posix: New file.
45594         Suggested by Eric Blake.
45595
45596 2007-10-30  Bruno Haible  <bruno@clisp.org>
45597
45598         * modules/xprintf-posix-tests: New file.
45599         * tests/test-xprintf-posix.sh: New file.
45600         * tests/test-xprintf-posix.c: New file.
45601         * tests/test-xfprintf-posix.c: New file.
45602
45603         * modules/xprintf-posix: New file.
45604
45605 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45606
45607         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
45608         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
45609         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
45610
45611 2007-10-29  Bruno Haible  <bruno@clisp.org>
45612
45613         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
45614         contain the special marker '_cv_'.
45615         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45616         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45617         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45618         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
45619         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45620         Reported by Ralf Wildenhues.
45621
45622 2007-10-29  Bruno Haible  <bruno@clisp.org>
45623
45624         * gnulib-tool (func_import): When --lgpl is not specified, set
45625         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
45626         GPLv3.
45627         Reported by Simon Josefsson.
45628
45629 2007-10-28  Bruno Haible  <bruno@clisp.org>
45630
45631         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
45632         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
45633         HAVE_DECL_ISFINITE.
45634         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45635         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
45636         HAVE_DECL_ISFINITE.
45637
45638 2007-10-28  Bruno Haible  <bruno@clisp.org>
45639
45640         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
45641         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
45642
45643 2007-10-28  Bruno Haible  <bruno@clisp.org>
45644
45645         Fix link errors with Sun C 5.0 on Solaris 10.
45646         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
45647         function is declared but not present in the compiler's libm.
45648         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
45649         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
45650         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
45651         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
45652         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
45653         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
45654         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
45655         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
45656         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
45657         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
45658         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
45659         HAVE_DECL_FLOORL.
45660
45661 2007-10-28  Bruno Haible  <bruno@clisp.org>
45662
45663         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
45664         gl_FUNC_FLOORL. Cache the result.
45665         (gl_FUNC_FLOORL): Use it.
45666         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
45667         gl_FUNC_CEILL. Cache the result.
45668         (gl_FUNC_CEILL): Use it.
45669
45670         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
45671         gl_FUNC_FLOOR. Cache the result.
45672         (gl_FUNC_FLOOR): Use it.
45673         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
45674         gl_FUNC_CEIL. Cache the result.
45675         (gl_FUNC_CEIL): Use it.
45676
45677         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
45678         gl_FUNC_FLOORF. Cache the result.
45679         (gl_FUNC_FLOORF): Use it.
45680         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
45681         gl_FUNC_CEILF. Cache the result.
45682         (gl_FUNC_CEILF): Use it.
45683
45684 2007-10-28  Bruno Haible  <bruno@clisp.org>
45685
45686         * gnulib-tool: Allow specifying the LGPL version number through
45687         --lgpl=2 or --lgpl=3.
45688         (func_usage): Document --lgpl with argument.
45689         Handle --lgpl=... arguments.
45690         (func_import): Recognize also gl_LGPL calls with an argument. When
45691         --lgpl=2 is used and the module's license is just LGPL, report an
45692         error. Set sed_transform_lib_file according to the lgpl variable. In
45693         the generated files, use --lgpl or gl_LGPL invocations with argument,
45694         if necessary.
45695         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
45696         an LGPv2+ license.
45697         * doc/gnulib-tool.texi (Modified imports): Update explanation of
45698         gl_LGPL macro.
45699
45700 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45701             Bruno Haible  <bruno@clisp.org>
45702
45703         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
45704         (u16_uctomb_aux): Likewise.
45705         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
45706         !HAVE_INLINE.
45707         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
45708
45709 2007-10-28  Bruno Haible  <bruno@clisp.org>
45710
45711         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
45712         Invoke AM_GETTEXT_OPTION if it exists.
45713         * modules/vasprintf: Likewise.
45714         * modules/verror: Likewise.
45715         * modules/xprintf: Likewise.
45716         * modules/xvasprintf: Likewise.
45717
45718 2007-10-27  Ben Pfaff  <blp@gnu.org>
45719
45720         * lib/math.in.h: Define isfinite macro and prototypes for
45721         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
45722         implementations.
45723         * m4/math_h.m4: New substitutions for isfinite module.
45724         * lib/isfinite.c: New file.
45725         * m4/isfinite.m4: New file.
45726         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
45727         * modules/isfinite: New file.
45728         * modules/isfinite-tests: New file.
45729         * tests/tests-isfinite.c: New file.
45730         * doc/functions/isfinite.texi: Mention isfinite module.
45731         * MODULES.html.sh: Mention new module.
45732
45733 2007-10-27  Ben Pfaff  <blp@gnu.org>
45734
45735         Ralf Wildenhues reported that Tru64 4.0D declares the round
45736         functions but does not have definitions.
45737         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
45738         cannot be found in any library, set the output variable to
45739         "missing" instead of "".
45740         * m4/round.m4: Also use our substitute if we cannot find round in
45741         any library, even if it is declared.
45742         * m4/roundf.m4: Likewise for roundf.
45743         * m4/roundl.m4: Likewise for roundl.
45744         * lib/math.in.h: Undefine roundf, round, roundl before defining
45745         their replacements, to allow for hypothetical systems where these
45746         may be defined as macros but not available in libraries.
45747
45748 2007-10-27  Bruno Haible  <bruno@clisp.org>
45749
45750         * doc/gnulib.texi: Invoke @firstparagraphindent.
45751         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
45752         changes in gnulib.
45753         (Source changes): New section.
45754
45755 2007-10-26  Bruno Haible  <bruno@clisp.org>
45756
45757         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
45758         borrowed from autoconf.
45759
45760 2007-10-26  Bruno Haible  <bruno@clisp.org>
45761
45762         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
45763         strerror returned the empty string. Needed on HP-UX 11.00.
45764
45765 2007-10-24  Micah Cowan  <micah@cowan.name>
45766
45767         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
45768         * build-aux/bootstrap: Remove support for now-unnecessary option,
45769         --cvs-user, and envvars CVS_USER, CVS_RSH.
45770
45771 2007-10-24  Jim Meyering  <meyering@redhat.com>
45772
45773         Avoid diagnostics from sha1sum when there is no cached checksum.
45774         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
45775         if the po.s1 file hasn't been created yet.
45776
45777         * build-aux/bootstrap: Sync from coreutils:
45778         2007-10-24  Jim Meyering  <meyering@redhat.com>
45779         Get gnulib from the git repository, not from an obsolete cvs one.
45780         * build-aux/bootstrap: Suggestion from Micah Cowan.
45781         2007-10-04  Jim Meyering  <jim@meyering.net>
45782         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
45783         (update_po_files): Work also when there are no .po files in po/.
45784
45785 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45786
45787         * README: Append ".git" to git and cg examples.
45788         Problem reported by Benoit Sigoure.
45789
45790 2007-10-23  Micah Cowan  <micah@cowan.name>
45791
45792         * users.txt: Add wget.
45793
45794 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45795
45796         Fix linking of some unistdio tests on FreeBSD.
45797         * modules/unistdio/u16-vsnprintf-tests
45798         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
45799         * modules/unistdio/u16-vsprintf-tests
45800         (test_u16_vsnprintf1_LDADD): Likewise.
45801         * modules/unistdio/u32-vsnprintf-tests
45802         (test_u32_vsnprintf1_LDADD): Likewise.
45803         * modules/unistdio/u32-vsprintf-tests
45804         (test_u32_vsprintf1_LDADD): Likewise.
45805         * modules/unistdio/u8-vsnprintf-tests
45806         (test_u8_vsnprintf1_LDADD): Likewise.
45807         * modules/unistdio/u8-vsprintf-tests
45808         (test_u8_vsprintf1_LDADD): Likewise.
45809         * modules/unistdio/ulc-vsnprintf-tests
45810         (test_ulc_vsnprintf1_LDADD): Likewise.
45811         * modules/unistdio/ulc-vsprintf-tests
45812         (test_ulc_vsprintf1_LDADD): Likewise.
45813
45814         Fix linking of some uniconv tests on FreeBSD.
45815         * modules/uniconv/u16-conv-from-enc-tests
45816         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
45817         * modules/uniconv/u16-conv-to-enc-tests
45818         (test_u16_conv_to_enc_LDADD): Likewise.
45819         * modules/uniconv/u16-strconv-from-enc-tests
45820         (test_u16_strconv_from_enc_LDADD): Likewise.
45821         * modules/uniconv/u16-strconv-to-enc-tests
45822         (test_u16_strconv_to_enc_LDADD): Likewise.
45823         * modules/uniconv/u32-conv-from-enc-tests
45824         (test_u32_conv_from_enc_LDADD): Likewise.
45825         * modules/uniconv/u32-conv-to-enc-tests
45826         (test_u32_conv_to_enc_LDADD): Likewise.
45827         * modules/uniconv/u32-strconv-from-enc-tests
45828         (test_u32_strconv_from_enc_LDADD): Likewise.
45829         * modules/uniconv/u32-strconv-to-enc-tests
45830         (test_u32_strconv_to_enc_LDADD): Likewise.
45831         * modules/uniconv/u8-conv-from-enc-tests
45832         (test_u8_conv_from_enc_LDADD): Likewise.
45833         * modules/uniconv/u8-conv-to-enc-tests
45834         (test_u8_conv_to_enc_LDADD): Likewise.
45835         * modules/uniconv/u8-strconv-from-enc-tests
45836         (test_u8_strconv_from_enc_LDADD): Likewise.
45837         * modules/uniconv/u8-strconv-to-enc-tests
45838         (test_u8_strconv_to_enc_LDADD): Likewise.
45839
45840 2007-10-22  Bruno Haible  <bruno@clisp.org>
45841
45842         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
45843         size.
45844
45845 2007-10-22  Eric Blake  <ebb9@byu.net>
45846
45847         Tweak x*printf documentation.
45848         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
45849         variable name and comments.
45850         Suggested by Bruno Haible.
45851
45852 2007-10-22  Bruno Haible  <bruno@clisp.org>
45853
45854         * lib/acl.c (copy_acl): Fix file name in comment.
45855
45856 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45857
45858         Fix Tru64 problem with stdbool.h.
45859         * lib/stdbool.in.h (false, true):
45860         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
45861         Don't declare as an enum in this situation; it runs afoul of Tru64.
45862         Problem reported by Steven M. Schweda in
45863         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
45864
45865 2007-10-22  Eric Blake  <ebb9@byu.net>
45866
45867         Also wrap vf?printf.
45868         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
45869         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
45870         (xvprintf, xvfprintf): New functions.
45871
45872 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45873
45874         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
45875         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
45876
45877         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
45878         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
45879
45880 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45881
45882         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
45883         by Bruno Haible.
45884
45885 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45886
45887         * lib/getloadavg.c
45888         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
45889         Undef `sys' after including sys/table.h, for Tru64 4.0D.
45890
45891         * tests/test-i-ring.c: Work for C89.
45892
45893 2007-10-22  Bruno Haible  <bruno@clisp.org>
45894
45895         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
45896         -1u, in preprocessor expression, so that we don't test for the bug
45897         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
45898         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
45899
45900 2007-10-22  Eric Blake  <ebb9@byu.net>
45901
45902         * tests/test-yesno.sh: Silence stderr during test.
45903
45904 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45905
45906         * modules/crypto/gc-camellia: New file.
45907
45908         * m4/gc-camellia.m4: New file.
45909
45910         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
45911
45912         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
45913
45914 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45915
45916         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
45917         --help to stdout.  Reported by sms@antinode.org (Steven
45918         M. Schweda).
45919
45920 2007-10-22  Simon Josefsson  <simon@josefsson.org>
45921
45922         * users.txt: Fix link to libksba.
45923
45924 2007-10-21  Ben Pfaff  <blp@gnu.org>
45925
45926         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
45927         round.c roundf implementation that depends on floorf and ceilf to
45928         be tested unconditionally.
45929
45930 2007-10-21  Ben Pfaff  <blp@gnu.org>
45931
45932         * m4/check-libm-func.m4: Removed.
45933         * m4/check-math-lib.m4: New file.
45934         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
45935         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
45936         definition and lack of AC_LIBOBJ([roundf]).
45937         * m4/roundl.m4: Ditto, and similarly for roundl.
45938         * modules/round: Reference new m4 file.
45939         * modules/roundf: Ditto.
45940         * modules/roundl: Ditto.
45941         * tests/test-round2.c (main): Use ROUND instead of round.
45942         Bug report from Bruno Haible.
45943
45944 2007-10-21  Bruno Haible  <bruno@clisp.org>
45945
45946         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
45947         context.
45948
45949 2007-10-21  Bruno Haible  <bruno@clisp.org>
45950
45951         * tests/test-wcwidth.c (main): Allow negative result for some control
45952         characters.
45953
45954         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
45955         Needed on OSF/1 5.1.
45956
45957 2007-10-21  Bruno Haible  <bruno@clisp.org>
45958
45959         * tests/test-floorf1.c: Include isnanf.h.
45960         (main): Use isnanf() instead of isnan().
45961         * tests/test-ceilf1.c: Include isnanf.h.
45962         (main): Use isnanf() instead of isnan().
45963         * tests/test-truncf1.c: Include isnanf.h.
45964         (main): Use isnanf() instead of isnan().
45965         * tests/test-roundf1.c: Include isnanf.h.
45966         (main): Use isnanf() instead of isnan().
45967
45968 2007-10-21  Eric Blake  <ebb9@byu.net>
45969
45970         * users.txt: Update URL for m4.
45971
45972 2007-10-21  Bruno Haible  <bruno@clisp.org>
45973
45974         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
45975
45976 2007-10-21  Bruno Haible  <bruno@clisp.org>
45977
45978         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
45979         Git's management files if the CVS files are not present.
45980
45981 2007-10-20  Bruno Haible  <bruno@clisp.org>
45982
45983         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
45984         gcc-3.4.x.
45985
45986 2007-10-20  Ben Pfaff  <blp@gnu.org>
45987
45988         * lib/math.in.h: Declare round, roundf, roundl if we are providing
45989         implementations.
45990         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
45991         * lib/round.c: New file.
45992         * lib/roundf.c: New file.
45993         * lib/roundl.c: New file.
45994         * m4/round.m4: New file.
45995         * m4/roundf.m4: New file.
45996         * m4/roundl.m4: New file.
45997         * m4/check-libm-func-m4: New file.
45998         * modules/math: Replace round, roundf, roundl related @VARS@ in
45999         math.in.h.
46000         * modules/round: New file.
46001         * modules/round-tests: New file.
46002         * modules/roundf: New file.
46003         * modules/roundf-tests: New file.
46004         * modules/roundl: New file.
46005         * modules/roundl-tests: New file.
46006         * tests/test-round1.c: New file.
46007         * tests/test-round2.c: New file.
46008         * tests/test-roundf1.c: New file.
46009         * tests/test-roundf2.c: New file.
46010         * tests/test-roundl.c: New file.
46011         * doc/functions/round.texi: Mention round module.
46012         * doc/functions/roundf.texi: Mention roundf module.
46013         * doc/functions/roundl.texi: Mention roundl module.
46014         * MODULES.html.sh: Mention new modules.
46015         Thanks to Bruno Haible for suggestions.
46016
46017 2007-10-20  Jim Meyering  <meyering@redhat.com>
46018
46019         * lib/xprintf.c: Include <config.h> unconditionally.
46020
46021         Change xprintf's license to GPL.
46022         * modules/xprintf (License): s/LGPL/GPL/, since this module
46023         depends on modules (exit and exitfail) which are GPL.
46024         Suggestion from Bruno Haible.
46025
46026         xprintf fixes.
46027         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
46028         Use a clearer diagnostic.
46029         Patch from Bruno Haible.
46030
46031 2007-10-20  Bruno Haible  <bruno@clisp.org>
46032
46033         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
46034         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
46035         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46036
46037 2007-10-20  Bruno Haible  <bruno@clisp.org>
46038
46039         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
46040         precision in the comparison result > x - 1 or similar.
46041         * tests/test-ceilf2.c (correct_result_p): Likewise.
46042         * tests/test-truncf2.c (correct_result_p): Likewise.
46043         * tests/test-trunc2.c (correct_result_p): Likewise.
46044         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46045
46046 2007-10-20  Bruno Haible  <bruno@clisp.org>
46047
46048         * modules/ceil: New file.
46049         * m4/ceil.m4: New file.
46050         * doc/functions/ceil.texi: Mention the 'ceil' module.
46051
46052 2007-10-20  Bruno Haible  <bruno@clisp.org>
46053
46054         * modules/floor: New file.
46055         * m4/floor.m4: New file.
46056         * doc/functions/floor.texi: Mention the 'floor' module.
46057
46058 2007-10-20  Bruno Haible  <bruno@clisp.org>
46059
46060         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
46061         of %a.
46062         * modules/floorf-tests (Depends-on): Likewise.
46063         * modules/truncf-tests (Depends-on): Likewise.
46064         * modules/trunc-tests (Depends-on): Likewise.
46065         Reported by Ben Pfaff.
46066
46067 2007-10-19  Jim Meyering  <meyering@redhat.com>
46068
46069         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
46070         Don't bother testing specific errno values.  Just test ferror.
46071
46072         New module: xprintf
46073         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
46074
46075 2007-10-19  Bruno Haible  <bruno@clisp.org>
46076
46077         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
46078         syntax.
46079         * modules/javaexec (Makefile.am): Likewise.
46080         * modules/relocatable-prog (Makefile.am): Likewise.
46081         Suggested by Jim Meyering.
46082
46083 2007-10-18  Bruno Haible  <bruno@clisp.org>
46084
46085         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
46086         Reported by Jim Meyering.
46087
46088 2007-10-18  Eric Blake  <ebb9@byu.net>
46089
46090         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
46091
46092 2007-10-18  Bruno Haible  <bruno@clisp.org>
46093
46094         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
46095         the format string into writable memory. Needed in Fortify conditions.
46096
46097 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
46098             Bruno Haible  <bruno@clisp.org>
46099
46100         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
46101         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
46102         * modules/trim (Depends-on): Add mbchar.
46103         (configure.ac): Add gl_FUNC_MBRTOWC.
46104         (Makefile.am): Augment lib_SOURCES.
46105
46106 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
46107
46108         Modify glob.c to use fstatat and dirfd, to simplify it.
46109         Suggested by Eric Blake.
46110         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
46111         Don't include <stdbool.h>; not used.
46112         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
46113         (link_exists_p): Simplify implementation, since we can now assume
46114         dirfd and fstatat.
46115         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
46116
46117 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46118
46119         * gnulib-tool (func_get_dependencies): Fix sed script to
46120         match only tests.
46121
46122 2007-10-17  Bruno Haible  <bruno@clisp.org>
46123
46124         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
46125         allow locale names without encoding suffix.
46126         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
46127         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46128
46129 2007-10-16  Bruno Haible  <bruno@clisp.org>
46130
46131         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
46132         * lib/getgroups.c (getgroups): Likewise.
46133         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
46134
46135 2007-10-16  Bruno Haible  <bruno@clisp.org>
46136
46137         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
46138         * modules/malloc-posix (License): Likewise.
46139         * modules/realloc-posix (License): Likewise.
46140         * modules/calloc-posix (License): Likewise.
46141         * modules/intprops (License): Change from GPL to LGPL, with
46142         Paul Eggert's approval.
46143
46144 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46145
46146         Merge glibc changes into lib/glob.c.
46147
46148         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
46149         2007-10-15 04:59:03 UTC.  Here are the changes:
46150
46151         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
46152
46153         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
46154
46155         * lib/glob.c: Add some branch prediction throughout.
46156
46157         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
46158
46159         [BZ #5103]
46160         * lib/glob.c (glob): Recognize patterns starting \/.
46161
46162         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
46163
46164         [BZ #3996]
46165         * lib/glob.c (attribute_hidden): Define if not defined.
46166         (glob): Unescape dirname, filename or username when needed and not
46167         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
46168         is NULL.  Handle unescaped [ in pattern without closing ].
46169         Don't pass GLOB_CHECK down to recursive glob for directories.
46170         (__glob_pattern_type): New function.
46171         (__glob_pattern_p): Implement using __glob_pattern_type.
46172         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
46173         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
46174         Remove unreachable code.
46175
46176         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
46177
46178         * lib/glob.c (glob_in_dir): Add some comments and asserts to
46179         explain why there are no leaks.
46180
46181         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
46182
46183         [BZ #3253]
46184         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
46185         time, rather allocate increasingly bigger arrays of pointers, if
46186         possible with alloca, if too large with malloc.
46187
46188 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46189
46190         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
46191         Problem reported by H.Merijn Brand in
46192         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
46193         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
46194         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
46195
46196 2007-10-15  Bruno Haible  <bruno@clisp.org>
46197
46198         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
46199         with explicit rpl_ prefix.
46200         * lib/fopen.c (fopen): Likewise.
46201         * lib/freopen.c (freopen): Likewise.
46202         * lib/iconv.c (iconv): Likewise.
46203         * lib/iconv_close.c (iconv_close): Likewise.
46204
46205 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46206
46207         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
46208
46209 2007-10-15  Bruno Haible  <bruno@clisp.org>
46210
46211         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
46212         <stddef.h> instead of <stdlib.h> since we only need NULL.
46213         Reported by Ben Pfaff <blp@cs.stanford.edu>.
46214
46215 2007-10-15  Bruno Haible  <bruno@clisp.org>
46216
46217         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
46218         Replace paragraph talking about LIBOBJS.
46219         Reported by Colin Watson <cjwatson@debian.org>.
46220
46221 2007-10-15  Bruno Haible  <bruno@clisp.org>
46222
46223         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
46224         <stdlib.h> before using NULL.
46225
46226 2007-10-15  Simon Josefsson  <simon@josefsson.org>
46227
46228         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
46229         Reported by Albert Chin <china@thewrittenword.com>.
46230
46231 2007-10-14  Bruno Haible  <bruno@clisp.org>
46232
46233         * modules/iconv_open-utf-tests: New file.
46234         * tests/test-iconv-utf.c: New file.
46235
46236         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
46237         * modules/iconv_open-utf: New file.
46238         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
46239         (iconv, iconv_close): New declarations.
46240         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
46241         be defined.
46242         (iconv_open): Add special handling of conversion between UTF-8 and
46243         UTF-{16,32}{BE,LE}.
46244         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
46245         * lib/iconv_close.c: New file.
46246         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
46247         gl_FUNC_ICONV_OPEN.
46248         (gl_FUNC_ICONV_OPEN): Use it.
46249         (gl_FUNC_ICONV_OPEN_UTF): New macro.
46250         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
46251         and REPLACE_ICONV_UTF.
46252         * modules/iconv_open (Depends-on): Add c-strcase.
46253         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
46254         ICONV_CONST.
46255         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
46256
46257 2007-10-13  Albert Chin  <china@thewrittenword.com>
46258             Bruno Haible  <bruno@clisp.org>
46259
46260         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
46261         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
46262
46263 2007-10-13  Bruno Haible  <bruno@clisp.org>
46264
46265         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
46266         defined, use the ISO C99 inline semantics.
46267         * lib/argp.h (ARGP_EI): Likewise.
46268
46269 2007-10-13  Bruno Haible  <bruno@clisp.org>
46270
46271         Handle 'inline' change in gcc 4.3.0.
46272         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
46273         argp_fmtstream_write, argp_fmtstream_set_lmargin,
46274         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
46275         argp_fmtstream_point): Disable 'extern' declaration if the function
46276         definition is going to be provided inline.
46277         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
46278         semantics, not the ISO C99 inline semantics.
46279         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
46280         'extern' declaration if the function definition is going to be provided
46281         inline.
46282         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
46283         the GNU C inline semantics, not the ISO C99 inline semantics. With
46284         GCC 4.2, avoid a warning.
46285
46286 2007-10-13  Bruno Haible  <bruno@clisp.org>
46287
46288         * lib/freading.h (freading): Enable the use of __freading for
46289         glibc >= 2.7.
46290         * lib/freading.c (freading): Likewise.
46291
46292 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
46293
46294         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
46295         "warning: C99 inline functions are not supported; using GNU89".
46296
46297 2007-10-12  Bruno Haible  <bruno@clisp.org>
46298
46299         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
46300         of 2.
46301         * tests/test-ceilf2.c: New file.
46302         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
46303
46304         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
46305         * modules/ceilf-tests: Update.
46306
46307 2007-10-12  Bruno Haible  <bruno@clisp.org>
46308
46309         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
46310         of 2.
46311         * tests/test-floorf2.c: New file.
46312         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
46313
46314         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
46315         * modules/floorf-tests: Update.
46316
46317 2007-10-12  Bruno Haible  <bruno@clisp.org>
46318
46319         * tests/test-trunc2.c: New file.
46320         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
46321
46322         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
46323         * modules/trunc-tests: Update.
46324
46325 2007-10-12  Bruno Haible  <bruno@clisp.org>
46326
46327         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
46328         of 2.
46329         * tests/test-truncf2.c: New file.
46330         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
46331
46332         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
46333         * modules/truncf-tests: Update.
46334
46335 2007-10-11  Eric Blake  <ebb9@byu.net>
46336
46337         Don't claim strerror is broken on Interix.
46338         * doc/functions/strerror.texi (strerror): Known broken systems are
46339         now Solaris 8, and not Interix.
46340         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
46341         Interix on cross-compile.
46342         Reported by Martin Koeppe in
46343         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
46344
46345 2007-10-11  Bruno Haible  <bruno@clisp.org>
46346
46347         * modules/i-ring-tests: New file.
46348         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
46349         instead of assert.
46350
46351 2007-10-11  Bruno Haible  <bruno@clisp.org>
46352
46353         * modules/filenamecat-tests: New file.
46354         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
46355         * lib/filenamecat.c: Remove test code.
46356
46357 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
46358
46359         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
46360
46361         * lib/strerror.c: Include <string.h> always, to test interface,
46362         and to remove the need for the dummy.
46363         Include intprops.h to compute width instead of doing it ourselves
46364         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
46365         (strerror): Define it to return NULL if there's no system strerror.
46366         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
46367         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
46368         ancient pre-strerror Unix systems well any more.  Saying "unknown
46369         system error" is enough.
46370         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
46371         simpler strerror.c implementation.
46372         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
46373         Simplify the tests to reflect the simpler strerror implementation.
46374         * modules/strerror (Depends-on): Add intprops.
46375
46376 2007-10-09  Eric Blake  <ebb9@byu.net>
46377
46378         Silence test-fpending.
46379         * modules/fpending-tests (Files): Add wrapper script.
46380         * tests/test-fpending.sh: New file.
46381
46382 2007-10-09  Bruno Haible  <bruno@clisp.org>
46383
46384         * MODULES.html.sh (func_module): Don't create a hyperlink for
46385         function names like 'printf_frexp'.
46386         (Misc): Add crc, memxor.
46387         (Characteristics of floating types): New section.
46388         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
46389         isnanf-nolibm, signbit, trunc, truncf, truncl.
46390         (Enhancements for ISO C 99 functions): New subsection Input/output.
46391         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
46392         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
46393         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
46394         (Compatibility checks for POSIX:2001 functions): Add clock-time.
46395         (Enhancements for POSIX:2001 functions): Add chdir-long.
46396         (File system functions): Add areadlink, chdir-safer, read-file.
46397         Remove cycle-check.
46398         (File system as inode set): New section.
46399         (Date and time): Add gethrxtime.
46400         (Multithreading): Add openmp.
46401         (Internationalization functions): Add localename.
46402         (Unicode string functions): Add unistr/u*-mbsnlen.
46403         (Support for maintaining and releasing projects): Add git-version-gen.
46404         (Lone files): Remove directories.
46405
46406 2007-10-08  Ben Pfaff  <blp@gnu.org>
46407
46408         * lib/xmalloca.h: Fix typo in comment.
46409
46410 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
46411
46412         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
46413         when avoiding problems with integer overflow.  Use a portable test
46414         instead.
46415
46416 2007-10-08  Simon Josefsson  <simon@josefsson.org>
46417
46418         * modules/dummy (License): Change to LGPLv2+.
46419         * modules/float (License): Likewise
46420         * modules/realloc (License): Likewise
46421         * modules/stdlib (License): Likewise
46422
46423 2007-10-07  Bruno Haible  <bruno@clisp.org>
46424
46425         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
46426         * floor.c (TWO_MANT_DIG): Likewise.
46427         * ceil.c (TWO_MANT_DIG): Likewise.
46428         Reported by Ben Pfaff.
46429
46430 2007-10-07  Bruno Haible  <bruno@clisp.org>
46431
46432         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
46433         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
46434         * lib/frexp.c (FUNC): Likewise.
46435         * lib/printf-frexp.h (printf_frexp): Likewise.
46436         * lib/printf-frexpl.h (printf_frexpl): Likewise.
46437         * lib/printf-frexp.c (FUNC): Likewise.
46438         Suggested by Jim Meyering.
46439
46440 2007-10-07  Jim Meyering  <meyering@redhat.com>
46441
46442         Make xnanosleep's integer overflow test more robust.
46443         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
46444         so that gcc-4.3.0 doesn't optimize away this test for overflow.
46445
46446 2007-10-07  Bruno Haible  <bruno@clisp.org>
46447
46448         * NEWS: Mention the license change.
46449
46450         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
46451         abbreviations in the modules files.
46452
46453         Change copyright notice from GPLv2+ to GPLv3+.
46454         * README: Change copyright notice.
46455         * MODULES.html.sh: Likewise.
46456         * build-aux/bootstrap.conf: Likewise.
46457         * build-aux/config.libpath: Likewise.
46458         * build-aux/csharpcomp.sh.in: Likewise.
46459         * build-aux/csharpexec.sh.in: Likewise.
46460         * build-aux/install-reloc: Likewise.
46461         * build-aux/javacomp.sh.in: Likewise.
46462         * build-aux/javaexec.sh.in: Likewise.
46463         * build-aux/ldd.sh.in: Likewise.
46464         * build-aux/reloc-ldflags: Likewise.
46465         * build-aux/relocatable.sh.in: Likewise.
46466         * build-aux/x-to-1.in: Likewise.
46467         * check-module: Likewise.
46468         * config/srclistvars.sh: Likewise.
46469         * gnulib-tool: Likewise.
46470         * lib/acl-internal.h: Likewise.
46471         * lib/acl.c: Likewise.
46472         * lib/acl.h: Likewise.
46473         * lib/acl_entries.c: Likewise.
46474         * lib/areadlink-with-size.c: Likewise.
46475         * lib/areadlink.c: Likewise.
46476         * lib/areadlink.h: Likewise.
46477         * lib/argmatch.c: Likewise.
46478         * lib/argmatch.h: Likewise.
46479         * lib/argp-ba.c: Likewise.
46480         * lib/argp-eexst.c: Likewise.
46481         * lib/argp-fmtstream.c: Likewise.
46482         * lib/argp-fmtstream.h: Likewise.
46483         * lib/argp-fs-xinl.c: Likewise.
46484         * lib/argp-help.c: Likewise.
46485         * lib/argp-namefrob.h: Likewise.
46486         * lib/argp-parse.c: Likewise.
46487         * lib/argp-pin.c: Likewise.
46488         * lib/argp-pv.c: Likewise.
46489         * lib/argp-pvh.c: Likewise.
46490         * lib/argp-xinl.c: Likewise.
46491         * lib/argp.h: Likewise.
46492         * lib/at-func.c: Likewise.
46493         * lib/atanl.c: Likewise.
46494         * lib/backupfile.c: Likewise.
46495         * lib/backupfile.h: Likewise.
46496         * lib/basename.c: Likewise.
46497         * lib/binary-io.h: Likewise.
46498         * lib/byteswap.in.h: Likewise.
46499         * lib/c-stack.c: Likewise.
46500         * lib/c-stack.h: Likewise.
46501         * lib/c-strcasestr.c: Likewise.
46502         * lib/c-strcasestr.h: Likewise.
46503         * lib/c-strstr.c: Likewise.
46504         * lib/c-strstr.h: Likewise.
46505         * lib/c-strtod.c: Likewise.
46506         * lib/calloc.c: Likewise.
46507         * lib/canon-host.c: Likewise.
46508         * lib/canon-host.h: Likewise.
46509         * lib/canonicalize-lgpl.c: Likewise.
46510         * lib/canonicalize.c: Likewise.
46511         * lib/canonicalize.h: Likewise.
46512         * lib/ceil.c: Likewise.
46513         * lib/ceilf.c: Likewise.
46514         * lib/ceill.c: Likewise.
46515         * lib/chdir-long.c: Likewise.
46516         * lib/chdir-long.h: Likewise.
46517         * lib/chdir-safer.c: Likewise.
46518         * lib/chdir-safer.h: Likewise.
46519         * lib/chown.c: Likewise.
46520         * lib/classpath.c: Likewise.
46521         * lib/classpath.h: Likewise.
46522         * lib/clean-temp.c: Likewise.
46523         * lib/clean-temp.h: Likewise.
46524         * lib/cloexec.c: Likewise.
46525         * lib/close-stream.c: Likewise.
46526         * lib/closein.c: Likewise.
46527         * lib/closein.h: Likewise.
46528         * lib/closeout.c: Likewise.
46529         * lib/closeout.h: Likewise.
46530         * lib/concat-filename.c: Likewise.
46531         * lib/copy-file.c: Likewise.
46532         * lib/copy-file.h: Likewise.
46533         * lib/count-one-bits.h: Likewise.
46534         * lib/crc.c: Likewise.
46535         * lib/crc.h: Likewise.
46536         * lib/creat-safer.c: Likewise.
46537         * lib/csharpcomp.c: Likewise.
46538         * lib/csharpcomp.h: Likewise.
46539         * lib/csharpexec.c: Likewise.
46540         * lib/csharpexec.h: Likewise.
46541         * lib/cycle-check.c: Likewise.
46542         * lib/cycle-check.h: Likewise.
46543         * lib/diacrit.c: Likewise.
46544         * lib/diacrit.h: Likewise.
46545         * lib/diffseq.h: Likewise.
46546         * lib/dirchownmod.c: Likewise.
46547         * lib/dirent.in.h: Likewise.
46548         * lib/dirfd.c: Likewise.
46549         * lib/dirfd.h: Likewise.
46550         * lib/dirname.c: Likewise.
46551         * lib/dirname.h: Likewise.
46552         * lib/dummy.c: Likewise.
46553         * lib/dup-safer.c: Likewise.
46554         * lib/dup2.c: Likewise.
46555         * lib/eealloc.h: Likewise.
46556         * lib/error.c: Likewise.
46557         * lib/error.h: Likewise.
46558         * lib/euidaccess.c: Likewise.
46559         * lib/exclude.c: Likewise.
46560         * lib/exclude.h: Likewise.
46561         * lib/execute.c: Likewise.
46562         * lib/execute.h: Likewise.
46563         * lib/exitfail.c: Likewise.
46564         * lib/exitfail.h: Likewise.
46565         * lib/expl.c: Likewise.
46566         * lib/fatal-signal.c: Likewise.
46567         * lib/fatal-signal.h: Likewise.
46568         * lib/fbufmode.c: Likewise.
46569         * lib/fbufmode.h: Likewise.
46570         * lib/fchdir.c: Likewise.
46571         * lib/fchmodat.c: Likewise.
46572         * lib/fchownat.c: Likewise.
46573         * lib/fcntl--.h: Likewise.
46574         * lib/fcntl-safer.h: Likewise.
46575         * lib/fcntl.in.h: Likewise.
46576         * lib/fd-safer.c: Likewise.
46577         * lib/fflush.c: Likewise.
46578         * lib/file-has-acl.c: Likewise.
46579         * lib/file-set.c: Likewise.
46580         * lib/file-type.c: Likewise.
46581         * lib/file-type.h: Likewise.
46582         * lib/fileblocks.c: Likewise.
46583         * lib/filemode.c: Likewise.
46584         * lib/filemode.h: Likewise.
46585         * lib/filename.h: Likewise.
46586         * lib/filenamecat.c: Likewise.
46587         * lib/filenamecat.h: Likewise.
46588         * lib/findprog.c: Likewise.
46589         * lib/findprog.h: Likewise.
46590         * lib/float.in.h: Likewise.
46591         * lib/floor.c: Likewise.
46592         * lib/floorf.c: Likewise.
46593         * lib/floorl.c: Likewise.
46594         * lib/fopen-safer.c: Likewise.
46595         * lib/fopen.c: Likewise.
46596         * lib/fpending.c: Likewise.
46597         * lib/fpending.h: Likewise.
46598         * lib/fprintf.c: Likewise.
46599         * lib/fprintftime.h: Likewise.
46600         * lib/fpucw.h: Likewise.
46601         * lib/fpurge.c: Likewise.
46602         * lib/fpurge.h: Likewise.
46603         * lib/freadable.c: Likewise.
46604         * lib/freadable.h: Likewise.
46605         * lib/freadahead.c: Likewise.
46606         * lib/freadahead.h: Likewise.
46607         * lib/freading.c: Likewise.
46608         * lib/freading.h: Likewise.
46609         * lib/free.c: Likewise.
46610         * lib/freopen.c: Likewise.
46611         * lib/frexp.c: Likewise.
46612         * lib/frexpl.c: Likewise.
46613         * lib/fseek.c: Likewise.
46614         * lib/fseterr.c: Likewise.
46615         * lib/fseterr.h: Likewise.
46616         * lib/fstatat.c: Likewise.
46617         * lib/fstrcmp.c: Likewise.
46618         * lib/fstrcmp.h: Likewise.
46619         * lib/fsusage.c: Likewise.
46620         * lib/fsusage.h: Likewise.
46621         * lib/ftell.c: Likewise.
46622         * lib/ftello.c: Likewise.
46623         * lib/fts-cycle.c: Likewise.
46624         * lib/fts.c: Likewise.
46625         * lib/fts_.h: Likewise.
46626         * lib/full-read.c: Likewise.
46627         * lib/full-read.h: Likewise.
46628         * lib/full-write.c: Likewise.
46629         * lib/full-write.h: Likewise.
46630         * lib/fwritable.c: Likewise.
46631         * lib/fwritable.h: Likewise.
46632         * lib/fwriteerror.c: Likewise.
46633         * lib/fwriteerror.h: Likewise.
46634         * lib/fwriting.c: Likewise.
46635         * lib/fwriting.h: Likewise.
46636         * lib/gcd.c: Likewise.
46637         * lib/gcd.h: Likewise.
46638         * lib/getcwd.c: Likewise.
46639         * lib/getdate.h: Likewise.
46640         * lib/getdate.y: Likewise.
46641         * lib/getdomainname.c: Likewise.
46642         * lib/getdomainname.h: Likewise.
46643         * lib/getgroups.c: Likewise.
46644         * lib/gethostname.c: Likewise.
46645         * lib/gethrxtime.c: Likewise.
46646         * lib/gethrxtime.h: Likewise.
46647         * lib/getloadavg.c: Likewise.
46648         * lib/getndelim2.c: Likewise.
46649         * lib/getndelim2.h: Likewise.
46650         * lib/getnline.c: Likewise.
46651         * lib/getnline.h: Likewise.
46652         * lib/getopt.c: Likewise.
46653         * lib/getopt.in.h: Likewise.
46654         * lib/getopt1.c: Likewise.
46655         * lib/getopt_int.h: Likewise.
46656         * lib/getpagesize.h: Likewise.
46657         * lib/getsubopt.c: Likewise.
46658         * lib/gettime.c: Likewise.
46659         * lib/getugroups.c: Likewise.
46660         * lib/getugroups.h: Likewise.
46661         * lib/getusershell.c: Likewise.
46662         * lib/gl_anyavltree_list1.h: Likewise.
46663         * lib/gl_anyavltree_list2.h: Likewise.
46664         * lib/gl_anyhash_list1.h: Likewise.
46665         * lib/gl_anyhash_list2.h: Likewise.
46666         * lib/gl_anylinked_list1.h: Likewise.
46667         * lib/gl_anylinked_list2.h: Likewise.
46668         * lib/gl_anyrbtree_list1.h: Likewise.
46669         * lib/gl_anyrbtree_list2.h: Likewise.
46670         * lib/gl_anytree_list1.h: Likewise.
46671         * lib/gl_anytree_list2.h: Likewise.
46672         * lib/gl_anytree_oset.h: Likewise.
46673         * lib/gl_anytreehash_list1.h: Likewise.
46674         * lib/gl_anytreehash_list2.h: Likewise.
46675         * lib/gl_array_list.c: Likewise.
46676         * lib/gl_array_list.h: Likewise.
46677         * lib/gl_array_oset.c: Likewise.
46678         * lib/gl_array_oset.h: Likewise.
46679         * lib/gl_avltree_list.c: Likewise.
46680         * lib/gl_avltree_list.h: Likewise.
46681         * lib/gl_avltree_oset.c: Likewise.
46682         * lib/gl_avltree_oset.h: Likewise.
46683         * lib/gl_avltreehash_list.c: Likewise.
46684         * lib/gl_avltreehash_list.h: Likewise.
46685         * lib/gl_carray_list.c: Likewise.
46686         * lib/gl_carray_list.h: Likewise.
46687         * lib/gl_linked_list.c: Likewise.
46688         * lib/gl_linked_list.h: Likewise.
46689         * lib/gl_linkedhash_list.c: Likewise.
46690         * lib/gl_linkedhash_list.h: Likewise.
46691         * lib/gl_list.c: Likewise.
46692         * lib/gl_list.h: Likewise.
46693         * lib/gl_oset.c: Likewise.
46694         * lib/gl_oset.h: Likewise.
46695         * lib/gl_rbtree_list.c: Likewise.
46696         * lib/gl_rbtree_list.h: Likewise.
46697         * lib/gl_rbtree_oset.c: Likewise.
46698         * lib/gl_rbtree_oset.h: Likewise.
46699         * lib/gl_rbtreehash_list.c: Likewise.
46700         * lib/gl_rbtreehash_list.h: Likewise.
46701         * lib/gl_sublist.c: Likewise.
46702         * lib/gl_sublist.h: Likewise.
46703         * lib/group-member.c: Likewise.
46704         * lib/group-member.h: Likewise.
46705         * lib/hard-locale.c: Likewise.
46706         * lib/hard-locale.h: Likewise.
46707         * lib/hash-pjw.c: Likewise.
46708         * lib/hash-pjw.h: Likewise.
46709         * lib/hash-triple.c: Likewise.
46710         * lib/hash.c: Likewise.
46711         * lib/hash.h: Likewise.
46712         * lib/human.c: Likewise.
46713         * lib/human.h: Likewise.
46714         * lib/i-ring.c: Likewise.
46715         * lib/i-ring.h: Likewise.
46716         * lib/idcache.c: Likewise.
46717         * lib/imaxabs.c: Likewise.
46718         * lib/imaxdiv.c: Likewise.
46719         * lib/inet_pton.c: Likewise.
46720         * lib/inet_pton.h: Likewise.
46721         * lib/intprops.h: Likewise.
46722         * lib/inttostr.c: Likewise.
46723         * lib/inttostr.h: Likewise.
46724         * lib/inttypes.in.h: Likewise.
46725         * lib/isapipe.c: Likewise.
46726         * lib/isdir.c: Likewise.
46727         * lib/isnan.c: Likewise.
46728         * lib/isnan.h: Likewise.
46729         * lib/isnanf.c: Likewise.
46730         * lib/isnanf.h: Likewise.
46731         * lib/isnanl-nolibm.h: Likewise.
46732         * lib/isnanl.c: Likewise.
46733         * lib/isnanl.h: Likewise.
46734         * lib/javacomp.c: Likewise.
46735         * lib/javacomp.h: Likewise.
46736         * lib/javaexec.c: Likewise.
46737         * lib/javaexec.h: Likewise.
46738         * lib/javaversion.c: Likewise.
46739         * lib/javaversion.h: Likewise.
46740         * lib/javaversion.java: Likewise.
46741         * lib/lbrkprop.h: Likewise.
46742         * lib/lchmod.h: Likewise.
46743         * lib/lchown.c: Likewise.
46744         * lib/ldexpl.c: Likewise.
46745         * lib/linebreak.c: Likewise.
46746         * lib/linebreak.h: Likewise.
46747         * lib/linebuffer.c: Likewise.
46748         * lib/linebuffer.h: Likewise.
46749         * lib/locale.in.h: Likewise.
46750         * lib/logl.c: Likewise.
46751         * lib/long-options.c: Likewise.
46752         * lib/long-options.h: Likewise.
46753         * lib/lstat.c: Likewise.
46754         * lib/lstat.h: Likewise.
46755         * lib/math.in.h: Likewise.
46756         * lib/mbchar.c: Likewise.
46757         * lib/mbchar.h: Likewise.
46758         * lib/mbfile.h: Likewise.
46759         * lib/mbiter.h: Likewise.
46760         * lib/mbscasecmp.c: Likewise.
46761         * lib/mbscasestr.c: Likewise.
46762         * lib/mbschr.c: Likewise.
46763         * lib/mbscspn.c: Likewise.
46764         * lib/mbslen.c: Likewise.
46765         * lib/mbsncasecmp.c: Likewise.
46766         * lib/mbsnlen.c: Likewise.
46767         * lib/mbspbrk.c: Likewise.
46768         * lib/mbspcasecmp.c: Likewise.
46769         * lib/mbsrchr.c: Likewise.
46770         * lib/mbssep.c: Likewise.
46771         * lib/mbsspn.c: Likewise.
46772         * lib/mbsstr.c: Likewise.
46773         * lib/mbstok_r.c: Likewise.
46774         * lib/mbswidth.c: Likewise.
46775         * lib/mbswidth.h: Likewise.
46776         * lib/mbuiter.h: Likewise.
46777         * lib/memcasecmp.c: Likewise.
46778         * lib/memcasecmp.h: Likewise.
46779         * lib/memchr.c: Likewise.
46780         * lib/memcmp.c: Likewise.
46781         * lib/memcoll.c: Likewise.
46782         * lib/memcoll.h: Likewise.
46783         * lib/memcpy.c: Likewise.
46784         * lib/memrchr.c: Likewise.
46785         * lib/mkancesdirs.c: Likewise.
46786         * lib/mkdir-p.c: Likewise.
46787         * lib/mkdir-p.h: Likewise.
46788         * lib/mkdir.c: Likewise.
46789         * lib/mkdirat.c: Likewise.
46790         * lib/mkdtemp.c: Likewise.
46791         * lib/mkstemp-safer.c: Likewise.
46792         * lib/mkstemp.c: Likewise.
46793         * lib/modechange.c: Likewise.
46794         * lib/modechange.h: Likewise.
46795         * lib/mountlist.c: Likewise.
46796         * lib/mountlist.h: Likewise.
46797         * lib/mpsort.c: Likewise.
46798         * lib/nanosleep.c: Likewise.
46799         * lib/obstack.c: Likewise.
46800         * lib/obstack.h: Likewise.
46801         * lib/open-safer.c: Likewise.
46802         * lib/open.c: Likewise.
46803         * lib/openat-die.c: Likewise.
46804         * lib/openat-priv.h: Likewise.
46805         * lib/openat-proc.c: Likewise.
46806         * lib/openat.c: Likewise.
46807         * lib/openat.h: Likewise.
46808         * lib/pagealign_alloc.c: Likewise.
46809         * lib/pagealign_alloc.h: Likewise.
46810         * lib/physmem.c: Likewise.
46811         * lib/physmem.h: Likewise.
46812         * lib/pipe-safer.c: Likewise.
46813         * lib/pipe.c: Likewise.
46814         * lib/pipe.h: Likewise.
46815         * lib/posixtm.c: Likewise.
46816         * lib/posixtm.h: Likewise.
46817         * lib/posixver.c: Likewise.
46818         * lib/printf-frexp.c: Likewise.
46819         * lib/printf-frexp.h: Likewise.
46820         * lib/printf-frexpl.c: Likewise.
46821         * lib/printf-frexpl.h: Likewise.
46822         * lib/printf.c: Likewise.
46823         * lib/progname.c: Likewise.
46824         * lib/progname.h: Likewise.
46825         * lib/progreloc.c: Likewise.
46826         * lib/putenv.c: Likewise.
46827         * lib/quote.c: Likewise.
46828         * lib/quote.h: Likewise.
46829         * lib/quotearg.c: Likewise.
46830         * lib/quotearg.h: Likewise.
46831         * lib/raise.c: Likewise.
46832         * lib/readline.c: Likewise.
46833         * lib/readline.h: Likewise.
46834         * lib/readlink.c: Likewise.
46835         * lib/readtokens.c: Likewise.
46836         * lib/readtokens.h: Likewise.
46837         * lib/readtokens0.c: Likewise.
46838         * lib/readtokens0.h: Likewise.
46839         * lib/readutmp.c: Likewise.
46840         * lib/readutmp.h: Likewise.
46841         * lib/realloc.c: Likewise.
46842         * lib/relocwrapper.c: Likewise.
46843         * lib/rename-dest-slash.c: Likewise.
46844         * lib/rename.c: Likewise.
46845         * lib/rmdir.c: Likewise.
46846         * lib/rpmatch.c: Likewise.
46847         * lib/safe-read.c: Likewise.
46848         * lib/safe-read.h: Likewise.
46849         * lib/safe-write.c: Likewise.
46850         * lib/safe-write.h: Likewise.
46851         * lib/same-inode.h: Likewise.
46852         * lib/same.c: Likewise.
46853         * lib/same.h: Likewise.
46854         * lib/save-cwd.c: Likewise.
46855         * lib/save-cwd.h: Likewise.
46856         * lib/savedir.c: Likewise.
46857         * lib/savedir.h: Likewise.
46858         * lib/savewd.c: Likewise.
46859         * lib/savewd.h: Likewise.
46860         * lib/search.in.h: Likewise.
46861         * lib/setenv.c: Likewise.
46862         * lib/setenv.h: Likewise.
46863         * lib/settime.c: Likewise.
46864         * lib/sh-quote.c: Likewise.
46865         * lib/sh-quote.h: Likewise.
46866         * lib/sig2str.c: Likewise.
46867         * lib/sig2str.h: Likewise.
46868         * lib/signal.in.h: Likewise.
46869         * lib/signbitd.c: Likewise.
46870         * lib/signbitf.c: Likewise.
46871         * lib/signbitl.c: Likewise.
46872         * lib/sigprocmask.c: Likewise.
46873         * lib/sincosl.c: Likewise.
46874         * lib/sleep.c: Likewise.
46875         * lib/sprintf.c: Likewise.
46876         * lib/sqrtl.c: Likewise.
46877         * lib/stat-time.h: Likewise.
46878         * lib/stdio--.h: Likewise.
46879         * lib/stdio-safer.h: Likewise.
46880         * lib/stdlib--.h: Likewise.
46881         * lib/stdlib-safer.h: Likewise.
46882         * lib/stdlib.in.h: Likewise.
46883         * lib/stpcpy.c: Likewise.
46884         * lib/stpncpy.c: Likewise.
46885         * lib/strchrnul.c: Likewise.
46886         * lib/strcspn.c: Likewise.
46887         * lib/strerror.c: Likewise.
46888         * lib/strftime.c: Likewise.
46889         * lib/strftime.h: Likewise.
46890         * lib/striconveh.c: Likewise.
46891         * lib/striconveh.h: Likewise.
46892         * lib/striconveha.c: Likewise.
46893         * lib/striconveha.h: Likewise.
46894         * lib/stripslash.c: Likewise.
46895         * lib/strnlen1.c: Likewise.
46896         * lib/strnlen1.h: Likewise.
46897         * lib/strtod.c: Likewise.
46898         * lib/strtoimax.c: Likewise.
46899         * lib/strtok_r.c: Likewise.
46900         * lib/strtol.c: Likewise.
46901         * lib/strtoll.c: Likewise.
46902         * lib/strtoul.c: Likewise.
46903         * lib/strtoull.c: Likewise.
46904         * lib/sysexits.in.h: Likewise.
46905         * lib/tempname.c: Likewise.
46906         * lib/tempname.h: Likewise.
46907         * lib/timespec.h: Likewise.
46908         * lib/tls.c: Likewise.
46909         * lib/tls.h: Likewise.
46910         * lib/tmpdir.c: Likewise.
46911         * lib/tmpdir.h: Likewise.
46912         * lib/tmpfile-safer.c: Likewise.
46913         * lib/tmpfile.c: Likewise.
46914         * lib/trigl.c: Likewise.
46915         * lib/trigl.h: Likewise.
46916         * lib/trim.c: Likewise.
46917         * lib/trim.h: Likewise.
46918         * lib/trunc.c: Likewise.
46919         * lib/truncf.c: Likewise.
46920         * lib/truncl.c: Likewise.
46921         * lib/tsearch.c: Likewise.
46922         * lib/unicodeio.c: Likewise.
46923         * lib/unicodeio.h: Likewise.
46924         * lib/unistd--.h: Likewise.
46925         * lib/unistd-safer.h: Likewise.
46926         * lib/unistdio/ulc-fprintf.c: Likewise.
46927         * lib/unistdio/ulc-vfprintf.c: Likewise.
46928         * lib/unlinkdir.c: Likewise.
46929         * lib/unlinkdir.h: Likewise.
46930         * lib/unlocked-io.h: Likewise.
46931         * lib/unsetenv.c: Likewise.
46932         * lib/userspec.c: Likewise.
46933         * lib/utime.c: Likewise.
46934         * lib/utimecmp.c: Likewise.
46935         * lib/utimecmp.h: Likewise.
46936         * lib/utimens.c: Likewise.
46937         * lib/verify.h: Likewise.
46938         * lib/verror.c: Likewise.
46939         * lib/verror.h: Likewise.
46940         * lib/version-etc-fsf.c: Likewise.
46941         * lib/version-etc.c: Likewise.
46942         * lib/version-etc.h: Likewise.
46943         * lib/vfprintf.c: Likewise.
46944         * lib/vprintf.c: Likewise.
46945         * lib/vsprintf.c: Likewise.
46946         * lib/w32spawn.h: Likewise.
46947         * lib/wait-process.c: Likewise.
46948         * lib/wait-process.h: Likewise.
46949         * lib/wcwidth.c: Likewise.
46950         * lib/write-any-file.c: Likewise.
46951         * lib/xalloc-die.c: Likewise.
46952         * lib/xalloc.h: Likewise.
46953         * lib/xasprintf.c: Likewise.
46954         * lib/xgetcwd.c: Likewise.
46955         * lib/xgetcwd.h: Likewise.
46956         * lib/xgetdomainname.c: Likewise.
46957         * lib/xgetdomainname.h: Likewise.
46958         * lib/xgethostname.c: Likewise.
46959         * lib/xmalloc.c: Likewise.
46960         * lib/xmalloca.c: Likewise.
46961         * lib/xmalloca.h: Likewise.
46962         * lib/xmemcoll.c: Likewise.
46963         * lib/xnanosleep.c: Likewise.
46964         * lib/xreadlink.c: Likewise.
46965         * lib/xreadlink.h: Likewise.
46966         * lib/xsetenv.c: Likewise.
46967         * lib/xsetenv.h: Likewise.
46968         * lib/xstriconv.c: Likewise.
46969         * lib/xstriconv.h: Likewise.
46970         * lib/xstrndup.c: Likewise.
46971         * lib/xstrndup.h: Likewise.
46972         * lib/xstrtod.c: Likewise.
46973         * lib/xstrtod.h: Likewise.
46974         * lib/xstrtol-error.c: Likewise.
46975         * lib/xstrtol.c: Likewise.
46976         * lib/xstrtol.h: Likewise.
46977         * lib/xtime.h: Likewise.
46978         * lib/xvasprintf.c: Likewise.
46979         * lib/xvasprintf.h: Likewise.
46980         * lib/yesno.c: Likewise.
46981         * lib/yesno.h: Likewise.
46982         * posix-modules: Likewise.
46983         * tests/test-alloca-opt.c: Likewise.
46984         * tests/test-arcfour.c: Likewise.
46985         * tests/test-arctwo.c: Likewise.
46986         * tests/test-argmatch.c: Likewise.
46987         * tests/test-argp-2.sh: Likewise.
46988         * tests/test-argp.c: Likewise.
46989         * tests/test-arpa_inet.c: Likewise.
46990         * tests/test-array_list.c: Likewise.
46991         * tests/test-array_oset.c: Likewise.
46992         * tests/test-atexit.c: Likewise.
46993         * tests/test-avltree_list.c: Likewise.
46994         * tests/test-avltree_oset.c: Likewise.
46995         * tests/test-avltreehash_list.c: Likewise.
46996         * tests/test-base64.c: Likewise.
46997         * tests/test-binary-io.c: Likewise.
46998         * tests/test-byteswap.c: Likewise.
46999         * tests/test-c-ctype.c: Likewise.
47000         * tests/test-c-strcasecmp.c: Likewise.
47001         * tests/test-c-strcasestr.c: Likewise.
47002         * tests/test-c-strncasecmp.c: Likewise.
47003         * tests/test-c-strstr.c: Likewise.
47004         * tests/test-canonicalize-lgpl.c: Likewise.
47005         * tests/test-canonicalize.c: Likewise.
47006         * tests/test-carray_list.c: Likewise.
47007         * tests/test-ceilf.c: Likewise.
47008         * tests/test-ceill.c: Likewise.
47009         * tests/test-count-one-bits.c: Likewise.
47010         * tests/test-crc.c: Likewise.
47011         * tests/test-dirname.c: Likewise.
47012         * tests/test-fbufmode.c: Likewise.
47013         * tests/test-fcntl.c: Likewise.
47014         * tests/test-fflush.c: Likewise.
47015         * tests/test-floorf.c: Likewise.
47016         * tests/test-floorl.c: Likewise.
47017         * tests/test-fopen.c: Likewise.
47018         * tests/test-fprintf-posix.c: Likewise.
47019         * tests/test-fprintf-posix.h: Likewise.
47020         * tests/test-fpurge.c: Likewise.
47021         * tests/test-freadable.c: Likewise.
47022         * tests/test-freadahead.c: Likewise.
47023         * tests/test-freading.c: Likewise.
47024         * tests/test-freopen.c: Likewise.
47025         * tests/test-frexp.c: Likewise.
47026         * tests/test-frexpl.c: Likewise.
47027         * tests/test-fseek.c: Likewise.
47028         * tests/test-fseeko.c: Likewise.
47029         * tests/test-fseterr.c: Likewise.
47030         * tests/test-fstrcmp.c: Likewise.
47031         * tests/test-ftell.c: Likewise.
47032         * tests/test-ftello.c: Likewise.
47033         * tests/test-fwritable.c: Likewise.
47034         * tests/test-fwriting.c: Likewise.
47035         * tests/test-getaddrinfo.c: Likewise.
47036         * tests/test-getpass.c: Likewise.
47037         * tests/test-gettimeofday.c: Likewise.
47038         * tests/test-hmac-md5.c: Likewise.
47039         * tests/test-hmac-sha1.c: Likewise.
47040         * tests/test-iconv.c: Likewise.
47041         * tests/test-iconvme.c: Likewise.
47042         * tests/test-inttypes.c: Likewise.
47043         * tests/test-isnan.c: Likewise.
47044         * tests/test-isnanf.c: Likewise.
47045         * tests/test-isnanl-nolibm.c: Likewise.
47046         * tests/test-isnanl.c: Likewise.
47047         * tests/test-isnanl.h: Likewise.
47048         * tests/test-ldexpl.c: Likewise.
47049         * tests/test-linked_list.c: Likewise.
47050         * tests/test-linkedhash_list.c: Likewise.
47051         * tests/test-locale.c: Likewise.
47052         * tests/test-localename.c: Likewise.
47053         * tests/test-lock.c: Likewise.
47054         * tests/test-lseek.c: Likewise.
47055         * tests/test-malloca.c: Likewise.
47056         * tests/test-math.c: Likewise.
47057         * tests/test-mbscasecmp.c: Likewise.
47058         * tests/test-mbscasestr1.c: Likewise.
47059         * tests/test-mbscasestr2.c: Likewise.
47060         * tests/test-mbscasestr3.c: Likewise.
47061         * tests/test-mbscasestr4.c: Likewise.
47062         * tests/test-mbschr.c: Likewise.
47063         * tests/test-mbscspn.c: Likewise.
47064         * tests/test-mbsncasecmp.c: Likewise.
47065         * tests/test-mbspbrk.c: Likewise.
47066         * tests/test-mbspcasecmp.c: Likewise.
47067         * tests/test-mbsrchr.c: Likewise.
47068         * tests/test-mbsspn.c: Likewise.
47069         * tests/test-mbsstr1.c: Likewise.
47070         * tests/test-mbsstr2.c: Likewise.
47071         * tests/test-mbsstr3.c: Likewise.
47072         * tests/test-md5.c: Likewise.
47073         * tests/test-memmem.c: Likewise.
47074         * tests/test-netinet_in.c: Likewise.
47075         * tests/test-open.c: Likewise.
47076         * tests/test-printf-frexp.c: Likewise.
47077         * tests/test-printf-frexpl.c: Likewise.
47078         * tests/test-printf-posix.c: Likewise.
47079         * tests/test-printf-posix.h: Likewise.
47080         * tests/test-rbtree_list.c: Likewise.
47081         * tests/test-rbtree_oset.c: Likewise.
47082         * tests/test-rbtreehash_list.c: Likewise.
47083         * tests/test-read-file.c: Likewise.
47084         * tests/test-rijndael.c: Likewise.
47085         * tests/test-search.c: Likewise.
47086         * tests/test-signbit.c: Likewise.
47087         * tests/test-sleep.c: Likewise.
47088         * tests/test-snprintf-posix.c: Likewise.
47089         * tests/test-snprintf-posix.h: Likewise.
47090         * tests/test-snprintf.c: Likewise.
47091         * tests/test-sprintf-posix.c: Likewise.
47092         * tests/test-sprintf-posix.h: Likewise.
47093         * tests/test-stat-time.c: Likewise.
47094         * tests/test-stdbool.c: Likewise.
47095         * tests/test-stdint.c: Likewise.
47096         * tests/test-stdio.c: Likewise.
47097         * tests/test-stdlib.c: Likewise.
47098         * tests/test-stpncpy.c: Likewise.
47099         * tests/test-strcasestr.c: Likewise.
47100         * tests/test-striconv.c: Likewise.
47101         * tests/test-striconveh.c: Likewise.
47102         * tests/test-striconveha.c: Likewise.
47103         * tests/test-string.c: Likewise.
47104         * tests/test-sys_select.c: Likewise.
47105         * tests/test-sys_socket.c: Likewise.
47106         * tests/test-sys_stat.c: Likewise.
47107         * tests/test-sys_time.c: Likewise.
47108         * tests/test-sysexits.c: Likewise.
47109         * tests/test-time.c: Likewise.
47110         * tests/test-tls.c: Likewise.
47111         * tests/test-trunc.c: Likewise.
47112         * tests/test-truncf.c: Likewise.
47113         * tests/test-truncl.c: Likewise.
47114         * tests/test-unistd.c: Likewise.
47115         * tests/test-vasnprintf-posix.c: Likewise.
47116         * tests/test-vasnprintf-posix2.c: Likewise.
47117         * tests/test-vasnprintf.c: Likewise.
47118         * tests/test-vasprintf-posix.c: Likewise.
47119         * tests/test-vasprintf.c: Likewise.
47120         * tests/test-verify.c: Likewise.
47121         * tests/test-vfprintf-posix.c: Likewise.
47122         * tests/test-vprintf-posix.c: Likewise.
47123         * tests/test-vsnprintf-posix.c: Likewise.
47124         * tests/test-vsnprintf.c: Likewise.
47125         * tests/test-vsprintf-posix.c: Likewise.
47126         * tests/test-wchar.c: Likewise.
47127         * tests/test-wctype.c: Likewise.
47128         * tests/test-wcwidth.c: Likewise.
47129         * tests/test-xstrtol.c: Likewise.
47130         * tests/test-xvasprintf.c: Likewise.
47131         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
47132         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
47133         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
47134         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
47135         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
47136         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
47137         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
47138         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
47139         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
47140         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
47141         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
47142         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
47143         * tests/uniname/test-uninames.c: Likewise.
47144         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
47145         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
47146         * tests/unistdio/test-u16-printf1.h: Likewise.
47147         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
47148         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
47149         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
47150         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
47151         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
47152         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
47153         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
47154         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
47155         * tests/unistdio/test-u32-printf1.h: Likewise.
47156         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
47157         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
47158         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
47159         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
47160         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
47161         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
47162         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
47163         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
47164         * tests/unistdio/test-u8-printf1.h: Likewise.
47165         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
47166         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
47167         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
47168         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
47169         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
47170         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
47171         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
47172         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
47173         * tests/unistdio/test-ulc-printf1.h: Likewise.
47174         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
47175         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
47176         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
47177         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
47178         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
47179         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
47180         * tests/uniwidth/test-u16-strwidth.c: Likewise.
47181         * tests/uniwidth/test-u16-width.c: Likewise.
47182         * tests/uniwidth/test-u32-strwidth.c: Likewise.
47183         * tests/uniwidth/test-u32-width.c: Likewise.
47184         * tests/uniwidth/test-u8-strwidth.c: Likewise.
47185         * tests/uniwidth/test-u8-width.c: Likewise.
47186         * tests/uniwidth/test-uc_width.c: Likewise.
47187         * config/srclist-update: Likewise.
47188         (fixlicense): Update to GPLv3+.
47189
47190         Change copyright notice from LGPLv2.1+ to LGPLv3+.
47191         * tests/test-tsearch.c: Change copyright notice.
47192
47193         Change copyright notice from LGPLv2.0+ to LGPLv3+.
47194         * lib/c-strcaseeq.h: Change copyright notice.
47195         * lib/streq.h: Likewise.
47196         * lib/uniconv.h: Likewise.
47197         * lib/uniconv/u-conv-from-enc.h: Likewise.
47198         * lib/uniconv/u-conv-to-enc.h: Likewise.
47199         * lib/uniconv/u-strconv-from-enc.h: Likewise.
47200         * lib/uniconv/u-strconv-to-enc.h: Likewise.
47201         * lib/uniconv/u16-conv-from-enc.c: Likewise.
47202         * lib/uniconv/u16-conv-to-enc.c: Likewise.
47203         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
47204         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
47205         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
47206         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
47207         * lib/uniconv/u32-conv-from-enc.c: Likewise.
47208         * lib/uniconv/u32-conv-to-enc.c: Likewise.
47209         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
47210         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
47211         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
47212         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
47213         * lib/uniconv/u8-conv-from-enc.c: Likewise.
47214         * lib/uniconv/u8-conv-to-enc.c: Likewise.
47215         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
47216         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
47217         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
47218         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
47219         * lib/uniname.h: Likewise.
47220         * lib/uniname/uniname.c: Likewise.
47221         * lib/unistdio.h: Likewise.
47222         * lib/unistdio/u-asnprintf.h: Likewise.
47223         * lib/unistdio/u-asprintf.h: Likewise.
47224         * lib/unistdio/u-printf-args.c: Likewise.
47225         * lib/unistdio/u-printf-args.h: Likewise.
47226         * lib/unistdio/u-printf-parse.h: Likewise.
47227         * lib/unistdio/u-snprintf.h: Likewise.
47228         * lib/unistdio/u-sprintf.h: Likewise.
47229         * lib/unistdio/u-vasprintf.h: Likewise.
47230         * lib/unistdio/u-vsnprintf.h: Likewise.
47231         * lib/unistdio/u-vsprintf.h: Likewise.
47232         * lib/unistdio/u16-asnprintf.c: Likewise.
47233         * lib/unistdio/u16-asprintf.c: Likewise.
47234         * lib/unistdio/u16-printf-parse.c: Likewise.
47235         * lib/unistdio/u16-snprintf.c: Likewise.
47236         * lib/unistdio/u16-sprintf.c: Likewise.
47237         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
47238         * lib/unistdio/u16-u16-asprintf.c: Likewise.
47239         * lib/unistdio/u16-u16-snprintf.c: Likewise.
47240         * lib/unistdio/u16-u16-sprintf.c: Likewise.
47241         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
47242         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
47243         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
47244         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
47245         * lib/unistdio/u16-vasnprintf.c: Likewise.
47246         * lib/unistdio/u16-vasprintf.c: Likewise.
47247         * lib/unistdio/u16-vsnprintf.c: Likewise.
47248         * lib/unistdio/u16-vsprintf.c: Likewise.
47249         * lib/unistdio/u32-asnprintf.c: Likewise.
47250         * lib/unistdio/u32-asprintf.c: Likewise.
47251         * lib/unistdio/u32-printf-parse.c: Likewise.
47252         * lib/unistdio/u32-snprintf.c: Likewise.
47253         * lib/unistdio/u32-sprintf.c: Likewise.
47254         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
47255         * lib/unistdio/u32-u32-asprintf.c: Likewise.
47256         * lib/unistdio/u32-u32-snprintf.c: Likewise.
47257         * lib/unistdio/u32-u32-sprintf.c: Likewise.
47258         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
47259         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
47260         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
47261         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
47262         * lib/unistdio/u32-vasnprintf.c: Likewise.
47263         * lib/unistdio/u32-vasprintf.c: Likewise.
47264         * lib/unistdio/u32-vsnprintf.c: Likewise.
47265         * lib/unistdio/u32-vsprintf.c: Likewise.
47266         * lib/unistdio/u8-asnprintf.c: Likewise.
47267         * lib/unistdio/u8-asprintf.c: Likewise.
47268         * lib/unistdio/u8-printf-parse.c: Likewise.
47269         * lib/unistdio/u8-snprintf.c: Likewise.
47270         * lib/unistdio/u8-sprintf.c: Likewise.
47271         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
47272         * lib/unistdio/u8-u8-asprintf.c: Likewise.
47273         * lib/unistdio/u8-u8-snprintf.c: Likewise.
47274         * lib/unistdio/u8-u8-sprintf.c: Likewise.
47275         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
47276         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
47277         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
47278         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
47279         * lib/unistdio/u8-vasnprintf.c: Likewise.
47280         * lib/unistdio/u8-vasprintf.c: Likewise.
47281         * lib/unistdio/u8-vsnprintf.c: Likewise.
47282         * lib/unistdio/u8-vsprintf.c: Likewise.
47283         * lib/unistdio/ulc-asnprintf.c: Likewise.
47284         * lib/unistdio/ulc-asprintf.c: Likewise.
47285         * lib/unistdio/ulc-printf-parse.c: Likewise.
47286         * lib/unistdio/ulc-snprintf.c: Likewise.
47287         * lib/unistdio/ulc-sprintf.c: Likewise.
47288         * lib/unistdio/ulc-vasnprintf.c: Likewise.
47289         * lib/unistdio/ulc-vasprintf.c: Likewise.
47290         * lib/unistdio/ulc-vsnprintf.c: Likewise.
47291         * lib/unistdio/ulc-vsprintf.c: Likewise.
47292         * lib/unistr.h: Likewise.
47293         * lib/unistr/u-cpy-alloc.h: Likewise.
47294         * lib/unistr/u-cpy.h: Likewise.
47295         * lib/unistr/u-endswith.h: Likewise.
47296         * lib/unistr/u-move.h: Likewise.
47297         * lib/unistr/u-set.h: Likewise.
47298         * lib/unistr/u-startswith.h: Likewise.
47299         * lib/unistr/u-stpcpy.h: Likewise.
47300         * lib/unistr/u-stpncpy.h: Likewise.
47301         * lib/unistr/u-strcat.h: Likewise.
47302         * lib/unistr/u-strcpy.h: Likewise.
47303         * lib/unistr/u-strcspn.h: Likewise.
47304         * lib/unistr/u-strdup.h: Likewise.
47305         * lib/unistr/u-strlen.h: Likewise.
47306         * lib/unistr/u-strncat.h: Likewise.
47307         * lib/unistr/u-strncpy.h: Likewise.
47308         * lib/unistr/u-strnlen.h: Likewise.
47309         * lib/unistr/u-strpbrk.h: Likewise.
47310         * lib/unistr/u-strspn.h: Likewise.
47311         * lib/unistr/u-strstr.h: Likewise.
47312         * lib/unistr/u-strtok.h: Likewise.
47313         * lib/unistr/u16-check.c: Likewise.
47314         * lib/unistr/u16-chr.c: Likewise.
47315         * lib/unistr/u16-cmp.c: Likewise.
47316         * lib/unistr/u16-cpy-alloc.c: Likewise.
47317         * lib/unistr/u16-cpy.c: Likewise.
47318         * lib/unistr/u16-endswith.c: Likewise.
47319         * lib/unistr/u16-mblen.c: Likewise.
47320         * lib/unistr/u16-mbsnlen.c: Likewise.
47321         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47322         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47323         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47324         * lib/unistr/u16-mbtouc.c: Likewise.
47325         * lib/unistr/u16-mbtoucr.c: Likewise.
47326         * lib/unistr/u16-move.c: Likewise.
47327         * lib/unistr/u16-next.c: Likewise.
47328         * lib/unistr/u16-prev.c: Likewise.
47329         * lib/unistr/u16-set.c: Likewise.
47330         * lib/unistr/u16-startswith.c: Likewise.
47331         * lib/unistr/u16-stpcpy.c: Likewise.
47332         * lib/unistr/u16-stpncpy.c: Likewise.
47333         * lib/unistr/u16-strcat.c: Likewise.
47334         * lib/unistr/u16-strchr.c: Likewise.
47335         * lib/unistr/u16-strcmp.c: Likewise.
47336         * lib/unistr/u16-strcpy.c: Likewise.
47337         * lib/unistr/u16-strcspn.c: Likewise.
47338         * lib/unistr/u16-strdup.c: Likewise.
47339         * lib/unistr/u16-strlen.c: Likewise.
47340         * lib/unistr/u16-strmblen.c: Likewise.
47341         * lib/unistr/u16-strmbtouc.c: Likewise.
47342         * lib/unistr/u16-strncat.c: Likewise.
47343         * lib/unistr/u16-strncmp.c: Likewise.
47344         * lib/unistr/u16-strncpy.c: Likewise.
47345         * lib/unistr/u16-strnlen.c: Likewise.
47346         * lib/unistr/u16-strpbrk.c: Likewise.
47347         * lib/unistr/u16-strrchr.c: Likewise.
47348         * lib/unistr/u16-strspn.c: Likewise.
47349         * lib/unistr/u16-strstr.c: Likewise.
47350         * lib/unistr/u16-strtok.c: Likewise.
47351         * lib/unistr/u16-to-u32.c: Likewise.
47352         * lib/unistr/u16-to-u8.c: Likewise.
47353         * lib/unistr/u16-uctomb-aux.c: Likewise.
47354         * lib/unistr/u16-uctomb.c: Likewise.
47355         * lib/unistr/u32-check.c: Likewise.
47356         * lib/unistr/u32-chr.c: Likewise.
47357         * lib/unistr/u32-cmp.c: Likewise.
47358         * lib/unistr/u32-cpy-alloc.c: Likewise.
47359         * lib/unistr/u32-cpy.c: Likewise.
47360         * lib/unistr/u32-endswith.c: Likewise.
47361         * lib/unistr/u32-mblen.c: Likewise.
47362         * lib/unistr/u32-mbsnlen.c: Likewise.
47363         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47364         * lib/unistr/u32-mbtouc.c: Likewise.
47365         * lib/unistr/u32-mbtoucr.c: Likewise.
47366         * lib/unistr/u32-move.c: Likewise.
47367         * lib/unistr/u32-next.c: Likewise.
47368         * lib/unistr/u32-prev.c: Likewise.
47369         * lib/unistr/u32-set.c: Likewise.
47370         * lib/unistr/u32-startswith.c: Likewise.
47371         * lib/unistr/u32-stpcpy.c: Likewise.
47372         * lib/unistr/u32-stpncpy.c: Likewise.
47373         * lib/unistr/u32-strcat.c: Likewise.
47374         * lib/unistr/u32-strchr.c: Likewise.
47375         * lib/unistr/u32-strcmp.c: Likewise.
47376         * lib/unistr/u32-strcpy.c: Likewise.
47377         * lib/unistr/u32-strcspn.c: Likewise.
47378         * lib/unistr/u32-strdup.c: Likewise.
47379         * lib/unistr/u32-strlen.c: Likewise.
47380         * lib/unistr/u32-strmblen.c: Likewise.
47381         * lib/unistr/u32-strmbtouc.c: Likewise.
47382         * lib/unistr/u32-strncat.c: Likewise.
47383         * lib/unistr/u32-strncmp.c: Likewise.
47384         * lib/unistr/u32-strncpy.c: Likewise.
47385         * lib/unistr/u32-strnlen.c: Likewise.
47386         * lib/unistr/u32-strpbrk.c: Likewise.
47387         * lib/unistr/u32-strrchr.c: Likewise.
47388         * lib/unistr/u32-strspn.c: Likewise.
47389         * lib/unistr/u32-strstr.c: Likewise.
47390         * lib/unistr/u32-strtok.c: Likewise.
47391         * lib/unistr/u32-to-u16.c: Likewise.
47392         * lib/unistr/u32-to-u8.c: Likewise.
47393         * lib/unistr/u32-uctomb.c: Likewise.
47394         * lib/unistr/u8-check.c: Likewise.
47395         * lib/unistr/u8-chr.c: Likewise.
47396         * lib/unistr/u8-cmp.c: Likewise.
47397         * lib/unistr/u8-cpy-alloc.c: Likewise.
47398         * lib/unistr/u8-cpy.c: Likewise.
47399         * lib/unistr/u8-endswith.c: Likewise.
47400         * lib/unistr/u8-mblen.c: Likewise.
47401         * lib/unistr/u8-mbsnlen.c: Likewise.
47402         * lib/unistr/u8-mbtouc-aux.c: Likewise.
47403         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47404         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47405         * lib/unistr/u8-mbtouc.c: Likewise.
47406         * lib/unistr/u8-mbtoucr.c: Likewise.
47407         * lib/unistr/u8-move.c: Likewise.
47408         * lib/unistr/u8-next.c: Likewise.
47409         * lib/unistr/u8-prev.c: Likewise.
47410         * lib/unistr/u8-set.c: Likewise.
47411         * lib/unistr/u8-startswith.c: Likewise.
47412         * lib/unistr/u8-stpcpy.c: Likewise.
47413         * lib/unistr/u8-stpncpy.c: Likewise.
47414         * lib/unistr/u8-strcat.c: Likewise.
47415         * lib/unistr/u8-strchr.c: Likewise.
47416         * lib/unistr/u8-strcmp.c: Likewise.
47417         * lib/unistr/u8-strcpy.c: Likewise.
47418         * lib/unistr/u8-strcspn.c: Likewise.
47419         * lib/unistr/u8-strdup.c: Likewise.
47420         * lib/unistr/u8-strlen.c: Likewise.
47421         * lib/unistr/u8-strmblen.c: Likewise.
47422         * lib/unistr/u8-strmbtouc.c: Likewise.
47423         * lib/unistr/u8-strncat.c: Likewise.
47424         * lib/unistr/u8-strncmp.c: Likewise.
47425         * lib/unistr/u8-strncpy.c: Likewise.
47426         * lib/unistr/u8-strnlen.c: Likewise.
47427         * lib/unistr/u8-strpbrk.c: Likewise.
47428         * lib/unistr/u8-strrchr.c: Likewise.
47429         * lib/unistr/u8-strspn.c: Likewise.
47430         * lib/unistr/u8-strstr.c: Likewise.
47431         * lib/unistr/u8-strtok.c: Likewise.
47432         * lib/unistr/u8-to-u16.c: Likewise.
47433         * lib/unistr/u8-to-u32.c: Likewise.
47434         * lib/unistr/u8-uctomb-aux.c: Likewise.
47435         * lib/unistr/u8-uctomb.c: Likewise.
47436         * lib/unitypes.h: Likewise.
47437         * lib/uniwidth.h: Likewise.
47438         * lib/uniwidth/cjk.h: Likewise.
47439         * lib/uniwidth/u16-strwidth.c: Likewise.
47440         * lib/uniwidth/u16-width.c: Likewise.
47441         * lib/uniwidth/u32-strwidth.c: Likewise.
47442         * lib/uniwidth/u32-width.c: Likewise.
47443         * lib/uniwidth/u8-strwidth.c: Likewise.
47444         * lib/uniwidth/u8-width.c: Likewise.
47445         * lib/uniwidth/width.c: Likewise.
47446
47447 2007-10-07  Bruno Haible  <bruno@clisp.org>
47448
47449         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
47450         The file is still under LGPL (see modules/inttypes).
47451
47452 2007-10-06  Bruno Haible  <bruno@clisp.org>
47453
47454         * modules/trunc (Dependencies): Add 'extensions'.
47455         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
47456         Reported by Ben Pfaff <blp@gnu.org>.
47457
47458 2007-10-06  Bruno Haible  <bruno@clisp.org>
47459
47460         * modules/freopen-tests: New file.
47461         * tests/test-freopen.c: New file.
47462
47463         * modules/fopen-tests: New file.
47464         * tests/test-fopen.c: New file.
47465
47466         * modules/fopen: New file.
47467         * lib/fopen.c: New file.
47468         * m4/fopen.m4: New file.
47469         * modules/freopen: New file.
47470         * lib/freopen.c: New file.
47471         * m4/freopen.m4: New file.
47472         * lib/stdio.in.h (fopen, freopen): New declarations.
47473         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
47474         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47475         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
47476         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
47477         * doc/functions/fopen.texi: Mention the 'fopen' module.
47478         * doc/functions/freopen.texi: Mention the 'freopen' module.
47479
47480 2007-10-06  Bruno Haible  <bruno@clisp.org>
47481
47482         * modules/open-tests: New file.
47483         * tests/test-open.c: New file.
47484
47485         * modules/open: New file.
47486         * lib/open.c: New file.
47487         * m4/open.m4: New file.
47488         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
47489         lib/open.c does.
47490         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
47491         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
47492         macros.
47493         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
47494         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
47495         REPLACE_OPEN.
47496         * doc/functions/open.texi: Mention the 'open' module.
47497
47498 2007-10-04  Bruno Haible  <bruno@clisp.org>
47499
47500         * modules/ceill-tests: New file.
47501         * tests/test-ceill.c: New file.
47502
47503         * modules/ceill: New file.
47504         * lib/ceill.c: Replace entire file.
47505         * m4/ceill.m4: New file.
47506         * lib/math.in.h (ceill): Replace declaration.
47507         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
47508         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
47509         * doc/functions/ceill.texi: Mention the 'ceill' module.
47510         * modules/mathl (Files): Remove lib/ceill.c.
47511         (Depends-on): Add ceill.
47512
47513 2007-10-04  Bruno Haible  <bruno@clisp.org>
47514
47515         * modules/ceilf-tests: New file.
47516         * tests/test-ceilf.c: New file.
47517
47518         * modules/ceilf: New file.
47519         * lib/ceil.c: New file.
47520         * lib/ceilf.c: New file.
47521         * m4/ceilf.m4: New file.
47522         * lib/math.in.h (ceilf): New declaration.
47523         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
47524         HAVE_DECL_CEILF.
47525         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
47526         HAVE_DECL_CEILF.
47527         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
47528
47529 2007-10-04  Bruno Haible  <bruno@clisp.org>
47530
47531         * modules/floorl-tests: New file.
47532         * tests/test-floorl.c: New file.
47533
47534         * modules/floorl: New file.
47535         * lib/floorl.c: Replace entire file.
47536         * m4/floorl.m4: New file.
47537         * lib/math.in.h (floorl): Replace declaration.
47538         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
47539         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
47540         * doc/functions/floorl.texi: Mention the 'floorl' module.
47541         * modules/mathl (Files): Remove lib/floorl.c.
47542         (Depends-on): Add floorl.
47543
47544 2007-10-04  Bruno Haible  <bruno@clisp.org>
47545
47546         * modules/floorf-tests: New file.
47547         * tests/test-floorf.c: New file.
47548
47549         * modules/floorf: New file.
47550         * lib/floor.c: New file.
47551         * lib/floorf.c: New file.
47552         * m4/floorf.m4: New file.
47553         * lib/math.in.h (floorf): New declaration.
47554         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
47555         HAVE_DECL_FLOORF.
47556         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
47557         HAVE_DECL_FLOORF.
47558         * doc/functions/floorf.texi: Mention the 'floorf' module.
47559
47560 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
47561             Bruno Haible  <bruno@clisp.org>
47562
47563         Advertise for the Git server instead of the CVS server.
47564         * doc/gnulib-intro.texi (Steady Development): Mention the Git
47565         repository instead of the CVS one.
47566         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
47567         about all VCS systems generically.
47568         * doc/gnulib.texi (Introduction): Capitalize `Git'.
47569
47570 2007-10-04  Bruno Haible  <bruno@clisp.org>
47571
47572         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
47573         means.
47574         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
47575
47576 2007-10-04  Bruno Haible  <bruno@clisp.org>
47577
47578         * modules/truncl-tests: New file.
47579         * tests/test-truncl.c: New file.
47580
47581         * modules/truncl: New file.
47582         * lib/truncl.c: New file.
47583         * m4/truncl.m4: New file.
47584         * lib/math.in.h (truncl): New declaration.
47585         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
47586         HAVE_DECL_TRUNCL.
47587         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
47588         HAVE_DECL_TRUNCL.
47589         * doc/functions/truncl.texi: Mention the 'truncl' module.
47590
47591 2007-10-04  Bruno Haible  <bruno@clisp.org>
47592
47593         * modules/truncf-tests: New file.
47594         * tests/test-truncf.c: New file.
47595
47596         * modules/truncf: New file.
47597         * lib/trunc.c: Make paramerizable through USE_* macros.
47598         * lib/truncf.c: New file.
47599         * m4/truncf.m4: New file.
47600         * lib/math.in.h (truncf): New declaration.
47601         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
47602         HAVE_DECL_TRUNCF.
47603         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
47604         HAVE_DECL_TRUNCF.
47605         * doc/functions/truncf.texi: Mention the 'truncf' module.
47606
47607 2007-10-03  Bruno Haible  <bruno@clisp.org>
47608
47609         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47610         augmentation also for tests modules.
47611         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
47612         * modules/atexit-tests (Makefile.am): Likewise.
47613         * modules/binary-io-tests (Makefile.am): Likewise.
47614         * modules/c-strcase-tests (Makefile.am): Likewise.
47615         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
47616         * modules/canonicalize-tests (Makefile.am): Likewise.
47617         * modules/closein-tests (Makefile.am): Likewise.
47618         * modules/fprintf-posix-tests (Makefile.am): Likewise.
47619         * modules/freadahead-tests (Makefile.am): Likewise.
47620         * modules/fseek-tests (Makefile.am): Likewise.
47621         * modules/fseeko-tests (Makefile.am): Likewise.
47622         * modules/ftell-tests (Makefile.am): Likewise.
47623         * modules/ftello-tests (Makefile.am): Likewise.
47624         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
47625         * modules/isnanl-tests (Makefile.am): Likewise.
47626         * modules/lseek-tests (Makefile.am): Likewise.
47627         * modules/mbscasecmp-tests (Makefile.am): Likewise.
47628         * modules/mbscasestr-tests (Makefile.am): Likewise.
47629         * modules/mbschr-tests (Makefile.am): Likewise.
47630         * modules/mbscspn-tests (Makefile.am): Likewise.
47631         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
47632         * modules/mbspbrk-tests (Makefile.am): Likewise.
47633         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
47634         * modules/mbsrchr-tests (Makefile.am): Likewise.
47635         * modules/mbsspn-tests (Makefile.am): Likewise.
47636         * modules/mbsstr-tests (Makefile.am): Likewise.
47637         * modules/printf-posix-tests (Makefile.am): Likewise.
47638         * modules/snprintf-posix-tests (Makefile.am): Likewise.
47639         * modules/sprintf-posix-tests (Makefile.am): Likewise.
47640         * modules/tsearch-tests (Makefile.am): Likewise.
47641         * modules/uniname/uniname-tests (Makefile.am): Likewise.
47642         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
47643         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
47644         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
47645         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
47646         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
47647         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
47648         * modules/vprintf-posix-tests (Makefile.am): Likewise.
47649         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
47650         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
47651         * modules/xstrtoimax-tests (Makefile.am): Likewise.
47652         * modules/xstrtol-tests (Makefile.am): Likewise.
47653         * modules/xstrtoumax-tests (Makefile.am): Likewise.
47654         * modules/yesno-tests (Makefile.am): Likewise.
47655
47656 2007-10-03  Bruno Haible  <bruno@clisp.org>
47657
47658         * modules/trunc-tests: New file.
47659         * tests/test-trunc.c: New file.
47660
47661         * modules/trunc: New file.
47662         * lib/trunc.c: New file.
47663         * m4/trunc.m4: New file.
47664         * lib/math.in.h (trunc): New declaration.
47665         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
47666         HAVE_DECL_TRUNC.
47667         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
47668         HAVE_DECL_TRUNC.
47669         * doc/functions/trunc.texi: Mention the 'trunc' module.
47670
47671 2007-10-03  Bruno Haible  <bruno@clisp.org>
47672
47673         * tests/test-fpending.c: New file, mostly copied
47674         from coreutils/lib/t-fpending.c.
47675         * modules/fpending-tests: New file.
47676
47677 2007-10-03  Bruno Haible  <bruno@clisp.org>
47678
47679         Port the stdio extensions to QNX (untested).
47680         * lib/fseterr.c (fseterr): Add support for QNX.
47681         * lib/fbufmode.c (fbufmode): Likewise.
47682         * lib/freadable.c (freadable): Likewise.
47683         * lib/fwritable.c (fwritable): Likewise.
47684         * lib/freading.c (freading): Likewise.
47685         * lib/fwriting.c (fwriting): Likewise.
47686         * lib/freadahead.c (freadahed): Likewise.
47687         * lib/fpurge.c (fpurge): Likewise.
47688         * lib/fseeko.c (rpl_fseeko): Likewise.
47689
47690 2007-10-03  Bruno Haible  <bruno@clisp.org>
47691             Jim Meyering  <jim@meyering.net>
47692             Eric Blake  <ebb9@byu.net>
47693
47694         * doc/relocatable.texi: Use @command instead of @program.
47695
47696 2007-10-02  Jim Meyering  <jim@meyering.net>
47697
47698         Perform one more "_.h" -> ".in.h" substitution.
47699         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
47700         instead of unistd_.h here, too.
47701
47702 2007-10-01  Bruno Haible  <bruno@clisp.org>
47703
47704         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
47705         Needed for the alloca-opt module.
47706
47707 2007-09-30  Bruno Haible  <bruno@clisp.org>
47708
47709         * lib/alloca.in.h: Renamed from lib/alloca_.h.
47710         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
47711         alloca_.h.
47712         * lib/argz.in.h: Renamed from lib/argz_.h.
47713         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
47714         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
47715         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
47716         byteswap_.h.
47717         * lib/dirent.in.h: Renamed from lib/dirent_.h.
47718         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
47719         dirent_.h.
47720         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
47721         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
47722         fcntl_.h.
47723         * lib/float.in.h: Renamed from lib/float_.h.
47724         * modules/float (Files, Makefile.am): Use float.in.h instead of
47725         float_.h.
47726         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
47727         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
47728         fnmatch_.h.
47729         * lib/getopt.in.h: Renamed from lib/getopt_.h.
47730         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
47731         getopt_.h.
47732         * lib/glob.in.h: Renamed from lib/glob_.h.
47733         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
47734         * lib/iconv.in.h: Renamed from lib/iconv_.h.
47735         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
47736         iconv_.h.
47737         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
47738         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
47739         inttypes_.h.
47740         * lib/locale.in.h: Renamed from lib/locale_.h.
47741         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
47742         locale_.h.
47743         * lib/math.in.h: Renamed from lib/math_.h.
47744         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
47745         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
47746         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
47747         of netinet_in_.h. Add dependency.
47748         * lib/poll.in.h: Renamed from lib/poll_.h.
47749         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
47750         * lib/search.in.h: Renamed from lib/search_.h.
47751         * modules/search (Files, Makefile.am): Use search.in.h instead of
47752         search_.h.
47753         * lib/signal.in.h: Renamed from lib/signal_.h.
47754         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
47755         _signal.h.
47756         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
47757         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
47758         stdbool_.h.
47759         * lib/stdint.in.h: Renamed from lib/stdint_.h.
47760         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
47761         stdint_.h.
47762         * lib/stdio.in.h: Renamed from lib/stdio_.h.
47763         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
47764         stdio_.h.
47765         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
47766         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
47767         stdlib_.h.
47768         * lib/string.in.h: Renamed from lib/string_.h.
47769         * modules/string (Files, Makefile.am): Use string.in.h instead of
47770         string_.h.
47771         * doc/gnulib-tool.texi (Initial import): Update.
47772         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
47773         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
47774         of sys_select_.h. Add dependency.
47775         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
47776         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
47777         of sys_socket_.h.
47778         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
47779         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
47780         sys_stat_.h.
47781         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
47782         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
47783         sys_time_.h.
47784         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
47785         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
47786         sysexits_.h.
47787         * lib/time.in.h: Renamed from lib/time_.h.
47788         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
47789         * lib/unistd.in.h: Renamed from lib/unistd_.h.
47790         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
47791         unistd_.h.
47792         * lib/wchar.in.h: Renamed from lib/wchar_.h.
47793         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
47794         wchar_.h.
47795         * lib/wctype.in.h: Renamed from lib/wctype_.h.
47796         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
47797         wctype_.h.
47798         * build-aux/bootstrap (slurp): Update.
47799         * lib/.cppi-disable: Update.
47800
47801 2007-09-30  Bruno Haible  <bruno@clisp.org>
47802
47803         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
47804         Needed on BeOS.
47805
47806 2007-09-30  Bruno Haible  <bruno@clisp.org>
47807
47808         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
47809
47810 2007-09-29  Bruno Haible  <bruno@clisp.org>
47811
47812         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
47813
47814 2007-09-29  Bruno Haible  <bruno@clisp.org>
47815
47816         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
47817         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
47818         * build-aux/install-reloc: Compile also areadlink.c.
47819         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
47820
47821 2007-09-29  Bruno Haible  <bruno@clisp.org>
47822
47823         * gnulib-tool (func_emit_initmacro_done): Indentation.
47824
47825 2007-09-29  Bruno Haible  <bruno@clisp.org>
47826
47827         * README: Add CVS checkout update instructions.
47828         Info from Bob Proulx <bob@proulx.com>.
47829
47830 2007-09-28  Eric Blake  <ebb9@byu.net>
47831
47832         Provide move-if-change.
47833         * build-aux/move-if-change: New file, based on best practice
47834         rather than any canonical upstream location.
47835
47836 2007-09-28  Jim Meyering  <jim@meyering.net>
47837
47838         Fix canonicalize loop-detection corner case.
47839         Do not attempt to stat the symlink values stored via seen_triple.
47840         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
47841         on linux-2.6.18, (but not 2.6.22).
47842         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
47843         triple_compare.  The former compares dev,ino,filename, while the latter
47844         would actually stat dirname(filename) when dev and ino were equal.
47845         * lib/hash-triple.c: Install <string.h>.
47846         (STREQ): Define.
47847         (triple_compare_ino_str): New function.
47848         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
47849
47850 2007-09-28  Eric Blake  <ebb9@byu.net>
47851
47852         Enforce that AC_REPLACE_FUNCS files exist.
47853         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
47854         override check for typos.
47855
47856         Fix test-closein on Solaris 10.
47857         * tests/test-closein.c (main): Don't assume stdin can be inherited
47858         closed on all systems.
47859         * tests/test-closein.sh: Likewise.
47860         Reported by Piotr Tarnowski.
47861
47862 2007-09-28  Jim Meyering  <jim@meyering.net>
47863
47864         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
47865
47866 2007-09-27  Jim Meyering  <jim@meyering.net>
47867
47868         canonicalize: Avoid a false-positive cycle failure.
47869         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
47870         Sort.  Remove cycle-check.
47871         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
47872         not cycle-check.h.
47873         (seen_triple): New function.
47874         (canonicalize_filename_mode): Use it instead of cycle-check.
47875         * tests/test-canonicalize.c: Add a test for this bug.
47876         * tests/test-canonicalize.sh: Set up and run the test.
47877
47878         New module, file-set, from coreutils.
47879         * modules/file-set: Define it.
47880         * lib/file-set.c, lib/file-set.h: Implement.
47881
47882         New module, hash-triple, from coreutils.
47883         * modules/hash-triple: Define it.
47884         * lib/hash-triple.c, lib/hash-triple.h: Implement.
47885
47886 2007-09-25  Eric Blake  <ebb9@byu.net>
47887
47888         Fix strerror on Interix.
47889         * lib/string_.h (strerror): Declare replacement.
47890         * doc/functions/strerror.texi (strerror): Document the Interix
47891         shortcoming.
47892         * modules/string (Makefile.am): Support new hooks.
47893         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
47894         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
47895         gl_FUNC_STRERROR_SEPARATE.
47896         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
47897         * lib/strerror.c (rpl_strerror): Provide replacement.
47898         * modules/strerror (Depends-on): Add string.
47899         (configure.ac): Detect use of module.
47900         * tests/test-strerror.c: New file.
47901         * modules/strerror-tests: New test module.
47902         * modules/argp (Depends-on): Add strerror.
47903         * modules/error (Depends-on): Likewise.
47904         Reported by Martin Koeppe.
47905
47906 2007-09-24  Bruno Haible  <bruno@clisp.org>
47907
47908         * README: Update git instructions.
47909
47910 2007-09-24  Eric Blake  <ebb9@byu.net>
47911
47912         Revert fpending breakage from 2007-09-08.
47913         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
47914         __fpending.c.
47915
47916 2007-09-24  Jim Meyering  <jim@meyering.net>
47917
47918         filenamecat.c: Add a test.
47919         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
47920         showing how the function works when DIR is the empty string.
47921
47922 2007-09-21  Simon Josefsson  <simon@josefsson.org>
47923
47924         * tests/test-canonicalize.sh: Turn on executable bit.
47925
47926 2007-09-19  Eric Blake  <ebb9@byu.net>
47927
47928         * README: Update CVS instructions.
47929
47930 2007-09-18  Bruno Haible  <bruno@clisp.org>
47931
47932         * modules/areadlink: New file.
47933         * lib/areadlink.h (areadlink): New declaration.
47934         * lib/areadlink.c: New file, based on lib/xreadlink.c.
47935
47936 2007-09-17  Jim Meyering  <jim@meyering.net>
47937
47938         * lib/savewd.c (ESTALE) [!defined]: Define.
47939         Reported to be required on Interix by Martin Koeppe.
47940
47941 2007-09-17  Bruno Haible  <bruno@clisp.org>
47942
47943         * gnulib-tool (func_version): Use $version.
47944
47945 2007-09-16  Bruno Haible  <bruno@clisp.org>
47946
47947         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
47948         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
47949         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
47950         Reported by Greg Schafer <gschafer@zip.com.au>.
47951
47952 2007-09-15  Bruno Haible  <bruno@clisp.org>
47953
47954         * gnulib-tool (sed): Try a little harder to make bash understand the
47955         alias.
47956         Reported by Bruce Korb <bruce.korb@gmail.com>.
47957
47958 2007-09-13  Eric Blake  <ebb9@byu.net>
47959
47960         * ChangeLog: Remove conflict markers.
47961
47962 2007-09-13  Simon Josefsson  <simon@josefsson.org>
47963
47964         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
47965         Reported by Bruno Haible <bruno@clisp.org>.
47966
47967 2007-09-12  Bruno Haible  <bruno@clisp.org>
47968
47969         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
47970         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
47971         is not defined.
47972
47973 2007-09-12  Eric Blake  <ebb9@byu.net>
47974
47975         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
47976         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
47977         Autoconf definition.
47978         * modules/euidaccess (Depends-on): Add extensions, for
47979         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
47980         * modules/fnmatch (Depends-on): Likewise.
47981         * modules/getaddrinfo (Depends-on): Likewise.
47982         * modules/getdelim (Depends-on): Likewise.
47983         * modules/getline (Depends-on): Likewise.
47984         * modules/getsubopt (Depends-on): Likewise.
47985         * modules/gettext (Depends-on): Likewise.
47986         * modules/group-member (Depends-on): Likewise.
47987         * modules/mbchar (Depends-on): Likewise.
47988         * modules/memmem (Depends-on): Likewise.
47989         * modules/mempcpy (Depends-on): Likewise.
47990         * modules/memrchr (Depends-on): Likewise.
47991         * modules/pagealign_alloc (Depends-on): Likewise.
47992         * modules/readutmp (Depends-on): Likewise.
47993         * modules/stpcpy (Depends-on): Likewise.
47994         * modules/stpncpy (Depends-on): Likewise.
47995         * modules/strchrnul (Depends-on): Likewise.
47996         * modules/strndup (Depends-on): Likewise.
47997         * modules/strsep (Depends-on): Likewise.
47998         * modules/strverscmp (Depends-on): Likewise.
47999         * modules/vasprintf (Depends-on): Likewise.
48000         * modules/wcwidth (Depends-on): Likewise.
48001         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
48002         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
48003         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
48004         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
48005         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
48006         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48007         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
48008         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
48009         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
48010         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
48011         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
48012         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
48013         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
48014         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
48015         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
48016         * m4/readutmp.m4 (gl_READUTMP): Likewise.
48017         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48018         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
48019         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
48020         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
48021         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
48022         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
48023         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
48024         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
48025         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
48026         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48027         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
48028         so that lock.m4 can be used in gettext without extensions module.
48029
48030 2007-09-11  Bruno Haible  <bruno@clisp.org>
48031
48032         * m4/isc-posix.m4: Remove file.
48033         Suggested by Eric Blake.
48034
48035 2007-09-11  Eric Blake  <ebb9@byu.net>
48036
48037         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
48038
48039 2007-09-10  Bruno Haible  <bruno@clisp.org>
48040
48041         * posix-modules: Fix typo in error message.
48042         Reported by Matt <mkraai@beckman.com>.
48043
48044 2007-09-09  Bruno Haible  <bruno@clisp.org>
48045
48046         * doc/functions/getdelim.texi: Update list of platforms lacking the
48047         function.
48048         * doc/functions/getline.texi: Likewise.
48049
48050 2007-09-09  Jim Meyering  <jim@meyering.net>
48051
48052         * lib/hash.c (hash_initialize): Detect calloc failure.
48053         Reported by Bruno Haible.
48054
48055 2007-09-09  Bruno Haible  <bruno@clisp.org>
48056
48057         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
48058         malloc or realloc fails.
48059
48060 2007-09-09  Bruno Haible  <bruno@clisp.org>
48061
48062         * modules/getcwd (Depends-on): Add malloc-posix.
48063         * modules/glob (Depends-on): Likewise.
48064         * modules/putenv (Depends-on): Likewise.
48065         * modules/strdup (Depends-on): Likewise.
48066         * modules/getdelim (Depends-on): Add realloc-posix.
48067         * modules/read-file (Depends-on): Likewise.
48068
48069 2007-09-09  Bruno Haible  <bruno@clisp.org>
48070
48071         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
48072         (gl_FUNC_MALLOC_POSIX): Require it.
48073         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
48074         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
48075         * modules/realloc (Files): Add m4/malloc.m4.
48076         * modules/calloc (Files): Likewise.
48077
48078 2007-09-09  Bruno Haible  <bruno@clisp.org>
48079
48080         * modules/malloc-posix: New file.
48081         * modules/malloc (Depends-on): Add malloc-posix.
48082         * lib/malloc.c: Include errno.h.
48083         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
48084         and a POSIX-compatible malloc into a single function. Set ENOMEM
48085         when returning NULL.
48086         * m4/malloc.m4: New file.
48087         * doc/functions/malloc.texi: Mention the malloc-posix module.
48088         * lib/stdlib_.h (malloc): New declaration.
48089         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48090         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
48091         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
48092         and HAVE_MALLOC_POSIX.
48093
48094 2007-09-09  Bruno Haible  <bruno@clisp.org>
48095
48096         * modules/realloc-posix: New file.
48097         * modules/realloc (Depends-on): Add realloc-posix.
48098         * lib/realloc.c: Include errno.h.
48099         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
48100         and a POSIX-compatible realloc into a single function. Set ENOMEM
48101         when returning NULL.
48102         * m4/realloc.m4: New file.
48103         * doc/functions/realloc.texi: Mention the realloc-posix module.
48104         * lib/stdlib_.h (realloc): New declaration.
48105         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48106         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
48107         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
48108         and HAVE_REALLOC_POSIX.
48109
48110 2007-09-09  Bruno Haible  <bruno@clisp.org>
48111
48112         * modules/calloc-posix: New file.
48113         * modules/calloc (Depends-on): Add calloc-posix.
48114         * lib/calloc.c: Include errno.h.
48115         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
48116         and a POSIX-compatible calloc into a single function. Set ENOMEM
48117         when returning NULL.
48118         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
48119         * doc/functions/calloc.texi: Mention the calloc-posix module.
48120         * lib/stdlib_.h (calloc): New declaration.
48121         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48122         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
48123         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
48124         and HAVE_CALLOC_POSIX.
48125
48126 2007-09-09  Bruno Haible  <bruno@clisp.org>
48127
48128         Allow for modules to show an arbitrary notice.
48129         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
48130         * gnulib-tool: New option --extract-notice.
48131         (func_usage): Document it.
48132         (sed_extract_prog): Update.
48133         (func_get_notice): New function.
48134         (func_modules_notice): New function.
48135         (func_import, func_create_testdir): Invoke it.
48136         Suggested by Jim Meyering.
48137
48138 2007-09-09  Bruno Haible  <bruno@clisp.org>
48139
48140         * gnulib-tool: New options --verbose, --quiet.
48141         (func_usage): Document them.
48142         (verbose): New variable.
48143         (func_execute_command): New function.
48144         (func_import): Don't show the module list and the file list if
48145         $verbose < 0.
48146         (func_create_testdir): Likewise. Use func_execute_command.
48147         (func_create_megatestdir): Use func_execute_command.
48148
48149 2007-09-08  Bruno Haible  <bruno@clisp.org>
48150
48151         * gnulib-tool (func_import): Prefer rsync over wget when available,
48152         for fetching the PO files.
48153
48154 2007-09-08  Bruno Haible  <bruno@clisp.org>
48155
48156         * posix-modules: New file. Portions copied from gnulib-tool.
48157         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
48158
48159 2007-09-08  Jim Meyering  <jim@meyering.net>
48160
48161         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
48162         * lib/fpending.h: Rename from __fpending.h.
48163         * lib/fpending.c: Rename from __fpending.c.
48164         Include "fpending.h", not "__fpending.h".
48165         * lib/__fpending.h, lib/__fpending.c: Remove files.
48166         * modules/fpending (Files): Reflect new file names.
48167         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
48168
48169 2007-09-08  Bruno Haible  <bruno@clisp.org>
48170
48171         * m4/inttypes-h.m4: Remove stub file.
48172
48173 2007-09-07  Simon Josefsson  <simon@josefsson.org>
48174
48175         * doc/headers/stdint.texi: Discuss #include_next issue.
48176
48177 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
48178
48179         * build-aux/bootstrap: Remove obsolete comment about wget --help.
48180
48181 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48182
48183         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
48184         in variable name.
48185
48186 2007-09-03  Jim Meyering  <jim@meyering.net>
48187
48188         New module: git-version-gen.
48189         * modules/git-version-gen: New file.
48190
48191         Import changes from coreutils for bootstrap script.
48192
48193         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
48194
48195         bootstrap: uses rsync to download the .po files
48196         * build-aux/bootstrap (po_download_command_format): New global.
48197         (download_po_files): Use rsync.
48198         (update_po_files): Don't remove .po files after download,
48199         so future rsync runs can take advantage of the copies.
48200
48201         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
48202
48203         Solve the unnecessary-.po-file-regeneration problem once and for all.
48204         * build-aux/bootstrap (download_po_files): New function, renamed from
48205         get_translations.  Now, downloads, but doesn't update LINGUAS.
48206         (update_po_files): New function.
48207
48208         bootstrap: Ignore more.
48209         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
48210         uniwidth to e.g., lib/.gitignore.
48211         (slurp): Handle the sys_stat_.h -> sys mapping, too.
48212
48213         * build-aux/bootstrap: New setting: vc_ignore.
48214         (insert_sorted_if_absent): Create $file if absent.
48215         Adapt to new, possibly empty, list: $vc_ignore.
48216
48217         bootstrap: generate more ignorable names
48218         * build-aux/bootstrap (slurp): When generating ignorable names,
48219         also map .sin to .sed, .gperf to .c, and .y to .c.
48220
48221 2007-09-03  Jim Meyering  <jim@meyering.net>
48222
48223         * build-aux/git-version-gen: New file, from coreutils.  For details, see
48224         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
48225
48226 2007-09-02  Bruno Haible  <bruno@clisp.org>
48227
48228         Fix mis-recognition of 'mcs' on QNX 6.
48229         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
48230         output contains the string "Mono".
48231         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
48232         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
48233
48234 2007-09-01  Bruno Haible  <bruno@clisp.org>
48235
48236         Fix collision between uniwidth/* and linebreak modules.
48237         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
48238         u32_width): Remove declarations.
48239         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
48240         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
48241         streq3, streq2, streq1, streq0): Remove functions.
48242         (STREQ): Remove macro.
48243         (is_cjk_encoding): Remove function.
48244         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
48245         (uc_width, u8_width, u16_width, u32_width): Remove functions.
48246         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
48247         * NEWS: Document the change.
48248
48249 2007-09-01  Bruno Haible  <bruno@clisp.org>
48250
48251         * lib/streq.h: Add double-inclusion guard.
48252
48253 2007-09-01  Karl Berry  <karl@gnu.org>
48254
48255         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
48256
48257 2007-08-28  Jim Meyering  <jim@meyering.net>
48258
48259         Rename mreadlink_with_size to areadlink_with_size.
48260         * NEWS: Document the change.
48261         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
48262         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
48263         * lib/mreadlink.h: Rename this to...
48264         * lib/areadlink.h: ...this.
48265         * modules/mreadlink-with-size: Rename this to...
48266         * modules/areadlink-with-size: ...this.
48267         * lib/canonicalize.c: Reflect the renaming.
48268         * modules/canonicalize: Likewise.
48269
48270 2007-08-26  Bruno Haible  <bruno@clisp.org>
48271
48272         * gnulib-tool (func_import): When deciding which files to remove,
48273         consider also dangling symbolic links.
48274         Reported by Eric Blake.
48275
48276 2007-08-26  Bruno Haible  <bruno@clisp.org>
48277
48278         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
48279
48280 2007-08-23  Simon Josefsson  <simon@josefsson.org>
48281
48282         * lib/readline.c: Don't include getline.h, the prototype is now
48283         found in stdio.h.
48284
48285 2007-08-23  Jim Meyering  <jim@meyering.net>
48286
48287         Getdelim touchup.
48288         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
48289         around the funlockfile call, since funlockfile never sets errno.
48290         Don't set errno upon failed realloc.
48291
48292 2007-08-22  Eric Blake  <ebb9@byu.net>
48293
48294         Getline touchups.
48295         * lib/getdelim.c (getdelim): Revert regression that required *n to
48296         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
48297         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
48298         getdelim, rather than whether implementation is missing.
48299         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
48300         * lib/stdio_.h (getline): Also declare if replacement is
48301         required.
48302         * doc/functions/getdelim.texi: New file.
48303         * doc/functions/getline.texi: Likewise.
48304         * doc/gnulib.texi (Function Substitutes): Add new files.
48305         Reported by Bruno Haible.
48306
48307 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
48308
48309         * users.txt: Add Guile.
48310
48311 2007-08-22  Eric Blake  <ebb9@byu.net>
48312
48313         * tests/test-getdelim.c (main): Use remove, not unlink.
48314         * tests/test-getline.c (main): Likewise.
48315
48316         Move getline and getdelim into stdio.h, per POSIX 200x.
48317         * modules/getline (Files): Remove getline.h.
48318         (Depends-on): Add stdio.
48319         (configure.ac): Add module indicator.
48320         * modules/getdelim (Files): Remove getdelim.h.
48321         (Depends-on): Add stdio.
48322         (configure.ac): Add module indicator.
48323         * modules/stdio (Makefile.am): Work with new indicators.
48324         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
48325         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
48326         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
48327         * lib/getdelim.h: Delete.
48328         * lib/getline.h: Delete.
48329         * lib/stdio_.h (getdelim, getline): Declare.
48330         * modules/getdelim-tests: New module.
48331         * modules/getline-tests: Likewise.
48332         * tests/test-getdelim.c: New file.
48333         * tests/test-getline.c: Likewise.
48334         * NEWS: Document the change.
48335         * lib/getline.c: Update choice of header.
48336         * lib/csharpcomp.c: Likewise.
48337         * lib/getpass.c: Likewise.
48338         * lib/javacomp.c: Likewise.
48339         * lib/javaversion.c: Likewise.
48340         * lib/yesno.c: Likewise.
48341         * lib/getdelim.c: Likewise.
48342         (getdelim): Set errno on failure, and avoid memory leak.
48343
48344 2007-08-19  Bruno Haible  <bruno@clisp.org>
48345
48346         * modules/closein (Depends-on): Add freadahead.
48347         * lib/closein.c: Include freadahead.h.
48348         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
48349         is zero.
48350
48351 2007-08-19  Bruno Haible  <bruno@clisp.org>
48352
48353         * modules/freadahead-tests: New file.
48354         * tests/test-freadahead.sh: New file.
48355         * tests/test-freadahead.c: New file.
48356
48357         * modules/freadahead: New file.
48358         * lib/freadahead.h: New file.
48359         * lib/freadahead.c: New file.
48360         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
48361         fbufmode, fpurge, freadable, fwritable.
48362
48363 2007-08-19  Eric Blake  <ebb9@byu.net>
48364
48365         Test yesno in combination with closein.
48366         * lib/yesno.c (yesno): Document use of stdin.
48367         * modules/yesno-tests (Files): New module.
48368         * tests/test-yesno.c (main): New file.
48369         * tests/test-yesno.sh: Likewise.
48370
48371 2007-08-19  Bruno Haible  <bruno@clisp.org>
48372
48373         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
48374         * lib/fseeko.c (rpl_fseeko): Likewise.
48375         * lib/fseterr.c (fseterr): Likewise.
48376
48377 2007-08-19  Bruno Haible  <bruno@clisp.org>
48378
48379         * tests/test-lseek.c (main): Disable a test for BeOS.
48380         * doc/functions/lseek.texi: Document the BeOS bug.
48381
48382 2007-08-19  Bruno Haible  <bruno@clisp.org>
48383             Eric Blake  <ebb9@byu.net>
48384
48385         * lib/lseek.c: Include <sys/stat.h>.
48386         (rpl_lseek): Add workaround code also for Unix platforms.
48387         Needed for BeOS.
48388         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
48389         * doc/functions/lseek.texi: Document BeOS definiency.
48390
48391 2007-08-18  Bruno Haible  <bruno@clisp.org>
48392
48393         * modules/fstrcmp-tests: New file.
48394         * tests/test-fstrcmp.c: New file.
48395
48396 2007-08-18  Bruno Haible  <bruno@clisp.org>
48397
48398         * modules/fstrcmp: New file, from GNU gettext with modifications.
48399         * lib/fstrcmp.h: New file, from GNU gettext.
48400         * lib/fstrcmp.c: New file, from GNU gettext.
48401         * MODULES.html.sh (String handling): Add fstrcmp.
48402
48403 2007-08-18  Bruno Haible  <bruno@clisp.org>
48404
48405         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
48406         'bool'.
48407         (diag, compareseq): Remove const from the ctxt argument.
48408         (USE_HEURISTIC): Undefine at the end.
48409
48410 2007-08-18  Jim Meyering  <jim@meyering.net>
48411
48412         New file: lib/idcache.h
48413         * NEWS: Mention the addition.
48414         * modules/idcache (Files): Add lib/idcache.h
48415         * lib/idcache.c: Include "idcache.h".
48416         Don't include <sys/types.h>.
48417         Add a FIXME comment.
48418         Move file-scoped "static" declarations to the top.
48419         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
48420
48421 2007-08-17  Bruno Haible  <bruno@clisp.org>
48422         and Paul Eggert  <eggert@cs.ucla.edu>
48423
48424         * MODULES.html.sh: Add diffseq.
48425         * modules/diffseq: New file.
48426         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
48427         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
48428
48429 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48430
48431         Import changes from coreutils for bootstrap script.
48432
48433         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
48434
48435         * build-aux/bootstrap (slurp): Work even in environments where
48436         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
48437         current code does not slurp files whose names start with ".", and
48438         this looks like it might be a troublesome area.
48439
48440         2007-07-11  Jim Meyering  <jim@meyering.net>
48441
48442         If there's a GPL vN copyright comment, require that N == 3.
48443
48444         2007-07-08  Jim Meyering  <jim@meyering.net>
48445
48446         Run the coreutils-specific code only if tests/Makefile.am.in exists.
48447         * build-aux/bootstrap (mam_template): Move definition out of loop.
48448
48449         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
48450
48451         * build-aux/bootstrap (symlink_to_dir): Rename function from
48452         symlink_to_gnulib.  Add a directory parameter.  Update all
48453         callers.
48454         (cp_mark_as_generated): Also check for -- and link to -- files in
48455         gl/.
48456
48457         2007-07-08  Jim Meyering  <jim@meyering.net>
48458
48459         Adapt to deeper hierarchy in gnulib.
48460         * build-aux/bootstrap (symlink_to_dir): If the destination
48461         directory doesn't exist, create it. This is required at least for
48462         "lib/uniwidth/cjk.h".
48463
48464         2007-05-15  Jim Meyering  <jim@meyering.net>
48465
48466         * build-aux/bootstrap: Now that generated Makefile.am files
48467         are no longer under version control, they must be created at
48468         bootstrap time.
48469
48470 2007-08-14  Ben Pfaff  <blp@gnu.org>
48471
48472         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
48473
48474 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
48475
48476         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
48477         given the changes below.
48478         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
48479         even on hosts that have padding bits beyond the supported 64.
48480
48481 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
48482
48483         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
48484         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
48485         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
48486         depends on it.
48487         (xstrtol_error): Remove.
48488         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
48489         but with a different signature.
48490         (ATTRIBUTE_NORETURN, __attribute__): New macros.
48491         * lib/xstrtol-error.c: Include exitfail.h.
48492         (xstrtol_fatal): New function, with a different signature from the
48493         old xstrtol_error, so that the caller need not worry about passing
48494         in an exit status, or about storage management of the option argument.
48495         (xstrtol_error): Now a static function.  Redo signature to
48496         implement xstrtol_fatal.  Output the correct number of hyphens in
48497         front of the option so that the caller need not worry about
48498         storage management.
48499         (N_): New macro.
48500         (_): Remove; not used now.
48501         * modules/xstrtol: Depend on getopt.
48502         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
48503         of old STRTOL_FATAL_ERROR macro.
48504         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
48505         of test program.
48506         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
48507         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
48508
48509 2007-08-08  Eric Blake  <ebb9@byu.net>
48510
48511         * lib/xstrtol-error.c: Add missing include.
48512
48513         Move xstrtol messages into gnulib domain, when --pobase is used.
48514         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
48515         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
48516         * modules/xstrtol (Files): Distribute new file.
48517         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
48518         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
48519         * tests/test-xstrtol.c: ...into new file.
48520         * tests/test-xstrtoul.c: Also test xstrtoul.
48521         * tests/test-xstrtoimax.c: Also test xstrtoimax.
48522         * tests/test-xstrtoumax.c: Also test xstrtoumax.
48523         * tests/test-xstrtol.sh: Drive the tests.
48524         * tests/test-xstrtoimax.sh: Likewise.
48525         * tests/test-xstrtoumax.sh: Likewise.
48526         * modules/xstrtol-tests: New module.
48527         * modules/xstrtoimax-tests: Likewise.
48528         * modules/xstrtoumax-tests: Likewise.
48529
48530 2007-08-08  Jim Meyering  <jim@meyering.net>
48531
48532         New function: mfile_name_concat.
48533         * lib/filenamecat.c (mfile_name_concat): New function, just like
48534         file_name_concat, but return NULL upon failure rather than exiting
48535         with a diagnostic.
48536         * lib/filenamecat.h: Declare it.
48537
48538 2007-08-07  Bruno Haible  <bruno@clisp.org>
48539
48540         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
48541         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
48542         warning from gcc.
48543         Reported by Eric Blake.
48544
48545 2007-08-07  Simon Josefsson  <simon@josefsson.org>
48546
48547         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
48548         * modules/crypto/arcfour (License): Likewise.
48549         * modules/crypto/des-tests (License): Likewise.
48550         * modules/crypto/gc-arctwo-tests (License): Likewise.
48551         * modules/crypto/gc-des-tests (License): Likewise.
48552         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
48553         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
48554         * modules/crypto/gc-md2-tests (License): Likewise.
48555         * modules/crypto/gc-md4-tests (License): Likewise.
48556         * modules/crypto/gc-md5-tests (License): Likewise.
48557         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
48558         * modules/crypto/gc-rijndael-tests (License): Likewise.
48559         * modules/crypto/gc-sha1-tests (License): Likewise.
48560         * modules/crypto/gc-tests (License): Likewise.
48561         * modules/crypto/hmac-md5 (License): Likewise.
48562         * modules/crypto/hmac-sha1 (License): Likewise.
48563         * modules/crypto/md2-tests (License): Likewise.
48564         * modules/crypto/md4-tests (License): Likewise.
48565         * modules/crypto/md5 (License): Likewise.
48566         * modules/crypto/rijndael (License): Likewise.
48567         * modules/crypto/sha1 (License): Likewise.
48568         * modules/memxor (License): Likewise.
48569
48570 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
48571         and Bruno Haible  <bruno@clisp.org>
48572
48573         * NEWS: Describe interface changes to human, xstrtol.
48574         * lib/human.h: Include <xstrtol.h>.
48575         (human_options): Return enum strtol_error, not int.  Remove
48576         bool arg; take int * instead.
48577         * lib/human.c: Don't include "gettext.h".
48578         (_): Remove; no longer used.
48579         Don't include <xstrtol.h>, since human.h does it.
48580         (human_options): Adjust to abovementioned interface changes.
48581         Do not report error to stderr; that's now the caller's
48582         responsibility.
48583         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
48584         interface change.
48585         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
48586         Str, Argument_type_string.  All uses changed.  Put " argument"
48587         in diagnostics to make them clearer.  Change wording of suffix
48588         message for clarity.
48589         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
48590         Argument_type_string.
48591         (STRTOL_FATAL_WARN): Remove; no longer used.
48592         * modules/human (Depends-on): Remove gettext-h.
48593
48594 2007-08-06  Simon Josefsson  <simon@josefsson.org>
48595
48596         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
48597
48598 2007-07-31  Bruno Haible  <bruno@clisp.org>
48599
48600         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
48601         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
48602         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
48603
48604 2007-07-31  Bruno Haible  <bruno@clisp.org>
48605
48606         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
48607         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
48608
48609 2007-07-30  Bruno Haible  <bruno@clisp.org>
48610
48611         * modules/base64 (License): Use the synonymous term "LGPLv2+".
48612         * modules/c-ctype (License): Likewise.
48613         * modules/c-strcase (License): Likewise.
48614         * modules/check-version (License): Likewise.
48615         * modules/iconv (License): Likewise.
48616         * modules/iconv_open (License): Likewise.
48617         * modules/read-file (License): Likewise.
48618         * modules/striconv (License): Likewise.
48619         * modules/strverscmp (License): Likewise.
48620         * modules/vasprintf (License): Likewise.
48621         * modules/crypto/des (License): Likewise.
48622         * modules/crypto/gc (License): Likewise.
48623         * modules/crypto/gc-arcfour (License): Likewise.
48624         * modules/crypto/gc-arctwo (License): Likewise.
48625         * modules/crypto/gc-des (License): Likewise.
48626         * modules/crypto/gc-hmac-md5 (License): Likewise.
48627         * modules/crypto/gc-hmac-sha1 (License): Likewise.
48628         * modules/crypto/gc-md2 (License): Likewise.
48629         * modules/crypto/gc-md4 (License): Likewise.
48630         * modules/crypto/gc-md5 (License): Likewise.
48631         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
48632         * modules/crypto/gc-random (License): Likewise.
48633         * modules/crypto/gc-rijndael (License): Likewise.
48634         * modules/crypto/gc-sha1 (License): Likewise.
48635         * modules/crypto/md2 (License): Likewise.
48636         * modules/crypto/md4 (License): Likewise.
48637
48638 2007-07-30  Jim Meyering  <jim@meyering.net>
48639
48640         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
48641         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
48642         it has valid stat data.  This bug would cause du not to count the
48643         sizes of inaccessible directories.
48644         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
48645         in <http://bugzilla.redhat.com/250077>.
48646
48647 2007-07-25  Peter O'Gorman  <peter@pogma.com>
48648             Bruno Haible  <bruno@clisp.org>
48649
48650         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
48651         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
48652         #include_next, gives a diagnostic about it, but reports no error in
48653         the exit code.
48654         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
48655
48656 2007-07-24  Ben Pfaff  <blp@gnu.org>
48657
48658         Improve name: "count-one-bits" is better than "popcount".
48659         * MODULES.html.sh: Update name.
48660         * lib/popcount.h: Renamed lib/count-one-bits.h.
48661         (popcount): Renamed count_one_bits.
48662         (popcountl): Renamed count_one_bits_l.
48663         (popcountll): Renamed count_one_bits_ll.
48664         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
48665         * modules/popcount: Renamed module/count-one-bits.
48666         * modules/popcount-tests: Renamed module/count-one-bits-tests.
48667         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
48668
48669 2007-07-23  Ben Pfaff  <blp@gnu.org>
48670
48671         * lib/popcount.h (popcount32): Reduce size of constants, to allow
48672         better code generation, and add U to large constants to avoid
48673         warnings, in non-GCC case.
48674         Suggested by Bruno Haible.
48675
48676 2007-07-23  Ben Pfaff  <blp@gnu.org>
48677
48678         * lib/popcount.h: Use verify_true instead of if...abort.
48679         * modules/popcount: Depend on verify module.
48680         Suggested by Jim Meyering.
48681
48682 2007-07-23  Bruno Haible  <bruno@clisp.org>
48683
48684         * gnulib-tool (func_import): Create a .cvsignore file also when the
48685         directory is not yet in CVS but the toplevel directory is. When
48686         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
48687         Reported by Karl Berry.
48688
48689 2007-07-22  Ben Pfaff  <blp@gnu.org>
48690
48691         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
48692         case.
48693         Suggested by Eric Blake.
48694
48695 2007-07-22  Ben Pfaff  <blp@gnu.org>
48696
48697         New module: popcount.
48698         * MODULES.html.sh: Add popcount.
48699         * modules/popcount: New file.
48700         * modules/popcount-tests: New file.
48701         * tests/test-popcount.c: New file.
48702         * lib/popcount.h: New file.
48703         * m4/popcount.m4: New file.
48704
48705 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
48706
48707         * build-aux/announce-gen: Update to GPLv3.
48708
48709         * build-aux/config.guess: Update from config.
48710
48711 2007-07-21  Bruno Haible  <bruno@clisp.org>
48712
48713         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
48714         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
48715
48716 2007-07-20  Jim Meyering  <jim@meyering.net>
48717
48718         * check-module: Diagnose a self-dependency.
48719
48720 2007-07-19  Bruno Haible  <bruno@clisp.org>
48721
48722         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
48723         empty.
48724         Reported by Eric Blake.
48725
48726 2007-07-18  Bruno Haible  <bruno@clisp.org>
48727
48728         * gnulib-tool: New options --po-base, --po-domain.
48729         (func_usage): Document them.
48730         (pobase, po_domain): New variables.
48731         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
48732         DEFAULT_TEXT_DOMAIN.
48733         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
48734         (func_import): Consider pobase and po_domain. Create a po/ directory.
48735         (func_create_testdir): Set pobase and po_domain to empty.
48736         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
48737         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
48738
48739 2007-07-18  Bruno Haible  <bruno@clisp.org>
48740
48741         * gnulib-tool (func_get_automake_snippet): Synthesize also an
48742         EXTRA_DIST augmentation for files in build-aux/.
48743
48744 2007-07-16  Bruno Haible  <bruno@clisp.org>
48745
48746         * modules/lseek (License): Use the synonymous term "LGPLv2+".
48747         * modules/getdelim (License): Likewise.
48748
48749 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48750
48751         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
48752         * modules/d-type (License): Likewise.
48753         * modules/extensions (License): Likewise.
48754         * modules/fnmatch (License): Likewise.
48755         * modules/fseeko (License): Likewise.
48756         * modules/getaddrinfo (License): Likewise.
48757         * modules/getline (License): Likewise.
48758         * modules/getlogin_r (License): Likewise.
48759         * modules/getpass (License): Likewise.
48760         * modules/gettimeofday (License): Likewise.
48761         * modules/glob (License): Likewise.
48762         * modules/inet_ntop (License): Likewise.
48763         * modules/malloc (License): Likewise.
48764         * modules/malloca (License): Likewise.
48765         * modules/memmem (License): Likewise.
48766         * modules/mempcpy (License): Likewise.
48767         * modules/memset (License): Likewise.
48768         * modules/minmax (License): Likewise.
48769         * modules/mktime (License): Likewise.
48770         * modules/netinet_in (License): Likewise.
48771         * modules/pathmax (License): Likewise.
48772         * modules/poll (License): Likewise.
48773         * modules/regex (License): Likewise.
48774         * modules/snprintf (License): Likewise.
48775         * modules/stdbool (License): Likewise.
48776         * modules/stdint (License): Likewise.
48777         * modules/stdio (License): Likewise.
48778         * modules/strcase (License): Likewise.
48779         * modules/strcasestr (License): Likewise.
48780         * modules/strdup (License): Likewise.
48781         * modules/string (License): Likewise.
48782         * modules/strndup (License): Likewise.
48783         * modules/strnlen (License): Likewise.
48784         * modules/strpbrk (License): Likewise.
48785         * modules/strptime (License): Likewise.
48786         * modules/strsep (License): Likewise.
48787         * modules/sys_select (License): Likewise.
48788         * modules/sys_socket (License): Likewise.
48789         * modules/sys_stat (License): Likewise.
48790         * modules/sys_time (License): Likewise.
48791         * modules/time (License): Likewise.
48792         * modules/time_r (License): Likewise.
48793         * modules/timegm (License): Likewise.
48794         * modules/unistd (License): Likewise.
48795         * modules/vsnprintf (License): Likewise.
48796         * modules/wctype (License): Likewise.
48797
48798 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48799
48800         * modules/argz (License): LGPLv2+.
48801
48802 2007-07-15  Karl Berry  <karl@gnu.org>
48803
48804         * doc/gnulib.texi: revise node structure per new fdl.texi.
48805
48806 2007-07-14  Bruno Haible  <bruno@clisp.org>
48807
48808         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
48809         the output file.
48810         * lib/uniname/uninames.h: Regenerated.
48811
48812 2007-07-14  Karl Berry  <karl@gnu.org>
48813
48814         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
48815         omitting sectioning and index commands.
48816
48817 2007-07-13  Bruno Haible  <bruno@clisp.org>
48818
48819         New gnulib-tool option --more-symlinks.
48820         * gnulib-tool (func_usage): Document --more-symlinks.
48821         (do_copyrights): New variable.
48822         Recognize option --more-symlinks.
48823         (func_import): Don't add a copyright notice transform to
48824         sed_transform_lib_file if do_copyrights is empty.
48825
48826 2007-07-13  Bruno Haible  <bruno@clisp.org>
48827
48828         * lib/vasnprintf.c (decimal_point_char): Define also if
48829         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
48830         && !NEED_PRINTF_DIRECTIVE_A.
48831         Reported by Clemens Koller <clemens.koller@anagramm.de> via
48832         Gary V. Vaughan <gary@gnu.org>.
48833
48834 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
48835
48836         * lib/inttypes_.h: Undo previous change, since it was fixed
48837         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
48838
48839 2007-07-13  Bruno Haible  <bruno@clisp.org>
48840
48841         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
48842         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
48843
48844 2007-07-13  Jim Meyering  <jim@meyering.net>
48845
48846         df: Don't fail for Tru64's "file-on-file mount".
48847         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
48848         so we fall through and use statfs instead.  Details here:
48849         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
48850         Reported by Albert Chin.
48851
48852 2007-07-13  Bruno Haible  <bruno@clisp.org>
48853
48854         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
48855         * modules/configmake (License): Likewise.
48856         * modules/gettext (License): Likewise.
48857         * modules/gettext-h (License): Likewise.
48858         * modules/include_next (License): Likewise.
48859         * modules/link-warning (License): Likewise.
48860         * modules/localcharset (License): Likewise.
48861         * modules/localename (License): Likewise.
48862         * modules/lock (License): Likewise.
48863         * modules/relocatable-lib-lgpl (License): Likewise.
48864         * modules/size_max (License): Likewise.
48865         * modules/vasnprintf (License): Likewise.
48866         * modules/wchar (License): Likewise.
48867         * modules/xsize (License): Likewise.
48868
48869 2007-07-13  Bruno Haible  <bruno@clisp.org>
48870
48871         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
48872         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
48873
48874 2007-07-12  Bruno Haible  <bruno@clisp.org>
48875
48876         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
48877         in the modules files.
48878
48879 2007-07-11  Karl Berry  <karl@gnu.org>
48880
48881         * MODULES.html.sh (func_module): use
48882          sed -e '\|^'"${includefile}"'$|d'
48883          instead of /.../d, to avoid errors on $includefile's containing /.
48884
48885 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48886
48887         * gnulib-tool (func_import): Avoid duplication of --avoid
48888         statements
48889         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
48890         names to `_' in variable names.
48891
48892 2007-07-10  Eric Blake  <ebb9@byu.net>
48893
48894         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
48895         * NEWS: Document this change.
48896
48897 2007-07-08  Bruno Haible  <bruno@clisp.org>
48898
48899         Update to Unicode 5.0.
48900         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
48901         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
48902         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
48903         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
48904         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
48905         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
48906         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
48907         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
48908         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
48909         U+10A3F, U+1D242..U+1D244.
48910         (nonspacing_table_ind): Update.
48911         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
48912         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
48913
48914 2007-07-08  Bruno Haible  <bruno@clisp.org>
48915
48916         Update to Unicode 5.0.
48917         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
48918         code transform. Extend the name index field of unicode_name_to_code and
48919         unicode_code_to_name from 16 to 24 bits.
48920         * lib/uniname/uniname.c (unicode_character_name,
48921         unicode_name_character): Add the range 0x12xxx to the code transform.
48922         * lib/uniname/uninames.h: Regenerated.
48923         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
48924
48925 2007-07-07  Bruno Haible  <bruno@clisp.org>
48926
48927         * modules/wcwidth-tests: New file.
48928         * tests/test-wcwidth.c: New file.
48929
48930         Work around MacOS X wcwidth() bug.
48931         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
48932         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
48933         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
48934         original wcwidth in non-UTF-8 locales.
48935         * modules/wcwidth (Depends-on): Add localcharset, streq,
48936         uniwidth/width.
48937         * doc/functions/wcwidth.texi: Update.
48938
48939 2007-07-07  Bruno Haible  <bruno@clisp.org>
48940
48941         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
48942         (wcwidth): New declaration.
48943         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
48944         macros.
48945         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
48946         here. Prepare for creating <wchar.h> unconditionally.
48947         * modules/wchar (Depends-on): Add link-warning.
48948         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
48949         REPLACE_WCWIDTH, and GL_LINK_WARNING.
48950         * lib/wcwidth.h: Remove file.
48951         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
48952         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
48953         * modules/wcwidth (Files): Remove lib/wcwidth.h.
48954         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
48955         (Include): Replace wcwidth.h with <wchar.h>.
48956         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
48957         * lib/mbchar.h: Don't include wcwidth.h.
48958         * lib/mbswidth.c: Likewise.
48959         * NEWS: Mention the change.
48960
48961 2007-07-07  Bruno Haible  <bruno@clisp.org>
48962
48963         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
48964         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
48965         definition with an external declaration.
48966         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
48967         defined as a function. Remove AC_C_INLINE requirement.
48968         * modules/wcwidth (Files): Add lib/wcwidth.c.
48969         (Makefile.am): Remove redundant statement.
48970
48971 2007-07-07  Bruno Haible  <bruno@clisp.org>
48972
48973         * MODULES.html.sh (Unicode string functions): Add the new modules.
48974
48975         * tests/uniwidth/test-u32-strwidth.c: New file.
48976         * modules/uniwidth/u32-strwidth-tests: New file.
48977
48978         * lib/uniwidth/u32-strwidth.c: New file.
48979         * modules/uniwidth/u32-strwidth: New file.
48980
48981         * tests/uniwidth/test-u16-strwidth.c: New file.
48982         * modules/uniwidth/u16-strwidth-tests: New file.
48983
48984         * lib/uniwidth/u16-strwidth.c: New file.
48985         * modules/uniwidth/u16-strwidth: New file.
48986
48987         * tests/uniwidth/test-u8-strwidth.c: New file.
48988         * modules/uniwidth/u8-strwidth-tests: New file.
48989
48990         * lib/uniwidth/u8-strwidth.c: New file.
48991         * modules/uniwidth/u8-strwidth: New file.
48992
48993         * tests/uniwidth/test-u32-width.c: New file.
48994         * modules/uniwidth/u32-width-tests: New file.
48995
48996         * lib/uniwidth/u32-width.c: New file.
48997         * modules/uniwidth/u32-width: New file.
48998
48999         * tests/uniwidth/test-u16-width.c: New file.
49000         * modules/uniwidth/u16-width-tests: New file.
49001
49002         * lib/uniwidth/u16-width.c: New file.
49003         * modules/uniwidth/u16-width: New file.
49004
49005         * tests/uniwidth/test-u8-width.c: New file.
49006         * modules/uniwidth/u8-width-tests: New file.
49007
49008         * lib/uniwidth/u8-width.c: New file.
49009         * modules/uniwidth/u8-width: New file.
49010
49011         * tests/uniwidth/test-uc_width.c: New file.
49012         * modules/uniwidth/width-tests: New file.
49013
49014         * lib/uniwidth/width.c: New file, from GNU libiconv.
49015         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
49016         * modules/uniwidth/width: New file.
49017
49018         * lib/uniwidth.h: New file, from GNU libiconv.
49019         * modules/uniwidth/base: New file.
49020
49021 2007-07-07  Bruno Haible  <bruno@clisp.org>
49022
49023         * lib/uniname.h: New file, from GNU gettext.
49024         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
49025         * lib/uniname/uninames.h: New file, from GNU gettext.
49026         * lib/uniname/uniname.c: New file, from GNU gettext.
49027         * tests/uniname/test-uninames.sh: New file.
49028         * tests/uniname/test-uninames.c: New file, from GNU gettext.
49029         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
49030         * modules/uniname/base: New file.
49031         * modules/uniname/uniname: New file.
49032         * modules/uniname/uniname-tests: New file.
49033         * MODULES.html.sh (Unicode string functions): Add the new modules.
49034
49035 2007-07-06  Bruno Haible  <bruno@clisp.org>
49036
49037         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
49038
49039 2007-07-06  Bruno Haible  <bruno@clisp.org>
49040
49041         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
49042         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
49043         includes <cygwin/sys_time.h> which includes <sys/select.h> which
49044         include <sys/time.h>.
49045         Reported by Eric Blake.
49046
49047 2007-07-06  Eric Blake  <ebb9@byu.net>
49048
49049         Fix testing canonicalize on cygwin.
49050         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49051         Revert patch from 2007-06-19.
49052         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
49053         canonicalize module is also in use.
49054         * tests/test-canonicalize.c: New file.
49055         * tests/test-canonicalize.sh: Likewise.
49056         * modules/canonicalize-tests: Likewise.
49057
49058 2007-07-06  Jim Meyering  <jim@meyering.net>
49059
49060         * lib/getugroups.c (getugroups): Detect getgrent failure.
49061         Adjust comment to reflect reality: this function may return -1.
49062
49063 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
49064
49065         * build-aux/bootstrap (TP_URL,get_translations): Update to use
49066         the new TP address.
49067         (usage): Fix typo
49068         (gnulib_mk): New variable.
49069
49070 2007-07-05  Jim Meyering  <jim@meyering.net>
49071
49072         Don't let endgrent clobber errno, no matter how improbable.
49073         * lib/getugroups.c (getugroups): Save and restore errno around
49074         endgrent call.
49075
49076         Close the group DB even when failing with 2^31 or more members.
49077         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
49078
49079 2007-07-04  Jim Meyering  <jim@meyering.net>
49080
49081         * lib/getugroups.h: New file.
49082         * lib/getugroups.c: Include "getugroups.h".
49083         Remove uses of "register" keyword.
49084         Move local variable, "cp", down into scope where used.
49085         Give "username" parameter the "const" attribute.
49086         * modules/getugroups (Files): Add lib/getugroups.h
49087
49088 2007-07-04  Karl Berry  <karl@gnu.org>
49089
49090         * MODULES.html.sh (func_all_modules): Complete rename of
49091         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
49092
49093 2007-07-02  Bruno Haible  <bruno@clisp.org>
49094
49095         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
49096         mode, when inttypes.h comes from gnulib.
49097         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49098
49099 2007-07-02  Simon Josefsson  <simon@josefsson.org>
49100
49101         * NEWS: Mention lgpl module name change.
49102
49103         * modules/lgpl-2.1: Renamed from lgpl.
49104
49105         * NEWS: Mention gpl module name change.
49106
49107         * modules/gpl-3.0: New file, based on gpl-2.0.
49108
49109         * modules/gpl-2.0: Renamed from gpl.
49110
49111         * modules/gpl: Fix filename, doc/gpl.texi is now found at
49112         doc/gpl-2.0.texi.
49113
49114 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
49115
49116         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
49117         #define __STDC_LIMIT_MACROS temporarily while including
49118         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
49119         Problem reported by Joel E. Denny in
49120         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
49121
49122 2007-07-01  Bruno Haible  <bruno@clisp.org>
49123
49124         * lib/unistdio.h: New file.
49125         * lib/unistdio/u-asnprintf.h: New file.
49126         * lib/unistdio/u-asprintf.h: New file.
49127         * lib/unistdio/u-printf-args.c: New file.
49128         * lib/unistdio/u-printf-args.h: New file.
49129         * lib/unistdio/u-printf-parse.h: New file.
49130         * lib/unistdio/u-snprintf.h: New file.
49131         * lib/unistdio/u-sprintf.h: New file.
49132         * lib/unistdio/u-vasprintf.h: New file.
49133         * lib/unistdio/u-vsnprintf.h: New file.
49134         * lib/unistdio/u-vsprintf.h: New file.
49135         * lib/unistdio/ulc-asnprintf.c: New file.
49136         * lib/unistdio/ulc-asprintf.c: New file.
49137         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
49138         * lib/unistdio/ulc-printf-parse.c: New file.
49139         * lib/unistdio/ulc-snprintf.c: New file.
49140         * lib/unistdio/ulc-sprintf.c: New file.
49141         * lib/unistdio/ulc-vasnprintf.c: New file.
49142         * lib/unistdio/ulc-vasprintf.c: New file.
49143         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
49144         * lib/unistdio/ulc-vsnprintf.c: New file.
49145         * lib/unistdio/ulc-vsprintf.c: New file.
49146         * lib/unistdio/u8-asnprintf.c: New file.
49147         * lib/unistdio/u8-asprintf.c: New file.
49148         * lib/unistdio/u8-printf-parse.c: New file.
49149         * lib/unistdio/u8-snprintf.c: New file.
49150         * lib/unistdio/u8-sprintf.c: New file.
49151         * lib/unistdio/u8-vasnprintf.c: New file.
49152         * lib/unistdio/u8-vasprintf.c: New file.
49153         * lib/unistdio/u8-vsnprintf.c: New file.
49154         * lib/unistdio/u8-vsprintf.c: New file.
49155         * lib/unistdio/u8-u8-asnprintf.c: New file.
49156         * lib/unistdio/u8-u8-asprintf.c: New file.
49157         * lib/unistdio/u8-u8-snprintf.c: New file.
49158         * lib/unistdio/u8-u8-sprintf.c: New file.
49159         * lib/unistdio/u8-u8-vasnprintf.c: New file.
49160         * lib/unistdio/u8-u8-vasprintf.c: New file.
49161         * lib/unistdio/u8-u8-vsnprintf.c: New file.
49162         * lib/unistdio/u8-u8-vsprintf.c: New file.
49163         * lib/unistdio/u16-asnprintf.c: New file.
49164         * lib/unistdio/u16-asprintf.c: New file.
49165         * lib/unistdio/u16-printf-parse.c: New file.
49166         * lib/unistdio/u16-snprintf.c: New file.
49167         * lib/unistdio/u16-sprintf.c: New file.
49168         * lib/unistdio/u16-vasnprintf.c: New file.
49169         * lib/unistdio/u16-vasprintf.c: New file.
49170         * lib/unistdio/u16-vsnprintf.c: New file.
49171         * lib/unistdio/u16-vsprintf.c: New file.
49172         * lib/unistdio/u16-u16-asnprintf.c: New file.
49173         * lib/unistdio/u16-u16-asprintf.c: New file.
49174         * lib/unistdio/u16-u16-snprintf.c: New file.
49175         * lib/unistdio/u16-u16-sprintf.c: New file.
49176         * lib/unistdio/u16-u16-vasnprintf.c: New file.
49177         * lib/unistdio/u16-u16-vasprintf.c: New file.
49178         * lib/unistdio/u16-u16-vsnprintf.c: New file.
49179         * lib/unistdio/u16-u16-vsprintf.c: New file.
49180         * lib/unistdio/u32-asnprintf.c: New file.
49181         * lib/unistdio/u32-asprintf.c: New file.
49182         * lib/unistdio/u32-printf-parse.c: New file.
49183         * lib/unistdio/u32-snprintf.c: New file.
49184         * lib/unistdio/u32-sprintf.c: New file.
49185         * lib/unistdio/u32-vasnprintf.c: New file.
49186         * lib/unistdio/u32-vasprintf.c: New file.
49187         * lib/unistdio/u32-vsnprintf.c: New file.
49188         * lib/unistdio/u32-vsprintf.c: New file.
49189         * lib/unistdio/u32-u32-asnprintf.c: New file.
49190         * lib/unistdio/u32-u32-asprintf.c: New file.
49191         * lib/unistdio/u32-u32-snprintf.c: New file.
49192         * lib/unistdio/u32-u32-sprintf.c: New file.
49193         * lib/unistdio/u32-u32-vasnprintf.c: New file.
49194         * lib/unistdio/u32-u32-vasprintf.c: New file.
49195         * lib/unistdio/u32-u32-vsnprintf.c: New file.
49196         * lib/unistdio/u32-u32-vsprintf.c: New file.
49197         * tests/unistdio/test-ulc-asnprintf1.c: New file.
49198         * tests/unistdio/test-ulc-asnprintf1.h: New file.
49199         * tests/unistdio/test-ulc-printf1.h: New file.
49200         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
49201         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
49202         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
49203         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
49204         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
49205         * tests/unistdio/test-ulc-vasprintf1.c: New file.
49206         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
49207         * tests/unistdio/test-ulc-vsprintf1.c: New file.
49208         * tests/unistdio/test-u8-asnprintf1.c: New file.
49209         * tests/unistdio/test-u8-asnprintf1.h: New file.
49210         * tests/unistdio/test-u8-printf1.h: New file.
49211         * tests/unistdio/test-u8-vasnprintf1.c: New file.
49212         * tests/unistdio/test-u8-vasnprintf2.c: New file.
49213         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
49214         * tests/unistdio/test-u8-vasnprintf3.c: New file.
49215         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
49216         * tests/unistdio/test-u8-vasprintf1.c: New file.
49217         * tests/unistdio/test-u8-vsnprintf1.c: New file.
49218         * tests/unistdio/test-u8-vsprintf1.c: New file.
49219         * tests/unistdio/test-u16-asnprintf1.c: New file.
49220         * tests/unistdio/test-u16-asnprintf1.h: New file.
49221         * tests/unistdio/test-u16-printf1.h: New file.
49222         * tests/unistdio/test-u16-vasnprintf1.c: New file.
49223         * tests/unistdio/test-u16-vasnprintf2.c: New file.
49224         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
49225         * tests/unistdio/test-u16-vasnprintf3.c: New file.
49226         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
49227         * tests/unistdio/test-u16-vasprintf1.c: New file.
49228         * tests/unistdio/test-u16-vsnprintf1.c: New file.
49229         * tests/unistdio/test-u16-vsprintf1.c: New file.
49230         * tests/unistdio/test-u32-asnprintf1.c: New file.
49231         * tests/unistdio/test-u32-asnprintf1.h: New file.
49232         * tests/unistdio/test-u32-printf1.h: New file.
49233         * tests/unistdio/test-u32-vasnprintf1.c: New file.
49234         * tests/unistdio/test-u32-vasnprintf2.c: New file.
49235         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
49236         * tests/unistdio/test-u32-vasnprintf3.c: New file.
49237         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
49238         * tests/unistdio/test-u32-vasprintf1.c: New file.
49239         * tests/unistdio/test-u32-vsnprintf1.c: New file.
49240         * tests/unistdio/test-u32-vsprintf1.c: New file.
49241         * modules/unistdio/base: New file.
49242         * modules/unistdio/u-printf-args: New file.
49243         * modules/unistdio/ulc-asnprintf: New file.
49244         * modules/unistdio/ulc-asprintf: New file.
49245         * modules/unistdio/ulc-fprintf: New file.
49246         * modules/unistdio/ulc-printf-parse: New file.
49247         * modules/unistdio/ulc-snprintf: New file.
49248         * modules/unistdio/ulc-sprintf: New file.
49249         * modules/unistdio/ulc-vasnprintf: New file.
49250         * modules/unistdio/ulc-vasprintf: New file.
49251         * modules/unistdio/ulc-vfprintf: New file.
49252         * modules/unistdio/ulc-vsnprintf: New file.
49253         * modules/unistdio/ulc-vsprintf: New file.
49254         * modules/unistdio/u8-asnprintf: New file.
49255         * modules/unistdio/u8-asprintf: New file.
49256         * modules/unistdio/u8-printf-parse: New file.
49257         * modules/unistdio/u8-snprintf: New file.
49258         * modules/unistdio/u8-sprintf: New file.
49259         * modules/unistdio/u8-vasnprintf: New file.
49260         * modules/unistdio/u8-vasprintf: New file.
49261         * modules/unistdio/u8-vsnprintf: New file.
49262         * modules/unistdio/u8-vsprintf: New file.
49263         * modules/unistdio/u8-u8-asnprintf: New file.
49264         * modules/unistdio/u8-u8-asprintf: New file.
49265         * modules/unistdio/u8-u8-snprintf: New file.
49266         * modules/unistdio/u8-u8-sprintf: New file.
49267         * modules/unistdio/u8-u8-vasnprintf: New file.
49268         * modules/unistdio/u8-u8-vasprintf: New file.
49269         * modules/unistdio/u8-u8-vsnprintf: New file.
49270         * modules/unistdio/u8-u8-vsprintf: New file.
49271         * modules/unistdio/u16-asnprintf: New file.
49272         * modules/unistdio/u16-asprintf: New file.
49273         * modules/unistdio/u16-printf-parse: New file.
49274         * modules/unistdio/u16-snprintf: New file.
49275         * modules/unistdio/u16-sprintf: New file.
49276         * modules/unistdio/u16-vasnprintf: New file.
49277         * modules/unistdio/u16-vasprintf: New file.
49278         * modules/unistdio/u16-vsnprintf: New file.
49279         * modules/unistdio/u16-vsprintf: New file.
49280         * modules/unistdio/u16-u16-asnprintf: New file.
49281         * modules/unistdio/u16-u16-asprintf: New file.
49282         * modules/unistdio/u16-u16-snprintf: New file.
49283         * modules/unistdio/u16-u16-sprintf: New file.
49284         * modules/unistdio/u16-u16-vasnprintf: New file.
49285         * modules/unistdio/u16-u16-vasprintf: New file.
49286         * modules/unistdio/u16-u16-vsnprintf: New file.
49287         * modules/unistdio/u16-u16-vsprintf: New file.
49288         * modules/unistdio/u32-asnprintf: New file.
49289         * modules/unistdio/u32-asprintf: New file.
49290         * modules/unistdio/u32-printf-parse: New file.
49291         * modules/unistdio/u32-snprintf: New file.
49292         * modules/unistdio/u32-sprintf: New file.
49293         * modules/unistdio/u32-vasnprintf: New file.
49294         * modules/unistdio/u32-vasprintf: New file.
49295         * modules/unistdio/u32-vsnprintf: New file.
49296         * modules/unistdio/u32-vsprintf: New file.
49297         * modules/unistdio/u32-u32-asnprintf: New file.
49298         * modules/unistdio/u32-u32-asprintf: New file.
49299         * modules/unistdio/u32-u32-snprintf: New file.
49300         * modules/unistdio/u32-u32-sprintf: New file.
49301         * modules/unistdio/u32-u32-vasnprintf: New file.
49302         * modules/unistdio/u32-u32-vasprintf: New file.
49303         * modules/unistdio/u32-u32-vsnprintf: New file.
49304         * modules/unistdio/u32-u32-vsprintf: New file.
49305         * modules/unistdio/ulc-asnprintf-tests: New file.
49306         * modules/unistdio/ulc-vasnprintf-tests: New file.
49307         * modules/unistdio/ulc-vasprintf-tests: New file.
49308         * modules/unistdio/ulc-vsnprintf-tests: New file.
49309         * modules/unistdio/ulc-vsprintf-tests: New file.
49310         * modules/unistdio/u8-asnprintf-tests: New file.
49311         * modules/unistdio/u8-vasnprintf-tests: New file.
49312         * modules/unistdio/u8-vasprintf-tests: New file.
49313         * modules/unistdio/u8-vsnprintf-tests: New file.
49314         * modules/unistdio/u8-vsprintf-tests: New file.
49315         * modules/unistdio/u16-asnprintf-tests: New file.
49316         * modules/unistdio/u16-vasnprintf-tests: New file.
49317         * modules/unistdio/u16-vasprintf-tests: New file.
49318         * modules/unistdio/u16-vsnprintf-tests: New file.
49319         * modules/unistdio/u16-vsprintf-tests: New file.
49320         * modules/unistdio/u32-asnprintf-tests: New file.
49321         * modules/unistdio/u32-vasnprintf-tests: New file.
49322         * modules/unistdio/u32-vasprintf-tests: New file.
49323         * modules/unistdio/u32-vsnprintf-tests: New file.
49324         * modules/unistdio/u32-vsprintf-tests: New file.
49325         * MODULES.html.sh (Unicode string functions): Add the new modules.
49326
49327 2007-07-01  Bruno Haible  <bruno@clisp.org>
49328
49329         * lib/sprintf.c (sprintf): Limit the available length estimation,
49330         to avoid address wraparound.
49331         * lib/vsprintf.c (vsprintf): Likewise.
49332         * modules/sprintf-posix (Dependencies): Add stdint.
49333         * modules/vsprintf-posix (Dependencies): Likewise.
49334
49335 2007-07-01  Bruno Haible  <bruno@clisp.org>
49336
49337         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
49338         Windows PATH as well. Conservative double-quoting. Comments.
49339
49340 2007-07-01  Bruno Haible  <bruno@clisp.org>
49341             Eric Blake  <ebb9@byu.net>
49342             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49343
49344         * gnulib-tool (self_abspathname): Fix algorithm to cope with
49345         empty components in $PATH, denoting '.'.
49346
49347 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49348
49349         * gnulib-tool: Fix indentation.
49350         (func_create_megatestdir): Likewise.
49351         Report by Bruno Haible.
49352
49353 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49354
49355         Sync from Automake.
49356         * build-aux/gnupload: Fix shell portability issues with for loops.
49357         Report by Karl Berry.
49358
49359 2007-06-29  Simon Josefsson  <simon@josefsson.org>
49360
49361         * build-aux/maint.mk (POURL): Use translationproject.org.
49362
49363 2007-06-27  Simon Josefsson  <simon@josefsson.org>
49364             Bruno Haible  <bruno@clisp.org>
49365
49366         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
49367         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
49368         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
49369         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
49370         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
49371
49372 2007-06-27  Bruno Haible  <bruno@clisp.org>
49373
49374         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
49375         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
49376
49377 2007-06-26  Karl Berry  <karl@gnu.org>
49378
49379         * MODULES.html.sh: remove xreadlink-with-size.
49380
49381 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49382
49383         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
49384         method that I hope also handles the double-include problem noted
49385         by Bruno Haible in
49386         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
49387
49388 2007-06-23  Bruno Haible  <bruno@clisp.org>
49389
49390         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49391         Don't let the 'mostlyclean' target fail if the last subdirectory could
49392         not be removed.
49393         Reported by Karl Berry.
49394
49395 2007-06-23  Bruno Haible  <bruno@clisp.org>
49396
49397         * gnulib-tool (echo): Add a speedier workaround for ksh.
49398         * tests/test-echo.sh: Likewise.
49399
49400 2007-06-23  Bruno Haible  <bruno@clisp.org>
49401
49402         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
49403         * tests/test-echo.sh: Likewise.
49404
49405 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49406
49407         * gnulib-tool (IFS): Initialize early, so we don't set it to
49408         empty later.
49409         (self_abspathname): Rewrite algorithm to set it, reindent.
49410         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
49411         (func_create_megatestdir): Merge some sed scripts.
49412
49413 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
49414
49415         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
49416         exposed by Sun Studio 11 cc on Solaris 8.
49417
49418 2007-06-22  Bruno Haible  <bruno@clisp.org>
49419
49420         * gnulib-tool (echo): Ensure the echo primitive does not interpret
49421         backslashes.
49422         * tests/test-echo.sh: New file.
49423
49424 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49425
49426         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
49427         simplify `sed_replace_build_aux' scripts, they are portable but
49428         echoing them with `echo' is not.
49429         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
49430
49431 2007-06-21  Karl Berry  <karl@gnu.org>
49432
49433         * config/srclist.txt: guess we can't handle the licenses via
49434         srclist at the moment.
49435
49436 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
49437
49438         * MODULES.html.sh: Add include_next.
49439         * modules/include_next: New file.
49440
49441 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
49442
49443         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
49444         INCLUDE_NEXT.
49445         (gl_CHECK_NEXT_HEADERS): New macro.
49446         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
49447         the obsolescent gl_ABSOLUTE_HEADER.
49448         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
49449         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
49450         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
49451         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
49452         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
49453         * m4/math_h.m4 (gl_MATH_H): Likewise.
49454         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
49455         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
49456         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
49457         * m4/stdint.m4 (gl_STDINT_H): Likewise.
49458         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
49459         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
49460         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
49461         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
49462         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
49463         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
49464         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
49465         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
49466         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
49467         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49468         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
49469         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
49470         * m4/inttypes.m4 (gl_INTTYPES_H): Define
49471         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
49472         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
49473         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
49474         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
49475         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
49476         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
49477         * lib/float_.h: Likewise.
49478         * lib/inttypes_.h: Likewise.
49479         * lib/math_.h: Likewise.
49480         * lib/search_.h: Likewise.
49481         * lib/signal_.h: Likewise.
49482         * lib/stdint_.h: Likewise.
49483         * lib/stdio_.h: Likewise.
49484         * lib/stdlib_.h: Likewise.
49485         * lib/string_.h: Likewise.
49486         * lib/sys_stat_.h: Likewise.
49487         * lib/sys_time_.h: Likewise.
49488         * lib/time_.h: Likewise.
49489         * lib/unistd_.h: Likewise.
49490         * lib/wchar_.h: Likewise.
49491         * lib/wctype_.h: Likewise.
49492         * lib/dirent_.h: Likewise.
49493         * lib/iconv_.h: Likewise.
49494         * lib/locale_.h: Likewise.
49495         * lib/netinet_in_.h: Likewise.
49496         * lib/sys_select_.h: Likewise.
49497         * lib/sys_socket_.h: Likewise.
49498         * lib/sysexits_.h: Likewise.
49499         * modules/fcntl (Depends-on): Depend on include_next, not
49500         absolute_header.
49501         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
49502         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
49503         * modules/fchdir: Likewise.
49504         * modules/float: Likewise.
49505         * modules/iconv_open: Likewise.
49506         * modules/inttypes: Likewise.
49507         * modules/locale: Likewise.
49508         * modules/math: Likewise.
49509         * modules/netinet_in: Likewise.
49510         * modules/search: Likewise.
49511         * modules/signal: Likewise.
49512         * modules/stdint: Likewise.
49513         * modules/stdio: Likewise.
49514         * modules/stdlib: Likewise.
49515         * modules/string: Likewise.
49516         * modules/sys_select: Likewise.
49517         * modules/sys_socket: Likewise.
49518         * modules/sys_stat: Likewise.
49519         * modules/sys_time: Likewise.
49520         * modules/sysexits: Likewise.
49521         * modules/time: Likewise.
49522         * modules/unistd: Likewise.
49523         * modules/wchar: Likewise.
49524         * modules/wctype: Likewise.
49525         * modules/sys_stat: Change maintainer to "all".
49526         * modules/unistd: Likewise.
49527
49528 2007-06-20  Karl Berry  <karl@gnu.org>
49529
49530         * config/srclist.txt: track www changes in license files.
49531
49532 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
49533
49534         * build-aux/bootstrap: Remove stray dot.
49535         Make sure build_aux settings are honored when linking
49536         gnulib_extra_files.
49537
49538 2007-06-19  Eric Blake  <ebb9@byu.net>
49539
49540         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
49541         Allow compilation on cygwin.
49542
49543 2007-06-19  Jim Meyering  <jim@meyering.net>
49544
49545         xreadlink-with-size: Remove module.  No longer used.
49546         Ex-callers now use xreadlink or mreadlink-with-size.
49547         * modules/xreadlink-with-size: Remove module.
49548         * lib/xreadlink-with-size.c: Remove file.
49549         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
49550         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
49551         just before the function definition *is* accurate.
49552
49553         Eliminate one way canonicalize_filename_mode could exit.
49554         * lib/canonicalize.c (canonicalize_filename_mode):
49555         Use mreadlink_with_size, not xreadlink_with_size.
49556
49557 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
49558
49559         Detect porting problems to FreeBSD/arm, which has time_t wider than
49560         long int.  Original problem reported for GNU diff by Xin Li in
49561         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
49562         * modules/getdate (Depends-on): Add intprops, verify.
49563         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
49564         is an integer type no wider than long int.
49565
49566 2007-06-18  Jim Meyering  <jim@meyering.net>
49567
49568         New module: mreadlink-with-size.
49569         * MODULES.html.sh: Add mreadlink-with-size.
49570         * modules/mreadlink-with-size: New module
49571         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
49572         not xreadlink-with-size.
49573         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
49574
49575 2007-06-16  Bruno Haible  <bruno@clisp.org>
49576
49577         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
49578         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
49579         Reported by Gary V. Vaughan <gary@gnu.org>.
49580
49581 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
49582
49583         Revamp lchown so that it lives in unistd.h where it belongs.
49584         * lib/lchown.h: Remove.
49585         * lib/dirchownmod.c: Don't include lib/lchown.h.
49586         * lib/fchownat.c: Likewise.
49587         * lib/openat.c: Likewise.
49588         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
49589         does not follow symlinks.
49590         (EOPNOTSUPP): Define if not defined.
49591         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
49592         is defined to 0.
49593         (lchown): New decl.
49594         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
49595         Do not check for lchown decl.
49596         Set REPLACE_LCHOWN.
49597         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
49598         REPLACE_LCHOWN.
49599         * modules/chown: Make it clear it follows symlinks.
49600         * modules/lchown: Make it clear it doesn't follow symlinks.
49601         (Files): Remove lib/lchown.h
49602         (Depends-on): Add unistd.
49603         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
49604         (Include): Include <unistd.h>, not "lchown.h".
49605         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
49606         REPLACE_LCHOWN.
49607
49608 2007-06-15  Jim Meyering  <jim@meyering.net>
49609
49610         Change license (GPL to LGPL) of fsusage and dependents.
49611         * modules/fsusage (License): Change to LGPL.
49612         * modules/full-read (License): Likewise.
49613         * modules/full-write (License): Likewise.
49614         * modules/safe-read (License): Likewise.
49615         * modules/safe-write (License): Likewise.
49616
49617 2007-06-14  Ben Pfaff  <blp@gnu.org>
49618
49619         Missing part of allocsa -> malloca transition.
49620         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
49621         gl_MALLOCA.
49622
49623 2007-06-12  Bruno Haible  <bruno@clisp.org>
49624
49625         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
49626         to ia64, x86_64, i386.
49627         Reported by Eric Blake.
49628
49629 2007-06-12  Bruno Haible  <bruno@clisp.org>
49630
49631         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
49632         cross-compiling to x86_64.
49633
49634 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
49635
49636         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
49637         glitch reported by Ralf Wildenhues in
49638         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
49639
49640         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
49641         Vin Shelton.
49642
49643 2007-06-11  Bruno Haible  <bruno@clisp.org>
49644
49645         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
49646         replacement string.
49647         Reported by Eric Blake.
49648
49649 2007-06-10  Bruno Haible  <bruno@clisp.org>
49650
49651         Prepare vasnprintf code for use with Unicode strings.
49652         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
49653         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
49654         TYPE_U32_STRING.
49655         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
49656         a_u32_string variants.
49657         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49658         * lib/printf-args.c: Don't include config.h and the specification
49659         header if PRINTF_FETCHARGS is already defined.
49660         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
49661         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
49662         TYPE_U16_STRING, TYPE_U32_STRING.
49663         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
49664         u16_directive, u16_directives, u32_directive, u32_directives): New
49665         types.
49666         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
49667         New declarations.
49668         * lib/printf-parse.c: Don't include config.h and the specification
49669         header if PRINTF_PARSE is already defined. Eliminate the set of
49670         parameters for WIDE_CHAR_VERSION; the user of this file must provide
49671         them now. Include c-ctype.h.
49672         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
49673         directive and CHAR_T_ONLY_ASCII.
49674         * lib/vasnprintf.c: Don't include config.h and the specification header
49675         if VASNPRINTF is already defined.
49676         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
49677         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
49678         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
49679         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
49680         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
49681         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
49682         code accordingly.
49683         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
49684         pad_ourselves also in this case, with the 'c' and 's' directives, and
49685         with a different notion of "width".
49686         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
49687
49688 2007-06-10  Bruno Haible  <bruno@clisp.org>
49689
49690         * modules/unistr/u32-mbsnlen: New file.
49691         * lib/unistr/u32-mbsnlen.c: New file.
49692
49693         * modules/unistr/u16-mbsnlen: New file.
49694         * lib/unistr/u16-mbsnlen.c: New file.
49695
49696         * modules/unistr/u8-mbsnlen: New file.
49697         * lib/unistr/u8-mbsnlen.c: New file.
49698
49699         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
49700         declarations.
49701
49702 2007-06-10  Bruno Haible  <bruno@clisp.org>
49703
49704         * lib/string_.h (mbsnlen): New declaration.
49705         * lib/mbsnlen.c: New file.
49706         * m4/mbsnlen.m4: New file.
49707         * modules/mbsnlen: New file.
49708         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
49709         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
49710         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
49711
49712 2007-06-10  Bruno Haible  <bruno@clisp.org>
49713
49714         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
49715
49716 2007-06-10  Bruno Haible  <bruno@clisp.org>
49717
49718         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
49719         * lib/mbuiter.h: Likewise.
49720
49721 2007-06-10  Bruno Haible  <bruno@clisp.org>
49722
49723         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
49724         declaration.
49725
49726 2007-06-10  Karl Berry  <karl@gnu.org>
49727
49728         * config/srclist.txt: remove gettext entries, Bruno prefers
49729         to update individually.
49730
49731 2007-06-10  Bruno Haible  <bruno@clisp.org>
49732
49733         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
49734         'maxlen'. Ensure only length + width bytes are allocated, not
49735         length + 1 + width.
49736
49737 2007-06-09  Bruno Haible  <bruno@clisp.org>
49738
49739         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
49740         (CHAR_T): Remove macro.
49741         (VASNPRINTF): Update.
49742
49743 2007-06-09  Bruno Haible  <bruno@clisp.org>
49744
49745         * MODULES.html.sh (Unicode string functions): Add the new modules.
49746
49747         * modules/uniconv/u32-conv-to-enc: New file.
49748         * lib/uniconv/u32-conv-to-enc.c: New file.
49749         * modules/uniconv/u32-conv-to-enc-tests: New file.
49750         * tests/uniconv/test-u32-conv-to-enc.c: New file.
49751
49752         * modules/uniconv/u16-conv-to-enc: New file.
49753         * lib/uniconv/u16-conv-to-enc.c: New file.
49754         * lib/uniconv/u-conv-to-enc.h: New file.
49755         * modules/uniconv/u16-conv-to-enc-tests: New file.
49756         * tests/uniconv/test-u16-conv-to-enc.c: New file.
49757
49758         * modules/uniconv/u8-conv-to-enc: New file.
49759         * lib/uniconv/u8-conv-to-enc.c: New file.
49760         * modules/uniconv/u8-conv-to-enc-tests: New file.
49761         * tests/uniconv/test-u8-conv-to-enc.c: New file.
49762
49763         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
49764         u32_conv_to_encoding): New declarations.
49765
49766 2007-06-09  Bruno Haible  <bruno@clisp.org>
49767
49768         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
49769
49770 2007-06-09  Bruno Haible  <bruno@clisp.org>
49771
49772         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
49773         * modules/malloca: Renamed from modules/allocsa, updated.
49774         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
49775         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
49776         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
49777         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
49778         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
49779         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
49780         * modules/xmalloca: Renamed from modules/xallocsa, updated.
49781         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
49782         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
49783         * modules/c-strcasestr (Depends-on): Update.
49784         * lib/c-strcasestr.c: Update.
49785         * modules/c-strstr (Depends-on): Update.
49786         * lib/c-strstr.c: Update.
49787         * modules/canonicalize-lgpl (Depends-on): Update.
49788         * lib/canonicalize-lgpl.c: Update.
49789         * modules/clean-temp (Depends-on): Update.
49790         * lib/clean-temp.c: Update.
49791         * modules/csharpcomp (Depends-on): Update.
49792         * lib/csharpcomp.c: Update.
49793         * modules/csharpexec (Depends-on): Update.
49794         * lib/csharpexec.c: Update.
49795         * modules/javacomp (Depends-on): Update.
49796         * lib/javacomp.c: Update.
49797         * modules/javaexec (Depends-on): Update.
49798         * lib/javaexec.c: Update.
49799         * modules/mbscasestr (Depends-on): Update.
49800         * lib/mbscasestr.c: Update.
49801         * modules/mbsstr (Depends-on): Update.
49802         * lib/mbsstr.c: Update.
49803         * modules/setenv (Depends-on): Update.
49804         * lib/setenv.c: Update.
49805         * modules/strcasestr (Depends-on): Update.
49806         * lib/strcasestr.c: Update.
49807         * modules/striconveha (Depends-on): Update.
49808         * lib/striconveha.c: Update.
49809         * modules/relocatable-prog-wrapper (Files): Update.
49810         * lib/relocwrapper.c: Update.
49811         * build-aux/install-reloc: Update.
49812         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
49813
49814 2007-06-08  Bruno Haible  <bruno@clisp.org>
49815
49816         Port to uClibc.
49817         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
49818         * lib/fpurge.c (fpurge): Likewise.
49819         * lib/freading.c (freading): Likewise.
49820         * lib/fseeko.c (rpl_fseeko): Likewise.
49821         * lib/fseterr.c (fseterr): Likewise.
49822         * lib/fwriting.c (fwriting): Likewise.
49823         * tests/test-fflush.c (main): Avoid a failure on uClibc.
49824
49825 2007-06-08  Bruno Haible  <bruno@clisp.org>
49826
49827         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
49828         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
49829         * modules/gettext (Files): Add m4/intlmacosx.m4.
49830
49831 2007-06-07  Bruno Haible  <bruno@clisp.org>
49832
49833         * modules/localename-tests: New file.
49834         * tests/test-localename.c: New file.
49835
49836         New module 'localename'.
49837         * lib/localename.h: New file.
49838         * lib/localename.c: New file, from GNU gettext.
49839         * m4/localename.m4: New file.
49840         * modules/localename: New file.
49841
49842 2007-06-07  Bruno Haible  <bruno@clisp.org>
49843
49844         Work around the lack of <wchar.h> on some builds of uClibc.
49845         * doc/headers/wchar.texi: Update.
49846         * lib/wchar_.h: Include <wchar.h> only if it exists.
49847         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
49848         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
49849         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
49850         doesn't exist.
49851         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
49852         * modules/mbfile (Depends-on): Add wchar.
49853         * modules/mbiter (Depends-on): Likewise.
49854         * modules/mbuiter (Depends-on): Likewise.
49855         Reported by Simon Josefsson.
49856
49857 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
49858
49859         Work around problem reported by Steven M. Schweda in
49860         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
49861         Tru64 5.1B with the Compaq compiler environment installed declares
49862         an 'isblank' function but does not define it in the C library.
49863         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
49864         * lib/regex_internal.h (isblank): Likewise.
49865         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
49866         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49867
49868 2007-06-05  Bruno Haible  <bruno@clisp.org>
49869
49870         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
49871         ia64.
49872         * modules/printf-safe: New file.
49873         * modules/fprintf-posix (Depends-on): Add printf-safe.
49874         * modules/printf-posix (Depends-on): Likewise.
49875         * modules/snprintf-posix (Depends-on): Likewise.
49876         * modules/sprintf-posix (Depends-on): Likewise.
49877         * modules/vasnprintf-posix (Depends-on): Likewise.
49878         * modules/vasprintf-posix (Depends-on): Likewise.
49879         * modules/vfprintf-posix (Depends-on): Likewise.
49880         * modules/vprintf-posix (Depends-on): Likewise.
49881         * modules/vsnprintf-posix (Depends-on): Likewise.
49882         * modules/vsprintf-posix (Depends-on): Likewise.
49883         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
49884         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
49885         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
49886         "no" on i386, x86_64, ia64.
49887         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
49888         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49889         on i386, x86_64, ia64.
49890         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
49891         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49892         on i386, x86_64, ia64.
49893         * tests/test-vasnprintf-posix.c: Include float.h.
49894         (LDBL80_WORDS): New macro.
49895         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49896         on i386, x86_64, ia64.
49897         * tests/test-vasprintf-posix.c: Include float.h.
49898         (LDBL80_WORDS): New macro.
49899         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
49900         on i386, x86_64, ia64.
49901         * tests/test-snprintf-posix.c: Include float.h.
49902         * tests/test-sprintf-posix.c: Likewise.
49903         * tests/test-vsnprintf-posix.c: Likewise.
49904         * tests/test-vsprintf-posix.c: Likewise.
49905
49906 2007-06-05  Bruno Haible  <bruno@clisp.org>
49907
49908         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
49909         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
49910         non-IEEE numbers on i386, x86_64, ia64.
49911         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
49912         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
49913         * tests/test-isnanl.h: Include float.h.
49914         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
49915
49916 2007-06-05  Bruno Haible  <bruno@clisp.org>
49917
49918         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
49919         also the %a / %A. Handle the %a / %A code before this extra handling.
49920
49921 2007-06-05  Bruno Haible  <bruno@clisp.org>
49922
49923         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
49924         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
49925
49926 2007-06-05  Bruno Haible  <bruno@clisp.org>
49927
49928         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
49929         typo in variable name.
49930
49931 2007-06-05  Eric Blake  <ebb9@byu.net>
49932
49933         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
49934         Reported by Simon Josefsson.
49935
49936 2007-06-04  Bruno Haible  <bruno@clisp.org>
49937
49938         Avoid test failures on some PowerPC platforms.
49939         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
49940         Define differently for PowerPC.
49941         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
49942         Reported by Gary V. Vaughan <gary@gnu.org>.
49943
49944 2007-06-02  Bruno Haible  <bruno@clisp.org>
49945
49946         Fix test-stdint failure on FreeBSD/ia64.
49947         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
49948         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
49949         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
49950         * doc/headers/stdint.texi: Update.
49951
49952 2007-06-01  Bruno Haible  <bruno@clisp.org>
49953
49954         * tests/test-binary-io.c (main): Pass a third argument to open().
49955         Reported by Gary V. Vaughan <gary@gnu.org>.
49956
49957 2007-06-01  Bruno Haible  <bruno@clisp.org>
49958
49959         * doc/functions/frexpl.texi: Update for mingw.
49960
49961 2007-06-01  Bruno Haible  <bruno@clisp.org>
49962
49963         * tests/test-lseek.c (main): Disable test of errno for invalid third
49964         argument.
49965         * doc/functions/lseek.texi: Update.
49966         Reported by Gary V. Vaughan <gary@gnu.org>.
49967
49968 2007-05-28  Bruno Haible  <bruno@clisp.org>
49969
49970         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
49971
49972 2007-05-31  Eric Blake  <ebb9@byu.net>
49973
49974         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
49975         cross compiling.
49976
49977 2007-05-30  Eric Blake  <ebb9@byu.net>
49978         and Bruno Haible  <bruno@clisp.org>
49979
49980         Work around mingw test failures exposed by m4-1.4.9b.
49981         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
49982         * tests/test-unistd.c: Disable uid_t and git_t tests for the
49983         moment.
49984
49985 2007-05-30  Bruno Haible  <bruno@clisp.org>
49986
49987         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
49988         assuming that they are closed. Needed on HP-UX 11.
49989
49990 2007-05-29  Bruno Haible  <bruno@clisp.org>
49991
49992         Fix a problem with #include_next.
49993         * lib/dirent_.h: Split the double-inclusion guard.
49994         * lib/fcntl_.h: Likewise.
49995         * lib/float_.h: Likewise.
49996         * lib/iconv_.h: Likewise.
49997         * lib/inttypes_.h: Likewise.
49998         * lib/locale_.h: Likewise.
49999         * lib/math_.h: Likewise.
50000         * lib/netinet_in_.h: Likewise.
50001         * lib/search_.h: Likewise.
50002         * lib/signal_.h: Likewise.
50003         * lib/stdint_.h: Likewise.
50004         * lib/stdio_.h: Likewise.
50005         * lib/stdlib_.h: Likewise.
50006         * lib/string_.h: Likewise.
50007         * lib/sys_select_.h: Likewise.
50008         * lib/sys_socket_.h: Likewise.
50009         * lib/sys_stat_.h: Likewise.
50010         * lib/sys_time_.h: Likewise.
50011         * lib/sysexits_.h: Likewise.
50012         * lib/time_.h: Likewise.
50013         * lib/unistd_.h: Likewise.
50014         * lib/wchar_.h: Likewise.
50015         * lib/wctype_.h: Likewise.
50016
50017 2007-05-29  Bruno Haible  <bruno@clisp.org>
50018
50019         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
50020         for the moment.
50021
50022 2007-05-29  Bruno Haible  <bruno@clisp.org>
50023
50024         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
50025         invocation.
50026         Reported by Eric Blake.
50027
50028 2007-05-29  Bruno Haible  <bruno@clisp.org>
50029
50030         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
50031         compiling case.
50032
50033 2007-05-29  Eric Blake  <ebb9@byu.net>
50034             Bruno Haible  <bruno@clisp.org>
50035
50036         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
50037         cross compiles.
50038
50039 2007-05-28  Eric Blake  <ebb9@byu.net>
50040
50041         * modules/closein-tests (test_closein_LDADD): Support test on
50042         cygwin with libtool.
50043
50044 2007-05-28  Bruno Haible  <bruno@clisp.org>
50045
50046         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
50047         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
50048         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
50049         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
50050         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
50051         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
50052         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
50053         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
50054         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
50055
50056 2007-05-28  Eric Blake  <ebb9@byu.net>
50057
50058         Unconditionally include <config.h> in unit tests.
50059         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
50060         * tests/test-allocsa.c, tests/test-arcfour.c,
50061         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
50062         tests/test-array_list.c, tests/test-array_oset.c,
50063         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
50064         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
50065         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
50066         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
50067         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
50068         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
50069         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
50070         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
50071         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
50072         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
50073         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
50074         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
50075         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
50076         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
50077         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
50078         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
50079         test-md5.c, test-memmem.c, test-printf-posix.c,
50080         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
50081         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
50082         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
50083         test-strcasestr.c, test-striconv.c, test-striconveh.c,
50084         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
50085         test-vasnprintf-posix2.c, test-vasnprintf.c,
50086         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
50087         test-vfprintf-posix.c, test-vprintf-posix.c,
50088         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
50089         test-xvasprintf.c: Likewise.
50090
50091 2007-05-28  Bruno Haible  <bruno@clisp.org>
50092
50093         * gnulib-tool (func_import): Remember the --with-tests command-line
50094         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
50095         Reported by Eric Blake.
50096
50097 2007-05-28  Bruno Haible  <bruno@clisp.org>
50098
50099         * modules/ftell-tests: New file.
50100         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
50101         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
50102
50103         * lib/ftell.c: New file.
50104         * modules/ftell: New file.
50105         * m4/ftell.m4: New file.
50106         * doc/functions/ftell.texi: Update.
50107         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
50108         REPLACE_FTELL.
50109         * lib/stdio_.h (rpl_ftell): New declaration.
50110         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
50111         REPLACE_FTELL.
50112
50113 2007-05-28  Eric Blake  <ebb9@byu.net>
50114
50115         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
50116
50117 2007-05-28  Bruno Haible  <bruno@clisp.org>
50118
50119         * modules/fseek-tests: New file.
50120         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
50121         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
50122
50123         * lib/fseek.c: New file.
50124         * modules/fseek: New file.
50125         * m4/fseek.m4: New file.
50126         * doc/functions/fseek.texi: Update.
50127         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
50128         REPLACE_FSEEK.
50129         * lib/stdio_.h (rpl_fseek): New declaration.
50130         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
50131         REPLACE_FSEEK.
50132
50133 2007-05-28  Bruno Haible  <bruno@clisp.org>
50134
50135         * lib/stdio_.h (fflush): More comments.
50136
50137 2007-05-28  Bruno Haible  <bruno@clisp.org>
50138
50139         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
50140         runtime test.
50141
50142 2007-05-28  Eric Blake  <ebb9@byu.net>
50143
50144         Improve lseek module.
50145         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
50146         * lib/unistd_.h (lseek): Scale back link warning message.
50147         * tests/test-lseek.c: Beef up test.
50148         * tests/test-lseek.sh: Exercise more facets of lseek.
50149         Reported by Bruno Haible.
50150
50151 2007-05-28  Bruno Haible  <bruno@clisp.org>
50152
50153         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
50154         to define.
50155
50156 2007-05-27  Bruno Haible  <bruno@clisp.org>
50157
50158         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
50159
50160 2007-05-27  Bruno Haible  <bruno@clisp.org>
50161
50162         * modules/openmp: New file.
50163         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
50164         Noah Misch.
50165
50166 2007-05-26  Bruno Haible  <bruno@clisp.org>
50167
50168         * modules/chdir-long (Depends-on): Add fchdir.
50169         * modules/chdir-safer (Depends-on): Likewise.
50170         * modules/fts (Depends-on): Likewise.
50171         * modules/fts-lgpl (Depends-on): Likewise.
50172         * modules/openat (Depends-on): Likewise.
50173         * modules/savewd (Depends-on): Likewise.
50174
50175 2007-05-24  Eric Blake  <ebb9@byu.net>
50176
50177         Fix lseek on mingw.
50178         * modules/lseek: New module.
50179         * m4/lseek.m4: New file.
50180         * lib/lseek.c: New file.
50181         * modules/lseek-tests: New file.
50182         * tests/test-lseek.c: New file.
50183         * tests/test-lseek.sh: New file.
50184         * MODULES.html.sh: Document lseek module.
50185         * modules/fflush (Depends-on): Add lseek, fseeko.
50186         * modules/fseeko (Depends-on): Likewise.
50187         * modules/ftello (Depends-on): Likewise.
50188         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
50189         broken.
50190         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
50191         broken.
50192         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
50193         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
50194         * lib/ftello.c (rpl_ftello): Likewise.
50195         * tests/test-fseeko.c (main): Test this.
50196         * tests/test-fseeko.sh: Likewise.
50197         * tests/test-ftello.c (main): Likewise.
50198         * tests/test-ftello.sh: Likewise.
50199         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
50200         implies replacing fseek.
50201         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
50202         HAVE_FTELLO.
50203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
50204         * modules/unistd (Makefile.am): Likewise.
50205         * lib/unistd_.h (lseek): Declare a replacement.
50206         * doc/functions/lseek.texi (lseek): Document this fix.
50207         * doc/functions/fseek.texi (fseek): Likewise.
50208         * doc/functions/ftell.texi (ftell): Likewise.
50209
50210 2007-05-24  Bruno Haible  <bruno@clisp.org>
50211
50212         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
50213         in the printed representation of a NaN.
50214         * tests/test-vasprintf-posix.c (test_function): Likewise.
50215         * tests/test-snprintf-posix.h (test_function): Likewise.
50216         * tests/test-sprintf-posix.h (test_function): Likewise.
50217         Reported by Eric Blake.
50218
50219 2007-05-23  Eric Blake  <ebb9@byu.net>
50220
50221         Fix fseeko/ftello on cygwin 1.5.24.
50222         * doc/functions/fseeko.texi (fseeko): Document the fix.
50223         * doc/functions/ftello.texi (ftello): Document the fix.
50224         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
50225         * doc/functions/stdout.text (stdout): New file.
50226         * doc/functions/stderr.text (stderr): New file.
50227         * doc/gnulib.texi (Function Substitutes): Use new files.
50228         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
50229         prior to 1.7.0.
50230         * tests/test-ftello.c (main): Likewise for ftello.
50231         * tests/test-fseeko.sh: New file.
50232         * tests/test-ftello.sh: New file.
50233         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
50234         with seekable stdin.
50235         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
50236         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
50237         (gl_REPLACE_FSEEKO): New macro.
50238         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
50239         * modules/fseeko (Files): Distribute fseeko.c.
50240         * modules/ftello (Files): Distribute ftello.c.
50241         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
50242         mode.
50243         * lib/ftello.c (rpl_ftello): New file.
50244         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
50245         fseeko, ftello.
50246         (gl_STDIN_LARGE_OFFSET): New macro.
50247         * modules/stdio (Makefile.am): Perform the replacement.
50248         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
50249
50250 2007-05-23  Bruno Haible  <bruno@clisp.org>
50251
50252         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
50253         GNULIB_POSIXCHECK is defined.
50254
50255 2007-05-21  Bruno Haible  <bruno@clisp.org>
50256
50257         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
50258         Check also the output for NaN arguments. When cross-compiling, guess
50259         no on IRIX.
50260         * lib/vasnprintf.c: Update comments.
50261         * tests/test-vasnprintf-posix.c (strisnan): New function.
50262         (test_function): Use it.
50263         * tests/test-vasprintf-posix.c (strisnan): New function.
50264         (test_function): Use it.
50265         * tests/test-snprintf-posix.h (strisnan): New function.
50266         (test_function): Use it.
50267         * tests/test-sprintf-posix.h (strisnan): New function.
50268         (test_function): Use it.
50269         Reported by Eric Blake.
50270
50271 2007-05-20  Bruno Haible  <bruno@clisp.org>
50272
50273         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
50274         numbers that fails on BeOS.
50275         * doc/functions/frexpl.texi: Update.
50276
50277 2007-05-20  Jim Meyering  <jim@meyering.net>
50278
50279         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
50280         forced upon us by glibc-2.6.
50281
50282 2007-05-20  Bruno Haible  <bruno@clisp.org>
50283
50284         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
50285         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
50286         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
50287         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
50288         NEED_PRINTF_INFINITE.
50289         (is_infinitel): New function.
50290         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
50291         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
50292         gl_PREREQ_VASNPRINTF_INFINITE.
50293         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
50294         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50295         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
50296         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
50297         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
50298         gl_PREREQ_VASNPRINTF_INFINITE.
50299         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50300         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50301         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50302         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50303         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50304         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50305         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50306         * doc/functions/fprintf.texi: Update.
50307         * doc/functions/printf.texi: Update.
50308         * doc/functions/snprintf.texi: Update.
50309         * doc/functions/sprintf.texi: Update.
50310         * doc/functions/vfprintf.texi: Update.
50311         * doc/functions/vprintf.texi: Update.
50312         * doc/functions/vsnprintf.texi: Update.
50313         * doc/functions/vsprintf.texi: Update.
50314
50315 2007-05-20  Bruno Haible  <bruno@clisp.org>
50316
50317         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
50318         was not found in libc.
50319         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50320
50321 2007-05-20  Bruno Haible  <bruno@clisp.org>
50322
50323         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50324         printed as "-nan" instead of "nan".
50325         * tests/test-vasprintf-posix.c (test_function): Likewise.
50326         * tests/test-snprintf-posix.h (test_function): Likewise.
50327         * tests/test-sprintf-posix.h (test_function): Likewise.
50328         Needed for HP-UX 11.
50329
50330 2007-05-20  Jim Meyering  <jim@meyering.net>
50331
50332         Fix buggy test for the fchownat-deref bug.
50333         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
50334         symlink required for the run-test.  Without it, this test would
50335         always declare that fchownat doesn't work, and client code would
50336         unnecessarily use the replacement function with fixed libc.
50337         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
50338         Reported by Greg Schafer.
50339
50340 2007-05-19  Bruno Haible  <bruno@clisp.org>
50341
50342         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
50343         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
50344         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
50345         Needed for IRIX 6.5 and Solaris 2.5.1.
50346
50347 2007-05-19  Bruno Haible  <bruno@clisp.org>
50348
50349         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
50350         (test_function): Skip tests involving -0.0 on platforms where
50351         -0.0 = 0.0.
50352         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
50353         (test_function): Skip tests involving -0.0 on platforms where
50354         -0.0 = 0.0.
50355         * tests/test-snprintf-posix.h (have_minus_zero): New function.
50356         (test_function): Skip tests involving -0.0 on platforms where
50357         -0.0 = 0.0.
50358         * tests/test-sprintf-posix.h (have_minus_zero): New function.
50359         (test_function): Skip tests involving -0.0 on platforms where
50360         -0.0 = 0.0.
50361         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
50362         tests.
50363         * tests/test-printf-posix.h (test_function): Likewise.
50364         * tests/test-printf-posix.output: Remove all -0.0 related results.
50365         Needed for IRIX 6.5.
50366
50367 2007-05-19  Bruno Haible  <bruno@clisp.org>
50368
50369         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
50370         printed as "nan0x7fffffff" instead of "nan".
50371         * tests/test-vasprintf-posix.c (test_function): Likewise.
50372         * tests/test-snprintf-posix.h (test_function): Likewise.
50373         * tests/test-sprintf-posix.h (test_function): Likewise.
50374         * tests/test-fprintf-posix.h (NaN): Remove macro.
50375         (test_function): Remove all NaN related tests.
50376         * tests/test-printf-posix.h (NaN): Remove macro.
50377         (test_function): Remove all NaN related tests.
50378         * tests/test-printf-posix.output: Remove all NaN related results.
50379         Needed for IRIX 6.5.
50380
50381 2007-05-19  Bruno Haible  <bruno@clisp.org>
50382
50383         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
50384         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
50385
50386 2007-05-19  Bruno Haible  <bruno@clisp.org>
50387
50388         * lib/float_.h: New file.
50389         * m4/float_h.m4: New file.
50390         * modules/float: New file.
50391         * modules/isnanl (Dependencies): Add float.
50392         * modules/isnanl-nolibm (Dependencies): Likewise.
50393         * modules/mathl (Dependencies): Likewise.
50394         * modules/printf-frexpl (Dependencies): Likewise.
50395         * modules/signbit (Dependencies): Likewise.
50396         * modules/vasnprintf (Dependencies): Likewise.
50397         * doc/headers/float.texi: Update.
50398
50399 2007-05-19  Jim Meyering  <jim@meyering.net>
50400
50401         * lib/utimens.c (gl_futimens): Rename from futimens,
50402         now that glibc-2.6 declares futimens.
50403         * lib/utimens.h: Likewise.
50404
50405 2007-05-19  Bruno Haible  <bruno@clisp.org>
50406
50407         Avoid test failures on mingw.
50408         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
50409         * tests/test-printf-posix.sh: Likewise.
50410         * tests/test-vfprintf-posix.sh: Likewise.
50411         * tests/test-vprintf-posix.sh: Likewise.
50412
50413 2007-05-19  Bruno Haible  <bruno@clisp.org>
50414
50415         Fix *printf result for NaN, Inf, -0.0 on mingw.
50416         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
50417         * lib/vasnprintf.c: Include math.h and isnan.h.
50418         (is_infinite_or_zero): New function.
50419         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
50420         values in the %f, %F, %e, %E, %g, %G directives.
50421         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
50422         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50423         gl_PRINTF_INFINITE and test its result. Invoke
50424         gl_PREREQ_VASNPRINTF_INFINITE.
50425         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50426         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50427         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50428         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50429         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50430         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50431         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50432         * doc/functions/fprintf.texi: Update.
50433         * doc/functions/printf.texi: Update.
50434         * doc/functions/snprintf.texi: Update.
50435         * doc/functions/sprintf.texi: Update.
50436         * doc/functions/vfprintf.texi: Update.
50437         * doc/functions/vprintf.texi: Update.
50438         * doc/functions/vsnprintf.texi: Update.
50439         * doc/functions/vsprintf.texi: Update.
50440
50441 2007-05-19  Bruno Haible  <bruno@clisp.org>
50442
50443         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
50444         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
50445         Instead of multiplying with 10^k, set extra_zeroes to k.
50446         (scale10_round_long_double): Remove function.
50447
50448 2007-05-18  Bruno Haible  <bruno@clisp.org>
50449
50450         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
50451         introduced on 2007-05-06.
50452
50453 2007-05-18  Bruno Haible  <bruno@clisp.org>
50454
50455         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
50456         %g directives.
50457         * tests/test-vasprintf-posix.c (test_function): Likewise.
50458         * tests/test-snprintf-posix.h (test_function): Likewise.
50459         * tests/test-sprintf-posix.h (test_function): Likewise.
50460
50461 2007-05-18  Bruno Haible  <bruno@clisp.org>
50462
50463         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
50464         (strmatch): New function.
50465         (test_function): Test the %f directive on numbers of various exponents.
50466         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
50467         (strmatch): New function.
50468         (test_function): Test the %f directive on numbers of various exponents.
50469         * tests/test-snprintf-posix.h (strmatch): New function.
50470         (test_function): Test the %f directive on numbers of various exponents.
50471         * tests/test-sprintf-posix.h (strmatch): New function.
50472         (test_function): Test the %f directive on numbers of various exponents.
50473         * tests/test-snprintf-posix.c (SIZEOF): New macro.
50474         * tests/test-sprintf-posix.c (SIZEOF): New macro.
50475         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
50476         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
50477
50478 2007-05-18  Bruno Haible  <bruno@clisp.org>
50479
50480         Add support for 'long double' number output.
50481         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
50482         * lib/vasnprintf.c: Include math.h and float+.h.
50483         (mp_limb_t): New type.
50484         (GMP_LIMB_BITS): New macro.
50485         (mp_twolimb_t): New type.
50486         (GMP_TWOLIMB_BITS): New macro.
50487         (mpn_t): New type.
50488         (multiply, divide, convert_to_decimal, decode_long_double,
50489         scale10_round_long_double, scale10_round_decimal_long_double,
50490         floorlog10l): New functions.
50491         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
50492         for the %f, %F, %e, %E, %g, %G directives.
50493         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
50494         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50495         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
50496         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
50497         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50498         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50499         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50500         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50501         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50502         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50503         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50504         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
50505         * modules/snprintf-posix (Depends-on): Likewise.
50506         * modules/sprintf-posix (Depends-on): Likewise.
50507         * modules/vasnprintf-posix (Depends-on): Likewise.
50508         * modules/vasprintf-posix (Depends-on): Likewise.
50509         * modules/vfprintf-posix (Depends-on): Likewise.
50510         * modules/vsnprintf-posix (Depends-on): Likewise.
50511         * modules/vsprintf-posix (Depends-on): Likewise.
50512         * modules/vasnprintf (Files): Add lib/float+.h.
50513         * doc/functions/fprintf.texi: Update.
50514         * doc/functions/printf.texi: Update.
50515         * doc/functions/snprintf.texi: Update.
50516         * doc/functions/sprintf.texi: Update.
50517         * doc/functions/vfprintf.texi: Update.
50518         * doc/functions/vprintf.texi: Update.
50519         * doc/functions/vsnprintf.texi: Update.
50520         * doc/functions/vsprintf.texi: Update.
50521
50522 2007-05-18  Bruno Haible  <bruno@clisp.org>
50523
50524         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
50525
50526 2007-05-18  Bruno Haible  <bruno@clisp.org>
50527
50528         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
50529         for printing 64-bit integers. Needed for mingw.
50530
50531 2007-05-18  Bruno Haible  <bruno@clisp.org>
50532
50533         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
50534         gl_FUNC_FREXPL_WORKS.
50535         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
50536
50537 2007-05-18  Bruno Haible  <bruno@clisp.org>
50538
50539         * modules/frexpl-nolibm-tests: New file.
50540
50541         * modules/frexpl-nolibm: New file.
50542         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
50543
50544 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
50545
50546         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
50547         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50548         GCC 4.2, which otherwise issues a lot of warnings.
50549         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
50550         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
50551         Likewise.
50552         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
50553         * modules/iconv_open (iconv.h): Likewise.
50554         * modules/locale (locale.h): Likewise.
50555         * modules/netinet_in (netinet/in.h): Likewise.
50556         * modules/sys_select (sys_select.h): Likewise.
50557         * modules/sys_socket (sys/socket.h): Likewise.
50558         * modules/sys_stat (sys/stat.h): Likewise.
50559         * modules/sysexits (sysexits.h): Likewise.
50560         * modules/unistd (unistd.h): Likewise.
50561
50562 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50563
50564         * modules/closein-tests (Makefile.am): Distribute
50565         `test-closein.sh'.
50566
50567 2007-05-17  Bruno Haible  <bruno@clisp.org>
50568
50569         * tests/test-printf-posix.output: Renamed from
50570         tests/test-fprintf-posix.out.
50571         * modules/fprintf-posix-tests: Update.
50572         * modules/printf-posix-tests: Update.
50573         * modules/vfprintf-posix-tests: Update.
50574         * modules/vprintf-posix-tests: Update.
50575         * tests/test-fprintf-posix.sh: Update.
50576         * tests/test-printf-posix.sh: Update.
50577         * tests/test-vfprintf-posix.sh: Update.
50578         * tests/test-vprintf-posix.sh: Update.
50579         Reported by Ralf Wildenhues.
50580
50581 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
50582
50583         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
50584         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
50585         GCC 4.2, which otherwise issues a lot of warnings.
50586         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
50587         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
50588         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
50589         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
50590         it should no longer be needed.
50591         * lib/string_.h: Likewise.
50592         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
50593         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
50594         * modules/inttypes (inttypes.h): Likewise.
50595         * modules/math (math.h): Likewise.
50596         * modules/search (search.h): Likewise.
50597         * modules/signal (signal.h): Likewise.
50598         * modules/stdint (stdint.h): Likewise.
50599         * modules/stdio (stdio.h): Likewise.
50600         * modules/stdlib (stdlib.h): Likewise.
50601         * modules/string (string.h): Likewise.
50602         * modules/sys_time (sys/time.h): Likewise.
50603         * modules/time (time.h): Likewise.
50604         * modules/wchar (wchar.h): Likewise.
50605         * modules/wctype (wtype.h): Likewise.
50606
50607 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
50608
50609         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
50610
50611 2007-05-13  Bruno Haible  <bruno@clisp.org>
50612
50613         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
50614         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50615         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
50616         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50617         (gl_PREREQ_STRTOK_R): Don't require it here.
50618
50619 2007-05-13  Bruno Haible  <bruno@clisp.org>
50620
50621         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
50622         when used in C++ mode.
50623
50624 2007-05-12  Bruno Haible  <bruno@clisp.org>
50625
50626         * lib/linebuffer.h: Tweak doc.
50627         * lib/linebuffer.c: Likewise.
50628
50629 2007-05-12  James Youngman  <jay@gnu.org>
50630
50631         * lib/linebuffer.c (readlinebuffer_delim): New function,
50632         like readlinebuffer, but use a caller-specified delimiter.
50633         (readlinebuffer): Just call readlinebuffer_delim with '\n'
50634         as the delimiter.
50635         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
50636
50637 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
50638
50639         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
50640         * modules/openat (Files): Remove openat-die.c.
50641         (Depends-on): Add openat-die.
50642         * modules/openat-die: New module.
50643
50644 2007-05-06  Bruno Haible  <bruno@clisp.org>
50645
50646         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
50647         Update with info about Cygwin.
50648         * doc/functions/fprintf.texi: Update.
50649         * doc/functions/printf.texi: Update.
50650         * doc/functions/snprintf.texi: Update.
50651         * doc/functions/sprintf.texi: Update.
50652         * doc/functions/vfprintf.texi: Update.
50653         * doc/functions/vprintf.texi: Update.
50654         * doc/functions/vsnprintf.texi: Update.
50655         * doc/functions/vsprintf.texi: Update.
50656         Reported by Eric Blake.
50657
50658 2007-05-06  Bruno Haible  <bruno@clisp.org>
50659
50660         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
50661         padding ourselves for the floating-point directives.
50662         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
50663         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
50664         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50665         gl_PRINTF_FLAG_ZERO and test its result. Invoke
50666         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
50667         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50668         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50669         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50670         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50671         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50672         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50673         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50674         * tests/test-snprintf-posix.h (test_function): Also check the width
50675         and some flags in the %f directive.
50676         * tests/test-sprintf-posix.h (test_function): Likewise.
50677         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50678         * tests/test-vasprintf-posix.c (test_function): Likewise.
50679         * doc/functions/fprintf.texi: Update.
50680         * doc/functions/printf.texi: Update.
50681         * doc/functions/snprintf.texi: Update.
50682         * doc/functions/sprintf.texi: Update.
50683         * doc/functions/vfprintf.texi: Update.
50684         * doc/functions/vprintf.texi: Update.
50685         * doc/functions/vsnprintf.texi: Update.
50686         * doc/functions/vsprintf.texi: Update.
50687
50688 2007-05-06  Bruno Haible  <bruno@clisp.org>
50689
50690         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
50691         pass the ' flag character to sprintf or snprintf.
50692         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
50693         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
50694         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50695         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
50696         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
50697         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50698         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
50699         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50700         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50701         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50702         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50703         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50704         * tests/test-snprintf-posix.h (test_function): Also check the grouping
50705         flag.
50706         * tests/test-sprintf-posix.h (test_function): Likewise.
50707         * tests/test-vasnprintf-posix.c (test_function): Likewise.
50708         * tests/test-vasprintf-posix.c (test_function): Likewise.
50709         * doc/functions/fprintf.texi: Update.
50710         * doc/functions/printf.texi: Update.
50711         * doc/functions/snprintf.texi: Update.
50712         * doc/functions/sprintf.texi: Update.
50713         * doc/functions/vfprintf.texi: Update.
50714         * doc/functions/vprintf.texi: Update.
50715         * doc/functions/vsnprintf.texi: Update.
50716         * doc/functions/vsprintf.texi: Update.
50717
50718 2007-05-01  Bruno Haible  <bruno@clisp.org>
50719
50720         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
50721
50722 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
50723
50724         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
50725         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
50726
50727 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
50728
50729         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
50730         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
50731         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
50732
50733 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
50734
50735         * lib/argp-help.c (struct hol_entry): New member `ord'.
50736         (HOL_ENTRY_PTRCMP): Use ord for comparison
50737         (hol_sort): Initialize ord.
50738
50739 2007-05-01  Bruno Haible  <bruno@clisp.org>
50740
50741         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
50742         Reported by Eric Blake.
50743         * doc/gnulib.texi (Function Substitutes): Update.
50744
50745 2007-05-01  Bruno Haible  <bruno@clisp.org>
50746
50747         * doc/functions.texi: Remove file, now redundant through
50748         doc/functions/*.texi.
50749
50750 2007-05-01  Bruno Haible  <bruno@clisp.org>
50751
50752         * modules/argp (Depends-on): Add sleep.
50753
50754 2007-05-01  Bruno Haible  <bruno@clisp.org>
50755
50756         * modules/sleep-tests: New file.
50757         * tests/test-sleep.c: New file.
50758
50759         * modules/sleep: New file.
50760         * lib/sleep.c: New file.
50761         * m4/sleep.m4: New file.
50762         * lib/unistd_.h (sleep): New declaration.
50763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
50764         HAVE_SLEEP.
50765         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
50766         * doc/functions/sleep.texi: Document the sleep module.
50767
50768 2007-05-01  Bruno Haible  <bruno@clisp.org>
50769
50770         * lib/sigprocmask.h: Remove file.
50771         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
50772         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
50773         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
50774         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
50775         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
50776         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
50777         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
50778         HAVE_SIGSET_T as a shell variable.
50779         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
50780         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
50781         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
50782         (Depends-on): Add signal. Remove verify.
50783         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
50784         (Include): Mention <signal.h> instead of sigprocmask.h.
50785         * NEWS: Mention the change.
50786         * lib/fatal-signal.c: Don't include sigprocmask.h.
50787
50788 2007-05-01  Bruno Haible  <bruno@clisp.org>
50789
50790         * modules/signal: New file.
50791         * lib/signal_.h: New file.
50792         * m4/signal_h.m4: New file.
50793
50794 2007-05-01  Bruno Haible  <bruno@clisp.org>
50795
50796         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
50797         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
50798         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
50799         HAVE_WCTYPE_CTMP_BUG into wctype.h.
50800
50801 2007-05-01  Bruno Haible  <bruno@clisp.org>
50802
50803         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
50804         configure time.
50805         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
50806         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
50807         * modules/sys_stat (Makefile.am): Substitute their values into
50808         sys/stat.h.
50809
50810 2007-05-01  Bruno Haible  <bruno@clisp.org>
50811
50812         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
50813         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
50814         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
50815
50816 2007-05-01  Bruno Haible  <bruno@clisp.org>
50817
50818         * doc/header/assert.texi: Undo last change: don't mention the gnulib
50819         'assert' module here.
50820
50821 2007-05-01  Bruno Haible  <bruno@clisp.org>
50822
50823         * doc/functions/*.texi: New files.
50824         * doc/functions/google-ranking.txt: New file.
50825         * doc/gnulib.texi (Function Substitutes): New chapter.
50826         (ctime, inet_ntoa): Remove sections.
50827         * doc/ctime.texi: Remove file.
50828         * doc/inet_ntoa.texi: Remove file.
50829         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
50830         dependencies.
50831         (%.info): New rule, specifying a --reference-limit.
50832
50833 2007-05-01  Bruno Haible  <bruno@clisp.org>
50834
50835         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
50836
50837 2007-05-01  Bruno Haible  <bruno@clisp.org>
50838
50839         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
50840         the portability of 'mkdir' to mingw systems.
50841
50842 2007-05-01  Bruno Haible  <bruno@clisp.org>
50843
50844         * doc/headers/google-ranking.txt: New file.
50845
50846 2007-04-30  Eric Blake  <ebb9@byu.net>
50847
50848         Prefer fseeko to fseek.
50849         * modules/getpass (Depends-on): Add fseeko.
50850         * lib/getpass.c (getpass): Use fseeko, not fseek.
50851
50852 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
50853
50854         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
50855         assumes the sorting is stable, while most qsort implementations
50856         are not.  Use argument addresses to ensure they never compare as
50857         equal.
50858
50859         * tests/test-argp-2.sh (usage-indent test): Fix output
50860         (func_compare): Restore diff options
50861         * tests/test-argp.c: Restore #include "progname.h"
50862
50863 2007-04-29  Bruno Haible  <bruno@clisp.org>
50864
50865         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
50866         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
50867         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
50868         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50869         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
50870         (configure.ac): Define CHECK_SNPRINTF_POSIX.
50871         (TESTS, check_PROGRAMS): Add test-snprintf.
50872         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
50873         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
50874         (TESTS, check_PROGRAMS): Add test-vsnprintf.
50875         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
50876         assertions that fail on HP-UX, OSF/1, or IRIX.
50877         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
50878
50879 2007-04-29  Bruno Haible  <bruno@clisp.org>
50880
50881         * MODULES.html.sh (posix_functions): Remove 'contents'.
50882
50883 2007-04-29  Karl Berry  <karl@gnu.org>
50884
50885         * config/srclist.txt (gendocs_template_min): new entry.
50886
50887 2007-04-29  Bruno Haible  <bruno@clisp.org>
50888
50889         Work around fpurge bug on BSD systems.
50890         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
50891         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
50892         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
50893         fpurge to rpl_fpurge if the system already has this function.
50894         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
50895         the case where the system already has this function. Correct invariants
50896         on BSD systems.
50897         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
50898         BSD systems.
50899
50900 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
50901
50902         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
50903         proposed by Sven Verdoolaege.
50904
50905         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
50906         options.
50907         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
50908         (usage and help tests): Update
50909
50910 2007-04-29  Bruno Haible  <bruno@clisp.org>
50911
50912         * tests/test-fflush.c (main): Use a file of size 17, not 10.
50913         Print more information in case of failure. Disable a test on BeOS.
50914
50915 2007-04-29  Bruno Haible  <bruno@clisp.org>
50916
50917         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
50918         This helps debugging on systems on which no gdb is available.
50919
50920 2007-04-29  Bruno Haible  <bruno@clisp.org>
50921
50922         * lib/freading.h: Improve comments.
50923         * lib/fwriting.h: Likewise.
50924         * tests/test-freading.c (main): Don't check freading immediately after
50925         repositioning. Needed for glibc.
50926
50927 2007-04-29  Bruno Haible  <bruno@clisp.org>
50928
50929         * lib/freading.c (freading): Trivial simplification.
50930
50931 2007-04-28  Bruno Haible  <bruno@clisp.org>
50932
50933         * tests/test-fwriting.c (main): Also test the interaction between
50934         fflush and fwriting.
50935         * modules/fwriting-tests (Depends-on): Add fflush.
50936
50937         * tests/test-freading.c (main): Also test the interaction between
50938         fflush and freading.
50939         * modules/freading-tests (Depends-on): Add fflush.
50940
50941 2007-04-28  Bruno Haible  <bruno@clisp.org>
50942
50943         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
50944         fseeko and ftello.
50945         Suggested by Eric Blake.
50946
50947 2007-04-28  Jim Meyering  <jim@meyering.net>
50948
50949         Avoid false-negative in gl_STDINT_H's C99 conformance test.
50950         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
50951         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
50952
50953 2007-04-27  Eric Blake  <ebb9@byu.net>
50954
50955         * doc/headers/assert.texi (assert.h): Document assert module use.
50956
50957 2007-04-27  Bruno Haible  <bruno@clisp.org>
50958
50959         * doc/headers/*.texi: New files.
50960         * doc/gnulib.texi (Header File Substitutes): New chapter.
50961         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
50962         dependencies.
50963         (standards.info ,standards.html, standards.dvi): Update dependencies.
50964         (mostlyclean, clean): New targets.
50965
50966 2007-04-27  Bruno Haible  <bruno@clisp.org>
50967
50968         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
50969         * modules/sysexits (Files, Makefile.am): Update.
50970
50971         * lib/sys_socket_.h: Renamed from lib/socket_.h.
50972         * modules/sys_socket (Files, Makefile.am): Update.
50973
50974         * lib/sys_stat_.h: Renamed from lib/stat_.h.
50975         * modules/sys_stat (Files, Makefile.am): Update.
50976
50977 2007-04-27  Eric Blake  <ebb9@byu.net>
50978
50979         * lib/freading.h: Improve comments.
50980         * lib/fwriting.h: Likewise.
50981         * lib/fflush.c: Likewise.
50982
50983         Fix closein for mingw.
50984         * modules/closein-tests: Add tests for closein.
50985         * tests/test-closein.c: New file.
50986         * tests/test-closein.sh: Likewise.
50987         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
50988         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
50989
50990 2007-04-27  Bruno Haible  <bruno@clisp.org>
50991
50992         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
50993         version is < 6.
50994         * lib/math_.h [__DECC]: Likewise.
50995         * lib/stdio_.h [__DECC]: Likewise.
50996         * lib/stdlib_.h [__DECC]: Likewise.
50997         * lib/string_.h [__DECC]: Likewise.
50998         * lib/time_.h [__DECC]: Likewise.
50999         * lib/wchar_.h [__DECC]: Likewise.
51000         * lib/wctype_.h [__DECC]: Likewise.
51001
51002 2007-04-27  Bruno Haible  <bruno@clisp.org>
51003
51004         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
51005
51006 2007-04-27  Bruno Haible  <bruno@clisp.org>
51007
51008         * lib/fflush.c: Add comments.
51009         * modules/fpurge-tests (Depends-on): Add fflush.
51010         * modules/freadable-tests (Depends-on): Likewise.
51011         * modules/fwritable-tests (Depends-on): Likewise.
51012
51013 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
51014
51015         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
51016         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
51017         Report by Bruno Haible <bruno@clisp.org>.
51018
51019 2007-04-26  Eric Blake  <ebb9@byu.net>
51020
51021         Fix fflush on mingw.
51022         * modules/fflush (Depends-on): Add freading.
51023         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
51024         but unread data.
51025
51026 2007-04-26  Eric Blake  <ebb9@byu.net>
51027         and Bruno Haible  <bruno@clisp.org>
51028
51029         Implement freading and fwriting.
51030         * lib/freading.c: New file.
51031         * lib/freading.h: Likewise.
51032         * m4/freading.m4: Likewise.
51033         * modules/freading: Likewise.
51034         * modules/freading-tests: Likewise.
51035         * tests/test-freading.c: Likewise.
51036         * lib/fwriting.c: New file.
51037         * lib/fwriting.h: Likewise.
51038         * m4/fwriting.m4: Likewise.
51039         * modules/fwriting: Likewise.
51040         * modules/fwriting-tests: Likewise.
51041         * tests/test-fwriting.c: Likewise.
51042         * MODULES.html.sh (File stream based Input/Output): Mention them.
51043
51044 2007-04-26  Bruno Haible  <bruno@clisp.org>
51045
51046         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
51047         'long' when we assume it.
51048         Suggested by Eric Blake.
51049
51050 2007-04-26  Bruno Haible  <bruno@clisp.org>
51051
51052         Ensure fseeko, ftello are declared on glibc systems.
51053         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
51054         * modules/fseeko (configure.ac-early): Likewise.
51055         * modules/ftello (configure.ac-early): Likewise.
51056         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
51057         AC_FUNC_FSEEKO for this.
51058         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
51059         (gl_CHECK_FSEEKO): Remove macro.
51060
51061 2007-04-26  Bruno Haible  <bruno@clisp.org>
51062
51063         * tests/test-fflush.c (main): Also check the ftell result after
51064         fflush and fseek/fseeko.
51065         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
51066         file descriptor position cache in the stream.
51067         * lib/fseeko.c (rpl_fseeko): Likewise.
51068
51069 2007-04-26  Bruno Haible  <bruno@clisp.org>
51070
51071         * modules/fflush-tests (Depends-on): Add fseeko.
51072
51073 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
51074             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51075
51076         * lib/argz_.h: ensure error_t definition is obtained in same
51077         mechanism system argz.h would have.
51078         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
51079         argz facilities are known bad.  Err on the side of caution if
51080         cross-compiling.
51081
51082 2007-04-25  Eric Blake  <ebb9@byu.net>
51083
51084         * lib/fpurge.c (includes): Use stdlib.h for free.
51085         * tests/test-fflush.c (main): Also test fflush-fseeko.
51086
51087 2007-04-25  Bruno Haible  <bruno@clisp.org>
51088
51089         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
51090         * lib/fseeko.c: New file.
51091         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
51092         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
51093         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
51094         gl_FUNC_FSEEKO.
51095         (gl_FUNC_FSEEKO): Invoke it.
51096         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
51097         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
51098         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
51099
51100 2007-04-25  Bruno Haible  <bruno@clisp.org>
51101
51102         * modules/fflush (Depends-on): Add ftello.
51103
51104 2007-04-25  Bruno Haible  <bruno@clisp.org>
51105
51106         * modules/ftello-tests: New file.
51107         * tests/test-ftello.c: New file.
51108
51109         * modules/ftello: New file.
51110         * m4/ftello.m4: New file.
51111         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
51112         HAVE_FTELLO.
51113         * lib/stdio_.h (ftello): New declaration.
51114         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
51115         HAVE_FTELLO.
51116
51117 2007-04-25  Bruno Haible  <bruno@clisp.org>
51118
51119         * modules/fseeko-tests: New file.
51120         * tests/test-fseeko.c: New file.
51121
51122         * modules/fseeko: New file.
51123         * m4/fseeko.m4: New file.
51124         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
51125         HAVE_FSEEKO.
51126         * lib/stdio_.h (fseeko): New declaration.
51127         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
51128         HAVE_FSEEKO.
51129
51130 2007-04-25  Bruno Haible  <bruno@clisp.org>
51131
51132         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
51133
51134 2007-04-25  Bruno Haible  <bruno@clisp.org>
51135
51136         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
51137         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
51138         * tests/test-unistd.c: Likewise.
51139         * tests/test-fcntl.c: Likewise.
51140
51141 2007-04-23  Eric Blake  <ebb9@byu.net>
51142
51143         * lib/fflush.c: Fix missing include.
51144         Reported by Bruno Haible.
51145
51146 2007-04-23  Bruno Haible  <bruno@clisp.org>
51147
51148         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
51149         Reported by Eric Blake.
51150
51151 2007-04-23  Bruno Haible  <bruno@clisp.org>
51152
51153         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
51154
51155 2007-04-23  Bruno Haible  <bruno@clisp.org>
51156
51157         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
51158
51159 2007-04-23  Bruno Haible  <bruno@clisp.org>
51160
51161         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
51162         Needed on HP-UX 11.
51163
51164 2007-04-16  Eric Blake  <ebb9@byu.net>
51165
51166         Make fflush rely on fpurge.
51167         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
51168         open coding all variants.
51169         * modules/fflush (Depends-on): Add fpurge and unistd.
51170         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
51171         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
51172
51173         Fix --with-tests compilation on cygwin.
51174         * modules/argmatch-tests (Makefile.am): List gnulib library first
51175         in LDADD.
51176         * modules/argp-tests (Makefile.am): Likewise.
51177         * modules/array-list-tests (Makefile.am): Likewise.
51178         * modules/array-oset-tests (Makefile.am): Likewise.
51179         * modules/avltree-list-tests (Makefile.am): Likewise.
51180         * modules/avltree-oset-tests (Makefile.am): Likewise.
51181         * modules/avltreehash-list-tests (Makefile.am): Likewise.
51182         * modules/carray-list-tests (Makefile.am): Likewise.
51183         * modules/dirname-tests (Makefile.am): Likewise.
51184         * modules/frexp-tests (Makefile.am): Likewise.
51185         * modules/isnanl-tests (Makefile.am): Likewise.
51186         * modules/linked-list-tests (Makefile.am): Likewise.
51187         * modules/linkedhash-list-tests (Makefile.am): Likewise.
51188         * modules/lock-tests (Makefile.am): Likewise.
51189         * modules/rbtree-list-tests (Makefile.am): Likewise.
51190         * modules/rbtree-oset-tests (Makefile.am): Likewise.
51191         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
51192         * modules/tls-tests (Makefile.am): Likewise.
51193         * modules/tsearch-tests (Makefile.am): Likewise.
51194         * modules/xvasprintf-tests (Makefile.am): Likewise.
51195
51196         Fix fpurge for cygwin.
51197         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
51198         value.
51199         * modules/fpurge-tests (Depends-on): Clean up trash.
51200
51201 2007-04-16  Simon Josefsson  <simon@josefsson.org>
51202
51203         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
51204
51205         * m4/autobuild.m4: Re-indent.
51206
51207 2007-04-13  Bruno Haible  <bruno@clisp.org>
51208
51209         * modules/fpurge-tests: New file.
51210         * tests/test-fpurge.c: New file.
51211
51212         * modules/fpurge: New file.
51213         * lib/fpurge.h: New file.
51214         * lib/fpurge.c: New file.
51215         * m4/fpurge.m4: New file.
51216
51217 2007-04-13  Bruno Haible  <bruno@clisp.org>
51218
51219         * modules/fbufmode-tests: New file.
51220         * tests/test-fbufmode.c: New file.
51221
51222         * modules/fbufmode: New file.
51223         * lib/fbufmode.h: New file.
51224         * lib/fbufmode.c: New file.
51225         * m4/fbufmode.m4: New file.
51226
51227 2007-04-13  Bruno Haible  <bruno@clisp.org>
51228
51229         * modules/fwritable-tests: New file.
51230         * tests/test-fwritable.c: New file.
51231
51232         * modules/fwritable: New file.
51233         * lib/fwritable.h: New file.
51234         * lib/fwritable.c: New file.
51235         * m4/fwritable.m4: New file.
51236
51237 2007-04-13  Bruno Haible  <bruno@clisp.org>
51238
51239         * modules/freadable-tests: New file.
51240         * tests/test-freadable.c: New file.
51241
51242         * modules/freadable: New file.
51243         * lib/freadable.h: New file.
51244         * lib/freadable.c: New file.
51245         * m4/freadable.m4: New file.
51246
51247 2007-04-13  Bruno Haible  <bruno@clisp.org>
51248
51249         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
51250         MOSTLYCLEANFILES.
51251
51252 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
51253
51254         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
51255         gzip bootstrap.conf to avoid dragging in i18n machinery.
51256         (gnulib_tool_option): Use it.
51257
51258 2007-04-13  Bruno Haible  <bruno@clisp.org>
51259
51260         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
51261         %F directives.
51262         * tests/test-vasprintf-posix.c (test_function): Likewise.
51263         * tests/test-snprintf-posix.h (test_function): Likewise.
51264         * tests/test-sprintf-posix.h (test_function): Likewise.
51265         * tests/test-fprintf-posix.h (test_function): Likewise.
51266         * tests/test-printf-posix.h (test_function): Likewise.
51267         * tests/test-fprintf-posix.out: Likewise.
51268
51269 2007-04-13  Bruno Haible  <bruno@clisp.org>
51270
51271         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
51272         * modules/tls-tests (configure.ac): Likewise.
51273         Reported by Arto C. Nirkko <anirkko@insel.ch>.
51274
51275 2007-04-13  Bruno Haible  <bruno@clisp.org>
51276
51277         * lib/tls.c (glthread_tls_get): Fix return type.
51278         Patch by Arto C. Nirkko <anirkko@insel.ch>.
51279
51280 2007-04-12  Eric Blake  <ebb9@byu.net>
51281
51282         * modules/gettime (Depends-on): Remove gettime.
51283         Reported by Dmitry V. Levin.
51284
51285 2007-04-12  Bruno Haible  <bruno@clisp.org>
51286
51287         * modules/fflush (Include): Mention <stdio.h>.
51288         * modules/strtoimax (Include): Mention <inttypes.h>.
51289         * modules/strtoumax (Include): Likewise.
51290
51291 2007-04-12  Eric Blake  <ebb9@byu.net>
51292
51293         * .cvsignore: New file.
51294         * .gitignore: Likewise.
51295
51296 2007-04-12  Bruno Haible  <bruno@clisp.org>
51297
51298         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
51299         not before, since $(LDADD) often contains libgnu.a.
51300         * modules/striconv-tests (test_striconv_LDADD): Likewise.
51301         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
51302         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
51303         Needed on Cygwin.
51304
51305 2007-04-12  Eric Blake  <ebb9@byu.net>
51306
51307         Work around glibc's failure to flush stdin on fclose.
51308         * lib/closein.c (close_stdin): Flush stdin before closing.
51309
51310         Work around glibc's failure to reset seekable stdin on exit.
51311         * modules/closein: New module.
51312         * lib/closein.c: New file.
51313         * lib/closein.h: Likewise.
51314         * m4/closein.m4: Likewise.
51315         * MODULES.html.sh (File stream based Input/Output): Document it.
51316
51317 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51318
51319         * gnulib-tool: Rename generated 'autobuild' script to
51320         'do-autobuild' in --create-megatestdir output.
51321
51322         * doc/gnulib.texi (Build robot for gnulib): Fix.
51323
51324 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51325
51326         * modules/sysexits (Depends-on): Add absolute-header.
51327
51328 2007-04-12  Eric Blake  <ebb9@byu.net>
51329
51330         No need to preserve errno on success.
51331         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
51332         Reported by Bruno Haible.
51333
51334 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51335
51336         * MODULES.html.sh (Support for maintaining and releasing
51337         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
51338
51339 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51340
51341         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
51342
51343 2007-04-12  Simon Josefsson  <simon@josefsson.org>
51344
51345         * modules/autobuild: New module.
51346
51347         * m4/autobuild.m4: New file.
51348
51349 2007-04-11  Bruno Haible  <bruno@clisp.org>
51350
51351         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
51352         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
51353         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
51354         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
51355         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51356         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51357         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51358         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51359         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51360         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51361         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
51362         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51363         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51364         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
51365         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51366         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51367         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
51368         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51369         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51370         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
51371         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51372         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51373         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
51374         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51375         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51376         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
51377         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
51378         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
51379         Reported by Eric Blake.
51380
51381 2007-04-11  Bruno Haible  <bruno@clisp.org>
51382
51383         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
51384
51385 2007-04-10  Bruno Haible  <bruno@clisp.org>
51386
51387         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
51388         for NaN and Infinity. Needed on FreeBSD 6.1.
51389         * tests/test-vasnprintf-posix.c (test_function): Undo last change
51390         regarding results for "%010a" of Infinity and NaN.
51391         * tests/test-vasprintf-posix.c (test_function): Likewise.
51392         * tests/test-snprintf-posix.h (test_function): Likewise.
51393         * tests/test-sprintf-posix.h (test_function): Likewise.
51394         * tests/test-fprintf-posix.h (test_function): Likewise.
51395         * tests/test-printf-posix.h (test_function): Likewise.
51396         * tests/test-fprintf-posix.out: Likewise.
51397
51398 2007-04-10  Bruno Haible  <bruno@clisp.org>
51399
51400         * modules/locale-tests: New file.
51401         * tests/test-locale.c: New file.
51402
51403         * modules/locale: New file.
51404         * lib/locale_.h: New file.
51405         * m4/locale_h.m4: New file.
51406
51407 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
51408             Bruno Haible  <bruno@clisp.org>
51409
51410         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
51411         be determined, test for availability of the copysignf, copysign,
51412         copysignl functions.
51413         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
51414         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
51415         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
51416
51417 2007-04-09  Eric Blake  <ebb9@byu.net>
51418
51419         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
51420         * modules/stdio (Makefile.am): Support fflush.
51421         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51422         * modules/fflush: New file.
51423         * lib/fflush.c: Likewise.
51424         * m4/fflush.m4: Likewise.
51425         * modules/fflush-tests: New test.
51426         * tests/test-fflush.c: Likewise.
51427         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
51428
51429 2007-04-06  Bruno Haible  <bruno@clisp.org>
51430
51431         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
51432         (VASNPRINTF): Use signbit for faster determination whether to print a
51433         minus sign.
51434         * modules/vasnprintf (Files): Remove lib/float+.h.
51435         * modules/fprintf-posix (Depends-on): Add signbit.
51436         * modules/snprintf-posix (Depends-on): Likewise.
51437         * modules/sprintf-posix (Depends-on): Likewise.
51438         * modules/vasnprintf-posix (Depends-on): Likewise.
51439         * modules/vasprintf-posix (Depends-on): Likewise.
51440         * modules/vfprintf-posix (Depends-on): Likewise.
51441         * modules/vsnprintf-posix (Depends-on): Likewise.
51442         * modules/vsprintf-posix (Depends-on): Likewise.
51443
51444 2007-04-06  Bruno Haible  <bruno@clisp.org>
51445
51446         * tests/test-frexp.c (main): Test also the sign bit of zero results.
51447         * tests/test-frexpl.c (main): Likewise.
51448         * tests/test-ldexpl.c (main): Likewise.
51449         * modules/frexp-tests (Depends-on): Add signbit.
51450         * modules/frexpl-tests (Depdends-on): Likewise.
51451         * modules/ldexpl-tests (Depdends-on): Likewise.
51452
51453 2007-04-06  Bruno Haible  <bruno@clisp.org>
51454
51455         * modules/signbit-tests: New file.
51456         * tests/test-signbit.c: New file.
51457
51458         * modules/signbit: New file.
51459         * lib/signbitf.c: New file.
51460         * lib/signbitd.c: New file.
51461         * lib/signbitl.c: New file.
51462         * m4/signbit.m4: New file.
51463         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
51464         (signbit): New macro.
51465         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
51466         REPLACE_SIGNBIT.
51467         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
51468         REPLACE_FREXPL into math.h.
51469
51470 2007-04-06  Bruno Haible  <bruno@clisp.org>
51471
51472         * modules/isnanf-nolibm-tests: New file.
51473         * tests/test-isnanf.c: New file.
51474
51475         * modules/isnanf-nolibm: New file.
51476         * lib/isnanf.h: New file.
51477         * lib/isnanf.c: New file.
51478         * lib/isnan.c: Consider the USE_FLOAT macro.
51479         * m4/isnanf.m4: New file.
51480
51481 2007-04-06  Bruno Haible  <bruno@clisp.org>
51482
51483         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
51484         (Link): New section.
51485
51486         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
51487
51488 2007-04-06  Bruno Haible  <bruno@clisp.org>
51489
51490         Assume the 'long double' type.
51491         * m4/longdouble.m4: Remove file.
51492         * config/srclist.txt: Don't mention longdouble.m4.
51493         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
51494         * lib/float+.h: Likewise.
51495         * lib/frexp.c: Likewise.
51496         * lib/printf-args.h: Likewise.
51497         * lib/printf-args.c: Likewise.
51498         * lib/printf-frexp.c: Likewise.
51499         * lib/printf-parse.c: Likewise.
51500         * lib/vasnprintf.c: Likewise.
51501         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
51502         * m4/intl.m4: Likewise.
51503         * m4/isnanl.m4: Likewise.
51504         * m4/printf.m4: Likewise.
51505         * m4/printf-frexpl.m4: Likewise.
51506         * m4/vasnprintf.m4: Likewise.
51507         * modules/allocsa (Files): Remove m4/longdouble.m4.
51508         * modules/gettext (Files): Likewise.
51509         * modules/relocatable-prog-wrapper (Files): Likewise.
51510         * modules/vasnprintf (Files): Likewise.
51511         * modules/isnanl (Files): Likewise.
51512         (Include): Simplify.
51513         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
51514         (Include): Simplify.
51515         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
51516         (Include): Simplify.
51517         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
51518         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51519         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
51520         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51521         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51522         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51523         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
51524         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51525         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
51526         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51527         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
51528         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
51529         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
51530         * tests/test-isnanl.c: Likewise.
51531         * tests/test-snprintf-posix.h: Likewise.
51532         * tests/test-sprintf-posix.h: Likewise.
51533         * tests/test-vasnprintf-posix.c: Likewise.
51534         * tests/test-vasnprintf-posix2.c: Likewise.
51535         * tests/test-vasprintf-posix.c: Likewise.
51536
51537 2007-04-06  Bruno Haible  <bruno@clisp.org>
51538
51539         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
51540         * lib/math_.h [__DECC]: Include the overridden include file through
51541         #include_next, outside the double-inclusion guard.
51542         * lib/stdio_.h [__DECC]: Likewise.
51543         * lib/stdlib_.h [__DECC]: Likewise.
51544         * lib/string_.h [__DECC]: Likewise.
51545         * lib/time_.h [__DECC]: Likewise.
51546         * lib/wchar_.h [__DECC]: Likewise.
51547         * lib/wctype_.h [__DECC]: Likewise.
51548         * lib/inttypes_.h [__DECC]: Likewise.
51549         Reported by Albert Chin <china@thewrittenword.com> in
51550         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
51551
51552 2007-04-04  Eric Blake  <ebb9@byu.net>
51553
51554         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
51555         1.5.x.
51556
51557 2007-04-04  Bruno Haible  <bruno@clisp.org>
51558
51559         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
51560         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
51561
51562 2007-04-04  Bruno Haible  <bruno@clisp.org>
51563
51564         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
51565         results for "%010a" of Infinity and NaN.
51566         * tests/test-vasprintf-posix.c (test_function): Likewise.
51567         * tests/test-snprintf-posix.h (test_function): Likewise.
51568         * tests/test-sprintf-posix.h (test_function): Likewise.
51569         * tests/test-fprintf-posix.h (test_function): Remove these tests.
51570         * tests/test-printf-posix.h (test_function): Likewise.
51571         * tests/test-fprintf-posix.out: Update.
51572         Needed for FreeBSD 6.1.
51573
51574 2007-04-04  Bruno Haible  <bruno@clisp.org>
51575
51576         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
51577         directly used by the gnulib modules nor by gnulib-tool.
51578
51579 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
51580
51581         * DEPENDENCIES: Give overall description of version dependency
51582         desirability.  Use more-typical names for apps.
51583         Add shell, coreutils, diffutils, grep, tar, gzip.
51584
51585 2007-04-04  Simon Josefsson  <simon@josefsson.org>
51586
51587         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
51588
51589 2007-04-04  Karl Berry  <karl@gnu.org>
51590
51591         * MODULES.html.sh (func_module): missing '.
51592
51593 2007-04-03  Bruno Haible  <bruno@clisp.org>
51594
51595         * modules/argmatch-tests (Makefile.am): New variable
51596         test_argmatch_LDADD.
51597         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
51598         * modules/array-list-tests (Makefile.am): New variable
51599         test_array_list_LDADD.
51600         * modules/array-oset-tests (Makefile.am): New variable
51601         test_array_oset_LDADD.
51602         * modules/avltree-list-tests (Makefile.am): New variable
51603         test_avltree_list_LDADD.
51604         * modules/avltree-oset-tests (Makefile.am): New variable
51605         test_avltree_oset_LDADD.
51606         * modules/avltreehash-list-tests (Makefile.am): New variable
51607         test_avltreehash_list_LDADD.
51608         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
51609         test_canonicalize_lgpl_LDADD.
51610         * modules/carray-list-tests (Makefile.am): New variable
51611         test_carray_list_LDADD.
51612         * modules/dirname-tests (Makefile.am): New variable
51613         test_dirname_LDADD.
51614         * modules/linked-list-tests (Makefile.am): New variable
51615         test_linked_list_LDADD.
51616         * modules/linkedhash-list-tests (Makefile.am): New variable
51617         test_linkedhash_list_LDADD.
51618         * modules/rbtree-list-tests (Makefile.am): New variable
51619         test_rbtree_list_LDADD.
51620         * modules/rbtree-oset-tests (Makefile.am): New variable
51621         test_rbtree_oset_LDADD.
51622         * modules/rbtreehash-list-tests (Makefile.am): New variable
51623         test_rbtreehash_list_LDADD.
51624         * modules/xvasprintf-tests (Makefile.am): New variable
51625         test_xvasprintf_LDADD.
51626         Reported by Eric Blake.
51627
51628 2007-04-03  Eric Blake  <ebb9@byu.net>
51629
51630         * DEPENDENCIES: Weaken m4 requirements.
51631
51632 2007-04-03  Bruno Haible  <bruno@clisp.org>
51633
51634         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
51635         * modules/isnanl-tests (configure.ac): Likewise.
51636
51637 2007-04-03  Ben Pfaff  <blp@gnu.org>
51638
51639         * modules/iconv_open: Add $(srcdir)/ to source directory
51640         references in Makefile fragments that call gperf, to fix VPATH
51641         builds.
51642
51643 2007-04-03  Bruno Haible  <bruno@clisp.org>
51644
51645         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
51646         * lib/ldexpl.c: Undo last change.
51647
51648 2007-04-03  Bruno Haible  <bruno@clisp.org>
51649
51650         * modules/printf-frexpl (Depends-on): Undo last change.
51651         (Files): Add m4/ldexpl.m4.
51652
51653 2007-04-03  Bruno Haible  <bruno@clisp.org>
51654
51655         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
51656         * modules/isnanl (Link): New section.
51657
51658         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
51659         * modules/frexp (Link): New section.
51660
51661         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
51662         * modules/frexpl (Link): New section.
51663
51664         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
51665         * modules/ldexpl (Link): New section.
51666
51667 2007-04-03  Bruno Haible  <bruno@clisp.org>
51668
51669         * modules/TEMPLATE-EXTENDED: New file.
51670         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
51671
51672 2007-04-03  Bruno Haible  <bruno@clisp.org>
51673
51674         * DEPENDENCIES: New file.
51675         Suggested by Simon Josefsson.
51676
51677 2007-04-03  Bruno Haible  <bruno@clisp.org>
51678
51679         * doc/gnulib.texi: Escape @.
51680
51681 2007-04-03  James Youngman  <jay@gnu.org>
51682         and Paul Eggert  <eggert@cs.ucla.edu>
51683
51684         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
51685         birthtime on all systems that have birthtime, not just those which
51686         use st_birthtimensec rather than st_birthtim.  Putting zero in
51687         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
51688         that the birth time is not available for files on an NFS mount.
51689
51690 2007-04-03  Simon Josefsson  <simon@josefsson.org>
51691
51692         * modules/memxor: Move back from crypto/, suggested by Bruno.
51693         * modules/crypto/hmac-sha1: Fix memxor dependency.
51694
51695         * modules/crypto/gc: Moved from ../.
51696
51697 2007-04-02  Eric Blake  <ebb9@byu.net>
51698
51699         * lib/ldexpl.c (includes): Avoid libm.
51700
51701         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
51702
51703 2007-04-02  Bruno Haible  <bruno@clisp.org>
51704
51705         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
51706         on IRIX.
51707
51708 2007-04-02  Bruno Haible  <bruno@clisp.org>
51709
51710         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
51711         x86 or x86_64 platforms running MacOS X.
51712         Reported by Ryan Schmidt <@ryandesign.com>.
51713
51714 2007-04-02  Bruno Haible  <bruno@clisp.org>
51715
51716         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
51717         i386.
51718
51719 2007-04-01  Simon Josefsson  <simon@josefsson.org>
51720
51721         * modules/crypto/arcfour: Moved from ../.
51722         * modules/crypto/arcfour-tests: Moved from ../.
51723         * modules/crypto/arctwo: Moved from ../.
51724         * modules/crypto/arctwo-tests: Moved from ../.
51725         * modules/crypto/des: Moved from ../.
51726         * modules/crypto/des-tests: Moved from ../.
51727         * modules/crypto/gc-arcfour: Moved from ../.
51728         * modules/crypto/gc-arcfour-tests: Moved from ../.
51729         * modules/crypto/gc-arctwo: Moved from ../.
51730         * modules/crypto/gc-arctwo-tests: Moved from ../.
51731         * modules/crypto/gc-des: Moved from ../.
51732         * modules/crypto/gc-des-tests: Moved from ../.
51733         * modules/crypto/gc-hmac-md5: Moved from ../.
51734         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
51735         * modules/crypto/gc-hmac-sha1: Moved from ../.
51736         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
51737         * modules/crypto/gc-md2: Moved from ../.
51738         * modules/crypto/gc-md2-tests: Moved from ../.
51739         * modules/crypto/gc-md4: Moved from ../.
51740         * modules/crypto/gc-md4-tests: Moved from ../.
51741         * modules/crypto/gc-md5: Moved from ../.
51742         * modules/crypto/gc-md5-tests: Moved from ../.
51743         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
51744         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
51745         * modules/crypto/gc-random: Moved from ../.
51746         * modules/crypto/gc-rijndael: Moved from ../.
51747         * modules/crypto/gc-rijndael-tests: Moved from ../.
51748         * modules/crypto/gc-sha1: Moved from ../.
51749         * modules/crypto/gc-sha1-tests: Moved from ../.
51750         * modules/crypto/gc-tests: Moved from ../.
51751         * modules/crypto/hmac-md5: Moved from ../.
51752         * modules/crypto/hmac-md5-tests: Moved from ../.
51753         * modules/crypto/hmac-sha1: Moved from ../.
51754         * modules/crypto/hmac-sha1-tests: Moved from ../.
51755         * modules/crypto/md2: Moved from ../.
51756         * modules/crypto/md2-tests: Moved from ../.
51757         * modules/crypto/md4: Moved from ../.
51758         * modules/crypto/md4-tests: Moved from ../.
51759         * modules/crypto/md5: Moved from ../.
51760         * modules/crypto/md5-tests: Moved from ../.
51761         * modules/crypto/memxor: Moved from ../.
51762         * modules/crypto/rijndael: Moved from ../.
51763         * modules/crypto/rijndael-tests: Moved from ../.
51764         * modules/crypto/sha1: Moved from ../.
51765
51766 2007-03-30  James Youngman  <jay@gnu.org>
51767
51768         * tests/test-stat-time.c (prepare_test): use chmod() rather than
51769         rename() to change the ctime of a file (because ctime is unaffected
51770         by rename on jfs2 on AIX 5.1).
51771         (main): Start by doing cleanup, in case a previous run failed leaving
51772         test files behind.
51773
51774 2007-03-31  Bruno Haible  <bruno@clisp.org>
51775
51776         Support old proprietary implementations of iconv.
51777         * modules/iconv_open: New file.
51778         * lib/iconv_.h: New file.
51779         * m4/iconv_h.m4: New file.
51780         * lib/iconv_open.c: New file.
51781         * lib/iconv_open-aix.gperf: New file.
51782         * lib/iconv_open-hpux.gperf: New file.
51783         * lib/iconv_open-irix.gperf: New file.
51784         * lib/iconv_open-osf.gperf: New file.
51785         * m4/iconv_open.m4: New file.
51786         * modules/linebreak (Depends-on): Add iconv_open.
51787         * modules/striconv (Depends-on): Likewise.
51788         * modules/striconveh (Depends-on): Likewise.
51789         * modules/unicodeio (Depends-on): Likewise.
51790         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
51791         (iconv_t)(-1).
51792         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
51793         conversion if cd is (iconv_t)(-1).
51794         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
51795         is not possible.
51796
51797 2007-03-31  Bruno Haible  <bruno@clisp.org>
51798
51799         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51800         work on Solaris either. Protect also second use of "autodetect_jp".
51801
51802 2007-03-31  Bruno Haible  <bruno@clisp.org>
51803
51804         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
51805         the function is not present.
51806
51807 2007-03-31  Bruno Haible  <bruno@clisp.org>
51808
51809         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
51810         the function is not present.
51811
51812 2007-03-31  Bruno Haible  <bruno@clisp.org>
51813
51814         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
51815         a bug in HP-UX iconv_open().
51816
51817 2007-03-31  Bruno Haible  <bruno@clisp.org>
51818
51819         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
51820         (Mathematics <math.h>): New section, add fpieee.
51821         (Input/output <stdio.h>): Add fseterr.
51822         (Mathematics <math.h>): New section, add printf-frexp.
51823         (Container data structures): Add sublist.
51824         (Core language properties): Add fpucw, inline.
51825         (Functions for greatest-width integer types <inttypes.h>): Add
51826         imaxabs, imaxdiv, inttypes.
51827         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
51828         isnanl-nolibm, ldexp.
51829         (Mathematics <math.h>): New section, add printf-frexpl.
51830         (Support for systems lacking POSIX:2001): Add fprintf-posix,
51831         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
51832         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
51833         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
51834         (Unicode string functions): Add unistr/u*-mbtoucr.
51835         (Java): Add javacomp-script, javaexec-script.
51836         (C#): Add csharpcomp-script, csharpexec-script.
51837         (Support for building libraries and executables): Add havelib,
51838         relocatable-*.
51839         (Support for maintaining and releasing projects): Renamed from
51840         'Support for maintaining and release projects'. Add announce-gen.
51841
51842 2007-03-31  Bruno Haible  <bruno@clisp.org>
51843
51844         * README: Talk primarily about git.
51845         (git and CVS): Renamed from CVS.
51846         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
51847         gnulib is available through git.
51848         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
51849
51850 2007-03-30  Bruno Haible  <bruno@clisp.org>
51851
51852         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
51853         * lib/poll_.h: Likewise.
51854         * lib/stat_.h: Likewise.
51855         * lib/sys_time_.h: Likewise.
51856         * lib/sysexit_.h: Likewise.
51857         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
51858         * lib/stdbool_.h: Likewise.
51859         * lib/byteswap_.h: Add double-inclusion guard.
51860
51861 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
51862
51863         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
51864
51865 2007-03-30  Karl Berry  <karl@gnu.org>
51866
51867         * config/srclist-update: double space after USA in the license
51868         substitution, since that's how it's usually (?) written.
51869
51870 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
51871
51872         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
51873         reported by Bruno Haible.
51874
51875 2007-03-29  Bruno Haible  <bruno@clisp.org>
51876
51877         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
51878         a bug in AIX iconv().
51879
51880 2007-03-29  Bruno Haible  <bruno@clisp.org>
51881
51882         * modules/ldexpl-tests: New file.
51883         * tests/test-ldexpl.c: New file.
51884
51885 2007-03-29  Bruno Haible  <bruno@clisp.org>
51886
51887         * lib/ldexpl.c: Include fpucw.h.
51888         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
51889         multiplication.
51890         * modules/ldexpl (Depends-on): Add fpucw.
51891
51892 2007-03-29  Bruno Haible  <bruno@clisp.org>
51893
51894         * modules/ldexpl: New file.
51895         * m4/ldexpl.m4: New file.
51896         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
51897         set.
51898         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
51899         REPLACE_LDEXPL.
51900         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
51901         REPLACE_LDEXPL.
51902         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
51903         gl_FUNC_LDEXPL_WORKS.
51904         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
51905         * modules/mathl (Files): Remove lib/ldexpl.c.
51906         (Depends-on): Add ldexpl.
51907
51908 2007-03-29  Bruno Haible  <bruno@clisp.org>
51909
51910         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
51911
51912 2007-03-29  Bruno Haible  <bruno@clisp.org>
51913
51914         * tests/test-striconveh.c (main): Don't assume that a direct conversion
51915         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
51916         and possibly also HP-UX.
51917         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
51918         work on AIX, IRIX, HP-UX, OSF/1.
51919         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
51920         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
51921         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
51922         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
51923         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
51924         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
51925
51926 2007-03-29  Bruno Haible  <bruno@clisp.org>
51927
51928         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
51929
51930 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51931
51932         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
51933         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
51934
51935 2007-03-29  Eric Blake  <ebb9@byu.net>
51936
51937         * lib/acl-internal.h: Remove redundant include.
51938         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
51939         Cygwin when a file is locked.
51940
51941 2007-03-29  Bruno Haible  <bruno@clisp.org>
51942
51943         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
51944         file.
51945         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
51946
51947 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
51948
51949         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
51950         try to remove a parent directory if the child couldn't be removed
51951         (except for the first rmdir, which could fail because the child
51952         doesn't exist).  Problem reported by Jeff Blaine in
51953         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
51954
51955 2007-03-28  Bruno Haible  <bruno@clisp.org>
51956
51957         * lib/striconveh.c (utf8conv_carefully): New function.
51958         (mem_cd_iconveh_internal): Invoke it.
51959
51960 2007-03-28  Bruno Haible  <bruno@clisp.org>
51961
51962         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
51963         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
51964         input.
51965         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
51966         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
51967         unistr/u8-uctomb.
51968
51969 2007-03-28  Bruno Haible  <bruno@clisp.org>
51970
51971         * modules/unistr/u8-mbtoucr: New file.
51972         * lib/unistr/u8-mbtoucr.c: New file.
51973         * modules/unistr/u16-mbtoucr: New file.
51974         * lib/unistr/u16-mbtoucr.c: New file.
51975         * modules/unistr/u16-mbtoucr: New file.
51976         * lib/unistr/u16-mbtoucr.c: New file.
51977         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
51978
51979 2007-03-27  Simon Josefsson  <simon@josefsson.org>
51980             Bruno Haible  <bruno@clisp.org>
51981
51982         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
51983         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
51984         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
51985
51986         * m4/stdio_h.m4: Add stubs for vasprintf too.
51987
51988         * modules/stdio: Support vasprintf in sed command.
51989
51990         * modules/vasprintf: Depend on stdio for prototypes.  Remove
51991         vasprintf.h.  Add stdio module indicator.
51992
51993         * lib/stdio_.h: Declare asprintf and vasprintf, based on
51994         vasprintf.h.
51995
51996         * lib/vasprintf.h: File removed.
51997
51998         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
51999         * lib/vasprintf.c: Ditto.
52000         * lib/xvasprintf.c: Ditto.
52001         * tests/test-vasprintf-posix.c: Ditto.
52002         * tests/test-vasprintf.c: Ditto.
52003
52004 2007-03-27  Bruno Haible  <bruno@clisp.org>
52005
52006         Make vasnprintf multithread-safe.
52007         * lib/vasnprintf.c (decimal_point_char): New function.
52008         (VASNPRINTF): Use it.
52009         Suggested by Simon Josefsson.
52010
52011 2007-03-27  Eric Blake  <ebb9@byu.net>
52012
52013         Support sub-second birthtime on cygwin.
52014         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
52015         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
52016         (get_stat_birthtime): Also work with st_birthtim.
52017
52018 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
52019
52020         * lib/stat-time.h (USE_BIRTHTIME): Remove.
52021         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
52022         (get_stat_birthtime_ns): Do not try to use "spare" fields.
52023         (get_stat_birthtime_ns): Simplify compile-time tests.
52024         (get_stat_birthtime): Change the API to look like
52025         get_stat_mtime etc., except return a negative tv_nsec on error.
52026         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
52027         Don't check for "spare" fields.
52028         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
52029         or for struct stat.st_birthtime, as these tests aren't used.
52030         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
52031
52032 2007-03-27  Bruno Haible  <bruno@clisp.org>
52033
52034         * lib/stat-time.h: Include <sys/stat.h>.
52035
52036 2007-03-27  James Youngman  <jay@gnu.org>
52037
52038         * lib/stat-time.h (get_stat_birthtime): New function for
52039           retrieving st_birthtime as provided by UFS2 (hence *BSD).
52040         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
52041           and its variants.
52042         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
52043         * modules/stat-time-test: New file.
52044         * tests/test-stat-time.c: New test, devised by Bruno Haible.
52045
52046 2007-03-26  Bruno Haible  <bruno@clisp.org>
52047
52048         Better support of signalling NaNs.
52049         * lib/atanl.c: Include isnanl.h.
52050         (atanl): Perform test for NaN at the beginning of the function and
52051         through a call to isnanl.
52052         * lib/cosl.c: Include isnanl.h.
52053         (cosl): Perform test for NaN at the beginning of the function and
52054         through a call to isnanl.
52055         * lib/ldexpl.c: Include isnanl.h.
52056         (ldexpl): Perform test for NaN through a call to isnanl.
52057         * lib/logl.c: Include isnanl.h.
52058         (logl): Perform test for NaN at the beginning of the function and
52059         through a call to isnanl.
52060         * lib/sinl.c: Include isnanl.h.
52061         (sinl): Perform test for NaN at the beginning of the function and
52062         through a call to isnanl.
52063         * lib/sqrtl.c: Include isnanl.h.
52064         (sqrtl): Perform test for NaN at the beginning of the function and
52065         through a call to isnanl.
52066         * lib/tanl.c: Include isnanl.h.
52067         (tanl): Perform test for NaN at the beginning of the function and
52068         through a call to isnanl.
52069         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
52070         * modules/mathl (Depends-on): Add isnanl.
52071
52072 2007-03-26  Eric Blake  <ebb9@byu.net>
52073
52074         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
52075         regression in logic sense of previous patch.
52076
52077 2007-03-26  Bruno Haible  <bruno@clisp.org>
52078
52079         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
52080         unportable shell command "if ! ...".
52081         Reported by Ralf Wildenhues.
52082
52083 2007-03-25  Bruno Haible  <bruno@clisp.org>
52084
52085         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
52086         <sysexits.h> file, and only add EX_CONFIG.
52087         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
52088         absolute file name and whether it is sufficient. Substitute also
52089         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
52090         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
52091         ABSOLUTE_SYSEXITS_H into sysexits.h.
52092
52093 2007-03-25  Bruno Haible  <bruno@clisp.org>
52094
52095         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
52096         hints is NULL.
52097
52098 2007-03-25  Bruno Haible  <bruno@clisp.org>
52099
52100         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
52101         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
52102
52103 2007-03-25  Bruno Haible  <bruno@clisp.org>
52104
52105         * lib/vasnprintf.c: Include langinfo.h.
52106         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
52107         multithread-safe.
52108         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
52109         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
52110         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
52111         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
52112         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
52113         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
52114         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
52115         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
52116         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
52117         Reported by Simon Josefsson.
52118
52119 2007-03-25  Bruno Haible  <bruno@clisp.org>
52120
52121         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
52122         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
52123         * modules/vasnprintf (Depends-on): Add stdint.
52124
52125 2007-03-25  Bruno Haible  <bruno@clisp.org>
52126
52127         * modules/fpieee: New file.
52128         * m4/fpieee.m4: New file.
52129         * modules/isnan-nolibm (Depends-on): Add fpieee.
52130         * modules/isnanl-nolibm (Depends-on): Add fpieee.
52131         * modules/isnanl (Depends-on): Add fpieee.
52132
52133 2007-03-25  Bruno Haible  <bruno@clisp.org>
52134
52135         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
52136
52137 2007-03-25  Bruno Haible  <bruno@clisp.org>
52138
52139         Avoid test failures on IRIX 6.5.
52140         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
52141         (main): Use it.
52142         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
52143         macros.
52144         (main): Use them.
52145
52146 2007-03-25  Bruno Haible  <bruno@clisp.org>
52147
52148         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
52149         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
52150         exists but doesn't work.
52151         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
52152         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
52153         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
52154         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
52155         math.h.
52156
52157 2007-03-25  Bruno Haible  <bruno@clisp.org>
52158
52159         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
52160         returns inf. Needed on IRIX 6.5.
52161
52162 2007-03-25  Bruno Haible  <bruno@clisp.org>
52163
52164         * tests/test-frexpl.c: Include isnanl-nolibm.h.
52165         (main): Use isnanl instead of x != x idiom.
52166         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
52167
52168         * tests/test-frexp.c: Include isnan.h.
52169         (main): Use isnan instead of x != x idiom.
52170         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
52171
52172 2007-03-25  Bruno Haible  <bruno@clisp.org>
52173
52174         * tests/test-frexp.c (NaN): New function/macro.
52175         (main): Use it instead of 0.0 / 0.0.
52176         * tests/test-isnan.c (NaN): New function/macro.
52177         (main): Use it instead of 0.0 / 0.0.
52178         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
52179         (test_function): Use it instead of 0.0 / 0.0.
52180         * tests/test-vasprintf-posix.c (NaN): New function/macro.
52181         (test_function): Use it instead of 0.0 / 0.0.
52182         * tests/test-snprintf-posix.h (NaN): New function/macro.
52183         (test_function): Use it instead of 0.0 / 0.0.
52184         * tests/test-sprintf-posix.h (NaN): New function/macro.
52185         (test_function): Use it instead of 0.0 / 0.0.
52186         * tests/test-fprintf-posix.h (NaN): New function/macro.
52187         (test_function): Use it instead of 0.0 / 0.0.
52188         * tests/test-printf-posix.h (NaN): New function/macro.
52189         (test_function): Use it instead of 0.0 / 0.0.
52190
52191         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
52192
52193 2007-03-25  Bruno Haible  <bruno@clisp.org>
52194
52195         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
52196
52197 2007-03-25  Bruno Haible  <bruno@clisp.org>
52198
52199         * lib/regexec.c (merge_state_with_log): Make static.
52200
52201 2007-03-25  Bruno Haible  <bruno@clisp.org>
52202
52203         * lib/trigl.c (kernel_rem_pio2): Make static.
52204
52205 2007-03-25  Bruno Haible  <bruno@clisp.org>
52206
52207         * lib/sincosl.c (sincosl_table): Make static.
52208
52209 2007-03-25  Bruno Haible  <bruno@clisp.org>
52210
52211         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
52212         if the compiler does not support C99.
52213
52214 2007-03-25  Bruno Haible  <bruno@clisp.org>
52215
52216         * modules/time (Makefile.am): Ensure all rule action lines start with a
52217         tab.
52218
52219 2007-03-24  Bruno Haible  <bruno@clisp.org>
52220
52221         * modules/tsearch-tests: New file.
52222         * tests/test-tsearch.sh: New file.
52223         * tests/test-tsearch.c: New file, mostly copied from glibc.
52224
52225         * modules/search-tests: New file.
52226         * tests/test-search.c: New file.
52227
52228         * modules/search: New file.
52229         * lib/search_.h: New file, incorporating lib/tsearch.h.
52230         * m4/search_h.m4: New file.
52231         * lib/tsearch.h: Remove file.
52232         * lib/tsearch.c: Include search.h instead of tsearch.h.
52233         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
52234         HAVE_TSEARCH.
52235         * modules/tsearch (Files): Remove lib/tsearch.h.
52236         (Depends-on): Add search.
52237         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
52238         (Include): Change tsearch.h into search.h.
52239
52240 2007-03-24  Bruno Haible  <bruno@clisp.org>
52241
52242         * modules/fpucw: New file.
52243         * lib/fpucw.h: New file.
52244         * lib/frexp.c: Include fpucw.h.
52245         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52246         (FUNC): Use them.
52247         * lib/printf-frexp.c: Include fpucw.h.
52248         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
52249         (FUNC): Use them.
52250         * lib/vasnprintf.c: Include fpucw.h.
52251         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
52252         'long double' calculations.
52253         * tests/test-frexpl.c: Include fpucw.h.
52254         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52255         * tests/test-printf-frexpl.c: Include fpucw.h.
52256         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
52257         * modules/frexpl (Depends-on): Add fpucw.
52258         * modules/printf-frexpl (Depends-on): Likewise.
52259         * modules/fprintf-posix (Depends-on): Likewise.
52260         * modules/snprintf-posix (Depends-on): Likewise.
52261         * modules/sprintf-posix (Depends-on): Likewise.
52262         * modules/vasnprintf-posix (Depends-on): Likewise.
52263         * modules/vasprintf-posix (Depends-on): Likewise.
52264         * modules/vfprintf-posix (Depends-on): Likewise.
52265         * modules/vsnprintf-posix (Depends-on): Likewise.
52266         * modules/vsprintf-posix (Depends-on): Likewise.
52267         * modules/frexpl-tests (Depends-on): Likewise.
52268         * modules/printf-frexpl-tests (Depends-on): Likewise.
52269
52270 2007-03-24  Bruno Haible  <bruno@clisp.org>
52271
52272         * lib/float+.h: New file.
52273         * lib/isnan.c: Include float+.h.
52274         (SIZE): New macro.
52275         (FUNC): Compare only SIZE bytes of the value.
52276         * lib/vasnprintf.c: Include float+.h.
52277         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
52278         SIZEOF_LDBL or SIZEOF_DBL bytes.
52279         * modules/isnan-nolibm (Files): Add lib/float+.h.
52280         * modules/isnanl-nolibm (Files): Add lib/float+.h.
52281         * modules/isnanl (Files): Add lib/float+.h.
52282         * modules/vasnprintf (Files): Add lib/float+.h.
52283
52284 2007-03-24  Bruno Haible  <bruno@clisp.org>
52285
52286         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
52287         include isnanl-nolibm.h.
52288
52289 2007-03-24  Bruno Haible  <bruno@clisp.org>
52290
52291         * tests/test-read-file.c (main): Don't produce spurious output for
52292         expected situations. Make the test fail if it encountered unexpected
52293         results.
52294
52295 2007-03-24  Bruno Haible  <bruno@clisp.org>
52296
52297         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
52298         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
52299
52300 2007-03-24  Bruno Haible  <bruno@clisp.org>
52301
52302         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
52303
52304 2007-03-24  Bruno Haible  <bruno@clisp.org>
52305
52306         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
52307         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
52308
52309         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
52310         * modules/utf8-ucs4: Turn into a symbolic link to module
52311         unistr/u8-mbtouc.
52312
52313         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
52314         utf8-ucs4-unsafe.
52315         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
52316         unistr/u8-mbtouc-unsafe.
52317
52318         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
52319         * modules/utf16-ucs4: Turn into a symbolic link to module
52320         unistr/u16-mbtouc.
52321
52322         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
52323         utf16-ucs4-unsafe.
52324         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
52325         unistr/u16-mbtouc-unsafe.
52326
52327         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
52328         * modules/ucs4-utf8: Turn into a symbolic link to module
52329         unistr/u8-ubtomb.
52330
52331         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
52332         * modules/ucs4-utf16: Turn into a symbolic link to module
52333         unistr/u16-ubtomb.
52334
52335 2007-03-24  Bruno Haible  <bruno@clisp.org>
52336
52337         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
52338         Enable the function only if HAVE_INLINE.
52339         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
52340         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52341         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
52342         Enable the function only if HAVE_INLINE.
52343         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
52344         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
52345         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
52346         Enable the function only if HAVE_INLINE.
52347         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
52348         Enable the function only if HAVE_INLINE.
52349         * modules/utf8-ucs4: Update.
52350         * modules/utf8-ucs4-unsafe: Update.
52351         * modules/utf16-ucs4: Update.
52352         * modules/utf16-ucs4-unsafe: Update.
52353         * modules/ucs4-utf8: Update.
52354         * modules/ucs4-utf16: Update.
52355
52356 2007-03-24  Bruno Haible  <bruno@clisp.org>
52357
52358         * lib/utf8-ucs4.h: Remove file.
52359         * lib/utf8-ucs4-unsafe.h: Remove file.
52360         * lib/utf16-ucs4.h: Remove file.
52361         * lib/utf16-ucs4-unsafe.h: Remove file.
52362         * lib/ucs4-utf8.h: Remove file.
52363         * lib/ucs4-utf16.h: Remove file.
52364         * lib/unistr.h: Include their previous contents.
52365         * m4/utf-ucs4.m4: Remove file.
52366         * m4/ucs4-utf.m4: Remove file.
52367         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
52368         (Depends-on): Add unistr/base.
52369         (configure.ac): Remove gl_UTF_UCS4.
52370         (Makefile.am): Update.
52371         (Include): Change to unistr.h.
52372         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
52373         (Depends-on): Add unistr/base.
52374         (configure.ac): Remove gl_UTF_UCS4.
52375         (Makefile.am): Update.
52376         (Include): Change to unistr.h.
52377         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
52378         (Depends-on): Add unistr/base.
52379         (configure.ac): Remove gl_UTF_UCS4.
52380         (Makefile.am): Update.
52381         (Include): Change to unistr.h.
52382         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
52383         (Depends-on): Add unistr/base.
52384         (configure.ac): Remove gl_UTF_UCS4.
52385         (Makefile.am): Update.
52386         (Include): Change to unistr.h.
52387         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
52388         (Depends-on): Add unistr/base.
52389         (configure.ac): Remove gl_UCS4_UTF.
52390         (Makefile.am): Update.
52391         (Include): Change to unistr.h.
52392         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
52393         (Depends-on): Add unistr/base.
52394         (configure.ac): Remove gl_UCS4_UTF.
52395         (Makefile.am): Update.
52396         (Include): Change to unistr.h.
52397         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
52398         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
52399         utf8-ucs4-unsafe.h.
52400         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
52401         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
52402         utf16-ucs4-unsafe.h.
52403         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
52404         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
52405         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
52406         * lib/unistr/u8-strchr.c: Likewise.
52407         * lib/unistr/u8-strrchr.c: Likewise.
52408         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
52409         * lib/unistr/u16-strchr.c: Likewise.
52410         * lib/unistr/u16-strrchr.c: Likewise.
52411         * lib/striconveh.c: Update.
52412         * lib/linebreak.c: Update.
52413
52414 2007-03-24  Bruno Haible  <bruno@clisp.org>
52415
52416         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
52417         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
52418
52419 2007-03-22  Bruno Haible  <bruno@clisp.org>
52420
52421         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
52422
52423 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
52424
52425         * MODULES.html.sh (File system functions): New module write-any-file.
52426         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
52427         * m4/write-any-file.m4: New files.
52428
52429 2007-03-23  Eric Blake  <ebb9@byu.net>
52430
52431         * gnulib-tool: Rearrange space-tab sequences, since some editors
52432         like to eat them.
52433
52434 2007-03-23  Eric Blake  <ebb9@byu.net>
52435
52436         * lib/version-etc.c (version_etc_va): Update license wording to
52437         be more concise.  Recommended by Richard Stallman.
52438
52439 2007-03-22  Bruno Haible  <bruno@clisp.org>
52440
52441         * lib/poll.c (MSG_PEEK): New fallback definition.
52442
52443 2007-03-22  Bruno Haible  <bruno@clisp.org>
52444
52445         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
52446         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
52447         (main): Update.
52448         Fixes a compilation error on BeOS.
52449
52450 2007-03-22  Bruno Haible  <bruno@clisp.org>
52451
52452         * modules/frexpl-tests: New file.
52453         * tests/test-frexpl.c: New file.
52454
52455         * modules/frexpl: New file.
52456         * m4/frexpl.m4: New file.
52457         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
52458         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
52459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
52460         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
52461         (Depends-on): Add frexpl. Remove isnanl-nolibm.
52462         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
52463
52464 2007-03-22  Bruno Haible  <bruno@clisp.org>
52465
52466         * lib/frexpl.c: Share code with lib/frexp.c.
52467         * modules/mathl (Files): Add lib/frexp.c.
52468         (Depends-on): Add isnanl-nolibm.
52469
52470 2007-03-22  Bruno Haible  <bruno@clisp.org>
52471
52472         * modules/printf-frexp (Files): Add m4/frexp.m4.
52473         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
52474         only if the found frexp function actually works.
52475
52476 2007-03-22  Bruno Haible  <bruno@clisp.org>
52477
52478         * lib/frexp.c: Remove older implementation that uses divisions.
52479
52480 2007-03-21  Bruno Haible  <bruno@clisp.org>
52481
52482         * modules/frexp-tests: New file.
52483         * tests/test-frexp.c: New file.
52484
52485         * modules/frexp: New file.
52486         * lib/frexp.c: New file.
52487         * m4/frexp.m4: New file.
52488         * lib/math_.h (frexp): New declaration.
52489         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
52490         REPLACE_FREXP.
52491         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
52492
52493 2007-03-21  Bruno Haible  <bruno@clisp.org>
52494
52495         * modules/isnanl-tests: New file.
52496         * tests/test-isnanl.c: New file.
52497
52498         * modules/isnanl: New file.
52499         * lib/isnanl.h: New file.
52500         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
52501         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
52502         gl_FUNC_ISNANL_WORKS.
52503         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
52504         New macros.
52505
52506 2007-03-21  Bruno Haible  <bruno@clisp.org>
52507
52508         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
52509         lib/isnanl.h.
52510         (Include): Update.
52511         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
52512         * lib/vasnprintf.c: Update.
52513         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
52514         tests/test-isnanl.h, remove tests/test-isnanl.c.
52515         (Makefile.am): Update.
52516         * tests/test-isnanl-nolibm.c: New file.
52517         * tests/test-isnanl.h: New file.
52518         * tests/test-isnanl.c: Remove file.
52519
52520 2007-03-21  Jim Meyering  <jim@meyering.net>
52521
52522         When trying to open ".", treat ESTALE like EACCES.
52523         * lib/savewd.c (savewd_save): Resort to forking not just upon
52524         failure with EACCES, but also when errno is ESTALE.
52525
52526 2007-03-20  Bruno Haible  <bruno@clisp.org>
52527
52528         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
52529         Needed on AIX 5.1. Reported by Matthew Woehlke.
52530
52531 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52532
52533         Suggestions by Bruno Haible:
52534         * lib/acl-internal.h: Include "gettext.h" rather than rolling
52535         our own.
52536         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
52537         * modules/acl (Depends-on): Add gettext.
52538
52539 2007-03-19  Bruno Haible  <bruno@clisp.org>
52540
52541         * modules/iconvme: Remove file.
52542         * lib/iconvme.h: Remove file.
52543         * lib/iconvme.c: Remove file.
52544         * m4/iconvme.m4: Remove file.
52545
52546 2007-03-19  Bruno Haible  <bruno@clisp.org>
52547
52548         * doc/relocatable-maint.texi: Break long shell script line.
52549         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52550
52551 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52552
52553         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
52554         handle file_has_acl.
52555         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
52556         * lib/acl.c: Move header inclusions and related macro defns into
52557         lib/acl-internal.h.
52558         (S_ISLNK): Remove defn, since that's now done for us.
52559         (file_has_acl): Move to lib/file-has-acl.c.
52560         Call acl_trivial if available.  This is the crucial part of the fix.
52561         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
52562         shared within the library.  Rewrite a bit, partly to make it compatible
52563         with the GNU coding style.
52564         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
52565         Remove unnecessary double-quotes.
52566         Don't test for acl_to_text; the build will catch that.
52567         Replace acl_entries if it doesn't exist and it is needed.
52568         Check for -lsec and acl_trivial (as used on Solaris 10).
52569         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
52570         lib/file-has-acl.c.
52571         (Depends-on): Add sys_stat, for S_ISLNK.
52572
52573 2007-03-19  Ben Pfaff  <blp@gnu.org>
52574
52575         * doc/gnulib.texi: Fix typos.
52576         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
52577
52578 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
52579
52580         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
52581         If size is zero here, buf must be zero.
52582
52583 2007-03-19  Simon Josefsson  <simon@josefsson.org>
52584
52585         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
52586         <bruno@clisp.org>.
52587
52588 2007-03-18  Bruno Haible  <bruno@clisp.org>
52589
52590         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
52591         Suggested by Eric Blake.
52592
52593 2007-03-18  Ben Pfaff  <blp@gnu.org>
52594
52595         * doc/relocatable.texi: Recommend using as prefix a directory
52596         that does not exist and will never be created.  Based on
52597         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
52598         and others.
52599
52600 2007-03-17  Bruno Haible  <bruno@clisp.org>
52601
52602         * lib/fchownat.c: Include lchown.h.
52603
52604 2007-03-17  Bruno Haible  <bruno@clisp.org>
52605
52606         Fix endless loop when the given allocated size was > INT_MAX.
52607         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
52608         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
52609         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
52610         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
52611         * lib/sprintf.c (sprintf): Likewise.
52612
52613 2007-03-17  Bruno Haible  <bruno@clisp.org>
52614
52615         * tests/test-argp-2.sh (func_compare): Output a context diff.
52616
52617 2007-03-17  Bruno Haible  <bruno@clisp.org>
52618
52619         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
52620         locale's decimal-point character.
52621
52622 2007-03-17  Bruno Haible  <bruno@clisp.org>
52623
52624         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
52625         before comparing it. Needed because on some platforms (e.g. x86) a
52626         'long double' occupies less bytes than sizeof (long double).
52627
52628 2007-03-17  Bruno Haible  <bruno@clisp.org>
52629
52630         * tests/test-crc.c (main): Make printf statements 64-bit clean.
52631         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
52632         * tests/test-getaddrinfo.c (simple): Likewise.
52633         * tests/test-read-file.c (main): Likewise.
52634
52635 2007-03-17  Bruno Haible  <bruno@clisp.org>
52636
52637         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
52638
52639 2007-03-17  Bruno Haible  <bruno@clisp.org>
52640
52641         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
52642         unused variable.
52643
52644 2007-03-17  Bruno Haible  <bruno@clisp.org>
52645
52646         * tests/test-c-strcasecmp.c: Include c-strcase.h.
52647         * tests/test-c-strncasecmp.c: Likewise.
52648
52649 2007-03-17  Bruno Haible  <bruno@clisp.org>
52650
52651         * modules/stdlib (Depends-on): Add unistd.
52652         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
52653         Needed for MacOS X 10.3.
52654
52655 2007-03-17  Bruno Haible  <bruno@clisp.org>
52656
52657         * lib/unistr/u-strdup.h: Include <stdlib.h>.
52658
52659 2007-03-17  Bruno Haible  <bruno@clisp.org>
52660
52661         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
52662
52663 2007-03-17  Bruno Haible  <bruno@clisp.org>
52664
52665         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
52666         to reflect files copied from gnulib (with or without modifications).
52667         Suggested by Jim Meyering.
52668
52669 2007-03-17  Eric Blake  <ebb9@byu.net>
52670
52671         * NEWS: Document stdlib change from 2007-02-18.
52672
52673 2007-03-17  Jim Meyering  <jim@meyering.net>
52674
52675         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
52676         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
52677         someone uses a name containing shell meta-characters.
52678         Reported by Alfred M. Szmidt.
52679
52680         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
52681
52682 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52683
52684         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
52685         and copy gettext configuration files only if configure.ac contains
52686         a use of AM_GNU_GETTEXT_VERSION.
52687
52688 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
52689
52690         * build-aux/bootstrap (gnulib_name): New variable.
52691         (gnulib_tool_options): Use it.
52692
52693 2007-03-13  Simon Josefsson  <simon@josefsson.org>
52694
52695         * tests/test-des.c: Use new namespace.
52696
52697 2007-03-15  Bruno Haible  <bruno@clisp.org>
52698
52699         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
52700         Reported by James Youngman <jay@gnu.org>.
52701
52702 2007-03-15  Bruno Haible  <bruno@clisp.org>
52703
52704         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
52705         declared prototype. Needed with cc on OSF/1 5.1.
52706
52707 2007-03-15  Bruno Haible  <bruno@clisp.org>
52708
52709         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
52710         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
52711         (struct gl_list_implementation): Add dispose_fn argument to the
52712         'create_empty', 'create' methods.
52713         (struct gl_list_impl_base): Add field 'dispose_fn'.
52714         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
52715         argument.
52716         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
52717         dispose_fn argument.
52718         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
52719         dispose_fn on the dropped values.
52720         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
52721         dispose_fn argument.
52722         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
52723         dropped values.
52724         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
52725         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52726         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
52727         (gl_tree_remove_node): Call dispose_fn on the dropped value.
52728         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
52729         argument.
52730         (gl_tree_list_free): Call dispose_fn on the dropped values.
52731         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
52732         the dropped values.
52733         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
52734         Add dispose_fn argument.
52735         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
52736         Call dispose_fn on the dropped values.
52737         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
52738         Add dispose_fn argument.
52739         (gl_sublist_create): Initialize the 'dispose_fn' field.
52740         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
52741         * tests/test-array_list.c (main): Update.
52742         * tests/test-carray_list.c (main): Update.
52743         * tests/test-avltree_list.c (main): Update.
52744         * tests/test-rbtree_list.c (main): Update.
52745         * tests/test-avltreehash_list.c (main): Update.
52746         * tests/test-rbtreehash_list.c (main): Update.
52747         * tests/test-linked_list.c (main): Update.
52748         * tests/test-linkedhash_list.c (main): Update.
52749         * tests/test-array_oset.c (main): Update.
52750
52751 2007-03-15  Bruno Haible  <bruno@clisp.org>
52752
52753         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
52754         (gl_oset_create_empty): Add dispose_fn argument.
52755         (struct gl_oset_implementation): Add dispose_fn argument to
52756         'create_empty' method.
52757         (struct gl_oset_impl_base): Add dispose_fn field.
52758         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
52759         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
52760         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
52761         values.
52762         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
52763         (gl_tree_oset_free): Call dispose_fn on the dropped values.
52764         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
52765         dropped value.
52766         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
52767         dropped value.
52768         * tests/test-array_oset.c (main): Update.
52769         * tests/test-avltree_oset.c (main): Update.
52770         * tests/test-rbtree_oset.c (main): Update.
52771         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
52772
52773 2007-03-13  Bruno Haible  <bruno@clisp.org>
52774
52775         * tests/test-stdbool.c (i): Update after last patch.
52776
52777 2007-03-12  Bruno Haible  <bruno@clisp.org>
52778
52779         * lib/quotearg.c: Include <wctype.h> early, before the definition of
52780         the iswprint macro. Needed on Solaris 2.5.1.
52781
52782 2007-03-12  Bruno Haible  <bruno@clisp.org>
52783
52784         * tests/test-printf-frexp.c (main): Declare x as volatile.
52785
52786 2007-03-12  Simon Josefsson  <simon@josefsson.org>
52787
52788         * doc/gnulib.texi (Build robot for gnulib): New section.
52789
52790 2007-03-12  Jim Meyering  <jim@meyering.net>
52791
52792         * build-aux/bootstrap: New file.
52793         * build-aux/bootstrap.conf: New file, from coreutils.
52794
52795 2007-03-11  Bruno Haible  <bruno@clisp.org>
52796
52797         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
52798
52799 2007-03-12  Simon Josefsson  <simon@josefsson.org>
52800
52801         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
52802         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
52803         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
52804
52805 2007-03-11  Bruno Haible  <bruno@clisp.org>
52806
52807         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
52808         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
52809
52810 2007-03-11  Bruno Haible  <bruno@clisp.org>
52811
52812         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
52813         formula. Needed for SunPRO C 5.0.
52814
52815 2007-03-11  Bruno Haible  <bruno@clisp.org>
52816
52817         * modules/long-options (Depends-on): Add getopt.
52818
52819 2007-03-11  Bruno Haible  <bruno@clisp.org>
52820
52821         * modules/modechange (Depends-on): Add stdbool.
52822
52823 2007-03-11  Bruno Haible  <bruno@clisp.org>
52824
52825         * modules/i-ring (Depends-on): Add stdbool.
52826
52827 2007-03-11  Bruno Haible  <bruno@clisp.org>
52828
52829         * modules/gc-des (Depends-on): Add stdbool.
52830
52831 2007-03-11  Bruno Haible  <bruno@clisp.org>
52832
52833         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
52834
52835 2007-03-11  Bruno Haible  <bruno@clisp.org>
52836
52837         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
52838
52839 2007-03-11  Bruno Haible  <bruno@clisp.org>
52840
52841         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
52842
52843 2007-03-11  Bruno Haible  <bruno@clisp.org>
52844
52845         * lib/vasnprintf.c (sprintf): Undefine.
52846
52847 2007-03-11  Bruno Haible  <bruno@clisp.org>
52848
52849         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
52850         initializers in SunPRO C and Compaq C compilers.
52851
52852 2007-03-11  Bruno Haible  <bruno@clisp.org>
52853
52854         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
52855         decrementing code ANSI C compliant.
52856
52857 2007-03-11  Bruno Haible  <bruno@clisp.org>
52858
52859         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
52860         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
52861
52862 2007-03-11  Bruno Haible  <bruno@clisp.org>
52863
52864         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
52865         <stdbool.h> substitute doesn't pass.
52866
52867 2007-03-11  Bruno Haible  <bruno@clisp.org>
52868
52869         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
52870
52871 2007-03-11  Bruno Haible  <bruno@clisp.org>
52872
52873         * gnulib-tool (func_create_megatestdir): Create also an autobuild
52874         script, for submission to autobuild.josefsson.org.
52875
52876 2007-03-10  Bruno Haible  <bruno@clisp.org>
52877
52878         * modules/canonicalize-lgpl-tests: New file.
52879         * tests/test-canonicalize-lgpl.sh: New file.
52880         * tests/test-canonicalize-lgpl.c: New file.
52881
52882         * modules/c-strcase-tests: New file.
52883         * tests/test-c-strcase.sh: New file.
52884         * tests/test-c-strcasecmp.c: New file.
52885         * tests/test-c-strncasecmp.c: New file.
52886
52887         * modules/atexit-tests: New file.
52888         * tests/test-atexit.sh: New file.
52889         * tests/test-atexit.c: New file.
52890
52891 2007-03-10  Bruno Haible  <bruno@clisp.org>
52892
52893         * tests/test-binary-io.sh: Use temporary filenames that are not so
52894         likely to clash with those of other tests (in a parallel make).
52895         * tests/test-binary-io.c: Likewise.
52896
52897 2007-03-10  Bruno Haible  <bruno@clisp.org>
52898
52899         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
52900         fallback; use #error instead.
52901         Suggested by Simon Josefsson.
52902
52903 2007-03-10  Bruno Haible  <bruno@clisp.org>
52904
52905         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
52906         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
52907         first and the last.
52908
52909 2007-03-10  Bruno Haible  <bruno@clisp.org>
52910
52911         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
52912
52913 2007-03-10  Bruno Haible  <bruno@clisp.org>
52914
52915         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
52916         "make distcheck".
52917         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
52918         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
52919         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
52920
52921 2007-03-10  Bruno Haible  <bruno@clisp.org>
52922
52923         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
52924         variable.
52925         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
52926         variable.
52927
52928 2007-03-09  Eric Blake  <ebb9@byu.net>
52929         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
52930
52931         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
52932         types are not being provided by gnulib.
52933         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
52934         types are supported.
52935
52936 2007-03-10  Bruno Haible  <bruno@clisp.org>
52937
52938         * lib/stdio_.h (__attribute__): New macro.
52939         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
52940         vsprintf): Specify __attribute__ __format__ for GCC.
52941         Suggested by Eric Blake.
52942
52943 2007-03-09  Bruno Haible  <bruno@clisp.org>
52944
52945         * modules/printf-posix-tests: New file.
52946         * tests/test-printf-posix.sh: New file.
52947         * tests/test-printf-posix.c: New file.
52948
52949         * modules/printf-posix: New file.
52950         * lib/printf.c: New file.
52951         * m4/printf-posix-rpl.m4: New file.
52952         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
52953         REPLACE_PRINTF.
52954         * lib/stdio_.h (printf): New declaration.
52955         (format, __format__, ____printf____, ____scanf____, ____strftime____,
52956         ____strfmon____): New macros.
52957         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
52958         REPLACE_PRINTF.
52959
52960 2007-03-09  Bruno Haible  <bruno@clisp.org>
52961
52962         * tests/test-vasnprintf-posix2.sh: New file.
52963         * tests/test-vasnprintf-posix2.c: New file.
52964         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
52965         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
52966         (Makefile.am): Activate test-vasnprintf-posix2.sh.
52967
52968         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
52969         a locale dependent decimal point, rather than always '.'.
52970
52971 2007-03-09  Eric Blake  <ebb9@byu.net>
52972
52973         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
52974         spite of platforms like Tandem/NSK that define it to -1.
52975
52976 2007-03-08  Bruno Haible  <bruno@clisp.org>
52977
52978         * modules/vprintf-posix-tests: New file.
52979         * tests/test-vprintf-posix.sh: New file.
52980         * tests/test-vprintf-posix.c: New file.
52981         * tests/test-printf-posix.h: New file.
52982
52983         * modules/vprintf-posix: New file.
52984         * lib/vprintf.c: New file.
52985         * m4/vprintf-posix.m4: New file.
52986         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
52987         REPLACE_VPRINTF.
52988         * lib/stdio_.h (vprintf): New declaration.
52989         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
52990         REPLACE_VPRINTF.
52991
52992 2007-03-08  Bruno Haible  <bruno@clisp.org>
52993
52994         * modules/fprintf-posix-tests: New file.
52995         * tests/test-fprintf-posix.sh: New file.
52996         * tests/test-fprintf-posix.c: New file.
52997
52998         * modules/fprintf-posix: New file.
52999         * lib/fprintf.c: New file.
53000         * m4/fprintf-posix.m4: New file.
53001         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
53002         REPLACE_FPRINTF.
53003         * lib/stdio_.h (fprintf): New declaration.
53004         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
53005         REPLACE_FPRINTF.
53006
53007 2007-03-08  Bruno Haible  <bruno@clisp.org>
53008
53009         * modules/vfprintf-posix-tests: New file.
53010         * tests/test-vfprintf-posix.sh: New file.
53011         * tests/test-vfprintf-posix.c: New file.
53012         * tests/test-fprintf-posix.h: New file.
53013         * tests/test-fprintf-posix.out: New file.
53014
53015         * modules/vfprintf-posix: New file.
53016         * lib/vfprintf.c: New file.
53017         * m4/vfprintf-posix.m4: New file.
53018         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
53019         REPLACE_VFPRINTF.
53020         * lib/stdio_.h (vfprintf): New declaration.
53021         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
53022         REPLACE_VFPRINTF.
53023
53024 2007-03-08  Bruno Haible  <bruno@clisp.org>
53025
53026         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
53027
53028 2007-03-08  Bruno Haible  <bruno@clisp.org>
53029
53030         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
53031         instead of 'expr' invocations.
53032         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53033         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53034         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53035         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53036         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53037         Suggested by Paul Eggert.
53038
53039 2007-03-08  Bruno Haible  <bruno@clisp.org>
53040
53041         * modules/fseterr-tests: New file.
53042         * tests/test-fseterr.c: New file.
53043
53044         * modules/fseterr: New file.
53045         * lib/fseterr.h: New file.
53046         * lib/fseterr.c: New file.
53047
53048 2007-03-08  Bruno Haible  <bruno@clisp.org>
53049
53050         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
53051         * lib/getopt_.h: Likewise.
53052         * lib/mbswidth.h: Likewise.
53053         * lib/setenv.h: Likewise.
53054         * lib/vasnprintf.h: Likewise.
53055         * lib/vasprintf.h: Likewise.
53056         * lib/verror.h: Likewise.
53057         * lib/xsetenv.h: Likewise.
53058         * lib/xvasprintf.h: Likewise.
53059
53060 2007-03-08  Jim Meyering  <jim@meyering.net>
53061
53062         * users.txt: Add parted.
53063
53064         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
53065
53066 2007-03-07  Bruno Haible  <bruno@clisp.org>
53067
53068         * m4/printf.m4: Make the shell script snippets copy&pastable.
53069
53070 2007-03-02  Bruno Haible  <bruno@clisp.org>
53071
53072         * lib/netinet_in_.h: New file.
53073         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
53074         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
53075         * modules/netinet_in (Files): Add lib/netinet_in_.h.
53076         (Depends-on): Add absolute-header.
53077         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
53078         into netinet/in.h.
53079
53080 2007-03-03  Bruno Haible  <bruno@clisp.org>
53081
53082         * lib/sys_select_.h: New file.
53083         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
53084         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
53085         * modules/sys_select (Files): Add lib/sys_select_.h.
53086         (Depends-on): Add absolute-header.
53087         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
53088         into sys/select.h.
53089
53090 2007-03-02  Bruno Haible  <bruno@clisp.org>
53091
53092         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
53093         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
53094         values.
53095         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
53096         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
53097         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
53098         * modules/sys_socket (Depends-on): Add absolute-header.
53099         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
53100         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
53101         (Include): Remove requirement of inclusion of <sys/types.h>.
53102
53103 2007-03-02  Bruno Haible  <bruno@clisp.org>
53104
53105         * lib/byteswap_.h (bswap_32): Fix formula.
53106
53107 2007-03-06  Bruno Haible  <bruno@clisp.org>
53108
53109         * modules/sprintf-posix-tests: New file.
53110         * tests/test-sprintf-posix.c: New file.
53111
53112         * modules/sprintf-posix: New file.
53113         * lib/sprintf.c: New file.
53114         * m4/sprintf-posix.m4: New file.
53115         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
53116         REPLACE_SPRINTF.
53117         * lib/stdio_.h (sprintf): New declaration.
53118         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
53119         REPLACE_SPRINTF.
53120
53121 2007-03-06  Bruno Haible  <bruno@clisp.org>
53122
53123         * modules/vsprintf-posix-tests: New file.
53124         * tests/test-vsprintf-posix.c: New file.
53125         * tests/test-sprintf-posix.h: New file.
53126
53127         * modules/vsprintf-posix: New file.
53128         * lib/vsprintf.c: New file.
53129         * m4/vsprintf-posix.m4: New file.
53130         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
53131         REPLACE_VSPRINTF.
53132         * lib/stdio_.h (vsprintf): New declaration.
53133         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
53134         REPLACE_VSPRINTF.
53135
53136 2007-03-06  Bruno Haible  <bruno@clisp.org>
53137
53138         * modules/vsnprintf (Depend-on): Remove minmax.
53139
53140 2007-03-06  Bruno Haible  <bruno@clisp.org>
53141
53142         * modules/snprintf-posix-tests: New file.
53143         * tests/test-snprintf-posix.c: New file.
53144
53145         * modules/snprintf-posix: New file.
53146         * m4/snprintf-posix.m4: New file.
53147         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
53148         gl_FUNC_SNPRINTF.
53149         (gl_FUNC_SNPRINTF): Invoke it.
53150         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
53151         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
53152         is set.
53153         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
53154
53155 2007-03-06  Bruno Haible  <bruno@clisp.org>
53156
53157         * modules/vsnprintf-posix-tests: New file.
53158         * tests/test-vsnprintf-posix.c: New file.
53159         * tests/test-snprintf-posix.h: New file.
53160
53161         * modules/vsnprintf-posix: New file.
53162         * m4/vsnprintf-posix.m4: New file.
53163         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
53164         gl_FUNC_VSNPRINTF.
53165         (gl_FUNC_VSNPRINTF): Invoke it.
53166         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
53167         * lib/stdio_.h (vsnprintf): Define as a replacement if
53168         REPLACE_VSNPRINTF is set.
53169         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
53170
53171 2007-03-06  Bruno Haible  <bruno@clisp.org>
53172
53173         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
53174         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
53175
53176 2007-03-06  Bruno Haible  <bruno@clisp.org>
53177
53178         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
53179         (asinl): Declare also if HAVE_DECL_ASINL is set.
53180         (atanl): Declare also if HAVE_DECL_ATANL is set.
53181         (ceill): Declare also if HAVE_DECL_CEILL is set.
53182         (cosl): Declare also if HAVE_DECL_COSL is set.
53183         (expl): Declare also if HAVE_DECL_EXPL is set.
53184         (floorl): Declare also if HAVE_DECL_FLOORL is set.
53185         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
53186         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
53187         (logl): Declare also if HAVE_DECL_LOGL is set.
53188         (sinl): Declare also if HAVE_DECL_SINL is set.
53189         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
53190         (tanl): Declare also if HAVE_DECL_TANL is set.
53191         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
53192         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
53193         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
53194         declaration of frexpl, ldexpl.
53195         * modules/printf-frexpl (Depends-on): Add math.
53196         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
53197
53198 2007-03-05  Bruno Haible  <bruno@clisp.org>
53199
53200         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
53201         frexpl and ldexpl are declared.
53202         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
53203
53204 2007-03-05  Bruno Haible  <bruno@clisp.org>
53205
53206         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
53207         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
53208
53209 2007-03-05  Bruno Haible  <bruno@clisp.org>
53210
53211         * lib/stdio_.h: Include <stddef.h>.
53212
53213 2007-03-05  Bruno Haible  <bruno@clisp.org>
53214
53215         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
53216
53217 2007-03-05  Bruno Haible  <bruno@clisp.org>
53218
53219         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
53220         NetBSD 4, from Ralf Wildenhues.
53221
53222 2007-03-04  Bruno Haible  <bruno@clisp.org>
53223
53224         * lib/vasprintf.h: Update #if logic for the case when the functions
53225         exist but are overridden.
53226
53227 2007-03-04  Bruno Haible  <bruno@clisp.org>
53228
53229         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
53230         implementations: glibc-2.4 and MacOS X 10.3.
53231         * tests/test-vasnprintf-posix.c (test_function): Test also the case
53232         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
53233         * tests/test-vasprintf-posix.c (test_function): Likewise.
53234
53235 2007-03-04  Bruno Haible  <bruno@clisp.org>
53236
53237         * modules/vasprintf-posix-tests: New file.
53238         * tests/test-vasprintf-posix.c: New file.
53239
53240         * modules/vasprintf-posix: New file.
53241         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
53242         defined.
53243         * m4/vasprintf-posix.m4: New file.
53244         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
53245         gl_FUNC_VASPRINTF.
53246         (gl_FUNC_VASPRINTF): Invoke it.
53247         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
53248         here.
53249         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
53250
53251 2007-03-04  Bruno Haible  <bruno@clisp.org>
53252
53253         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
53254         REPLACE_GETTIMEOFDAY.
53255         * modules/sys_time (Makefile.am): Likewise.
53256         * m4/sys_time_h.m4: Likewise.
53257         * m4/gettimeofday.m4: Likewise.
53258
53259 2007-03-04  Bruno Haible  <bruno@clisp.org>
53260
53261         * modules/vasnprintf-posix-tests: New file.
53262         * tests/test-vasnprintf-posix.c: New file.
53263
53264         * modules/vasnprintf-posix: New file.
53265         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
53266         printf-frexpl.h.
53267         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
53268         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
53269         REPLACE_VASNPRINTF is defined.
53270         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
53271         gl_FUNC_VASNPRINTF.
53272         (gl_FUNC_VASNPRINTF): Invoke it.
53273         * m4/vasnprintf-posix.m4: New file.
53274         * m4/printf.m4: New file.
53275
53276 2007-03-04  Bruno Haible  <bruno@clisp.org>
53277
53278         Compile progreloc.c only if --enable-relocatable is specified.
53279         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
53280         if --enable-relocatable was specified.
53281         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
53282         lib_SOURCES.
53283
53284 2007-03-04  Jim Meyering  <jim@meyering.net>
53285
53286         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
53287         Use it consistently, rather than enumerating errno constants.
53288
53289 2007-03-04  Bruno Haible  <bruno@clisp.org>
53290
53291         * modules/xvasprintf-tests: New file.
53292         * tests/test-xvasprintf.c: New file.
53293
53294         * modules/vasprintf-tests: New file.
53295         * tests/test-vasprintf.c: New file.
53296
53297         * modules/vasnprintf-tests: New file.
53298         * tests/test-vasnprintf.c: New file.
53299
53300         * modules/vsnprintf-tests: New file.
53301         * tests/test-vsnprintf.c: New file.
53302
53303         * modules/snprintf-tests: New file.
53304         * tests/test-snprintf.c: New file.
53305
53306 2007-03-04  Bruno Haible  <bruno@clisp.org>
53307
53308         Compile relocatable.c only if --enable-relocatable is specified.
53309         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
53310         gl_RELOCATABLE_LIBRARY.
53311         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
53312         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
53313         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
53314         gl_RELOCATABLE_LIBRARY.
53315         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
53316         (Makefile.am): Remove lib_SOURCES.
53317         * modules/relocatable-lib-lgpl (configure.ac): Invoke
53318         gl_RELOCATABLE_LIBRARY.
53319         (Makefile.am): Remove lib_SOURCES.
53320         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
53321         always.
53322         * modules/relocatable-prog-wrapper (configure.ac): Invoke
53323         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
53324
53325 2007-03-04  Bruno Haible  <bruno@clisp.org>
53326
53327         * modules/argmatch-tests: New file.
53328         * tests/test-argmatch.c: New file.
53329
53330         * tests/test-allocsa.c (main): Halve the number of loop runs.
53331
53332         * modules/alloca-opt-tests: New file.
53333         * tests/test-alloca-opt.c: New file.
53334
53335 2007-03-04  Jim Meyering  <jim@meyering.net>
53336
53337         Work around difference between Linux ACLs and Solaris 10 ZFS.
53338         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
53339         for EINVAL.
53340
53341 2007-03-03  Bruno Haible  <bruno@clisp.org>
53342
53343         * modules/relocatable-prog (Depends-on): Add back progreloc's
53344         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
53345
53346 2007-03-03  Bruno Haible  <bruno@clisp.org>
53347
53348         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
53349         * modules/relocatable-lib: New file.
53350
53351 2007-03-03  Bruno Haible  <bruno@clisp.org>
53352
53353         * modules/relocatable-prog: Renamed from modules/relocatable.
53354         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
53355
53356 2007-03-03  Bruno Haible  <bruno@clisp.org>
53357
53358         * modules/relocatable-script (Files): Add doc/relocatable.texi,
53359         m4/relocatable-lib.m4.
53360         (Depends-on): Remove 'relocatable'.
53361         (configure.ac): Add gl_RELOCATABLE_NOP.
53362
53363 2007-03-03  Bruno Haible  <bruno@clisp.org>
53364
53365         * modules/relocatable-prog-wrapper: New file.
53366         * modules/relocatable (Depends-on): Add it. Remove all other
53367         dependencies except progname.
53368         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
53369
53370         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
53371         (gl_FUNC_STRERROR): Nop.
53372         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
53373
53374         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
53375         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
53376
53377         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
53378         (gl_FUNC_READLINK): Update.
53379
53380         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
53381
53382 2007-03-03  Bruno Haible  <bruno@clisp.org>
53383
53384         * lib/xreadlink.c: Include <unistd.h> unconditionally.
53385         * modules/xreadlink (Depends-on): Add unistd.
53386         * modules/xreadlink-with-size (Depends-on): Likewise.
53387
53388 2007-03-03  Bruno Haible  <bruno@clisp.org>
53389
53390         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
53391         extracted from gt_FUNC_SETENV.
53392         (gt_FUNC_SETENV): Remove macro.
53393         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
53394         remove gt_FUNC_SETENV.
53395
53396 2007-03-03  Bruno Haible  <bruno@clisp.org>
53397
53398         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
53399         ENABLE_RELOCATABLE here.
53400         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
53401
53402 2007-03-03  Bruno Haible  <bruno@clisp.org>
53403
53404         * modules/rbtreehash-list-tests (Depends-on): Add progname.
53405         * tests/test-rbtreehash_list.c: Include progname.h.
53406         (main): Call set_program_name.
53407
53408         * modules/rbtree-oset-tests (Depends-on): Add progname.
53409         * tests/test-rbtree_oset.c: Include progname.h.
53410         (main): Call set_program_name.
53411
53412         * modules/rbtree-list-tests (Depends-on): Add progname.
53413         * tests/test-rbtree_list.c: Include progname.h.
53414         (main): Call set_program_name.
53415
53416         * modules/linked-list-tests (Depends-on): Add progname.
53417         * tests/test-linked_list.c: Include progname.h.
53418         (main): Call set_program_name.
53419
53420 2007-03-03  Bruno Haible  <bruno@clisp.org>
53421
53422         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
53423         All uses of __restrict changed to _Restrict_.
53424         * lib/glob_.h (__restrict): Remove macro.
53425
53426 2007-03-02  Bruno Haible  <bruno@clisp.org>
53427
53428         * modules/gettext (configure.ac): Require gettext infrastructure
53429         from version 0.16.1.
53430
53431 2007-03-02  Bruno Haible  <bruno@clisp.org>
53432
53433         * modules/linkedhash-list-tests (Depends-on): Add progname.
53434         * tests/test-linkedhash_list.c: Include progname.h.
53435         (main): Call set_program_name.
53436
53437         * modules/carray-list-tests (Depends-on): Add progname.
53438         * tests/test-carray_list.c: Include progname.h.
53439         (main): Call set_program_name.
53440
53441         * modules/avltreehash-list-tests (Depends-on): Add progname.
53442         * tests/test-avltreehash_list.c: Include progname.h.
53443         (main): Call set_program_name.
53444
53445         * modules/avltree-oset-tests (Depends-on): Add progname.
53446         * tests/test-avltree_oset.c: Include progname.h.
53447         (main): Call set_program_name.
53448
53449         * modules/avltree-list-tests (Depends-on): Add progname.
53450         * tests/test-avltree_list.c: Include progname.h.
53451         (main): Call set_program_name.
53452
53453         * modules/array-oset-tests (Depends-on): Add progname.
53454         * tests/test-array_oset.c: Include progname.h.
53455         (main): Call set_program_name.
53456
53457         * modules/array-list-tests (Depends-on): Add progname.
53458         * tests/test-array_list.c: Include progname.h.
53459         (main): Call set_program_name.
53460
53461         * modules/argp-tests (Depends-on): Add progname.
53462         * tests/test-argp.c: Include argp.h first. Include progname.h.
53463         (main): Call set_program_name.
53464
53465 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
53466
53467         * doc/gnulib-tool.texi (Initial import): Reword description of
53468         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
53469         limited effect even if defined after the first system include.
53470
53471 2007-03-01  Bruno Haible  <bruno@clisp.org>
53472
53473         * build-aux/config.libpath: Update to libtool-1.5.22.
53474         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53475
53476 2007-03-01  Bruno Haible  <bruno@clisp.org>
53477
53478         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
53479         foo_CFLAGS.
53480         Reported by Ralf Wildenhues.
53481
53482 2007-03-01  Bruno Haible  <bruno@clisp.org>
53483
53484         * build-aux/install-reloc: Remove object files left over by some
53485         compilers.
53486         Reported by Ralf Wildenhues.
53487
53488 2007-03-01  Bruno Haible  <bruno@clisp.org>
53489
53490         * build-aux/install-reloc: Break long lines.
53491
53492 2007-03-01  Bruno Haible  <bruno@clisp.org>
53493
53494         * doc/relocatable.texi: Document that it may not work on OpenBSD.
53495         Reported by Ralf Wildenhues.
53496
53497 2007-03-01  Bruno Haible  <bruno@clisp.org>
53498
53499         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
53500         include ordering constraints.
53501
53502 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53503
53504         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
53505         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
53506         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
53507         as another example.
53508         * lib/time_.h: Fix misspelling.
53509         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
53510         Require gl_HEADER_TIME_H_DEFAULTS.
53511         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
53512         * m4/time_r.m4 (gl_TIME_R): Likewise.
53513         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
53514
53515 2007-03-01  Bruno Haible  <bruno@clisp.org>
53516
53517         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
53518         * m4/utimens.m4 (gl_UTIMENS): Likewise.
53519
53520 2007-03-01  Jim Meyering  <jim@meyering.net>
53521
53522         * modules/xreadlink (Maintainer): Add my name.
53523         * modules/xreadlink-with-size (Depends-on): Alphabetize.
53524
53525 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
53526             Bruno Haible  <bruno@clisp.org>
53527
53528         * build-aux/install-reloc: Compile also c-ctype.c.
53529         * build-aux/relocatable.sh.in: New file.
53530         * doc/relocatable.texi: New file.
53531         * doc/relocatable-maint.texi: New file.
53532         * doc/gnulib.texi: Include relocatable-maint.texi.
53533         * lib/progreloc.c: Include unistd.h unconditionally.
53534         * lib/relocwrapper.c: Include unistd.h unconditionally.
53535         Include c-ctype.h.
53536         (add_dotbin): Use c_tolower.
53537         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
53538         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
53539         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
53540         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
53541         to m4/relocatable-lib.m4.
53542         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
53543         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
53544         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
53545         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
53546         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
53547         * modules/relocatable: New file.
53548         * modules/relocatable-lib: New file.
53549         * modules/relocatable-script: New file.
53550
53551 2007-02-28  Bruno Haible  <bruno@clisp.org>
53552
53553         Import --enable-relocatable infrastructure.
53554         * build-aux/config.libpath: New file, from GNU gettext.
53555         * build-aux/install-reloc: New file, from GNU gettext.
53556         * build-aux/reloc-ldflags: New file, from GNU gettext.
53557         * lib/relocatable.h: New file, from GNU gettext.
53558         * lib/relocatable.c: New file, from GNU gettext.
53559         * lib/relocwrapper.c: New file, from GNU gettext.
53560         * m4/relocatable.m4: New file, from GNU gettext.
53561
53562 2007-02-28  Bruno Haible  <bruno@clisp.org>
53563
53564         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
53565
53566         * modules/xreadlink: New file, from GNU gettext with modifications.
53567         * lib/xreadlink.c: New file, from GNU gettext.
53568         * lib/xreadlink.h: Add comments.
53569         (xreadlink): New declaration.
53570
53571         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
53572         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
53573         lib/xreadlink-with-size.c.
53574         (configure.ac): Remove gl_XREADLINK invocation.
53575         (Makefile.am): Augment lib_SOURCES.
53576         * m4/xreadlink.m4: Remove file.
53577         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
53578         (xreadlink_with_size): Renamed from xreadink.
53579         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
53580         * modules/canonicalize (Depends-on): Replace xreadlink with
53581         xreadlink-with-size.
53582         * lib/canonicalize.c (canonicalize_filename_mode): Update.
53583
53584 2007-02-25  Jim Meyering  <jim@meyering.net>
53585
53586         * build-aux/announce-gen: When complaining about excess arguments,
53587         list them.
53588
53589 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
53590
53591         * README: Document signed integer overflow situation more
53592         accurately.
53593
53594 2007-02-25  Bruno Haible  <bruno@clisp.org>
53595
53596         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
53597         'a' or 'A' conversion.
53598
53599 2007-02-25  Bruno Haible  <bruno@clisp.org>
53600
53601         * modules/filename: Renamed from modules/pathname.
53602         (Files): Replace lib/pathname.h with lib/filename.h. Replace
53603         lib/concatpath.c with lib/concat-filename.c.
53604         (Makefile.am): Update.
53605         (Include): Replace pathname.h with filename.h.
53606         * lib/filename.h: Renamed from lib/pathname.h.
53607         (concatenated_filename): Renamed from concatenated_pathname.
53608         * lib/concat-filename.c: Renamed from lib/concatpath.c.
53609         (concatenated_filename): Renamed from concatenated_pathname.
53610         * lib/findprog.c: Include filename.h instead of pathname.h.
53611         (find_in_path): Update.
53612         * lib/javacomp.c: Include filename.h instead of pathname.h.
53613         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
53614         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
53615         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
53616         is_oldgcj_14_13_usable, is_javac_usable): Update.
53617         * lib/javaexec.c: Include filename.h instead of pathname.h.
53618         (execute_java_class): Update.
53619         * modules/findprog: Update.
53620         * modules/javacomp: Update.
53621         * modules/javaexec: Update.
53622         * MODULES.html.sh (File system functions): Add 'filename', remove
53623         'pathname'.
53624
53625 2007-02-25  Bruno Haible  <bruno@clisp.org>
53626
53627         * modules/printf-frexpl-tests: New file.
53628         * tests/test-printf-frexpl.c: New file.
53629
53630         * modules/printf-frexpl: New file.
53631         * lib/printf-frexpl.h: New file.
53632         * lib/printf-frexpl.c: New file.
53633         * m4/printf-frexpl.m4: New file.
53634
53635 2007-02-25  Bruno Haible  <bruno@clisp.org>
53636
53637         * modules/printf-frexp-tests: New file.
53638         * tests/test-printf-frexp.c: New file.
53639
53640         * modules/printf-frexp: New file.
53641         * lib/printf-frexp.h: New file.
53642         * lib/printf-frexp.c: New file.
53643         * m4/printf-frexp.m4: New file.
53644
53645 2007-02-25  Bruno Haible  <bruno@clisp.org>
53646
53647         Assume automake >= 1.10 for the tests.
53648         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
53649         * modules/arctwo-tests: Likewise.
53650         * modules/argp-tests: Likewise.
53651         * modules/avltree-list-tests: Likewise.
53652         * modules/avltree-oset-tests: Likewise.
53653         * modules/avltreehash-list-tests: Likewise.
53654         * modules/carray-list-tests: Likewise.
53655         * modules/crc-tests: Likewise.
53656         * modules/des-tests: Likewise.
53657         * modules/gc-arcfour-tests: Likewise.
53658         * modules/gc-arctwo-tests: Likewise.
53659         * modules/gc-des-tests: Likewise.
53660         * modules/gc-hmac-md5-tests: Likewise.
53661         * modules/gc-hmac-sha1-tests: Likewise.
53662         * modules/gc-md2-tests: Likewise.
53663         * modules/gc-md4-tests: Likewise.
53664         * modules/gc-md5-tests: Likewise.
53665         * modules/gc-pbkdf2-sha1-tests: Likewise.
53666         * modules/gc-rijndael-tests: Likewise.
53667         * modules/gc-sha1-tests: Likewise.
53668         * modules/gc-tests: Likewise.
53669         * modules/getaddrinfo-tests: Likewise.
53670         * modules/hmac-md5-tests: Likewise.
53671         * modules/hmac-sha1-tests: Likewise.
53672         * modules/linked-list-tests: Likewise.
53673         * modules/linkedhash-list-tests: Likewise.
53674         * modules/lock-tests: Likewise.
53675         * modules/md2-tests: Likewise.
53676         * modules/md4-tests: Likewise.
53677         * modules/md5-tests: Likewise.
53678         * modules/rbtree-list-tests: Likewise.
53679         * modules/rbtree-oset-tests: Likewise.
53680         * modules/rbtreehash-list-tests: Likewise.
53681         * modules/read-file-tests: Likewise.
53682         * modules/rijndael-tests: Likewise.
53683         * modules/stdint-tests: Likewise.
53684         * modules/tls-tests: Likewise.
53685
53686 2007-02-24  Bruno Haible  <bruno@clisp.org>
53687
53688         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
53689         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
53690         function; instead check whether isnan with a double argument links.
53691         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
53692         function; instead check whether isnan with a 'long double' argument
53693         links.
53694         Reported by Eric Blake <ebb9@byu.net>.
53695
53696 2007-02-24  Bruno Haible  <bruno@clisp.org>
53697
53698         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
53699         defined.
53700         * lib/isnanl.c: Remove all code. Just include isnan.c.
53701         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
53702
53703 2007-02-25  Jim Meyering  <jim@meyering.net>
53704
53705         Avoid conflicting types for 'unsetenv' on FreeBSD.
53706         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
53707         conflicting with FreeBSD's (5.0 and 6.1) function declaration
53708         in stdlib.h.
53709
53710 2007-02-24  Bruno Haible  <bruno@clisp.org>
53711
53712         * modules/isnanl-nolibm-tests: New file.
53713         * tests/test-isnanl.c: New file.
53714
53715         * modules/isnanl-nolibm: New file.
53716         * lib/isnanl.h: New file.
53717         * lib/isnanl.c: New file.
53718         * m4/isnanl.m4: New file.
53719
53720 2007-02-24  Bruno Haible  <bruno@clisp.org>
53721
53722         * modules/isnan-nolibm-tests: New file.
53723         * tests/test-isnan.c: New file.
53724
53725         * modules/isnan-nolibm: New file.
53726         * lib/isnan.h: New file.
53727         * lib/isnan.c: New file.
53728         * m4/isnan.m4: New file.
53729
53730 2007-02-24  Bruno Haible  <bruno@clisp.org>
53731
53732         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
53733         assume that an exponent fits in 20 bits.
53734
53735 2007-02-24  Jim Meyering  <jim@meyering.net>
53736
53737         * m4/regex.m4: Update the description of the configure-time option,
53738         --without-included-regex, to state accurately what the defaults are,
53739         and perhaps to give people an idea why using this option is risky.
53740
53741 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
53742
53743         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
53744         loops on small arguments.  This attempts to avoid the problem
53745         Bruno Haible reported for AIX 4.3.2 in
53746         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
53747
53748 2007-02-23  Bruno Haible  <bruno@clisp.org>
53749
53750         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
53751         Needed for help2man.
53752
53753 2007-02-23  Karl Berry  <karl@gnu.org>
53754
53755         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
53756         exists, foo.h should be cvs-ignored, not committed.
53757
53758 2007-02-23  Eric Blake  <ebb9@byu.net>
53759
53760         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
53761         * lib/stat-time.h (includes): Likewise.
53762         * lib/utimecmp.c (includes): Likewise.
53763         * lib/utimens.h (includes): Likewise.
53764         * lib/getdate.y (includes): Also include "timespec.h" for use
53765         internal to the module.
53766         * modules/utimens (Depends-on): Revert yesterday's patch.
53767         * modules/nanosleep (Depends-on): Add missing dependency.
53768
53769 2007-02-22  Bruno Haible  <bruno@clisp.org>
53770
53771         * lib/glob.c: Don't include getlogin_r.h.
53772
53773 2007-02-22  Jim Meyering  <jim@meyering.net>
53774
53775         * modules/utimens (Depends-on): Add timespec, required for
53776         utimens.h's inclusion of timespec.h.
53777
53778 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
53779
53780         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
53781         long unreadable paths in GNU/Linux.  Problem reported by Andreas
53782         Schwab in
53783         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
53784         I'll try to think of a better way to fix the Solaris problem.
53785
53786         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
53787         like glibc; on Solaris 10, it fails with errno == EINVAL.
53788         POSIX says the behavior is unspecified if the first argument is NULL,
53789         so play it safe and never pass NULL to the system getcwd.
53790
53791 2007-02-21  Jim Meyering  <jim@meyering.net>
53792
53793         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
53794         of gettimeofday.  It would conflict with the one now always
53795         provided via sys_time_.h.  Reported by Matthew Woehlke, as
53796         an IRIX 6.5 build failure.
53797
53798 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
53799
53800         Minor fixups to port to Solaris 10 with Sun C 5.8.
53801         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
53802         * modules/getcwd (Depends-on): Add dirfd.
53803         * lib/putenv.c (putenv): #undef it.
53804         (rpl_putenv): New decl.
53805         (malloc, free): Include <stdlib.h> rather than prototyping separately.
53806
53807 2007-02-20  Bruno Haible  <bruno@clisp.org>
53808
53809         * modules/stdio-tests: New file.
53810         * tests/test-stdio.c: New file.
53811
53812         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
53813         (Depends-on): Add stdio.
53814         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53815         (Include): Use <stdio.h> instead of vsnprintf.h.
53816         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53817         HAVE_DECL_VSNPRINTF.
53818         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
53819
53820         * modules/snprintf (Files): Remove lib/snprintf.h.
53821         (Depends-on): Add stdio.
53822         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
53823         (Include): Use <stdio.h> instead of snprintf.h.
53824         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
53825         HAVE_DECL_SNPRINTF.
53826         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
53827         * lib/getaddrinfo.c: Likewise.
53828
53829         * modules/stdio: New file.
53830         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
53831         * lib/snprintf.h: Remove file.
53832         * lib/vsnprintf.h: Remove file.
53833         * lib/.cppi-disable: Remove snprintf.h.
53834         * m4/stdio_h.m4: New file.
53835         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
53836
53837 2007-02-20  Jim Meyering  <jim@meyering.net>
53838
53839         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
53840         used by e.g., mingw.  From Bruno Haible.
53841
53842 2007-02-19  Bruno Haible  <bruno@clisp.org>
53843
53844         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
53845         warnings.
53846         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53847
53848 2007-02-19  Bruno Haible  <bruno@clisp.org>
53849
53850         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
53851         from mingw users.
53852
53853 2007-02-19  Bruno Haible  <bruno@clisp.org>
53854
53855         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
53856         warnings.
53857         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
53858
53859 2007-02-19  Jim Meyering  <jim@meyering.net>
53860
53861         Don't use FD after a successful "fdopendir (fd)".
53862         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
53863         Reset it by calling dirfd on the just-obtained DIR*.
53864
53865         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
53866         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
53867
53868 2007-02-18  Bruno Haible  <bruno@clisp.org>
53869
53870         * lib/readlink.c: Include <unistd.h>.
53871         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
53872         HAVE_READLINK.
53873         * modules/readlink (Depends-on): Add unistd.
53874         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53875         (Include): Add <unistd.h>.
53876
53877         * lib/getlogin_r.h: Remove file.
53878         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
53879         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
53880         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
53881         HAVE_DECL_GETLOGIN_R.
53882         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
53883         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53884         (Include): Use <unistd.h> instead of getlogin_r.h.
53885
53886         * lib/getcwd.h: Remove file.
53887         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
53888         * lib/xgetcwd.c: Likewise.
53889         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
53890         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
53891         * modules/getcwd (Files): Remove lib/getcwd.h.
53892         (Depends-on): Add unistd.
53893         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53894         (Include): Use <unistd.h> instad of getcwd.h.
53895
53896         * lib/ftruncate.c: Include <unistd.h> first.
53897         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
53898         Set HAVE_FTRUNCATE.
53899         * modules/ftruncate (Depends-on): Add unistd.
53900         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53901
53902         * lib/fchdir.c: Include <unistd.h> first.
53903         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
53904         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
53905         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
53906         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53907         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
53908
53909         * lib/dup2.c: Include <unistd.h> first.
53910         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
53911         HAVE_DUP2.
53912         * modules/dup2 (Depends-on): Add unistd.
53913         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53914
53915         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
53916         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
53917         REPLACE_CHOWN. Don't define chown as a macro here.
53918         * modules/chown (Depends-on): Add unistd.
53919         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53920
53921         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
53922         Add definition for GL_LINK_WARNING.
53923         (chown, dup2): New declarations.
53924         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
53925         link warning.
53926         (ftruncate): New declaration.
53927         (getcwd): New declaration, taken from old getcwd.h.
53928         (getlogin_r): New declaration, taken from old getlogin_r.h.
53929         (readlink): New declaration.
53930         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
53931         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
53932         (gl_PREREQ_UNISTD): Remove macro.
53933         (gl_UNISTD_MODULE_INDICATOR): New macro.
53934         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
53935         many new variables. Don't set UNISTD_H.
53936         * modules/unistd (Description): Change.
53937         (Depends-on): Add link-warning.
53938         (configure.ac): Update.
53939         (Makefile.am): Create unistd.h always. Substitute many new variables
53940         into it.
53941
53942 2007-02-18  Bruno Haible  <bruno@clisp.org>
53943
53944         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
53945         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
53946         HAVE_GETSUBOPT.
53947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
53948         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
53949         * lib/getsubopt.h: Remove file.
53950         * modules/getsubopt (Files): Remove lib/getsubopt.h.
53951         (Depends-on): Add stdlib.
53952         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53953         (Includes): Use <stdlib.h> instead of getsubopt.h.
53954         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
53955         Set HAVE_GETSUBOPT.
53956         * lib/getsubopt.c: Don't include getsubopt.h.
53957
53958 2007-02-18  Bruno Haible  <bruno@clisp.org>
53959
53960         * modules/fchdir (Depends-on): Add dup2.
53961
53962 2007-02-18  Bruno Haible  <bruno@clisp.org>
53963
53964         * lib/stdlib_.h: Handle glibc's special invocation convention
53965         specially.
53966
53967 2007-02-18  Bruno Haible  <bruno@clisp.org>
53968
53969         * modules/stdlib-tests: New file.
53970         * tests/test-stdlib.c: New file.
53971
53972         * modules/mkstemp (Files): Remove lib/mkstemp.h.
53973         (Depends-on): Add stdlib.
53974         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53975         (Includes): Use <stdlib.h> instead of mkstemp.h.
53976         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53977         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
53978         * lib/mkstemp.c: Don't include mkstemp.h.
53979         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
53980         * lib/stdlib--.h: Don't include mkstemp.h.
53981
53982         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
53983         (Depends-on): Add stdlib.
53984         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53985         (Includes): Use <stdlib.h> instead of mkdtemp.h.
53986         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
53987         HAVE_MKDTEMP.
53988         * lib/mkdtemp.c: Don't include mkdtemp.h.
53989         * lib/clean-temp.c: Don't include mkdtemp.h.
53990
53991         * modules/exit (Files): Remove lib/exit.h.
53992         (Depends-on): Add stdlib.
53993         (Makefile.am): Remove lib_SOURCES.
53994         (Include): Use <stdlib.h> instead of exit.h.
53995         * lib/argmatch.c: Don't include exit.h.
53996         * lib/execute.c: Likewise.
53997         * lib/pagealign_alloc.c: Likewise.
53998         * lib/pipe.c: Likewise.
53999         * lib/wait-process.c: Likewise.
54000         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
54001         * lib/exitfail.c: Likewise.
54002         * lib/savewd.c: Likewise.
54003         * lib/xsetenv.c: Likewise.
54004
54005         * modules/stdlib: New file.
54006         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
54007         and extra comments about mkstemp().
54008         * lib/exit.h: Remove file.
54009         * lib/mkdtemp.h: Remove file.
54010         * lib/mkstemp.h: Remove file.
54011         * m4/stdlib_h.m4: New file.
54012         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
54013
54014 2007-02-18  Bruno Haible  <bruno@clisp.org>
54015
54016         * modules/math-tests: New file.
54017         * tests/test-math.c: New file.
54018
54019         * modules/math: New file.
54020         * modules/mathl (Files): Remove lib/mathl.h.
54021         (Depends-on): Add math.
54022         (Makefile.am): Don't mention mathl.h.
54023         (Include): Use <math.h> instead of mathl.h.
54024         * lib/math_.h: New file.
54025         * lib/mathl.h: Remove file.
54026         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
54027         mathl.h.
54028         * lib/asinl.c: Likewise.
54029         * lib/atanl.c: Likewise.
54030         * lib/ceill.c: Likewise.
54031         * lib/cosl.c: Likewise.
54032         * lib/expl.c: Likewise.
54033         * lib/floorl.c: Likewise.
54034         * lib/frexpl.c: Likewise.
54035         * lib/ldexpl.c: Likewise.
54036         * lib/logl.c: Likewise.
54037         * lib/sincosl.c: Likewise.
54038         * lib/sinl.c: Likewise.
54039         * lib/sqrtl.c: Likewise.
54040         * lib/tanl.c: Likewise.
54041         * lib/trigl.c: Likewise.
54042         * m4/math_h.m4: New file.
54043         * MODULES.html.sh (Mathematics): Add math.
54044
54045 2007-02-17  Bruno Haible  <bruno@clisp.org>
54046
54047         * modules/wctype-tests: New file.
54048         * tests/test-wctype.c: New file.
54049
54050         * modules/wchar-tests: New file.
54051         * tests/test-wchar.c: New file.
54052
54053         * modules/unistd-tests: New file.
54054         * tests/test-unistd.c: New file.
54055
54056         * modules/time-tests: New file.
54057         * tests/test-time.c: New file.
54058
54059         * modules/sysexits-tests: New file.
54060         * tests/test-sysexits.c: New file.
54061
54062         * modules/sys_time-tests: New file.
54063         * tests/test-sys_time.c: New file.
54064
54065         * modules/sys_stat-tests: New file.
54066         * tests/test-sys_stat.c: New file.
54067
54068         * modules/sys_socket-tests: New file.
54069         * tests/test-sys_socket.c: New file.
54070
54071         * modules/sys_select-tests: New file.
54072         * tests/test-sys_select.c: New file.
54073
54074         * modules/string-tests: New file.
54075         * tests/test-string.c: New file.
54076
54077         * modules/stdbool-tests: New file.
54078         * tests/test-stdbool.c: New file.
54079
54080         * modules/netinet_in-tests: New file.
54081         * tests/test-netinet_in.c: New file.
54082
54083         * modules/inttypes-tests: New file.
54084         * tests/test-inttypes.c: New file.
54085
54086         * modules/fcntl-tests: New file.
54087         * tests/test-fcntl.c: New file.
54088
54089         * modules/byteswap-tests: New file.
54090         * tests/test-byteswap.c: New file.
54091
54092         * modules/arpa_inet-tests: New file.
54093         * tests/test-arpa_inet.c: New file.
54094
54095 2007-02-17  Bruno Haible  <bruno@clisp.org>
54096
54097         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
54098         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
54099         if the corresponding module is not enabled. Emit link warnings if
54100         the function is used nevertheless.
54101         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
54102         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
54103         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
54104         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
54105         * modules/inttypes (Depends-on): Add link-warning.
54106         (Makefile.am): Copy the contents of build-aux/link-warning.h into
54107         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
54108         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
54109         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
54110         * modules/imaxdiv (configure.ac): Likewise.
54111         * modules/strtoimax (configure.ac): Likewise.
54112         * modules/strtoumax (configure.ac): Likewise.
54113
54114 2007-02-17  Bruno Haible  <bruno@clisp.org>
54115
54116         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
54117         gl_STRING_MODULE_INDICATOR_DEFAULTS.
54118         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
54119         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
54120
54121 2007-02-17  Bruno Haible  <bruno@clisp.org>
54122
54123         * modules/link-warning: New file.
54124         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
54125         * lib/string_.h (GL_LINK_WARNING): Remove definition.
54126         * modules/string (Depends-on): Add link-warning.
54127         (Makefile.am): Copy the contents of build-aux/link-warning.h into
54128         string.h.
54129         * MODULES.html.sh (Support for building libraries and executables): Add
54130         link-warning.
54131
54132 2007-02-17  Bruno Haible  <bruno@clisp.org>
54133
54134         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
54135         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
54136         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
54137         long lines.
54138
54139 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
54140             Bruno Haible  <bruno@clisp.org>
54141
54142         * modules/tmpfile: New file.
54143         * lib/tmpfile.c: New file.
54144         * m4/tmpfile.m4: New file.
54145         * MODULES.html.sh (func_all_modules): New section "Input/output".
54146
54147 2007-02-15  Bruno Haible  <bruno@clisp.org>
54148
54149         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
54150         (supports_delete_on_close): New function.
54151         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
54152
54153 2007-02-14  Bruno Haible  <bruno@clisp.org>
54154
54155         * modules/mbspcasecmp-tests: New file.
54156         * tests/test-mbspcasecmp.sh: New file.
54157         * tests/test-mbspcasecmp.c: New file.
54158
54159         New module mbspcasecmp.
54160         * modules/mbspcasecmp: New file.
54161         * lib/mbspcasecmp.c: New file.
54162         * lib/string_.h (strncasecmp): Change warning message.
54163         (mbspcasecmp): New declaration.
54164         * m4/mbspcasecmp.m4: New file.
54165         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54166         GNULIB_MBSPCASECMP.
54167         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
54168         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
54169
54170 2007-02-14  Bruno Haible  <bruno@clisp.org>
54171
54172         * modules/mbsncasecmp-tests: New file.
54173         * tests/test-mbsncasecmp.sh: New file.
54174         * tests/test-mbsncasecmp.c: New file.
54175
54176         New module mbsncasecmp.
54177         * modules/mbsncasecmp: New file.
54178         * lib/mbsncasecmp.c: New file.
54179         * lib/string_.h (mbsncasecmp): New declaration.
54180         * m4/mbsncasecmp.m4: New file.
54181         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54182         GNULIB_MBSNCASECMP.
54183         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
54184         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
54185
54186 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
54187
54188         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
54189         Verify that it doesn't overlap with our flags.
54190         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
54191         do not have the desired effect in multibyte locales; instead, use
54192         mbscasecmp.
54193         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
54194         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
54195         we don't require GNU fnmatch ourselves (if our users require it, they
54196         should do so explicitly).
54197
54198         Fix regex code so it doesn't rely on strcasecmp.
54199         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
54200         Otherwise, include gnulib's langinfo.h.
54201         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
54202         undesirable behavior in non-C locales.  Instead, rely on localecharset.
54203         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
54204         * modules/regex (FILES): Remove m4/codeset.m4.
54205         (Depends-on): Add localcharset.  Remove strcase.
54206
54207 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54208
54209         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
54210         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
54211
54212 2007-02-13  Bruno Haible  <bruno@clisp.org>
54213
54214         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
54215         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54216
54217 2007-02-12  Bruno Haible  <bruno@clisp.org>
54218
54219         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54220         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
54221         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
54222         time warning rather than a link error.
54223
54224 2007-02-12  Bruno Haible  <bruno@clisp.org>
54225
54226         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
54227         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54228         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54229
54230 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54231
54232         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
54233         args, not 2.
54234
54235 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
54236
54237         New module 'time', so that apps can include <time.h> as per
54238         POSIX and GNU instead of separate include files like time_r.h
54239         and timegm.h.  This implementation tries out a simpler approach
54240         for replacing decls in standard include files (as compared to
54241         the string module), somewhat as an experiment.
54242
54243         * config/srclist.txt: Comment out mktime.c for now.
54244         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
54245         since it doesn't apply any more.  Use generic wording instead.
54246         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
54247         'time'.
54248         * lib/time_.h, m4/time_h.m4, modules/time: New files.
54249         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
54250         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
54251         Don't include <sys/types.h>; no longer needed since we assume C89.
54252         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
54253         * lib/strftime.c: Likewise.
54254         * lib/time_r.c: Likewise.
54255         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
54256         * lib/nanosleep.c: Include <time.h> first, to check interface.
54257         * lib/strptime.c: Likewise.
54258         * lib/time_r.c: Likewise.
54259         * lib/timegm.c: Likewise.
54260         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
54261         needed.
54262         * lib/timegm.c: Don't include timegm.h; no longer needed.
54263         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
54264         time.h now handles any problems in that area.
54265         (struct timespec, nanosleep): Remove; time.h now arranges for these.
54266         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
54267         that time.h defines struct timespec.
54268         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
54269         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
54270         handles that.
54271         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
54272         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
54273         needed.  Set REPLACE_LOCALTIME.
54274         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
54275         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
54276         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
54277         nanosleep; time_h.m4 now does that.  Don't require
54278         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
54279         module handles this now.
54280         * modules/getdate (Depends-on): Remove timespec.  Add time.
54281         * modules/nanosleep (Depends-on): Likewise.
54282         * modules/stat-time (Depends-on): Likewise.
54283         * modules/nanosleep (Include): Include time.h, not timespec.h.
54284         * modules/strptime (Files): Remove lib/strptime.h.
54285         (Depends-on): Add extensions, time.
54286         (Include): Include time.h, not strptime.h.
54287         * modules/time_r (Files): Remove lib/time_r.h.
54288         (Depends-on): Add time.
54289         (Include): Include time.h, not time_r.h.
54290         * modules/timegm: Likewise.
54291         * modules/timespec (Description): Now does timespec-related decls
54292         of our own, instead of struct timespec itself.
54293         (Depends-on): Add time; remove extensions.
54294         (Maintainer): Add self.
54295         * modules/utimecmp (Depends-on): Add time; remove timespec.
54296         * modules/utimens (Depends-on): Likewise.
54297         * modules/xnanosleep (Depends-on): Likewise.
54298
54299 2007-02-11  Bruno Haible  <bruno@clisp.org>
54300
54301         * lib/c-strstr.c: Include allocsa.h.
54302         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54303         * lib/c-strcasestr.c: Include allocsa.h.
54304         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54305         * lib/strcasestr.c: Include allocsa.h.
54306         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
54307         * lib/mbsstr.c: Include allocsa.h.
54308         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54309         allocsa/freesa instead of malloc/free.
54310         * lib/mbscasestr.c: Include allocsa.h.
54311         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
54312         allocsa/freesa instead of malloc/free.
54313         * modules/c-strstr (Depends-on): Add allocsa.
54314         * modules/c-strcasestr (Depends-on): Likewise.
54315         * modules/strcasestr (Depends-on): Likewise.
54316         * modules/mbsstr (Depends-on): Likewise.
54317         * modules/mbscasestr (Depends-on): Likewise.
54318
54319 2007-02-11  Bruno Haible  <bruno@clisp.org>
54320
54321         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
54322
54323         * modules/mbsspn-tests: New file.
54324         * tests/test-mbsspn.sh: New file.
54325         * tests/test-mbsspn.c: New file.
54326
54327 2007-02-11  Bruno Haible  <bruno@clisp.org>
54328
54329         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
54330
54331         * modules/mbspbrk-tests: New file.
54332         * tests/test-mbspbrk.sh: New file.
54333         * tests/test-mbspbrk.c: New file.
54334
54335 2007-02-11  Bruno Haible  <bruno@clisp.org>
54336
54337         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
54338         unneeded cast.
54339
54340         * modules/mbscspn-tests: New file.
54341         * tests/test-mbscspn.sh: New file.
54342         * tests/test-mbscspn.c: New file.
54343
54344 2007-02-11  Bruno Haible  <bruno@clisp.org>
54345
54346         * modules/mbscasecmp-tests: New file.
54347         * tests/test-mbscasecmp.sh: New file.
54348         * tests/test-mbscasecmp.c: New file.
54349
54350 2007-02-11  Bruno Haible  <bruno@clisp.org>
54351
54352         Ensure O(n) worst-case complexity of mbscasestr.
54353         * lib/mbscasestr.c: Include stdbool.h.
54354         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54355         functions.
54356         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
54357         the bookkeeping indicates that it's worth it.
54358         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
54359
54360         * modules/mbscasestr-tests: New file.
54361         * tests/test-mbscasestr1.c: New file.
54362         * tests/test-mbscasestr2.sh: New file.
54363         * tests/test-mbscasestr2.c: New file.
54364         * tests/test-mbscasestr3.sh: New file.
54365         * tests/test-mbscasestr3.c: New file.
54366         * tests/test-mbscasestr4.sh: New file.
54367         * tests/test-mbscasestr4.c: New file.
54368         * m4/locale-tr.m4: New file.
54369
54370 2007-02-11  Bruno Haible  <bruno@clisp.org>
54371
54372         Ensure O(n) worst-case complexity of mbsstr.
54373         * lib/mbsstr.c: Include stdbool.h.
54374         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
54375         functions.
54376         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
54377         bookkeeping indicates that it's worth it.
54378         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
54379
54380         * modules/mbsstr-tests: New file.
54381         * tests/test-mbsstr1.c: New file.
54382         * tests/test-mbsstr2.sh: New file.
54383         * tests/test-mbsstr2.c: New file.
54384         * tests/test-mbsstr3.sh: New file.
54385         * tests/test-mbsstr3.c: New file.
54386         * m4/locale-fr.m4: New file.
54387
54388 2007-02-11  Bruno Haible  <bruno@clisp.org>
54389
54390         * lib/mbsrchr.c (mbsrchr): Fix bug.
54391
54392         * modules/mbsrchr-tests: New file.
54393         * tests/test-mbsrchr.sh: New file.
54394         * tests/test-mbsrchr.c: New file.
54395
54396 2007-02-11  Bruno Haible  <bruno@clisp.org>
54397
54398         * lib/mbschr.c (mbschr): Fix bug.
54399
54400         * modules/mbschr-tests: New file.
54401         * tests/test-mbschr.sh: New file.
54402         * tests/test-mbschr.c: New file.
54403         * m4/locale-zh.m4: New file.
54404
54405 2007-02-11  Bruno Haible  <bruno@clisp.org>
54406
54407         Support for copying multibyte string iterators.
54408         * lib/mbiter.h: Include <string.h>.
54409         (mbiter_multi_copy): New function.
54410         (mbi_copy): New macro.
54411         * lib/mbuiter.h: Include <string.h>.
54412         (mbuiter_multi_copy): New function.
54413         (mbui_copy): New macro.
54414
54415 2007-02-11  Bruno Haible  <bruno@clisp.org>
54416
54417         New module mbslen.
54418         * modules/mbslen: New file.
54419         * lib/mbslen.c: New file.
54420         * lib/string_.h (mbslen): New declaration.
54421         * m4/mbslen.m4: New file.
54422         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54423         GNULIB_MBSLEN.
54424         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
54425         * MODULES.html.sh (Internationalization functions): Add mbslen.
54426
54427 2007-02-11  Bruno Haible  <bruno@clisp.org>
54428
54429         Ensure O(n) worst-case complexity of strcasestr substitute.
54430         * lib/strcasestr.c: Include stdbool.h.
54431         (knuth_morris_pratt): New function.
54432         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54433         bookkeeping indicates that it's worth it.
54434         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
54435
54436         * modules/strcasestr-tests: New file.
54437         * tests/test-strcasestr.c: New file.
54438
54439 2007-02-11  Bruno Haible  <bruno@clisp.org>
54440
54441         Ensure O(n) worst-case complexity of c_strcasestr.
54442         * lib/c-strcasestr.c: Include stdbool.h, string.h.
54443         (knuth_morris_pratt): New function.
54444         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
54445         the bookkeeping indicates that it's worth it.
54446         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
54447
54448         * modules/c-strcasestr-tests: New file.
54449         * tests/test-c-strcasestr.c: New file.
54450
54451 2007-02-11  Bruno Haible  <bruno@clisp.org>
54452
54453         Ensure O(n) worst-case complexity of c_strstr.
54454         * lib/c-strstr.c: Include stdbool.h, string.h.
54455         (knuth_morris_pratt): New function.
54456         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
54457         bookkeeping indicates that it's worth it.
54458         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
54459
54460         * lib/c-strstr.c: Complete rewrite for maintainability.
54461
54462         * modules/c-strstr-tests: New file.
54463         * tests/test-c-strstr.c: New file.
54464
54465 2007-02-11  Bruno Haible  <bruno@clisp.org>
54466
54467         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
54468         5.2.1 and earlier, whereby \055 was treated just like the range
54469         delimiter '-'.
54470         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54471
54472 2007-02-08  Bruno Haible  <bruno@clisp.org>
54473
54474         * modules/regex (Depends-on): Add stdbool.
54475         Reported by Dalibor Topic <robilad@kaffe.org>.
54476
54477 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
54478
54479         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
54480         Prefer returning from main to exiting from it.
54481         Remove unnecessary parens after sizeof.
54482
54483 2007-02-05  Bruno Haible  <bruno@clisp.org>
54484
54485         New module mbssep.
54486         * modules/mbssep: New file.
54487         * lib/mbssep.c: New file.
54488         * lib/string_.h (strsep): Add a conditional link warning.
54489         (mbssep): New declaration.
54490         * m4/mbssep.m4: New file.
54491         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54492         GNULIB_MBSSEP.
54493         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
54494         * MODULES.html.sh (Internationalization functions): Add mbssep.
54495
54496 2007-02-05  Bruno Haible  <bruno@clisp.org>
54497
54498         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
54499         Optimize search in case of 1 delimiter.
54500
54501 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54502
54503         * lib/acl.h: Include sys/types.h before sys/acl.h.
54504
54505 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
54506
54507         Merge upstream fix for glibc bugzilla #3957:
54508
54509         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
54510
54511         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
54512         bit for RE_HAT_LISTS_NOT_NEWLINE.
54513         (build_charclass_op): Remove bogus comment.
54514
54515 2007-02-05  Simon Josefsson  <simon@josefsson.org>
54516
54517         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
54518
54519 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54520
54521         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
54522         * lib/memmem.c [!defined _LIBC]: Include config.h.
54523
54524 2007-02-04  Bruno Haible  <bruno@clisp.org>
54525
54526         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
54527         warning message.
54528
54529 2007-02-04  Bruno Haible  <bruno@clisp.org>
54530
54531         New module mbstok_r.
54532         * modules/mbstok_r: New file.
54533         * lib/mbstok_r.c: New file.
54534         * lib/string_.h (strtok_r): Change argument names to match the
54535         comments. Add a conditional link warning.
54536         (mbstok_r): New declaration.
54537         * m4/mbstok_r.m4: New file.
54538         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54539         GNULIB_MBSTOK_R.
54540         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
54541         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
54542
54543 2007-02-04  Bruno Haible  <bruno@clisp.org>
54544
54545         New module mbsspn.
54546         * modules/mbsspn: New file.
54547         * lib/mbsspn.c: New file.
54548         * lib/string_.h (strspn): Add a conditional link warning.
54549         (mbsspn): New declaration.
54550         * m4/mbsspn.m4: New file.
54551         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54552         GNULIB_MBSSPN.
54553         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
54554         * MODULES.html.sh (Internationalization functions): Add mbsspn.
54555
54556 2007-02-04  Bruno Haible  <bruno@clisp.org>
54557
54558         New module mbspbrk.
54559         * modules/mbspbrk: New file.
54560         * lib/mbspbrk.c: New file.
54561         * lib/string_.h (strpbrk): Add a conditional link warning.
54562         (mbspbrk): New declaration.
54563         * m4/mbspbrk.m4: New file.
54564         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54565         GNULIB_MBSPBRK.
54566         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
54567         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
54568
54569 2007-02-04  Bruno Haible  <bruno@clisp.org>
54570
54571         New module mbscspn.
54572         * modules/mbscspn: New file.
54573         * lib/mbscspn.c: New file.
54574         * lib/string_.h (strcspn): Add a conditional link warning.
54575         (mbscspn): New declaration.
54576         * m4/mbscspn.m4: New file.
54577         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54578         GNULIB_MBSCSPN.
54579         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
54580         * MODULES.html.sh (Internationalization functions): Add mbscspn.
54581
54582 2007-02-04  Bruno Haible  <bruno@clisp.org>
54583
54584         New module mbscasestr, reduced goal of strcasestr.
54585         * modules/mbscasestr: New file.
54586         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
54587         (mbscasestr): Renamed from strcasestr.
54588         * lib/strcasestr.c: Don't include mbuiter.h.
54589         (strcasestr): Remove support for multibyte locales.
54590         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
54591         Change the conditional link warning.
54592         (mbscasestr): New declaration.
54593         * m4/mbscasestr.m4: New file.
54594         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
54595         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
54596         REPLACE_STRCASESTR.
54597         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
54598         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54599         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54600         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
54601         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
54602         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
54603         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
54604         (Depends-on): Remove mbuiter.
54605         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
54606
54607 2007-02-04  Bruno Haible  <bruno@clisp.org>
54608
54609         Simplify handling of strncasecmp.
54610         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
54611         the conditional link warning.
54612         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54613         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
54614         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
54615         * modules/strcase (configure.ac): Don't invoke
54616         gl_STRING_MODULE_INDICATOR.
54617         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
54618
54619 2007-02-04  Bruno Haible  <bruno@clisp.org>
54620
54621         New module mbscasecmp, reduced goal of strcasecmp.
54622         * modules/mbscasecmp: New file.
54623         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
54624         (mbscasecmp): Renamed from strcasecmp.
54625         * lib/strcasecmp.c: Don't include mbuiter.h.
54626         (strcasecmp): Remove support for multibyte locales.
54627         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
54628         Change the conditional link warning.
54629         (mbscasecmp): New declaration.
54630         * m4/mbscasecmp.m4: New file.
54631         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
54632         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
54633         REPLACE_STRCASECMP.
54634         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
54635         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54636         GNULIB_MBSCASECMP.
54637         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
54638         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
54639         * modules/strcase (Files): Remove m4/mbrtowc.m4.
54640         (Depends-on): Remove mbuiter.
54641         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
54642
54643 2007-02-04  Bruno Haible  <bruno@clisp.org>
54644
54645         New module mbsstr. Remove module strstr.
54646         * modules/mbsstr: New file.
54647         * modules/strstr: Remove file.
54648         * lib/mbsstr.c: Renamed from lib/strstr.c.
54649         (mbsstr): Renamed from strstr.
54650         * lib/string_.h (strstr): Remove declaration. Change the conditional
54651         link warning.
54652         (mbsstr): New declaration.
54653         * m4/mbsstr.m4: New file.
54654         * m4/strstr.m4: Remove file.
54655         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
54656         REPLACE_STRSTR.
54657         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
54658         Don't initialize GNULIB_STRSTR.
54659         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
54660         substitute GNULIB_STRSTR and REPLACE_STRSTR.
54661         * MODULES.html.sh (Internationalization functions): Add mbsstr.
54662         (Support for systems lacking ANSI C 89): Remove strstr.
54663
54664 2007-02-04  Bruno Haible  <bruno@clisp.org>
54665
54666         New module mbsrchr.
54667         * modules/mbsrchr: New file.
54668         * lib/mbsrchr.c: New file.
54669         * lib/string_.h (strrchr): Add a conditional link warning.
54670         (mbsrchr): New declaration.
54671         * m4/mbsrchr.m4: New file.
54672         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54673         GNULIB_MBSRCHR.
54674         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
54675         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
54676
54677 2007-02-04  Bruno Haible  <bruno@clisp.org>
54678
54679         New module mbschr.
54680         * modules/mbschr: New file.
54681         * lib/mbschr.c: New file.
54682         * lib/string_.h (strchr): Add a conditional link warning.
54683         (mbschr): New declaration.
54684         * m4/mbschr.m4: New file.
54685         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
54686         GNULIB_MBSCHR.
54687         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
54688         * MODULES.html.sh (Internationalization functions): Add mbschr.
54689
54690 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
54691
54692         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
54693
54694         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
54695
54696 2007-02-04  Bruno Haible  <bruno@clisp.org>
54697
54698         New module description section 'configure.ac-early'.
54699         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
54700         (func_get_autoconf_early_snippet): New function.
54701         (func_import, func_create_testdir): Use it. Remove special cases for
54702         modules 'extensions' and 'lock'.
54703         * modules/extensions (configure.ac-early): Require
54704         gl_USE_SYSTEM_EXTENSIONS.
54705         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
54706
54707 2007-02-04  Bruno Haible  <bruno@clisp.org>
54708
54709         Make use of gcj-4.3's -fsource and -ftarget option.
54710         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
54711         and if so try the options -fsource and -ftarget.
54712         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
54713         source_version, ftarget_option, target_version arguments.
54714         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
54715         (is_envjavac_oldgcj_14_14_usable): Renamed from
54716         is_envjavac_gcj_14_14_usable.
54717         (is_envjavac_oldgcj_14_13_usable): Renamed from
54718         is_envjavac_gcj_14_13_usable.
54719         (is_gcj_present): Update.
54720         (is_gcj_43, is_gcj43_usable): New functions.
54721         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
54722         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
54723         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
54724         try the options -fsource and -ftarget.
54725
54726 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
54727
54728         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
54729         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
54730         larger value.
54731
54732 2007-02-03  Jim Meyering  <jim@meyering.net>
54733
54734         Give tools a better chance to allocate space for very large buffers.
54735         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
54736
54737         Make pwd and readlink work also when run with an unreadable parent dir
54738         on systems with openat support.
54739         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
54740         provided getcwd function, even when we have openat support.
54741         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
54742
54743 2007-02-02  Bruno Haible  <bruno@clisp.org>
54744
54745         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
54746         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
54747         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
54748         portability problems if one of these functions is only used on specific
54749         platforms.
54750         Reported by Paul Eggert.
54751
54752 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
54753
54754         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
54755         is causing more trouble than it's curing.
54756         * lib/regex_internal.h (__mempcpy): Remove.
54757         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
54758         (and make the code a tad smaller to boot).
54759         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
54760
54761 2007-02-02  Jim Meyering  <jim@meyering.net>
54762
54763         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
54764         section, not in the Makefile.am: one.
54765
54766 2007-02-02  Eric Blake  <ebb9@byu.net>
54767
54768         * lib/strchrnul.c: Always include config.h first.
54769
54770         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
54771         gnulib strstr is not necessary here.
54772
54773 2007-02-02  Simon Josefsson  <simon@josefsson.org>
54774
54775         * m4/socklen.m4: Fix typo.
54776
54777 2007-02-02  Eric Blake  <ebb9@byu.net>
54778
54779         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
54780         * modules/netinet_in (Makefile.am): Likewise.
54781
54782 2007-02-01  Bruno Haible  <bruno@clisp.org>
54783
54784         * lib/string_.h (GL_LINK_WARNING): New macro.
54785         (strcasecmp, strstr, strcasestr): If provided by the system,
54786         conditionally define as a macro that leads to a warning instead of to
54787         an error.
54788         (strncasecmp): Conditionally define as a macro that leads to a warning.
54789
54790 2007-02-01  Karl Berry  <karl@gnu.org>
54791
54792         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
54793
54794 2007-02-01  Bruno Haible  <bruno@clisp.org>
54795
54796         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
54797         renamings.
54798
54799 2007-02-01  Eric Blake  <ebb9@byu.net>
54800
54801         * modules/regex (Depends-on): Revert dependence on mempcpy.
54802         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
54803         module's definition of mempcpy.
54804         Reported by Paul Eggert.
54805
54806 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
54807
54808         * lib/string_.h: If the gnulib module XYZ is not present, undefine
54809         the symbol XYZ before redefining it.  This fixes a problem with
54810         programs that don't use XYZ, when compiled on systems that define
54811         XYZ to something else.
54812
54813 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
54814
54815         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
54816         occurs when "mkdir -m foo" creates a setgid directory that is (1)
54817         writeable to group or other and (2) is intended to have a special
54818         mode bit that is set or cleared.  In such a case, the directory
54819         should be neither group- nor other-writeable until the special
54820         mode bits are right.
54821
54822 2007-01-31  Eric Blake  <ebb9@byu.net>
54823
54824         * modules/mountlist (Depends-on): Add strstr.
54825
54826         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
54827         bug.
54828         * modules/string (Makefile.am): Remove redundant replacement.
54829         * modules/regex (Depends-on): Add mempcpy.
54830
54831 2007-01-31  Bruno Haible  <bruno@clisp.org>
54832
54833         New module description field 'Link'.
54834         * gnulib-tool (func_usage): Document --extract-link-directive.
54835         (sed_extract_prog): Recognize 'Link' directive.
54836         (func_get_link_directive): New function.
54837         (func_import): Show summary of link directives.
54838         Handle --extract-link-directive option.
54839         * modules/acl (Link): New section.
54840         * modules/clock-time (Link): New section.
54841         * modules/euidaccess (Link): New section.
54842         * modules/gettext (Link): New section.
54843         * modules/iconv (Link): New section.
54844         * modules/lock (Link): New section.
54845         * modules/nanosleep (Link): New section.
54846         * modules/readline (Link): New section.
54847
54848 2007-01-27  Bruno Haible  <bruno@clisp.org>
54849
54850         Enforce the use of gnulib modules for unportable <string.h> functions.
54851         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
54852         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
54853         (gl_HEADER_STRING_H_BODY): Require it.
54854         * lib/string_.h: If the gnulib module XYZ is not present, redefine
54855         the symbol XYZ to one that gives a link error.
54856         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
54857         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
54858         * modules/mempcpy (configure.ac): Likewise.
54859         * modules/memrchr (configure.ac): Likewise.
54860         * modules/stpcpy (configure.ac): Likewise.
54861         * modules/stpncpy (configure.ac): Likewise.
54862         * modules/strcase (configure.ac): Likewise.
54863         * modules/strcasestr (configure.ac): Likewise.
54864         * modules/strchrnul (configure.ac): Likewise.
54865         * modules/strdup (configure.ac): Likewise.
54866         * modules/strndup (configure.ac): Likewise.
54867         * modules/strnlen (configure.ac): Likewise.
54868         * modules/strpbrk (configure.ac): Likewise.
54869         * modules/strsep (configure.ac): Likewise.
54870         * modules/strstr (configure.ac): Likewise.
54871         * modules/strtok_r (configure.ac): Likewise.
54872
54873 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
54874
54875         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
54876
54877 2007-01-30  Jim Meyering  <jim@meyering.net>
54878
54879         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
54880
54881 2007-01-29  Bruno Haible  <bruno@clisp.org>
54882
54883         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
54884         * lib/execute.c: Likewise.
54885         * lib/pipe.c: Likewise.
54886         * lib/printf-args.h: Likewise.
54887         * lib/printf-args.c: Likewise.
54888         * lib/printf-parse.c: Likewise.
54889         * lib/vasnprintf.c: Likewise.
54890
54891 2007-01-29  Eric Blake  <ebb9@byu.net>
54892
54893         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
54894         declaration.
54895
54896 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
54897
54898         * lib/strptime.h (strptime): Use 'restrict' for args where
54899         POSIX requires this.
54900         * lib/strptime.c (strptime): Likewise.
54901         Change license notice from LGPL to GPL, since gnulib-tool will
54902         change this as needed.
54903         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
54904         defined.
54905         Include "strptime.h" first, to check interface.
54906         Do not #undef _LIBC and _NL_CURRENT.
54907         Do not include <stdlib.h>; no longer needed.
54908         Include "time_r.h" and declare ptime_locale_status
54909         only if _LIBC is not defined.
54910         (__P): Remove unused macro.
54911         (match_string): Bring back glibc version, but use it only if _LIBC
54912         is defined.
54913         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
54914         Remove unnecessary assertion and abort() call.
54915         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
54916         * m4/strptime.m4: Fix serial number comment.
54917         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
54918         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
54919         (Depends-on): Add time_r.
54920
54921 2007-01-29  Bruno Haible  <bruno@clisp.org>
54922
54923         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54924         strptime.
54925         * modules/strptime (Depends-on): Add stdbool.
54926         * lib/strptime.h: Include <time.h> always. Add comments.
54927
54928 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54929
54930         * modules/strptime: New file.
54931         * lib/strptime.h: New file.
54932         * lib/strptime.c: New file.
54933         * m4/strptime.m4: New file.
54934
54935 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
54936
54937         * MODULES.html.sh: New module mpsort.
54938         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
54939
54940         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
54941         a circularity problem with HP-UX ia64 reported by Bob Proulx in
54942         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
54943         All uses changed.
54944         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
54945         All uses changed.
54946         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
54947         to _Restrict_.
54948         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
54949         the parameter matches the prototype.
54950
54951 2007-01-28  Jim Meyering  <jim@meyering.net>
54952
54953         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
54954         sys/time.h here, reverting that part of the previous patch:
54955         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
54956
54957 2007-01-28  Bruno Haible  <bruno@clisp.org>
54958
54959         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
54960         value of $(SYS_TIME_H).
54961         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
54962         remove it conditionally, too. [added by Jim Meyering]
54963         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
54964         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
54965         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
54966         GETTIMEOFDAY_REPLACEMENT to 1.
54967
54968 2007-01-28  Bruno Haible  <bruno@clisp.org>
54969
54970         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
54971         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
54972         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
54973         Set UNISTD_H instead of UNISTD_H2.
54974         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
54975
54976 2007-01-28  Bruno Haible  <bruno@clisp.org>
54977
54978         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
54979         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
54980
54981 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54982
54983         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
54984         (func_create_testdir): Ensure C locale for `grep' and `tr'
54985         character ranges.
54986         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
54987         ACLOCAL_AMFLAGS parsing state machine.
54988
54989 2007-01-27  Bruno Haible  <bruno@clisp.org>
54990
54991         * modules/unistr/base: Update.
54992
54993 2007-01-27  Bruno Haible  <bruno@clisp.org>
54994
54995         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
54996         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
54997         * modules/unistr/u32-mbtouc-unsafe: Renamed from
54998         modules/unistr/u32-mbtouc.
54999         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
55000         * lib/unistr.h: Update.
55001         * lib/linebreak.c: Update.
55002         * modules/unistr/u32-mbtouc: Renamed from
55003         modules/unistr/u32-mbtouc-safe.
55004         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
55005         * lib/unistr.h: Update.
55006         * lib/unistr/u32-to-u8.c: Update.
55007         * lib/unistr/u32-to-u16.c: Update.
55008
55009 2007-01-27  Bruno Haible  <bruno@clisp.org>
55010
55011         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
55012         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
55013         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
55014         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
55015         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
55016         * modules/unistr/u16-mbtouc-unsafe: Renamed from
55017         modules/unistr/u16-mbtouc.
55018         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
55019         * lib/unistr.h: Update.
55020         * lib/linebreak.c: Update.
55021         * modules/linebreak: Update.
55022         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
55023         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
55024         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
55025         * modules/unistr/u16-mbtouc: Renamed from
55026         modules/unistr/u16-mbtouc-safe.
55027         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
55028         * lib/unistr.h: Update.
55029         * lib/unistr/u16-to-u8.c: Update.
55030         * modules/unistr/u16-to-u8: Update.
55031         * lib/unistr/u16-to-u32.c: Update.
55032         * modules/unistr/u16-to-u32: Update.
55033
55034 2007-01-27  Bruno Haible  <bruno@clisp.org>
55035
55036         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
55037         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
55038         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
55039         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
55040         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
55041         * modules/unistr/u8-mbtouc-unsafe: Renamed from
55042         modules/unistr/u8-mbtouc.
55043         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
55044         * lib/unistr.h: Update.
55045         * lib/striconveh.c: Update.
55046         * modules/striconveh: Update.
55047         * lib/linebreak.c: Update.
55048         * modules/linebreak: Update.
55049         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
55050         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
55051         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
55052         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
55053         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
55054         * lib/unistr.h: Update.
55055         * lib/striconveh.c: Update.
55056         * modules/striconveh: Update.
55057         * lib/unistr/u8-to-u16.c: Update.
55058         * modules/unistr/u8-to-u16: Update.
55059         * lib/unistr/u8-to-u32.c: Update.
55060         * modules/unistr/u8-to-u32: Update.
55061
55062 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55063
55064         Sync from Libtool.
55065         * lib/argz.c: Do not include strings.h nor memory.h, include
55066         string.h unconditionally.  Patch by Simon Josefsson.
55067
55068 2007-01-27  Bruno Haible  <bruno@clisp.org>
55069
55070         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
55071         from gl_HEADER_STRING_H_BODY.
55072         (gl_HEADER_STRING_H_BODY): Require it.
55073         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
55074         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
55075         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
55076         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
55077         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55078         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
55079         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55080         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
55081         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
55082         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55083         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
55084         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
55085         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
55086         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55087         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55088
55089 2007-01-27  Bruno Haible  <bruno@clisp.org>
55090
55091         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
55092         check_PROGRAMS into noinst_PROGRAMS.
55093         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
55094         check_PROGRAMS in this case.
55095         (func_import): Set for_test to false.
55096         (func_create_testdir): Set for_test to true.
55097
55098 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
55099             Bruno Haible  <bruno@clisp.org>
55100
55101         * modules/strcasestr (Files): Remove lib/strcasestr.h.
55102         (Depends-on): Add string.
55103         (Includes): Use <string.h> instead of strcasestr.h.
55104         * modules/string (Makefile.am): Also substitute the value of
55105         REPLACE_STRCASESTR.
55106         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
55107         assume strcasestr is declared in <string.h> not <strings.h>. Also
55108         set REPLACE_STRCASESTR.
55109         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
55110         REPLACE_STRCASESTR.
55111         * lib/strcasestr.h: Remove file.
55112         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
55113         * lib/string_.h (strcasestr): New declaration.
55114
55115 2007-01-27  Bruno Haible  <bruno@clisp.org>
55116
55117         * lib/string_.h: Use 'extern'.
55118
55119 2007-01-27  Jim Meyering  <jim@meyering.net>
55120
55121         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
55122         of set-but-not-used local, "q".
55123
55124         * lib/mempcpy.c: Include <config.h> before <string.h>.
55125         This fixes a compilation error on HP-UX, due to the system's
55126         "restrict"-using mempcpy prototype.
55127
55128 2007-01-26  Bruno Haible  <bruno@clisp.org>
55129
55130         Small optimization.
55131         * lib/javacomp.c: Include c-strstr.h.
55132          (is_envjavac_gcj): Use c_strstr instead of strstr.
55133         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
55134
55135 2007-01-26  Bruno Haible  <bruno@clisp.org>
55136
55137         * MODULES.html.sh (Unicode string functions): Add the new modules.
55138
55139         * modules/uniconv/u32-strconv-to-locale: New file.
55140         * lib/uniconv/u32-strconv-to-locale.c: New file.
55141
55142         * modules/uniconv/u16-strconv-to-locale: New file.
55143         * lib/uniconv/u16-strconv-to-locale.c: New file.
55144
55145         * modules/uniconv/u8-strconv-to-locale: New file.
55146         * lib/uniconv/u8-strconv-to-locale.c: New file.
55147
55148         * modules/uniconv/u32-strconv-from-locale: New file.
55149         * lib/uniconv/u32-strconv-from-locale.c: New file.
55150
55151         * modules/uniconv/u16-strconv-from-locale: New file.
55152         * lib/uniconv/u16-strconv-from-locale.c: New file.
55153
55154         * modules/uniconv/u8-strconv-from-locale: New file.
55155         * lib/uniconv/u8-strconv-from-locale.c: New file.
55156
55157         * modules/uniconv/u32-strconv-to-enc: New file.
55158         * lib/uniconv/u32-strconv-to-enc.c: New file.
55159         * modules/uniconv/u32-strconv-to-enc-tests: New file.
55160         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
55161
55162         * modules/uniconv/u16-strconv-to-enc: New file.
55163         * lib/uniconv/u16-strconv-to-enc.c: New file.
55164         * lib/uniconv/u-strconv-to-enc.h: New file.
55165         * modules/uniconv/u16-strconv-to-enc-tests: New file.
55166         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
55167
55168         * modules/uniconv/u8-strconv-to-enc: New file.
55169         * lib/uniconv/u8-strconv-to-enc.c: New file.
55170         * modules/uniconv/u8-strconv-to-enc-tests: New file.
55171         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
55172
55173         * modules/uniconv/u32-strconv-from-enc: New file.
55174         * lib/uniconv/u32-strconv-from-enc.c: New file.
55175         * modules/uniconv/u32-strconv-from-enc-tests: New file.
55176         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
55177
55178         * modules/uniconv/u16-strconv-from-enc: New file.
55179         * lib/uniconv/u16-strconv-from-enc.c: New file.
55180         * modules/uniconv/u16-strconv-from-enc-tests: New file.
55181         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
55182
55183         * modules/uniconv/u8-strconv-from-enc: New file.
55184         * lib/uniconv/u8-strconv-from-enc.c: New file.
55185         * lib/uniconv/u-strconv-from-enc.h: New file.
55186         * modules/uniconv/u8-strconv-from-enc-tests: New file.
55187         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
55188
55189         * modules/uniconv/u32-conv-from-enc: New file.
55190         * lib/uniconv/u32-conv-from-enc.c: New file.
55191         * modules/uniconv/u32-conv-from-enc-tests: New file.
55192         * tests/uniconv/test-u32-conv-from-enc.c: New file.
55193
55194         * modules/uniconv/u16-conv-from-enc: New file.
55195         * lib/uniconv/u16-conv-from-enc.c: New file.
55196         * lib/uniconv/u-conv-from-enc.h: New file.
55197         * modules/uniconv/u16-conv-from-enc-tests: New file.
55198         * tests/uniconv/test-u16-conv-from-enc.c: New file.
55199
55200         * modules/uniconv/u8-conv-from-enc: New file.
55201         * lib/uniconv/u8-conv-from-enc.c: New file.
55202         * modules/uniconv/u8-conv-from-enc-tests: New file.
55203         * tests/uniconv/test-u8-conv-from-enc.c: New file.
55204
55205         * modules/uniconv/base: New file.
55206         * lib/uniconv.h: New file.
55207
55208 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
55209
55210         * doc/gnulib-tool.texi (Initial import): Update to match current
55211         behavior with strdup module.
55212         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
55213         * lib/memmem.h: Remove; all uses removed.  This is now done
55214         by <string.h>.
55215         * lib/mempcpy.h: Likewise.
55216         * lib/memrchr.h: Likewise.
55217         * lib/stpcpy.h: Likewise.
55218         * lib/stpncpy.h: Likewise.
55219         * lib/strcase.h: Likewise.
55220         * lib/strchrnul.h: Likewise.
55221         * lib/strdup.h: Likewise.
55222         * lib/strndup.h: Likewise.
55223         * lib/strnlen.h: Likewise.
55224         * lib/strpbrk.h: Likewise.
55225         * lib/strsep.h: Likewise.
55226         * lib/strstr.h: Likewise.
55227         * lib/strtok_r.h: Likewise.
55228         * lib/string_.h: New file.
55229         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
55230         Rely on <string.h> instead.
55231         * lib/canon-host.c: Likewise.
55232         * lib/chdir-long.c: Likewise.
55233         * lib/concatpath.c: Likewise.
55234         * lib/exclude.c: Likewise.
55235         * lib/fchdir.c: Likewise.
55236         * lib/getaddrinfo.c: Likewise.
55237         * lib/getcwd.c: Likewise.
55238         * lib/getsubopt.c: Likewise.
55239         * lib/glob.c: Likewise.
55240         * lib/hard-locale.c: Likewise.
55241         * lib/iconvme.c: Likewise.
55242         * lib/javacomp.c: Likewise.
55243         * lib/mempcpy.c: Likewise.
55244         * lib/memrchr.c: Likewise.
55245         * lib/regex_internal.h: Likewise.
55246         * lib/stpncpy.c: Likewise.
55247         * lib/strcasecmp.c: Likewise.
55248         * lib/strchrnul.c: Likewise.
55249         * lib/strdup.c: Likewise.
55250         * lib/striconv.c: Likewise.
55251         * lib/striconveh.c: Likewise.
55252         * lib/striconveha.c: Likewise.
55253         * lib/strncasecmp.c: Likewise.
55254         * lib/strndup.c: Likewise.
55255         * lib/strnlen.c: Likewise.
55256         * lib/strsep.c: Likewise.
55257         * lib/strstr.c: Likewise.
55258         * lib/strtok_r.c: Likewise.
55259         * lib/userspec.c: Likewise.
55260         * lib/w32spawn.h: Likewise.
55261         * lib/xstrndup.c: Likewise.
55262         * lib/mountlist.c (strstr): Remove decl.
55263         * m4/string_h.m4: New file.
55264         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
55265         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
55266         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
55267         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
55268         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
55269         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
55270         Set REPLACE_STRCASECMP if necessary.
55271         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
55272         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
55273         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
55274         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
55275         HAVE_DECL_STRDUP if necessary.
55276         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
55277         since gl_FUNC_STRNDUP does that now.
55278         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
55279         Check for decl here...
55280         (gl_PREREQ_STRNLEN): ... not here.
55281         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
55282         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
55283         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
55284         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
55285         necessary.
55286         * modules/string: New file.
55287         * modules/memmem (Files): Remove special-purpose include file.
55288         (Depends-on): Add string.
55289         (Include): Include <string.h>, not the removed file.
55290         * modules/mempcpy: Likewise.
55291         * modules/memrchr: Likewise.
55292         * modules/stpcpy: Likewise.
55293         * modules/stpncpy: Likewise.
55294         * modules/strcase: Likewise.
55295         * modules/strchrnul: Likewise.
55296         * modules/strdup: Likewise.
55297         * modules/strndup: Likewise.
55298         * modules/strnlen: Likewise.
55299         * modules/strpbrk: Likewise.
55300         * modules/strsep: Likewise.
55301         * modules/strstr: Likewise.
55302         * modules/strtok_r: Likewise.
55303         * tests/test-dirname.c: Don't include "strdup.h", since
55304         <string.h> now suffices.
55305         * tests/test-memmem.c: Don't include "memmem.h", since
55306         <string.h> now suffices.
55307
55308 2007-01-25  Bruno Haible  <bruno@clisp.org>
55309
55310         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
55311         *resultp is 0.
55312
55313         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
55314         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
55315         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
55316         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
55317
55318         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
55319         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
55320         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
55321         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
55322         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
55323         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
55324
55325 2007-01-24  Bruno Haible  <bruno@clisp.org>
55326
55327         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
55328         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
55329         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
55330         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
55331         gl_FUNC_FTS_CORE.
55332         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
55333         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
55334         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55335         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
55336         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
55337         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
55338         gl_FUNC_FCHOWNAT.
55339         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
55340         gl_FUNC_STRFTIME.
55341         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
55342         Reported by Ralf Wildenhues.
55343
55344 2007-01-24  Bruno Haible  <bruno@clisp.org>
55345
55346         Drop AC_REQUIRE calls that are redundant with the module dependencies.
55347         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
55348         gl_GETADDRINFO.
55349         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
55350         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
55351         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
55352
55353 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
55354
55355         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
55356         Don't use 'exit'; just return from 'main'.
55357         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
55358
55359         * lib/fnmatch_.h: Readjust white space and comments to match
55360         glibc, to avoid spurious diffs.
55361
55362 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55363
55364         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
55365         2004-12-01 change by Jakub Jelinek, since this code won't compile
55366         if !LIBC.  Problem reported by Bob Proulx.
55367
55368 2007-01-23  Bruno Haible  <bruno@clisp.org>
55369
55370         * lib/striconveh.c: Include c-strcaseeq.h.
55371         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
55372         * modules/striconveh (Depends-on): Add c-strcaseeq.
55373
55374 2007-01-23  Bruno Haible  <bruno@clisp.org>
55375
55376         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
55377
55378         * modules/c-strcaseeq: New file.
55379         * lib/c-strcaseeq.h: New file.
55380
55381         * modules/streq: New file.
55382         * lib/streq.h: New file.
55383
55384 2007-01-23  Bruno Haible  <bruno@clisp.org>
55385
55386         * modules/striconveha-tests: New file.
55387         * tests/test-striconveha.c: New file.
55388
55389         * lib/striconveha.h: Include <stdbool.h>.
55390         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
55391         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
55392         (mem_iconveha_notranslit): Renamed from mem_iconveha.
55393         (mem_iconveha): New function.
55394         (str_iconveha_notranslit): Renamed from str_iconveha.
55395         (str_iconveha): New function.
55396         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
55397         c-strcase.
55398
55399 2007-01-23  Bruno Haible  <bruno@clisp.org>
55400
55401         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
55402         encodings without forgiving before trying any encoding with handler.
55403         (str_iconveha): Try all encodings without forgiving before trying any
55404         encoding with handler.
55405
55406 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55407
55408         Import the following changes from libc.
55409
55410         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
55411
55412         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
55413
55414         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
55415
55416         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
55417         normal_bracket label.
55418
55419         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
55420
55421         [BZ #361]
55422         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
55423         to normal_bracket after fetching the next character.
55424
55425 2007-01-22  Bruno Haible  <bruno@clisp.org>
55426
55427         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
55428         argument.
55429         * lib/striconveh.c (iconv_carefully_1): New function.
55430         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
55431         argument.
55432         (str_cd_iconveh): Update.
55433         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
55434         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
55435         * tests/test-striconveh.c (MAGIC): New macro.
55436         (new_offsets): New function.
55437         (main): Test call with and without offsets.
55438
55439 2007-01-22  Bruno Haible  <bruno@clisp.org>
55440
55441         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
55442         * modules/sys_select (Makefile.am): Likewise.
55443         * modules/sys_socket (Makefile.am): Likewise.
55444         * modules/sys_time (Makefile.am): Likewise.
55445
55446 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
55447
55448         * modules/gettimeofday (License): Change from GPL to LGPL, since
55449         gettimeofday is a library function.
55450
55451 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55452
55453         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
55454
55455 2007-01-21  Bruno Haible  <bruno@clisp.org>
55456
55457         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
55458
55459 2007-01-21  Bruno Haible  <bruno@clisp.org>
55460
55461         * modules/striconveha: New file.
55462         * lib/striconveha.h: New file.
55463         * lib/striconveha.c: New file.
55464         * MODULES.html.sh (Internationalization functions): Add striconveha.
55465         * lib/striconv.c (str_iconv): Optimize the case of an empty input
55466         string.
55467         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
55468
55469 2007-01-21  Bruno Haible  <bruno@clisp.org>
55470
55471         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
55472         * lib/striconveh.c (str_iconveh): Likewise.
55473
55474 2007-01-21  Bruno Haible  <bruno@clisp.org>
55475
55476         * lib/striconveh.h (mem_iconveh): New declaration.
55477         * lib/striconveh.c (mem_iconveh): New function.
55478         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
55479
55480 2007-01-21  Bruno Haible  <bruno@clisp.org>
55481
55482         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
55483
55484         * lib/striconveh.h (mem_cd_iconveh): Change specification.
55485         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
55486         original result buffer.
55487         (str_cd_iconveh): Update.
55488         * tests/test-striconveh.c (main): Update.
55489
55490         * lib/striconv.h (mem_cd_iconv): Change specification.
55491         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
55492         result buffer.
55493         (str_cd_iconv): Update.
55494         * tests/test-striconv.c (main): Update.
55495
55496 2007-01-21  Bruno Haible  <bruno@clisp.org>
55497
55498         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
55499
55500 2007-01-20  Jim Meyering  <jim@meyering.net>
55501
55502         * lib/userspec.c (parse_with_separator): If a user or group string
55503         starts with "+", skip the corresponding name-to-ID look-up, since
55504         such a look-up must fail: user and group names may not include "+".
55505
55506 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
55507
55508         * lib/poll.c: Include sys/time.h and time.h unconditionally,
55509         since we now assume the sys_time module.
55510         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
55511         check for sys/time.h; no longer needed.
55512         * modules/poll (Depends-on): Depend on sys_time.
55513
55514 2007-01-18  Bruno Haible  <bruno@clisp.org>
55515
55516         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
55517         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55518
55519         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
55520         gettimeofday.
55521
55522         * tests/test-gettimeofday.c: Include <time.h>.
55523         (dummy): Remove variable.
55524
55525         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
55526         gl_HEADER_SYS_TIME_H.
55527         (gl_HEADER_SYS_TIME_H): New macro.
55528
55529         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
55530         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55531         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
55532         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
55533         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55534         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
55535         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
55536         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55537         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
55538         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
55539         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55540
55541         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
55542         last change; it caused a compilation error when cross-compiling to
55543         Cygwin.
55544
55545 2007-01-18  Jim Meyering  <jim@meyering.net>
55546
55547         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
55548         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
55549         than the race-prone "test -d sys || mkdir sys".
55550         (configure.ac): Use AC_PROG_MKDIR_P.
55551         * modules/sys_select: Likewise.
55552         * modules/sys_socket: Likewise.
55553         * modules/sys_time: Likewise.
55554
55555 2007-01-18  Eric Blake  <ebb9@byu.net>
55556
55557         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
55558         replace gettimeofday.
55559         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
55560         name, to avoid infinite recursion.
55561
55562 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
55563
55564         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
55565         module sys_time.
55566         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
55567         assume timespec.h defines struct timeval.
55568         * lib/settime.c: Likewise.
55569         * lib/utimens.c: Likewise.
55570         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
55571         since we now assume the gettimeofday module.
55572         * lib/tempname.c (__gen_tempname): Likewise.
55573         * lib/gettimeofday.h: Remove.
55574         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
55575         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
55576         Include <time.h>, for 'time()'.
55577         (localtime_buffer_addr): Also use this workaround if
55578         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
55579         to simplify the uses.  All uses changed.
55580         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
55581         that #undef is inside {}, and 'const' follows type name consistently.
55582         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
55583         (gettimeofday): Do not use the maximum possible value for
55584         tv->tv_usec, since that might break usages other than ls.c.
55585         Instead, we'll leave ls.c alone.  This undoes today's patch
55586         by Bruno.  Add a compile-time warning for 1s-clock resolution;
55587         we've never observed the problem but might as well keep the
55588         canary.
55589         * lib/nanosleep.c: Include timespec.h first, for interface check.
55590         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
55591         now assume the sys_time module.
55592         * lib/tempname.c: Likewise.
55593         * lib/timespec.h: Likewise.
55594         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
55595         needed.
55596         * lib/strftime.c: Likewise.
55597         * lib/timespec.h: Likewise.
55598         * lib/posixtm.c: Include posixtm.h first, for interface check.
55599         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
55600         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
55601         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
55602         * lib/sys_time_.h: New file.
55603         * lib/timespec.h (struct timespec): Use long int, not long.
55604         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
55605         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
55606         Remove obsolescent call to AC_HEADER_TIME.
55607         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
55608         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55609         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
55610         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
55611         Likewise.
55612         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
55613         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
55614         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
55615         into the sys_time module.  Check for gettimeofday just once.
55616         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
55617         for gettimeofday signature to just check the signature.  Merely
55618         compile it, since linking doesn't test signature.  Improve test for
55619         whether gettimeofday.o is actually needed.
55620         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
55621         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
55622         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
55623         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55624         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
55625         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
55626         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
55627         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
55628         than worrying about sys/time.h.
55629         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
55630         Don't bother worrying about TIME_WITH_SYS_TIME.
55631         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
55632         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
55633         * m4/sys_time_h.m4: New file.
55634         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
55635         Don't include sys/time.h.  Return from main rather than exiting.
55636         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
55637         all uses changed.
55638         * modules/gethrxtime (Depends-on): Add sys_time.
55639         * modules/gettime (Depends-on): Likewise.
55640         * modules/gettimeofday (Depends-on): Likewise.
55641         * modules/nanosleep (Depends-on): Likewise.
55642         * modules/settime (Depends-on): Likewise.
55643         * modules/tempname (Depends-on): Likewise.
55644         * modules/utimens (Depends-on): Likewise.
55645         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
55646         (Include): Change back to <sys/time.h>.
55647         (Maintainer): Add self.
55648         * modules/sys_time: New file.
55649         * modules/tempname (Depends-on): Add gettimeofday.
55650         * tests/test-gettimeofday.c: Include <sys/time.h>
55651         rather than gettimeofday.h.
55652
55653 2007-01-17  Bruno Haible  <bruno@clisp.org>
55654
55655         * gnulib-tool (func_get_license): Revert last patch. Instead, let
55656         the license default to GPL.
55657         (func_create_testdir): Don't complain if a module is LGPL and its
55658         tests module depends on GPLed modules.
55659
55660 2007-01-17  Bruno Haible  <bruno@clisp.org>
55661
55662         * lib/gettimeofday.c (gettimeofday): Add code for the case
55663         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
55664         maximum possible value for tv->tv_usec, rather than the minimum one.
55665
55666 2005-10-08  Martin Lambers  <marlam@marlam.de>
55667 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
55668 2007-01-16  Bruno Haible  <bruno@clisp.org>
55669
55670         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
55671         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
55672         gl_FUNC_GETTIMEOFDAY.
55673         (Include): Add gettimeofday.h.
55674         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
55675         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
55676         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
55677         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
55678         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
55679         * lib/gettimeofday.h: New file.
55680         * lib/gettimeofday.c: Include <sys/timeb.h>.
55681         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
55682         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
55683         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
55684         fall back on time().
55685
55686         * tests/test-gettimeofday.c: New file.
55687         * modules/gettimeofday-tests: New file.
55688
55689 2007-01-16  Eric Blake  <ebb9@byu.net>
55690
55691         * modules/fnmatch (Depends-on): Depend on wchar.
55692         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
55693         * m4/fnmatch.m4: Likewise.
55694         * modules/mbchar (Makefile.am): Assume <wchar.h>.
55695         * m4/mbchar.m4: Likewise.
55696         * modules/mbswidth (Depends-on): Depend on wchar.
55697         * lib/mbswidth.c: Assume <wchar.h>.
55698         * m4/mbswidth.m4: Likewise.
55699         * modules/quotearg (Depends-on): Depend on wchar.
55700         * lib/quotearg.c: Assume <wchar.h>.
55701         * m4/quotearg.m4: Likewise.
55702         * modules/regex (Depends-on): Depend on wchar.
55703         * lib/regex_internal.h: Assume <wchar.h>.
55704         * m4/regex.m4: Likewise.
55705         * modules/stdint (Depends-on): Depend on wchar.
55706         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
55707         * m4/stdint.m4: Likewise.
55708         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
55709         * modules/strftime (Depends-on): Depend on wchar.
55710         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
55711         * modules/strtol (Depends-on): Depend on wchar.
55712         * lib/strtol.c: Assume <wchar.h>.
55713         * modules/wcwidth (Depends-on): Depend on wchar.
55714         * lib/wcwidth.h: Assume <wchar.h>.
55715         * m4/wcwidth.m4: Likewise.
55716
55717 2007-01-16  Bruno Haible  <bruno@clisp.org>
55718
55719         * modules/csharpexec-script: New, created from...
55720         * modules/csharpexec: ... this.
55721
55722 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
55723
55724         * modules/javaexec-script: New, created from...
55725         * modules/javaexec: ... this.
55726
55727 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55728
55729         * modules/poll (Dependencies): Add sys_select.
55730
55731 2007-01-15  Jim Meyering  <jim@meyering.net>
55732
55733         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
55734         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
55735         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
55736         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
55737
55738 2007-01-15  Bruno Haible  <bruno@clisp.org>
55739
55740         * modules/striconveh: New file.
55741         * lib/striconveh.h: New file.
55742         * lib/striconveh.c: New file.
55743         * MODULES.html.sh (Internationalization functions): Add striconveh.
55744
55745         * modules/striconveh-tests: New file.
55746         * tests/test-striconveh.c: New file.
55747
55748 2007-01-15  Bruno Haible  <bruno@clisp.org>
55749
55750         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
55751         not from GNU libiconv or GNU libc.
55752
55753 2007-01-15  Bruno Haible  <bruno@clisp.org>
55754
55755         * doc/gnulib-intro.texi (Copyright): Explain the different license
55756         terms for module descriptions, autoconf macros, tests, documentation.
55757
55758 2007-01-14  Bruno Haible  <bruno@clisp.org>
55759
55760         * modules/striconv-tests: New file.
55761         * tests/test-striconv.c: New file.
55762
55763 2007-01-14  Bruno Haible  <bruno@clisp.org>
55764
55765         * modules/iconv-tests: New file.
55766         * tests/test-iconv.c: New file.
55767
55768 2007-01-14  Bruno Haible  <bruno@clisp.org>
55769
55770         * gnulib-tool (func_get_license): For test modules, use the license of
55771         the main module.
55772
55773 2007-01-14  Bruno Haible  <bruno@clisp.org>
55774
55775         * modules/iconv (Include): Clarify that <iconv.h> can only be included
55776         if iconv is found to exist.
55777
55778 2007-01-14  Bruno Haible  <bruno@clisp.org>
55779
55780         * modules/c-ctype-tests: New file.
55781         * tests/test-c-ctype.c: New file.
55782
55783 2007-01-14  Bruno Haible  <bruno@clisp.org>
55784
55785         * modules/binary-io-tests: New file.
55786         * tests/test-binary-io.sh: New file.
55787         * tests/test-binary-io.c: New file.
55788
55789 2007-01-14  Bruno Haible  <bruno@clisp.org>
55790
55791         * modules/array-oset-tests: New file.
55792         * tests/test-array_oset.c: New file.
55793
55794 2007-01-14  Bruno Haible  <bruno@clisp.org>
55795
55796         * modules/array-list-tests: New file.
55797         * tests/test-array_list.c: New file.
55798
55799 2007-01-14  Bruno Haible  <bruno@clisp.org>
55800
55801         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
55802         and make.
55803         Reported by Simon Josefsson in
55804         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
55805
55806 2007-01-14  Bruno Haible  <bruno@clisp.org>
55807
55808         * modules/allocsa-tests: New file.
55809         * tests/test-allocsa.c: New file.
55810
55811 2007-01-14  Bruno Haible  <bruno@clisp.org>
55812
55813         * modules/fchdir (Depends-on): Add absolute-header.
55814         * modules/unistd (Depends-on): Likewise.
55815
55816 2006-12-30  Bruno Haible  <bruno@clisp.org>
55817
55818         * modules/fchdir: New file.
55819         * modules/unistd (Files): Add lib/unistd_.h.
55820         (Makefile.am): Generate unistd.h from unistd_.h.
55821         * lib/fchdir.c: New file.
55822         * lib/dirent_.h: New file.
55823         * lib/unistd_.h: New file.
55824         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
55825         * m4/fchdir.m4: New file.
55826         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
55827         (gl_HEADER_UNISTD): Invoke it.
55828         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
55829         function.
55830         * lib/backupfile.c (opendir, closedir): Undefine.
55831         * lib/chown.c (open, close): Undefine.
55832         * lib/clean-temp.c (open, close): Undefine.
55833         * lib/copy-file.c (open, close): Undefine.
55834         * lib/execute.c (open, close): Undefine.
55835         * lib/fsusage.c (open, close): Undefine.
55836         * lib/gc-gnulib.c (open, close): Undefine.
55837         * lib/getcwd.c (opendir, closedir): Undefine.
55838         * lib/glob.c (opendir, closedir): Undefine.
55839         * lib/javacomp.c (open, close): Undefine.
55840         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
55841         * lib/openat-proc.c (open, close): Undefine.
55842         * lib/pagealign_alloc.c (open, close): Undefine.
55843         * lib/pipe.c (open, close): Undefine.
55844         * lib/progreloc.c (open, close): Undefine.
55845         * lib/savedir.c (opendir, closedir): Undefine.
55846         * lib/utime.c (open, close): Undefine.
55847         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
55848
55849 2007-01-10  Bruno Haible  <bruno@clisp.org>
55850
55851         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
55852
55853 2007-01-12  Eric Blake  <ebb9@byu.net>
55854
55855         Provide a robust <wchar.h>.  Further simplifications are now
55856         possible in other modules, but not included here.
55857         * modules/wchar: New module.
55858         * m4/wchar.m4: New file.
55859         * lib/wchar_.h: Likewise.
55860         * modules/mbchar (Depends-on): Depend on wchar, as the first use
55861         of the new module.
55862         * MODULES.html.sh (Extended multibyte and wide character utilities):
55863         New section.
55864
55865 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
55866
55867         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
55868         to a reasonable default for memory allocation.
55869         (xreadlink): Don't allocate a huge buffer, to work around a buggy
55870         file system that reports garbage st_size values for symlinks.
55871         Problem reported by Liyang Hu.
55872
55873 2007-01-11  Simon Josefsson  <simon@josefsson.org>
55874
55875         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
55876         Emacs .#* auto-save files).
55877
55878 2007-01-11  Bruno Haible  <bruno@clisp.org>
55879
55880         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
55881         directory.
55882
55883 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55884
55885         Use @...@ consistently in lib/wctype_.h.
55886         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
55887         on it being set to 1 or 0.
55888         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
55889         go back to AC_SUBSTing it.
55890         * modules/wctype (Makefile.am): Undo previous change.
55891
55892 2007-01-10  Eric Blake  <ebb9@byu.net>
55893
55894         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
55895         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
55896         * modules/wctype (Makefile.am): Likewise.
55897         Reported by Chris McGuire.
55898
55899 2007-01-10  Jim Meyering  <jim@meyering.net>
55900
55901         fts.c: a small readability/maintainability improvement
55902         * lib/fts.c (fts_read): Make this code slightly more readable and
55903         maintainable by hoisting the "sp->fts_cur = p" assignments to
55904         immediately follow the statements that set P.  Derived from
55905         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
55906
55907 2007-01-10  Eric Blake  <ebb9@byu.net>
55908
55909         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
55910         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
55911         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55912         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
55913         Reported by Chris McGuire.
55914
55915 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55916
55917         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
55918         in sed script.
55919
55920 2007-01-09  Bruno Haible  <bruno@clisp.org>
55921
55922         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
55923         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
55924         variables.
55925         (func_module): Use them.
55926
55927 2007-01-09  Bruno Haible  <bruno@clisp.org>
55928
55929         * modules/unistr/base: New file.
55930         * lib/unistr.h: New file.
55931
55932         * modules/unistr/u8-to-u16: New file.
55933         * lib/unistr/u8-to-u16.c: New file.
55934
55935         * modules/unistr/u8-to-u32: New file.
55936         * lib/unistr/u8-to-u32.c: New file.
55937
55938         * modules/unistr/u16-to-u8: New file.
55939         * lib/unistr/u16-to-u8.c: New file.
55940
55941         * modules/unistr/u16-to-u32: New file.
55942         * lib/unistr/u16-to-u32.c: New file.
55943
55944         * modules/unistr/u32-to-u8: New file.
55945         * lib/unistr/u32-to-u8.c: New file.
55946
55947         * modules/unistr/u32-to-u16: New file.
55948         * lib/unistr/u32-to-u16.c: New file.
55949
55950         * modules/unistr/u8-check: New file.
55951         * modules/unistr/u16-check: New file.
55952         * modules/unistr/u32-check: New file.
55953         * lib/unistr/u8-check.c: New file.
55954         * lib/unistr/u16-check.c: New file.
55955         * lib/unistr/u32-check.c: New file.
55956
55957         * modules/unistr/u8-chr: New file.
55958         * modules/unistr/u16-chr: New file.
55959         * modules/unistr/u32-chr: New file.
55960         * lib/unistr/u8-chr.c: New file.
55961         * lib/unistr/u16-chr.c: New file.
55962         * lib/unistr/u32-chr.c: New file.
55963
55964         * modules/unistr/u8-cmp: New file.
55965         * modules/unistr/u16-cmp: New file.
55966         * modules/unistr/u32-cmp: New file.
55967         * lib/unistr/u8-cmp.c: New file.
55968         * lib/unistr/u16-cmp.c: New file.
55969         * lib/unistr/u32-cmp.c: New file.
55970
55971         * modules/unistr/u8-cpy: New file.
55972         * modules/unistr/u16-cpy: New file.
55973         * modules/unistr/u32-cpy: New file.
55974         * lib/unistr/u8-cpy.c: New file.
55975         * lib/unistr/u16-cpy.c: New file.
55976         * lib/unistr/u32-cpy.c: New file.
55977         * lib/unistr/u-cpy.h: New file.
55978
55979         * modules/unistr/u8-cpy-alloc: New file.
55980         * modules/unistr/u16-cpy-alloc: New file.
55981         * modules/unistr/u32-cpy-alloc: New file.
55982         * lib/unistr/u8-cpy-alloc.c: New file.
55983         * lib/unistr/u16-cpy-alloc.c: New file.
55984         * lib/unistr/u32-cpy-alloc.c: New file.
55985         * lib/unistr/u-cpy-alloc.h: New file.
55986
55987         * modules/unistr/u8-endswith: New file.
55988         * modules/unistr/u16-endswith: New file.
55989         * modules/unistr/u32-endswith: New file.
55990         * lib/unistr/u8-endswith.c: New file.
55991         * lib/unistr/u16-endswith.c: New file.
55992         * lib/unistr/u32-endswith.c: New file.
55993         * lib/unistr/u-endswith.h: New file.
55994
55995         * modules/unistr/u8-mblen: New file.
55996         * modules/unistr/u16-mblen: New file.
55997         * modules/unistr/u32-mblen: New file.
55998         * lib/unistr/u8-mblen.c: New file.
55999         * lib/unistr/u16-mblen.c: New file.
56000         * lib/unistr/u32-mblen.c: New file.
56001
56002         * modules/unistr/u8-mbtouc: New file.
56003         * modules/unistr/u16-mbtouc: New file.
56004         * modules/unistr/u32-mbtouc: New file.
56005         * lib/unistr/u8-mbtouc.c: New file.
56006         * lib/unistr/u16-mbtouc.c: New file.
56007         * lib/unistr/u32-mbtouc.c: New file.
56008
56009         * modules/unistr/u8-mbtouc-safe: New file.
56010         * modules/unistr/u16-mbtouc-safe: New file.
56011         * modules/unistr/u32-mbtouc-safe: New file.
56012         * lib/unistr/u8-mbtouc-safe.c: New file.
56013         * lib/unistr/u16-mbtouc-safe.c: New file.
56014         * lib/unistr/u32-mbtouc-safe.c: New file.
56015
56016         * modules/unistr/u8-move: New file.
56017         * modules/unistr/u16-move: New file.
56018         * modules/unistr/u32-move: New file.
56019         * lib/unistr/u8-move.c: New file.
56020         * lib/unistr/u16-move.c: New file.
56021         * lib/unistr/u32-move.c: New file.
56022         * lib/unistr/u-move.h: New file.
56023
56024         * modules/unistr/u8-next: New file.
56025         * modules/unistr/u16-next: New file.
56026         * modules/unistr/u32-next: New file.
56027         * lib/unistr/u8-next.c: New file.
56028         * lib/unistr/u16-next.c: New file.
56029         * lib/unistr/u32-next.c: New file.
56030
56031         * modules/unistr/u8-prev: New file.
56032         * modules/unistr/u16-prev: New file.
56033         * modules/unistr/u32-prev: New file.
56034         * lib/unistr/u8-prev.c: New file.
56035         * lib/unistr/u16-prev.c: New file.
56036         * lib/unistr/u32-prev.c: New file.
56037
56038         * modules/unistr/u8-set: New file.
56039         * modules/unistr/u16-set: New file.
56040         * modules/unistr/u32-set: New file.
56041         * lib/unistr/u8-set.c: New file.
56042         * lib/unistr/u16-set.c: New file.
56043         * lib/unistr/u32-set.c: New file.
56044         * lib/unistr/u-set.h: New file.
56045
56046         * modules/unistr/u8-startswith: New file.
56047         * modules/unistr/u16-startswith: New file.
56048         * modules/unistr/u32-startswith: New file.
56049         * lib/unistr/u8-startswith.c: New file.
56050         * lib/unistr/u16-startswith.c: New file.
56051         * lib/unistr/u32-startswith.c: New file.
56052         * lib/unistr/u-startswith.h: New file.
56053
56054         * modules/unistr/u8-stpcpy: New file.
56055         * modules/unistr/u16-stpcpy: New file.
56056         * modules/unistr/u32-stpcpy: New file.
56057         * lib/unistr/u8-stpcpy.c: New file.
56058         * lib/unistr/u16-stpcpy.c: New file.
56059         * lib/unistr/u32-stpcpy.c: New file.
56060         * lib/unistr/u-stpcpy.h: New file.
56061
56062         * modules/unistr/u8-stpncpy: New file.
56063         * modules/unistr/u16-stpncpy: New file.
56064         * modules/unistr/u32-stpncpy: New file.
56065         * lib/unistr/u8-stpncpy.c: New file.
56066         * lib/unistr/u16-stpncpy.c: New file.
56067         * lib/unistr/u32-stpncpy.c: New file.
56068         * lib/unistr/u-stpncpy.h: New file.
56069
56070         * modules/unistr/u8-strcat: New file.
56071         * modules/unistr/u16-strcat: New file.
56072         * modules/unistr/u32-strcat: New file.
56073         * lib/unistr/u8-strcat.c: New file.
56074         * lib/unistr/u16-strcat.c: New file.
56075         * lib/unistr/u32-strcat.c: New file.
56076         * lib/unistr/u-strcat.h: New file.
56077
56078         * modules/unistr/u8-strchr: New file.
56079         * modules/unistr/u16-strchr: New file.
56080         * modules/unistr/u32-strchr: New file.
56081         * lib/unistr/u8-strchr.c: New file.
56082         * lib/unistr/u16-strchr.c: New file.
56083         * lib/unistr/u32-strchr.c: New file.
56084
56085         * modules/unistr/u8-strcmp: New file.
56086         * modules/unistr/u16-strcmp: New file.
56087         * modules/unistr/u32-strcmp: New file.
56088         * lib/unistr/u8-strcmp.c: New file.
56089         * lib/unistr/u16-strcmp.c: New file.
56090         * lib/unistr/u32-strcmp.c: New file.
56091
56092         * modules/unistr/u8-strcpy: New file.
56093         * modules/unistr/u16-strcpy: New file.
56094         * modules/unistr/u32-strcpy: New file.
56095         * lib/unistr/u8-strcpy.c: New file.
56096         * lib/unistr/u16-strcpy.c: New file.
56097         * lib/unistr/u32-strcpy.c: New file.
56098         * lib/unistr/u-strcpy.h: New file.
56099
56100         * modules/unistr/u8-strcspn: New file.
56101         * modules/unistr/u16-strcspn: New file.
56102         * modules/unistr/u32-strcspn: New file.
56103         * lib/unistr/u8-strcspn.c: New file.
56104         * lib/unistr/u16-strcspn.c: New file.
56105         * lib/unistr/u32-strcspn.c: New file.
56106         * lib/unistr/u-strcspn.h: New file.
56107
56108         * modules/unistr/u8-strdup: New file.
56109         * modules/unistr/u16-strdup: New file.
56110         * modules/unistr/u32-strdup: New file.
56111         * lib/unistr/u8-strdup.c: New file.
56112         * lib/unistr/u16-strdup.c: New file.
56113         * lib/unistr/u32-strdup.c: New file.
56114         * lib/unistr/u-strdup.h: New file.
56115
56116         * modules/unistr/u8-strlen: New file.
56117         * modules/unistr/u16-strlen: New file.
56118         * modules/unistr/u32-strlen: New file.
56119         * lib/unistr/u8-strlen.c: New file.
56120         * lib/unistr/u16-strlen.c: New file.
56121         * lib/unistr/u32-strlen.c: New file.
56122         * lib/unistr/u-strlen.h: New file.
56123
56124         * modules/unistr/u8-strmblen: New file.
56125         * modules/unistr/u16-strmblen: New file.
56126         * modules/unistr/u32-strmblen: New file.
56127         * lib/unistr/u8-strmblen.c: New file.
56128         * lib/unistr/u16-strmblen.c: New file.
56129         * lib/unistr/u32-strmblen.c: New file.
56130
56131         * modules/unistr/u8-strmbtouc: New file.
56132         * modules/unistr/u16-strmbtouc: New file.
56133         * modules/unistr/u32-strmbtouc: New file.
56134         * lib/unistr/u8-strmbtouc.c: New file.
56135         * lib/unistr/u16-strmbtouc.c: New file.
56136         * lib/unistr/u32-strmbtouc.c: New file.
56137
56138         * modules/unistr/u8-strncat: New file.
56139         * modules/unistr/u16-strncat: New file.
56140         * modules/unistr/u32-strncat: New file.
56141         * lib/unistr/u8-strncat.c: New file.
56142         * lib/unistr/u16-strncat.c: New file.
56143         * lib/unistr/u32-strncat.c: New file.
56144         * lib/unistr/u-strncat.h: New file.
56145
56146         * modules/unistr/u8-strncmp: New file.
56147         * modules/unistr/u16-strncmp: New file.
56148         * modules/unistr/u32-strncmp: New file.
56149         * lib/unistr/u8-strncmp.c: New file.
56150         * lib/unistr/u16-strncmp.c: New file.
56151         * lib/unistr/u32-strncmp.c: New file.
56152
56153         * modules/unistr/u8-strncpy: New file.
56154         * modules/unistr/u16-strncpy: New file.
56155         * modules/unistr/u32-strncpy: New file.
56156         * lib/unistr/u8-strncpy.c: New file.
56157         * lib/unistr/u16-strncpy.c: New file.
56158         * lib/unistr/u32-strncpy.c: New file.
56159         * lib/unistr/u-strncpy.h: New file.
56160
56161         * modules/unistr/u8-strnlen: New file.
56162         * modules/unistr/u16-strnlen: New file.
56163         * modules/unistr/u32-strnlen: New file.
56164         * lib/unistr/u8-strnlen.c: New file.
56165         * lib/unistr/u16-strnlen.c: New file.
56166         * lib/unistr/u32-strnlen.c: New file.
56167         * lib/unistr/u-strnlen.h: New file.
56168
56169         * modules/unistr/u8-strpbrk: New file.
56170         * modules/unistr/u16-strpbrk: New file.
56171         * modules/unistr/u32-strpbrk: New file.
56172         * lib/unistr/u8-strpbrk.c: New file.
56173         * lib/unistr/u16-strpbrk.c: New file.
56174         * lib/unistr/u32-strpbrk.c: New file.
56175         * lib/unistr/u-strpbrk.h: New file.
56176
56177         * modules/unistr/u8-strrchr: New file.
56178         * modules/unistr/u16-strrchr: New file.
56179         * modules/unistr/u32-strrchr: New file.
56180         * lib/unistr/u8-strrchr.c: New file.
56181         * lib/unistr/u16-strrchr.c: New file.
56182         * lib/unistr/u32-strrchr.c: New file.
56183
56184         * modules/unistr/u8-strspn: New file.
56185         * modules/unistr/u16-strspn: New file.
56186         * modules/unistr/u32-strspn: New file.
56187         * lib/unistr/u8-strspn.c: New file.
56188         * lib/unistr/u16-strspn.c: New file.
56189         * lib/unistr/u32-strspn.c: New file.
56190         * lib/unistr/u-strspn.h: New file.
56191
56192         * modules/unistr/u8-strstr: New file.
56193         * modules/unistr/u16-strstr: New file.
56194         * modules/unistr/u32-strstr: New file.
56195         * lib/unistr/u8-strstr.c: New file.
56196         * lib/unistr/u16-strstr.c: New file.
56197         * lib/unistr/u32-strstr.c: New file.
56198         * lib/unistr/u-strstr.h: New file.
56199
56200         * modules/unistr/u8-strtok: New file.
56201         * modules/unistr/u16-strtok: New file.
56202         * modules/unistr/u32-strtok: New file.
56203         * lib/unistr/u8-strtok.c: New file.
56204         * lib/unistr/u16-strtok.c: New file.
56205         * lib/unistr/u32-strtok.c: New file.
56206         * lib/unistr/u-strtok.h: New file.
56207
56208         * modules/unistr/u8-uctomb: New file.
56209         * modules/unistr/u16-uctomb: New file.
56210         * modules/unistr/u32-uctomb: New file.
56211         * lib/unistr/u8-uctomb.c: New file.
56212         * lib/unistr/u16-uctomb.c: New file.
56213         * lib/unistr/u32-uctomb.c: New file.
56214
56215         * MODULES.html.sh (Unicode string functions): Add the new modules.
56216
56217 2007-01-08  Bruno Haible  <bruno@clisp.org>
56218
56219         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
56220         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
56221         subdirectories.
56222
56223 2007-01-08  Karl Berry  <karl@gnu.org>
56224
56225         * doc/error.texi: mention that main() fns must set program_name
56226         when progname is used.
56227
56228 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
56229
56230         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
56231         WCTYPE_H is empty, for the benefit of builds from non-distclean
56232         directories.  Problem reported by Eric Blake in
56233         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
56234
56235 2007-01-08  Bruno Haible  <bruno@clisp.org>
56236
56237         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
56238         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
56239         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
56240         PROVIDE_CANONICALIZE_FILENAME_MODE.
56241         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
56242
56243 2007-01-08  Bruno Haible  <bruno@clisp.org>
56244
56245         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
56246         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
56247         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
56248         * lib/fts.c: Likewise.
56249         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
56250
56251 2006-12-25  Bruno Haible  <bruno@clisp.org>
56252
56253         * modules/utf8-ucs4-safe: New file.
56254         * lib/utf8-ucs4-safe.h: New file.
56255         * lib/unistr/utf8-ucs4-safe.c: New file.
56256
56257         * modules/utf16-ucs4-safe: New file.
56258         * lib/utf16-ucs4-safe.h: New file.
56259         * lib/unistr/utf16-ucs4-safe.c: New file.
56260
56261         * MODULES.html.sh (Unicode string functions): Add the new modules.
56262
56263 2007-01-08  Bruno Haible  <bruno@clisp.org>
56264
56265         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
56266         (Depends-on): Add unitypes.
56267         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56268         (u8_mbtouc_aux): Move out to separate file.
56269         (u8_mbtouc): Use ucs4_t, uint8_t types.
56270         * lib/unistr/utf8-ucs4.c: New file.
56271
56272         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
56273         (Depends-on): Add unitypes.
56274         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
56275         (u16_mbtouc_aux): Move out to separate file.
56276         (u16_mbtouc): Use ucs4_t, uint16_t types.
56277         * lib/unistr/utf16-ucs4.c: New file.
56278
56279         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
56280         (Depends-on): Add unitypes.
56281         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
56282         (u8_uctomb_aux): Move out to separate file.
56283         (u8_uctomb): Use ucs4_t, uint8_t types.
56284         * lib/unistr/ucs4-utf8.c: New file.
56285
56286         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
56287         (Depends-on): Add unitypes.
56288         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
56289         (u16_uctomb_aux): Move out to separate file.
56290         (u16_uctomb): Use ucs4_t, uint16_t types.
56291         * lib/unistr/ucs4-utf16.c: New file.
56292
56293 2006-12-25  Bruno Haible  <bruno@clisp.org>
56294
56295         * modules/unitypes: New file.
56296         * lib/unitypes.h: New file.
56297         * MODULES.html.sh (func_all_modules): New section "Unicode string
56298         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
56299         this section. Add unitypes.
56300
56301 2007-01-08  Bruno Haible  <bruno@clisp.org>
56302
56303         Avoid variable names that conflict with those from libtool.
56304         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
56305         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
56306         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
56307         library_names_spec to acl_library_names_spec, hardcode_* to
56308         acl_hardcode_*.
56309         Reported by Ralf Wildenhues.
56310
56311 2007-01-08  Bruno Haible  <bruno@clisp.org>
56312
56313         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
56314         definition.
56315         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
56316         definition.
56317         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
56318         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
56319         definition.
56320         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
56321         definition.
56322         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
56323         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
56324         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
56325         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
56326         definition.
56327         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
56328         definition.
56329         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
56330         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
56331         GC_USE_<algorithm>.
56332         * lib/gc-libgcrypt.c: Likewise.
56333         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
56334         * modules/gc-arctwo (configure.ac): Likewise.
56335         * modules/gc-des (configure.ac): Likewise.
56336         * modules/gc-hmac-md5 (configure.ac): Likewise.
56337         * modules/gc-hmac-sha1 (configure.ac): Likewise.
56338         * modules/gc-md2 (configure.ac): Likewise.
56339         * modules/gc-md4 (configure.ac): Likewise.
56340         * modules/gc-md5 (configure.ac): Likewise.
56341         * modules/gc-random (configure.ac): Likewise.
56342         * modules/gc-rijndael (configure.ac): Likewise.
56343         * modules/gc-sha1 (configure.ac): Likewise.
56344
56345 2007-01-08  Bruno Haible  <bruno@clisp.org>
56346
56347         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
56348         macro definition.
56349         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
56350         definition.
56351         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
56352         definition.
56353         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
56354         * modules/fcntl-safer (configure.ac): Likewise.
56355         * modules/fopen-safer (configure.ac): Likewise.
56356         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
56357         GNULIB_FWRITEERROR macro definition.
56358
56359 2007-01-08  Bruno Haible  <bruno@clisp.org>
56360
56361         * m4/gnulib-common.m4: New file.
56362         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
56363         (func_get_filelist): Add m4/gnulib-common.m4.
56364
56365 2007-01-08  Bruno Haible  <bruno@clisp.org>
56366
56367         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
56368         command.
56369
56370 2007-01-08  Jim Meyering  <jim@meyering.net>
56371
56372         Use a more robust test for a "can't happen" condition.
56373         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
56374         narrowed the st_size value.  Presuming the "can't happen" condition
56375         is true, that narrowing could conceivably convert an invalid st_size
56376         value into a valid one.  Instead, use a change based on Matthew
56377         Woehlke's original patch.
56378
56379         Slight readability improvement: use an assert-like macro
56380         in place of literal "abort ()" uses.
56381         * lib/fts.c (fts_assert): Define.
56382         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
56383         Use this macro instead of a bare 'abort'.
56384
56385 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
56386
56387         Don't worry about using IRIX 5.3's wctype.h broken definitions;
56388         simply work around them.
56389         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
56390         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
56391         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
56392         declaring.
56393         Don't bother to define as macros, since the standard doesn't require it.
56394         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
56395         longer worry about IRIX 5.3.
56396         (HAVE_WCTYPE_CTMP_BUG): Remove.
56397
56398 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56399
56400         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
56401         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
56402         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
56403         Problems reported by Georg Schwarz for IRIX 5.3.
56404
56405         * gnulib-tool (autoconf_minversion): Take the maximum version number
56406         found, not the minimum.  Problem reported by James Youngman.
56407
56408 2007-01-03  Karl Berry  <karl@gnu.org>
56409
56410         * doc/error.texi: new file, explaining interaction with progname.
56411         * doc/gnulib.texi: include it.  Update copyright.
56412
56413 2007-01-03  Simon Josefsson  <simon@josefsson.org>
56414
56415         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
56416         AC_CANONICAL_HOST, to improve autobuild outputs.
56417
56418 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
56419             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
56420
56421         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
56422         sockets, server sockets, and other file descriptors.  Count errors
56423         to compute the return value.  Reorder the code a bit to be easier
56424         to follow.  Don't set event bits that were not requested (except
56425         POLLERR and POLLHUP).
56426
56427 2007-01-01  Bruno Haible  <bruno@clisp.org>
56428
56429         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
56430
56431 2007-01-03  Jim Meyering  <jim@meyering.net>
56432
56433         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
56434
56435 2007-01-02  Bruno Haible  <bruno@clisp.org>
56436
56437         * modules/settime (Include): Require timespec.h.
56438         * modules/nanosleep (Include): Likewise.
56439
56440 2007-01-01  Bruno Haible  <bruno@clisp.org>
56441
56442         * gnulib-tool (func_emit_copyright_notice): Bump year.
56443         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
56444
56445 2007-01-01  Bruno Haible  <bruno@clisp.org>
56446
56447         Improve support for OpenBSD.
56448         * build-aux/config.rpath (libname_spec): Export.
56449         (library_names_spec): New variable. Export.
56450         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
56451         library_names_spec from the config.rpath output. Locate shared library
56452         through the name pattern in library_names_spec.
56453
56454 2007-01-01  Eric Blake  <ebb9@byu.net>
56455
56456         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
56457
56458 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
56459
56460         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
56461         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
56462         assume the C locale, and avoid an "eval" that could cause trouble.
56463         Problem with SORT reported by Bob Proulx.
56464
56465         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
56466         Define.  Trivial patch from Henning Nielsen Lund, originally
56467         sent to bug-grep@gnu.org today.
56468
56469 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
56470
56471         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
56472         struct stat.  Problem reported by Henning Nielsen Lund.
56473         * lib/acl.c: Include acl.h first, to check interface.  Don't
56474         bother to include sys/types.h and sys/stat.h again.
56475
56476 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
56477
56478         Import the following change from libc; problem reported by
56479         Sven Verdoolaege.
56480
56481         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
56482
56483         [BZ #1373]
56484         * lib/argp.h: Remove __NTH for __argp_usage inline function.
56485
56486 2006-12-28  Jim Meyering  <jim@meyering.net>
56487
56488         * build-aux/announce-gen: Do not assume that the package
56489         builds any of tar.gz, tar.bz2, and .xdelta files.
56490         Suggestion from Simon Josefsson.
56491
56492 2006-12-28  Simon Josefsson  <simon@josefsson.org>
56493
56494         * modules/announce-gen: New file.
56495
56496 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
56497
56498         * lib/mbchar.h: Just include <wctype.h>; the wctype module
56499         handles its gotchas now.
56500         * lib/mbswidth.c: Likewise.
56501         * lib/wcwidth.h: Likewise.
56502         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
56503         and iswcntrl; the wctype module does this stuff now.
56504         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
56505         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
56506         * modules/mbchar (Depends-on): Add wctype.
56507         * modules/mbswidth (Depends-on): Likewise.
56508         * modules/wcwidth (Depends-on): Likewise.
56509
56510 2006-12-27  Eric Blake  <ebb9@byu.net>
56511
56512         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
56513         module uses more than what <wctype.h> is required to provide.
56514
56515 2006-12-26  Eric Blake  <ebb9@byu.net>
56516
56517         * gnulib-tool (sed_extract_prog): Avoid space-tab.
56518
56519 2006-12-26  Eric Blake  <ebb9@byu.net>
56520
56521         * modules/absolute-header: New module.
56522         * modules/fcntl (Depends-on): Depend on it.
56523         * modules/inttypes (Depends-on): Likewise.
56524         * modules/stdint (Depends-on): Likewise.
56525         * modules/sys_stat (Depends-on): Likewise.
56526         * modules/wctype (Depends-on): Likewise.
56527         * MODULES.html.sh (Support for building libraries and
56528         executables): Document it.
56529
56530 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
56531
56532         * gnulib-tool (SED): Remove, undoing previous change.
56533         The problem was that it broke coreutils on Solaris, because
56534         "sed --posix" leaked into a makefile.
56535         (sed): New alias, if 'alias' and GNU sed.
56536
56537 2006-12-24  Jim Meyering  <jim@meyering.net>
56538
56539         Work around an fchownat bug in glibc-2.4:
56540         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
56541         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
56542         in spite of the -P option.
56543         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
56544         New macros.
56545         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
56546         * modules/openat (Files): Add lib/fchownat.c.
56547         * lib/openat.c (fchownat): Don't define here.  Move to...
56548         * lib/fchownat.c: ...this new file.
56549
56550 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
56551
56552         Fix bug reported by Bruno Haible in
56553         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
56554         where quotearg.c didn't compile on Mac OS X 10.2 because it
56555         lacks <wchar.h> and wint_t.
56556         * lib/wctype_.h (__wctype_wint_t): New type.
56557         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
56558         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
56559         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
56560         Arg is now of type __wctype_wint_t, not wint_t.
56561         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
56562         substitute HAVE_WINT_T.
56563         * modules/wctype (Files): Add m4/wint_t.m4.
56564         (wctype.h): Substitute HAVE_WINT_T.
56565
56566 2006-12-23  Bruno Haible  <bruno@clisp.org>
56567
56568         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
56569
56570 2006-12-23  Bruno Haible  <bruno@clisp.org>
56571
56572         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
56573         S_ISLNK.
56574         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
56575         mingw.
56576
56577 2006-12-22  Bruno Haible  <bruno@clisp.org>
56578
56579         * lib/copy-file.c: Include acl.h.
56580         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
56581         Close the file descriptors only after being done with copy_acl.
56582         * modules/copy-file (Depends-on): Add acl.
56583
56584 2006-12-22  Bruno Haible  <bruno@clisp.org>
56585
56586         * gnulib-tool (SED): New variable.
56587         Use $SED instead of sed everywhere.
56588
56589 2006-12-22  Bruno Haible  <bruno@clisp.org>
56590
56591         * modules/no-c++: New file.
56592         * m4/no-c++.m4: New file.
56593         * MODULES.html.sh (Support for building libraries and executables):
56594         Add no-c++.
56595
56596 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
56597
56598         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
56599         Include <limits.h>, and use its INT_MAX to rewrite the
56600         j loop so that it does not overflow 'int'.  Problem reported by
56601         Ralf Wildenhues in
56602         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
56603         Play it safe by shifting left by 1 rather than multiplying by 2,
56604         as GCC is less likely to optimize this away when the value
56605         is signed (when it assumes overflow leads to undefined behavior).
56606         Also, don't assume time_t uses two's complement.
56607
56608 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
56609
56610         * MODULES.html.sh: New module wctype.
56611         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
56612         * lib/fnmatch.c: Don't bother to include <wchar.h> before
56613         <wctype.h>, since the new wctype module should fix this.
56614         * lib/quotearg.c: Include <wctype.h> unconditionally, since
56615         the wctype module should arrange for it.
56616         * lib/regex_internal.h: Likewise.
56617         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
56618         since the wctype module should handle this now.
56619         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
56620         * modules/fnmatch (Depends-on): Add wctype.
56621         * modules/quotearg (Depends-on): Likewise.
56622         * modules/regex (Depends-on): Likewise.
56623
56624 2006-12-19  Bruno Haible  <bruno@clisp.org>
56625
56626         * lib/strdup.h [C++]: Wrap definitions in extern "C".
56627         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
56628
56629 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56630
56631         * modules/savewd (Depends-on): Fix dependency on fcntl.
56632
56633 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56634
56635         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
56636         conforms to C99, rather than relying on the user's environment
56637         setting of STDINT_H.
56638
56639 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
56640         and Eric Blake  <ebb9@byu.net>
56641
56642         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
56643         This is more consistent with the other defines here.
56644         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
56645         Port to z/OS.  Problem reported by Paul Gilmartin.
56646         Change local vars to use gl_ prefix rather than ac_.
56647         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
56648         with other defines.
56649         * modules/double-slash-root: New module.
56650         * modules/dirname (Files): Remove m4/double-slash-root.m4.
56651         (Depends-on): Add double-slash-root.
56652         * MODULES.html.sh (File system functions): Mention new module.
56653
56654 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
56655
56656         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
56657         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
56658         This is for the benefit of gzip, which doesn't do i18n.
56659
56660 2006-12-12  Jim Meyering  <jim@meyering.net>
56661
56662         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
56663         Reported by Andreas Schwab <schwab@suse.de>.
56664
56665 2006-12-12  Bruno Haible  <bruno@clisp.org>
56666
56667         Merge these changes.
56668         2006-09-05  Bruno Haible  <bruno@clisp.org>
56669         * lib/iconvme.c (iconv_string): No need to save and restore errno when
56670         iconv_alloc succeeded.
56671         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
56672         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
56673         test for " && dest " at the end - dest is always != NULL there. Call
56674         iconv with 4xNULL arguments initially, to reset the state. Call iconv
56675         with 2xNULL arguments, also to flush the state storage. Handle the
56676         IRIX iconv behaviour. Realloc the final result, to throw away unused
56677         memory.
56678
56679 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
56680
56681         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
56682         and fchmodat unconditionally, since glibc 2.4 has them.
56683         Problem reported by Arkadiusz Miskiewicz.
56684
56685 2006-12-10  Bruno Haible  <bruno@clisp.org>
56686
56687         * gnulib-tool (func_import): Show the include files only for those
56688         modules that are copied and specified.
56689         Reported by Karl Berry.
56690
56691 2006-12-08  Jim Meyering  <jim@meyering.net>
56692
56693         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
56694         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
56695
56696         * build-aux/announce-gen: Add two new options, both optional:
56697         --bootstrap-tools=TOOL_LIST
56698               a comma-separated list of tools, e.g.,
56699               autoconf,automake,bison,gnulib
56700         --gnulib-snapshot-date=DATE
56701               if gnulib is in the bootstrap tool list,
56702               then report this as the snapshot date.
56703               If not specified, use the current date/time.
56704               If you specify a date here, be sure it's UTC.
56705
56706 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56707
56708         * tests/test-argp-2.sh: Fix test to match actual output.
56709         (func_compare): Fix sed script to be portable.
56710
56711 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
56712
56713         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
56714         workaround for this case.  It is not autoconfigured now; offhand
56715         it's hard to see how to autoconfigure it.
56716
56717 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
56718
56719         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
56720         a directory that is about to be chowned.  Such a directory's
56721         initial file permissions should permit the owner only and this
56722         should not be changed until after the chown, since the group and
56723         other bits would be incorrect if they granted permission before
56724         the chown.
56725
56726         Fix porting problem for iswctype reported by Georg Schwarz in:
56727         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
56728         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
56729         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
56730         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
56731         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
56732
56733 2006-12-03  Jim Meyering  <jim@meyering.net>
56734
56735         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
56736         p->fts_statp may not yet be defined.
56737         (fts_read): Instead, set it in the caller, once p->fts_statp is
56738         sure to be defined, and corresponds to a top-level directory.
56739         This bug made du -x fail.  Here's the coreutils test case:
56740         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
56741         Reported by Mike Frysinger.
56742
56743 2006-12-01  Jim Meyering  <jim@meyering.net>
56744
56745         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
56746         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
56747         Reported by Simon Josefsson.
56748
56749 2006-11-30  Jim Meyering  <jim@meyering.net>
56750
56751         * m4/warning.m4: Use the all-permissive copyright notice
56752         recommended by RMS (rather than LGPL).
56753         * m4/vararrays.m4: Likewise.
56754         * m4/flexmember.m4: Likewise.
56755
56756 2006-11-29  Bruno Haible  <bruno@clisp.org>
56757
56758         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56759         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
56760         using +=.
56761         Reported by Simon Josefsson <simon@josefsson.org>.
56762
56763 2006-11-28  James Youngman <jay@gnu.org>
56764
56765         * README: Advise users that they might find the bug-gnulib@gnu.org
56766         and autotools-announce@gnu.org mailing lists useful.
56767
56768 2006-11-28  Bruno Haible  <bruno@clisp.org>
56769
56770         * m4/ptrdiff_max.m4: Remove file.
56771
56772 2006-11-21  Bruno Haible  <bruno@clisp.org>
56773
56774         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
56775         _AC_COMPUTE_INT.
56776         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56777         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
56778         _AC_COMPUTE_INT.
56779         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56780         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
56781         _AC_COMPUTE_INT.
56782         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56783
56784 2006-11-28  Jim Meyering  <jim@meyering.net>
56785
56786         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
56787         warning from "gcc -Wshadow" about shadowing the builtin.
56788
56789 2006-11-27  Bruno Haible  <bruno@clisp.org>
56790
56791         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
56792         _AC_COMPUTE_INT.
56793         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
56794
56795 2006-11-27  Bruno Haible  <bruno@clisp.org>
56796             Paul Eggert  <eggert@cs.ucla.edu>
56797
56798         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
56799
56800 2006-11-26  Bruno Haible  <bruno@clisp.org>
56801
56802         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
56803         noinst_LTLIBRARIES.
56804
56805 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
56806             Bruno Haible  <bruno@clisp.org>
56807
56808         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
56809         if compiling with "gcc -ansi".
56810
56811 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
56812
56813         Fix some incompatibilities with gcc -ansi -pedantic.
56814         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
56815         if compiling pedantically with GCC, unless it's C99 or later.
56816         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
56817         it mishandles gcc -ansi -pedantic as well.
56818         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
56819         if gcc -pedantic.
56820         * lib/regexec.c (check_node_accept_bytes): Don't use auto
56821         initializers for struct if -pedantic, unless it's C99 or later.
56822
56823 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
56824
56825         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
56826         Don't close an fd more than once. Identical atimes indicate
56827         success, not failure.
56828
56829 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
56830
56831         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
56832
56833 2006-11-23  Jim Meyering  <jim@meyering.net>
56834
56835         * build-aux/announce-gen: New file.  From coreutils.
56836
56837 2006-11-22  Jim Meyering  <jim@meyering.net>
56838
56839         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
56840         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
56841         (fts_read): Use a temporary to narrow the overused st_size member
56842         before using it in a switch statement.  Reported by Matthew Woehlke.
56843
56844         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
56845         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
56846
56847 2006-11-20  Bruno Haible  <bruno@clisp.org>
56848
56849         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
56850         changequote instead of pairs of brackets.
56851         Reported by Andreas Schwab <schwab@suse.de>.
56852
56853 2006-11-21  Jim Meyering  <jim@meyering.net>
56854
56855         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
56856         so as to remain compatible with older compilers.
56857         Patch from Michael Deutschmann.
56858
56859 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56860
56861         * MODULES.html.sh (File system functions): Add openat.
56862
56863         * lib/openat.h (rpl_fstatat): New macro, if
56864         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
56865         (fstatat): Define to rpl_fstatat under the same conditions,
56866         unless COMPILING_FSTATAT.
56867         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
56868         seems to have the bug.
56869         * lib/fstatat.c: New file.
56870         * modules/openat (Files): Add it.
56871
56872 2006-11-20  Bruno Haible  <bruno@clisp.org>
56873
56874         * Makefile: New file.
56875
56876 2006-11-20  Jim Meyering  <jim@meyering.net>
56877
56878         The beginnings of syntax-related checks for gnulib.
56879         * lib/Makefile: New file.
56880         * lib/t-idcache: New script.  Ensure that the two halves of
56881         idcache.c stay in sync.
56882
56883         * lib/idcache.c: Adjust comments in user- and group- portions to
56884         be more accurate, and to be consistent with one another.
56885
56886 2006-11-20  Jim Meyering  <jim@meyering.net>
56887
56888         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
56889         continue using the flexible array member (thus, this module performs
56890         half as many malloc calls), with the addition that...
56891         (getgroup, getuser): Consistently record a non-match via an empty
56892         "name" string, and map an empty string match to a NULL return value.
56893         * modules/idcache (Depends-on): Re-add flexmember.
56894
56895         * lib/idcache.c (getuser): Remove all uses of the register keyword.
56896         (getuidbyname, getgroup, getgidbyname): Likewise.
56897
56898         Use cleaner syntax: NULL rather than 0.
56899         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
56900
56901 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
56902
56903         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
56904         It mishandled the case where the group was missing.
56905         Problem reported by Greg Schafer.
56906         * modules/idcache: Likewise.
56907
56908 2006-11-18  Jim Meyering  <jim@meyering.net>
56909
56910         * check-module (%exempt_header): Add exception for some
56911         conditionally-included headers.
56912
56913         * modules/i-ring (Depends-on): Add verify.
56914         (License): Change to LGPL.
56915
56916 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
56917
56918         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
56919         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
56920         and inttostr.h.  Use snprintf rather than uinttostr, so that
56921         LGPLed code doesn't depend on GPLed.
56922
56923 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
56924
56925         * modules/inline (License): Change from GPL to LGPL.
56926
56927 2006-11-17  Jim Meyering  <jim@meyering.net>
56928
56929         * modules/d-type (License): Switch to LGPL.
56930
56931 2006-11-15  Bruno Haible  <bruno@clisp.org>
56932
56933         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
56934
56935 2006-11-15  Eric Blake  <ebb9@byu.net>
56936
56937         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
56938         the module dependency.
56939
56940 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56941             Bruno Haible  <bruno@clisp.org>
56942
56943         * gnulib-tool (func_create_testdir): Add license consistency check.
56944
56945 2006-11-15  Eric Blake  <ebb9@byu.net>
56946
56947         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
56948         random "(cached)" in configure output.
56949
56950 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56951
56952         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
56953         test for conforming inttypes.h is both announced and cached.
56954
56955         * MODULES.html.sh (seen_modules, seen_files): New variables.
56956         (func_module): Rewrite to use a few less gnulib-tool and sed
56957         invocations.  Avoid a couple of quadratic algorithms for ...
56958         (missed_modules, missed_files): ... these, with ...
56959         (func_append, func_tmpdir): ... these new functions, from
56960         gnulib-tool.  Analogously, install traps for cleanup.
56961
56962         * tests/test-gc.c (main): Remove unused variables.
56963         * tests/test-read-file.c: Include stdlib.h, for 'free'.
56964
56965 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
56966
56967         * modules/inttostr (License): Change to LGPL.
56968
56969 2006-11-14  Eric Blake  <ebb9@byu.net>
56970
56971         * modules/tempname (License): Change to LGPL.
56972
56973 2006-11-14  Eric Blake  <ebb9@byu.net>
56974
56975         * doc/functions.texi (Function Portability): *printf functions on
56976         Cygwin now understand all POSIX size specifiers.
56977
56978 2006-11-14  Bruno Haible  <bruno@clisp.org>
56979
56980         * modules/c-ctype (License): Change to LGPL.
56981
56982 2006-11-12  Bruno Haible  <bruno@clisp.org>
56983
56984         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56985         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
56986         for GNOME libraries, for which the include files are installed in
56987         subdirectories of $prefix/include.
56988
56989 2006-11-12  Bruno Haible  <bruno@clisp.org>
56990
56991         * m4/lib-link.m4: Require at least autoconf-2.54.
56992         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
56993         name to underscores for the --with option.
56994
56995 2006-11-13  Bruno Haible  <bruno@clisp.org>
56996
56997         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
56998         the tests directory.
56999         Reported by Ralf Wildenhues.
57000
57001 2006-11-13  Bruno Haible  <bruno@clisp.org>
57002
57003         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
57004         (func_emit_initmacro_end): Undo the override here.
57005         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
57006         Works around the famous automake error in coreutils.
57007
57008 2006-11-13  Eric Blake  <ebb9@byu.net>
57009
57010         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
57011         element, not its node.
57012
57013 2006-11-12  Bruno Haible  <bruno@clisp.org>
57014
57015         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
57016         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
57017
57018 2006-11-12  Bruno Haible  <bruno@clisp.org>
57019
57020         * gnulib-tool: New option --local-symlink.
57021         (func_usage): Document it.
57022         (lsymbolic): New variable.
57023         (func_import, func_create_testdir): If --symlink was not specified,
57024         test whether --local-symlink was specified and the file comes from
57025         the local_gnulib_dir.
57026
57027 2006-11-12  Bruno Haible  <bruno@clisp.org>
57028
57029         * gnulib-tool (func_ln): New function.
57030         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
57031
57032 2006-11-12  Bruno Haible  <bruno@clisp.org>
57033
57034         Finish support for source files in subdirectories.
57035         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
57036         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
57037         AUTOMAKE_OPTIONS.
57038         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
57039
57040 2006-11-12  Bruno Haible  <bruno@clisp.org>
57041
57042         * gnulib-tool (func_get_automake_snippet): Synthesize also an
57043         EXTRA_lib_SOURCES augmentation.
57044         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
57045
57046 2006-11-12  Jim Meyering  <jim@meyering.net>
57047
57048         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
57049         file descriptors.  This also averts a failure on systems with
57050         native openat support when a traversed directory lacks "x" access.
57051         * lib/fts_.h: Include "i-ring.h"
57052         (struct FTS) [fts_fd_ring]: New member.
57053         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
57054         (FCHDIR): Add parentheses.
57055         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
57056         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
57057         When descending, rather than simply closing the previous
57058         fts_cwd_fd value, push that file descriptor onto the ring.
57059         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
57060         (fts_open): Initialize the new fd_ring member.
57061         (fts_close): Clear the ring.
57062         (fts_safe_changedir): When possible, use our new fd_ring to skip
57063         the diropen and fstat and dev/ino comparison that would normally
57064         accompany a virtual `chdir ("..")'.
57065
57066         * modules/fts (Depends-on): Add i-ring.
57067         * modules/i-ring: New module.
57068         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
57069         * m4/i-ring.m4: New file.
57070
57071 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57072
57073         * gnulib-tool (func_create_testdir): Fix replacement of
57074         `build-aux' in configure.ac.  Run autotools in gltests
57075         subdirectory.
57076         (func_create_testdir, func_create_megatestdir, test): There is
57077         no need for '--force' in most autotool invocations in a new
57078         tree.  Actually fail the whole test if any of the tools, or the
57079         configure or make stages fail.
57080
57081         Sync from Automake.
57082         * build-aux/gnupload: Revert last change.  Add pointer to upload
57083         instructions of the GNU Maintenance Instructions.
57084         Suggestion by Karl Berry.
57085
57086 2006-11-10  Jim Meyering  <jim@meyering.net>
57087
57088         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
57089
57090 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57091
57092         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
57093         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
57094         (bind_textdomain_codeset) [! ENABLE_NLS]:
57095         Evaluate all the arguments.  That way, callers get compatible behavior
57096         if the arguments have side effects.  Also, it avoids some GCC
57097         diagnostics in some cases; Joel E. Denny reported problems when Bison
57098         was configured with --enable-gcc-warnigs.
57099
57100 2006-11-10  Jim Meyering  <jim@meyering.net>
57101
57102         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
57103         relevant options in CFLAGS (like -O, -fno-inline) are taken into
57104         account.
57105
57106 2006-11-10  Jim Meyering  <jim@meyering.net>
57107
57108         * modules/inline: New file/module.
57109         * modules/xalloc (Files): Remove m4/inline.m4.
57110         (Depends-on): Add inline, instead.
57111         * modules/oset: Likewise.
57112         * modules/list: Likewise.
57113
57114 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
57115
57116         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
57117         Problem reported by Matthew Woehlke.
57118
57119 2006-11-09  Bruno Haible  <bruno@clisp.org>
57120
57121         * lib/tempname.c (gen_tempname): Remove variant that invokes
57122         __gen_tempname.
57123         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
57124         __gen_tempname.
57125
57126 2006-11-08  Bruno Haible  <bruno@clisp.org>
57127
57128         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
57129         to 'yes' instead of 'cross-compiling'.
57130
57131 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
57132
57133         * lib/quotearg.h (quotearg_free): New decl.
57134         * lib/quotearg.c (quotearg_free): New function.
57135         (slot0, nslots, slotvec0, slotvec):
57136         Now file-scope so that quotearg_free can get at them.
57137
57138 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57139
57140         Sync from Automake.
57141         * build-aux/gnupload: Add missing 'gnu' to example URL.
57142         Report by Karl Berry.
57143
57144 2006-11-08  Bruno Haible  <bruno@clisp.org>
57145
57146         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
57147         Suggested by Paul Eggert.
57148
57149 2006-11-08  Jim Meyering  <jim@meyering.net>
57150
57151         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
57152         It's already included if !_LIBC.
57153         (fts_safe_changedir): Add a comment.
57154
57155 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57156
57157         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
57158         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
57159         Matthew Woehlke.
57160
57161         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
57162         definitions up, to avoid colliding with change below.
57163         (static_inline) [HAVE_INLINE]: New macro.
57164         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
57165         Provide extern decls when !HAVE_INLINE.  Do not define unless
57166         static_inline is defined, either by us or by xmalloc.c.  Use
57167         static_inline rather than static inline.
57168         (XCALLOC): Optimize sizeof(T) = 1 case.
57169         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
57170
57171 2006-11-07  Bruno Haible  <bruno@clisp.org>
57172
57173         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
57174         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
57175         AC_C_INLINE.
57176         * modules/xalloc (Files): Add m4/inline.m4.
57177
57178 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57179
57180         * README: Fix typo.
57181         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
57182         (Miscellanous Notes): ...from this.
57183
57184 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
57185
57186         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
57187         Mention that offsetof should be used instead of sizeof.
57188         From Bruno Haible.
57189
57190 2006-11-07  Bruno Haible  <bruno@clisp.org>
57191
57192         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
57193
57194 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57195
57196         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57197         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
57198         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57199         (gl_tree_add_before, gl_tree_add_after):
57200         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
57201         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
57202         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57203         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
57204         (gl_linked_add_after, gl_linked_add_at): Likewise.
57205         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
57206         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
57207         (gl_tree_add_before, gl_tree_add_after): Likewise.
57208         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
57209         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
57210         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
57211
57212 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57213
57214         * lib/gl_oset.h: Use C comment style, not C++ comment style.
57215
57216 2006-11-06  Bruno Haible  <bruno@clisp.org>
57217
57218         * m4/inline.m4: New file.
57219         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
57220         * modules/list (Files): Add m4/inline.m4.
57221         * modules/oset (Files): Likewise.
57222
57223 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
57224
57225         * lib/idcache.c: Include <stddef.h>, for offsetof.
57226         (struct userid.name): Change from char * to a flexible array member.
57227         All uses changed.
57228         * modules/idcache (Depends-on): Add flexmember.
57229
57230         * MODULES.html.sh (Core language properties): New module flexmember.
57231         * modules/flexmember, m4/flexmember.m4: New files.
57232
57233         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
57234         inline functions that are identical with the old xnmalloc_inline,
57235         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
57236         that we can avoid some unnecessary integer multiplications and
57237         divisions in the common case where the element size is known at
57238         compile time.
57239         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
57240         needed.
57241         (xnboundedmalloc): Remove.
57242         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
57243         arguments, for consistency with rest of this header.
57244         (xcharalloc): Rewrite using XNMALLOC.
57245         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
57246         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
57247         versions have been moved to lib/xalloc.h and renamed to be the
57248         non-*_inline versions.
57249         (xmalloc, xrealloc): Implement without reference to the xnmalloc
57250         and xnrealloc functions, since those functions are now inline and
57251         now call us.
57252         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
57253         renaming described above.
57254         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
57255         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
57256         captures the dependency in AC_C_INLINE.
57257
57258         New module canonicalize-lgpl, proposed by Charles Wilson in
57259         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
57260         with a few small changes afterwards.
57261         * MODULES.html.sh (File system functions): New module
57262         canonicalize-lgpl.
57263         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
57264         and canonicalize_file_name.
57265         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
57266         * modules/canonicalize-lgpl: New files.
57267
57268 2006-11-05  Bruno Haible  <bruno@clisp.org>
57269
57270         * gnulib-tool (func_import, func_create_testdir): Create directories
57271         also for files in subdirectories of lib/.
57272
57273 2006-11-05  Bruno Haible  <bruno@clisp.org>
57274
57275         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
57276         ANSI C compliant.
57277
57278 2006-11-03  Bruno Haible  <bruno@clisp.org>
57279
57280         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
57281         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
57282         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
57283         (xnboundedmalloc): New inline function.
57284         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
57285         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
57286         xmalloc.
57287         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
57288         xmalloc.
57289         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
57290         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
57291         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
57292         xmalloc.
57293         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57294         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
57295         xmalloc.
57296         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
57297         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57298         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
57299         xmalloc.
57300         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
57301         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
57302         gl_tree_add_after): Use XMALLOC instead of xmalloc.
57303         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
57304         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
57305         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
57306         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
57307
57308 2006-11-03  Bruno Haible  <bruno@clisp.org>
57309
57310         * lib/c-ctype.h [C++]: Define functions without name mangling.
57311         * lib/fwriteerror.h [C++]: Likewise.
57312         * lib/gcd.h [C++]: Likewise.
57313         * lib/linebreak.h [C++]: Likewise.
57314
57315 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
57316
57317         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
57318         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
57319         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
57320         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
57321         Check for functions and headers just once.
57322         Check for declaration of canonicalize_file_name.
57323         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
57324
57325 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57326
57327         * gnulib-tool (func_import): Fix typo in actioncmd.
57328
57329 2006-11-02  Bruno Haible  <bruno@clisp.org>
57330
57331         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
57332         newline sequence in the Makefile.am snippet as a space, like "make"
57333         does.
57334         Reported by Roger Persson <perrog@gmail.com>.
57335
57336 2006-11-01  Bruno Haible  <bruno@clisp.org>
57337
57338         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
57339         already declared in <string.h>.
57340         * lib/strcase.h (strncasecmp): Don't declare it if yes.
57341
57342 2006-11-01  Bruno Haible  <bruno@clisp.org>
57343
57344         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
57345         * lib/strcase.h: Include <string.h>.
57346         (strcasecmp): Define to rpl_strcasecmp here.
57347
57348 2006-11-01  Bruno Haible  <bruno@clisp.org>
57349
57350         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
57351
57352 2006-11-01  Eric Blake  <ebb9@byu.net>
57353
57354         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
57355
57356         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
57357
57358 2006-10-29  Bruno Haible  <bruno@clisp.org>
57359
57360         Make it compile in C++ mode.
57361         * lib/full-write.c (full_rw): Add a cast.
57362
57363 2006-11-01  Bruno Haible  <bruno@clisp.org>
57364
57365         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
57366         be POSIX compliant.
57367         Reported by Roger Persson <perrog@gmail.com>.
57368
57369 2006-11-01  Eric Blake  <ebb9@byu.net>
57370
57371         * lib/getopt_.h: Fix comments.
57372
57373 2006-10-31  Eric Blake  <ebb9@byu.net>
57374
57375         * modules/tmpdir (Depends-on): Add sys_stat.
57376         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
57377         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
57378         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
57379         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
57380         tempname.
57381
57382 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
57383
57384         Avoid some C++ diagnostics reported by Bruno Haible.
57385         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
57386         xmalloc.
57387         (quotearg_alloc): Use xcharalloc rather than xmalloc.
57388         (struct slotvec): Move to top level.
57389         (quotearg_n_options): Rewrite to avoid xmalloc.
57390         * lib/xalloc.h (xcharalloc): New function.
57391         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
57392         [defined __cplusplus]: Add function template that provides result
57393         type propagation.  This part of the change is from Bruno Haible.
57394
57395 2006-10-29  Bruno Haible  <bruno@clisp.org>
57396
57397         Make it compile in C++ mode.
57398         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
57399         * lib/strnlen1.c (strnlen1): Cast memchr result.
57400         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
57401         * lib/clean-temp.c (string_equals, string_hash): Add casts.
57402         (create_temp_dir): Rename local variable 'template'.
57403         (compile_csharp_using_sscli): Add cast.
57404         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
57405         * lib/findprog.c (find_in_path): Likewise.
57406         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
57407         * lib/wait-process.c (register_slave_subprocess): Likewise.
57408
57409 2006-10-22  Bruno Haible  <bruno@clisp.org>
57410
57411         * modules/tsearch: New file.
57412         * lib/tsearch.h: New file.
57413         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
57414         * m4/tsearch.m4: New file.
57415         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
57416
57417 2006-10-29  Eric Blake  <ebb9@byu.net>
57418
57419         * lib/arcfour.c: Assume config.h.
57420         * lib/arctwo.c: Likewise.
57421         * lib/base64.c: Likewise.
57422         * lib/check-version.c: Likewise.
57423         * lib/crc.c: Likewise.
57424         * lib/des.c: Likewise.
57425         * lib/gc-gnulib.c: Likewise.
57426         * lib/gc-libgcrypt.c: Likewise.
57427         * lib/gc-pbkdf2-sha1.c: Likewise.
57428         * lib/getaddrinfo.c: Likewise.
57429         * lib/getdelim.c: Likewise.
57430         * lib/getline.c: Likewise.
57431         * lib/hmac-md5.c: Likewise.
57432         * lib/hmac-sha1.c: Likewise.
57433         * lib/iconvme.c: Likewise.
57434         * lib/md2.c: Likewise.
57435         * lib/md4.c: Likewise.
57436         * lib/memxor.c: Likewise.
57437         * lib/read-file.c: Likewise.
57438         * lib/readline.c: Likewise.
57439         * lib/rijndael-alg-fst.c: Likewise.
57440         * lib/rijndael-api-fst.c: Likewise.
57441         * lib/xgetdomainname.c: Likewise.
57442
57443 2006-10-28  Eric Blake  <ebb9@byu.net>
57444
57445         * lib/xstrndup.c: Assume config.h.
57446
57447 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
57448
57449         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
57450         stat-macros.h is now for our own macros, whereas stat_h is for
57451         macros in the <sys/stat.h> name space.
57452         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
57453         (STAT_MACROS_H): Remove.
57454         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
57455         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
57456         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
57457         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
57458         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
57459         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
57460         Move these macros to ...
57461         * lib/stat_.h: here.  Don't include stat-macros.h.
57462         * lib/canonicalize.c: Don't include stat-macros.h.
57463         * lib/chown.c: Likewise.
57464         * lib/euidaccess.c: Likewise.
57465         * lib/file-type.c: Likewise.
57466         * lib/filemode.c: Likewise.
57467         * lib/glob.c: Likewise.
57468         * lib/isapipe.c: Likewise.
57469         * lib/lchown.c: Likewise.
57470         * lib/lstat.c: Likewise.
57471         * lib/mkdir-p.c: Likewise.
57472         * lib/rmdir.c: Likewise.
57473         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
57474         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
57475         unless mkdir isn't declared, to speed up 'configure'.
57476         Always create sys/stat.h, since it's unlikely any real sys/stat.h
57477         would define all the S_* symbols.
57478         * modules/canonicalize (Depends-on):
57479         Depend on sys_stat, not stat-macros.
57480         * modules/chown: Likewise.
57481         * modules/euidaccess: Likewise.
57482         * modules/filemode: Likewise.
57483         * modules/file-type: Likewise.
57484         * modules/glob: Likewise.
57485         * modules/isapipe: Likewise.
57486         * modules/lchown: Likewise.
57487         * modules/lstat: Likewise.
57488         * modules/mkancesdirs: Likewise.
57489         * modules/rmdir: Likewise.
57490         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
57491         * modules/modechange: Likewise.
57492         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
57493         (configure.ac): Remove gl_STAT_MACROS.
57494         * modules/sys_stat (Depends-on): Remove stat-macros.
57495
57496 2006-10-27  Bruno Haible  <bruno@clisp.org>
57497
57498         * m4/signed.m4: Remove file.
57499         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
57500         invocation.
57501         * modules/vasnprintf (Files): Remove m4/signed.m4.
57502
57503 2006-10-27  Bruno Haible  <bruno@clisp.org>
57504
57505         Update to GNU gettext 0.16.
57506         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
57507         m4/inttypes-h.m4, m4/signed.m4.
57508         * m4/gettext.m4: Update to GNU gettext 0.16.
57509         * m4/intl.m4: New file, from GNU gettext.
57510         * m4/intldir.m4: New file, from GNU gettext.
57511         * config/srclist.txt: Update
57512
57513 2006-10-27  Eric Blake  <ebb9@byu.net>
57514
57515         * MODULES.html.sh: Document tempname.
57516         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
57517         dependencies.
57518         (Files): Move lib/tempname.c...
57519         * modules/tempname: ...to this new module.
57520         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
57521         (gl_PREREQ_TEMPNAME): Move...
57522         * m4/tempname.m4: ...to this new file.
57523         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
57524         * modules/sys_stat (Depends-on): Add stat-macros.
57525         * lib/stat_.h (includes): Pick up stat macros.
57526         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
57527         if stat macros are broken.
57528         * lib/tempname.c (includes): No need to include "stat-macros.h".
57529         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
57530         (direxists, __path_search) [!_LIBC]: Don't compile these in
57531         gnulib; the tmpdir module covers that.
57532         * lib/tempname.h: New file.
57533
57534 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
57535
57536         * COPYING: Explain how gnulib-tool converts licence headers.
57537         Almost all wording by Eric Blake.
57538
57539 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
57540
57541         * lib/mbchar.h (is_basic_table): Make read-only.
57542         * lib/mbchar.c (is_basic_table): Likewise.
57543         Reported by John Darrington.
57544
57545 2006-10-25  Bruno Haible  <bruno@clisp.org>
57546
57547         * lib/progname.h (set_program_name): Undefine before defining.
57548
57549 2006-10-25  Bruno Haible  <bruno@clisp.org>
57550
57551         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
57552         false for non-gcc C++ compilers.
57553         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57554
57555 2006-10-24  Bruno Haible  <bruno@clisp.org>
57556
57557         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
57558         iconv implementations like Irix iconv.
57559
57560 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57561
57562         * modules/vararrays: New file.
57563         * m4/vararrays.m4: New file, taken from diffutils.
57564         * MODULES.html.sh: New module vararrays.
57565
57566 2006-10-24  Karl Berry  <karl@gnu.org>
57567
57568         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
57569         Don't call GNU Unix.
57570
57571 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57572
57573         * users.txt: Add Libtool.
57574
57575         Sync from Libtool:
57576
57577         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57578
57579         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
57580         to gnulib's policy of including config.h unconditionally.
57581
57582 2006-10-24  Bruno Haible  <bruno@clisp.org>
57583
57584         * modules/wcwidth (Files): Add m4/wint_t.m4.
57585         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
57586         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
57587
57588 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
57589
57590         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
57591         to pacify GCC with some -W flags enabled.  Problem reported by
57592         Bruno Haible.
57593
57594 2006-10-24  Jim Meyering  <jim@meyering.net>
57595
57596         * MODULES.html.sh: Remove uinttostr.  It's not a module.
57597         Reported by Karl Berry.
57598
57599 2006-10-23  Bruno Haible  <bruno@clisp.org>
57600
57601         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
57602
57603 2006-10-24  Bruno Haible  <bruno@clisp.org>
57604
57605         * lib/gl_list.h: Use C comment style, not C++ comment style.
57606
57607 2006-10-23  Eric Blake  <ebb9@byu.net>
57608
57609         * lib/getaddrinfo.c (includes): Add missing include.
57610
57611 2006-10-23  Bruno Haible  <bruno@clisp.org>
57612             Paul Eggert  <eggert@cs.ucla.edu>
57613
57614         Ability to rename obstack_free.
57615         * lib/obstack.h (__obstack_free): New macro. Declare instead of
57616         obstack_free.
57617         (obstack_free): Invoke the __obstack_free macro.
57618         * lib/obstack.c (obstack_free): Use __obstack_free macro.
57619
57620 2006-10-23  Bruno Haible  <bruno@clisp.org>
57621             Paul Eggert  <eggert@cs.ucla.edu>
57622
57623         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
57624         __argc, __argv from the declaration. (They are defined as macros on
57625         mingw.)
57626
57627 2006-10-22  Bruno Haible  <bruno@clisp.org>
57628
57629         * doc/gnulib-intro.texi: New file.
57630         * doc/gnulib.texi: Include it.
57631
57632 2006-10-21  Bruno Haible  <bruno@clisp.org>
57633
57634         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
57635         "Introduction", "Miscellanous Notes", "Particular Modules".
57636
57637 2006-10-21  Bruno Haible  <bruno@clisp.org>
57638
57639         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
57640         Change mostlyclean-local rule to avoid sh syntax error from bash
57641         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
57642
57643 2006-10-23  Jim Meyering  <jim@meyering.net>
57644
57645         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
57646         in place of snprintf.
57647
57648         * modules/inttostr (Files): Add lib/uinttostr.c.
57649         * lib/uinttostr.c (inttostr): New file/function.
57650         * lib/inttostr.h (uinttostr): Declare.
57651         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
57652         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
57653         Add uinttostr.
57654         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
57655
57656 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57657
57658         * lib/canonicalize.c (ELOOP): Define if not already defined.
57659         Problem reported by Bruno Haible in
57660         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
57661
57662 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
57663
57664         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
57665         Problem reported by Perry Smith and Ville Laurikari.
57666
57667         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
57668         uses.
57669
57670 2006-10-19  Bruno Haible  <bruno@clisp.org>
57671
57672         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
57673         for mingw.
57674
57675 2006-10-19  Bruno Haible  <bruno@clisp.org>
57676
57677         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
57678         Needed for mingw.
57679
57680 2006-10-19  Bruno Haible  <bruno@clisp.org>
57681
57682         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
57683
57684 2006-10-19  Bruno Haible  <bruno@clisp.org>
57685
57686         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
57687         it.
57688
57689 2006-10-19  Bruno Haible  <bruno@clisp.org>
57690
57691         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
57692         invocation.
57693
57694 2006-10-19  Bruno Haible  <bruno@clisp.org>
57695
57696         * gnulib-tool (func_create_testdir): Don't include ftruncate and
57697         mountlist by default.
57698
57699 2006-10-16  Bruno Haible  <bruno@clisp.org>
57700
57701         * lib/c-strstr.c: Include c-strstr.h.
57702
57703 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
57704
57705         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
57706         in a slash.
57707
57708 2006-10-18  Bruno Haible  <bruno@clisp.org>
57709
57710         * lib/lock.h [C++]: Wrap definitions in extern "C".
57711
57712 2006-10-18  Bruno Haible  <bruno@clisp.org>
57713
57714         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
57715         gl_LIBOBJS list.
57716
57717 2006-10-18  Bruno Haible  <bruno@clisp.org>
57718
57719         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
57720
57721 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
57722
57723         * lib/xstrtol.h: Include gettext.h.
57724         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
57725         Problem reported by Eric Blake.
57726         * modules/xstrtol (Depends-on): Add gettext-h.
57727
57728 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
57729
57730         * lib/strftime.c (advance): New macro.
57731         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
57732         incomplete type, so you can't add 0 to it.  Problem and patch
57733         reported by Eelco Dolstra for dietlibc.
57734
57735 2006-10-18  Jim Meyering  <jim@meyering.net>
57736
57737         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
57738         type for a local, and rename it: s/up/user_proc/.
57739
57740 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
57741
57742         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
57743         READ_UTMP_USER_PROCESS.
57744         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
57745
57746 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57747
57748         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
57749         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
57750
57751 2006-10-17  Eric Blake  <ebb9@byu.net>
57752
57753         * lib/sigprocmask.c (sigprocmask): Fix typo.
57754
57755         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
57756
57757         * modules/clean-temp (Makefile.am): Don't add to make output...
57758         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
57759         config.h.
57760
57761 2006-10-17  Bruno Haible  <bruno@clisp.org>
57762
57763         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
57764         differently if DEFAULT_TEXT_DOMAIN is set.
57765
57766 2006-10-16  Bruno Haible  <bruno@clisp.org>
57767
57768         * lib/clean-temp.c: Include fwriteerror.h.
57769
57770 2006-10-16  Bruno Haible  <bruno@clisp.org>
57771
57772         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
57773
57774 2006-10-16  Bruno Haible  <bruno@clisp.org>
57775
57776         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
57777         * lib/sigprocmask.h: Include <sys/types.h>.
57778         (sigset_t): Use the system's definition if present.
57779
57780 2006-10-17  Eric Blake  <ebb9@byu.net>
57781
57782         * lib/xvasprintf.c (includes): Assume config.h.
57783         * lib/xasprintf.c (includes): Likewise.
57784
57785 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57786
57787         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
57788         at least as wide as intmax_t.
57789
57790 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
57791
57792         (Imported from Automake.)
57793         * build-aux/gnupload: Update to version 1.1 of directive file.
57794
57795 2006-10-16  Eric Blake  <ebb9@byu.net>
57796
57797         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
57798         match Automake 1.10a.
57799
57800 2006-10-14  Bruno Haible  <bruno@clisp.org>
57801
57802         * modules/sigprocmask: New file.
57803         * lib/sigprocmask.h: New file.
57804         * lib/sigprocmask.c: New file.
57805         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
57806         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
57807         request sigprocmask.o.
57808         (gl_PREREQ_SIGPROCMASK): New macro.
57809         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
57810         (Depends-on): Add sigprocmask.
57811         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
57812         gt_SIGNALBLOCKING. Test for 'raise' only once.
57813         * lib/fatal-signal.c: Include sigprocmask.h.
57814         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
57815         unblock_fatal_signals): Define always.
57816         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57817         sigprocmask.
57818
57819 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
57820
57821         Sync from Automake.
57822         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
57823         which incorrectly sets the mode of an existing destination
57824         directory.  In some cases the unpatched install-sh could do the
57825         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
57826         system.  We hope this is rare in practice, but it's clearly worth
57827         fixing.  Problem reported by Alex Unleashed in
57828         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
57829         Also, don't bother to check for -m bugs unless we're using -m;
57830         suggested by Stepan Kasal.
57831
57832 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57833
57834         Sync from Automake.
57835         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
57836         `-c' flag, so they appear at the same position as in %FASTDEP%
57837         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
57838         which ignores unknown options only after the first non-option.
57839         Bug report against M4 by Nelson H. F. Beebe.
57840
57841 2006-10-13  Jim Meyering  <jim@meyering.net>
57842
57843         Fix a bug in yesterday's change.
57844         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
57845         p->fts_statp->st_dev would be used uninitialized.
57846         Ensures that we always call fts_stat on the very first entry.
57847         Miklos Szeredi reported that find -xdev stopped working.
57848
57849 2006-10-12  Bruno Haible  <bruno@clisp.org>
57850
57851         * gnulib-tool (func_get_automake_snippet): Append an automatically
57852         computed EXTRA_DIST augmentation.
57853         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
57854         * modules/alloca-opt (Makefile.am): Likewise.
57855         * modules/allocsa (Makefile.am): Likewise.
57856         * modules/arcfour (Makefile.am): Likewise.
57857         * modules/arctwo (Makefile.am): Likewise.
57858         * modules/argmatch (Makefile.am): Likewise.
57859         * modules/argz (Makefile.am): Likewise.
57860         * modules/atexit (Makefile.am): Likewise.
57861         * modules/backupfile (Makefile.am): Likewise.
57862         * modules/byteswap (Makefile.am): Likewise.
57863         * modules/c-strtod (Makefile.am): Likewise.
57864         * modules/c-strtold (Makefile.am): Likewise.
57865         * modules/calloc (Makefile.am): Likewise.
57866         * modules/canon-host (Makefile.am): Likewise.
57867         * modules/canonicalize (Makefile.am): Likewise.
57868         * modules/chdir-long (Makefile.am): Likewise.
57869         * modules/chdir-safer (Makefile.am): Likewise.
57870         * modules/check-version (Makefile.am): Likewise.
57871         * modules/chown (Makefile.am): Likewise.
57872         * modules/cloexec (Makefile.am): Likewise.
57873         * modules/close-stream (Makefile.am): Likewise.
57874         * modules/closeout (Makefile.am): Likewise.
57875         * modules/crc (Makefile.am): Likewise.
57876         * modules/csharpexec (Makefile.am): Likewise.
57877         * modules/cycle-check (Makefile.am): Likewise.
57878         * modules/des (Makefile.am): Likewise.
57879         * modules/dev-ino (Makefile.am): Likewise.
57880         * modules/dirfd (Makefile.am): Likewise.
57881         * modules/dirname (Makefile.am): Likewise.
57882         * modules/dup2 (Makefile.am): Likewise.
57883         * modules/eealloc (Makefile.am): Likewise.
57884         * modules/error (Makefile.am): Likewise.
57885         * modules/euidaccess (Makefile.am): Likewise.
57886         * modules/exclude (Makefile.am): Likewise.
57887         * modules/exitfail (Makefile.am): Likewise.
57888         * modules/fcntl-safer (Makefile.am): Likewise.
57889         * modules/fcntl (Makefile.am): Likewise.
57890         * modules/file-type (Makefile.am): Likewise.
57891         * modules/fileblocks (Makefile.am): Likewise.
57892         * modules/filemode (Makefile.am): Likewise.
57893         * modules/filenamecat (Makefile.am): Likewise.
57894         * modules/fnmatch (Makefile.am): Likewise.
57895         * modules/fopen-safer (Makefile.am): Likewise.
57896         * modules/fpending (Makefile.am): Likewise.
57897         * modules/fprintftime (Makefile.am): Likewise.
57898         * modules/free (Makefile.am): Likewise.
57899         * modules/fsusage (Makefile.am): Likewise.
57900         * modules/ftruncate (Makefile.am): Likewise.
57901         * modules/fts (Makefile.am): Likewise.
57902         * modules/gc-arcfour (Makefile.am): Likewise.
57903         * modules/gc-des (Makefile.am): Likewise.
57904         * modules/gc-hmac-md5 (Makefile.am): Likewise.
57905         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
57906         * modules/gc-md4 (Makefile.am): Likewise.
57907         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
57908         * modules/gc-sha1 (Makefile.am): Likewise.
57909         * modules/gc (Makefile.am): Likewise.
57910         * modules/getaddrinfo (Makefile.am): Likewise.
57911         * modules/getcwd (Makefile.am): Likewise.
57912         * modules/getdelim (Makefile.am): Likewise.
57913         * modules/getdomainname (Makefile.am): Likewise.
57914         * modules/getgroups (Makefile.am): Likewise.
57915         * modules/gethostname (Makefile.am): Likewise.
57916         * modules/gethrxtime (Makefile.am): Likewise.
57917         * modules/getline (Makefile.am): Likewise.
57918         * modules/getloadavg (Makefile.am): Likewise.
57919         * modules/getlogin_r (Makefile.am): Likewise.
57920         * modules/getndelim2 (Makefile.am): Likewise.
57921         * modules/getopt (Makefile.am): Likewise.
57922         * modules/getpagesize (Makefile.am): Likewise.
57923         * modules/getpass-gnu (Makefile.am): Likewise.
57924         * modules/getpass (Makefile.am): Likewise.
57925         * modules/getsubopt (Makefile.am): Likewise.
57926         * modules/gettime (Makefile.am): Likewise.
57927         * modules/gettimeofday (Makefile.am): Likewise.
57928         * modules/getugroups (Makefile.am): Likewise.
57929         * modules/getusershell (Makefile.am): Likewise.
57930         * modules/glob (Makefile.am): Likewise.
57931         * modules/group-member (Makefile.am): Likewise.
57932         * modules/hard-locale (Makefile.am): Likewise.
57933         * modules/hash (Makefile.am): Likewise.
57934         * modules/hmac-md5 (Makefile.am): Likewise.
57935         * modules/hmac-sha1 (Makefile.am): Likewise.
57936         * modules/human (Makefile.am): Likewise.
57937         * modules/idcache (Makefile.am): Likewise.
57938         * modules/imaxabs (Makefile.am): Likewise.
57939         * modules/imaxdiv (Makefile.am): Likewise.
57940         * modules/inet_ntop (Makefile.am): Likewise.
57941         * modules/inet_pton (Makefile.am): Likewise.
57942         * modules/intprops (Makefile.am): Likewise.
57943         * modules/inttostr (Makefile.am): Likewise.
57944         * modules/inttypes (Makefile.am): Likewise.
57945         * modules/isapipe (Makefile.am): Likewise.
57946         * modules/javaversion (Makefile.am): Likewise.
57947         * modules/lchmod (Makefile.am): Likewise.
57948         * modules/lchown (Makefile.am): Likewise.
57949         * modules/localcharset (Makefile.am): Likewise.
57950         * modules/long-options (Makefile.am): Likewise.
57951         * modules/lstat (Makefile.am): Likewise.
57952         * modules/malloc (Makefile.am): Likewise.
57953         * modules/mathl (Makefile.am): Likewise.
57954         * modules/mbchar (Makefile.am): Likewise.
57955         * modules/md2 (Makefile.am): Likewise.
57956         * modules/md4 (Makefile.am): Likewise.
57957         * modules/md5 (Makefile.am): Likewise.
57958         * modules/memcasecmp (Makefile.am): Likewise.
57959         * modules/memchr (Makefile.am): Likewise.
57960         * modules/memcmp (Makefile.am): Likewise.
57961         * modules/memcoll (Makefile.am): Likewise.
57962         * modules/memcpy (Makefile.am): Likewise.
57963         * modules/memmem (Makefile.am): Likewise.
57964         * modules/memmove (Makefile.am): Likewise.
57965         * modules/mempcpy (Makefile.am): Likewise.
57966         * modules/memrchr (Makefile.am): Likewise.
57967         * modules/memset (Makefile.am): Likewise.
57968         * modules/memxor (Makefile.am): Likewise.
57969         * modules/mkancesdirs (Makefile.am): Likewise.
57970         * modules/mkdir-p (Makefile.am): Likewise.
57971         * modules/mkdir (Makefile.am): Likewise.
57972         * modules/mkdtemp (Makefile.am): Likewise.
57973         * modules/mkstemp (Makefile.am): Likewise.
57974         * modules/mktime (Makefile.am): Likewise.
57975         * modules/modechange (Makefile.am): Likewise.
57976         * modules/mountlist (Makefile.am): Likewise.
57977         * modules/nanosleep (Makefile.am): Likewise.
57978         * modules/obstack (Makefile.am): Likewise.
57979         * modules/openat (Makefile.am): Likewise.
57980         * modules/pagealign_alloc (Makefile.am): Likewise.
57981         * modules/pathmax (Makefile.am): Likewise.
57982         * modules/physmem (Makefile.am): Likewise.
57983         * modules/poll (Makefile.am): Likewise.
57984         * modules/posixtm (Makefile.am): Likewise.
57985         * modules/posixver (Makefile.am): Likewise.
57986         * modules/putenv (Makefile.am): Likewise.
57987         * modules/quote (Makefile.am): Likewise.
57988         * modules/quotearg (Makefile.am): Likewise.
57989         * modules/raise (Makefile.am): Likewise.
57990         * modules/read-file (Makefile.am): Likewise.
57991         * modules/readline (Makefile.am): Likewise.
57992         * modules/readlink (Makefile.am): Likewise.
57993         * modules/readtokens (Makefile.am): Likewise.
57994         * modules/readutmp (Makefile.am): Likewise.
57995         * modules/realloc (Makefile.am): Likewise.
57996         * modules/regex (Makefile.am): Likewise.
57997         * modules/rename-dest-slash (Makefile.am): Likewise.
57998         * modules/rename (Makefile.am): Likewise.
57999         * modules/rijndael (Makefile.am): Likewise.
58000         * modules/rmdir (Makefile.am): Likewise.
58001         * modules/rpmatch (Makefile.am): Likewise.
58002         * modules/safe-read (Makefile.am): Likewise.
58003         * modules/safe-write (Makefile.am): Likewise.
58004         * modules/same-inode (Makefile.am): Likewise.
58005         * modules/same (Makefile.am): Likewise.
58006         * modules/save-cwd (Makefile.am): Likewise.
58007         * modules/savedir (Makefile.am): Likewise.
58008         * modules/setenv (Makefile.am): Likewise.
58009         * modules/settime (Makefile.am): Likewise.
58010         * modules/sha1 (Makefile.am): Likewise.
58011         * modules/sig2str (Makefile.am): Likewise.
58012         * modules/snprintf (Makefile.am): Likewise.
58013         * modules/stat-macros (Makefile.am): Likewise.
58014         * modules/stat-time (Makefile.am): Likewise.
58015         * modules/stdbool (Makefile.am): Likewise.
58016         * modules/stdint (Makefile.am): Likewise.
58017         * modules/stdlib-safer (Makefile.am): Likewise.
58018         * modules/stpcpy (Makefile.am): Likewise.
58019         * modules/stpncpy (Makefile.am): Likewise.
58020         * modules/strcase (Makefile.am): Likewise.
58021         * modules/strcasestr (Makefile.am): Likewise.
58022         * modules/strchrnul (Makefile.am): Likewise.
58023         * modules/strcspn (Makefile.am): Likewise.
58024         * modules/strdup (Makefile.am): Likewise.
58025         * modules/strerror (Makefile.am): Likewise.
58026         * modules/strftime (Makefile.am): Likewise.
58027         * modules/strndup (Makefile.am): Likewise.
58028         * modules/strnlen (Makefile.am): Likewise.
58029         * modules/strpbrk (Makefile.am): Likewise.
58030         * modules/strsep (Makefile.am): Likewise.
58031         * modules/strstr (Makefile.am): Likewise.
58032         * modules/strtod (Makefile.am): Likewise.
58033         * modules/strtoimax (Makefile.am): Likewise.
58034         * modules/strtok_r (Makefile.am): Likewise.
58035         * modules/strtol (Makefile.am): Likewise.
58036         * modules/strtoll (Makefile.am): Likewise.
58037         * modules/strtoul (Makefile.am): Likewise.
58038         * modules/strtoull (Makefile.am): Likewise.
58039         * modules/strtoumax (Makefile.am): Likewise.
58040         * modules/strverscmp (Makefile.am): Likewise.
58041         * modules/sys_socket (Makefile.am): Likewise.
58042         * modules/sys_stat (Makefile.am): Likewise.
58043         * modules/sysexits (Makefile.am): Likewise.
58044         * modules/time_r (Makefile.am): Likewise.
58045         * modules/timegm (Makefile.am): Likewise.
58046         * modules/timespec (Makefile.am): Likewise.
58047         * modules/tmpfile-safer (Makefile.am): Likewise.
58048         * modules/trim (Makefile.am): Likewise.
58049         * modules/unistd-safer (Makefile.am): Likewise.
58050         * modules/unlinkdir (Makefile.am): Likewise.
58051         * modules/unlocked-io (Makefile.am): Likewise.
58052         * modules/userspec (Makefile.am): Likewise.
58053         * modules/utime (Makefile.am): Likewise.
58054         * modules/utimecmp (Makefile.am): Likewise.
58055         * modules/utimens (Makefile.am): Likewise.
58056         * modules/vasnprintf (Makefile.am): Likewise.
58057         * modules/vasprintf (Makefile.am): Likewise.
58058         * modules/vsnprintf (Makefile.am): Likewise.
58059         * modules/xalloc (Makefile.am): Likewise.
58060         * modules/xgetcwd (Makefile.am): Likewise.
58061         * modules/xnanosleep (Makefile.am): Likewise.
58062         * modules/xreadlink (Makefile.am): Likewise.
58063         * modules/xstrtod (Makefile.am): Likewise.
58064         * modules/xstrtol (Makefile.am): Likewise.
58065         * modules/xstrtold (Makefile.am): Likewise.
58066         * modules/yesno (Makefile.am): Likewise.
58067         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
58068
58069 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58070
58071         * modules/error (Makefile.am): Distribute files through
58072         EXTRA_DIST, not lib_SOURCES.
58073
58074 2006-10-12  Eric Blake  <ebb9@byu.net>
58075
58076         * modules/error (Makefile.am): Distribute files in /lib.
58077         * modules/obstack (Makefile.am): Likewise.
58078
58079 2006-10-12  Bruno Haible  <bruno@clisp.org>
58080
58081         * modules/acl (Makefile.am): Distribute all files in lib/ through
58082         EXTRA_DIST.
58083         * modules/arcfour (Makefile.am): Likewise.
58084         * modules/arctwo (Makefile.am): Likewise.
58085         * modules/argmatch (Makefile.am): Likewise.
58086         * modules/argz (Makefile.am): Likewise.
58087         * modules/atexit (Makefile.am): Likewise.
58088         * modules/backupfile (Makefile.am): Likewise.
58089         * modules/c-strtod (Makefile.am): Likewise.
58090         * modules/c-strtold (Makefile.am): Likewise.
58091         * modules/calloc (Makefile.am): Likewise.
58092         * modules/canon-host (Makefile.am): Likewise.
58093         * modules/canonicalize (Makefile.am): Likewise.
58094         * modules/chdir-long (Makefile.am): Likewise.
58095         * modules/chdir-safer (Makefile.am): Likewise.
58096         * modules/check-version (Makefile.am): Likewise.
58097         * modules/chown (Makefile.am): Likewise.
58098         * modules/cloexec (Makefile.am): Likewise.
58099         * modules/close-stream (Makefile.am): Likewise.
58100         * modules/closeout (Makefile.am): Likewise.
58101         * modules/crc (Makefile.am): Likewise.
58102         * modules/cycle-check (Makefile.am): Likewise.
58103         * modules/des (Makefile.am): Likewise.
58104         * modules/dirfd (Makefile.am): Likewise.
58105         * modules/dirname (Makefile.am): Likewise.
58106         * modules/dup2 (Makefile.am): Likewise.
58107         * modules/euidaccess (Makefile.am): Likewise.
58108         * modules/exclude (Makefile.am): Likewise.
58109         * modules/exitfail (Makefile.am): Likewise.
58110         * modules/fcntl-safer (Makefile.am): Likewise.
58111         * modules/file-type (Makefile.am): Likewise.
58112         * modules/fileblocks (Makefile.am): Likewise.
58113         * modules/filemode (Makefile.am): Likewise.
58114         * modules/filenamecat (Makefile.am): Likewise.
58115         * modules/fnmatch (Makefile.am): Likewise.
58116         * modules/fopen-safer (Makefile.am): Likewise.
58117         * modules/fpending (Makefile.am): Likewise.
58118         * modules/fprintftime (Makefile.am): Likewise.
58119         * modules/free (Makefile.am): Likewise.
58120         * modules/fsusage (Makefile.am): Likewise.
58121         * modules/ftruncate (Makefile.am): Likewise.
58122         * modules/fts (Makefile.am): Likewise.
58123         * modules/gc (Makefile.am): Likewise.
58124         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
58125         * modules/getaddrinfo (Makefile.am): Likewise.
58126         * modules/getcwd (Makefile.am): Likewise.
58127         * modules/getdelim (Makefile.am): Likewise.
58128         * modules/getdomainname (Makefile.am): Likewise.
58129         * modules/getgroups (Makefile.am): Likewise.
58130         * modules/gethostname (Makefile.am): Likewise.
58131         * modules/gethrxtime (Makefile.am): Likewise.
58132         * modules/getline (Makefile.am): Likewise.
58133         * modules/getloadavg (Makefile.am): Likewise.
58134         * modules/getlogin_r (Makefile.am): Likewise.
58135         * modules/getopt (Makefile.am): Likewise.
58136         * modules/getpass (Makefile.am): Likewise.
58137         * modules/getpass-gnu (Makefile.am): Likewise.
58138         * modules/getsubopt (Makefile.am): Likewise.
58139         * modules/gettime (Makefile.am): Likewise.
58140         * modules/gettimeofday (Makefile.am): Likewise.
58141         * modules/getugroups (Makefile.am): Likewise.
58142         * modules/getusershell (Makefile.am): Likewise.
58143         * modules/glob (Makefile.am): Likewise.
58144         * modules/group-member (Makefile.am): Likewise.
58145         * modules/hard-locale (Makefile.am): Likewise.
58146         * modules/hash (Makefile.am): Likewise.
58147         * modules/hmac-md5 (Makefile.am): Likewise.
58148         * modules/hmac-sha1 (Makefile.am): Likewise.
58149         * modules/human (Makefile.am): Likewise.
58150         * modules/idcache (Makefile.am): Likewise.
58151         * modules/imaxabs (Makefile.am): Likewise.
58152         * modules/imaxdiv (Makefile.am): Likewise.
58153         * modules/inet_ntop (Makefile.am): Likewise.
58154         * modules/inet_pton (Makefile.am): Likewise.
58155         * modules/inttostr (Makefile.am): Likewise.
58156         * modules/isapipe (Makefile.am): Likewise.
58157         * modules/lchown (Makefile.am): Likewise.
58158         * modules/long-options (Makefile.am): Likewise.
58159         * modules/lstat (Makefile.am): Likewise.
58160         * modules/malloc (Makefile.am): Likewise.
58161         * modules/mathl (Makefile.am): Likewise.
58162         * modules/mbchar (Makefile.am): Likewise.
58163         * modules/md2 (Makefile.am): Likewise.
58164         * modules/md4 (Makefile.am): Likewise.
58165         * modules/md5 (Makefile.am): Likewise.
58166         * modules/memcasecmp (Makefile.am): Likewise.
58167         * modules/memchr (Makefile.am): Likewise.
58168         * modules/memcmp (Makefile.am): Likewise.
58169         * modules/memcoll (Makefile.am): Likewise.
58170         * modules/memcpy (Makefile.am): Likewise.
58171         * modules/memmem (Makefile.am): Likewise.
58172         * modules/memmove (Makefile.am): Likewise.
58173         * modules/mempcpy (Makefile.am): Likewise.
58174         * modules/memrchr (Makefile.am): Likewise.
58175         * modules/memset (Makefile.am): Likewise.
58176         * modules/memxor (Makefile.am): Likewise.
58177         * modules/mkancesdirs (Makefile.am): Likewise.
58178         * modules/mkdir (Makefile.am): Likewise.
58179         * modules/mkdir-p (Makefile.am): Likewise.
58180         * modules/mkdtemp (Makefile.am): Likewise.
58181         * modules/mkstemp (Makefile.am): Likewise.
58182         * modules/mktime (Makefile.am): Likewise.
58183         * modules/modechange (Makefile.am): Likewise.
58184         * modules/mountlist (Makefile.am): Likewise.
58185         * modules/nanosleep (Makefile.am): Likewise.
58186         * modules/openat (Makefile.am): Likewise.
58187         * modules/pagealign_alloc (Makefile.am): Likewise.
58188         * modules/physmem (Makefile.am): Likewise.
58189         * modules/poll (Makefile.am): Likewise.
58190         * modules/posixtm (Makefile.am): Likewise.
58191         * modules/posixver (Makefile.am): Likewise.
58192         * modules/putenv (Makefile.am): Likewise.
58193         * modules/quote (Makefile.am): Likewise.
58194         * modules/quotearg (Makefile.am): Likewise.
58195         * modules/raise (Makefile.am): Likewise.
58196         * modules/read-file (Makefile.am): Likewise.
58197         * modules/readline (Makefile.am): Likewise.
58198         * modules/readlink (Makefile.am): Likewise.
58199         * modules/readtokens (Makefile.am): Likewise.
58200         * modules/readutmp (Makefile.am): Likewise.
58201         * modules/realloc (Makefile.am): Likewise.
58202         * modules/regex (Makefile.am): Likewise.
58203         * modules/rename (Makefile.am): Likewise.
58204         * modules/rename-dest-slash (Makefile.am): Likewise.
58205         * modules/rijndael (Makefile.am): Likewise.
58206         * modules/rmdir (Makefile.am): Likewise.
58207         * modules/rpmatch (Makefile.am): Likewise.
58208         * modules/safe-read (Makefile.am): Likewise.
58209         * modules/safe-write (Makefile.am): Likewise.
58210         * modules/same (Makefile.am): Likewise.
58211         * modules/save-cwd (Makefile.am): Likewise.
58212         * modules/savedir (Makefile.am): Likewise.
58213         * modules/setenv (Makefile.am): Likewise.
58214         * modules/settime (Makefile.am): Likewise.
58215         * modules/sha1 (Makefile.am): Likewise.
58216         * modules/sig2str (Makefile.am): Likewise.
58217         * modules/snprintf (Makefile.am): Likewise.
58218         * modules/stdlib-safer (Makefile.am): Likewise.
58219         * modules/stpcpy (Makefile.am): Likewise.
58220         * modules/stpncpy (Makefile.am): Likewise.
58221         * modules/strcase (Makefile.am): Likewise.
58222         * modules/strcasestr (Makefile.am): Likewise.
58223         * modules/strchrnul (Makefile.am): Likewise.
58224         * modules/strcspn (Makefile.am): Likewise.
58225         * modules/strdup (Makefile.am): Likewise.
58226         * modules/strerror (Makefile.am): Likewise.
58227         * modules/strftime (Makefile.am): Likewise.
58228         * modules/strndup (Makefile.am): Likewise.
58229         * modules/strnlen (Makefile.am): Likewise.
58230         * modules/strpbrk (Makefile.am): Likewise.
58231         * modules/strsep (Makefile.am): Likewise.
58232         * modules/strstr (Makefile.am): Likewise.
58233         * modules/strtod (Makefile.am): Likewise.
58234         * modules/strtoimax (Makefile.am): Likewise.
58235         * modules/strtok_r (Makefile.am): Likewise.
58236         * modules/strtol (Makefile.am): Likewise.
58237         * modules/strtoll (Makefile.am): Likewise.
58238         * modules/strtoul (Makefile.am): Likewise.
58239         * modules/strtoull (Makefile.am): Likewise.
58240         * modules/strtoumax (Makefile.am): Likewise.
58241         * modules/strverscmp (Makefile.am): Likewise.
58242         * modules/time_r (Makefile.am): Likewise.
58243         * modules/timegm (Makefile.am): Likewise.
58244         * modules/tmpfile-safer (Makefile.am): Likewise.
58245         * modules/unistd-safer (Makefile.am): Likewise.
58246         * modules/unlinkdir (Makefile.am): Likewise.
58247         * modules/userspec (Makefile.am): Likewise.
58248         * modules/utime (Makefile.am): Likewise.
58249         * modules/utimecmp (Makefile.am): Likewise.
58250         * modules/utimens (Makefile.am): Likewise.
58251         * modules/vasnprintf (Makefile.am): Likewise.
58252         * modules/vasprintf (Makefile.am): Likewise.
58253         * modules/vsnprintf (Makefile.am): Likewise.
58254         * modules/xalloc (Makefile.am): Likewise.
58255         * modules/xgetcwd (Makefile.am): Likewise.
58256         * modules/xnanosleep (Makefile.am): Likewise.
58257         * modules/xreadlink (Makefile.am): Likewise.
58258         * modules/xstrtod (Makefile.am): Likewise.
58259         * modules/xstrtol (Makefile.am): Likewise.
58260         * modules/xstrtold (Makefile.am): Likewise.
58261         * modules/yesno (Makefile.am): Likewise.
58262
58263 2006-10-12  Jim Meyering  <jim@meyering.net>
58264
58265         * m4/getloadavg.m4: Revert the change below.
58266
58267         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
58268         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
58269         fail with a symlink, which is what coreutils' ./bootstrap now
58270         creates by default.
58271
58272 2006-10-12  Bruno Haible  <bruno@clisp.org>
58273
58274         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
58275         mingw.
58276         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
58277         MSVC and mingw explicitly.
58278
58279 2006-10-11  Simon Josefsson  <jas@extundo.com>
58280             Bruno Haible  <bruno@clisp.org>
58281
58282         Add support for multiple gnulib-tool invocations in the scope of a
58283         single configure.ac file.
58284         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
58285         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
58286         with the same contents as the _LIBADD variable.
58287         (func_emit_initmacro_start, func_emit_initmacro_end,
58288         func_emit_initmacro_done): New functions.
58289         (func_import, func_create_testdir): Invoke them. Allow the identifiers
58290         gl_LIBOBJS and gl_LTLIBOBJS.
58291
58292 2006-10-11  Bruno Haible  <bruno@clisp.org>
58293
58294         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
58295         (func_create_testdir): Don't create po/Makefile.am, don't invoke
58296         autoreconf. Instead, invoke autopoint explicitly but move back the
58297         *.m4 files from gnulib.
58298
58299 2006-10-11  Bruno Haible  <bruno@clisp.org>
58300
58301         * gnulib-tool (func_usage): Make module names after --create-testdir
58302         optional.
58303         (func_create_testdir): If no module was specified, use nearly all
58304         modules.
58305
58306 2006-10-12  Jim Meyering  <jim@meyering.net>
58307
58308         Big performance improvement for fts-based tools that use FTS_NOSTAT.
58309         Avoid spurious inode-mismatch problems on non-POSIX file systems.
58310         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
58311         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
58312         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
58313         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
58314         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
58315         (fts_set_stat_required): New function.
58316         (fts_open): Defer the calls to fts_stat, if possible or requested.
58317         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
58318         into fts_stat itself.
58319         (fts_read): Perform any required (deferred) fts_stat call.
58320         (fts_build): Likewise, for the directory we're about to open and read.
58321         In the readdir loop, carefully decide whether each entry will require
58322         an eventual call to fts_stat, using dirent.d_type info if available.
58323         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
58324         a command line argument into this function.  Update all callers.
58325         Map a return value of FTS_DOT to FTS_D for a command line argument.
58326         * modules/fts (Depends-on): Add d-type.  Alphabetize.
58327         Thanks to Miklos Szeredi for his tenacity and for the initial
58328         bug report about "find" failing on a FUSE-based file system.
58329
58330         * lib/fts.c (fts_open): Use consistent indentation.
58331
58332 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
58333
58334         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
58335         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
58336         reported by Jim Meyering.  All uses of cache variables renamed
58337         to match Autoconf's.
58338         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
58339         the other one.
58340
58341         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
58342         Fix misspelling in diagnostic.
58343
58344 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58345
58346         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
58347         defined.  Problem reported by Matthew Woehlke.
58348
58349         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
58350         Add support for Tandem NonStop R series.
58351         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
58352         Use new macro.
58353
58354         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
58355         (has_trailing_slash): Omit size arg; all callers changed.
58356         Omit 'inline', since it doesn't help performance and we'd
58357         need to configure it.
58358         Don't count //, ///, etc. as having a trailing slash.
58359         As a side effect, this removes a C99ism reported by Matthew Woehlke.
58360         (rpl_rename_dest_slash): On failure, use rename's errno rather
58361         than (in some cases) an incorrect or junk errno.
58362         Simplify code by removing need to compute length; this does
58363         cause it to make two passes instead of one over the file name,
58364         but it's worth it.
58365
58366         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
58367         change, since Autoconf's version may no longer be appropriate now
58368         that we are using CVS Autoconf's version.  Add support for Tandem.
58369
58370 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
58371             Bruno Haible  <bruno@clisp.org>
58372
58373         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
58374         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
58375         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
58376         gl_AC_TYPE_LONG_LONG.
58377
58378         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
58379         instead of HAVE_LONG_LONG.
58380         * lib/printf-args.c (printf_fetchargs): Likewise.
58381         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
58382         * lib/vasnprintf.c (VASNPRINTF): Likewise.
58383         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
58384         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
58385         gl_AC_TYPE_LONG_LONG.
58386
58387 2006-10-11  Bruno Haible  <bruno@clisp.org>
58388
58389         * m4/longlong.m4: Add comments.
58390         * m4/ulonglong.m4: Likewise.
58391
58392 2006-10-10  Bruno Haible  <bruno@clisp.org>
58393
58394         Make it possible to #define stpcpy, strdup to aliases.
58395         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
58396         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
58397
58398 2006-10-10  Bruno Haible  <bruno@clisp.org>
58399
58400         Make it possible to #define gcd to an alias.
58401         * lib/gcd.c: Include config.h.
58402
58403 2006-10-10  Bruno Haible  <bruno@clisp.org>
58404
58405         Make it possible to #define c_isascii to an alias.
58406         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
58407         defined. Undefine the macros before defining them, to avoid gcc
58408         warnings.
58409         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
58410         define NO_C_CTYPE_MACROS early.
58411
58412 2006-10-10  Bruno Haible  <bruno@clisp.org>
58413
58414         Make it possible to #define set_program_name to an alias.
58415         * lib/progname.c: Don't undefine set_program_name; instead, undefine
58416         ENABLE_RELOCATABLE early.
58417
58418 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
58419
58420         Port to Tandem NSK OSS, which has 64-bit signed int but at most
58421         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
58422         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
58423         More generally, don't assume that 64-bit signed int is available
58424         if unsigned int is, and vice versa.
58425         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
58426         unsigned symbols, not on their signed counterparts.
58427         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
58428         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
58429         (UINT64_C, UINTMAX_C):
58430         Likewise.
58431         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
58432         unsigned counterparts.
58433         (Have_long_long, Unsigned): New macros.
58434         (Int): Renamed from INT.
58435         (strtoimax): Use the new macros.
58436         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
58437         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
58438         * modules/inttypes (inttypes.h): Substitute
58439         HAVE_UNSIGNED_LONG_LONG_INT.
58440         * modules/stdint (stdint.h): Likewise.
58441         (Files): Add m4/ulonglong.m4.
58442
58443 2006-10-10  Bruno Haible  <bruno@clisp.org>
58444
58445         Fix a gcc -Wshadow warning.
58446         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
58447         to 'bucket'.
58448         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
58449         gl_linked_indexof_from_to): Likewise.
58450         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
58451         Likewise.
58452         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
58453         Likewise.
58454         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
58455         Reported by Eric Blake.
58456
58457 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
58458
58459         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
58460         for NetBSD.  Problem reported by Bruno Haible.
58461
58462 2006-10-09  Jim Meyering  <jim@meyering.net>
58463
58464         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
58465         Patch from Bruno Haible.
58466
58467 2006-10-09  Jim Meyering  <jim@meyering.net>
58468
58469         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
58470         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
58471         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
58472
58473 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
58474
58475         Don't include <config.h> twice; this doesn't work in some cases,
58476         e.g., when config.h has "#define intmax_t long long int" and
58477         we include <config.h>, <inttypes.h>, <config.h> in that order.
58478         Problem reported by Matthew Woehlke in:
58479         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
58480         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
58481         * lib/fts-cycle.c: Don't include config.h.
58482         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
58483         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
58484         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
58485         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
58486         inttypes.h.
58487         * lib/xstrtoumax.c: Likewise.
58488         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
58489         __strtol and the like, so that this module is more like its siblings.
58490         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
58491         Remove; no longer needed now that we assume gnulib inttypes.h.
58492
58493 2006-10-08  Bruno Haible  <bruno@clisp.org>
58494
58495         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
58496         option.
58497
58498 2006-10-07  Jim Meyering  <jim@meyering.net>
58499
58500         * modules/inttypes (inttypes.h): Revert what seems to have been
58501         an inadvertent part of today's change: use "|", not "/" in the
58502         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
58503
58504 2006-10-07  Bruno Haible  <bruno@clisp.org>
58505
58506         * modules/sublist: New file.
58507
58508 2006-10-07  Bruno Haible  <bruno@clisp.org>
58509
58510         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
58511         * modules/argz (argz.h): Likewise.
58512         * modules/arpa_inet (arpa/inet.h): Likewise.
58513         * modules/byteswap (byteswap.h): Likewise.
58514         * modules/configmake (configmake.h): Likewise.
58515         * modules/fcntl (fcntl.h): Likewise.
58516         * modules/fnmatch (fnmatch.h): Likewise.
58517         * modules/getopt (getopt.h): Likewise.
58518         * modules/glob (glob.h): Likewise.
58519         * modules/inttypes (inttypes.h): Likewise.
58520         * modules/netinet_in (netinet/in.h): Likewise.
58521         * modules/poll (poll.h): Likewise.
58522         * modules/stdbool (stdbool.h): Likewise.
58523         * modules/stdint (stdint.h): Likewise.
58524         * modules/sys_select (sys/select.h): Likewise.
58525         * modules/sys_socket (sys/socket.h): Likewise.
58526         * modules/sys_stat (sys/stat.h): Likewise.
58527         * modules/sysexits (sysexits.h): Likewise.
58528         * modules/unistd (unistd.h): Likewise.
58529         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
58530         Add a "DO NOT EDIT" comment to the generated file.
58531         (func_import): Likewise for gnulib-comp.m4.
58532
58533 2006-10-07  Bruno Haible  <bruno@clisp.org>
58534
58535         * lib/gl_sublist.h: New file.
58536         * lib/gl_sublist.c: New file.
58537
58538 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
58539
58540         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
58541         name (relative to the original working directory) and the file
58542         name component (relative to the temporary working directory).  All
58543         callers changed.
58544         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
58545         * lib/mkdir-p.c (make_dir_parents): Likewise.
58546         * lib/mkdir-p.h (make_dir_parents): Likewise.
58547
58548 2006-10-06  Eric Blake  <ebb9@byu.net>
58549
58550         Define several macros for use by the clean-temp module.
58551         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
58552         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
58553         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
58554
58555         * lib/clean-temp.h (close_stream_temp): New declaration.
58556         * lib/clean-temp.c (includes): Pull in headers according to what
58557         other modules are in use.
58558         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
58559
58560 2006-10-06  Bruno Haible  <bruno@clisp.org>
58561
58562         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
58563         instead of fopen, fwriteerror.
58564
58565 2006-10-06  Bruno Haible  <bruno@clisp.org>
58566
58567         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
58568         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
58569         int.
58570         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
58571         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
58572         Return an error indicator.
58573         Suggested by Eric Blake.
58574
58575 2006-10-06  Bruno Haible  <bruno@clisp.org>
58576
58577         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
58578         Reported by Eric Blake.
58579
58580 2006-10-06  Bruno Haible  <bruno@clisp.org>
58581
58582         * modules/closeout (Description): Mention stderr too.
58583
58584 2006-10-06  Bruno Haible  <bruno@clisp.org>
58585         and Paul Eggert  <eggert@cs.ucla.edu>
58586
58587         * lib/closeout.c (close_stdout): Also close stderr.
58588         * lib/closeout.h: Update comment.
58589
58590 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
58591
58592         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
58593         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
58594         * lib/dirchownmod.c: Include lchown.h.
58595         * lib/lchown.c: Don't include files that lchown.h now includes.
58596         Don't declare chown, since lchown.h now does that.
58597         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
58598         (lchown): Define to rpl_chown if lchown is declared but
58599         does not exist.  Declare using a prototype if lchown is not
58600         declared.  Add a copyright notice.
58601         * lib/mkstemp.h: Include <unistd.h>.
58602         * lib/openat.c: Include lchown.h.
58603
58604         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
58605         we now test for that separately.
58606         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
58607         rather than O_NOFOLLOW, when testing whether it's possible to
58608         avoid a race condition reliably.
58609         * lib/savewd.c (savewd_chdir): Likewise.
58610
58611         Remove macros that are no longer needed now that stdint.h is
58612         reliable.
58613         * lib/fsusage.c (UINTMAX_MAX): Remove.
58614         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
58615         * lib/utimecmp.c (SIZE_MAX): Remove.
58616
58617         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
58618
58619         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
58620         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
58621         O_NOATIME works.
58622
58623 2006-10-05  Bruno Haible  <bruno@clisp.org>
58624
58625         * lib/gl_list.h (gl_sortedlist_search_from_to,
58626         gl_sortedlist_indexof_from_to): New declarations.
58627         (gl_list_implementation): New fields sortedlist_search_from_to,
58628         sortedlist_indexof_from_to.
58629         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
58630         inline functions.
58631         * lib/gl_list.c (gl_sortedlist_search_from_to,
58632         gl_sortedlist_indexof_from_to): New functions.
58633         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
58634         function.
58635         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
58636         (gl_array_sortedlist_search_from_to): New function.
58637         (gl_array_list_implementation): Update.
58638         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
58639         function.
58640         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
58641         (gl_carray_sortedlist_search_from_to): New function.
58642         (gl_carray_list_implementation): Update.
58643         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
58644         gl_linked_sortedlist_indexof_from_to): New functions.
58645         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58646         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58647         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
58648         gl_tree_sortedlist_indexof_from_to): New functions.
58649         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58650         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58651         Update.
58652         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58653         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
58654         Update.
58655
58656 2006-10-05  Bruno Haible  <bruno@clisp.org>
58657
58658         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
58659         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
58660         (struct gl_list_implementation): Add fields search_from_to,
58661         indexof_from_to. Remove fields search, indexof.
58662         (gl_list_search): Use the search_from_to method.
58663         (gl_list_search_from, gl_list_search_from_to): New functions.
58664         (gl_list_indexof): Use the indexof_from_to method.
58665         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58666         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
58667         (gl_list_search_from, gl_list_search_from_to): New functions.
58668         (gl_list_indexof): Use the indexof_from_to method.
58669         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
58670         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
58671         gl_array_indexof. Add start_index, end_index arguments.
58672         (gl_array_search_from_to): Renamed from gl_array_search. Add
58673         start_index, end_index arguments.
58674         (gl_array_remove, gl_array_list_implementation): Update.
58675         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
58676         gl_carray_indexof. Add start_index, end_index arguments.
58677         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
58678         start_index, end_index arguments.
58679         (gl_carray_remove, gl_carray_list_implementation): Update.
58680         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
58681         gl_linked_search. Add start_index, end_index arguments.
58682         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
58683         start_index, end_index arguments.
58684         (gl_linked_remove): Update.
58685         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
58686         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
58687         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
58688         field to 'size_t'.
58689         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
58690         gl_tree_search. Add start_index, end_index arguments.
58691         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58692         start_index, end_index arguments.
58693         (gl_tree_remove): Update.
58694         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
58695         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
58696         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
58697         function.
58698         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
58699         gl_tree_search. Add start_index, end_index arguments.
58700         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
58701         start_index, end_index arguments.
58702         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
58703         Update.
58704         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
58705
58706 2006-10-05  Bruno Haible  <bruno@clisp.org>
58707
58708         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
58709
58710         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
58711         fwriteerror_temp): New declarations.
58712         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
58713         (descriptors): New variable.
58714         (cleanup): First, close the descriptors.
58715         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
58716         fclose_temp, fwriteerror_temp): New functions.
58717
58718 2006-10-04  Jim Meyering  <jim@meyering.net>
58719
58720         * lib/fts.c (fts_open): Tiny comment change.
58721
58722 2006-10-04  Bruno Haible  <bruno@clisp.org>
58723
58724         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
58725         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
58726         gl_LOCK_BODY.
58727         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
58728         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
58729         gl_LOCK_EARLY_BODY.
58730         (gl_LOCK): Require gl_LOCK_BODY.
58731
58732 2006-10-04  Bruno Haible  <bruno@clisp.org>
58733
58734         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
58735         (gl_oset_search_atleast): New declaration.
58736         (struct gl_oset_implementation): Add field 'search_atleast'.
58737         (gl_oset_search_atleast): New inline function.
58738         * lib/gl_oset.c (gl_oset_search_atleast): New function.
58739         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
58740         (gl_array_oset_implementation): Update.
58741         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
58742         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
58743         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
58744
58745 2006-10-04  Bruno Haible  <bruno@clisp.org>
58746
58747         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
58748
58749 2006-10-03  Bruno Haible  <bruno@clisp.org>
58750
58751         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
58752         from gl_avltreehash_list_implementation.
58753
58754 2006-10-03  Bruno Haible  <bruno@clisp.org>
58755
58756         * lib/gl_oset.c (gl_oset_add): Fix return type.
58757
58758 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
58759
58760         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
58761
58762 2006-10-02  Eric Blake  <ebb9@byu.net>
58763
58764         * modules/strnlen (Depends-on): Add extensions.
58765
58766 2006-10-02  Eric Blake  <ebb9@byu.net>
58767
58768         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
58769         definition in 2.60+.
58770
58771 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
58772
58773         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
58774         checks.
58775
58776 2006-10-02  Bruno Haible  <bruno@clisp.org>
58777
58778         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
58779         to the AUTOMAKE_OPTIONS.
58780         Reported by Jim Meyering.
58781
58782 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
58783
58784         Work around bug in Solaris 10 /proc file system:
58785         /proc/self/fd/NNN/.. isn't the parent directory of
58786         the directory whose file descriptor is NNN.  This needs to
58787         be worked around at run time, not compile time, since a
58788         program might be built on Solaris 8, where things work, and
58789         run on Solaris 10.
58790         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
58791         to use the following interface instead:
58792         (OPENAT_BUFFER_SIZE): New macro.
58793         (openat_proc_name): New function.
58794         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
58795         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
58796         Likewise.
58797         * lib/openat-proc.c: New file.
58798         * modules/openat (Files): Add lib/openat-proc.c.
58799         (Depends-on): Add same-inode, stdbool.
58800         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
58801
58802 2006-09-29  Bruno Haible  <bruno@clisp.org>
58803
58804         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
58805         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
58806         argument. Set stdout_closed before testing for ferror, not after.
58807         (fwriteerror, fwriteerror_no_ebadf): New functions.
58808
58809 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58810
58811         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
58812
58813 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
58814
58815         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
58816         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
58817
58818 2006-09-28  Jim Meyering  <jim@meyering.net>
58819
58820         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
58821         Include <unistd.h>.
58822
58823 2006-09-28  Bruno Haible  <bruno@clisp.org>
58824
58825         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
58826         * modules/linkedhash-list (Depends-on): Likewise.
58827         * modules/rbtreehash-list (Depends-on): Likewise.
58828
58829 2006-09-28  Bruno Haible  <bruno@clisp.org>
58830
58831         * lib/strndup.h: Simplify the redefinition of strndup.
58832         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
58833         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
58834
58835 2006-09-28  Bruno Haible  <bruno@clisp.org>
58836
58837         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
58838         * lib/gl_linkedhash_list.c: Likewise.
58839         * lib/gl_rbtreehash_list.c: Likewise.
58840
58841 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
58842
58843         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
58844         getaddrinfo.
58845
58846         * lib/__fpending.h: Don't include <stdio_ext.h> unless
58847         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
58848         it causes <stdio_ext.h> to cause a compile-time error.
58849         Problem reported by Nelson H. F. Beebe.
58850         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
58851         of HAVE_DECL___PENDING.
58852
58853         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
58854         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
58855         declaration.
58856
58857 2006-09-27  Jim Meyering  <jim@meyering.net>
58858
58859         This file could end up with a definition for a function
58860         named __strndup, rather than rpl_strndup on a system with
58861         incomplete weak_alias support.
58862         * lib/strndup.c (strndup): Rename from __strndup.
58863         Remove #defines that used to map __strndup to strndup.
58864         Don't use K&R prototypes.
58865         Remove LIBC-related code, since this file is not sync'd with glibc.
58866         * lib/strndup.h: Revamp, accordingly.
58867         * m4/strndup.m4: Modernize.
58868
58869 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
58870
58871         * modules/savewd (Depends-on): Add 'raise'.
58872         * lib/savewd.c: Include <signal.h>, for 'raise'.
58873
58874 2006-09-26  Jim Meyering  <jim@meyering.net>
58875
58876         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
58877         when we detect Darwin 8.7.0's acl_get_file bug.
58878         Rearrange to perform the new (below) run-test while $LIBS
58879         contains any acl-related library.  Set USE_ACL at the end.
58880         (gl_ACL_GET_FILE): New function.
58881
58882 2006-09-26  Eric Blake  <ebb9@byu.net>
58883
58884         * lib/verror.c: Include <config.h> unconditionally.
58885
58886 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
58887
58888         * modules/clock-time (Maintainer): Add self.
58889         * modules/getlogin_r (Depends-on): Add extensions.
58890
58891 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58892
58893         * modules/clock-time: New module.
58894         * modules/nanosleep (Depends-on): Add clock-time.
58895         * modules/gethrxtime (Depends-on): Likewise.
58896         * modules/gettime (Depends-on): Likewise.
58897         * modules/settime (Depends-on): Likewise.
58898
58899         * modules/fts-lgpl: Depend on openat.
58900         * modules/mkancesdirs: Depend on savewd.
58901         * modules/mkdir-p: Likewise.
58902
58903 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58904
58905         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
58906
58907         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
58908         `gl_have_arbitrary_file_name_length_limit' to
58909         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
58910         actually works between configure runs.
58911
58912 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58913             Bruno Haible  <bruno@clisp.org>
58914
58915         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
58916
58917 2006-09-25  Jim Meyering  <jim@meyering.net>
58918
58919         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
58920         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
58921
58922 2006-09-25  Eric Blake  <ebb9@byu.net>
58923
58924         * gnulib-tool (func_import, func_create_testdir): Fix typos in
58925         exec's in 2006-09-18 patch when shuffling fds.
58926
58927 2006-09-25  Bruno Haible  <bruno@clisp.org>
58928
58929         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
58930         Reported by Jim Meyering.
58931
58932 2006-09-24  Jim Meyering  <jim@meyering.net>
58933
58934         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
58935         compare a pointer against a literal "0".  That caused failures with
58936         at least HP-UX's hpcc.
58937
58938 2006-09-22  Simon Josefsson  <jas@extundo.com>
58939
58940         * modules/gc-sha1:
58941         * modules/gc-md4:
58942         * modules/gc-hmac-sha1:
58943         * modules/gc-hmac-md5:
58944         * modules/gc-des:
58945         * modules/gc-arcfour: Distribute more files.
58946
58947 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58948
58949         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
58950         (gl_linked_iterator_from_to): Initialize struct completely.
58951         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
58952         (gl_tree_iterator_from_to): Likewise
58953         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
58954         * lib/gl_array_list.c [lint] (gl_array_iterator)
58955         (gl_array_iterator_from_to): Likewise.
58956         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
58957         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
58958         (gl_carray_iterator_from_to): Likewise.
58959
58960         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
58961         * lib/md4.c (md4_process_block): Remove unused variable.
58962         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
58963         parentheses for clarity.
58964
58965 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58966
58967         * modules/bison-i18n (Depends-on): Add gettext.
58968
58969 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58970
58971         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
58972         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
58973         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
58974         also add missing comma that caused broken test.
58975         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
58976         stdlib.h, for `abort'.
58977         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
58978         variables.
58979         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
58980         include unistd.h if present, for `rmdir'.
58981         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
58982         variables.
58983         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
58984         in the process include standard headers for prototypes.
58985         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
58986         gets declared on GNU/Linux.
58987         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
58988         unistd.h, for `rmdir'.
58989         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
58990
58991         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
58992         always true.
58993         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
58994
58995         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
58996
58997 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58998
58999         * gnulib-tool (func_version): Create output all at once.  This
59000         may help avoid triggering unnecessary SIGPIPEs, and at any
59001         rate it doesn't hurt.
59002
59003 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59004             Bruno Haible  <bruno@clisp.org>
59005
59006         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
59007         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
59008         * m4/signed.m4 (bh_C_SIGNED): Likewise.
59009
59010         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
59011         (gl_FUNC_VASPRINTF): Invoke it.
59012
59013 2006-09-22  Bruno Haible  <bruno@clisp.org>
59014
59015         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
59016         getloadavg.c as first argument.
59017
59018 2006-09-22  Bruno Haible  <bruno@clisp.org>
59019
59020         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
59021         at the beginning of the gl_INIT macro.
59022         * modules/getloadavg (configure.ac): Pass $gl_source_base to
59023         gl_GETLOADAVG.
59024
59025 2006-09-22  Bruno Haible  <bruno@clisp.org>
59026
59027         * gnulib-tool (func_create_megatestdir): Don't include the config-h
59028         module.
59029         Suggested by Ralf Wildenhues.
59030
59031 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59032
59033         Import this patch from libc:
59034
59035         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
59036
59037         * lib/regex_internal.c (re_string_reconstruct): Handle
59038         offset < pstr->valid_raw_len && pstr->offsets_needed case.
59039         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
59040         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
59041         re_string_context_at.
59042
59043         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
59044         now requires it.
59045         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
59046         gl_REGEX now does it for us.
59047         (gl_REGEX): Add test taken from
59048         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
59049
59050         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
59051         Check that large offsets work.  Modernize Autoconf usages.
59052         Prefer "yes" to mean a good thing rather than a bad.
59053         Don't put "#define mkstemp" in config.h, as this might interfere
59054         with standard system headers that "#define mkstemp mkstemp64".
59055
59056         * modules/mkstemp (Depends-on): Add extensions, so that
59057         mkstemp is visible on some platforms.
59058         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
59059         (Include): Change to "mkstemp.h" from <stdlib.h>.
59060         (Files): Add mkstemp.h.
59061
59062         * lib/mkstemp.h: New file, since some standard headers
59063         #define mkstemp.
59064         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
59065         Include "mkstemp.h".
59066         Make the _LIBC code resemble glibc original more,
59067         e.g., use K&R style.
59068         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
59069         (mkstemp): Remove, since mkstemp.h does this for us.
59070         * lib/stdlib--.h: Include mkstemp.h.
59071
59072         Import this patch from libc:
59073
59074         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
59075
59076         * lib/tempname.c (__gen_tempname): Change attempts_min
59077         into a macro.  Use preprocessor to decide how to initialize
59078         attempts [Coverity CID 67].
59079
59080 2006-09-20  Bruno Haible  <bruno@clisp.org>
59081
59082         * lib/mkdtemp.c: Import from libc.
59083         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
59084                 * sysdeps/posix/tempname.c (__gen_tempname): Change
59085                 attempts_min into a macro.  Use preprocessor to decide how to
59086                 initialize attempts [Coverity CID 67].
59087         2001-11-27  Paul Eggert  <eggert@twinsun.com>
59088                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
59089                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
59090
59091 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59092
59093         * gnulib-tool (func_exit): New function, to allow to pass the
59094         exit status portably through the trap.  Use everywhere.
59095         (--help, --version): Signal a write error.
59096         (trap): catch SIGPIPE, for write errors.
59097         Exit at the end of the trap, with the correct exit status.
59098
59099 2006-09-19  Karl Berry  <karl@gnu.org>
59100
59101         * doc/gnulib.texi: note about the license texinfo files.
59102
59103 2006-09-19  Eric Blake  <ebb9@byu.net>
59104
59105         * gnulib-tool: Avoid space-tab.
59106
59107 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
59108
59109         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
59110         that prevented coreutils 6.1 from building.  Problem reported
59111         by Petter Reinholdtsen.
59112
59113 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
59114
59115         * gnulib-tool (avoidlist): Fix typo that broke options like
59116         --avoid=lock that are used by coreutils bootstrap.
59117
59118 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
59119
59120         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
59121         more systematically.
59122
59123 2006-09-18  Jim Meyering  <jim@meyering.net>
59124
59125         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
59126
59127 2006-09-18  Bruno Haible  <bruno@clisp.org>
59128
59129         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
59130
59131 2006-09-18  Bruno Haible  <bruno@clisp.org>
59132
59133         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
59134         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
59135         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
59136         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
59137         * m4/gettext.m4: Require autoconf >= 2.52.
59138         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
59139         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
59140         of gl_cv_header_inttypes_h.
59141
59142 2006-09-18  Bruno Haible  <bruno@clisp.org>
59143
59144         * lib/javaversion.c: Include configmake.h.
59145
59146 2006-09-18  Bruno Haible  <bruno@clisp.org>
59147
59148         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
59149         avoid that the while loops be executed in a subshell.
59150
59151 2006-09-18  Bruno Haible  <bruno@clisp.org>
59152
59153         * MODULES.html.sh (func_module): Break long lines.
59154         Suggested by Bruce Korb <bkorb@gnu.org>.
59155
59156 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59157
59158         Speed up by a factor of 1.12.
59159         * gnulib-tool (nl): New variable.
59160         (func_import): Rewrite include directive extraction to only read each
59161         directive once.
59162
59163 2006-09-17  Bruno Haible  <bruno@clisp.org>
59164
59165         * modules/javaversion (Makefile.am): Remove DEFS setting.
59166         (Depends-on): Add configmake, for PKGDATADIR definition.
59167
59168 2006-09-17  Bruno Haible  <bruno@clisp.org>
59169
59170         * gnulib-tool (func_create_testdir): Rewrite all files at once.
59171
59172 2006-09-17  Bruno Haible  <bruno@clisp.org>
59173
59174         * gnulib-tool (func_append): New function, stolen from libtool.m4.
59175         (func_modules_transitive_closure, func_modules_add_dummy,
59176         func_modules_to_filelist, func_import, func_create_testdir,
59177         func_create_megatestdir, ...): Use it wherever possible.
59178         Suggested by Ralf Wildenhues.
59179
59180 2006-09-16  Karl Berry  <karl@gnu.org>
59181
59182         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
59183         to avoid sectioning errors.
59184         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
59185         [ifinfo]: blank line after @center-ed titles.
59186         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
59187         Spell FSF address consistently with others.
59188         (These changes approved by rms.)
59189
59190 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59191
59192         Speed up by a factor of 1.61.
59193         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
59194         already checked module names again.
59195
59196 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59197
59198         Speed up by a factor of 1.13.
59199         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
59200         for new_files, and the input to func_add_or_update.
59201
59202 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59203
59204         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
59205         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
59206
59207 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59208
59209         * modules/mkancesdirs (Depends-on): Add fcntl.
59210         * modules/savewd: New file.
59211         * MODULES.html.sh (File system functions): Add savewd.
59212
59213         * modules/configmake (Makefile.am): Add support for the
59214         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
59215
59216 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59217
59218         * m4/savewd.m4: New file.
59219
59220 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
59221
59222         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
59223         (dirchownmod): New arg FD.  All callers changed.
59224         Use FD rather than opening the directory ourself, as opening is
59225         now the caller's responsibility.
59226         * lib/dirchownmod.h: Likewise.
59227         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
59228         hosts that require <sys/types.h> before <sys/stat.h>.  Include
59229         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
59230         (test_dir): Remove.
59231         (mkancesdirs): Return length of prefix of FILE that has already
59232         been made, or -2 if there is a child doing the work.  Redo
59233         algorithm so that it is O(N) rather than O(N**2).  Optimize away
59234         ".", and treat ".." specially since it might stray back into
59235         already-created areas.  Use a subprocess if necessary.  New arg
59236         WD; all users changed.  MAKE_DIR function should now return 1
59237         if it creates a directory that is not readable.  Return -2 if
59238         a child process is spun off.
59239         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
59240         Adjust signature to match code.
59241         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
59242         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
59243         all users changed.
59244         * lib/savewd.c, lib/savewd.h: New files.
59245
59246 2006-09-15  Jim Meyering  <jim@meyering.net>
59247
59248         * modules/rename-dest-slash: New module.
59249         * MODULES.html.sh (posix_compat): Add it here.
59250
59251         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
59252
59253 2006-09-15  Jim Meyering  <jim@meyering.net>
59254
59255         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
59256         file.
59257
59258         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
59259
59260 2006-09-15  Jim Meyering  <jim@meyering.net>
59261
59262         * lib/rename-dest-slash.c (has_trailing_slash): Use
59263         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
59264         (rpl_rename_dest_slash): Perform the cheaper trailing slash
59265         test before testing whether SRC is a directory.
59266         Suggestions from Bruno Haible.
59267
59268         Avoid a warning about an unused variable.
59269         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
59270         into the #ifdef block where it's used.
59271
59272         * lib/rename-dest-slash.c: New file.
59273
59274 2006-09-14  Bruno Haible  <bruno@clisp.org>
59275
59276         * lib/allocsa.c: Include <config.h> unconditionally.
59277         * lib/asnprintf.c: Likewise.
59278         * lib/asprintf.c: Likewise.
59279         * lib/c-strcasecmp.c: Likewise.
59280         * lib/c-strcasestr.c: Likewise.
59281         * lib/c-strncasecmp.c: Likewise.
59282         * lib/c-strstr.c: Likewise.
59283         * lib/classpath.c: Likewise.
59284         * lib/clean-temp.c: Likewise.
59285         * lib/concatpath.c: Likewise.
59286         * lib/copy-file.c: Likewise.
59287         * lib/csharpcomp.c: Likewise.
59288         * lib/csharpexec.c: Likewise.
59289         * lib/execute.c: Likewise.
59290         * lib/fatal-signal.c: Likewise.
59291         * lib/findprog.c: Likewise.
59292         * lib/fwriteerror.c: Likewise.
59293         * lib/gl_array_list.c: Likewise.
59294         * lib/gl_array_oset.c: Likewise.
59295         * lib/gl_avltree_list.c: Likewise.
59296         * lib/gl_avltree_oset.c: Likewise.
59297         * lib/gl_avltreehash_list.c: Likewise.
59298         * lib/gl_carray_list.c: Likewise.
59299         * lib/gl_linked_list.c: Likewise.
59300         * lib/gl_linkedhash_list.c: Likewise.
59301         * lib/gl_list.c: Likewise.
59302         * lib/gl_oset.c: Likewise.
59303         * lib/gl_rbtree_list.c: Likewise.
59304         * lib/gl_rbtree_oset.c: Likewise.
59305         * lib/gl_rbtreehash_list.c: Likewise.
59306         * lib/imaxabs.c: Likewise.
59307         * lib/imaxdiv.c: Likewise.
59308         * lib/javacomp.c: Likewise.
59309         * lib/javaexec.c: Likewise.
59310         * lib/javaversion.c: Likewise.
59311         * lib/linebreak.c: Likewise.
59312         * lib/localcharset.c: Likewise.
59313         * lib/lock.c: Likewise.
59314         * lib/mbchar.c: Likewise.
59315         * lib/mbswidth.c: Likewise.
59316         * lib/mkdtemp.c: Likewise.
59317         * lib/pipe.c: Likewise.
59318         * lib/printf-args.c: Likewise.
59319         * lib/printf-parse.c: Likewise.
59320         * lib/progname.c: Likewise.
59321         * lib/progreloc.c: Likewise.
59322         * lib/readlink.c: Likewise.
59323         * lib/sh-quote.c: Likewise.
59324         * lib/stpcpy.c: Likewise.
59325         * lib/stpncpy.c: Likewise.
59326         * lib/strcasecmp.c: Likewise.
59327         * lib/strcasestr.c: Likewise.
59328         * lib/strcspn.c: Likewise.
59329         * lib/striconv.c: Likewise.
59330         * lib/strncasecmp.c: Likewise.
59331         * lib/strnlen1.c: Likewise.
59332         * lib/strstr.c: Likewise.
59333         * lib/strtok_r.c: Likewise.
59334         * lib/tls.c: Likewise.
59335         * lib/tmpdir.c: Likewise.
59336         * lib/unicodeio.c: Likewise.
59337         * lib/unsetenv.c: Likewise.
59338         * lib/vasnprintf.c: Likewise.
59339         * lib/vasprintf.c: Likewise.
59340         * lib/wait-process.c: Likewise.
59341         * lib/xallocsa.c: Likewise.
59342         * lib/xsetenv.c: Likewise.
59343         * lib/xstriconv.c: Likewise.
59344
59345 2006-09-13  Simon Josefsson  <jas@extundo.com>
59346
59347         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
59348         that internally, suggested by Ralf Wildenhues
59349         <Ralf.Wildenhues@gmx.de>.
59350
59351 2006-09-13  Simon Josefsson  <jas@extundo.com>
59352
59353         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
59354         @LIBOBJS@.
59355         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59356
59357 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59358
59359         * lib/_fpending.c: Include <config.h> unconditionally, since we no
59360         longer worry about uses that don't define HAVE_CONFIG_H.
59361         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
59362         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
59363         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
59364         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
59365         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
59366         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
59367         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
59368         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
59369         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
59370         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
59371         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
59372         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
59373         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
59374         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
59375         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
59376         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
59377         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
59378         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
59379         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
59380         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
59381         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
59382         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
59383         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
59384         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
59385         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
59386         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
59387         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
59388         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
59389         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
59390         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
59391         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
59392         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
59393         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
59394         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
59395         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
59396         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
59397         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
59398         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
59399         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
59400         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
59401         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
59402         Likewise.
59403
59404 2006-09-13  Eric Blake  <ebb9@byu.net>
59405
59406         * lib/getopt.c: Fix typo in last commit.
59407
59408 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59409
59410         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
59411         dgettext.
59412
59413 2006-09-12  Jim Meyering  <jim@meyering.net>
59414
59415         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
59416         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
59417         Reported by Nelson H. F. Beebe.
59418
59419 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59420
59421         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
59422         program_invocation_name and program_invocation_short_name are
59423         initialized.
59424         * lib/argp-namefrob.h: Move declarations of program_invocation_name
59425         and program_invocation_short_name to argp.h, so they are visible
59426         to user programs.
59427         * lib/argp.h: Likewise
59428
59429 2006-09-10  Bruno Haible  <bruno@clisp.org>
59430
59431         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
59432         m4/inttypes_h.m4, m4/uintmax_t.m4.
59433
59434 2006-09-10  Bruno Haible  <bruno@clisp.org>
59435
59436         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
59437         gl_AC_TYPE_UINTMAX_T.
59438
59439 2006-09-10  Bruno Haible  <bruno@clisp.org>
59440
59441         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
59442
59443 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59444
59445         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
59446         convention.  Text proposed by Bruno Haible.
59447         (struct argp_option): Document the use of N_() wrappers.
59448
59449         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
59450         '\v', and translate the two parts separately, instead of feeding
59451         the whole string to gettext.  This allows to exclude
59452         '\v' from the strings visible to the translator by writing doc
59453         strings as N_("..") "\v" N_("..").
59454
59455 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
59456
59457         * config/srclist.txt: Undo latest change; the bug was fixed.
59458
59459 2006-09-09  Bruno Haible  <bruno@clisp.org>
59460
59461         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
59462         assignments if building a library without libtool.
59463         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
59464         in func_emit_lib_Makefile_am.
59465         (func_import): When building a static library libfoo.a, arrange to
59466         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
59467         (func_create_testdir): Likewise.
59468         * modules/gc (configure.ac, Makefile.am): If building statically,
59469         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
59470         * modules/iconvme (configure.ac, Makefile.am): Likewise.
59471         * modules/striconv (configure.ac, Makefile.am): Likewise.
59472         Based on a suggestion by Ralf Wildenhues.
59473
59474 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59475
59476         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
59477         Check for unistd.h too, since Autoconf doesn't assume POSIX.
59478         Also:
59479
59480         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59481         Add year_2050_test to catch glibc bug 2821
59482         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59483
59484         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59485         Prefer #ifdef to #if.
59486
59487         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
59488         Return from 'main' instead of calling 'exit'.
59489
59490 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59491
59492         * lib/mktime.c (guess_time_tm): Fix bug where mktime
59493         returned the maximum time_t value rather than (time_t) -1.
59494         Problem originally reported by William Bardwell
59495         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
59496
59497         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59498         Moved to here ...
59499         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
59500         ... from here.
59501
59502 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
59503
59504         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
59505         2821 is fixed.
59506
59507 2006-09-08  Jim Meyering  <jim@meyering.net>
59508
59509         Don't make generated files read-only.  That would bother too many
59510         people.  However, do retain the ability to work when targets are
59511         read-only: remove the destination and temporary files before writing
59512         them (when generated via sed or echo), or by using the -f option for
59513         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
59514         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59515         * modules/byteswap, modules/configmake, modules/fcntl:
59516         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59517         * modules/localcharset, modules/netinet_in, modules/poll:
59518         * modules/stdbool, modules/stdint, modules/sys_select:
59519         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59520
59521 2006-09-08  Jim Meyering  <jim@meyering.net>
59522
59523         Avoid new build failure on FreeBSD 6.0.
59524         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
59525         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
59526         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
59527
59528 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59529
59530         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
59531
59532 2006-09-07  Jim Meyering  <jim@meyering.net>
59533
59534         Fix global typo in last change: use chmod u-w, not chmod u-x.
59535         Spotted by Paul Eggert and Bruce Korb.
59536         * modules/alloca-opt, modules/argz, modules/arpa_inet:
59537         * modules/byteswap, modules/configmake, modules/fcntl:
59538         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
59539         * modules/localcharset, modules/netinet_in, modules/poll:
59540         * modules/stdbool, modules/stdint, modules/sys_select:
59541         * modules/sys_socket, modules/sys_stat, modules/sysexits:
59542
59543 2006-09-06  Jim Meyering  <jim@meyering.net>
59544
59545         Make generated files be read-only.
59546         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
59547         Ensure that each generated file is now read-only.
59548         * modules/argz: Likewise.
59549         * modules/arpa_inet: Likewise.
59550         * modules/byteswap: Likewise.
59551         * modules/configmake: Likewise.
59552         * modules/fcntl: Likewise.
59553         * modules/fnmatch: Likewise.
59554         * modules/getopt: Likewise.
59555         * modules/glob: Likewise.
59556         * modules/inttypes: Likewise.
59557         * modules/netinet_in: Likewise.
59558         * modules/poll: Likewise.
59559         * modules/stdbool: Likewise.
59560         * modules/stdint: Likewise.
59561         * modules/sys_select: Likewise.
59562         * modules/sys_socket: Likewise.
59563         * modules/sys_stat: Likewise.
59564         * modules/sysexits: Likewise.
59565         * modules/localcharset: Same as above, but continue using temporary
59566         file named "t-$@" (why different?) rather than the "$@-t" used
59567         everywhere else.
59568
59569         * modules/sysexits (Makefile.am): Replace literal occurrences
59570         of "sysexit.h" more readable, and more consistent, "$@".
59571
59572 2006-09-06  Bruno Haible  <bruno@clisp.org>
59573
59574         * modules/striconv: New file.
59575         * modules/xstriconv: New file.
59576         * MODULES.html.sh (Internationalization functions): Add striconv,
59577         xstriconv.
59578
59579 2006-09-06  Bruno Haible  <bruno@clisp.org>
59580
59581         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
59582         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
59583         not using libtool correctly.
59584
59585 2006-09-06  Bruno Haible  <bruno@clisp.org>
59586
59587         * lib/striconv.h: New file.
59588         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
59589         iconvstring.c.
59590         * lib/xstriconv.h: New file.
59591         * lib/xstriconv.c: New file.
59592
59593 2006-09-06  Bruno Haible  <bruno@clisp.org>
59594
59595         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
59596         lib_..._LDFLAGS.
59597
59598 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59599
59600         * lib/argz_.h: Sync from Libtool.
59601
59602         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
59603                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
59604
59605         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
59606
59607 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59608
59609         * modules/trim: New file.
59610
59611 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
59612
59613         * lib/trim.h: New file.
59614         * lib/trim.c: New file.
59615
59616 2006-09-05  Bruno Haible  <bruno@clisp.org>
59617
59618         * MODULES.html.sh (String handling): Add trim.
59619
59620 2006-09-04  Karl Berry  <karl@gnu.org>
59621
59622         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
59623         until next release.
59624
59625 2006-09-03  Bruno Haible  <bruno@clisp.org>
59626
59627         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
59628         correctly.
59629
59630 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59631
59632         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
59633         not gl_GETLOADAVG.  Omit unneeded semicolons.
59634         Problems reported by Ralf Wildenhues in
59635         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59636         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
59637         at the end, which is the usual gnulib style.
59638
59639         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
59640         of doing all the work ourselves.
59641         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
59642         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
59643
59644 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59645
59646         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
59647         Problem reported by Ralf Wildenhues in
59648         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
59649
59650         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
59651         HAVE_STRUCT_STATFS_F_FSTYPENAME.
59652
59653 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
59654
59655         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
59656         yesterday's patch by changing test -n to test -z.
59657
59658 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59659
59660         * modules/getloadavg (Files): Add m4/getloadavg.m4.
59661         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
59662         the former is now obsolescent.
59663
59664         * modules/chdir-long (Depends-on): Add fcntl.
59665
59666 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59667
59668         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
59669         obsolescent, and programs should use gnulib instead.
59670         * m4/getloadavg.m4: New file, with contents taken from Autoconf
59671         but with prefixes changed.
59672
59673 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
59674
59675         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
59676         or stdbool.h, because they might not exist while configuring.
59677
59678         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
59679         Don't include unistd.h or limits.h; not needed, since chdir-long.h
59680         does that for us.
59681         (O_DIRECTORY): Remove.
59682
59683 2006-08-31  Eric Blake  <ebb9@byu.net>
59684
59685         * gnulib-tool: Don't let emacs change spaces to TAB.
59686
59687 2006-08-31  Bruno Haible  <bruno@clisp.org>
59688
59689         * gnulib-tool: When calling func_import more than once, do it in a
59690         subshell.
59691         Reported by Eric Blake <ebb9@byu.net>.
59692
59693 2006-08-31  Bruno Haible  <bruno@clisp.org>
59694
59695         * gnulib-tool (nl): Remove variable.
59696         (sed_transform_lib_file): Use more robust test for config-h module.
59697         (func_import): Fix typo in 2006-08-25 patch.
59698
59699 2006-08-31  Bruno Haible  <bruno@clisp.org>
59700
59701         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
59702         specified, augment Makefile.am variables instead of assigning them.
59703
59704 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59705
59706         Work around a bug in both the Linux and SunOS 64-bit kernels:
59707         nanosleep mishandles sleeps for longer than 2**31 seconds.
59708         Problem reported by Frank v Waveren in
59709         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59710         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
59711         Check for nanosleep bug.
59712         (LIB_NANOSLEEP): Append clock_gettime library if needed.
59713
59714 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59715
59716         Work around a bug in both the Linux and SunOS 64-bit kernels:
59717         nanosleep mishandles sleeps for longer than 2**31 seconds.
59718         Problem reported by Frank v Waveren in
59719         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
59720         * lib/nanosleep.c (BILLION): New constant.
59721         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
59722         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
59723         implementation.
59724
59725 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59726
59727         * modules/nanosleep (Depends-on): Add gettime.
59728
59729 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
59730         and Simon Josefsson  <jas@extundo.com>
59731         and Oskar Liljeblad  <oskar@osk.mine.nu>
59732
59733         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
59734         * gnulib-tool (func_import): New license type 'unmodifiable license
59735         text'.
59736         * modules/fdl: Use it.  Longer description.
59737         * module/gpl, module/lgpl: New files.
59738
59739 2006-08-30  Jim Meyering  <jim@meyering.net>
59740
59741         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
59742         shadowing the parameter.
59743
59744 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59745
59746         Sync from Libtool:
59747
59748         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59749
59750         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
59751         sharing with gnulib.  Report by Eric Blake.
59752
59753 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59754
59755         * modules/isapipe: New file.
59756         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
59757
59758 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59759
59760         * modules/configmake (Makefile.am): Add a comment, and omit
59761         the CONFIGMAKE_ prefix from generated macro names.  Suggested
59762         by Bruno Haible.
59763
59764 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59765
59766         * m4/isapipe.m4: New file.
59767
59768 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
59769
59770         * lib/isapipe.c, lib/isapipe.h: New files.
59771
59772 2006-08-29  Jim Meyering  <jim@meyering.net>
59773
59774         * modules/configmake (Makefile.am): Make configmake.h depend on
59775         Makefile.  Otherwise, a stale configmake.h could hang around.
59776
59777 2006-08-29  Eric Blake  <ebb9@byu.net>
59778
59779         * lib/error.c (error_at_line, print_errno_message): Match libc, after
59780         resolution of upstream bug 3044.
59781
59782 2006-08-29  Bruno Haible  <bruno@clisp.org>
59783
59784         * modules/localcharset (Depends-on): Add configmake.
59785         (Makefile.am): Remove setting of LIBDIR through DEFS.
59786
59787 2006-08-29  Bruno Haible  <bruno@clisp.org>
59788
59789         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
59790         defined.
59791
59792 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59793
59794         * modules/fcntl: New file.
59795         * modules/chdir-safer (Depends-on): Add fcntl.
59796         * modules/fts: Likewise.
59797         * modules/mkdir-p: Likewise.
59798
59799         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
59800         This undoes the most recent change, since we're now addressing the
59801         problem in a different way.
59802
59803         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
59804         into output, since the output might be called Makefile.am even
59805         if $makefile_name is something different.
59806         (func_import): Use $makefile_am rather than
59807         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
59808         empty.
59809
59810         * modules/inttypes (Files): Add m4/inttypes-h.m4.
59811
59812 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59813
59814         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
59815         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
59816         recent change to stdint.m4, since we're now addressing the problem in a
59817         different way.
59818
59819 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59820
59821         * m4/fcntl_h.m4: New file.
59822
59823 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
59824
59825         * lib/fcntl_.h: New file.
59826         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
59827         the fcntl module.
59828         * lib/dirchownmod.c: Likewise.
59829         * lib/fts.c: Likewise.
59830
59831         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
59832         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
59833         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
59834         just before including <inttypes.h>, to avoid circular inclusion.
59835
59836 2006-08-28  Jim Meyering  <jim@meyering.net>
59837
59838         * doc/visibility.texi: Actually read and correct the grammar of the
59839         sentence affected by yesterday's change.
59840
59841 2006-08-28  Eric Blake  <ebb9@byu.net>
59842
59843         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
59844         needs wrapper.
59845
59846 2006-08-28  Eric Blake  <ebb9@byu.net>
59847
59848         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
59849
59850 2006-08-28  Eric Blake  <ebb9@byu.net>
59851
59852         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
59853
59854 2006-08-28  Bruno Haible  <bruno@clisp.org>
59855
59856         * modules/c-strstr: New file, from GNU gettext.
59857         * MODULES.html.sh (String handling): Add c-strstr.
59858
59859 2006-08-28  Bruno Haible  <bruno@clisp.org>
59860
59861         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
59862         macros.
59863         Reported by Eric Blake.
59864
59865 2006-08-28  Bruno Haible  <bruno@clisp.org>
59866
59867         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
59868         (VASNPRINTF): Return a string of length > INT_MAX without failing.
59869         * lib/vasprintf.c: Include errno.h, limits.h.
59870         (EOVERFLOW): New fallback definition.
59871         (vasprintf): Test here whether the string length is > INT_MAX.
59872         * lib/vsnprintf.c: Include errno.h, limits.h.
59873         (EOVERFLOW): New fallback definition.
59874         (vsnprintf): Fix bug when generated string was too long for the buffer.
59875         Test here whether the string length is > INT_MAX.
59876
59877 2006-08-28  Bruno Haible  <bruno@clisp.org>
59878
59879         * lib/inttypes_.h (SCNX*): Remove definitions.
59880         Reported by Eric Blake.
59881
59882 2006-08-28  Bruno Haible  <bruno@clisp.org>
59883
59884         * lib/c-strstr.h: New file, from GNU gettext.
59885         * lib/c-strstr.c: New file, from GNU gettext.
59886
59887 2006-08-28  Bruno Haible  <bruno@clisp.org>
59888
59889         * gnulib-tool: Reorder some statements.
59890
59891 2006-08-28  Bruno Haible  <bruno@clisp.org>
59892
59893         * gnulib-tool: New option --makefile-name.
59894         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
59895         $makefile_name.
59896         (func_import): Write $makefile_name to the cache file, and read it from
59897         there unless explicitly specified. Use $makefile_name as file name
59898         instead of Makefile.am. Adjust the recommendations accordingly.
59899
59900 2006-08-28  Bruno Haible  <bruno@clisp.org>
59901
59902         * gnulib-tool (func_verify_module): Check against misapplying patch.
59903
59904 2006-08-28  Bruno Haible  <bruno@clisp.org>
59905
59906         * gnulib-tool (func_relativize, func_relconcat): New functions.
59907         Give an error if --local-dir is given with --update.
59908         Remove trailing slashes from $local_gnulib_dir.
59909         (func_import): Store the relativized $local_gnulib_dir in
59910         gnulib-cache.m4, and read it from there if not specified explicitly.
59911
59912 2006-08-28  Bruno Haible  <bruno@clisp.org>
59913
59914         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
59915         is the current directory. Respect also $local_gnulib_dir.
59916
59917 2006-08-28  Bruno Haible  <bruno@clisp.org>
59918             Simon Josefsson  <jas@extundo.com>
59919
59920         BeOS portability.
59921         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
59922
59923 2006-08-27  Jim Meyering  <jim@meyering.net>
59924
59925         * doc/visibility.texi: Remove duplicate word: "pointer".
59926
59927 2006-08-26  Bruno Haible  <bruno@clisp.org>
59928
59929         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
59930         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
59931         (Makefile.am): Create inttypes.h from inttypes_.h.
59932         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
59933
59934         * modules/imaxabs: New file.
59935
59936         * modules/imaxdiv: New file.
59937
59938 2006-08-26  Bruno Haible  <bruno@clisp.org>
59939
59940         * m4/inttypes.m4: New file.
59941         * m4/_inttypes_h.m4: Remove file.
59942         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
59943         PRI_MACROS_BROKEN.
59944         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
59945
59946         * m4/imaxabs.m4: New file.
59947
59948         * m4/imaxdiv.m4: New file.
59949
59950 2006-08-26  Bruno Haible  <bruno@clisp.org>
59951
59952         * lib/inttypes_.h: New file.
59953         * lib/inttypes.h: Remove file.
59954         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
59955
59956         * lib/imaxabs.c: New file.
59957
59958         * lib/imaxdiv.c: New file.
59959
59960 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59961
59962         New config-h module, so that "make" output needn't be cluttered
59963         by -DHAVE_CONFIG_H.
59964         * MODULES.html.sh (Support for building libraries and executables):
59965         Add config-h.
59966         * modules/config-h: New file.
59967         * gnulib-tool (nl, sed_transform_lib_file): New vars.
59968         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
59969         the config-h module is used.
59970
59971         New configmake module, so that "make" output needn't be cluttered
59972         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
59973         * MODULES.html.sh (Support for building libraries and executables):
59974         Add configmake.
59975         * modules/configmake: New file.
59976
59977 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
59978
59979         * m4/config-h.m4: New file.
59980
59981 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59982
59983         * config/srclist.txt: Add elisp-comp.
59984
59985 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
59986
59987         * MODULES.html.sh (Support for building libraries and executables):
59988         Add elisp-comp.
59989         * build-aux/elisp-comp: New file.
59990         * modules/elisp-comp: New file.
59991
59992 2006-08-24  Bruno Haible  <bruno@clisp.org>
59993
59994         * gnulib-tool (func_create_testdir): Use non-default values of
59995         sourcebase and m4base.
59996
59997 2006-08-24  Bruno Haible  <bruno@clisp.org>
59998
59999         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
60000         HTML structure.
60001
60002 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
60003
60004         * modules/openat (Depends-on): Add lchown.
60005
60006 2006-08-23  Bruno Haible  <bruno@clisp.org>
60007
60008         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
60009         of gl_LOCK_EARLY instead of gl_LOCK.
60010
60011 2006-08-23  Bruno Haible  <bruno@clisp.org>
60012
60013         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
60014         on OSF/1 to no.
60015         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
60016
60017 2006-08-23  Bruno Haible  <bruno@clisp.org>
60018
60019         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
60020         as unusable.
60021
60022         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
60023         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
60024         (gl_LOCK): New macro.
60025
60026 2006-08-22  Simon Josefsson  <jas@extundo.com>
60027
60028         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
60029         to md5 module.
60030
60031 2006-08-22  Simon Josefsson  <jas@extundo.com>
60032
60033         * MODULES.html.sh: Add "Support for maintaining and release
60034         projects".
60035
60036         * build-aux/gnupload: New file, from coreutils.
60037
60038 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60039
60040         Avoid the need for AC_LIBSOURCES in m4 macros.
60041         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
60042         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
60043         * modules/check-version (EXTRA_DIST): Add check-version.h.
60044         * modules/crc (EXTRA_DIST): Add crc.h.
60045         * modules/des (EXTRA_DIST): Add des.h.
60046         * modules/gc (EXTRA_DIST): Add gc.h.
60047         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
60048         * modules/getline (EXTRA_DIST): Add getline.h.
60049         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
60050         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
60051         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
60052         * modules/md2 (EXTRA_DIST): Add md2.h.
60053         * modules/md4 (EXTRA_DIST): Add md4.h.
60054         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
60055         * modules/read-file (EXTRA_DIST): Add read-file.h.
60056         * modules/readline (EXTRA_DIST): Add readline.h.
60057         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
60058         rijndael-api-fst.h.
60059
60060 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60061
60062         * m4/rijndael.m4 (gl_ARCFOUR):
60063         * m4/arctwo.m4 (gl_ARCTWO):
60064         * m4/check-version.m4 (gl_CHECK_VERSION):
60065         * m4/crc.m4 (gl_CRC):
60066         * m4/des.m4 (gl_DES):
60067         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
60068         * m4/gc.m4 (gl_GC):
60069         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
60070         * m4/getline.m4 (gl_FUNC_GETLINE):
60071         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
60072         * m4/hmac-md5.m4 (gl_HMAC_MD5):
60073         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
60074         * m4/md2.m4 (gl_MD2):
60075         * m4/md4.m4 (gl_MD4):
60076         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
60077         * m4/read-file.m4 (gl_FUNC_READ_FILE):
60078         * m4/readline.m4 (gl_FUNC_READLINE):
60079         * m4/rijndael.m4 (gl_RIJNDAEL):
60080         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60081         to get the necessary .h files and whatnot.
60082
60083 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
60084
60085         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
60086         gnulib rather than the other way around.
60087         * config/srclistvars.sh (COREUTILS): Remove.
60088
60089 2006-08-22  Jim Meyering  <jim@meyering.net>
60090
60091         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
60092
60093         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
60094
60095 2006-08-22  Eric Blake  <ebb9@byu.net>
60096
60097         * modules/regexprops-generic: New file.
60098         * MODULES.html.sh (Support for building documentation): List it.
60099
60100 2006-08-22  Eric Blake  <ebb9@byu.net>
60101
60102         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
60103         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
60104         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
60105         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
60106
60107 2006-08-22  Bruno Haible  <bruno@clisp.org>
60108
60109         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
60110         and lib_LTLIBRARIES like the other lib_* variables.
60111
60112 2006-08-22  Bruno Haible  <bruno@clisp.org>
60113
60114         * build-aux/x-to-1.in: New file, from GNU gettext.
60115
60116 2006-08-22  Bruno Haible  <bruno@clisp.org>
60117
60118         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
60119         <utmpx.h> exists.
60120
60121 2006-08-22  Bruno Haible  <bruno@clisp.org>
60122
60123         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
60124         <utmpx.h> exists.
60125
60126 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60127
60128         BeOS portability.
60129         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
60130         exist.
60131         Problem reported by Bruno Haible.
60132
60133 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60134
60135         Avoid the need for AC_LIBSOURCES in m4 macros.
60136         * modules/acl (EXTRA_DIST): Add acl.h.
60137         * modules/argmatch (Files): Add m4/argmatch.m4.
60138         (configure.ac): Add gl_ARGMATCH.
60139         (EXTRA_DIST): Renamed from lib_SOURCES, for
60140         consistency with the other modules.  Remove argmatch.c.
60141         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
60142         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
60143         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
60144         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
60145         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
60146         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
60147         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
60148         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
60149         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
60150         * modules/closeout (EXTRA_DIST): Add closeout.h.
60151         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
60152         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
60153         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
60154         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
60155         dirname.h; remove basename.c and stripslash.c.
60156         * modules/exclude (EXTRA_DIST): Add exclude.h.
60157         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
60158         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
60159         * modules/file-type (EXTRA_DIST): Add file-type.h.
60160         * modules/filemode (EXTRA_DIST): Add filemode.h.
60161         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
60162         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60163         * modules/fpending (EXTRA_DIST): Add __fpending.h.
60164         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
60165         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
60166         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
60167         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
60168         * modules/getdate (EXTRA_DIST): Add getdate.c.
60169         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
60170         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
60171         * modules/getpass (EXTRA_DIST): Add getpass.h.
60172         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
60173         * modules/group-member (EXTRA_DIST): Add group-member.h.
60174         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
60175         * modules/hash (EXTRA_DIST): Add hash.h.
60176         * modules/human (EXTRA_DIST): Add human.h.
60177         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
60178         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
60179         * modules/lchown (EXTRA_DIST): Add lchown.h.
60180         * modules/long-options (EXTRA_DIST): Add long-options.h.
60181         * modules/lstat (EXTRA_DIST): Add lstat.h.
60182         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
60183         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
60184         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
60185         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
60186         * modules/memxor (EXTRA_DIST): Add memxor.h.
60187         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
60188         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
60189         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
60190         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
60191         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
60192         * modules/physmem (EXTRA_DIST): Add physmem.h.
60193         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
60194         * modules/posixver (EXTRA_DIST): Add posixver.h.
60195         * modules/quote (EXTRA_DIST): Add quote.h.
60196         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
60197         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
60198         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
60199         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
60200         regex_internal.h regexec.c.
60201         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
60202         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
60203         * modules/same (EXTRA_DIST): Add same.h.
60204         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
60205         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
60206         * modules/savedir (EXTRA_DIST): Add savedir.h.
60207         * modules/sha1 (EXTRA_DIST): Add sha1.h.
60208         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
60209         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
60210         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
60211         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
60212         * modules/strdup (EXTRA_DIST): Add strdup.h.
60213         * modules/strftime (EXTRA_DIST): Add strftime.h.
60214         * modules/strndup (EXTRA_DIST): Add strndup.h.
60215         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
60216         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
60217         * modules/time_r (EXTRA_DIST): Add time_r.h.
60218         * modules/timespec (EXTRA_DIST): Add timespec.h.
60219         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
60220         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
60221         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
60222         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
60223         * modules/userspec (EXTRA_DIST): Add userspec.h.
60224         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
60225         * modules/utimens (EXTRA_DIST): Add utimens.h.
60226         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
60227         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
60228         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
60229         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
60230         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
60231         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
60232         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
60233         * modules/yesno (EXTRA_DIST): Add yesno.h.
60234
60235 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
60236
60237         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
60238
60239         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
60240         * m4/dev-ino.m4, same-inode.m4: Remove.
60241
60242         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
60243         * m4/acl.m4 (AC_FUNC_ACL):
60244         * m4/backupfile.m4 (gl_BACKUPFILE):
60245         * m4/c-strtod.m4 (gl_C99_STRTOLD):
60246         * m4/canon-host.m4 (gl_CANON_HOST):
60247         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
60248         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
60249         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
60250         * m4/cloexec.m4 (gl_CLOEXEC):
60251         * m4/close-stream.m4 (gl_CLOSE_STREAM):
60252         * m4/closeout.m4 (gl_CLOSEOUT):
60253         * m4/dirfd.m4 (gl_FUNC_DIRFD):
60254         * m4/dirname.m4 (gl_DIRNAME):
60255         * m4/exclude.m4 (gl_EXCLUDE):
60256         * m4/exitfail.m4 (gl_EXITFAIL):
60257         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
60258         * m4/file-type.m4 (gl_FILE_TYPE):
60259         * m4/filemode.m4 (gl_FILEMODE):
60260         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
60261         * m4/fpending.m4 (gl_FUNC_FPENDING):
60262         * m4/fprintftime.m4 (gl_FPRINTFTIME):
60263         * m4/fts.m4 (gl_FUNC_FTS):
60264         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
60265         * m4/getdate.m4 (gl_GETDATE):
60266         * m4/gethrxtime.m4 (gl_GETHRXTIME):
60267         * m4/getpagesize.m4 (gl_GETPAGESIZE):
60268         * m4/getpass.m4 (gl_FUNC_GETPASS):
60269         * m4/gettime.m4 (gl_GETTIME):
60270         * m4/getugroups.m4 (gl_GETUGROUPS):
60271         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
60272         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
60273         * m4/hard-locale.m4 (gl_HARD_LOCALE):
60274         * m4/hash.m4 (gl_HASH):
60275         * m4/idcache.m4 (gl_IDCACHE):
60276         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
60277         * m4/lchown.m4 (gl_FUNC_LCHOWN):
60278         * m4/long-options.m4 (gl_LONG_OPTIONS):
60279         * m4/lstat.m4 (gl_FUNC_LSTAT):
60280         * m4/md5.m4 (gl_MD5):
60281         * m4/memcasecmp.m4 (gl_MEMCASECMP):
60282         * m4/memcoll.m4 (gl_MEMCOLL):
60283         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
60284         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
60285         * m4/memxor.m4 (gl_MEMXOR):
60286         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
60287         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
60288         * m4/modechange.m4 (gl_MODECHANGE):
60289         * m4/mountlist.m4 (gl_MOUNTLIST):
60290         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60291         * m4/openat.m4 (gl_FUNC_OPENAT):
60292         * m4/pathmax.m4 (gl_PATHMAX):
60293         * m4/physmem.m4 (gl_PHYSMEM):
60294         * m4/posixtm.m4 (gl_POSIXTM):
60295         * m4/posixver.m4 (gl_POSIXVER):
60296         * m4/quote.m4 (gl_QUOTE):
60297         * m4/quotearg.m4 (gl_QUOTEARG):
60298         * m4/readtokens.m4 (gl_READTOKENS):
60299         * m4/readutmp.m4 (gl_READUTMP):
60300         * m4/regex.m4 (gl_REGEX):
60301         * m4/safe-read.m4 (gl_SAFE_READ):
60302         * m4/safe-write.m4 (gl_SAFE_WRITE):
60303         * m4/same.m4 (gl_SAME):
60304         * m4/save-cwd.m4 (gl_SAVE_CWD):
60305         * m4/savedir.m4 (gl_SAVEDIR):
60306         * m4/settime.m4 (gl_SETTIME):
60307         * m4/sha1.m4 (gl_SHA1):
60308         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
60309         * m4/stat-macros.m4 (gl_STAT_MACROS):
60310         * m4/stat-time.m4 (gl_STAT_TIME):
60311         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
60312         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
60313         * m4/strdup.m4 (gl_FUNC_STRDUP):
60314         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
60315         * m4/strndup.m4 (gl_FUNC_STRNDUP):
60316         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
60317         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
60318         * m4/time_r.m4 (gl_TIME_R):
60319         * m4/timespec.m4 (gl_TIMESPEC):
60320         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
60321         * m4/unlinkdir.m4 (gl_UNLINKDIR):
60322         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
60323         * m4/userspec.m4 (gl_USERSPEC):
60324         * m4/utimecmp.m4 (gl_UTIMECMP):
60325         * m4/utimens.m4 (gl_UTIMENS):
60326         * m4/xalloc.m4 (gl_XALLOC):
60327         * m4/xgetcwd.m4 (gl_XGETCWD):
60328         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
60329         * m4/xreadlink.m4 (gl_XREADLINK):
60330         * m4/xstrtod.m4 (gl_XSTRTOD):
60331         * m4/yesno.m4 (gl_YESNO):
60332         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
60333         to get the necessary .h files and whatnot.
60334
60335 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
60336             Bruno Haible  <bruno@clisp.org>
60337
60338         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
60339         /bin/sh understanding of '!' conditional negation.
60340
60341 2006-08-21  Jim Meyering  <jim@meyering.net>
60342
60343         * modules/openat (Depends-on): Really alphabetize.
60344
60345         * modules/acl (Depends-on): Add error and quote.
60346
60347         * check-module (find_included_lib_files): Add at-func.c to the
60348         ok-to-include-more-than-once white list.
60349
60350         * modules/openat (Depends-on): Add lstat.  Alphabetize.
60351
60352 2006-08-21  Bruno Haible  <bruno@clisp.org>
60353
60354         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60355         Emit a pkgdata_DATA variable only if some snippets add contents to it.
60356         Reported by Martin Lambers <marlam@marlam.de>.
60357
60358 2006-08-21  Bruno Haible  <bruno@clisp.org>
60359
60360         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
60361         specify an installation location, don't emit a noinst_LIBRARIES or
60362         noinst_LTLIBRARIES assignment.
60363
60364 2006-08-21  Bruno Haible  <bruno@clisp.org>
60365
60366         BeOS portability.
60367         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
60368         BeOS has mbrtowc() but no <wctype.h>.
60369
60370 2006-08-21  Bruno Haible  <bruno@clisp.org>
60371
60372         BeOS portability.
60373         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
60374         exist.
60375
60376 2006-08-21  Bruno Haible  <bruno@clisp.org>
60377
60378         BeOS portability.
60379         * lib/mbchar.h: Include <wctype.h> only if it exists.
60380
60381 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60382
60383         Remove files that are no longer needed by their respective modules.
60384         * m4/obstack.m4: Remove.
60385         * m4/strerror_r.m4: Remove.
60386         * m4/uint32_t.m4: Remove.
60387         * m4/uintptr_t.m4: Remove.
60388         * m4/ullong_max.m4: Remove.
60389         * m4/xstrtoimax.m4: Remove.
60390         * m4/xstrtoumax.m4: Remove.
60391
60392         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
60393         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
60394         dependencies now capture this.
60395
60396         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
60397         Do not use AC_LIBSOURCES, since gnulib modules now do this.
60398         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
60399         * m4/human.m4 (gl_HUMAN): Likewise.
60400         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
60401         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
60402
60403         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
60404
60405         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
60406         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
60407         stdint.
60408         * m4/human.m4 (gl_HUMAN): Likewise.
60409         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
60410         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
60411         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60412         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60413         * m4/xstrtol (gl_XSTRTOL): Likewise.
60414
60415         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
60416         AC_TYPE_LONG_LONG_INT.
60417         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
60418         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
60419         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
60420         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
60421
60422         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
60423         on stdbool.
60424
60425         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
60426         (gl_PREREQ_XSTRTOUL): Remove.
60427
60428         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
60429
60430         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
60431         mode.
60432
60433 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60434
60435         Add and change modules to make it easier for coreutils to use
60436         gnulib-tool.
60437         * modules/backupfile (Files): Remove m4/d-ino.m4.
60438         (Depends-on): Add d-ino.
60439         * modules/cycle-check (Depends-on): Add stdint.
60440         (lib_SOURCES): Add cycle-check.h.
60441         * modules/d-ino: New module.
60442         * modules/d-type: New module.
60443         * modules/error (Files): Remove m4/strerror_r.m4.
60444         * modules/filemode (Files): Add m4/st_dm_mode.m4.
60445         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
60446         m4/inttypes_h.m4, m4/uintmax_t.m4.
60447         (Depends-on): Add stdint.
60448         (lib_SOURCES): Add fsusage.h.
60449         * modules/getcwd (Files): Remove d-ino.m4.
60450         (Depends-on): Add d-ino.
60451         * modules/getndelim2 (Depends-on): Add stdint.
60452         * modules/glob (Files): Remove m4/d-type.m4.
60453         (Depends-on): Add d-type.
60454         * modules/host-os: New module.
60455         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
60456         m4/inttypes_h.m4, m4/uintmax_t.m4.
60457         * Depends-on: Add stdint.
60458         (lib_SOURCES): Add human.h.
60459         * modules/inttostr (Files): Remove m4/intmax_t.m4,
60460         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
60461         m4/uintmax_t.m4, m4/ulonglong.m4.
60462         (Depends-on): Add stdint.
60463         (EXTRA_DIST): Add inttostr.h.
60464         * modules/lchmod: New module.
60465         * modules/link-follow: New module.
60466         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
60467         (Depends-on): Add lchmod.
60468         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
60469         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
60470         (Depends-on): Add stdint.
60471         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
60472         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
60473         (Depends-on): Add stdint.
60474         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
60475         * modules/perl: New module.
60476         * modules/regex (Depends-on): Add stdint.
60477         * modules/rmdir-errno: New module.
60478         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60479         m4/intmax_t.m4.
60480         (Depends-on): Add stdint.
60481         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
60482         m4/uintmax_t.m4.
60483         (Depends-on): Add stdint.
60484         * modules/unlink-busy: New module.
60485         * modules/utimecmp (Depends-on): Add stdint.
60486         * modules/uptime: New module.
60487         * modules/winsz-ioctl: New module.
60488         * modules/winsz-termios: New module.
60489         * modules/xnanosleep (Depends-on): Add nanosleep.
60490         * modules/ullong_max: Remove.
60491         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
60492         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
60493         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
60494         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
60495         (Depends-on): Add inttypes.
60496         (lib_SOURCES): Add xstrtol.h.
60497         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
60498         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
60499         * MODULES.html.sh: Move 'assert' into the assert section.
60500         Move 'dummy' into the linking section.
60501         Remove ullong_max.
60502         Add section for compatibility checks for POSIX:2001 functions,
60503         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
60504         winsz-ioctl, and winsz-termios into it.
60505         Add lchmod.
60506         Add top-level Misc section and put host-os, perl, and uptime
60507         into it.
60508
60509 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
60510
60511         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
60512         now assume the stdint module.  Do not include inttypes.h.
60513         * lib/fsusage.h: Likewise.
60514         * lib/getndelim2.c: Likewise.
60515         * lib/human.h: Likewise.
60516         * lib/inttostr.h: Likewise.
60517         * lib/obstack.c: Likewise.
60518         * lib/regex_internal.h: Likewise.
60519         * lib/tempname.c: Likewise.
60520         * lib/utimecmp.c: Likewise.
60521         * lib/xstrtol.h: Likewise.
60522
60523         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
60524
60525         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
60526         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
60527         * lib/xtime.h: Likewise.
60528
60529 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60530
60531         * modules/openat (Files): Add lib/fchmodat.c.
60532         Fixes problem reported by Jay Youngman.
60533
60534 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60535
60536         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
60537         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
60538
60539 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
60540             Bruno Haible  <bruno@clisp.org>
60541
60542         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
60543         and is a script that invokes bison. Tighten the code. Add comments.
60544
60545 2006-08-18  Jim Meyering  <jim@meyering.net>
60546
60547         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
60548         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
60549         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
60550         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
60551
60552 2006-08-18  Bruno Haible  <bruno@clisp.org>
60553
60554         * modules/bison-i18n: New file.
60555         * MODULES.html.sh (Internationalization functions): Add it.
60556
60557 2006-08-18  Bruno Haible  <bruno@clisp.org>
60558
60559         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
60560         sys/statvfs.h. When getmntinfo was found, check its declaration and
60561         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
60562
60563 2006-08-18  Bruno Haible  <bruno@clisp.org>
60564
60565         * m4/bison-i18n.m4: New file, from bison.
60566
60567 2006-08-18  Bruno Haible  <bruno@clisp.org>
60568
60569         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
60570         (ME_DUMMY): Treat "kernfs" as a dummy.
60571         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
60572
60573 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60574
60575         Update from coreutils.
60576
60577         2006-08-15  Jim Meyering  <jim@meyering.net>
60578
60579         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
60580
60581         2006-01-17  Jim Meyering  <jim@meyering.net>
60582
60583         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
60584
60585         2006-01-11  Jim Meyering  <jim@meyering.net>
60586
60587         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
60588         Check for the lchmod function.
60589
60590 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60591
60592         Update from coreutils.
60593
60594         * lib/__fpending.h: Add copyright notice.
60595         * lib/fprintftime.h: Likewise.
60596         * lib/savedir.c: Use (C) in copyright notice.
60597         * lib/savedir.h: Likewise.
60598
60599         2006-08-15  Jim Meyering  <jim@meyering.net>
60600
60601         * lib/at-func.c: New file, with the logic of all emulated at-functions.
60602         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
60603         in support of the EXPECTED_ERRNO macro.
60604         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
60605         definitions.  Instead, define the appropriate symbols and include
60606         "at-func.c".
60607         * lib/mkdirat.c (mkdirat): Likewise.
60608         * lib/fchmodat.c (fchmodat): Likewise.
60609         (ENOSYS): Remove definition.
60610         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
60611         it.  Don't include "unistd--.h" -- it wasn't ever used.
60612
60613         2006-01-17  Jim Meyering  <jim@meyering.net>
60614
60615         Rewrite fts.c not to change the current working directory,
60616         by using openat, fstatat, fdopendir, etc..
60617
60618         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
60619         (HAVE_OPENAT_SUPPORT): Define.
60620         [_LIBC] (fchdir): Don't undef or define; no longer used.
60621         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
60622         Now, this `function' always succeeds, and consumes its file descriptor
60623         parameter -- so callers must not close such FDs.  Update callers.
60624         (diropen_fd, opendirat, cwd_advance_fd): New functions.
60625         (diropen): Add parameter, SP.  Adjust all callers.
60626         Implement using diropen_fd, rather than open.
60627         (fts_open): Initialize new member, fts_cwd_fd.
60628         Remove fts_rft-setting code.
60629         (fts_close): Close fts_cwd_fd, if necessary.
60630         (__opendir2): Define in terms of opendir or opendirat,
60631         depending on whether the FST_NOCHDIR flag is set.
60632         (fts_build): Since fts_safe_changedir consumes its FD, and since
60633         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
60634         and close the dup'd file descriptor upon failure.
60635         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
60636         (fts_safe_changedir): Tweak semantics to reflect that this function
60637         now calls cwd_advance_fd and hence consumes its FD argument.
60638         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
60639         [struct FTS] (fts_rft): Remove now-unused member.
60640         [struct FTS] (fts_cycle.state): Improve comment.
60641
60642         * lib/openat.c (openat_needs_fchdir): New function.
60643         * lib/openat.h (openat_needs_fchdir): Declare it.
60644
60645 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
60646
60647         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
60648         Problem and fix reported by Pádraig Brady in
60649         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
60650
60651 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60652
60653         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
60654
60655 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60656
60657         * lib/memcoll.c (memcoll): Optimize for the common case where the
60658         arguments are bytewise equal.
60659
60660 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
60661
60662         * doc/regexprops-generic.texi: Add a copyright notice.
60663
60664 2006-08-15  Bruno Haible  <bruno@clisp.org>
60665
60666         * modules/tmpdir (License): Change to LGPL.
60667
60668 2006-08-15  Bruno Haible  <bruno@clisp.org>
60669
60670         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
60671         module.
60672
60673 2006-08-14  Simon Josefsson  <jas@extundo.com>
60674
60675         * config/srclist.txt: Add gnupload.
60676
60677 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60678
60679         Change copyright notice from LGPL 2 to GPL 2, since that's the
60680         standard form used in the gnulib repository.
60681         * tests/test-lock.c: Likewise.
60682         * tests/test-stdint.c: Likewise.
60683         * tests/test-tls.c: Likewise.
60684
60685         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
60686         prelude-manager.  User shorter URLs for GNU projects, without '?'.
60687         Add copyright notice.
60688
60689         * check-module: Add copyright notice.  Output a copyright
60690         notice if "--version" is specified.
60691         * modules/COPYING: New file.
60692         * tests/test-getaddrinfo.c: Add copyright notice.
60693         * tests/test-verify.c: Likewise.
60694
60695 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60696
60697         Change copyright notice from LGPL 2 to GPL 2, since that's the
60698         standard form used in the gnulib repository.
60699         * lib/lock.c: LGPL -> GPL.
60700         * lib/lock.h: Likewise.
60701         * lib/strnlen1.c: Likewise.
60702         * lib/strnlen1.h: Likewise.
60703         * lib/tls.c: Likewise.
60704         * lib/tls.h: Likewise.
60705         * lib/tmpdir.c: Likewise.
60706
60707         * lib/TODO: Remove; this belongs only in coreutils.
60708
60709 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60710
60711         Add copyright notices to long-enough files that lack them, since
60712         otherwise the files aren't clearly free.  Use the same notice that
60713         getdate.texi already uses.
60714         * doc/alloca-opt.texi: Add copyright notice.
60715         * doc/alloca.texi: Likewise.
60716         * doc/ctime.texi: Likewise.
60717         * doc/functions.texi: Likewise.
60718         * doc/gcd.texi: Likewise.
60719         * doc/gnulib-tool.texi: Likewise.
60720         * doc/inet_ntoa.texi: Likewise.
60721         * doc/visibility.texi: Likewise.
60722
60723         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
60724         * doc/quote.texi: Add copyright notice.
60725
60726         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
60727         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
60728         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
60729         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
60730         is now obsolete, and give a pointer to the Sun list.
60731         Add copyright notice.
60732
60733 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
60734
60735         * config/srclistvars.sh: Add copyright notice.
60736
60737 2006-08-14  Eric Blake  <ebb9@byu.net>
60738
60739         Import the following change from libc:
60740
60741         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
60742
60743         Upstream bug 2997.
60744         * lib/misc/error.c: Add space between program name and message if file
60745         name is missing.
60746
60747 2006-08-12  Karl Berry  <karl@gnu.org>
60748
60749         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
60750         remove, these originate in gnulib now.
60751
60752 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60753
60754         * doc/Makefile (standards.info standards.html standards.dvi):
60755         Also depend on make-stds.texi.
60756
60757 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
60758
60759         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
60760         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
60761
60762         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
60763         in wchar_t.  Problem reported by Eric Blake.
60764
60765         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
60766         LEN is smaller than SIZE.  Suggested by Bruno Haible.
60767         Also, help the compiler to keep LEN in a register.
60768
60769 2006-08-11  Eric Blake  <ebb9@byu.net>
60770
60771         * users.txt: Sort.  Add tar.
60772
60773 2006-08-11  Bruno Haible  <bruno@clisp.org>
60774
60775         * users.txt: New file.
60776
60777 2006-08-11  Bruno Haible  <bruno@clisp.org>
60778
60779         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
60780         before <wchar.h>. Needed for OSF/1 and BSD/OS.
60781
60782 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60783
60784         * modules/snprintf (Depends-on): Remove minmax.
60785         (Maintainer): Add self and Bruno.
60786
60787 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
60788
60789         * lib/.cppi-disable: Add snprintf.h, socket_.h.
60790         * lib/snprintf.c: Include <errno.h> and <limits.h>.
60791         (EOVERFLOW): Define if the system does not.
60792         Do not include "minmax.h"; it wasn't used.
60793         (snprintf): Don't assume size_t promotes to an unsigned type.
60794         Fix bug when generated string was too long for the buffer: the
60795         buffer's contents are supposed to be the initial prefix of the
60796         output.  Don't assume vasnprintf returns EOVERFLOW if the size
60797         exceeds INT_MAX; do the check ourselves.
60798
60799         Import the following changes from libc:
60800
60801         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
60802
60803         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
60804         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
60805         set wc to the byte which couldn't be converted.
60806         (re_string_reconstruct): Don't clear valid_raw_len before calling
60807         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
60808         tip_context using re_string_context_at.
60809
60810         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
60811
60812         * lib/posix/regex.h: g++ still cannot handled [restrict].
60813
60814         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
60815
60816         * lib/posix/regex.h: Remove special handling for VMS.
60817
60818 2006-08-10  Jim Meyering  <jim@meyering.net>
60819
60820         * modules/same-inode: New module.
60821         * modules/dev-ino: New module.
60822         * modules/cycle-check: Depend on these modules, rather than simply
60823         including their .h files.
60824         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
60825         required via m4/cycle-check.m4.
60826         * modules/same: Depend on new same-inode module, rather than
60827         including same-inode.h.
60828         * modules/chdir-safer: New file.
60829
60830         * modules/chown (Depends-on): Add stat-macros.
60831
60832 2006-08-10  Jim Meyering  <jim@meyering.net>
60833
60834         * m4/cycle-check.m4: New file.
60835         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
60836         * m4/dev-ino.m4, m4/same-inode.m4: New files.
60837
60838 2006-08-10  Eric Blake  <ebb9@byu.net>
60839
60840         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
60841         in from original proposal.
60842
60843 2006-08-10  Eric Blake  <ebb9@byu.net>
60844         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
60845
60846         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
60847         namespace.
60848
60849 2006-08-10  Bruno Haible  <bruno@clisp.org>
60850
60851         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
60852         as well.
60853
60854 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60855
60856         Sync from coreutils.
60857
60858         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
60859
60860         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
60861         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
60862
60863 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60864
60865         * modules/restrict: Remove; no longer needed now that we assume
60866         Autoconf 2.59 or later.
60867         * MODULES.html.sh: Remove 'restrict'.
60868         * modules/argp (Depends-on): Remove 'restrict'.
60869         * modules/base64 (Depends-on): Likewise.
60870         * modules/gc (Depends-on): Likewise.
60871         * modules/getaddrinfo (Depends-on): Likewise.
60872         * modules/glob (Depends-on): Likewise.
60873         * modules/inet_ntop (Depends-on): Likewise.
60874         * modules/inet_pton (Depends-on): Likewise.
60875         * modules/memxor (Depends-on): Likewise.
60876         * modules/regex (Depends-on): Likewise.
60877         * modules/strtok_r (Depends-on): Likewise.
60878         * modules/time_r (Depends-on): Likewise.
60879
60880 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60881
60882         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
60883         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
60884         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
60885         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
60886         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
60887         * m4/memxor.m4 (gl_MEMXOR): Likewise.
60888         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
60889         gl_C_RESTRICT replaced by AC_C_RESTRICT.
60890
60891         Merge from coreutils.
60892         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
60893         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
60894         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60895         * m4/time_r.m4 (gl_TIME_R): Likewise.
60896
60897 2006-08-09  Karl Berry  <karl@gnu.org>
60898
60899         * config/srclist.txt: no more gettext-tools, per Bruno.
60900
60901 2006-08-08  Eric Blake  <ebb9@byu.net>
60902
60903         * modules/verror: New module.
60904         * MODULES.html.sh: Document it.
60905
60906 2006-08-08  Eric Blake  <ebb9@byu.net>
60907
60908         * lib/verror.h, lib/verror.c: New files.
60909
60910 2006-08-08  Eric Blake  <ebb9@byu.net>
60911
60912         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
60913         verror_at_line output complies with GNU Coding Standards even when
60914         file is NULL.
60915
60916 2006-08-07  Bruno Haible  <bruno@clisp.org>
60917
60918         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
60919         versions of AIX.
60920         Reported by Ralf Wildenhues.
60921
60922 2006-08-07  Bruno Haible  <bruno@clisp.org>
60923
60924         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
60925         in an AC_DEFUN. Needed so that the autoconf snippets can use
60926         AC_REQUIRE.
60927
60928 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60929
60930         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60931         Initialize pkgdata_DATA.
60932         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
60933         overriding it.
60934
60935 2006-08-06  Eric Blake  <ebb9@byu.net>
60936
60937         * lib/error.h: Fold in some upstream changes from glibc.
60938         * lib/error.c: Likewise.
60939
60940 2006-08-04  Bruno Haible  <bruno@clisp.org>
60941
60942         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60943         Make the mostlyclean-local rule depend on mostlyclean-generic.
60944         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
60945
60946 2006-07-31  Bruno Haible  <bruno@clisp.org>
60947
60948         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
60949         <stdlib.h>, <string.h>.
60950
60951 2006-07-30  Bruno Haible  <bruno@clisp.org>
60952
60953         * modules/readlink (License): Change to LGPL.
60954
60955 2006-07-30  Bruno Haible  <bruno@clisp.org>
60956
60957         * modules/javaversion (Makefile.am): Distribute javaversion.java and
60958         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
60959         set PKGDATADIR to point to it.
60960
60961 2006-07-30  Bruno Haible  <bruno@clisp.org>
60962
60963         * modules/csharpexec (configure.ac): Comment out macro invocation.
60964         * modules/javaexec (configure.ac): Likewise.
60965         * modules/javacomp-script (configure.ac): Likewise.
60966
60967         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
60968
60969 2006-07-30  Bruno Haible  <bruno@clisp.org>
60970
60971         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
60972         linked-list.
60973
60974 2006-07-30  Bruno Haible  <bruno@clisp.org>
60975
60976         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
60977
60978 2006-07-30  Bruno Haible  <bruno@clisp.org>
60979
60980         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60981         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
60982         get removed.
60983
60984 2006-07-29  Bruno Haible  <bruno@clisp.org>
60985
60986         Make it possible for gnulib-tool to work with locally modified or
60987         augmented gnulib repositories.
60988         * gnulib-tool (func_usage): Document --local-dir option.
60989         (local_gnulib_dir): New variable.
60990         Handle --local-dir option.
60991         (func_lookup_file): New function.
60992         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
60993         (func_get_description, func_get_filelist, func_get_description,
60994         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
60995         func_get_automake_snippet, func_get_include_directive,
60996         func_get_license, func_get_maintainer): Use func_lookup_file.
60997         (func_import, func_create_testdir): Use func_lookup_file.
60998
60999 2006-07-29  Bruno Haible  <bruno@clisp.org>
61000
61001         * modules/setenv (Depends-on): Add unistd.
61002
61003 2006-07-29  Bruno Haible  <bruno@clisp.org>
61004
61005         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
61006
61007 2006-07-29  Bruno Haible  <bruno@clisp.org>
61008
61009         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
61010
61011 2006-07-29  Bruno Haible  <bruno@clisp.org>
61012
61013         * gnulib-tool (import, update): If there is no Makefile.am, look at
61014         aclocal.m4, instead of bailing out.
61015
61016 2006-07-29  Bruno Haible  <bruno@clisp.org>
61017
61018         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
61019         Categorize the options by when they are useful.
61020
61021 2006-07-29  Bruno Haible  <bruno@clisp.org>
61022
61023         * gnulib-tool (func_usage): Document option --no-libtool.
61024         Handle option --no-libtool.
61025         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
61026         for changed semantics of $libtool variable.
61027         (func_import): Likewise. If libtool is not used, show this through
61028         an option --no-libtool.
61029         (func_create_testdir): Update.
61030
61031 2006-07-29  Bruno Haible  <bruno@clisp.org>
61032
61033         * gnulib-tool (func_import): Extend error message about missing
61034         --doc-base.
61035
61036 2006-07-29  Bruno Haible  <bruno@clisp.org>
61037
61038         * gnulib-tool (func_import): Don't create the $docbase directory if
61039         there is no file to store there.
61040
61041 2006-07-29  Bruno Haible  <bruno@clisp.org>
61042
61043         * gnulib-tool (autoconf_minversion): If a --dir option is given and
61044         relevant, look for configure.ac there, not in the current directory.
61045         Also use a simple search for AC_PREREQ, not "autoconf --trace".
61046
61047 2006-07-29  Bruno Haible  <bruno@clisp.org>
61048
61049         * gnulib-tool (SORT): New variable.
61050         (func_usage): Undocument --assume-autoconf option.
61051         Remove --assume-autoconf option handling.
61052         (autoconf_minversion): Determine from the contents of configure.ac.
61053         (func_import): Remove autoconf_minversion handling.
61054         Suggested by Eric Blake.
61055
61056 2006-07-29  Bruno Haible  <bruno@clisp.org>
61057
61058         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
61059
61060 2006-07-29  Bruno Haible  <bruno@clisp.org>
61061
61062         * config/srclist.txt (*setenv.[ch]): Remove rules.
61063
61064 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61065
61066         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
61067
61068 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61069
61070         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
61071         arpa/inet.h.
61072
61073 2006-07-28  Simon Josefsson  <jas@extundo.com>
61074
61075         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
61076         * modules/inet_pton (Depends-on): Likewise.
61077
61078 2006-07-28  Simon Josefsson  <jas@extundo.com>
61079
61080         * m4/netinet_in_h.m4: New file.
61081
61082 2006-07-28  Simon Josefsson  <jas@extundo.com>
61083
61084         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
61085         #include's.
61086
61087 2006-07-28  Simon Josefsson  <jas@extundo.com>
61088
61089         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
61090         #include's.
61091
61092 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
61093
61094         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
61095         setgid on directories only if they set these bits.
61096         * lib/modechange.h: Remove obsolete comment about masks.
61097
61098 2006-07-28  Eric Blake  <ebb9@byu.net>
61099
61100         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
61101         macro expansion.
61102
61103 2006-07-28  Bruno Haible  <bruno@clisp.org>
61104
61105         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
61106
61107 2006-07-28  Bruno Haible  <bruno@clisp.org>
61108
61109         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
61110
61111 2006-07-28  Bruno Haible  <bruno@clisp.org>
61112
61113         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
61114         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
61115         Define fallbacks.
61116         Avoids link error on FreeBSD 4.x.
61117         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61118
61119         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
61120         encoding.
61121         * lib/mbswidth.c (iswcntrl): Likewise.
61122
61123 2006-07-27  Bruno Haible  <bruno@clisp.org>
61124
61125         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
61126         test.
61127
61128 2006-07-27  Bruno Haible  <bruno@clisp.org>
61129
61130         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
61131         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
61132         defined.
61133
61134 2006-07-26  Eric Blake  <ebb9@byu.net>
61135
61136         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
61137
61138 2006-07-26  Eric Blake  <ebb9@byu.net>
61139
61140         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
61141         like mingw that lack mkstemp.
61142         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
61143         avoid compilation warning on mingw.
61144
61145 2006-07-26  Bruno Haible  <bruno@clisp.org>
61146
61147         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
61148         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
61149         INT_FAST*_MIN, INTPTR_MIN.
61150
61151 2006-07-25  Bruno Haible  <bruno@clisp.org>
61152
61153         * modules/version-etc (Depends-on): Add stdarg.
61154
61155 2006-07-25  Bruno Haible  <bruno@clisp.org>
61156
61157         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
61158         complex commands.
61159
61160 2006-07-25  Bruno Haible  <bruno@clisp.org>
61161
61162         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
61163         defined in <stdarg.h> or config.h.
61164
61165 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
61166
61167         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
61168         (gl_STDIO_SAFER): Remove.
61169
61170 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
61171
61172         * MODULES.html.sh (File stream based Input/Output):
61173         Add fopen-safer, tmpfile-safer; remove stdio-safer.
61174         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
61175         * modules/fopen-safer, modules/tmpfile-safer: New files.
61176         * modules/stdio-safer: Remove.
61177
61178 2006-07-24  Bruno Haible  <bruno@clisp.org>
61179
61180         * modules/tmpdir: New file.
61181         * MODULES.html.sh (File system functions): Add it.
61182
61183 2006-07-24  Bruno Haible  <bruno@clisp.org>
61184
61185         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
61186         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
61187
61188 2006-07-24  Bruno Haible  <bruno@clisp.org>
61189
61190         * modules/clean-temp: New file.
61191
61192 2006-07-24  Bruno Haible  <bruno@clisp.org>
61193
61194         * m4/tmpdir.m4: New file, from GNU gettext.
61195
61196 2006-07-24  Bruno Haible  <bruno@clisp.org>
61197
61198         * lib/tmpdir.h: New file, from GNU gettext.
61199         * lib/tmpdir.c: New file, from GNU gettext.
61200
61201 2006-07-24  Bruno Haible  <bruno@clisp.org>
61202
61203         * lib/clean-temp.h: New file, from GNU gettext.
61204         * lib/clean-temp.c: New file, from GNU gettext.
61205
61206 2006-07-23  Eric Blake  <ebb9@byu.net>
61207
61208         * modules/stdio-safer (Files): Add tmpfile-safer.c.
61209         (Depends-on): Add binary-io.
61210
61211 2006-07-23  Eric Blake  <ebb9@byu.net>
61212
61213         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
61214
61215 2006-07-23  Eric Blake  <ebb9@byu.net>
61216
61217         * lib/tmpfile-safer.c: New file.
61218         * lib/stdio-safer.h (fopen_safer): Add prototype.
61219         * lib/stdio--.h (tmpfile): Make safer.
61220
61221 2006-07-23  Bruno Haible  <bruno@clisp.org>
61222
61223         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
61224         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
61225         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
61226         gl_linked_remove_at): Use it.
61227
61228 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61229         and Simon Josefsson <jas@extundo.com>
61230
61231         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
61232
61233         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
61234
61235 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61236
61237         * modules/close-stream: New file.
61238         * modules/closeout (Description): Make it clear that it exits
61239         with a diagnostic on error.
61240         (Depends-on): Add close-stream.  Remove fpending, stdbool.
61241         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
61242
61243 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61244
61245         * m4/close-stream.m4: New file.
61246
61247 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61248
61249         * lib/close-stream.c, lib/close-stream.h: New files.
61250
61251 2006-07-22  Bruno Haible  <bruno@clisp.org>
61252
61253         Merge from GNU gettext 0.15.
61254
61255         2006-05-01  Bruno Haible  <bruno@clisp.org>
61256
61257                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
61258
61259         2006-07-22  Bruno Haible  <bruno@clisp.org>
61260
61261                 * modules/javaversion: New file.
61262                 * MODULES.html.sh (Java): Add javaversion.
61263
61264         2006-03-12  Bruno Haible  <bruno@clisp.org>
61265
61266                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
61267
61268         2005-12-04  Bruno Haible  <bruno@clisp.org>
61269
61270                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
61271                 (untested).
61272
61273         2006-06-21  Bruno Haible  <bruno@clisp.org>
61274
61275                 Avoid warnings from recent versions of mcs.
61276                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
61277                 -o, -L, -r any more. Use options documented since mcs-1.0
61278                 instead. Similarly for -g.
61279
61280         2005-12-04  Bruno Haible  <bruno@clisp.org>
61281
61282                 * build-aux/csharpcomp.sh.in: Suffix for resources is
61283                 .resources, not .resource.
61284
61285         2005-07-09  Bruno Haible  <bruno@clisp.org>
61286
61287                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
61288                 add a .dll suffix.
61289                 Reported by Mark Junker <mjscod@gmx.de>.
61290
61291         2006-07-22  Bruno Haible  <bruno@clisp.org>
61292
61293                 * modules/gettext: Upgrade to gettext-0.15.
61294                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
61295                 m4/visibility.m4.
61296                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
61297
61298 2006-07-22  Bruno Haible  <bruno@clisp.org>
61299
61300         Merge from GNU gettext 0.15.
61301
61302         2006-03-25  Bruno Haible  <bruno@clisp.org>
61303
61304                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
61305
61306         2006-07-21  Bruno Haible  <bruno@clisp.org>
61307
61308                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
61309                 "1.1".
61310
61311         2006-05-09  Bruno Haible  <bruno@clisp.org>
61312
61313                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
61314                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
61315                 for the conftestver execution.
61316
61317         2006-05-01  Bruno Haible  <bruno@clisp.org>
61318
61319                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
61320                 optional target-version argument. Verify that the compiler
61321                 groks source of the specified source-version, or add -source
61322                 option as necessary. Verify that the compiler produces
61323                 bytecode in the specified target-version, or add -target and
61324                 -source options as necessary. Make the result of the test
61325                 available as variable CONF_JAVAC. Also log error output in
61326                 config.log.
61327
61328         2006-03-11  Bruno Haible  <bruno@clisp.org>
61329
61330                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
61331
61332         2006-05-09  Bruno Haible  <bruno@clisp.org>
61333
61334                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
61335                 CLASSPATH_SEPARATOR to a semicolon.
61336
61337         2006-03-12  Bruno Haible  <bruno@clisp.org>
61338
61339                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
61340                 available as variable CONF_JAVA, for subsequent autoconf
61341                 tests. Also log error output in config.log.
61342
61343         2006-07-19  Bruno Haible  <bruno@clisp.org>
61344
61345                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
61346                 that getline works on glibc2 systems. Needed to avoid trouble
61347                 in relocatable.c.
61348                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
61349
61350         2005-12-04  Bruno Haible  <bruno@clisp.org>
61351
61352                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
61353                 launcher (untested).
61354
61355         2005-12-04  Bruno Haible  <bruno@clisp.org>
61356
61357                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
61358
61359         2006-07-22  Bruno Haible  <bruno@clisp.org>
61360
61361                 * gettext.m4: Update from GNU gettext-0.15.
61362                 * nls.m4: Likewise.
61363                 * po.m4: Likewise.
61364                 * inttypes-pri.m4: Likewise.
61365                 * inttypes-h.m4: Renamed from inttypes.m4.
61366                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
61367
61368 2006-07-22  Bruno Haible  <bruno@clisp.org>
61369
61370         Merge from GNU gettext 0.15.
61371
61372         2005-07-05  Bruno Haible  <bruno@clisp.org>
61373
61374                 * printf-args.c (printf_fetchargs): Work around broken
61375                 definition of wint_t on mingw.
61376
61377         2005-02-12  Bruno Haible  <bruno@clisp.org>
61378
61379                 * xallocsa.h: Add extern "C" for C++.
61380
61381         2006-05-17  Bruno Haible  <bruno@clisp.org>
61382
61383                 Cygwin portability.
61384                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
61385
61386         2006-04-30  Bruno Haible  <bruno@clisp.org>
61387
61388                 * progreloc.c: Include <mach-o/dyld.h> if available.
61389                 (find_executable): Use _NSGetExecutablePath when possible.
61390
61391         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
61392
61393                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
61394                 function.
61395
61396         2005-12-29  Bruno Haible  <bruno@clisp.org>
61397
61398                 * progreloc.c (set_program_name_and_installdir): Fix
61399                 compilation error.
61400
61401         2005-12-04  Bruno Haible  <bruno@clisp.org>
61402
61403                 Cygwin portability.
61404                 * progreloc.c: Include <windows.h> also on Cygwin.
61405                 (find_executable): Add support for Cygwin.
61406                 (set_program_name_and_installdir): Handle also platforms with
61407                 nonempty EXEEXT.
61408
61409         2006-07-11  Bruno Haible  <bruno@clisp.org>
61410
61411                 * javacomp.c: Fix a comment.
61412                 Reported by Jim Meyering.
61413
61414         2006-04-30  Bruno Haible  <bruno@clisp.org>
61415
61416                 * javacomp.h (compile_java_class): Add source_version,
61417                 target_version arguments.
61418                 * javacomp.c: Rewritten to choose only a compiler that
61419                 respects the specified source_version and target_version.
61420
61421         2006-06-27  Bruno Haible  <bruno@clisp.org>
61422
61423                 Assume correct S_ISDIR macro.
61424                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
61425
61426         2006-07-22  Bruno Haible  <bruno@clisp.org>
61427
61428                 * javaversion.h: New file, from GNU gettext.
61429                 * javaversion.c: New file, from GNU gettext.
61430                 * javaversion.java: New file, from GNU gettext.
61431                 * javaversion.class: New file, from GNU gettext.
61432
61433         2006-05-17  Bruno Haible  <bruno@clisp.org>
61434
61435                 Cygwin portability.
61436                 * javaexec.c (execute_java_class): Test for jview program
61437                 also on Cygwin.
61438
61439         2006-04-09  Bruno Haible  <bruno@clisp.org>
61440
61441                 * fatal-signal.c: Don't include string.h.
61442                 (at_fatal_signal): Use a copying loop instead of memcpy.
61443
61444         2005-12-04  Bruno Haible  <bruno@clisp.org>
61445
61446                 * csharpexec.c: Add support for 'clix' launcher (untested).
61447                 (execute_csharp_using_sscli): New function.
61448                 (execute_csharp_program): Call it.
61449
61450         2006-06-21  Bruno Haible  <bruno@clisp.org>
61451
61452                 Avoid warnings from recent versions of mcs.
61453                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
61454                 -o, -L, -r any more. Use options documented since mcs-1.0
61455                 instead. Similarly for -g.
61456
61457         2005-07-09  Bruno Haible  <bruno@clisp.org>
61458
61459                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
61460                 add a .dll suffix.
61461                 Reported by Mark Junker <mjscod@gmx.de>.
61462
61463         2006-06-17  Bruno Haible  <bruno@clisp.org>
61464
61465                 * config.charset: Update for NetBSD 3.0.
61466
61467         2006-05-17  Bruno Haible  <bruno@clisp.org>
61468
61469                 Cygwin portability.
61470                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
61471
61472         2006-05-16  Bruno Haible  <bruno@clisp.org>
61473
61474                 * localcharset.c [CYGWIN]: Include <windows.h>.
61475                 (get_charset_aliases): For Cygwin, return the same CPxxx
61476                 aliases list as under WIN32.
61477                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
61478                 the environment variables. Fall back to GetACP().
61479
61480         2006-04-05  Bruno Haible  <bruno@clisp.org>
61481
61482                 * config.charset: Update Juan Manuel Guerrero's address.
61483
61484         2005-02-12  Bruno Haible  <bruno@clisp.org>
61485
61486                 * allocsa.h: Add extern "C" for C++.
61487
61488         2005-02-10  Bruno Haible  <bruno@clisp.org>
61489
61490                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
61491                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
61492
61493         2006-07-22  Bruno Haible  <bruno@clisp.org>
61494
61495                 * gettext.h: Update to GNU gettext-0.15.
61496
61497 2006-07-22  Bruno Haible  <bruno@clisp.org>
61498
61499         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
61500         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
61501         lib-prefix.m4, longdouble.m4, ssize_t.m4.
61502
61503 2006-07-21  Eric Blake  <ebb9@byu.net>
61504
61505         * modules/stdlib-safer: New file.
61506         * MODULES.html.sh (File stream based Input/Output): Add
61507         stdlib-safer.
61508
61509 2006-07-21  Eric Blake  <ebb9@byu.net>
61510
61511         * lib/stdlib-safer.h: New file from coreutils, required by
61512         stdlib--.h.
61513
61514 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
61515
61516         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
61517
61518 2006-07-20  Bruno Haible  <bruno@clisp.org>
61519
61520         * gnulib-tool: Recognize new option --assume-autoconf.
61521         (autoconf_minversion): New variable.
61522         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
61523
61524 2006-07-20  Bruno Haible  <bruno@clisp.org>
61525
61526         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
61527
61528 2006-07-19  Derek R. Price  <derek@ximbiot.com>
61529
61530         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
61531         Reindent and repaginate.
61532
61533 2006-07-19  Derek Price  <derek@ximbiot.com>
61534
61535         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
61536         Correct grammar.
61537
61538 2006-07-17  Bruno Haible  <bruno@clisp.org>
61539
61540         * modules/list: New file.
61541         * modules/array-list: New file.
61542         * modules/carray-list, modules/carray-list-tests: New files.
61543         * modules/linked-list, modules/linked-list-tests: New files.
61544         * modules/avltree-list, modules/avltree-list-tests: New files.
61545         * modules/rbtree-list, modules/rbtree-list-tests: New files.
61546         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
61547         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
61548         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
61549         * modules/oset: New file.
61550         * modules/array-oset: New file.
61551         * modules/avltree-oset, modules/avltree-oset-tests: New files.
61552         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
61553         * tests/test-carray_list.c: New file.
61554         * tests/test-linked_list.c: New file.
61555         * tests/test-avltree_list.c: New file.
61556         * tests/test-rbtree_list.c: New file.
61557         * tests/test-linkedhash_list.c: New file.
61558         * tests/test-avltreehash_list.c: New file.
61559         * tests/test-rbtreehash_list.c: New file.
61560         * tests/test-avltree_oset.c: New file.
61561         * tests/test-rbtree_oset.c: New file.
61562         * MODULES.html.sh (Container data structures): New section.
61563
61564 2006-07-17  Bruno Haible  <bruno@clisp.org>
61565
61566         * m4/gl_list.m4: New file.
61567
61568 2006-07-17  Bruno Haible  <bruno@clisp.org>
61569
61570         * lib/gl_list.h: New file.
61571         * lib/gl_list.c: New file.
61572         * lib/gl_array_list.h: New file.
61573         * lib/gl_array_list.c: New file.
61574         * lib/gl_carray_list.h: New file.
61575         * lib/gl_carray_list.c: New file.
61576         * lib/gl_linked_list.h: New file.
61577         * lib/gl_linked_list.c: New file.
61578         * lib/gl_anylinked_list1.h: New file.
61579         * lib/gl_anylinked_list2.h: New file.
61580         * lib/gl_avltree_list.h: New file.
61581         * lib/gl_avltree_list.c: New file.
61582         * lib/gl_anyavltree_list1.h: New file.
61583         * lib/gl_anyavltree_list2.h: New file.
61584         * lib/gl_rbtree_list.h: New file.
61585         * lib/gl_rbtree_list.c: New file.
61586         * lib/gl_anyrbtree_list1.h: New file.
61587         * lib/gl_anyrbtree_list2.h: New file.
61588         * lib/gl_anytree_list1.h: New file.
61589         * lib/gl_anytree_list2.h: New file.
61590         * lib/gl_linkedhash_list.h: New file.
61591         * lib/gl_linkedhash_list.c: New file.
61592         * lib/gl_anyhash_list1.h: New file.
61593         * lib/gl_anyhash_list2.h: New file.
61594         * lib/gl_avltreehash_list.h: New file.
61595         * lib/gl_avltreehash_list.c: New file.
61596         * lib/gl_rbtreehash_list.h: New file.
61597         * lib/gl_rbtreehash_list.c: New file.
61598         * lib/gl_anytreehash_list1.h: New file.
61599         * lib/gl_anytreehash_list2.h: New file.
61600
61601         * lib/gl_oset.h: New file.
61602         * lib/gl_oset.c: New file.
61603         * lib/gl_array_oset.h: New file.
61604         * lib/gl_array_oset.c: New file.
61605         * lib/gl_avltree_oset.h: New file.
61606         * lib/gl_avltree_oset.c: New file.
61607         * lib/gl_rbtree_oset.h: New file.
61608         * lib/gl_rbtree_oset.c: New file.
61609         * lib/gl_anytree_oset.h: New file.
61610
61611 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61612
61613         * m4/mkancesdirs.m4: New file.
61614         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
61615         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
61616         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
61617         it.
61618
61619 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61620
61621         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
61622         * lib/mkancesdirs.h: New files.
61623         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
61624         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
61625         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
61626         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
61627         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
61628         callers changed.  Revamp internals significantly, by not
61629         attempting to create directories that are temporarily more
61630         permissive than the final results.  Do not attempt to use
61631         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
61632         This removes some race conditions, fixes some bugs, and simplifies
61633         things.  Use new dirchownmod function to do owner and mode changes.
61634         * lib/mkdir-p.h: Likewise.
61635         * lib/modechange.c (octal_to_mode): New function.
61636         (struct mode_change): New member mentioned.
61637         (make_node_op_equals): New arg mentioned.  All callers changed.
61638         (mode_compile): Keep track of which mode bits the user has explicitly
61639         mentioned.
61640         (mode_adjust): New arg DIR, so that we implement the X op correctly.
61641         New arg PMODE_BITS, to keep track of which mode bits the user
61642         mentioned; it treats S_ISUID and S_ISGID speciall.
61643         All callers changed.
61644         * lib/modechange.h: Likewise.
61645
61646 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
61647
61648         * MODULES.html.sh: Add mkancestors.
61649         * modules/mkancesdirs: New module.
61650         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
61651         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
61652         The chdir-safer and afs files are now orphans; I'll remove them
61653         unless someone speaks up.
61654         Add lib/dirchownmod.c, lib/dirchownmod.h.
61655         (Depends-on): Remove alloca, chown, save-cwd, dirname.
61656         Add lchown, mkancesdirs.
61657         (Maintainer): Add self.
61658
61659 2006-07-15  Karl Berry  <karl@gnu.org>
61660
61661         * gnulib-tool: help message wording/arrangement.
61662
61663 2006-07-14  Simon Josefsson  <jas@extundo.com>
61664
61665         * doc/gnulib.texi (Libtool and Windows): New section.
61666
61667 2006-07-12  Simon Josefsson  <jas@extundo.com>
61668
61669         * modules/gendocs (License): Fix license, approved by Karl.
61670
61671 2006-07-12  Eric Blake  <ebb9@byu.net>
61672
61673         * MODULES.html.sh: Add gendocs.
61674
61675 2006-07-11  Eric Blake  <ebb9@byu.net>
61676
61677         * modules/fdl: New module, to install doc/fdl.texi.
61678         * MODULES.html.sh: Add new section for documentation modules.
61679         * gnulib-tool: Avoid space-tab.
61680         (--doc-base): New option, to manage files from doc.
61681
61682 2006-07-11  Eric Blake  <ebb9@byu.net>
61683
61684         * m4/absolute-header.m4: Fix comments to match recent change.
61685
61686 2006-07-11  Eric Blake  <ebb9@byu.net>
61687
61688         * gnulib-tool: List --doc-base before --tests-base.
61689
61690 2006-07-11  Derek R. Price  <derek@ximbiot.com>
61691
61692         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
61693
61694 2006-07-11  Bruno Haible  <bruno@clisp.org>
61695
61696         * README: Mention where to put documentation.
61697
61698 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61699
61700         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
61701
61702 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61703
61704         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
61705         to stdint.m4.
61706
61707 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
61708
61709         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
61710         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
61711         "no/such/file/stdint.h" when there is no such file, so that
61712         the resulting C code can be parsed by dodgy compilers.
61713         Problems reported by Bob Proulx.
61714
61715 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61716
61717         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
61718         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61719         macros into the GNU _D_EXACT_NAMLEN.
61720         * lib/savedir.c:  Likewise.
61721         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
61722
61723 2006-07-10  Derek R. Price  <derek@ximbiot.com>
61724         and Paul Eggert  <eggert@cs.ucla.edu>
61725
61726         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
61727         * m4/savedir.m4:
61728         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
61729         macros into the GNU _D_EXACT_NAMLEN.
61730
61731 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61732
61733         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
61734         around the absolute name, to work around a problem with the HP-UX
61735         11.23 native C compiler, reported by Bob Proulx.
61736
61737 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61738
61739         * doc/maintain.texi, make-stds.texi: Sync from
61740         <http://savannah.gnu.org/projects/gnustandards>.
61741
61742 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
61743
61744         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
61745
61746 2006-07-09  Jim Meyering  <jim@meyering.net>
61747
61748         * m4/glob.m4: Remove a doubled word in a comment.
61749
61750 2006-07-09  Jim Meyering  <jim@meyering.net>
61751
61752         * lib/argp-pv.c: Remove a doubled word in a comment.
61753         * lib/check-version.c (check_version): Likewise.
61754         * lib/javacomp.c (compile_java_class): Likewise.
61755
61756 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
61757
61758         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
61759         for the benefit of people using Autoconf 2.60.  If you want to
61760         support older Autoconf versions you can copy m4/onceonly_2_57.m4
61761         (or m4/onceonly.m4, if pre-2.57) manually.
61762
61763 2006-07-08  Jim Meyering  <jim@meyering.net>
61764
61765         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
61766         comment.
61767         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
61768         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
61769         comment.
61770
61771 2006-07-08  Jim Meyering  <jim@meyering.net>
61772
61773         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
61774
61775 2006-07-07  Simon Josefsson  <jas@extundo.com>
61776
61777         * tests/test-crc.c: Change expected crc value, the test vector
61778         were probably computed using the old broken crc.c?
61779
61780 2006-07-06  Simon Josefsson  <jas@extundo.com>
61781
61782         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
61783         now the canonical place for the M4 file).
61784
61785         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
61786         from the sys_socket dependency now.
61787
61788         * modules/inet_pton (Files): Ditto.
61789
61790         * modules/inet_ntop (Files): Ditto.
61791
61792 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
61793
61794         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
61795         not gl_PREREQ_GETUSERSHELL.
61796
61797 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61798
61799         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
61800         with only one argument, for Autoconf 2.60.
61801         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
61802         expand to nothing, so add a shell command to avoid syntax error.
61803         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
61804
61805 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61806
61807         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
61808
61809 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61810
61811         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
61812         no longer needed.  Check for isblank decl.
61813         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
61814         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
61815         of existence.
61816
61817 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61818
61819         * lib/getloadavg.c: Use __VMS, not VMS.
61820         * lib/getopt.c: Likewise.
61821         * lib/getpagesize.h: Likewise.
61822         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
61823         and probably does not work.
61824
61825 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
61826
61827         * lib/.cppi-disable: Add wcwidth.
61828         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
61829         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
61830         (ISGRAPH): Remove.  All uses changed to isgraph.
61831         (FOLD) [!defined _LIBC]: Remove special case.
61832         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
61833         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
61834         HAVE_ISBLANK.
61835         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
61836         case.
61837
61838 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
61839
61840         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
61841         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
61842         brackets.  Other minor changes to suppress some compiler
61843         warnings.
61844
61845 2006-07-06  Derek R. Price  <derek@ximbiot.com>
61846         and Paul Eggert  <eggert@cs.ucla.edu>
61847
61848         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
61849         of invoking obsolescent AC_HEADER_DIRENT macro.
61850         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
61851         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
61852         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
61853         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
61854         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
61855         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61856         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
61857         * m4/readdir.m4: Remove; no longer needed.
61858
61859 2006-07-06  Derek R. Price  <derek@ximbiot.com>
61860         and Paul Eggert  <eggert@cs.ucla.edu>
61861
61862         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
61863         Don't worry about this obsolete case any more.
61864         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
61865         directories.
61866         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
61867         worry about this obsolete case any more.
61868         * lib/fts.c: Likewise.
61869         * lib/getcwd.c: Likewise.
61870         * lib/glob.h: Likewise.
61871         * lib/savedir.c: Likewise.
61872
61873 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61874
61875         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
61876         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
61877         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
61878         needed.
61879         All uses removed.
61880         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61881         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
61882         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
61883         needed.
61884         * m4/getdate.m4 (gl_GETDATE): Likewise.
61885         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61886         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61887         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61888         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61889         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
61890         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61891         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
61892         needed.
61893
61894 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
61895
61896         * lib/memcasecmp.c: Include <limits.h>.
61897         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
61898         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
61899         Don't assume isdigit succeeds only on '0' through '9'.
61900
61901 2006-07-05  Eric Blake  <ebb9@byu.net>
61902
61903         * modules/getaddrinfo (Depends-on): Add snprintf.
61904
61905 2006-07-05  Eric Blake  <ebb9@byu.net>
61906
61907         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
61908         to avoid 'header present but could not be compiled' on cygwin.
61909
61910 2006-07-05  Eric Blake  <ebb9@byu.net>
61911
61912         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
61913         missing from netdb.h.
61914         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
61915
61916 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61917
61918         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
61919         no longer needed.
61920         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
61921         * m4/getdate.m4 (gl_GETDATE): Likewise.
61922         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
61923         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
61924         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
61925         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
61926         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
61927
61928 2006-07-05  Derek R. Price  <derek@ximbiot.com>
61929
61930         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
61931         All uses of is_space replaced by isspace.
61932         * lib/exit.h: Don't talk about STDC_HEADERS.
61933         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
61934         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
61935         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
61936         replaced by isprint etc.
61937         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
61938         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61939         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
61940         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
61941         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
61942         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
61943
61944 2006-07-05  Bruno Haible  <bruno@clisp.org>
61945
61946         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
61947         the function exists, before testing against AIX.
61948         Reported by Martin Lambers <marlam@marlam.de>.
61949
61950 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61951
61952         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
61953         From Mark D. Baushke.
61954
61955 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
61956
61957         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
61958         to the absolute name, not just one, to bypass Sun C 5.8's
61959         "warning: #include of /usr/include/... may be non-portable".
61960
61961 2006-07-04  Eric Blake  <ebb9@byu.net>
61962
61963         * modules/dirname-tests: New test module.
61964         * tests/test-dirname.c: New file, replacing dirname.c
61965         TEST_DIRNAME section that was recently deleted.
61966
61967 2006-07-04  Bruno Haible  <bruno@clisp.org>
61968
61969         Assume ANSI C header files and <ctype.h> functions.
61970         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
61971         (mbsnwidth): Use isprint, iscntrl instead.
61972
61973 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61974
61975         Merge from coreutils.
61976         * MODULES.html.sh: Add xstrtold.
61977         * modules/xstrtold: New file.
61978         * modules/cycle-check (Files): Add lib/same-inode.h.
61979         * modules/dirname (Files): Add m4/double-slash-root.m4.
61980         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
61981         * modules/mkdir-p (Files): Add lib/same-inode.h.
61982         * modules/same (Files): Add lib/same-inode.h.
61983
61984 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
61985
61986         * m4/absolute-header.m4: Renamed from full-header-path.m4.
61987         This is to keep the terminology clean; POSIX talks about
61988         "absolute pathnames", not "full pathnames", but the GNU
61989         Coding Standards say to use "path" for something else;
61990         so use "absolute" to keep both sides happy.
61991         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
61992         Set gl_absolute_header, not gl_full_header_path.
61993         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
61994         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
61995         All uses changed.
61996
61997         Merge from coreutils.
61998
61999         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
62000
62001         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
62002         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
62003         want to require the building of c-strtod.o.
62004         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
62005         needs -lm directly.
62006         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
62007
62008         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62009
62010         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
62011         --as-needed option if available.  Problem reported by Albert Chin in
62012         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
62013         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
62014         cc merely issues a bunch of annoying warnings for --as-needed
62015         (this problem was reported by Bob Proulx).  Also, try linking with
62016         -lm to detect a bug in binutils 2.16 (this problem was reported
62017         by Ralf Wildenhues).
62018
62019         2006-06-18  Jim Meyering  <jim@meyering.net>
62020
62021         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
62022         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
62023         macro.
62024         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
62025         also check for glibc-2.4's abort-inducing bug.
62026
62027         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
62028         Low-probability clean-up should be to use rmdir to get rid of
62029         the just-created directory, not unlink.
62030
62031         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
62032         configure fail, and request a bug report to inform us about it.
62033         Add a comment that, barring reports to the contrary, in 2007 we'll
62034         assume ftruncate is universally available.
62035
62036         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
62037
62038         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
62039
62040         2006-03-12  Jim Meyering  <jim@meyering.net>
62041
62042         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
62043         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
62044         * m4/same.m4 (gl_SAME): Likewise.
62045         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
62046
62047         2006-03-11  Eric Blake  <ebb9@byu.net>
62048
62049         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
62050         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
62051         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
62052         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
62053
62054 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
62055
62056         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
62057         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
62058         reported by Mark D. Baushke, one in
62059         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
62060
62061         Merge from coreutils.
62062
62063         * lib/.cppi-disable: Add stdint_.h.
62064         * lib/.cvsignore: Add stdint.h.
62065
62066         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
62067
62068         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
62069         both double and long double versions.
62070         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
62071         * lib/xstrtold.c: New file.
62072         * lib/xstrtod.h (xstrtold): New decl.
62073
62074         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
62075
62076         * lib/filemode.c (setst): Remove.
62077         (strmode): Rewrite to avoid setst.  This makes the code shorter,
62078         (arguably) clearer, and the generated code is a bit smaller on my
62079         Debian GNU/Linux stable x86 host.
62080
62081         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
62082
62083         * lib/filemode.c: Include "filemode.h" first, to test the interface.
62084         Assume that filemode.h includes sys/types.h and sys/stat.h.
62085         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
62086         (ftypelet): Reorder to put common cases first, for efficiency.
62087         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
62088         to do 'M'.
62089         (strmode): Renamed from mode_string, and now stores 12 bytes instead
62090         of 10, for compatibility with FreeBSD.  All callers changed.
62091         (filemodestring): Now stores 12 bytes instead of 10, and sets file
62092         types that can't be deduced solely from st_mode.  First arg is now a
62093         const pointer.
62094         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
62095         (strmode): Renamed from mode_string.
62096         (filemodestring): New decl.
62097         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
62098         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
62099         needed.
62100         (S_ISPORT, S_ISWHT): New macros, if not already defined.
62101
62102         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
62103
62104         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
62105         fsusage.h now does that.  Include fsusage.h first, to test interface.
62106         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
62107         at most one method (the old code could have generated decls that
62108         didn't conform to C89, not that this was ever exercised).
62109         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
62110
62111         2006-03-19  Jim Meyering  <jim@meyering.net>
62112
62113         Work even in a chroot where d_ino values for entries in "/"
62114         don't match the stat.st_ino values for the same names.
62115         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
62116         number, iterate through all entries again, using lstat instead.
62117         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
62118         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
62119
62120         * lib/getcwd.c (__getcwd): Clarify a comment.
62121         Use memcpy in place of a call to strcpy.
62122
62123         2006-03-12  Jim Meyering  <jim@meyering.net>
62124
62125         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
62126         matches that of the current directory (which we're about to chdir ".."
62127         out of), then save the dev-ino of the parent, instead.
62128
62129         * lib/same-inode.h (SAME_INODE): New file/macro.
62130         * lib/chdir-safer.c (SAME_INODE): Remove definition.
62131         Include "same-inode.h", instead.
62132         * lib/same.c: Likewise.
62133         * lib/cycle-check.h: Include "same-inode.h".
62134         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
62135         * lib/cycle-check.c (SAME_INODE): Remove definition.
62136         * lib/root-dev-ino.h: Include "same-inode.h".
62137
62138         2006-03-11  Eric Blake  <ebb9@byu.net>
62139
62140         * lib/same.c (same_name): s/base_name/last_component/
62141         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
62142         * lib/filenamecat.c (file_name_concat): Likewise.
62143
62144         2006-03-11  Eric Blake  <ebb9@byu.net>,
62145                     Paul Eggert  <eggert@cs.ucla.edu>
62146
62147         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
62148         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
62149         drive prefix.
62150         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
62151         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
62152         (last_component): New method.
62153         * lib/dirname.c (dir_len): Determine when drive letters need a
62154         subsequent slash.  Preserve // when it is special.
62155         (dir_name): Don't append dot when drive letter is absolute.
62156         [TEST_DIRNAME]: Move into a full-blown gnulib test.
62157         * lib/basename.c (base_name): New semantics - malloc the result.
62158         Preserve // when it is special.  Preserve relative files that look
62159         like drive letters.
62160         (base_len): Preserve // when it is special.
62161         (last_component): New method, similar to old base_name semantics.
62162         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
62163         base_name.  Strip redundant slashes from ///.
62164
62165 2006-07-03  Jim Meyering  <jim@meyering.net>
62166
62167         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
62168         macro is used before the first cycle_check call.
62169
62170 2006-07-03  Eric Blake  <ebb9@byu.net>
62171
62172         * modules/dirname (Depends-on): Add xstrndup.
62173
62174 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62175
62176         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
62177         test cases, so that config.log is a bit easier to follow.
62178
62179 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62180
62181         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
62182         both are 64 bits, since this seems to be the tradition, and this
62183         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
62184         we ever run into a host that prefers long long to long in this
62185         case, we'll need another configure-time test.  Problem reported by
62186         Jim Meyering.
62187
62188 2006-07-02  Eric Blake  <ebb9@byu.net>
62189
62190         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
62191
62192 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62193
62194         * modules/inttypes (Depends-on): No longer depends on stdint.
62195         * modules/stdint (Description): Say more about assumptions.
62196         Say that the fast types might differ.  Say macros are used.
62197         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
62198         (Makefile.am): Revise list of substituted symbols to match
62199         new stdint.m4.
62200         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
62201         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
62202         * tests/test-stdint.c (verify_same_types)
62203         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
62204         the code conforms to C99/C89.
62205         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
62206         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
62207
62208 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62209
62210         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
62211         but fix a bug, by requiring at least 64 bits.
62212         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62213         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
62214         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
62215         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
62216
62217         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
62218         changes.  Make 2.59 a prerequisite.  Check and substitute for
62219         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
62220         inttypes.h.  Do not use special include files; just use the
62221         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
62222         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
62223         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
62224         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
62225         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
62226         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
62227         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
62228         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
62229         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
62230         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
62231         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
62232         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
62233         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
62234         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
62235         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
62236         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
62237         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
62238         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
62239         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
62240         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
62241         WINT_MAX.  Check for C99 conformance more strictly, by detecting
62242         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
62243         not check for things that C99 does not require, e.g., int8_t.  If
62244         a test isn't needed unless <stdint.h> isn't working, and is
62245         unlikely to be needed for any other reason, then don't do it
62246         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
62247         size_t, since we assume C89 freestanding at least.  Do not check
62248         for sig_atomic_t, wchar_t, or wint_t, since the code now does
62249         the right thing even if the types are not defined.  Instead use:
62250         (gl_STDINT_TYPE_PROPERTIES): New macro.
62251         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
62252         testing whether <sys/types.h> clashes, as Autoconf does this for
62253         us now.  All uses removed.
62254         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
62255         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
62256         (gl_CHECK_TYPE_SAME):
62257         Remove; no longer needed.
62258         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
62259         exists, since we'll return 0 anyway in that case.
62260         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
62261
62262 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
62263
62264         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
62265         possible collision with system files.
62266         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
62267         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
62268         WCHAR_MIN and WCHAR_MAX in this case.
62269         (<stddef.h>): Do not include; no longer needed.
62270         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
62271         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
62272         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
62273         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
62274         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
62275         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
62276         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
62277         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
62278         !defined(__c99))]: Include in this case too, since it's harmless
62279         now.
62280         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
62281         dangerous to do so.
62282         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
62283         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
62284         (_STDINT_MIN, _STDINT_MAX): New macros.
62285         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
62286         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
62287         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
62288         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
62289         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
62290         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
62291         macros, not typedefs; this simplifies things quite a bit.
62292         Use long int for all types narrower than int64_t.
62293         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
62294         Define in terms of long long int or int64_t or long int,
62295         not int64_t or int32_t.  This saves some compile-time testing.
62296         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
62297         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
62298         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
62299         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
62300         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
62301         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
62302         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
62303         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
62304         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
62305         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
62306         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62307         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62308         undef any previous version and define our own version, for
62309         simplicity and consistency with the new macros for types.
62310         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
62311         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
62312         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
62313         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
62314         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
62315         @WINT_T_SUFFIX@ to keep things simple here.
62316         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
62317         Simplify by assuming typical 8/16/32/64 host, since we're
62318         already doing that elsewhere anyway.
62319         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
62320         and assume long long int is 64 bits if available.  This
62321         speeds up 'configure'.
62322
62323 2006-07-01  Eric Blake  <ebb9@byu.net>
62324
62325         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
62326         Reported by Andreas Buening.
62327
62328 2006-07-01  Eric Blake  <ebb9@byu.net>
62329
62330         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
62331
62332 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
62333
62334         * lib/getaddrinfo.c: fixed typo
62335
62336 2006-06-29  Jim Meyering  <jim@meyering.net>
62337
62338         * modules/strftime (Maintainer): Add my name, since with the
62339         FPRINTFTIME changes strftime.c has forked from glibc.
62340
62341 2006-06-29  Eric Blake  <ebb9@byu.net>
62342
62343         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
62344
62345 2006-06-29  Eric Blake  <ebb9@byu.net>
62346
62347         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
62348
62349 2006-06-29  Eric Blake  <ebb9@byu.net>
62350
62351         * lib/stat_.h: New file.
62352
62353 2006-06-29  Eric Blake  <ebb9@byu.net>
62354
62355         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
62356         unused static function.
62357
62358 2006-06-29  Eric Blake  <ebb9@byu.net>
62359
62360         * doc/functions.texi (Function Portability): Document missing lstat
62361         on mingw.
62362
62363 2006-06-29  Eric Blake  <ebb9@byu.net>
62364
62365         * MODULES.html.sh: Add sys_stat.
62366         * modules/sys_stat: New module.
62367         * modules/mkstemp (Depends-on): Add sys_stat.
62368
62369 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62370
62371         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
62372
62373 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62374
62375         * m4/c-bs-a.m4: Removed.
62376
62377 2006-06-29  Derek R. Price  <derek@ximbiot.com>
62378
62379         * lib/strftime.c: Assume strftime() exists.
62380
62381 2006-06-29  Derek Price  <derek@ximbiot.com>
62382
62383         * modules/c-bs-a: Removed - \a is C89.
62384         * MODULES.html.sh: Remove c-bs-a.
62385
62386 2006-06-29  Bruno Haible  <bruno@clisp.org>
62387
62388         * modules/wcwidth (License): Change to LGPL.
62389
62390 2006-06-28  Simon Josefsson  <jas@extundo.com>
62391
62392         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
62393         on _WIN32.
62394
62395         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
62396         getnameinfo.
62397
62398 2006-06-28  Simon Josefsson  <jas@extundo.com>
62399
62400         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
62401
62402 2006-06-28  Simon Josefsson  <jas@extundo.com>
62403
62404         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
62405         functions there.  It will succeed on Windows XP, but on Windows
62406         2000 and (presumably) earlier, it will fail, and use the internal
62407         re-implementation.
62408         (use_win32_p): New function.
62409         (getaddrinfo): Use strtoul on servname, to support numeric ports.
62410         Support AI_NUMERICSERV to disable getservbyname.
62411         (getnameinfo): New function, only supports
62412         NI_NUMERICHOST|NI_NUMERICSERV for now.
62413
62414         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
62415         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
62416         getnameinfo.
62417
62418 2006-06-28  Eric Blake  <ebb9@byu.net>
62419
62420         * modules/wcwidth: New file.
62421         * modules/mbchar (Depends-on): Add wcwidth.
62422         * modules/mbswidth (Depends-on): Add wcwidth.
62423         * MODULES.html.sh: Add wcwidth.
62424
62425 2006-06-28  Eric Blake  <ebb9@byu.net>
62426
62427         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
62428         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
62429
62430 2006-06-28  Eric Blake  <ebb9@byu.net>
62431
62432         * lib/xvasprintf.h: Fix comments.
62433
62434 2006-06-28  Eric Blake  <ebb9@byu.net>
62435
62436         * lib/mbchar.h (wcwidth): Include wcwidth.h.
62437         * lib/mbswidth.c (wcwidth): Move from here...
62438         * lib/wcwidth.h: ...to this new file.
62439
62440 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62441
62442         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
62443
62444         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
62445         it's obsolete.
62446         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
62447
62448 2006-06-28  Derek R. Price  <derek@ximbiot.com>
62449
62450         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
62451         Autoconf 2.60 says this stuff was obsolete.
62452
62453 2006-06-28  Bruno Haible  <bruno@clisp.org>
62454
62455         * modules/wcwidth (Files): Add m4/wchar_t.m4.
62456
62457 2006-06-28  Bruno Haible  <bruno@clisp.org>
62458
62459         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
62460         gt_TYPE_WCHAR_T.
62461
62462 2006-06-28  Bruno Haible  <bruno@clisp.org>
62463
62464         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
62465         declaration for wcwidth.
62466         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
62467
62468 2006-06-28  Bruno Haible  <bruno@clisp.org>
62469
62470         * lib/mkdtemp.c [MINGW]: Include <io.h>.
62471         (mkdir): Define using _mkdir.
62472
62473 2006-06-28  Bruno Haible  <bruno@clisp.org>
62474
62475         * lib/getaddrinfo.h: Fix POSIX URL.
62476         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
62477         _WIN32.
62478         (use_win32_p): Make static.
62479         (getaddrinfo): Reject service name if it is empty or does not consist
62480         solely of decimal digits, or if its value is > 65535.
62481         (getnameinfo): Remove useless casts.
62482
62483 2006-06-27  Simon Josefsson  <jas@extundo.com>
62484
62485         * modules/sys_select: New file, suggested by Bruno Haible, Paul
62486         Eggert and Martin Lambers.
62487
62488 2006-06-27  Simon Josefsson  <jas@extundo.com>
62489
62490         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
62491         Eggert and Martin Lambers.
62492
62493 2006-06-27  Bruno Haible  <bruno@clisp.org>
62494
62495         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
62496         result to 0, not to empty.
62497         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
62498
62499 2006-06-27  Bruno Haible  <bruno@clisp.org>
62500
62501         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
62502
62503 2006-06-26  Simon Josefsson  <jas@extundo.com>
62504
62505         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
62506         present.
62507
62508 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
62509
62510         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
62511         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
62512         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
62513
62514 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
62515
62516         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
62517
62518 2006-06-26  Bruno Haible  <bruno@clisp.org>
62519
62520         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
62521
62522 2006-06-26  Bruno Haible  <bruno@clisp.org>
62523
62524         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
62525
62526 2006-06-26  Bruno Haible  <bruno@clisp.org>
62527
62528         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
62529         SGI C compiler in pre-C99 mode.
62530         Suggested by Mark D. Baushke and Larry Jones.
62531
62532 2006-06-26  Bruno Haible  <bruno@clisp.org>
62533
62534         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
62535         WCHAR_MAX.
62536         Reported by Mark D. Baushke and Larry Jones.
62537
62538 2006-06-26  Bruno Haible  <bruno@clisp.org>
62539
62540         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
62541         in pre-C99 mode.
62542         Suggested by Mark D. Baushke and Larry Jones.
62543
62544 2006-06-23  Simon Josefsson  <jas@extundo.com>
62545             Bruno Haible  <bruno@clisp.org>
62546
62547         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
62548         Emit mostlyclean-local rule.
62549         (func_emit_tests_Makefile_am): Likewise.
62550         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
62551
62552 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
62553
62554         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
62555
62556 2006-06-23  Bruno Haible  <bruno@clisp.org>
62557
62558         * tests/test-stdint.c: Update to match ISO C 99 Technical
62559         Corrigendum 1.
62560
62561 2006-06-23  Bruno Haible  <bruno@clisp.org>
62562
62563         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
62564
62565 2006-06-23  Bruno Haible  <bruno@clisp.org>
62566
62567         * lib/stdint_.h: Treat IRIX like OpenBSD.
62568
62569 2006-06-23  Bruno Haible  <bruno@clisp.org>
62570
62571         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
62572         ISO C 99 Technical Corrigendum 1.
62573
62574 2006-06-22  Simon Josefsson  <jas@extundo.com>
62575
62576         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
62577         MinGW.
62578
62579 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62580
62581         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
62582         needed.  Some compiler complained about some of them.  Problem reported
62583         by Larry Jones in
62584         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
62585
62586 2006-06-21  Simon Josefsson  <jas@extundo.com>
62587
62588         * tests/test-getaddrinfo.c: New file.
62589
62590         * modules/getaddrinfo-tests: New file.
62591
62592         * MODULES.html.sh: Add inet_pton.
62593
62594         * modules/inet_pton: New file.
62595
62596 2006-06-21  Simon Josefsson  <jas@extundo.com>
62597
62598         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
62599         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
62600         of using the (limited) gnulib implementation on Windows XP.
62601
62602         * m4/inet_pton.m4: New file.
62603
62604 2006-06-21  Simon Josefsson  <jas@extundo.com>
62605
62606         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
62607         variable.
62608
62609         * lib/socket_.h: Don't define WINVER.
62610
62611         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
62612         slightly modified to work in gnulib.
62613
62614 2006-06-21  Simon Josefsson  <jas@extundo.com>
62615
62616         * doc/gnulib.texi (Windows sockets): Add.
62617
62618 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
62619
62620         * lib/read-file.c (fread_file): Start with buffer allocation of
62621         0 bytes rather than 1 byte; this simplifies the code.
62622         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
62623         code to free buffer and save/restore errno.
62624         (internal_read_file): Remove unused local.
62625
62626 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
62627
62628         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
62629         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
62630         Problem reported by Denis Excoffier in
62631         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
62632
62633 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62634
62635         * modules/sys_socket, modules/socklen: Include sys/types since
62636         FreeBSD 4.x's sys/socket.h needs it.
62637
62638 2006-06-19  Simon Josefsson  <jas@extundo.com>
62639
62640         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
62641
62642 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
62643
62644         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
62645
62646 2006-06-19  Bruno Haible  <bruno@clisp.org>
62647
62648         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
62649         and FULL_PATH_INTTYPES_H in angle brackets.
62650         Reported by Mark D. Baushke <mdb@gnu.org>.
62651
62652 2006-06-17  Eric Blake  <ebb9@byu.net>
62653
62654         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
62655         errno.
62656
62657 2006-06-17  Bruno Haible  <bruno@clisp.org>
62658
62659         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
62660         <sys/inttypes.h>.
62661
62662 2006-06-17  Bruno Haible  <bruno@clisp.org>
62663
62664         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
62665         whether errno is declared. Assume <errno.h> declares errno.
62666
62667 2006-06-17  Bruno Haible  <bruno@clisp.org>
62668
62669         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
62670
62671 2006-06-17  Bruno Haible  <bruno@clisp.org>
62672
62673         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
62674         problem on Solaris 2.5.1.
62675
62676 2006-06-16  Eric Blake  <ebb9@byu.net>
62677
62678         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
62679         * lib/unicodeio.c [!defined errno]: Likewise.
62680         * lib/strtol.c [!defined errno]: Likewise.
62681         * lib/strtod.c [!defined errno]: Likewise.
62682
62683 2006-06-15  Eric Blake  <ebb9@byu.net>
62684
62685         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
62686
62687 2006-06-15  Eric Blake  <ebb9@byu.net>
62688
62689         * config/srclist.txt (ssize_t.m4): Lose sync.
62690
62691 2006-06-15  Bruno Haible  <bruno@clisp.org>
62692
62693         * modules/stdint (Files): Include m4/full-header-path.m4,
62694         m4/size_max.m4, m4/wchar_t.m4.
62695         (Makefile.am): Many more substitutions.
62696         * modules/stdint-tests: New file.
62697         * tests/test-stdint.c: New file.
62698
62699 2006-06-15  Bruno Haible  <bruno@clisp.org>
62700
62701         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
62702         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
62703         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
62704         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
62705         gl_CHECK_TYPE_SAME): New macros.
62706
62707 2006-06-15  Bruno Haible  <bruno@clisp.org>
62708
62709         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
62710
62711 2006-06-15  Bruno Haible  <bruno@clisp.org>
62712
62713         * lib/stdint_.h: Rewritten to be fully auto-configured.
62714         Fixes bug on HP-UX/IA64.
62715
62716 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
62717
62718         * lib/getdate.y (__attribute__): Don't define if already defined.
62719         Problem reported by Larry Jones.
62720         * lib/utimens.c (__attribute__): Likewise.
62721
62722 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
62723
62724         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
62725         reported by Andreas Schwab.
62726
62727 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62728             Bruno Haible  <bruno@clisp.org>
62729
62730         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
62731         check for the declaration of strnlen and a run test that exposes the
62732         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
62733         rpl_strndup.
62734
62735 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62736             Bruno Haible  <bruno@clisp.org>
62737
62738         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
62739
62740 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62741
62742         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
62743         compile test, for Tru64 4.0D.
62744
62745 2006-05-28  Karl Berry  <karl@gnu.org>
62746
62747         * config/srclist.txt (printf-args.c): lose sync.
62748
62749 2006-05-26  Martin Lambers  <marlam@marlam.de>
62750
62751         * lib/getpass.c: Updates the test for the native W32 API, and adds
62752         missing includes, thus fixing compilation warnings.
62753
62754 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
62755
62756         * lib/exclude.c (exclude_fnmatch): New function.
62757         (excluded_file_name): Call exclude_fnmatch.
62758         * lib/exclude.h (excluded_file_name): New prototype
62759
62760 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
62761
62762         * lib/tempname.c (small_open, large_open): New macros.
62763         (__open, __open64) [!_LIBC]: Remove.
62764         (__gen_tempname): Use small_open and large_open instead of __open
62765         and __open64.  This fixes a portability bug on HP-UX 11.11i
62766         reported by Simon Wing-Tang in
62767         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
62768
62769 2006-05-24  Bruno Haible  <bruno@clisp.org>
62770
62771         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
62772         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
62773         Reported by Thorsten Maerz <torte@netztorte.de> via
62774         Aaron Stone <aaron@serendipity.cx>.
62775
62776 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62777
62778         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
62779         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
62780         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
62781         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
62782         not really conditional on the cache.
62783         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
62784
62785 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
62786
62787         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
62788         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
62789         (my_usleep): Don't mishandle maximum value.
62790
62791 2006-05-19  Jim Meyering  <jim@meyering.net>
62792
62793         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
62794
62795 2006-05-17  Bruno Haible  <bruno@clisp.org>
62796
62797         Cygwin portability.
62798         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
62799
62800 2006-05-17  Bruno Haible  <bruno@clisp.org>
62801
62802         * lib/stdint_.h: Fix recognition of Cygwin.
62803
62804 2006-05-15  Bruno Haible  <bruno@clisp.org>
62805
62806         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
62807         on libtool patch by Ralf Wildenhues.
62808
62809 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
62810
62811         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
62812         test for C99 conformance; (bool) 0.5 is an integer constant
62813         expression, but (bool) -0.5 is not.  Problem reported by Fedor
62814         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
62815
62816 2006-05-11  Simon Josefsson  <jas@extundo.com>
62817
62818         * m4/xvasprintf.m4: Fix obvious typo.
62819
62820 2006-05-11  Jim Meyering  <jim@meyering.net>
62821
62822         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
62823         James Lemley.
62824
62825 2006-05-10  Simon Josefsson  <jas@extundo.com>
62826
62827         * lib/md4.c: Typo fix, update copyright years.
62828         (K1, K2): Don't use L because it turn computations into 64-bit on
62829         64-bit platforms.
62830
62831 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
62832
62833         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
62834         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
62835         unwanted sign propagation, e.g., on hosts with 64-bit int.
62836         There still are some problems with reeelly weird theoretical hosts
62837         (e.g., 33-bit int) but it's not worth worrying about now.
62838         * lib/sha1.c (rol): Likewise.
62839         (K1, K2, K3, K4): Remove unnecessary L suffix.
62840
62841 2006-05-10  Bruno Haible  <bruno@clisp.org>
62842
62843         * lib/des.c: Cast to avoid warnings.
62844
62845 2006-05-09  Bruno Haible  <bruno@clisp.org>
62846
62847         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
62848         (Depends-on): Depend also on xsize, stdarg.
62849         (configure.ac): Add gl_XVASPRINTF.
62850
62851 2006-05-09  Bruno Haible  <bruno@clisp.org>
62852
62853         * m4/xvasprintf.m4: New file.
62854
62855 2006-05-09  Bruno Haible  <bruno@clisp.org>
62856
62857         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
62858         (EOVERFLOW): Define fallback value.
62859         (xstrcat): New function.
62860         (xvasprintf): Recognize the special case of a string concatenation.
62861
62862 2006-05-08  Eric Blake  <ebb9@byu.net>
62863
62864         * gnulib-tool (func_version): Base copyright year on CVS date.
62865         (func_emit_copyright_notice): New function.
62866         (func_emit_lib_Makefile_am): Use it.
62867         (func_emit_tests_Makefile_am): Likewise.
62868         (func_import): Likewise.
62869
62870 2006-05-08  Bruno Haible  <bruno@clisp.org>
62871
62872         * modules/stdarg: New file.
62873         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
62874
62875 2006-05-08  Bruno Haible  <bruno@clisp.org>
62876
62877         * m4/stdarg.m4: New file, from GNU gettext.
62878
62879 2006-05-08  Bruno Haible  <bruno@clisp.org>
62880
62881         * config/srclist.txt (build-aux/config.rpath): different from latest
62882         release.
62883
62884 2006-05-08  Bruno Haible  <bruno@clisp.org>
62885
62886         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
62887
62888 2006-05-05  Jim Meyering  <jim@meyering.net>
62889
62890         * m4/warning.m4: New file, derived from bison's file by the same name.
62891
62892 2006-05-03  Bruno Haible  <bruno@clisp.org>
62893
62894         * lib/stdint_.h: Shorter URL.
62895         * lib/inttypes.h: Likewise.
62896
62897 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62898
62899         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
62900
62901 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62902
62903         * lib/verify.h: Document the internals better.  Most of this change
62904         was written by Bruno Haible.
62905
62906 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
62907
62908         * doc/verify.texi: New file, partly based on a proposal by
62909         Bruno Haible.
62910
62911 2006-05-02  Bruno Haible  <bruno@clisp.org>
62912
62913         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
62914         test from here...
62915         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
62916
62917 2006-04-29  Bruno Haible  <bruno@clisp.org>
62918
62919         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
62920         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
62921
62922 2006-04-29  Bruno Haible  <bruno@clisp.org>
62923
62924         * gnulib-tool: Make --update option actually work.
62925
62926 2006-04-29  Bruno Haible  <bruno@clisp.org>
62927
62928         * doc/gcd.texi: New file.
62929         * doc/gnulib.texi: Include it.
62930
62931 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
62932
62933         * lib/getdate.y (get_date): When adding relative date, start with the
62934         initial time, not with the result of the first mktime call.
62935
62936 2006-04-25  Bruno Haible  <bruno@clisp.org>
62937
62938         * gnulib-tool (func_import): Output the include directives in three
62939         blocks, sorted separately.
62940         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62941
62942 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62943
62944         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
62945         to define main with arguments, for C++.  Reported by Eric Blake.
62946         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
62947         Prefer 'int main ()' to 'int main (void)', for C++.
62948         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
62949         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
62950         for 'main', for C99 and C++.
62951
62952 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
62953
62954         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
62955         Don't assume that exit status -1 is valid.
62956         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
62957         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
62958         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
62959         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
62960         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
62961         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
62962         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
62963         functions can be used without declaring them, or that you can
62964         exit with status -1.
62965         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
62966
62967 2006-04-24  Karl Berry  <karl@gnu.org>
62968
62969         * config/srclist.txt (longdouble.m4): sync lost.
62970
62971 2006-04-24  Eric Blake  <ebb9@byu.net>
62972
62973         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
62974
62975 2006-04-24  Bruno Haible  <bruno@clisp.org>
62976
62977         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
62978         poll() implementation in AIX.
62979         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62980
62981 2006-04-24  Bruno Haible  <bruno@clisp.org>
62982
62983         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
62984         assigned exactly once.
62985
62986 2006-04-23  Claudio Fontana  <claudio@gnu.org>
62987             Bruno Haible  <bruno@clisp.org>
62988
62989         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
62990         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
62991         for AM_CPPFLAGS.
62992
62993 2006-04-23  Bruno Haible  <bruno@clisp.org>
62994
62995         * modules/copy-file: Depend on unistd.
62996         * modules/execute: Likewise.
62997         * modules/fatal-signal: Likewise.
62998         * modules/findprog: Likewise.
62999         * modules/mkdtemp : Likewise.
63000         * modules/pipe: Likewise.
63001         * modules/wait-process: Likewise.
63002
63003 2006-04-23  Bruno Haible  <bruno@clisp.org>
63004
63005         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
63006         condition was already detected.
63007         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63008
63009 2006-04-23  Bruno Haible  <bruno@clisp.org>
63010
63011         * lib/copy-file.c: Include <unistd.h> unconditionally.
63012         * lib/execute.c: Likewise.
63013         * lib/fatal-signal.c: Likewise.
63014         * lib/findprog.c: Likewise.
63015         * lib/mkdtemp.c: Likewise.
63016         * lib/pipe.h: Likewise.
63017         * lib/pipe.c: Likewise.
63018         * lib/wait-process.h: Likewise.
63019
63020 2006-04-23  Bruno Haible  <bruno@clisp.org>
63021
63022         * gnulib-tool (func_usage): Fix --import description. Document
63023         --update.
63024         (func_import): Create temporary file in a temporary directory, if
63025         --dry-run is specified. Silence errors from 'grep' when there are no
63026         m4 files in $m4dir.
63027         (func_create_testdir): Silence errors from 'grep' when there are no
63028         m4 files in $m4dir.
63029         Reported by Karl Berry <karl@freefriends.org>.
63030
63031 2006-04-20  Bruno Haible  <bruno@clisp.org>
63032
63033         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
63034         one argument, so that the code will be portable to Autoconf 2.60.
63035         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
63036         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
63037         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
63038
63039 2006-04-19  Derek Price  <derek@ximbiot.com>
63040             Eric Blake  <ebb9@byu.net>
63041
63042         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
63043         rather than "/full/path.h".  Update comment to match.  Shorten &
63044         generalize m4_translit call via AS_TR_CPP.
63045
63046 2006-04-19  Derek Price  <derek@ximbiot.com>
63047             Eric Blake  <ebb9@byu.net>
63048
63049         * lib/inttypes.h: Correct grammar in comment.
63050
63051 2006-04-18  Derek Price  <derek@ximbiot.com>
63052             Paul Eggert  <eggert@cs.ucla.edu>
63053
63054         * modules/inttypes: New file.
63055         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
63056
63057 2006-04-18  Derek Price  <derek@ximbiot.com>
63058             Paul Eggert  <eggert@cs.ucla.edu>
63059
63060         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
63061         New files.
63062
63063 2006-04-18  Derek Price  <derek@ximbiot.com>
63064             Paul Eggert  <eggert@cs.ucla.edu>
63065
63066         * lib/inttypes.h: New file.
63067         * lib/strtoimax.c: Assume <inttypes.h>.
63068
63069 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
63070
63071         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
63072         isn't mounted.  Problem reported by Kir Kolyshkin.
63073
63074 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
63075
63076         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
63077         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
63078         Derek R. Price.
63079         * lib/regex.h (RE_DUP_MAX): Update comment to match current
63080         implementation.
63081
63082 2006-04-12  Eric Blake  <ebb9@byu.net>
63083
63084         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
63085         is now done automatically by the corresponding Autoconf macro.
63086
63087 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
63088
63089         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
63090         time_r.h.
63091
63092 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63093
63094         Merge regex changes from libc, removing some of our
63095         POSIX-conformance changes that were rejected and redoing them in a
63096         less-intrusive way.
63097
63098         * lib/regcomp.c (re_compile_internal, init_dfa):
63099         Length arg is now size_t, not Idx.  All uses changed.
63100         (peek_token): Forward decl now says internal_function.
63101         (__re_error_msgid, __re_error_msgid_idx):
63102         Now static rather than extern with attribute_hidden.
63103         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
63104         For some reason libc prefers K&R style defns for external functions.
63105         (regerror) [!defined _LIBC]: Likewise.
63106         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
63107         (seek_collating_symbol_entry, lookup_collation_sequence_value):
63108         (build_range_exp, build_collating_symbol):
63109         Use K&R-style defn.
63110         (re_compile_fastmap): Use '\0' to memset, not 0.
63111         (utf8_sb_map): Make the calculations more obvious.
63112         (init_dfa, parse_bracket_exp, build_charclass_op):
63113         Call calloc and cast result, as glibc does.
63114         (init_word_char, fetch_token, peek_token, peek_token_bracket):
63115         (build_range_exp, build_collating_symbol):
63116         Now internal functions.
63117
63118         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
63119
63120         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
63121         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
63122         Don't depend on VMS; depend on __VMS instead, for POSIX
63123         namespace cleanness.
63124         (regoff_t): Define to ssize_t, not long int.
63125
63126         Remove the REG_ macros named below.  Instead, make the old names
63127         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
63128         __USE_GNU_REGEX.
63129         (REG_BACKSLASH_ESCAPE_IN_LISTS):
63130         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
63131         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
63132         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
63133         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
63134         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
63135         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
63136         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
63137         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
63138         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
63139         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
63140         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
63141         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
63142         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
63143         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
63144         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
63145         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
63146         (REG_NREGS):
63147         Remove.  All uses replaced by the old RE_* names.
63148         (RE_BACKSLASH_ESCAPE_IN_LISTS):
63149         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
63150         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
63151         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
63152         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
63153         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
63154         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
63155         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
63156         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
63157         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
63158         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
63159         Don't bother having these macros be independent of each others'
63160         values, since they no longer exist in the POSIX name space.
63161
63162         Rename the following member names back to their old names,
63163         unless !__USE_GNU_REGEX.  All uses changed back.
63164         (buffer): Renamed from re_buffer.
63165         (allocated): Renamed from re_allocated.
63166         (used): Renamed from re_used.
63167         (syntax): Renamed from re_syntax.
63168         (fastmap): Renamed from re_fastmap.
63169         (translate): Renamed from re_translate.
63170         (can_be_null): Renamed from re_can_be_null.
63171         (regs_allocated): Renamed from re_regs_allocated.
63172         (fastmap_accurate): Renamed from re_fastmap_accurate.
63173         (no_sub): Renamed from re_no_sub.
63174         (not_bol): Renamed from re_not_bol.
63175         (not_eol): Renamed from re_not_eol.
63176         (newline_anchor): Renamed from re_newline_anchor.
63177         (num_regs): Renamed from rm_num_regs.
63178         (start): Renamed from rm_start.
63179         (end): Renamed from rm_end.
63180
63181         (free_state): Move up a bit.
63182
63183         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
63184         #define to be empty.
63185         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
63186         when that is what is intended.
63187         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
63188         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
63189         (MAX): New macro.
63190         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
63191         All uses changed back to re_malloc, etc.  It's now the caller's
63192         responsibility to check for overflow; all callers changed.
63193         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
63194         (re_x2nrealloc): Remove.
63195         (free_state): Remove decl.
63196
63197         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
63198         (re_set_registers, re_exec):
63199         Use K&R-style defn.
63200
63201         2006-01-31  Roland McGrath  <roland@redhat.com>
63202
63203         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
63204         Reported by Mike Frysinger <vapier@gentoo.org>.
63205
63206         2006-01-15  Andreas Jaeger  <aj@suse.de>
63207
63208         [BZ #1950]
63209         * lib/regex_internal.c (re_string_reconstruct): Adjust for
63210         build_wcs_upper_buffer change.
63211         (build_wcs_upper_buffer): Change return type.
63212
63213         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
63214
63215         * lib/regex_internal.h: Include <stdint.h> if available.
63216
63217         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
63218
63219         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
63220
63221         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
63222
63223         * lib/regcomp.c: Adjust for changed secondary hash function.
63224
63225         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
63226
63227         * lib/regex.h: Pretty printing.
63228         Clean up namespace a bit.
63229
63230         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
63231
63232         * lib/regexec.c (update_cur_sifted_state, check_arrival,
63233         check_arrival_add_next_nodes): Avoid using uninitialized variable.
63234
63235         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
63236                     Ulrich Drepper  <drepper@redhat.com>
63237
63238         [BZ #1302]
63239         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
63240         changed.
63241         (bitset_word_t): Renamed from bitset_word.  All uses changed.
63242
63243         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
63244
63245         [BZ #281]
63246         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
63247         * lib/regcomp.c: Remove unnecessary uses of
63248         unsigned RE_TRANSLATE_TYPE.
63249         * lib/regex_internal.h: Likewise.
63250         * lib/regex_internal.c: Likewise.
63251         * lib/regexec.c: Likewise.
63252         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
63253
63254         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
63255
63256         * lib/regexec.c (find_recover_state): Remove unnecessary
63257         initialization.
63258         (transit_state_bkref): Make DFA a const pointer.
63259         (get_subexp): Likewise.
63260         (check_arrival): Likewise.
63261         (update_cur_sifted_state): Likewise.
63262         (re_search_internal): Likewise.
63263         (prune_impossible_nodes): Likewise.
63264         (acquire_init_state_context): Likewise.
63265         (proceed_next_node): Likewise.
63266         (set_regs): Likewise.
63267         (free_fail_stack_return): Likewise.
63268         (check_arrival_expand_ecl): Mark DFA parameter as const.
63269         (check_arrival_expand_ecl_sub): Likewise.
63270         (check_subexp_limits): Likewise.
63271         (sub_epsilon_src_nodes):  Likewise.
63272         (add_epsilon_src_nodes):  Likewise.
63273         (merge_state_array): Likewise.
63274         (update_regs): Likewise.
63275         (build_trtable): Likewise.
63276         (sift_states_backward): Mark MCTX parameter as const.
63277         (build_sifted_states): Likewise.
63278         (update_cur_sifted_state): Likewise.
63279         (sift_states_mkref): Likewise.
63280         (check_arrival_expand_ecl): Mark eclosure as const.
63281         (check_dst_limits_calc_pos_1): Likewise.
63282         * lib/regex_internal.h (re_match_context_t): Make dfa a const
63283         pointer.
63284
63285         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
63286
63287         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
63288         (transit_state_sb): Likewise.
63289         (transit_state_mb): Likewise.
63290         (sift_states_iter_mb): Likewise.
63291         (check_arrival_add_next_nodes): Likewise.
63292         (check_node_accept_bytes): Change first parameter to pointer-to-const.
63293         [_LIBC] (re_search_2_stub): Use mempcpy.
63294
63295         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
63296         mbrtowc for very simple UTF-8 case.
63297
63298         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
63299         a pointer-to-const.
63300         (re_acquire_state_context): Likewise.
63301         * lib/regex_internal.h: Adjust prototypes.
63302
63303         * lib/regex.c: Prevent using C++ compilers.
63304
63305         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
63306         (re_acquire_state_context): Likewise.
63307
63308 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63309
63310         * modules/regex (Depends-on): Add ssize_t.
63311
63312 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63313
63314         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
63315         translation table.
63316
63317 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
63318
63319         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
63320
63321 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
63322             Bruno Haible  <bruno@clisp.org>
63323
63324         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
63325         <sys/types.h> and <inttypes.h>.
63326
63327 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63328
63329         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
63330         `__error_t_defined', so argp.h will not typedef the former.
63331
63332 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
63333
63334         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
63335         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
63336         glibc names.  Even if glibc is changed to conform to POSIX, the
63337         traditional names will be available anyway, since regex depends on
63338         the extensions module.  Also, fix a longstanding typo in the
63339         implementation of Spencer ERE test #75 from grep 2.3.  Problems
63340         reported by Emanuele Giaquinta.  Also, change sense of cached
63341         variable, so that the message makes sense.
63342
63343 2006-03-24  Simon Josefsson  <jas@extundo.com>
63344
63345         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
63346         including some doc fixes.
63347         (base64_encode_alloc): Fix +1 bug on allocation failures.
63348
63349 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63350
63351         * lib/base64.c (base64_encode): Do not read past end of array with
63352         unsanitized input on systems with CHAR_BIT > 8.
63353
63354 2006-03-24  Eric Blake  <ebb9@byu.net>
63355
63356         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
63357
63358 2006-03-22  Karl Berry  <karl@gnu.org>
63359
63360         * config/srclist.txt (*setenv.[ch]): get from coreutils.
63361         * config/srclistvars.sh (COREUTILS): new var.
63362
63363 2006-03-17  Jim Meyering  <jim@meyering.net>
63364
63365         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
63366         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
63367
63368 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63369
63370         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
63371         no longer needs it.  Instead, check that regoff_t is as least
63372         as wide as ptrdiff_t.
63373
63374         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
63375         so that our regex.h stays compatible with the installed regex.
63376         This is helpful for installers who configure --without-included-regex.
63377         Problem reported by Emanuele Giaquinta.
63378
63379 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
63380
63381         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
63382         Typedef to long int, not to off_, as POSIX will likely change
63383         in that direction.
63384
63385 2006-03-15  Eric Blake  <ebb9@byu.net>
63386
63387         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
63388
63389 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63390
63391         * lib/argp-help.c (validate_uparams): Fix typo
63392         * lib/argp-parse.c (argp_default_options): Consistently begin help
63393         messages with a lowercase letter.
63394
63395 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
63396
63397         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
63398         overrun buffers and shouldn't be used (much as gets shouldn't be
63399         used).
63400         * lib/time_r.c (asctime_r, ctime_r): Likewise.
63401
63402 2006-03-08  Simon Josefsson  <jas@extundo.com>
63403
63404         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
63405         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63406
63407 2006-03-08  Simon Josefsson  <jas@extundo.com>
63408
63409         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
63410         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63411
63412 2006-03-08  Simon Josefsson  <jas@extundo.com>
63413
63414         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
63415         signal that configure disabled the device.
63416
63417 2006-03-08  Simon Josefsson  <jas@extundo.com>
63418
63419         * build-aux/maint.mk: Fix refresh-po, to handle no translated
63420         languages.
63421
63422 2006-03-07  Simon Josefsson  <jas@extundo.com>
63423
63424         * modules/getopt (Depends-on): Add unistd.
63425
63426         * modules/unistd: New file.
63427
63428 2006-03-07  Simon Josefsson  <jas@extundo.com>
63429
63430         * modules/gc-random: New file.
63431
63432 2006-03-07  Simon Josefsson  <jas@extundo.com>
63433
63434         * m4/unistd_h.m4: New file.
63435
63436 2006-03-07  Simon Josefsson  <jas@extundo.com>
63437
63438         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
63439         test to be side-effect free by storing the result in the cache
63440         variable gl_cv_lib_readline, and moving the assignment of
63441         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
63442         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63443
63444 2006-03-07  Simon Josefsson  <jas@extundo.com>
63445
63446         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
63447         error on missing devices (the functions will return an error).
63448
63449         * m4/gc.m4: Move random stuff to gc-random.m4
63450
63451 2006-03-07  Simon Josefsson  <jas@extundo.com>
63452
63453         * lib/unistd_.h: New file.
63454
63455 2006-03-07  Simon Josefsson  <jas@extundo.com>
63456
63457         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
63458
63459 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63460
63461         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
63462         Problem reported by Juan Manuel Guerrero.
63463
63464 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63465
63466         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
63467         the unistd module.
63468         * lib/getlogin_r.c: Likewise.
63469         * lib/getlogin_r.h: Likewise.
63470         * lib/glob.c: Likewise.
63471         * lib/pagealign_alloc.c: Likewise.
63472         * lib/unistd_.h: Remove; no longer needed.
63473
63474 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
63475
63476         * MODULES.html.sh (Support for systems lacking POSIX:2001):
63477         Add unistd.
63478         * modules/c-stack (Depends-on): Add unistd.
63479         * modules/getlogin_r: Likewise.
63480         * modules/glob: Likewise.
63481         * modules/pagealign_alloc: Likewise.
63482         * modules/unistd (Files): Remove lib/unistd_.h.
63483         (EXTRA_DIST): Remove.
63484         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
63485         need unistd_.h.
63486         (MOSTLYCLEANFILES): Remove unistd.h-t.
63487
63488 2006-03-03  Simon Josefsson  <jas@extundo.com>
63489
63490         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
63491
63492 2006-03-03  Simon Josefsson  <jas@extundo.com>
63493
63494         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
63495         libidn and bison.
63496
63497 2006-03-03  Simon Josefsson  <jas@extundo.com>
63498
63499         * build-aux/maint.mk: Add indent target.
63500
63501 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
63502
63503         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
63504         our replacement poll.h in any case, to avoid a differing
63505         declaration from a system header.  Seen on AIX.
63506
63507 2006-03-01  Simon Josefsson  <jas@extundo.com>
63508
63509         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
63510         <kasal@ucw.cz>.
63511
63512 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63513
63514         * modules/gettime (Depends-on): Add extensions module.
63515         * modules/nanosleep (Depends-on): Likewise.
63516         * modules/settime (Depends-on): Likewise.
63517
63518 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63519
63520         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
63521         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
63522         pedantically.
63523         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63524         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
63525
63526         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
63527         not "==".  Reported by Ralf Wildenhues.
63528
63529 2006-03-01  Karl Berry  <karl@gnu.org>
63530
63531         * doc/Copyright/request-*: new files, synced from gnuorg.
63532
63533 2006-03-01  Karl Berry  <karl@gnu.org>
63534
63535         * config/srclist.txt (Copyright/*): new entries.
63536
63537 2006-02-28  Simon Josefsson  <jas@extundo.com>
63538
63539         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
63540
63541 2006-02-27  Simon Josefsson  <jas@extundo.com>
63542
63543         * lib/base64.h: Indent #define's.  From Jim Meyering
63544         <jim@meyering.net>.
63545
63546 2006-02-27  Jim Meyering  <jim@meyering.net>
63547
63548         Revert the change of 2006-02-24, so these files can continue
63549         to be sync'd from gettext.
63550         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
63551         of `config.h'.
63552
63553 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
63554
63555         * modules/intprops: New file.
63556         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63557         Add intprops.
63558         * modules/getloadavg (Files): Remove lib/intprops.h.
63559         (Depends-on): Add intprops.
63560         * modules/human: Likewise.
63561         * modules/inttostr: Likewise.
63562         * modules/openat: Likewise.
63563         * modules/sig2str: Likewise.
63564         * modules/userspec: Likewise.
63565         * modules/utimecmp: Likewise.
63566         * modules/xnanosleep: Likewise.
63567         * modules/xstrtol: Likewise.
63568
63569 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
63570
63571         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
63572         * modules/lock-tests (TESTS): Use $(EXEEXT).
63573         * modules/tls-tests: Likewise.
63574         * modules/argp-tests: Likewise.
63575         (check_PROGRAMS): New var, replacing...
63576         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
63577
63578 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63579
63580         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
63581         `config.h'.
63582
63583 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63584
63585         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
63586
63587 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63588
63589         Sync from coreutils.
63590         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
63591         gl_CHDIR_SAFER.
63592
63593 2006-02-22  Jim Meyering  <jim@meyering.net>
63594
63595         Sync from coreutils.
63596         * m4/chdir-safer.m4: New file.
63597
63598 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
63599
63600         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
63601         AT_FDCWD exceeds INT_MAX.
63602         * lib/openat.h (AT_FDCWD): Likewise.
63603
63604 2006-02-17  Eric Blake  <address@hidden>
63605
63606         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
63607
63608 2006-02-16  Simon Josefsson  <jas@extundo.com>
63609
63610         * modules/getaddrinfo (Depends-on): Add sys_socket.
63611
63612 2006-02-15  Simon Josefsson  <jas@extundo.com>
63613
63614         * build-aux/maint.mk: Add dsyntax-check rule.
63615
63616 2006-02-15  Eric Blake  <ebb9@byu.net>
63617
63618         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
63619         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
63620         'present but cannot compile' warnings on cygwin.
63621         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
63622         use ws2tcpip.h if sys/socket.h works.
63623         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
63624         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
63625
63626 2006-02-14  Simon Josefsson  <jas@extundo.com>
63627
63628         * modules/maintainer-makefile (Files): Rename.
63629
63630         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
63631         and (the local) Makefile.cfg to maint-cfg.mk.
63632
63633         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
63634         to the latter.
63635
63636         * modules/maintainer-makefile: New module.
63637
63638         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
63639         severaly stripped to make it possible to build it up from scratch
63640         with reliable tests.
63641
63642         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
63643         fixes to permit overriding the default actions when configure and
63644         makefile are not available.
63645
63646 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
63647
63648         Sync from coreutils.
63649         * modules/lstat (Depends-on): Don't depend on xalloc.
63650         (License): Change from GPL to LGPL, since this is now simply a
63651         replacement for a libc function.
63652
63653 2006-02-14  Jim Meyering  <jim@meyering.net>
63654
63655         Sync from coreutils.
63656
63657         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
63658         failure on deficient systems, and simplify gnulib lgpl dependencies.
63659         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
63660         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
63661
63662         * lib/xalloc-die.c: Remove unused definition of N_.
63663
63664 2006-02-14  Jim Meyering  <jim@meyering.net>
63665
63666         Sync from coreutils.
63667         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
63668         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
63669         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
63670         double-quote uses of that variable, to accommodate the rare case in
63671         which getmntent is available in none of the libraries checked.  This
63672         happens at least on FreeBSD 5.0.
63673
63674 2006-02-13  Simon Josefsson  <jas@extundo.com>
63675
63676         * gnulib-tool (Usage): Fix --import, from
63677         karl@freefriends.org (Karl Berry).
63678
63679 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
63680
63681         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
63682
63683 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
63684
63685         * lib/argp-namefrob.h: Restore changes accidentally lost during the
63686         "autoupdate" on 2005-12-12.
63687
63688 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63689
63690         * modules/closeout (Depends-on): Remove atexit.
63691
63692 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
63693
63694         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
63695         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
63696
63697 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
63698
63699         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
63700         __EXTENSIONS__ if this causes compilation to fail.  Problem
63701         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
63702         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
63703
63704 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
63705
63706         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
63707         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
63708         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
63709         All uses changed.
63710
63711 2006-01-26  Simon Josefsson  <jas@extundo.com>
63712
63713         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
63714         prototype is visible on mingw32.
63715
63716         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
63717         for mingw32.
63718
63719         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
63720         mingw32).
63721
63722 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
63723
63724         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
63725         attempt to open for write; this always fails, at least on POSIX
63726         hosts.  This reinstates the 2006-01-09 change, which was
63727         inadvertently removed.
63728
63729 2006-01-26  Bruno Haible  <bruno@clisp.org>
63730
63731         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
63732         Reported by Paul Eggert.
63733
63734 2006-01-26  Bruno Haible  <bruno@clisp.org>
63735             Paul Eggert  <eggert@cs.ucla.edu>
63736
63737         * lib/stdbool_.h (_Bool)
63738         [(! (defined __cplusplus || defined __BEOS__)
63739           && !defined __GNUC__
63740           && !(defined __HP_cc || defined __xlc__
63741                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
63742                || defined __sgi))]:
63743         #define to signed char in these cases too; this simplifies
63744         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
63745         etc., separately) and makes it more conservative.
63746
63747 2006-01-25  Simon Josefsson  <jas@extundo.com>
63748
63749         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
63750         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
63751         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
63752
63753 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
63754
63755         * lib/argp-namefrob.h: Bugfix. Remove stray #
63756
63757 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
63758
63759         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
63760         so that we test the test.
63761         Check for yet another HP-UX cc bug involving *bool |= bool.
63762
63763 2006-01-25  Karl Berry  <karl@gnu.org>
63764
63765         * config/srclist.txt (vasnprintf.c): sync lost.
63766
63767 2006-01-25  Jim Meyering  <jim@meyering.net>
63768
63769         Sync from the stable (b5) branch of coreutils:
63770
63771         * lib/fts.c (fts_children): Don't let close() clobber errno from
63772         failed fchdir().
63773
63774         * lib/fts.c (fts_stat): When following a symlink-to-directory,
63775         don't necessarily interpret stat-fails+lstat-succeeds as indicating
63776         a dangling symlink.  That can also happen at least for ELOOP.
63777         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
63778         FYI, this bug predates the inclusion of fts.c in coreutils.
63779
63780         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
63781         in their own block, so pre-c99 compilers don't object.
63782
63783         Avoid the double-free (first in fts_read, second in fts_close) that
63784         would occur when an `active' directory is made inaccessible (e.g.,
63785         via chmod a-x) during a traversal.
63786         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
63787         before returning.  Reproduce this failure by
63788         mkdir -p a/b; cd a; chmod a-x . b
63789         Reported by Stavros Passas.
63790
63791 2006-01-25  Jim Meyering  <jim@meyering.net>
63792
63793         * lib/fileblocks.c: Remove more useless parentheses.
63794         * lib/readutmp.h: Likewise.
63795
63796 2006-01-25  Bruno Haible  <bruno@clisp.org>
63797
63798         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
63799         warnings.
63800         Reported by Paul Eggert.
63801
63802 2006-01-25  Bruno Haible  <bruno@clisp.org>
63803
63804         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
63805         rid of a trap command. For Solaris sh.
63806         Reported by Mark D. Baushke <mdb@gnu.org>.
63807
63808 2006-01-24  Simon Josefsson  <jas@extundo.com>
63809
63810         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
63811         Bruno.
63812
63813 2006-01-24  Karl Berry  <karl@gnu.org>
63814
63815         * config/srclist.txt (argp-namefrob.h): sync lost.
63816
63817 2006-01-24  Jim Meyering  <jim@meyering.net>
63818
63819         * modules/openat (Files): Add lib/intprops.h.
63820         From Mark D. Baushke.
63821
63822 2006-01-24  Jim Meyering  <jim@meyering.net>
63823
63824         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
63825         Reported by Mark D. Baushke.
63826
63827 2006-01-24  Jim Meyering  <jim@meyering.net>
63828
63829         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
63830
63831 2006-01-24  Bruno Haible  <bruno@clisp.org>
63832
63833         * modules/strnlen (Maintainer): Change from glibc to all.
63834
63835 2006-01-24  Bruno Haible  <bruno@clisp.org>
63836
63837         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
63838         Patch by Paul Eggert.
63839
63840 2006-01-24  Bruno Haible  <bruno@clisp.org>
63841
63842         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
63843         already has it.
63844         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
63845         2005-11-26.
63846
63847         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
63848         'signed char' to avoid problems with the built-in _Bool type.
63849         Reported by Paul Eggert on 2005-11-26.
63850
63851 2006-01-24  Bruno Haible  <bruno@clisp.org>
63852
63853         * gnulib-tool (func_import): Avoid constructing complicated sed
63854         expressions inside backquote.
63855         Report and solution by Mark D. Baushke <mdb@gnu.org>.
63856
63857 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
63858
63859         These changes imported from libc.
63860         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
63861         test and two separate function calls.
63862         * lib/strndup.c (__strndup): Add libc_hidden_def.
63863
63864 2006-01-23  Simon Josefsson  <jas@extundo.com>
63865
63866         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
63867         Remove the test_*_SOURCES variable: automake infers it by default.
63868         * modules/tls-tests: Likewise.
63869
63870 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63871
63872         Work around porting bugs reported by Dieter in
63873         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
63874         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
63875         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
63876         Include "getopt.h" first, to check interface.
63877         (getenv): Declare only if defined HAVE_DECL_GETENV &&
63878         !HAVE_DECL_GETENV.
63879         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
63880         (__strndup): Revert to K&R-style function dfns, the glibc style.
63881         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
63882         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
63883         Include strnlen.h first, to get prototype properly.
63884         (strnlen): Renamed from __strnlen.
63885         Remove weak alias.
63886
63887 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63888
63889         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
63890
63891 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
63892
63893         * config/srclist.txt: Adjust to reflect glibc reorganization.
63894         This affects only comments.
63895
63896 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
63897
63898          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
63899          Reported by Bruce Korb <bkorb@gnu.org>.
63900
63901 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
63902
63903         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
63904         to pacify gcc -Wswitch-default.
63905
63906 2006-01-22  Bruno Haible  <bruno@clisp.org>
63907
63908         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
63909         temporary buffer for sprintf, take into account the precision also
63910         for 'd', 'i', 'u', 'o', 'x', 'X'.
63911
63912 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63913
63914         * modules/argp-tests: New module
63915         * tests/test-argp.c: New file
63916         * tests/test-argp-2.sh: New file
63917
63918 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
63919
63920         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
63921         (__argp_base_name): Removed
63922         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
63923         typo.
63924         (__argp_base_name): Provide macro definition or extern declaration
63925         depending on the configuration
63926
63927 2006-01-20  Simon Josefsson  <jas@extundo.com>
63928
63929         * modules/inet_ntop (Depends-on): Depend on sys_socket.
63930
63931 2006-01-20  Simon Josefsson  <jas@extundo.com>
63932
63933         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
63934
63935 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
63936
63937         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
63938         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
63939         Suggested by Bruno Haible.
63940
63941 2006-01-20  Karl Berry  <karl@gnu.org>
63942
63943         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
63944         until changes propagate, I guess.
63945
63946 2006-01-19  Simon Josefsson  <jas@extundo.com>
63947
63948         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
63949
63950 2006-01-19  Simon Josefsson  <jas@extundo.com>
63951
63952         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
63953
63954 2006-01-19  Simon Josefsson  <jas@extundo.com>
63955
63956         * gnulib-tool: Set check_PROGRAMS.
63957
63958         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63959         modules/des-tests, modules/gc-arcfour-tests,
63960         modules/gc-arctwo-tests, modules/gc-des-tests,
63961         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63962         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63963         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63964         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63965         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63966         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
63967         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
63968         test_*_SOURCES.
63969
63970 2006-01-18  Simon Josefsson  <jas@extundo.com>
63971
63972         * modules/socklen (Depends-on): Depend on sys_socket.
63973
63974 2006-01-18  Simon Josefsson  <jas@extundo.com>
63975
63976         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
63977         modules/des-tests, modules/gc-arcfour-tests,
63978         modules/gc-arctwo-tests, modules/gc-des-tests,
63979         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
63980         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
63981         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
63982         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
63983         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
63984         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
63985         $(EXEEXT) to automake TESTS variable, for mingw32.
63986
63987 2006-01-17  Simon Josefsson  <jas@extundo.com>
63988
63989         * modules/socklen (Include): Need sys/socket.h.
63990
63991 2006-01-17  Bruno Haible  <bruno@clisp.org>
63992
63993         * modules/ssize_t (Include): Add <sys/types.h>.
63994
63995 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
63996
63997         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
63998         it's not portable and it doesn't work with cross-compiles.
63999         Problem reported by Bruno Haible.  Fix missing-$ typo in
64000         'test "gl_cv_ignore_unused_libraries" ...' that prevented
64001         -zignore from being used with Sun's C compiler.
64002
64003 2006-01-12  Simon Josefsson  <jas@extundo.com>
64004
64005         * lib/base64.c: Fix warning, reported by Bruno Haible
64006         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
64007
64008 2006-01-12  Bruno Haible  <bruno@clisp.org>
64009
64010         * modules/ldd: New file.
64011         * build-aux/ldd.sh.in: New file.
64012         * MODULES.html.sh (Support for building libraries and executables): Add
64013         ldd.
64014
64015 2006-01-12  Bruno Haible  <bruno@clisp.org>
64016
64017         * m4/ldd.m4: New file.
64018
64019 2006-01-12  Bruno Haible  <bruno@clisp.org>
64020
64021         * gnulib-tool (func_import, func_create_testdir): Don't go into an
64022         endless loop while replacing $auxdir with build-aux.
64023
64024 2006-01-11  Simon Josefsson  <jas@extundo.com>
64025
64026         * lib/stdint_.h (SIZE_MAX): Add missing (.
64027
64028 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
64029
64030         Sync from coreutils.
64031         * lib/md5.c: Fix commentary typos.
64032         (alignof, UNALIGNED_P): No need for a GCC-specific version.
64033         * lib/md5.h (__attribute__): Remove; unused.
64034         * lib/sha1.c: Fix commentary to match md5 better.
64035         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
64036         so that we don't need to worry about alignment.  All uses changed.
64037         This merges the 2005-10-28 md5 change into sha1.
64038
64039 2006-01-11  Jim Meyering  <jim@meyering.net>
64040
64041         Sync from coreutils.
64042         * lib/md5.c (OP): Fix spacing.
64043
64044 2006-01-11  Bruno Haible  <bruno@clisp.org>
64045
64046         Ensure automatic ordering between gl_LOCK and gl_ARGP.
64047         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
64048         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
64049
64050 2006-01-11  Bruno Haible  <bruno@clisp.org>
64051
64052         Ensure automatic ordering between gl_LOCK and gl_ARGP.
64053         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
64054         the "early" section as well.
64055
64056 2006-01-11  Bruno Haible  <bruno@clisp.org>
64057
64058         Avoid "ar: no archive members specified" error on MacOS X.
64059         * gnulib-tool (func_modules_add_dummy): New function.
64060         (func_import, func_create_testdir): Invoke it.
64061
64062 2006-01-11  Bruno Haible  <bruno@clisp.org>
64063
64064         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
64065         with $auxdir in AC_CONFIG_FILES statements.
64066
64067 2006-01-11  Bruno Haible  <bruno@clisp.org>
64068
64069         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64070         Initialize also noinst_HEADERS to empty.
64071
64072 2006-01-11  Bruno Haible  <bruno@clisp.org>
64073
64074         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
64075         variables.
64076         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
64077         autoreconf.
64078
64079 2006-01-11  Bruno Haible  <bruno@clisp.org>
64080
64081         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
64082         overridable by the user.
64083         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64084
64085 2006-01-10  Simon Josefsson  <jas@extundo.com>
64086
64087         * modules/sys_socket: New file.
64088
64089 2006-01-10  Simon Josefsson  <jas@extundo.com>
64090
64091         * m4/sys_socket_h.m4: New file.
64092
64093 2006-01-10  Simon Josefsson  <jas@extundo.com>
64094
64095         * lib/socket_.h: New file.
64096
64097 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64098
64099         * modules/readutmp (Maintainer): Add myself.
64100
64101 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64102
64103         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
64104         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
64105         People who are still concerned with buggy memcmp implementations
64106         can invoke gl_FUNC_MEMCMP themselves.
64107
64108 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
64109
64110         * lib/regex_internal.h (BITSET_WORD_BITS):
64111         Work around a bug in 64-bit PGC (before version 6.1-2), where the
64112         preprocessor mishandles large unsigned values as if they were signed.
64113         Problem reported by Claudio Fontana in
64114         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
64115
64116 2006-01-10  Jim Meyering  <jim@meyering.net>
64117
64118         Avoid the double-free (first in fts_read, second in fts_close) that
64119         would occur when an `active' directory is made inaccessible (e.g.,
64120         via chmod a-x) during a traversal.
64121         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
64122         before returning.  Reproduce this failure by
64123         mkdir -p a/b; cd a; chmod a-x . b
64124         Reported by Stavros Passas.
64125
64126         Sync from coreutils.
64127         * lib/sha1.c: Tweak grammar in a comment.
64128
64129 2006-01-10  Jim Meyering  <jim@meyering.net>
64130
64131         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
64132         Patch by Joerg Sonnenberger.
64133
64134 2006-01-10  Bruno Haible  <bruno@clisp.org>
64135
64136         * modules/readutmp: Depend on module free.
64137         * modules/strtok_r: Depend on module restrict.
64138
64139 2006-01-10  Bruno Haible  <bruno@clisp.org>
64140
64141         * modules/gettext (configure.ac): Add an invocation of
64142         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
64143
64144 2006-01-10  Bruno Haible  <bruno@clisp.org>
64145
64146         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
64147         Reported by Werner Lemberg <wl@gnu.org>.
64148
64149 2006-01-10  Bruno Haible  <bruno@clisp.org>
64150
64151         * lib/localcharset.c: Update from GNU gettext.
64152
64153 2006-01-10  Bruno Haible  <bruno@clisp.org>
64154
64155         * lib/argp.h (__const): Remove macro. Use const instead.
64156         * lib/argp-fmtstream.h (__const): Likewise.
64157         * lib/glob_.h (__const): Remove macro.
64158         * lib/glob-libc.h: Use const instead of __const.
64159
64160 2006-01-10  Bruno Haible  <bruno@clisp.org>
64161
64162         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
64163         variable.
64164         Needed to avoid an automake error regarding the 'gettext' module.
64165
64166 2006-01-09  Simon Josefsson  <jas@extundo.com>
64167
64168         * modules/inet_ntop (Depends-on): Add restrict.
64169
64170 2006-01-09  Simon Josefsson  <jas@extundo.com>
64171
64172         * modules/gc-rijndael-tests (License): Put under LGPL.
64173
64174         * modules/gc-des-tests (License): Likewise.
64175
64176         * modules/gc-arcfour-tests (License): Likewise.
64177
64178         * modules/gc-arctwo-tests (License): Likewise.
64179
64180         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
64181
64182         * modules/gc-hmac-sha1-tests (Files): Likewise.
64183
64184         * modules/gc-hmac-md5-tests (License): Likewise.
64185
64186         * modules/gc-sha1-tests (License): Likewise.
64187
64188         * modules/gc-md5-tests (License): Likewise.
64189
64190         * modules/gc-md4-tests (License): Likewise.
64191
64192         * modules/gc-md2-tests (License): Likewise.
64193
64194         * modules/gc-tests (License): Likewise.
64195
64196         * modules/des-tests (License): Likewise.
64197
64198         * modules/md4-tests (License): Likewise.
64199
64200         * modules/md2-tests (License): Likewise.
64201
64202 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64203
64204         Sync from coreutils:
64205
64206         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
64207         * modules/lib-ignore: New file.
64208         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
64209         chdir-safer.m4, lchmod.m4.
64210         * modules/openat: Add mkdirat.c, openat-priv.h.
64211
64212 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64213
64214         Sync from coreutils.
64215         * m4/lib-ignore.m4: New file.
64216         * m4/lchmod.m4: New file.
64217
64218 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64219
64220         Sync from coreutils.
64221         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
64222         for write access: POSIX says that must fail.
64223         * lib/fts.c (diropen): Likewise.
64224         * lib/save-cwd.c (save_cwd): Likewise.
64225         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
64226         well, for minor improvements on hosts that lack O_DIRECTORY.
64227         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
64228         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
64229         Fall back on chown if open failed with EACCES.
64230
64231         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
64232         Report an error at compile-time if only a 1-second nominal clock
64233         resolution is found.
64234
64235         * lib/lchmod.h: New file.
64236         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
64237         (make_dir_parents): Use lchown rather than chown, and
64238         lchmod rather than chmod.
64239
64240         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
64241         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
64242         "proc" reported by n0dalus.
64243
64244         * lib/mountlist.c: Include <limits.h>.
64245         (dev_from_mount_options)
64246         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
64247         New function.  It no longer assumes "dev=" has the System V meaning
64248         on Linux (since it doesn't).  It also parses "dev=" more carefully.
64249         (read_file_system_list)
64250         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
64251         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
64252         dev= in that case.
64253
64254         * lib/posixtm.h (PDS_PRE_2000): New macro.
64255         * lib/posixtm.c (year): Arg is now syntax_bits rather than
64256         allow_century.  All usages changed.  Reject dates outside the range
64257         1969-1999 if PDS_PRE_2000 is used.
64258
64259 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
64260
64261         Sync from coreutils.
64262         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
64263         (Time of day items): Mention the possibility of leap seconds.
64264         Problem reported by Dr. David Alan Gilbert.
64265
64266 2006-01-09  Jim Meyering  <jim@meyering.net>
64267
64268         Sync from coreutils.
64269
64270         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
64271
64272         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
64273
64274         * lib/modechange.c (mode_compile): Reject an invalid mode string
64275         that starts with an octal digit.  From Andreas Gruenbacher.
64276
64277         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
64278         and dup to open_safer and dup_safer, respectively.
64279         (openat_permissive): Fix typo in comment.
64280
64281         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
64282         "gettext.h"; either no longer needed or are guaranteed by openat.h.
64283         (_): Remove; no longer needed.
64284         (openat): Renamed from rpl_openat; no need for rpl_openat
64285         since openat.h renames openat for us.
64286         Replace most of the body with a call to openat_permissive,
64287         to avoid duplicate code.
64288         Port to (probably hypothetical) environments were mode_t is
64289         wider than int.
64290         (openat_permissive): Require mode arg, so that we can check
64291         types better.  Put it just after flags.  Change cwd failure
64292         indicator from pointer-to-bool to pointer-to-errno-value.
64293         All callers changed.
64294         Invoke openat_save_fail and/or openat_restore_fail if
64295         cwd_errno is null, so that openat can call us.
64296         (openat_permissive, fdopendir, fstatat, unlinkat):
64297         Simplify errno handling to avoid some duplicate code,
64298         as it's OK to set errno on success.
64299         * lib/openat.h: Revamp code so that function macros depend on
64300         __OPENAT_PREFIX only, not also on AT_FDCWD.
64301         (openat_ro): Remove.  Caller changed to use openat_permissive.
64302         (openat_permissive): Now a macro, if not a function.
64303         (openat_restore_fail, openat_save_fail): Now always functions,
64304         since mkdirat needs them even if __OPENAT_PREFIX is defined.
64305
64306         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
64307         and openat.c.
64308         * lib/mkdirat.c: Include openat-priv.h.
64309         Remove definitions of macros defined therein.
64310         * lib/openat.c: Likewise.
64311
64312         * lib/mkdirat.c (mkdirat): New file and function.
64313         * lib/openat.h (mkdirat): Declare.
64314
64315         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
64316
64317         * lib/openat.h (openat_permissive): Declare.
64318         (openat_ro): Define.
64319
64320         * lib/openat.c (EXPECTED_ERRNO): New macro.
64321         (openat_permissive): New function -- used in remove.c rewrite.
64322         (all functions): Set errno just before returning, only if there
64323         was an actual failure.
64324         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
64325
64326         Emulate openat-family functions using Linux's procfs, if possible.
64327         Idea and some code based on Ulrich Drepper's glibc changes.
64328
64329         * lib/openat.c: (BUILD_PROC_NAME): New macro.
64330         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
64331         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
64332         before falling back on save_cwd and restore_cwd.
64333         (fdopendir, fstatat, unlinkat): Likewise.
64334
64335         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
64336         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
64337
64338         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
64339         as second argument to va_arg.  Otherwise, some versions of gcc
64340         warn that `if this code is reached, the program will abort'.
64341
64342 2006-01-09  Jim Meyering  <jim@meyering.net>
64343
64344         Sync from coreutils.
64345         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
64346         Require openat-priv.h.
64347
64348 2006-01-09  Bruno Haible  <bruno@clisp.org>
64349
64350         * modules/strnlen (Include): Use strnlen.h.
64351
64352 2006-01-09  Bruno Haible  <bruno@clisp.org>
64353
64354         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
64355
64356 2006-01-09  Bruno Haible  <bruno@clisp.org>
64357
64358         * lib/sysexit_.h (EX_OK): New macro.
64359         Suggested by Martin Lambers <marlam@marlam.de>.
64360
64361 2006-01-09  Bruno Haible  <bruno@clisp.org>
64362
64363         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
64364         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
64365
64366 2006-01-09  Bruno Haible  <bruno@clisp.org>
64367
64368         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
64369         numbers.
64370
64371 2006-01-09  Bruno Haible  <bruno@clisp.org>
64372
64373         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
64374         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
64375         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
64376         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
64377
64378 2006-01-09  Bruno Haible  <bruno@clisp.org>
64379
64380         * build-aux/javacomp.sh.in: New file, moved from lib/.
64381         * modules/javacomp-script (Files): Update.
64382         (configure.ac): Add AC_CONFIG_FILES invocation.
64383         (EXTRA_DIST): Remove variable.
64384
64385         * build-aux/javaexec.sh.in: New file, moved from lib/.
64386         * modules/javaexec (Files): Update.
64387         (configure.ac): Add AC_CONFIG_FILES invocation.
64388         (EXTRA_DIST): Remove javaexec.sh.in.
64389
64390         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
64391         * modules/csharpcomp-script (Files): Update.
64392         (configure.ac): Add AC_CONFIG_FILES invocation.
64393         (EXTRA_DIST): Remove variable.
64394
64395         * build-aux/csharpexec.sh.in: New file, moved from lib/.
64396         * modules/csharpexec (Files): Update.
64397         (configure.ac): Add AC_CONFIG_FILES invocation.
64398         (EXTRA_DIST): Remove csharpexec.sh.in.
64399
64400 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64401
64402         Sync from coreutils.
64403
64404         Add POSIX ACL support
64405         * lib/acl.h (copy_acl, set_acl): Add declarations.
64406         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
64407         systems other than Linux.
64408         (chmod_or_fchmod): New function: use fchmod when possible,
64409         and chmod otherwise.
64410         (file_has_acl): Add a POSIX ACL implementation, with a
64411         Linux-specific subcase.
64412         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
64413         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
64414         acls are unsupported.
64415         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
64416         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
64417         are unsupported.
64418
64419 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
64420
64421         Sync from coreutils.
64422         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
64423
64424 2006-01-07  Bruno Haible  <bruno@clisp.org>
64425
64426         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
64427         gl_EARLY.
64428
64429 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64430
64431         * lib/strftime.c (tzname): Don't declare if it is already #defined.
64432         Problem reported for Mingw by Mark Junker.
64433
64434 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
64435
64436         * README: Gnulib normally doesn't generate a tarball.
64437
64438 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
64439
64440         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
64441         long int, not int, for nanosecond counts, so that people who are
64442         used to POSIX struct timespec won't be surprised.  Reported by Jim
64443         Meyering.
64444
64445 2005-12-28  Bruno Haible  <bruno@clisp.org>
64446
64447         * build-aux/config.rpath: Update from GNU gettext.
64448
64449 2005-12-16  Jim Meyering  <jim@meyering.net>
64450
64451         * modules/fprintftime: New module.
64452         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
64453
64454 2005-12-16  Jim Meyering  <jim@meyering.net>
64455
64456         * m4/fprintftime.m4: New file.
64457
64458 2005-12-16  Jim Meyering  <jim@meyering.net>
64459
64460         * lib/fprintftime.c, lib/fprintftime.h: New files.
64461
64462 2005-12-15  Simon Josefsson  <jas@extundo.com>
64463
64464         * modules/socklen (configure.ac): Fix M4 macro name, to align with
64465         new m4/socklen.m4.
64466
64467 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64468
64469         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
64470         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
64471
64472 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64473
64474         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
64475         * lib/argp-help.c (fill_in_uparams): Check if the constructed
64476         struct uparams is valid. Fall back to the default values if it is
64477         not.
64478
64479 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64480
64481         * modules/argp (Files): Add argp-pin.c
64482         (Depends-on): dirname
64483         (lib_SOURCES): Add argp-pin.c
64484
64485 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64486
64487         * m4/argp.m4:  Check if program_invocation_name and
64488         program_invocation_short_name are declared and define appropriate
64489         macros if they are not.
64490
64491 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64492
64493         * lib/argp-help.c (__argp_base_name): New function
64494         (__argp_short_program_name): Rewrite using __argp_base_name
64495         * lib/argp-namefrob.h: Define program_invocation_name and
64496         program_invocation_short_name if requested
64497         (__argp_base_name): Add prototype
64498         * lib/argp-parse.c (argp_def): Use gettext wrappers
64499         (argp_default_parser): Use __argp_base_name
64500         * lib/argp-pin.c: New file. Defines program_invocation_name and
64501         program_invocation_short_name on systems that lack them.
64502
64503 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64504
64505         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
64506         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64507         porting problem reported by Georg Schwarz in
64508         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64509
64510 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
64511
64512         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
64513         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
64514         porting problem reported by Georg Schwarz in
64515         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
64516
64517 2005-12-05  Bruno Haible  <bruno@clisp.org>
64518
64519         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
64520         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
64521         Reported by Mark Junker <mjscod@gmx.de>.
64522
64523 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
64524
64525         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
64526         Use implementation from Albert Chin, with some
64527         comments/corrections by Stepan Kasal and myself.
64528
64529 2005-12-02  Bruno Haible  <bruno@clisp.org>
64530
64531         * gnulib-tool (func_import): Accept GPLed build tool modules when
64532         --lgpl is given.
64533         * modules/csharpcomp-script: New file.
64534         * modules/csharpcomp: Depend on it.
64535         * modules/javacomp-script: New file.
64536         * modules/javacomp: Depend on it.
64537         Suggested by Simon Josefsson.
64538
64539 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
64540
64541         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
64542         statement, to work around an HP-UX 10.20 compiler bug reported by
64543         Peter O'Gorman.
64544
64545 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64546
64547         * modules/savedir (Depends-on): Add openat.
64548
64549 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
64550
64551         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
64552         (uintmax_t) [defined uintmax_t]: Do not declare.
64553         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
64554         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
64555         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
64556         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
64557         sake of portability to weird hosts that C allows (though we don't
64558         know of any practical examples).
64559
64560         * lib/savedir.h (fdsavedir): New decl.
64561         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
64562         contains most of the former guts of savedir.
64563         (savedir): Use savedirstream.
64564         Include "openat.h".
64565
64566 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
64567
64568         * modules/obstack (Files): Add m4/ulonglong.m4.
64569         Problem reported by Davide Angelocola.
64570
64571 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
64572
64573         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
64574         coreutils no longer futzes with rounding modes.
64575
64576 2005-11-14  Jim Meyering  <jim@meyering.net>
64577
64578         * lib/mkstemp-safer.c: Include <config.h>, required for possible
64579         replacement of mkstemp.
64580
64581 2005-11-10  Simon Josefsson  <jas@extundo.com>
64582
64583         * lib/readline.c: Remove EOL.
64584
64585 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64586
64587         * modules/gethrxtime (Depends-on): Add gettime.
64588
64589 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64590
64591         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
64592         or gettimeofday; no longer needed.
64593
64594 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
64595
64596         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
64597         time business.
64598         (gethrxtime) [! (HAVE_NANOUPTIME
64599         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
64600         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
64601         our own approximation.
64602
64603 2005-11-08  Eric Blake  <ebb9@byu.net>
64604
64605         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64606
64607 2005-11-08  Eric Blake  <ebb9@byu.net>
64608
64609         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
64610
64611 2005-11-04  Bruno Haible  <bruno@clisp.org>
64612
64613         * gnulib-tool: Implement --update mode.
64614
64615 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64616
64617         Fix porting problem reported by Theodoros V. Kalamatianos.
64618         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
64619         Don't assume that futimes failing means we must fail.
64620
64621 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64622
64623         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
64624         variables to suggest the intended function of the PATH_MAX check.
64625
64626 2005-10-30  Kean Johnston  <jkj@sco.com>
64627
64628         Trivial changes to support SCO systems.
64629         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
64630         as PATH_MAX.
64631         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
64632         where __ptr is null when no I/O is pending.
64633
64634 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
64635
64636         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
64637         leave errno alone.  Problem reported by Dmitry V. Levin.
64638
64639 2005-10-28  Simon Josefsson  <jas@extundo.com>
64640
64641         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
64642         Test more.
64643
64644         * tests/test-gc-md2.c, tests/test-md2.c: New files.
64645
64646         * modules/md2, modules/md2-tests: New files.
64647
64648 2005-10-28  Simon Josefsson  <jas@extundo.com>
64649
64650         * m4/inet_ntop.m4: More tests.
64651
64652         * m4/gc-md2.m4, md2.m4: New file.
64653
64654 2005-10-28  Simon Josefsson  <jas@extundo.com>
64655
64656         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
64657         "restrict" keywords, as per POSIX.  Protect the function
64658         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
64659         Don't use K&R prototypes.  Check the sprintf return values.
64660         Re-define EAFNOSUPPORT if not present.  Indent.
64661
64662         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
64663         suggested by Bruno Haible <bruno@clisp.org>.
64664
64665         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
64666
64667         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
64668
64669         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
64670         libgcrypt).
64671
64672         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
64673
64674         * lib/md2.h, lib/md2.c: New files.
64675
64676 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
64677
64678         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
64679         errno alone.  Problem reported by Frederic Jolliton.
64680
64681 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
64682
64683         * modules/verify (License): Change from GPL to LGPL.  This is a
64684         tiny module and there are apparently near-equivalents that are
64685         under the BSD license.
64686
64687 2005-10-24  Simon Josefsson  <jas@extundo.com>
64688
64689         * modules/sha1: Relicense to LGPL.
64690
64691 2005-10-24  Simon Josefsson  <jas@extundo.com>
64692
64693         * lib/md4.h: Shrink buffer size, now that we changed the type.
64694
64695 2005-10-23  Simon Josefsson  <jas@extundo.com>
64696
64697         * gnulib-tool (func_import): Fix --tests-base.
64698
64699 2005-10-22  Simon Josefsson  <jas@extundo.com>
64700
64701         * modules/arcfour (Depends-on): Need stdint.
64702
64703 2005-10-22  Simon Josefsson  <jas@extundo.com>
64704
64705         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
64706         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
64707
64708 2005-10-22  Simon Josefsson  <jas@extundo.com>
64709
64710         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
64711         suggested by Bruno Haible <bruno@clisp.org>.
64712
64713 2005-10-22  Simon Josefsson  <jas@extundo.com>
64714
64715         * lib/crc.h: Include stddef.h, for size_t.
64716
64717 2005-10-22  Simon Josefsson  <jas@extundo.com>
64718
64719         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
64720         arcfour_context struct (simplify test vector testing in GNU
64721         Shishi).
64722
64723 2005-10-21  Simon Josefsson  <jas@extundo.com>
64724
64725         * modules/des, modules/des-tests: New files.
64726
64727         * modules/gc-des, modules/gc-des-tests: New files.
64728
64729         * tests/test-des.c, tests/test-gc-des.c: New file.
64730
64731 2005-10-21  Simon Josefsson  <jas@extundo.com>
64732
64733         * modules/arctwo, modules/arctwo-tests: New files.
64734
64735         * tests/test-arctwo.c: New file.
64736
64737         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
64738
64739         * tests/test-gc-arctwo.c: New file.
64740
64741 2005-10-21  Simon Josefsson  <jas@extundo.com>
64742
64743         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
64744         Bruno Haible <bruno@clisp.org>.
64745
64746         * m4/gc-des.m4: New file.
64747
64748 2005-10-21  Simon Josefsson  <jas@extundo.com>
64749
64750         * m4/arctwo.m4: New file.
64751
64752         * m4/gc-arctwo.m4: New file.
64753
64754 2005-10-21  Simon Josefsson  <jas@extundo.com>
64755
64756         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
64757         block.
64758
64759 2005-10-21  Simon Josefsson  <jas@extundo.com>
64760
64761         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
64762         <bruno@clisp.org>.
64763
64764         * lib/hmac-sha1.c (hmac_sha1): Likewise.
64765
64766         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
64767         Bruno Haible <bruno@clisp.org>.
64768
64769         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
64770         <bruno@clisp.org>.
64771
64772 2005-10-21  Simon Josefsson  <jas@extundo.com>
64773
64774         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
64775
64776 2005-10-21  Simon Josefsson  <jas@extundo.com>
64777
64778         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
64779
64780 2005-10-21  Simon Josefsson  <jas@extundo.com>
64781
64782         * lib/des.h, lib/des.c: New files.
64783
64784         * lib/gc-gnulib.c: Support DES.c
64785
64786 2005-10-21  Simon Josefsson  <jas@extundo.com>
64787
64788         * lib/arctwo.h, lib/arctwo.c: New files.
64789
64790         * lib/gc-gnulib.c: Support ARCTWO.
64791
64792 2005-10-21  Simon Josefsson  <jas@extundo.com>
64793
64794         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
64795         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64796
64797 2005-10-21  Simon Josefsson  <jas@extundo.com>
64798
64799         * gnulib-tool (func_import, func_create_testdir): Define automake
64800         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
64801         Makefile.am snippet),
64802         suggested by Bruno Haible <bruno@clisp.org>.
64803
64804         * modules/gc (Makefile.am): Use it.
64805
64806 2005-10-21  Bruno Haible  <bruno@clisp.org>
64807
64808         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
64809         patch.
64810
64811 2005-10-19  Simon Josefsson  <jas@extundo.com>
64812
64813         * tests/test-gc-rijndael.c: New file.
64814
64815         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
64816
64817 2005-10-19  Simon Josefsson  <jas@extundo.com>
64818
64819         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
64820         interface too.
64821
64822 2005-10-19  Simon Josefsson  <jas@extundo.com>
64823
64824         * tests/test-gc-arcfour.c: New file.
64825
64826         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
64827
64828 2005-10-19  Simon Josefsson  <jas@extundo.com>
64829
64830         * modules/gc-md4, modules/gc-md4-tests: New file.
64831
64832         * tests/test-gc-md4.c: New file.
64833
64834 2005-10-19  Simon Josefsson  <jas@extundo.com>
64835
64836         * m4/gc-md4.m4: New file.
64837
64838 2005-10-19  Simon Josefsson  <jas@extundo.com>
64839
64840         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
64841         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
64842         <kasal@ucw.cz>.
64843
64844 2005-10-19  Simon Josefsson  <jas@extundo.com>
64845
64846         * m4/gc-arcfour.m4: New file.
64847
64848         * m4/gc-rijndael.m4: New file.
64849
64850 2005-10-19  Simon Josefsson  <jas@extundo.com>
64851
64852         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
64853
64854 2005-10-19  Simon Josefsson  <jas@extundo.com>
64855
64856         * lib/gc-gnulib.c: Support ARCFOUR.
64857
64858 2005-10-19  Simon Josefsson  <jas@extundo.com>
64859
64860         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
64861         support.
64862
64863         * lib/gc.h: Add ECB enum type.
64864
64865         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
64866
64867 2005-10-18  Simon Josefsson  <jas@extundo.com>
64868
64869         * tests/test-md5.c: New file.
64870
64871         * modules/md5-tests: New file.
64872
64873 2005-10-18  Simon Josefsson  <jas@extundo.com>
64874
64875         * tests/test-md4.c: New file.
64876
64877         * modules/md4, modules/md4-tests: New files.
64878
64879 2005-10-18  Simon Josefsson  <jas@extundo.com>
64880
64881         * m4/md4.m4: New file.
64882
64883 2005-10-18  Simon Josefsson  <jas@extundo.com>
64884
64885         * lib/md4.h, lib/md4.c: New files, based on md5.?.
64886
64887 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
64888
64889         * gnulib-tool (func_create_testdir): Omit the second check whether
64890         BUILT_SOURCES in nonempty.
64891
64892 2005-10-17  Simon Josefsson  <jas@extundo.com>
64893
64894         * tests/test-rijndael.c: New file.
64895
64896 2005-10-17  Simon Josefsson  <jas@extundo.com>
64897
64898         * modules/sha1: Depend on stdint instead of md5.
64899
64900         * modules/md5: Depend on stdint, remove uint32_t.
64901
64902 2005-10-17  Simon Josefsson  <jas@extundo.com>
64903
64904         * modules/gc-sha1-tests: New file.
64905
64906         * tests/test-gc-sha1.c: New file.
64907
64908 2005-10-17  Simon Josefsson  <jas@extundo.com>
64909
64910         * m4/md5.m4: Remove call to uint32_t.m4.
64911
64912 2005-10-17  Simon Josefsson  <jas@extundo.com>
64913
64914         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
64915
64916         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
64917         md5.h.
64918
64919         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
64920
64921         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
64922
64923 2005-10-17  Simon Josefsson  <jas@extundo.com>
64924
64925         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
64926
64927 2005-10-17  Simon Josefsson  <jas@extundo.com>
64928
64929         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
64930
64931 2005-10-17  Simon Josefsson  <jas@extundo.com>
64932
64933         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
64934
64935         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
64936
64937 2005-10-17  Bruno Haible  <bruno@clisp.org>
64938
64939         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
64940         that it can also be used in a test.
64941
64942 2005-10-16  Bruno Haible  <bruno@clisp.org>
64943
64944         * gnulib-tool (func_emit_tests_Makefile_am): Also define
64945         TESTS_ENVIRONMENT, so that individual tests can augment it.
64946
64947         * gnulib-tool (func_create_testdir): Use an intermediate target for
64948         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
64949         macros, like $(ALLOCA_H), which cannot be passed through the command
64950         line.
64951
64952 2005-10-15  Simon Josefsson  <jas@extundo.com>
64953
64954         * modules/rijndael-tests: New file.
64955
64956         * modules/rijndael: New file.
64957
64958 2005-10-15  Simon Josefsson  <jas@extundo.com>
64959
64960         * m4/rijndael.m4: New file.
64961
64962 2005-10-15  Simon Josefsson  <jas@extundo.com>
64963
64964         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
64965
64966         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
64967
64968 2005-10-14  Simon Josefsson  <jas@extundo.com>
64969
64970         * tests/test-arcfour.c: New file.
64971
64972         * modules/arcfour, modules/arcfour-tests: New files.
64973
64974 2005-10-14  Simon Josefsson  <jas@extundo.com>
64975
64976         * m4/arcfour.m4: New file.
64977
64978 2005-10-14  Simon Josefsson  <jas@extundo.com>
64979
64980         * lib/arcfour.h, lib/arcfour.c: New files.
64981
64982 2005-10-14  Roland McGrath  <roland@redhat.com>
64983
64984         Import from libc.  [BZ #1331]
64985         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
64986         macro argument.
64987         Reported by Matej Vela <vela@debian.org>.
64988
64989 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64990
64991         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
64992         include <wchar.h>; no longer needed.
64993
64994 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
64995
64996         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
64997
64998 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
64999         and  Ulrich Drepper  <drepper@redhat.com>
65000
65001         Import from libc.
65002         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
65003         instead of inline stream orientation test and two separate
65004         function calls.  Pay no attention to USE_IN_LIBIO.
65005
65006 2005-10-13  Simon Josefsson  <jas@extundo.com>
65007
65008         * modules/gc-hmac-md5-tests: New file.
65009
65010         * tests/test-gc-hmac-sha1.c: New file.
65011
65012         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
65013
65014         * modules/gc-hmac-md5-tests: New file.
65015
65016         * tests/test-gc-md5.c: New file.
65017
65018         * modules/gc-md5-tests: New file.
65019
65020 2005-10-13  Simon Josefsson  <jas@extundo.com>
65021
65022         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
65023         Move memory allocation outside of loop.
65024
65025 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
65026
65027         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
65028         intermediate directory is in a read-only file system.  Problem
65029         reported by Eric Blake.
65030
65031 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
65032
65033         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
65034
65035 2005-10-12  Simon Josefsson  <jas@extundo.com>
65036
65037         * tests/test-hmac-sha1.c: New file.
65038
65039         * modules/hmac-sha1-tests: New file.
65040
65041         * modules/hmac-sha1: New file.
65042
65043 2005-10-12  Simon Josefsson  <jas@extundo.com>
65044
65045         * modules/gc-sha1: New file.
65046
65047 2005-10-12  Simon Josefsson  <jas@extundo.com>
65048
65049         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
65050
65051         * tests/test-gc-pbkdf2-sha1.c: New file.
65052
65053 2005-10-12  Simon Josefsson  <jas@extundo.com>
65054
65055         * modules/gc-md5, modules/gc-hmac-md5: New files.
65056
65057         * modules/gc (Files): Remove md5, memxor and hmac files.
65058
65059 2005-10-12  Simon Josefsson  <jas@extundo.com>
65060
65061         * m4/gc-pbkdf2-sha1.m4: New file.
65062
65063         * m4/gc-hmac-sha1.m4: New file.
65064
65065         * m4/gc-sha1: New file.
65066
65067         * m4/hmac-sha1.m4: New file.
65068
65069 2005-10-12  Simon Josefsson  <jas@extundo.com>
65070
65071         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
65072
65073         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
65074
65075 2005-10-12  Simon Josefsson  <jas@extundo.com>
65076
65077         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
65078         suggested by Bruno Haible <bruno@clisp.org>.
65079
65080 2005-10-12  Simon Josefsson  <jas@extundo.com>
65081
65082         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
65083
65084 2005-10-12  Simon Josefsson  <jas@extundo.com>
65085
65086         * lib/gc-pbkdf2-sha1.c: New file.
65087
65088         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
65089
65090 2005-10-12  Simon Josefsson  <jas@extundo.com>
65091
65092         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
65093
65094         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
65095
65096 2005-10-12  Simon Josefsson  <jas@extundo.com>
65097
65098         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
65099         GC_USE_HMAC_MD5, respectively.
65100
65101         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
65102         (gc_md5): Fix typo.
65103
65104         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
65105
65106         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
65107
65108         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
65109
65110 2005-10-12  Bruno Haible  <bruno@clisp.org>
65111
65112         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
65113         Reported by Stepan Kasal <kasal@ucw.cz>.
65114
65115 2005-10-11  Simon Josefsson  <jas@extundo.com>
65116
65117         * tests/test-crc.c: New file.
65118
65119         * modules/crc, modules/crc-tests: New files.
65120
65121 2005-10-11  Simon Josefsson  <jas@extundo.com>
65122
65123         * m4/crc.m4: New file.
65124
65125 2005-10-11  Simon Josefsson  <jas@extundo.com>
65126
65127         * lib/gc.h: Add gc_hash and gc_hash_buffer.
65128
65129         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
65130
65131         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
65132
65133 2005-10-11  Simon Josefsson  <jas@extundo.com>
65134
65135         * lib/crc.h, lib/crc.c: New files.
65136
65137         * lib/gc.h (gc_hash_buffer): Add doc.
65138
65139 2005-10-11  Bruno Haible  <bruno@clisp.org>
65140
65141         * modules/c-strcasestr: New file.
65142         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
65143
65144 2005-10-11  Bruno Haible  <bruno@clisp.org>
65145
65146         * modules/c-strcase: New file.
65147         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
65148
65149 2005-10-11  Bruno Haible  <bruno@clisp.org>
65150
65151         * lib/strcasecmp.c: Include limits.h.
65152         (strcasecmp): Avoid integer overflow on exotic platforms.
65153         * lib/strncasecmp.c: Include limits.h.
65154         (strncasecmp): Avoid integer overflow on exotic platforms.
65155         Reported by Paul Eggert.
65156
65157 2005-10-11  Bruno Haible  <bruno@clisp.org>
65158
65159         * lib/c-strcasestr.h: New file, from GNU gettext.
65160         * lib/c-strcasestr.c: New file, from GNU gettext.
65161
65162 2005-10-11  Bruno Haible  <bruno@clisp.org>
65163
65164         * lib/c-strcase.h: New file, from GNU gettext.
65165         * lib/c-strcasecmp.c: New file, from GNU gettext.
65166         * lib/c-strncasecmp.c: New file, from GNU gettext.
65167
65168 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
65169
65170         * modules/mempcpy (License): GPL -> LGPL.
65171         * modules/strchrnul (License): Likewise.
65172         * modules/sysexits (License): Likewise.
65173
65174 2005-10-08  Simon Josefsson  <jas@extundo.com>
65175
65176         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
65177
65178 2005-10-07  Simon Josefsson  <jas@extundo.com>
65179
65180         * m4/memxor.m4: Remove gl_C_RESTRICT call.
65181
65182 2005-10-06  Simon Josefsson  <jas@extundo.com>
65183
65184         * tests/test-hmac-md5.c: New file.
65185
65186         * modules/hmac-md5-tests: New file.
65187
65188         * modules/hmac-md5: New file.
65189
65190 2005-10-06  Simon Josefsson  <jas@extundo.com>
65191
65192         * m4/hmac-md5.m4: New file.
65193
65194         * m4/memxor.m4: Require gl_C_RESTRICT.
65195
65196 2005-10-06  Simon Josefsson  <jas@extundo.com>
65197
65198         * lib/memxor.c (memxor): Avoid casts and warnings.
65199
65200 2005-10-06  Simon Josefsson  <jas@extundo.com>
65201
65202         * lib/hmac-md5.c: New file.
65203
65204         * lib/hmac.h: New file.
65205
65206 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
65207
65208         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
65209         promotes to int, not unsigned int, to catch the AIX 5.3
65210         compiler bug.
65211
65212 2005-10-05  Simon Josefsson  <jas@extundo.com>
65213
65214         * modules/memxor: New file.
65215
65216         * modules/iconv (Files): Move config.rpath to havelib, it is used
65217         there.
65218
65219         * modules/havelib (Files): Add config.rpath.
65220
65221 2005-10-05  Simon Josefsson  <jas@extundo.com>
65222
65223         * m4/memxor.m4: New file.
65224
65225 2005-10-05  Simon Josefsson  <jas@extundo.com>
65226
65227         * lib/memxor.c (memxor): Fix compiler error.
65228
65229         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
65230         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
65231
65232         * lib/memxor.h, lib/memxor.c: New files.
65233
65234         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
65235         we assume all systems have it, suggested by Jim Meyering
65236         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
65237         any systems lack sys/socket.h; mingw32 is known to lack it, but we
65238         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
65239         same reasons.
65240
65241 2005-10-05  Simon Josefsson  <jas@extundo.com>
65242
65243         * config/srclist.txt: Add glibc bug 1423 for md5.h.
65244
65245 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
65246
65247         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
65248         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
65249         needed, since the source code now assumes these .h files.
65250
65251 2005-10-05  Derek Price  <derek@ximbiot.com>
65252
65253         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
65254
65255 2005-10-05  Bruno Haible  <bruno@clisp.org>
65256
65257         * modules/stdint (License): Change to LGPL.
65258
65259 2005-10-04  Simon Josefsson  <jas@extundo.com>
65260
65261         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
65262         D. Baushke" <mdb@gnu.org>.
65263
65264 2005-10-04  Bruno Haible  <bruno@clisp.org>
65265
65266         * lib/verify.h (verify_true): Provide alternative definition for C++.
65267
65268 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
65269
65270         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
65271         (SSIZE_MAX): New macro, if not already defined.
65272         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
65273         than 2 GiB.
65274
65275 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65276
65277         Sync from coreutils.
65278         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
65279         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
65280         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
65281         ULLONG_MAX doesn't work with 2.7.2.1.
65282
65283 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65284
65285         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
65286         From Ben Pfaff.
65287
65288         * modules/exclude (Depends-on): Depend on verify.
65289         * modules/strtoimax (Depends-on): Likewise.
65290         * modules/utimecmp (Depends-on): Likewise.
65291
65292 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
65293
65294         * lib/exclude.c: Include verify.h.
65295         (verify): Remove.  All callers changed to use verify.h's version.
65296         * lib/strtoimax.c: Likewise.
65297         * lib/utimecmp.c: Likewis.e
65298
65299         Sync from coreutils.
65300         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
65301         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
65302         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
65303         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
65304         bother returning ENOSYS if settimeofday or stime fails; just let
65305         them return whatever errno they want to return.
65306         * lib/utimens.c: Include unistd.h, for dup2.
65307         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
65308         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
65309
65310 2005-10-02  Jim Meyering  <jim@meyering.net>
65311
65312         Sync from coreutils.
65313         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
65314         from glibc-2.2.5 that fails for read-only files.
65315
65316 2005-10-02  Jim Meyering  <jim@meyering.net>
65317
65318         Sync from coreutils.
65319         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
65320         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
65321         `#if HAVE_CONFIG_H'.
65322         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
65323         Remove AT_FDCWD test.
65324         Do not consume the fd unless successful.
65325         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
65326         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
65327         block, so that we don't even try to compile it if settimeofday is
65328         available.  This works around a compilation failure on OSF1 V5.1,
65329         due to stime requiring a `long int*' while tv_sec is `int'.
65330
65331 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
65332
65333         Sync from coreutils.
65334         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
65335         against `yes', rather than just testing for nonempty.
65336
65337 2005-10-01  Simon Josefsson  <jas@extundo.com>
65338
65339         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
65340         and Darwin.
65341
65342         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
65343         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
65344         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
65345         freeaddrinfo and gai_strerror are declared by the POSIX headers.
65346         Check if struct addrinfo is declared.
65347
65348 2005-10-01  Simon Josefsson  <jas@extundo.com>
65349
65350         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
65351         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
65352         AI_* and EAI_* definitions.  Protect function declarations.
65353
65354 2005-10-01  Jim Meyering  <jim@meyering.net>
65355
65356         Sync from coreutils.
65357
65358         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
65359         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
65360         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
65361         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65362         in the inet and nsl libraries.  Required on Solaris 5.7.
65363
65364 2005-10-01  Jim Meyering  <jim@meyering.net>
65365
65366         Sync from coreutils.
65367         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
65368         in the inet and nsl libraries.  Required on Solaris 5.7.
65369
65370 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
65371
65372         * lib/getdelim.c (getdelim): Remove unused variables.
65373
65374 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
65375
65376         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
65377         so that the code works even with ancient cpp.  Portability problem
65378         with GCC 2.7.2.1 reported by Thomas M.Ott.
65379
65380 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
65381
65382         * modules/regex (Depends-on): Add strcase.
65383
65384         * modules/gethostname (Licence): Change from GPL to LGPL, since
65385         gethostname.c is a trivial implementation of a standard library
65386         function.
65387         * modules/poll (License): Change from GPL to LGPL, since it's
65388         derived from LGPL code.
65389
65390 2005-09-27  Jim Meyering  <jim@meyering.net>
65391
65392         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
65393         HAVE_CONFIG_H.
65394
65395         * lib/intprops.h (signed_type_or_expr__): Define.
65396         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
65397         for unsigned types.
65398
65399 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
65400
65401         * lib/verify.h (verify_expr): Remove, replacing with:
65402         (verify_true): New macro that returns true instead of void.
65403         (verify_type__): Remove.
65404         (verify): Use verify_true rather than verify_type__.
65405
65406 2005-09-26  Bruno Haible  <bruno@clisp.org>
65407
65408         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
65409         is necessary.
65410         (lib_SOURCES): Remove mbchar.c.
65411         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
65412         (Files): Add m4/mbrtowc.m4.
65413         * modules/mbiter: Likewise.
65414         * modules/mbuiter: Likewise.
65415
65416 2005-09-26  Bruno Haible  <bruno@clisp.org>
65417
65418         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
65419         compile mbchar.c if they are not both present.
65420         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
65421         * m4/mbiter.m4 (gl_MBITER): Likewise.
65422         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
65423         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
65424         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
65425
65426 2005-09-25  Jim Meyering  <jim@meyering.net>
65427
65428         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
65429         also uses socklen_t.
65430
65431 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
65432
65433         * lib/utimens.c (ENOSYS): Define if not already defined.
65434         (futimens): Support having a null PATH if the file descriptor
65435         is nonnegative.
65436
65437         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
65438         Remove.
65439         (__attribute): Define to empty unless GCC 3.1 or later.
65440         This works around a core dump on OpenBSD 3.4, which has GCC
65441         2.95.3, which dumps core when given __attribute__(()).  It also
65442         simplifies other tests, since we really don't want to bother with
65443         worrying about which ancient version of GCC supported what.
65444         Original problem reported by Yoann Vandoorselaere, with part of
65445         the fix suggested by Derek Price.
65446
65447 2005-09-24  Jim Meyering  <jim@meyering.net>
65448
65449         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
65450         so we can once again use a positive bitfield width of 1 -- now we
65451         don't have to explain why we were using a bitfield width of 2.
65452
65453 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65454
65455         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
65456         and similarly for the other external symbols.  Problem reported
65457         by James Gallager.
65458
65459         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
65460         bug reported by Jim Meyering.
65461
65462         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
65463         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
65464         not needed, since socklen is a prerequisite module.
65465
65466 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
65467
65468         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
65469         Problem reported by Eric Blake.
65470         (getaddrinfo): Initialize se so that it's not garbage.
65471         Redo internal storage allocation so that it doesn't make unportable
65472         assumptions about alignment.
65473         Fix a memory leak.
65474
65475         * lib/utimens.c (futimens): Use futimesat if available.
65476         Prefer it to futimes since it doesn't have the futimes bug.
65477
65478         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
65479         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
65480         Instead, declare a function that returns a pointer to an array,
65481         and use verify_type__ to declare the size of the array.
65482         Problem and germ of a solution reported by Bruno Haible.
65483         (verify_type__): Use 2, not 1, for bitfield size, to avoid
65484         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
65485
65486 2005-09-23  Jim Meyering  <jim@meyering.net>
65487
65488         Sync from coreutils.
65489         Correct build failure (socklen_t not defined) on at least
65490         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
65491         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
65492
65493 2005-09-23  Jim Meyering  <jim@meyering.net>
65494
65495         * modules/getaddrinfo (Depends-on): Add socklen.
65496
65497 2005-09-23  Bruno Haible  <bruno@clisp.org>
65498
65499         * tests/test-verify.c: New file.
65500
65501 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65502
65503         Sync from coreutils.
65504
65505         * modules/argmatch (Depends-on): Add verify.
65506         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
65507         unistd-safer.
65508         * modules/save-cwd (Depends-on): Likewise.
65509
65510         * modules/openat (Files): Add lib/openat-die.c.
65511         (Depends-on): Remove error, exitfail.
65512         Add dirname.
65513
65514         * modules/verify: New file.
65515         * MODULES.html.sh (Diagnostics <assert.h>): New section,
65516         with "verify" module.
65517
65518 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65519
65520         Sync from coreutils.
65521
65522         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
65523         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
65524         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
65525         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
65526         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
65527         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
65528         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
65529         Don't bother checking for string.h, stdlib.h, unistd.h.
65530         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
65531         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
65532         module's job.
65533         * m4/jm-macros.m4 (gl_MACROS): Likewise.
65534         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
65535
65536         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
65537         (gl_GETDATE): Use it.
65538
65539         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
65540
65541 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65542
65543         Sync from coreutils.
65544
65545         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
65546         stat-time.h.
65547         * lib/argmatch.h: Include verify.h
65548         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
65549         (ARGMATCH_ASSERT): Remove; unused.
65550         * lib/canonicalize.c: Assume STDC_HEADERS.
65551         * lib/exclude.c: Include "strcase.h".
65552         * lib/regex_internal.h [!defined _LIBC]: Likewise.
65553         * lib/getusershell.c: Include stdio--.h rather than stdio.h
65554         and stdio-safer.h.
65555         (getusershell): Call fopen, not fopen_safer.
65556         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
65557         Do not include unistd-safer.h.
65558         (save_cwd): Don't call fd_safer; no longer needed
65559         now that we include fcntl--.h.
65560
65561         * lib/getdate.y (relative_time): New type.
65562         (RELATIVE_TIME_0): New constant.
65563         (parser_control): Use relative_time instead of doing it ourselves.
65564         (%union): Add new relative_time rel member.
65565         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
65566         Now typeless.
65567         (relunit, relunit_snumber): Now of type rel.
65568         (zone, rel, relunit, get_date): Adjust to above changes.
65569
65570         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
65571         Do not include unistd-safer.h.
65572         (getloadavg): Don't call fd_safer; no longer needed
65573         now that we include fcntl--.h.
65574
65575         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
65576         (make_dir_parents): Treat ENOSYS like EEXIST.
65577
65578         Improve quality of diagnostics on restore_cwd failure.
65579         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
65580         (make_dir_parents): Last arg is now int * (for errno), not bool *.
65581         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
65582         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
65583         each time through the loop.  Do not diagnose restore_cwd failure;
65584         that is the caller's job (and perhaps the caller does not care).
65585
65586         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
65587         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
65588         If the file already exists but is not a directory, don't bother
65589         to try to make its parents.
65590         Close potential file descriptor leak if we can't chdir("/") (!).
65591         Don't always return true if chdir($PWD) fails; return true only
65592         if the requested action was done successfully (except for the
65593         chdir($PWD)).
65594         Don't log final directory unless we actually made it.
65595         Refactor to avoid duplicate code to fix up permissions.
65596         Don't attempt to fix up parent permissions if chdir($PWD) fails.
65597
65598         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
65599         to make it a bit faster and (I hope) clearer.
65600         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
65601         Fix bug in formats like %2N.
65602
65603         * lib/verify.h: New file.
65604
65605 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65606
65607         Sync from coreutils.
65608         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
65609
65610 2005-09-22  Jim Meyering  <jim@meyering.net>
65611
65612         Sync from coreutils.
65613
65614         * m4/lstat.m4 (gl_FUNC_LSTAT):
65615         Use AC_LIBSOURCES to require lstat.c and lstat.h.
65616         Remove obsolete comment.
65617         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
65618         * m4/xstrtod.m4: Likewise.
65619
65620         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
65621
65622 2005-09-22  Jim Meyering  <jim@meyering.net>
65623
65624         Sync from coreutils.
65625
65626         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
65627
65628         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
65629         the .tm_year member, since otherwise gcc-4.0 would now warn about
65630         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
65631
65632         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
65633         order to avoid an unsuppressible warning from gcc on 64-bit systems.
65634
65635         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
65636         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
65637         when run in a time zone for which daylight savings time is in effect
65638         for the starting date.
65639
65640         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
65641         stop us from restricting permissions of just-created absolute-named
65642         directories.
65643         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
65644         to restore initial working directory.
65645         * lib/mkdir-p.c (make_dir_parents): New parameter:
65646         different_working_dir, to tell caller if/when we change the working
65647         directory and are unable to return to the initial one.
65648         * lib/mkdir-p.h (make_dir_parents): Update prototype.
65649         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
65650         `return false'.  This fixes a bug introduced on 2004-07-30.
65651
65652         * lib/openat.c (fdopendir): Be sure to close the supplied
65653         file descriptor before returning.  This makes our replacement
65654         implementation a little closer to Solaris's, where fdopendir
65655         ties the file descriptor to the returned DIR* pointer.
65656         * lib/openat.c (unlinkat): New function.
65657         * lib/openat.h (unlinkat): Add prototype.
65658         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
65659         (openat_restore_fail): Rename from openat_restore_die.
65660         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
65661
65662         Provide an alternative to exiting immediately upon save_cwd or
65663         restore_cwd failure.  Now, an application can arrange e.g.,
65664         to perform a longjump in that case.
65665         * lib/openat.c: Include dirname.h.
65666         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
65667         (rpl_openat, fdopendir, fstatat): Call openat_save_die
65668         and openat_restore_die rather than calling error directly.
65669         Don't include "error.h" or "exitfail.h"; they're no longer needed.
65670
65671         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
65672         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
65673         define.
65674
65675         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
65676         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
65677                             int utc, int nanoseconds);
65678         Background:
65679         date should not have to allocate a megabyte of virtual memory to
65680         handle a format argument like +%1048575T.  When implemented with
65681         strftime, it must allocate such a buffer, use strftime to fill it
65682         in, print it, then free it.
65683         With fprintftime, it simply prints everything and exits.
65684         With no need for memory allocation, that's one fewer way to fail.
65685         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
65686         optional field width, not before, so we accept %9:z, not %:9z.
65687         (my_strftime): Be sure to use L_('x') for literals.
65688
65689         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
65690         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
65691         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
65692         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
65693         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
65694         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
65695         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
65696         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
65697         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
65698         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
65699         * lib/xgethostname.c, lib/xreadlink.c:
65700         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
65701
65702         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
65703         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
65704         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
65705         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
65706         and don't include <sys/file.h>).
65707
65708 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
65709
65710         Sync from coreutils.
65711
65712         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
65713         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
65714         [!LDAV_DONE]: Avoid unused variable warning.
65715
65716 2005-09-21  Bruno Haible  <bruno@clisp.org>
65717
65718         * lib/unicodeio.h (unicode_to_mb): New declaration.
65719
65720 2005-09-20  Derek Price  <derek@ximbiot.com>
65721
65722         * lib/getaddrinfo.c: Don't include <netdb.h> included from
65723         getaddrinfo.h.
65724
65725 2005-09-20  Bruno Haible  <bruno@clisp.org>
65726
65727         * gnulib-tool: Remove trailing slashes from the values specified for
65728         --source-base, --m4-base, --tests-base, --aux-dir.
65729         Suggested by Simon Josefsson <jas@extundo.com>.
65730
65731 2005-09-20  Bruno Haible  <bruno@clisp.org>
65732
65733         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
65734         func_modules_to_filelist, func_import, func_create_testdir): Make all
65735         sorting results locale-independent, so that gnulib-cache.m4 doesn't
65736         change when gnulib-tool is invoked in a different locale.
65737
65738 2005-09-19  Simon Josefsson  <jas@extundo.com>
65739
65740         * m4/socklen.m4: Fix typo.
65741
65742 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65743
65744         Use a consistent style for including <config.h>.
65745         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
65746         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
65747         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
65748         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
65749         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
65750         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
65751         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
65752         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
65753         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
65754         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
65755         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
65756         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
65757         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
65758         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
65759         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
65760         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
65761         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
65762         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
65763         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
65764         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
65765         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
65766         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
65767         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
65768         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
65769         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
65770         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
65771         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
65772         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
65773         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
65774         lib/xstrtoumax.c, lib/yesno.c:
65775         Standardize inclusion of config.h.
65776         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
65777         lib/inttostr.h:  Removed inclusion of config.h from header files.
65778         * lib/inttostr.c:  Adjusted in-tree users.
65779         * lib/timespec.h: Remove superfluous warning to include config.h.
65780         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
65781         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
65782         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
65783         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
65784         config.h with HAVE_CONFIG_H.
65785
65786 2005-09-19  Jim Meyering  <jim@meyering.net>
65787
65788         * modules/pathmax (License): Change to LGPL.
65789
65790 2005-09-19  Derek Price  <derek@ximbiot.com>
65791
65792         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
65793
65794 2005-09-19  Bruno Haible  <bruno@clisp.org>
65795
65796         * gnulib-tool (import): Provide default for --tests-base.
65797
65798 2005-09-19  Bruno Haible  <bruno@clisp.org>
65799
65800         * doc/quote.texi: New file, extracted from gnulib.texi.
65801         * doc/ctime.texi: New file, extracted from gnulib.texi.
65802         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
65803         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
65804         * doc/gnulib.texi: Include them.
65805
65806 2005-09-18  Bruno Haible  <bruno@clisp.org>
65807
65808         Portability fix.
65809         * gnulib-tool (func_readlink): New function.
65810         (func_ln_if_changed): Use it.
65811
65812 2005-09-18  Bruno Haible  <bruno@clisp.org>
65813
65814         * gnulib-tool: Support --with-tests also with --import.
65815         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
65816         (func_import): Use variables $testsbase and $inctests. Emit a
65817         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
65818         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
65819         SUBDIRS += $testsdir.
65820         (func_create_testdir): Update.
65821
65822 2005-09-18  Bruno Haible  <bruno@clisp.org>
65823
65824         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
65825         instead of $dry_run.
65826         (func_cp_if_changed, func_mv_if_changed): Remove functions.
65827         (func_ln_if_changed): Don't handle dry-run here.
65828         (func_import): In dry-run mode, detect more precisely which actions
65829         would be performed, and don't use "...ing" verbs.
65830
65831 2005-09-18  Bruno Haible  <bruno@clisp.org>
65832
65833         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
65834         (func_import): Use join on two temporary files instead of three nested
65835         loops, in order to determine which files are new or old.
65836
65837 2005-09-18  Bruno Haible  <bruno@clisp.org>
65838
65839         * gnulib-tool (func_import): Comment out code that spits out the
65840         new files with --dry-run.
65841
65842 2005-09-18  Bruno Haible  <bruno@clisp.org>
65843
65844         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
65845
65846 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65847
65848         * lib/stat-time.h: New file.
65849         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
65850         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
65851         in a different way.
65852         (timespec_cmp): New function.
65853         * lib/utimecmp.c: Include stat-time.h.
65854         (SYSCALL_RESOLUTION): Depend on whether various struct stat
65855         members exist, not on the obsolescent ST_MTIM_NSEC.
65856         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
65857
65858 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65859
65860         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
65861
65862 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
65863
65864         * MODULES.html.sh (File system functions): Add stat-time.
65865         * modules/stat-time: New file.
65866         * modules/timespec (Files): Remove m4/st_mtim.m4; this
65867         is now done in a different way, by the stat-time module.
65868         * modules/utimecmp (Depends-on): Add stat-time.
65869
65870 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
65871
65872         * m4/st_mtim.m4: Remove.  Superseded by...
65873         * m4/stat-time.m4: New file.
65874         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
65875         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
65876
65877 2005-09-15  Derek Price  <derek@ximbiot.com>
65878
65879         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
65880
65881 2005-09-15  Derek Price  <derek@ximbiot.com>
65882
65883         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
65884         * lib/regex_internal.c: Ditto, using this...
65885         (__GNUC_PREREQ): ...new macro.
65886         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
65887         using...
65888         (__GNUC_PREREQ): ...this new macro.
65889
65890         * lib/strstr.h: Include string.h. Define strstr as a macro here.
65891
65892 2005-09-15  Derek Price  <derek@ximbiot.com>
65893             Paul Eggert  <eggert@cs.ucla.edu>
65894
65895         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
65896         changes, consolidating in...
65897         * lib/regex_internal.h: ...this file.
65898
65899 2005-09-13  Jim Meyering  <jim@meyering.net>
65900
65901         * lib/canon-host.c: Filter through gnu indent and reword comments
65902         slightly.
65903         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
65904
65905 2005-09-13  Derek Price  <derek@ximbiot.com>
65906
65907         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
65908         failure.
65909         Reported by Jim Meyering  <jim@meyering.net>.
65910
65911 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
65912
65913         * lib/base64.c: Typo.
65914         (base64_encode): Put b64str in initialized data section.
65915
65916 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
65917
65918         Merge glibc and coreutils changes into gnulib, plus a few
65919         extra fixes.
65920         * lib/md5.c: Use #error rather than a string.
65921         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
65922         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
65923         (__attribute__): Define to empty for non recent-GCC.
65924         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
65925         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
65926         Renamed from their non-__ counterparts, with new macros replacing
65927         them if not _LIBC.  Add __THROW attribute.
65928         (rol): Remove.
65929         (struct md5_ctx): Align buffer if using GCC.
65930         * lib/sha1.h (struct sha1_ctx): Likewise.
65931         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
65932         The old name was backwards.
65933         (NOTSWAP): Remove; not used.
65934         (rol): New macro, moved here from md5.h.
65935         (sha1_process_block): Remove a FIXME that doesn't make sense.
65936
65937 2005-09-12  Derek Price  <derek@ximbiot.com>
65938
65939         Return usable errors from canon-host.
65940         * lib/canon-host.h: New file.
65941         * lib/canon-host.c (canon_host): Wrap...
65942         (canon_host_r): ...this new function, which now relies exclusively on
65943         getaddrinfo.
65944         (ch_strerror): New function.
65945         (last_cherror): New global.
65946         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
65947         interface.
65948         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
65949         void *.
65950         (freeaddrinfo): Free ai->ai_canonname when set.
65951
65952 2005-09-12  Derek Price  <derek@ximbiot.com>
65953
65954         Make canon-host require getaddrinfo.
65955         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
65956         AC_LIBSOURCE canon-host.h.  Call...
65957         (gl_PREREQ_CANON_HOST): ...this new function, which requires
65958         gl_GETADDRINFO.
65959         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
65960
65961 2005-09-12  Derek Price  <derek@ximbiot.com>
65962
65963         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
65964         LGPL.
65965         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
65966
65967 2005-09-12  Derek Price  <derek@ximbiot.com>
65968
65969         * lib/gai_strerror.c: Include config.h when available.  Include
65970         getaddrinfo.h before other headers to test interface.
65971         Reported by Larry Jones <lawrence.jones@ugs.com>.
65972
65973 2005-09-12  Derek Price  <derek@ximbiot.com>
65974             Paul Eggert  <eggert@cs.ucla.edu>
65975
65976         * modules/glob (Files): Add glob-libc.h.
65977
65978 2005-09-12  Derek Price  <derek@ximbiot.com>
65979             Paul Eggert  <eggert@cs.ucla.edu>
65980
65981         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
65982         glob_.h, glob-libc.h.
65983         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
65984
65985 2005-09-12  Derek Price  <derek@ximbiot.com>
65986             Paul Eggert  <eggert@cs.ucla.edu>
65987
65988         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
65989         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
65990         protecting things that should be done only in gnulib contexts.
65991         * lib/glob_.h: New file, containing only the glob things needed for
65992         gnulib.
65993         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
65994         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
65995         (glob, globfree, glob_pattern_p): Now defined simply in terms of
65996         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
65997         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
65998         and to respect the namespace rules better.
65999
66000 2005-09-08  Simon Josefsson  <jas@extundo.com>
66001
66002         * modules/socklen: New file.
66003
66004 2005-09-08  Simon Josefsson  <jas@extundo.com>
66005
66006         * m4/socklen.m4: New file.
66007
66008 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66009
66010         * modules/utimens (Files): Add m4/utimbuf.m4, since
66011         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
66012         Reported by Sergey Poznyakoff.
66013
66014 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66015
66016         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
66017         definitions, since that's the preferred style in glibc.
66018         Fix a minor spacing issue, and update copyright notice to match
66019         glibc's.
66020
66021 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
66022
66023         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
66024
66025 2005-09-06  Simon Josefsson  <jas@extundo.com>
66026
66027         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
66028         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
66029
66030 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66031
66032         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
66033         warning.
66034
66035 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66036
66037         * config/srclist.txt: Add glibc bug 1302.
66038
66039 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
66040
66041         Change bitset word type from unsigned int to unsigned long int,
66042         as this has better performance on typical 64-bit hosts.
66043         Port bitset code to hosts with unusual word sizes.
66044         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
66045         (build_collating_symbol):
66046         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
66047         argument is a bitset.  This is merely a style issue, but it makes
66048         it clearer that an entire array is expected.
66049         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
66050         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
66051         Port to the case where bitset_word is not the same as unsigned int.
66052         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66053         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
66054         Likewise.
66055         * lib/regexec.c (check_dst_limits_calc_pos_1,
66056         check_subexp_matching_top):
66057         (build_trtable, group_nodes_into_DFAstates):
66058         Likewise.
66059         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
66060         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
66061         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
66062         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
66063         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
66064         * lib/regcomp.c (optimize_subexps, lower_subexp):
66065         Work even if bitset_word has holes in its bitwise representation.
66066         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
66067         * lib/regexec.c (check_dst_limits_calc_pos_1,
66068         check_subexp_matching_top):
66069         Likewise.
66070         * lib/regex_internal.c (re_string_reconstruct):
66071         Don't assume UCHAR_MAX == 255.
66072         * lib/regex_internal.h (bitset_set_all): Likewise.
66073         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
66074         All uses changed.
66075         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
66076         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
66077         All uses changed.
66078         (BITSET_WORD_MAX): New macro.
66079         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
66080         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
66081         (bitset_empty, bitset_copy):
66082         Prefer sizeof (bitset) to multiplying it out ourselves.
66083         (bitset_not_merge): Remove; unused.
66084         (bitset_contain): Return bool, not unsigned int with one bit on.
66085         All callers changed.
66086         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
66087         alignment than re_node_set; do this by defining a new internal
66088         type struct dests_alloc and using it to allocate memory.
66089
66090 2005-09-05  Bruno Haible  <bruno@clisp.org>
66091
66092         * gnulib-tool (func_import): Fix comparison in handling of symbolic
66093         links.
66094
66095 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
66096
66097         * modules/size_max (Makefile.am): Add size_max.h
66098
66099 2005-09-04  Derek Price  <derek@ximbiot.com>
66100
66101         * gnulib-tool (func_import): Fix reversed $symbolic logic.
66102
66103 2005-09-03  Simon Josefsson  <jas@extundo.com>
66104
66105         * gnulib-tool: Fix typo.
66106
66107 2005-09-03  Simon Josefsson  <jas@extundo.com>
66108
66109         * config/srclist.txt: Add glibc bug 1293.
66110
66111 2005-09-03  Derek Price  <derek@ximbiot.com>
66112
66113         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
66114         From Larry Jones <lawrence.jones@ugs.com>.
66115
66116 2005-09-02  Simon Josefsson  <jas@extundo.com>
66117
66118         * modules/socklen: New file.
66119
66120 2005-09-02  Simon Josefsson  <jas@extundo.com>
66121
66122         * modules/havelib: New module.
66123
66124         * modules/gettext, modules/iconv, modules/lock, modules/readline:
66125         Use havelib.
66126
66127 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66128
66129         Check for arithmetic overflow when calculating sizes, to prevent
66130         some buffer-overflow issues.  These patches are conservative, in the
66131         sense that when I couldn't determine whether an overflow was possible,
66132         I inserted a run-time check.
66133         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
66134         macros.
66135         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
66136         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
66137         (re_xnrealloc, re_x2nrealloc): New inline functions.
66138         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
66139         parse_bracket_exp):
66140         (build_equiv_class, build_charclass): Check for arithmetic overflow
66141         in size expression calculations.
66142         * lib/regex_internal.c (re_string_realloc_buffers):
66143         (build_wcs_upper_buffer, re_node_set_add_intersect):
66144         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
66145         (re_dfa_add_node, register_state): Likewise.
66146         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
66147         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
66148         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
66149         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
66150
66151 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
66152
66153         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
66154         m4/ulonglong.m4.  Problem reported by Martin Lambers.
66155
66156 2005-09-02  Bruno Haible  <bruno@clisp.org>
66157
66158         Support for lib vs. lib64 distinction on biarch platforms.
66159         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
66160         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
66161         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
66162
66163 2005-09-02  Bruno Haible  <bruno@clisp.org>
66164
66165         * gnulib-tool (import): In the other first-use case, provide defaults
66166         as well.
66167
66168 2005-09-02  Bruno Haible  <bruno@clisp.org>
66169
66170         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
66171         patches not yet found in the latest gettext release.
66172
66173 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66174
66175         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
66176         to avoid a collision with bits/local_lim.h in glibc.
66177         All uses changed.  Problem reported by Dmitry V. Levin in
66178         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
66179
66180         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
66181         bugs in int versus size_t comparisons.
66182         (re_string_context_at): Fix bug where the code assumed that
66183         Idx is signed.
66184
66185         Use bool where appropriate.
66186         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
66187         All callers changed.
66188         (calc_eclosure_iter): Likewise, for ROOT arg.
66189         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
66190         (build_charclass_op): Likewise, for NON_MATCH arg.
66191         * lib/regex_internal.c (re_string_allocate, re_string_construct):
66192         (re_string_construct_common): Likewise, for ICASE arg.
66193         * lib/regexec.c (re_search_2_stub, re_search_stub):
66194         Likewise, for RET_LEN arg.
66195         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
66196         (set_regs): Likewise, for FL_BACKTRACK arg.
66197         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
66198         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
66199         (calc_eclosure_iter, parse_bracket_exp):
66200         Use bool for internal variables that are booleans.
66201         * lib/regexec.c (re_search_internal, check_matching,
66202         proceed_next_node):
66203         (set_regs, build_sifted_states, sift_states_bkref):
66204         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
66205         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
66206         (find_collation_sequence_value):
66207         Likewise.
66208         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
66209         (re_node_set_compare):
66210         Return bool, not int. All callers changed.
66211         * lib/regexec.c (check_halt_node_context, check_dst_limits):
66212         (build_trtable, check_node_accept): Likewise.
66213         * lib/regex_internal.h: Include stdbool.h.
66214
66215         Fix bugs uncovered when converting to bool.
66216         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
66217         failure instead of charging ahead blindly.
66218         * lib/regex_internal.c (register_state): Likewise.
66219         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
66220         for freeing internal storage.
66221         (group_nodes_into_DFA_states): Use unsigned int, not int, for
66222         bitset pieces used as boolean, to avoid undefined behavior
66223         on hosts that do int overflow checking.
66224
66225 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
66226
66227         * config/srclist.txt: Add glibc bugs 1285-1287.
66228
66229 2005-09-01  Jim Meyering  <jim@meyering.net>
66230
66231         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
66232         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
66233         Require gl_STAT_MACROS, too.
66234
66235 2005-09-01  Bruno Haible  <bruno@clisp.org>
66236
66237         * gnulib-tool (import): In the first-use case, provide defaults.
66238
66239 2005-09-01  Bruno Haible  <bruno@clisp.org>
66240
66241         * gnulib-tool (func_import): Remove the .tmp files.
66242
66243 2005-09-01  Bruno Haible  <bruno@clisp.org>
66244
66245         * gnulib-tool (func_import): Fix handling of symbolic links.
66246
66247 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66248
66249         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
66250         old glibc regex code mishandles strings longer than 2**31 bytes.
66251         This patch fixes this when the regex code is used in gnulib
66252         (i.e., outside glibc).
66253
66254         This patch should not affect the use of the regex code inside
66255         glibc.  No doubt this problem also needs to be handled for glibc
66256         as well, but the result will be an incompatible change to the
66257         glibc ABI, and the old ABI will have to be supported too.  That
66258         can be the the subject for another patch.
66259
66260         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
66261         governing whether the rest of this patch is active.  By default,
66262         the macro is disabled and the patch has no effect.
66263         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
66264         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
66265         (struct re_pattern_buffer, re_search, re_search_2, re_match):
66266         (re_match_2, re_set_registers): Use the new types.
66267         * lib/regex_internal.h (Idx, re_hashval_t): New types.
66268         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
66269         New macros.
66270         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
66271         (re_string_context_at, bin_tree_t, re_dfastate_t):
66272         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
66273         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
66274         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
66275         (re_string_char_size_at, re_string_wchar_at):
66276         (re_string_elem_size_at):
66277         Use the new types and macros to port to 64-bit hosts.
66278         Use unsigned types for internal values, so that the code
66279         mostly works even for arrays larger than SSIZE_MAX.
66280         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
66281         (search_duplicated_node, calc_eclosure_iter, fetch_number):
66282         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
66283         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
66284         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
66285         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
66286         (calc_inveclosure, parse_dup_op, build_range_exp):
66287         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
66288         (fetch_number, create_token_tree, mark_opt_subexp):
66289         Likewise.
66290         * lib/regex_internal.c (re_string_construct_common,
66291         create_ci_newstate):
66292         (create_cd_newstate, re_string_allocate, re_string_construct):
66293         (re_string_realloc_buffers, build_wcs_upper_buffer):
66294         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66295         (re_string_reconstruct, re_string_peek_byte_case):
66296         (re_string_fetch_byte_case, re_string_context_at):
66297         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66298         (re_node_set_init_copy, re_node_set_add_intersect):
66299         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66300         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66301         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66302         (re_acquire_state, re_acquire_state_context, register_state):
66303         Likewise.
66304         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
66305         search_cur_bkref_entry):
66306         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
66307         (re_search_internal, re_search_2_stub, re_search_stub)
66308         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
66309         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
66310         (update_cur_sifted_state, check_dst_limits):
66311         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66312         (check_subexp_limits, sift_states_bkref, merge_state_array):
66313         (check_subexp_matching_top, get_subexp, get_subexp_sub):
66314         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
66315         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
66316         (expand_bkref_cache, check_node_accept_bytes):
66317         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
66318         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
66319         (acquire_init_state_context, check_halt_node_context):
66320         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
66321         (sift_states_backward, clean_state_log_if_needed):
66322         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
66323         (find_recover_state, transit_state_sb, transit_state_mb):
66324         (transit_state_bkref, build_trtable, match_ctx_clean):
66325         Likewise.
66326         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
66327         to work around an assumption that REG_MISSING is negative.
66328
66329         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
66330         (seek_collating_symbol_entry) [defined _LIBC]:
66331         (lookup_collation_sequence_value) [defined _LIBC]:
66332         (build_range_exp, build_collating_symbol) [defined _LIBC]:
66333         Use prototypes rather than old-style function definitions.
66334         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
66335         (transit_state_sb) [0]:
66336         (find_collation_sequence_value) [defined _LIBC]: Likewise.
66337
66338         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
66339         rm_eo.
66340
66341         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
66342         (optimize_subexps, lower_subexp):
66343         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
66344         since the signed shift might overflow.  Use 1u<<31 instead.
66345         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
66346         Likewise.
66347         * lib/regexec.c (check_dst_limits_calc_pos_1,
66348         check_subexp_matching_top): Likewise.
66349
66350         * lib/regcomp.c (optimize_subexps, lower_subexp):
66351         Use CHAR_BIT rather than 8, for clarity.
66352         * lib/regexec.c (check_dst_limits_calc_pos_1):
66353         (check_subexp_matching_top): Likewise.
66354         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
66355         have to worry about portability issues when shifting it left.
66356         Remove no-longer-needed test for table_size > 0.
66357         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
66358         in a word, as the resulting behavior is undefined.
66359         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
66360         in one case, a <= should have been an <, and in another case the
66361         whole test was missing.
66362         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
66363         the standard name CHAR_BIT.
66364         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
66365         this is not true on one's complement and signed-magnitude hosts.
66366
66367         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
66368         next_last_offset.
66369         (struct re_dfa_t): Remove unused member states_alloc.
66370         * lib/regcomp.c (init_dfa): Don't initialize unused members.
66371
66372 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66373
66374         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
66375         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
66376         and large-file glibc and in 32-bit large-file Solaris.
66377
66378 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66379
66380         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
66381         lengths fit in regoff_t; this isn't true if regoff_t is the same
66382         width as size_t.
66383         * lib/regex.c (re_search_internal): 5th arg is LAST_START
66384         (= START + RANGE) instead of RANGE.  This avoids overflow
66385         problems when regoff_t is the same width as size_t.
66386         All callers changed.
66387         (re_search_2_stub): Check for overflow when adding the
66388         sizes of the two strings.
66389         (re_search_stub): Check for overflow when adding START
66390         to RANGE; if it occurs, substitute the extreme value.
66391
66392 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
66393
66394         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
66395
66396 2005-08-31  Jim Meyering  <jim@meyering.net>
66397
66398         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
66399         a pointer-to-const.
66400         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
66401         (register_state): Likewise.
66402         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
66403         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
66404         (group_nodes_into_DFAstates): Likewise.
66405
66406 2005-08-31  Jim Meyering  <jim@meyering.net>
66407
66408         * check-module: Add a FIXME comment.
66409
66410 2005-08-31  Eric Blake  <ebb9@byu.net>
66411
66412         * modules/unistd-safer (Files): Add unistd--.h.
66413         * modules/stdio-safer (Files): Add stdio--.h.
66414
66415 2005-08-31  Derek Price  <derek@ximbiot.com>
66416
66417         * lib/getdelim.c (getdelim): Return EOF on EOF.
66418         Reported by Larry Jones <lawrence.jones@ugs.com>.
66419
66420 2005-08-31  Bruno Haible  <bruno@clisp.org>
66421
66422         Avoid unnecessary diffs in the generated lib/Makefile.am.
66423         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
66424         the generated files.
66425         (func_import): Don't set cmd.
66426
66427 2005-08-31  Bruno Haible  <bruno@clisp.org>
66428
66429         * lib/strstr.c: Include <stddef.h>, for NULL.
66430         * lib/strcasestr.c: Likewise.
66431         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66432
66433 2005-08-31  Bruno Haible  <bruno@clisp.org>
66434
66435         * gnulib-tool: New option --macro-prefix.
66436         (func_import): Use macro_prefix.
66437         (import): Handle option --macro-prefix.
66438
66439 2005-08-31  Bruno Haible  <bruno@clisp.org>
66440
66441         * gnulib-tool (import): Rename most ac_* variables to cached_*.
66442         Also use new variables cached_lgpl, cached_libtool.
66443
66444 2005-08-31  Bruno Haible  <bruno@clisp.org>
66445
66446         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
66447         always instantiating them.
66448
66449 2005-08-31  Bruno Haible  <bruno@clisp.org>
66450
66451         * gnulib-tool (func_import): Read the previous cached settings
66452         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
66453         earlier added by gnulib but are now dropped. Warn when a gnulib file
66454         overwrites a non-gnulib file.
66455
66456 2005-08-31  Bruno Haible  <bruno@clisp.org>
66457
66458         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
66459         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
66460         projects that don't keep autogenerated files in CVS. Put into
66461         actioncmd only the specified modules, not the transitive closure.
66462
66463 2005-08-31  Bruno Haible  <bruno@clisp.org>
66464
66465         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
66466         Create directories that shall be filled.
66467         (import): Don't look for gl_* macros in configure.ac. Recurse across
66468         all directories containing a gnulib-cache.m4 files, if meaningful.
66469
66470 2005-08-31  Bruno Haible  <bruno@clisp.org>
66471
66472         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
66473         (import): Set seen_libtool when we see gl_LIBTOOL.
66474
66475 2005-08-31  Bruno Haible  <bruno@clisp.org>
66476
66477         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
66478         declaration macro definitions from generated gnulib.m4.
66479
66480 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
66481
66482         * lib/iconvme.h: Add prototype for iconv_alloc.
66483
66484 2005-08-29  Simon Josefsson  <jas@extundo.com>
66485
66486         * lib/iconvme.c: Fix errno.
66487
66488 2005-08-29  Bruno Haible  <bruno@clisp.org>
66489
66490         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
66491         that it works when the directory contains spaces.
66492
66493 2005-08-29  Bruno Haible  <bruno@clisp.org>
66494
66495         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
66496
66497 2005-08-29  Bruno Haible  <bruno@clisp.org>
66498
66499         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
66500         Emit more advice.
66501
66502 2005-08-29  Bruno Haible  <bruno@clisp.org>
66503         and Stepan Kasal  <kasal@ucw.cz>
66504
66505         * check-module: If more parameters are given, check each of them
66506         separately; add more exceptions, as noted by Jim Meyering.
66507         (check_module): New procedure.
66508         (%exempt_header): Now contains all exceptions.
66509
66510 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
66511
66512         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
66513
66514 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
66515
66516         * lib/iconvme.c: Split iconv_string into iconv_alloc.
66517
66518 2005-08-28  Bruno Haible  <bruno@clisp.org>
66519
66520         * m4/gnulib-tool.m4: New file.
66521
66522 2005-08-27  Jim Meyering  <jim@meyering.net>
66523
66524         * modules/unistd-safer (Files): Add pipe-safer.c.
66525         * modules/fcntl-safer (Files): Add creat-safer.c.
66526
66527 2005-08-27  Jim Meyering  <jim@meyering.net>
66528
66529         * m4/stdlib-safer.m4: New file.  From coreutils.
66530         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
66531         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
66532         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
66533         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
66534         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
66535
66536 2005-08-27  Jim Meyering  <jim@meyering.net>
66537
66538         * lib/fopen-safer.c: Merge minor changes from coreutils.
66539         * lib/dup-safer.c: Likewise.
66540         * lib/fd-safer.c: Likewise.
66541
66542         Merge from coreutils.
66543         * lib/stdio--.h: New file.
66544         * lib/stdlib--.h: New file.
66545         * lib/mkstemp-safer.c: New file.
66546
66547         GNU tar needs these.
66548         * lib/pipe-safer.c: New file.
66549         * lib/creat-safer.c: New file.
66550         * lib/fcntl--.h (creat): Define to creat_safer.
66551         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
66552         * lib/unistd--.h (pipe): Define to pipe_safer.
66553         * lib/unistd-safer.h: Declare pipe_safer.
66554
66555 2005-08-26  Simon Josefsson  <jas@extundo.com>
66556
66557         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
66558         Haible <bruno@clisp.org>.
66559
66560 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
66561
66562         * lib/regex_internal.h: Remove all references to
66563         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
66564         or better.
66565         (bitset_not, bitset_merge, bitset_not_merge):
66566         (bitset_mask, re_string_allocate, re_string_construct):
66567         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
66568         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
66569         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
66570         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
66571         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66572         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66573         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
66574         (re_acquire_state_context):
66575         Remove unnecessary forward decls.
66576         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
66577         Put __attribute at function definition,
66578         now that the function decl has been removed.
66579         * lib/regex_internal.c (re_string_peek_byte_case):
66580         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
66581         Likewise.
66582
66583 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
66584
66585         * m4/regex.m4: Add AC_PREREQ(2.50).
66586         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
66587
66588 2005-08-25  Simon Josefsson  <jas@extundo.com>
66589
66590         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
66591         __fsetlocking.
66592
66593 2005-08-25  Simon Josefsson  <jas@extundo.com>
66594
66595         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
66596         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
66597         GLIBC specific code.
66598
66599 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66600
66601         Make regex safe for g++.  This fixes one real bug (an "err"
66602         that should have been "*err").  g++ problem reported by
66603         Sam Steingold.
66604         * lib/regex_internal.h (re_calloc): New macro, consistent with
66605         re_malloc etc.  All callers of calloc changed to use re_calloc.
66606         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
66607         not int.  All callers changed.
66608         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
66609         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
66610         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
66611         (find_recover_state): Change "err" to "*err"; this fixes what
66612         appears to be a real bug.
66613         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
66614         versus int.
66615
66616 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66617
66618         * modules/regex (Depends-on): Add malloc, since the code
66619         assumes that !malloc(0) means failure.
66620
66621 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66622
66623         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
66624
66625         alloca modernization/simplification for regex.
66626         * lib/regex.c: Remove portability cruft for alloca.  This no longer
66627         needs to be at the start of the file, and can be moved into
66628         regex_internal.h and simplified.
66629         * lib/regex_internal.h: Include <alloca.h>.
66630         (__libc_use_alloca) [!defined _LIBC]: New macro.
66631         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
66632         now works outside glibc.
66633
66634 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
66635
66636         * config/srclist.txt: Add glibc bugs 1241, 1245.
66637
66638 2005-08-25  Jim Meyering  <jim@meyering.net>
66639
66640         * lib/open-safer.c: Include <config.h>.
66641         Otherwise, we'd lose LARGEFILE support in any file using
66642         e.g. "fcntl--.h"
66643
66644 2005-08-25  Bruno Haible  <bruno@clisp.org>
66645
66646         * m4/minmax.m4: Require autoconf 2.52.
66647         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
66648         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
66649         alternatives of translit over the alphabet.
66650         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
66651
66652 2005-08-24  Simon Josefsson  <jas@extundo.com>
66653
66654         * tests/test-getpass.c: New file.
66655
66656 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66657
66658         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
66659         for GNU regex features.
66660
66661 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66662
66663         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
66664         * lib/regex.h (regerror): Likewise.
66665
66666         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
66667         requires this.  (The code never needed it.)
66668
66669         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
66670         All uses of recently-renamed identifiers changed to use the new,
66671         POSIX-compliant names.  The code will build and run just fine
66672         without these changes, but it's better to eat our own dog food
66673         and use the standard-conforming names.
66674
66675         * lib/regex.h: Fix a multitude of POSIX name space violations.
66676         These changes have an effect only for programs that define
66677         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
66678         do not change anything for programs compiled in the normal way.
66679         Also, there is no effect on the ABI.
66680
66681         (_REGEX_SOURCE): New macro.
66682         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
66683         defined and _GNU_SOURCE is not; this fixes a name space violation.
66684
66685         Rename the following macros to obey POSIX requirements.
66686         The old names are still visible as macros if _REGEX_SOURCE is defined.
66687         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
66688         RE_BACKSLASH_ESCAPE_IN_LISTS.
66689         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
66690         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
66691         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
66692         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
66693         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
66694         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
66695         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
66696         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
66697         (REG_INTERVALS): renamed from RE_INTERVALS.
66698         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
66699         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
66700         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
66701         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
66702         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
66703         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
66704         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
66705         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
66706         RE_UNMATCHED_RIGHT_PAREN_ORD.
66707         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
66708         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
66709         (REG_DEBUG): renamed from RE_DEBUG.
66710         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
66711         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
66712         unusual, since we can't clash with the POSIX REG_ICASE.
66713         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
66714         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
66715         (REG_NO_SUB): renamed from RE_NO_SUB.
66716         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
66717         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
66718         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
66719         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
66720         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
66721         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
66722         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
66723         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
66724         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
66725         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
66726         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
66727         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
66728         RE_SYNTAX_POSIX_MINIMAL_BASIC.
66729         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
66730         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
66731         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
66732         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
66733         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
66734         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
66735         (REG_FIXED): Renamed from REGS_FIXED.
66736         (REG_NREGS): Renamed from RE_NREGS.
66737
66738         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
66739         of other REG_* macros, since POSIX says the user is allowed to
66740         #undef these macros selectively.
66741
66742         (reg_errcode_t): Update comment stating what other tables need
66743         to be consistent.
66744
66745         Rename the following enum values to obey POSIX requirements.
66746         The old names are still visible as macros.
66747         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
66748         is not defined, since GNU is supposed to be a superset of POSIX as
66749         much as possible, and since we want reg_errcode_t to be a signed
66750         type for implementation consistency.
66751         (_REG_NOERROR): Renamed from REG_NOERROR.
66752         (_REG_NOMATCH): Renamed from REG_NOMATCH.
66753         (_REG_BADPAT): Renamed from REG_BADPAT.
66754         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
66755         (_REG_ECTYPE): Renamed from REG_ECTYPE.
66756         (_REG_EESCAPE): Renamed from REG_EESCAPE.
66757         (_REG_ESUBREG): Renamed from REG_ESUBREG.
66758         (_REG_EBRACK): Renamed from REG_EBRACK.
66759         (_REG_EPAREN): Renamed from REG_EPAREN.
66760         (_REG_EBRACE): Renamed from REG_EBRACE.
66761         (_REG_BADBR): Renamed from REG_BADBR.
66762         (_REG_ERANGE): Renamed from REG_ERANGE.
66763         (_REG_ESPACE): Renamed from REG_ESPACE.
66764         (_REG_BADRPT): Renamed from REG_BADRPT.
66765         (_REG_EEND): Renamed from REG_EEND.
66766         (_REG_ESIZE): Renamed from REG_ESIZE.
66767         (_REG_ERPAREN): Renamed from REG_ERPAREN.
66768         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
66769         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
66770         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
66771         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
66772
66773         (_REG_RE_NAME, _REG_RM_NAME): New macros.
66774         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
66775         changed.  But support the old name if the new one is not defined
66776         and if _REGEX_SOURCE.
66777
66778         Change the following member names in struct re_pattern_buffer.
66779         The old names are still supported if !_REGEX_SOURCE.
66780         The new names are always supported, regardless of _REGEX_SOURCE.
66781         (re_buffer): Renamed from buffer.
66782         (re_allocated): Renamed from allocated.
66783         (re_used): Renamed from used.
66784         (re_syntax): Renamed from syntax.
66785         (re_fastmap): Renamed from fastmap.
66786         (re_translate): Renamed from translate.
66787         (re_can_be_null): Renamed from can_be_null.
66788         (re_regs_allocated): Renamed from regs_allocated.
66789         (re_fastmap_accurate): Renamed from fastmap_accurate.
66790         (re_no_sub): Renamed from no_sub.
66791         (re_not_bol): Renamed from not_bol.
66792         (re_not_eol): Renamed from not_eol.
66793         (re_newline_anchor): Renamed from newline_anchor.
66794
66795         Change the following member names in struct re_registers.
66796         The old names are still supported if !_REGEX_SOURCE.
66797         The new names are always supported, regardless of _REGEX_SOURCE.
66798         (rm_num_regs): Renamed from num_regs.
66799         (rm_start): Renamed from start.
66800         (rm_end): Renamed from end.
66801
66802         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
66803         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
66804         Prepend __ to parameter names.
66805
66806         Undo yesterday's changes.
66807
66808 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66809
66810         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
66811         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
66812         lib/regex.c.
66813
66814 2005-08-24  Jim Meyering  <jim@meyering.net>
66815
66816         Sync from coreutils.
66817         * m4/fcntl-safer.m4: New file.
66818
66819         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
66820         and object files for this module.
66821
66822 2005-08-24  Jim Meyering  <jim@meyering.net>
66823
66824         Sync from coreutils.
66825         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
66826
66827 2005-08-24  Jim Meyering  <jim@meyering.net>
66828
66829         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
66830         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
66831
66832 2005-08-24  Jim Meyering  <jim@meyering.net>
66833
66834         * modules/fcntl-safer: New module.
66835         * modules/fts (Depends-on): Add fcntl-safer.
66836         * MODULES.html.sh (File descriptor based Input/Output):
66837         Add fcntl-safer.
66838
66839 2005-08-24  Bruno Haible  <bruno@clisp.org>
66840
66841         Support for unit test modules.
66842         * modules/README: Mention tests modules.
66843         * modules/TEMPLATE-TESTS: New file.
66844         * gnulib-tool: New options --extract-tests-module, --with-tests and
66845         --tests-base (unused for the moment).
66846         (testsbase, inctests): New variables.
66847         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
66848         (func_verify_module): Exclude TEMPLATE-TESTS.
66849         (func_verify_nontests_module, func_verify_tests_module): New functions.
66850         (func_get_dependencies): Add implicit dependency for tests modules.
66851         (func_get_tests_module): New function.
66852         (func_modules_transitive_closure): When --with-tests was specified,
66853         include the unit tests as well, unless explicitly avoided.
66854         (func_emit_lib_Makefile_am): Ignore the tests modules here.
66855         (func_emit_tests_Makefile_am): New function.
66856         (func_create_testdir): When --with-tests was specified, emit a
66857         tests/ directory.
66858         * MODULES.html.sh (Future developments): Update.
66859
66860 2005-08-24  Bruno Haible  <bruno@clisp.org>
66861
66862         * modules/tls-tests: New file.
66863         * tests/test-tls.c: New file, from GNU gettext.
66864
66865 2005-08-24  Bruno Haible  <bruno@clisp.org>
66866
66867         * modules/lock-tests: New file.
66868         * tests/test-lock.c: New file, from GNU gettext.
66869
66870 2005-08-24  Bruno Haible  <bruno@clisp.org>
66871
66872         * lib/lock.h: Add multiple inclusion guard.
66873         * lib/tls.h: Add multiple inclusion guard.
66874
66875 2005-08-24  Bruno Haible  <bruno@clisp.org>
66876
66877         * gnulib-tool: Add support for the --aux-dir option to
66878         --create-testdir, --create-megatestdir, --test, --megatest.
66879         (func_create_testdir, func_create_megatestdir): Optionally emit a
66880         AC_CONFIG_AUX_DIR directive.
66881         (create-testdir, create-megatestdir, test, megatest): Provide a
66882         default value for $auxdir.
66883
66884 2005-08-24  Bruno Haible  <bruno@clisp.org>
66885
66886         * gnulib-tool (import): Use compound statement instead of subshell
66887         where possible.
66888
66889 2005-08-24  Bruno Haible  <bruno@clisp.org>
66890
66891         * gnulib-tool (import): Change --aux-dir default to "build-aux".
66892
66893 2005-08-24  Bruno Haible  <bruno@clisp.org>
66894
66895         * gnulib-tool (func_version): Update.
66896
66897 2005-08-24  Bruno Haible  <bruno@clisp.org>
66898
66899         * gnulib-tool (func_import, func_create_testdir,
66900         func_create_megatestdir): Quote all autoconf macro arguments.
66901
66902 2005-08-24  Bruno Haible  <bruno@clisp.org>
66903
66904         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
66905         option --force, because --force causes the aclocal.m4 of each
66906         subdirectory to be newer than the corresponding config.h.in.
66907
66908 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66909
66910         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
66911         All contents moved to gl_REGEX.
66912         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
66913         assume that it does.
66914
66915 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66916
66917         * lib/regex.h (REG_NOSYS)
66918         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
66919         Define, since POSIX requires it as of 2001.
66920         (_REG_ENOSYS)
66921         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
66922         New private symbol, used to keep the enum signed in all cases.
66923         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
66924         Youngman in
66925         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
66926
66927         * lib/regex_internal.c (re_string_skip_chars, register_state):
66928         (calc_state_hash):
66929         Remove forward decls; no longer needed now that we use prototypes.
66930         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
66931         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
66932         (clean_state_log_if_needed): Likewise.
66933
66934 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66935
66936         * config/srclist.txt: Add glibc bugs 1231-1233.
66937
66938 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66939
66940         Fix problems reported by Sam Steingold in
66941         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
66942         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
66943         assumed that reg_errcode_t is a signed type, which is not
66944         necessarily true if _XOPEN_SOURCE is not defined.
66945         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
66946         since some compilers warn about it otherwise.
66947
66948 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66949
66950         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
66951         (init_word_char, create_initial_state, duplicate_node_closure):
66952         (fetch_token, peek_token_bracket, build_range_exp):
66953         (build_collating_symbol): Remove forward decls; no longer needed
66954         now that we use prototypes.
66955
66956         * lib/regcomp.c:
66957         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
66958         (re_compile_fastmap_iter, regcomp, regerror, regfree):
66959         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
66960         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
66961         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
66962         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
66963         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
66964         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
66965         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
66966         (build_range_exp, build_collating_symbol, parse_bracket_exp):
66967         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
66968         (build_charclass, build_charclass_op, fetch_number, create_tree):
66969         (create_token_tree, mark_opt_subexp, duplicate_tree):
66970         Use prototypes rather than old-style definitions.
66971
66972         * lib/regex_internal.c:
66973         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
66974         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
66975         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
66976         (re_string_reconstruct, re_string_peek_byte_case):
66977         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
66978         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
66979         (re_node_set_init_copy, re_node_set_add_intersect):
66980         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
66981         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
66982         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
66983         (re_acquire_state, re_acquire_state_context, register_state):
66984         (create_ci_newstate, create_cd_newstate, free_state):
66985         Likewise.
66986         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
66987         re_search_2):
66988         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
66989         (re_search_internal, prune_impossible_nodes):
66990         (acquire_init_state_context, check_matching, static):
66991         (check_halt_node_context, check_halt_state_context, proceed_next_node):
66992         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
66993         (update_regs, sift_states_backward, build_sifted_states):
66994         (clean_state_log_if_needed, merge_state_array):
66995         (update_cur_sifted_state, add_epsilon_src_nodes):
66996         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
66997         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
66998         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
66999         (find_recover_state, check_subexp_matching_top, transit_state_mb):
67000         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
67001         (check_arrival, check_arrival_add_next_nodes):
67002         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
67003         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
67004         (check_node_accept_bytes, check_node_accept, extend_buffers):
67005         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
67006         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
67007         (sift_ctx_init):
67008         Likewise.
67009
67010         * lib/regex_internal.h:
67011         (re_string_allocate, re_string_construct, re_string_reconstruct):
67012         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
67013         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
67014         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
67015         (re_string_context_at, re_string_peek_byte_case):
67016         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
67017         is defined, since we now use prototypes always.
67018
67019         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
67020         C89 or better.  All uses removed.
67021
67022 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
67023
67024         * config/srclist.txt: Add glibc bugs 1220-1227.
67025
67026 2005-08-20  Jim Meyering  <jim@meyering.net>
67027
67028         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
67029         of unused local, dfa.
67030
67031 2005-08-20  Bruno Haible  <bruno@clisp.org>
67032
67033         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
67034
67035 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67036
67037         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
67038         (re_node_set_insert_last, re_dfa_add_node):
67039         Rename local variables to avoid GCC shadowing warnings.
67040
67041 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67042
67043         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
67044         [defined lint]: Suppress bogus uninitialized-variable warnings.
67045
67046         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
67047         and let the caller return REG_ESPACE if out of space.  This
67048         removes an uninitialied-variable warning with GCC 4.0.1, and also
67049         avoids taking the address of a local variable.  All callers
67050         changed.
67051
67052 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
67053
67054         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
67055         $LIBCSRC/posix/regexec.c.
67056         Add glibc bug 1217 for regcomp.c.
67057
67058 2005-08-19  Jim Meyering  <jim@meyering.net>
67059
67060         * lib/regexec.c (proceed_next_node): Redo local variables to
67061         avoid GCC shadowing warnings.
67062
67063 2005-08-18  Bruno Haible  <bruno@clisp.org>
67064
67065         * lib/strstr.c (strstr): Fix return value in multibyte case.
67066         * lib/strcasestr.c (strcasestr): Likewise.
67067
67068 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
67069
67070         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
67071
67072 2005-08-17  Jim Meyering  <jim@meyering.net>
67073
67074         Make the %s format (seconds since the epoch) work for a negative
67075         number and when used with a zero-padded field width, e.g. %015s.
67076
67077         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
67078         label so that it precedes the code to set `digits'.  Otherwise,
67079         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
67080         print `00-22'.  Now, it prints `-0022', as it should.
67081
67082 2005-08-17  Bruno Haible  <bruno@clisp.org>
67083
67084         * modules/strstr (Files): Add m4/mbrtowc.m4.
67085         (Depends-on): Add mbuiter.
67086
67087 2005-08-17  Bruno Haible  <bruno@clisp.org>
67088
67089         * modules/strcasestr: New file.
67090         * MODULES.html.sh (String handling, based on ANSI C 89): Add
67091         strcasestr.
67092
67093 2005-08-17  Bruno Haible  <bruno@clisp.org>
67094
67095         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
67096
67097 2005-08-17  Bruno Haible  <bruno@clisp.org>
67098
67099         * modules/mbuiter: New file.
67100         * MODULES.html.sh (Extended multibyte and wide character utilities):
67101         Add mbuiter.
67102
67103 2005-08-17  Bruno Haible  <bruno@clisp.org>
67104
67105         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
67106         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
67107
67108 2005-08-17  Bruno Haible  <bruno@clisp.org>
67109
67110         * m4/strcasestr.m4: New file.
67111
67112 2005-08-17  Bruno Haible  <bruno@clisp.org>
67113
67114         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
67115         * lib/strstr.c: Completely rewritten, with multibyte locale support.
67116
67117 2005-08-17  Bruno Haible  <bruno@clisp.org>
67118
67119         * lib/strcasestr.h: New file.
67120         * lib/strcasestr.c: New file.
67121
67122 2005-08-17  Bruno Haible  <bruno@clisp.org>
67123
67124         * lib/strcasecmp.c: Use mbuiter.h.
67125
67126 2005-08-17  Bruno Haible  <bruno@clisp.org>
67127
67128         * lib/mbuiter.h: New file.
67129
67130 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
67131
67132         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
67133         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
67134         and gl_GETOPT are both invoked via different paths (as happens
67135         with GNU tar CVS because it uses both argp and getopt), the former
67136         wins.
67137
67138 2005-08-16  Bruno Haible  <bruno@clisp.org>
67139
67140         * modules/tls: New file.
67141         * MODULES.html.sh (Multithreading): Add tls.
67142
67143 2005-08-16  Bruno Haible  <bruno@clisp.org>
67144
67145         * modules/strnlen1: New file.
67146         * MODULES.html.sh (String handling): Add strnlen1.
67147
67148 2005-08-16  Bruno Haible  <bruno@clisp.org>
67149
67150         * modules/strcase (Files): Add m4/mbrtowc.m4.
67151         (Depends-on): Add strnlen1, mbchar.
67152
67153 2005-08-16  Bruno Haible  <bruno@clisp.org>
67154
67155         * modules/mbiter: New file.
67156         * MODULES.html.sh (Extended multibyte and wide character utilities):
67157         Add mbiter.
67158
67159 2005-08-16  Bruno Haible  <bruno@clisp.org>
67160
67161         * modules/mbfile: New file.
67162         * MODULES.html.sh (Extended multibyte and wide character utilities):
67163         Add mbfile.
67164
67165 2005-08-16  Bruno Haible  <bruno@clisp.org>
67166
67167         * modules/mbchar: New file.
67168         * MODULES.html.sh (Extended multibyte and wide character utilities):
67169         New section.
67170
67171 2005-08-16  Bruno Haible  <bruno@clisp.org>
67172
67173         * m4/tls.m4: New file, from GNU gettext.
67174
67175 2005-08-16  Bruno Haible  <bruno@clisp.org>
67176
67177         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
67178         always.
67179         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
67180
67181 2005-08-16  Bruno Haible  <bruno@clisp.org>
67182
67183         * m4/mbiter.m4: New file.
67184
67185 2005-08-16  Bruno Haible  <bruno@clisp.org>
67186
67187         * m4/mbfile.m4: New file.
67188
67189 2005-08-16  Bruno Haible  <bruno@clisp.org>
67190
67191         * m4/mbchar.m4: New file.
67192
67193 2005-08-16  Bruno Haible  <bruno@clisp.org>
67194
67195         * lib/tls.h: New file, from GNU gettext.
67196         * lib/tls.c: New file, from GNU gettext.
67197
67198 2005-08-16  Bruno Haible  <bruno@clisp.org>
67199
67200         * lib/strnlen1.h: New file.
67201         * lib/strnlen1.c: New file.
67202
67203 2005-08-16  Bruno Haible  <bruno@clisp.org>
67204
67205         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
67206         (mbi_init): Update.
67207         (mbi_avail, mbi_advance): Let the iteration end before the terminating
67208         NUL byte, not after it.
67209
67210 2005-08-16  Bruno Haible  <bruno@clisp.org>
67211
67212         * lib/strcase.h (strcasecmp): Add note in comments.
67213         * lib/strncasecmp.c: Use code from strcasecmp.c.
67214         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
67215         (strcasecmp): Work correctly in multibyte locales.
67216
67217 2005-08-16  Bruno Haible  <bruno@clisp.org>
67218
67219         * lib/mbiter.h: New file.
67220
67221 2005-08-16  Bruno Haible  <bruno@clisp.org>
67222
67223         * lib/mbfile.h: New file.
67224
67225 2005-08-16  Bruno Haible  <bruno@clisp.org>
67226
67227         * lib/mbchar.h: New file.
67228         * lib/mbchar.c: New file.
67229
67230 2005-08-16  Bruno Haible  <bruno@clisp.org>
67231
67232         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
67233         the valid ones. Makes the comparison operations transitive:
67234         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
67235         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
67236
67237 2005-08-15  Simon Josefsson  <jas@extundo.com>
67238
67239         * modules/ssize_t (License): Change to 'unlimited'.
67240
67241         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
67242
67243 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
67244
67245         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
67246         Add comments for each pending glibc patch.
67247
67248 2005-08-15  Bruno Haible  <bruno@clisp.org>
67249
67250         * lib/regex.h (__restrict_arr): Don't define to __restrict if
67251         __cplusplus is defined.
67252
67253 2005-08-14  Jim Meyering  <jim@meyering.net>
67254
67255         Sync from coreutils.
67256
67257         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
67258         Use the hash-table-based cycle-detection code not just when
67259         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
67260         Reported by James Youngman in
67261         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
67262         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
67263         FTS_TIGHT_CYCLE_CHECK.
67264         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
67265         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
67266         once again.
67267         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
67268         * lib/fts.c (fd_safer): Remove decl.
67269         Include fcntl--.h rather than unistd-safer.h
67270         (fts_safe_changedir): Don't call fd_safer; no longer needed
67271         now that we include fcntl--.h.
67272
67273 2005-08-12  Simon Josefsson  <jas@extundo.com>
67274
67275         * modules/getndelim2: Use ssize_t module.
67276         * modules/getnline: Likewise.
67277         * modules/safe-read: Likewise.
67278         * modules/xreadlink: Likewise.
67279
67280         * modules/ssize_t: New file.
67281
67282 2005-08-12  Simon Josefsson  <jas@extundo.com>
67283
67284         * m4/readline.m4: Look for termcap, curses or ncurses if required.
67285
67286 2005-08-12  Simon Josefsson  <jas@extundo.com>
67287
67288         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
67289         ssize_t.
67290
67291 2005-08-12  Simon Josefsson  <jas@extundo.com>
67292
67293         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
67294         readline, getdelim and check_version.
67295         (Support for systems lacking ISO C 99: Sizes of integer types):
67296         Add size_max.
67297
67298 2005-08-12  Bruno Haible  <bruno@clisp.org>
67299
67300         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
67301
67302 2005-08-11  Simon Josefsson  <jas@extundo.com>
67303
67304         * modules/readline: New file.
67305
67306         * modules/strnlen (Files): Add strnlen.h.
67307
67308 2005-08-11  Simon Josefsson  <jas@extundo.com>
67309
67310         * m4/readline.m4: New file.
67311
67312 2005-08-11  Simon Josefsson  <jas@extundo.com>
67313
67314         * lib/readline.h, readline.c: New file.
67315
67316 2005-08-11  Simon Josefsson  <jas@extundo.com>
67317
67318         * doc/gnulib.texi (Initial import, Finishing touches): Mention
67319         gl_AVOID.
67320
67321 2005-08-11  Bruno Haible  <bruno@clisp.org>
67322
67323         * lib/strnlen.h (strnlen): Change parameter name to match comment.
67324
67325 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
67326
67327         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
67328
67329 2005-08-10  Simon Josefsson  <jas@extundo.com>
67330
67331         * tests/test-iconvme.c: New file.
67332
67333 2005-08-10  Simon Josefsson  <jas@extundo.com>
67334
67335         * m4/strnlen.m4: New file.
67336
67337         * m4/strndup.m4: Don't check for strnlen declaration, done in
67338         strnlen.m4.
67339
67340 2005-08-10  Simon Josefsson  <jas@extundo.com>
67341
67342         * lib/strndup.c: Use strnlen.h.
67343
67344         * lib/strnlen.h: New file.
67345
67346 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67347
67348         * README: Typos.
67349
67350 2005-08-02  Simon Josefsson  <jas@extundo.com>
67351
67352         * modules/readline: New file.
67353
67354 2005-08-02  Simon Josefsson  <jas@extundo.com>
67355
67356         * modules/getdelim: New file.
67357
67358         * modules/getline: Rewrite, don't use getndelim2.
67359
67360 2005-08-02  Simon Josefsson  <jas@extundo.com>
67361
67362         * m4/getline.m4: Separate out getdelim stuff into separate module.
67363
67364         * m4/getdelim.m4: New file.
67365
67366 2005-08-02  Simon Josefsson  <jas@extundo.com>
67367
67368         * lib/getline.h, getline.c: Rewrite.
67369
67370         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
67371
67372 2005-07-31  Bruno Haible  <bruno@clisp.org>
67373
67374         * lib/lock.h (gl_lock_initializer): New macro.
67375         (gl_lock_define_initialized): Use it.
67376         (gl_rwlock_initializer): New macro.
67377         (gl_rwlock_define_initialized): Use it.
67378         (gl_recursive_lock_initializer): New macro.
67379         (gl_recursive_lock_define_initialized): Use it.
67380
67381 2005-07-30  Karl Berry  <karl@gnu.org>
67382
67383         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
67384         Report from Ben Pfaff, regarding getopt.
67385
67386 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
67387
67388         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
67389         normal way.
67390         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
67391         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
67392         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
67393         (gl_GETOPT): Use the new macros.  Most of the implementation
67394         is moved to the new macros.  This is for programs like Emacs
67395         that don't want all the functionality of gl_GETOPT.
67396
67397 2005-07-26  Bruno Haible  <bruno@clisp.org>
67398
67399         * m4/lock.m4: Update from GNU gettext.
67400
67401 2005-07-26  Bruno Haible  <bruno@clisp.org>
67402
67403         * lib/lock.h: Update from GNU gettext.
67404         * lib/lock.c: Update from GNU gettext.
67405
67406 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
67407
67408         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
67409         obsolescent AC_TRY_RUN.  Include the default includes files, for
67410         'exit'.
67411
67412 2005-07-24  Bruno Haible  <bruno@clisp.org>
67413
67414         * modules/visibility: New file.
67415         * MODULES.html.sh (Misc): Add visibility.
67416
67417 2005-07-24  Bruno Haible  <bruno@clisp.org>
67418
67419         * m4/visibility.m4: New file.
67420
67421 2005-07-24  Bruno Haible  <bruno@clisp.org>
67422
67423         * doc/visibility.texi: New file.
67424
67425 2005-07-22  Bruno Haible  <bruno@clisp.org>
67426
67427         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
67428         $(ALLOCA_H), redundant through BUILT_SOURCES.
67429         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
67430         redundant through BUILT_SOURCES.
67431         * modules/byteswap (Makefile.am): Remove explicit dependency on
67432         $(BYTESWAP_H), redundant through BUILT_SOURCES.
67433         * modules/fnmatch (Makefile.am): Remove explicit dependency on
67434         $(FNMATCH_H), redundant through BUILT_SOURCES.
67435         * modules/getopt (Makefile.am): Remove explicit dependency on
67436         $(GETOPT_H), redundant through BUILT_SOURCES.
67437         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
67438         redundant through BUILT_SOURCES.
67439         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
67440         redundant through BUILT_SOURCES.
67441         * modules/stdbool (Makefile.am): Remove explicit dependency on
67442         $(STDBOOL_H), redundant through BUILT_SOURCES.
67443         * modules/stdint (Makefile.am): Remove explicit dependency on
67444         $(STDINT_H), redundant through BUILT_SOURCES.
67445         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
67446         Remove explicit dependency on $(SYSEXITS_H).
67447         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
67448
67449 2005-07-18  Simon Josefsson  <jas@extundo.com>
67450
67451         * lib/check-version.c (check_version): Accept identical versions too.
67452
67453 2005-07-18  Bruno Haible  <bruno@clisp.org>
67454
67455         * modules/lock: New file.
67456         * MODULES.html.sh (Multithreading): New section.
67457
67458 2005-07-18  Bruno Haible  <bruno@clisp.org>
67459
67460         * m4/lock.m4: New file, from GNU gettext.
67461
67462 2005-07-18  Bruno Haible  <bruno@clisp.org>
67463
67464         * lib/lock.h: New file, from GNU gettext.
67465         * lib/lock.c: New file, from GNU gettext.
67466
67467 2005-07-18  Bruno Haible  <bruno@clisp.org>
67468
67469         * lib/lock.h (gl_once_t): New type.
67470         (gl_once_define, gl_once): New macros.
67471         * lib/lock.c (fresh_once): New variable.
67472         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
67473         functions.
67474
67475 2005-07-16  Simon Josefsson  <jas@extundo.com>
67476
67477         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
67478         workaround, suggested by Bruno.
67479
67480 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67481
67482         * modules/xalloc (Depends-on): Add xalloc-die.
67483         * modules/xvasprintf (Depends-on): Add xalloc-die.
67484
67485 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
67486
67487         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
67488         with a minor change.
67489
67490 2005-07-15  Bruno Haible  <bruno@clisp.org>
67491
67492         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
67493         When using lib/poll.c, define poll as rpl_poll.
67494
67495 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
67496
67497         * modules/argp (Depends-on): Remove unlocked-io.
67498
67499 2005-07-14  Derek Price  <derek@ximbiot.com>
67500
67501         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
67502         for glob symlink bug.
67503
67504 2005-07-14  Bruno Haible  <bruno@clisp.org>
67505
67506         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
67507         Instead, test for *_unlocked function declarations directly.
67508
67509 2005-07-11  Simon Josefsson  <jas@extundo.com>
67510
67511         * modules/size_max: New file.
67512
67513         * modules/xsize: Depend on size_max module for size_max.m4.
67514
67515 2005-07-11  Simon Josefsson  <jas@extundo.com>
67516
67517         * lib/size_max.h: New file.
67518
67519 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
67520
67521         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
67522         copyright symbol and the year.
67523         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
67524         (version_etc_va): Use parameterized copyright notice.
67525         Reword to conform to the current GNU coding standards.
67526
67527 2005-07-11  Karl Berry  <karl@gnu.org>
67528
67529         * doc/gnulib.texi (Quoting): new node.
67530         (Initial import): more info, from Patrice.
67531
67532 2005-07-11  Bruno Haible  <bruno@clisp.org>
67533
67534         * gnulib-tool (func_usage): Document option --avoid.
67535         (Command line options): Handle --avoid.
67536         (func_acceptable): New function.
67537         (func_modules_transitive_closure): Use it.
67538
67539 2005-07-11  Bruno Haible  <bruno@clisp.org>
67540
67541         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
67542         Reported by Jim Meyering.
67543
67544 2005-07-10  Bruno Haible  <bruno@clisp.org>
67545
67546         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
67547         Needed when size_t is smaller than 'unsigned int'.
67548         Reported by Paul Eggert.
67549
67550 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67551
67552         * modules/argp (Depends-on): Add unlocked-io
67553
67554 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
67555
67556         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
67557         block of defines.
67558
67559 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67560
67561         * config/srclist.txt: Comment out regcomp.c, since we have a porting
67562         fix now.
67563
67564 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
67565         and Paul Eggert  <eggert@cs.ucla.edu>
67566
67567         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
67568         in wint_t, not wchar_t.  Remove now-unnecessary cast.
67569
67570 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67571
67572         * modules/regex (Files): Add lib/regex_internal.c,
67573         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
67574         (Depends-on): Add extensions.
67575         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
67576
67577 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67578
67579         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
67580         pathconf.
67581         * m4/same.m4 (gl_SAME): Likewise.
67582         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
67583
67584         * m4/regex.m4: Adjust to new libc regex implementation.
67585         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
67586         all the .c and .h parts of (the new) regex.
67587         Quote the m4 stuff better.
67588         Check for RE_ICASE bug of old gnulib.
67589         Check for REG_STARTEND of recent libc.
67590         Rename local variables from jm_* to gl_*.
67591         Quote operand of "test -f".
67592         Say "recent enough" version of libc, not "version 2".
67593         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
67594         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
67595         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
67596         Remove check for btowc, isascii.
67597         Require AM_LANGINFO_CODESET.
67598
67599 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67600
67601         * lib/regex.c, regex.h: Sync from libc.
67602         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
67603         * lib/regexec.c:
67604         New files, synced from libc, except that regex_internal.h
67605         currently has a small porting fix.
67606
67607 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
67608
67609         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
67610         regex_internal.c, regexec.c.
67611         Add regex_internal.h too, but as a comment, since the libc version
67612         is currently broken in gnulib mode.
67613
67614 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67615
67616         Support programs like Emacs that use gnulib but not gettext.
67617         * MODULES.html.sh (Internationalization functions): Add gettext-h.
67618         * modules/gettext-h: New file.
67619         * modules/gettext (Files): Remove lib/gettext.h.
67620         (Depends-on): Add gettext-h.
67621         (Makefile.am): Remove lib_SOURCES.
67622         * modules/argmatch, modules/c-stack, modules/closeout:
67623         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
67624         * modules/execute, modules/file-type, modules/getaddrinfo:
67625         * modules/getopt, modules/human, modules/javacomp:
67626         * modules/javaexec, modules/mkdir-p, modules/obstack:
67627         * modules/openat, modules/pagealign_alloc, modules/pipe:
67628         * modules/quotearg, modules/regex, modules/rpmatch:
67629         * modules/unicodeio, modules/userspec, modules/version-etc:
67630         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
67631         * modules/xsetenv:
67632         Depend on gettext-h, not gettext.
67633
67634 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67635
67636         * gnulib-tool (func_import): Add support for 'public domain' license.
67637         * modules/alloca, modules/atexit, modules/memmove:
67638         Now public domain, not GPL.
67639         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
67640         * modules/realloc, modules/strerror, modules/strtod:
67641         Now LGPL, not GPL.
67642
67643 2005-07-05  Bruno Haible  <bruno@clisp.org>
67644
67645         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
67646         autoconf CVS. Needed for mingw.
67647
67648 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67649
67650         Remove the dependency of the strftime module on the tzset module.
67651         * modules/strftime (Depends-on): Remove dependency on tzset.
67652
67653 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67654
67655         Remove the dependency of the strftime module on the tzset module.
67656         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
67657         gl_FUNC_TZSET_CLOBBER.
67658
67659 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67660
67661         Remove the dependency of the strftime module on the tzset module.
67662         * lib/strftime.c (my_strftime)
67663         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
67664         Copy the input structure, to work around some of the bug with
67665         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
67666         Solaris releases, you should also use the tzset module, but we won't
67667         require it as a dependency any more since we don't want LGPLed code
67668         to depend on GPLed code.
67669
67670 2005-07-02  Jim Meyering  <jim@meyering.net>
67671
67672         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
67673         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
67674         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
67675         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
67676
67677 2005-07-02  Jim Meyering  <jim@meyering.net>
67678
67679         * lib/backupfile.c (backup_args): Change a `0' to NULL.
67680
67681 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67682
67683         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
67684         declares only 'struct timespec;' (!).
67685
67686 2005-07-01  Jim Meyering  <jim@meyering.net>
67687
67688         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
67689         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
67690         * lib/save-cwd.c, tempname.c:
67691         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
67692         and don't include <sys/file.h>).
67693
67694 2005-06-29  Jim Meyering  <jim@meyering.net>
67695
67696         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
67697         type name.  Use the variable name instead.
67698         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
67699         Likewise.
67700
67701 2005-06-28  Simon Josefsson  <jas@extundo.com>
67702
67703         * modules/check-version (Files): Add check-version.m4.
67704
67705 2005-06-28  Simon Josefsson  <jas@extundo.com>
67706
67707         * m4/check-version.m4: New file, suggested by Jim Meyering
67708         <jim@meyering.net>.
67709
67710 2005-06-28  Simon Josefsson  <jas@extundo.com>
67711
67712         * lib/check-version.h, lib/check-version.c: New files.
67713
67714 2005-06-28  Simon Josefsson  <jas@extundo.com>
67715
67716         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
67717         collision with global variable.  Better indentation.  Don't
67718         increment buffer pointer beyond buffer end.  Based on comments
67719         from Paul Eggert <eggert@cs.ucla.edu>.
67720
67721         * lib/base64.h: Indent.
67722
67723 2005-06-28  Simon Josefsson  <jas@extundo.com>
67724
67725         * doc/gnulib.texi (Library version handling): New section.
67726
67727 2005-06-28  Jim Meyering  <jim@meyering.net>
67728
67729         * check-module (find_included_lib_files): Hard-code another
67730         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
67731         but modules/fts-lgpl (correctly) does not list those files.
67732
67733         * modules/canonicalize (Files): Add lib/pathmax.h.
67734
67735 2005-06-25  Simon Josefsson  <jas@extundo.com>
67736
67737         * modules/check-version: New file.
67738
67739 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
67740
67741         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
67742         initializer of struct addrinfo, as an indication that we don't
67743         care how many members the structure has.
67744
67745 2005-06-24  Derek Price  <derek@ximbiot.com>
67746         and Bruno Haible  <bruno@clisp.org>
67747
67748         Remove stat module & update lstat.
67749         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
67750         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
67751         * m4/stat.m4: Remove this file.
67752
67753 2005-06-24  Derek Price  <derek@ximbiot.com>
67754         and Bruno Haible  <bruno@clisp.org>
67755
67756         Remove stat module & update lstat.
67757         * lib/stat.c: Remove this file...
67758         (slash_aware_lstat): ...moving this content and its support...
67759         * lib/lstat.c (rpl_lstat): ...into here.
67760         * lib/lstat.h: New file.
67761
67762 2005-06-24  Derek Price  <derek@ximbiot.com>
67763         and Bruno Haible  <bruno@clisp.org>
67764
67765         Remove stat module & update lstat.
67766         * config/srclist.txt (libc sources): Remove stat.
67767
67768 2005-06-24  Derek Price  <derek@ximbiot.com>
67769         and Bruno Haible  <bruno@clisp.org>
67770
67771         Remove stat module & update lstat.
67772         * MODULES.html.sh (stat): Remove.
67773         * MODULES.html: Regenerated.
67774         * modules/lstat (Description): Correct function name.
67775         (Files): Add "lstat.h".
67776         (Depends-on): Remove stat, add xalloc, stat-macros.
67777         * modules/stat: Remove this file.
67778         (Include): Add "lstat.h", remove <sys/stat.h>.
67779
67780 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67781
67782         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
67783         (ranged_convert): Don't save conversion in a temporary struct.
67784         This causes a warning with GCC 4.0.0, and anyway in the typical
67785         case it's not worth the extra 100 bytes or so of code.
67786         (ranged_convert, __mktime_internal): When calling a function via a
67787         pointer P, use P () rather than (*P) (), as we now assume C89 or
67788         better.
67789
67790 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67791
67792         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
67793         "who -r" failed to give output.  Problem reported by Tim Waugh.
67794
67795         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
67796         (xcalloc): Use it to avoid needless tests.
67797         Problem reported by Jim Meyering.
67798
67799 2005-06-20  Derek Price  <derek@ximbiot.com>
67800
67801         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
67802         unnecessary for Autoconfs > 2.59c.
67803
67804 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
67805
67806         * lib/argp.h (__option_is_short): Check upper limit of
67807         __key. Isprint() requires its argument to have the value
67808         of an unsigned char or EOF.
67809
67810 2005-06-16  Jim Meyering  <jim@meyering.net>
67811
67812         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
67813         when either N or S is zero.
67814
67815 2005-06-16  Derek Price  <derek@ximbiot.com>
67816
67817         * m4/bison.m4: Declare YACC & YFLAGS precious.
67818
67819 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
67820
67821         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
67822         multibyte string or pattern, fall back on unibyte matching.
67823         Problem reported by James Youngman.
67824
67825 2005-06-08  Bruno Haible  <bruno@clisp.org>
67826
67827         * modules/csharpcomp: New file.
67828         * MODULES.html.sh (C#): Add csharpcomp.
67829
67830 2005-06-08  Bruno Haible  <bruno@clisp.org>
67831
67832         * m4/csharpcomp.m4: New file, from GNU gettext.
67833
67834 2005-06-08  Bruno Haible  <bruno@clisp.org>
67835
67836         * lib/csharpcomp.h: New file, from GNU gettext.
67837         * lib/csharpcomp.c: New file, from GNU gettext.
67838         * lib/csharpcomp.sh.in: New file, from GNU gettext.
67839
67840 2005-06-08  Bruno Haible  <bruno@clisp.org>
67841
67842         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
67843         warning on mingw.
67844
67845 2005-06-07  Derek Price  <derek@ximbiot.com>
67846
67847         Sync from CVS.
67848         * lib/glob_.h: Indent nested #ifdef.
67849
67850 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67851
67852         Sync from coreutils.
67853         Use "file name" when talking about file names, instead of "filename"
67854         or "path", as per the GNU coding standards.
67855         * lib/mkdir-p.c: Renamed from makepath.c.
67856         (make_dir_parents): Renamed from make_path.  All callers changed.
67857         * lib/mkdir-p.h: Likewise.  All includers changed.
67858         * lib/filenamecat.c: Renamed from path-concat.c.
67859         (file_name_concat): Renamed from path_concat.  All callers changed.
67860         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
67861         * lib/filenamecat.h: Likewise.  All includers changed.
67862         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
67863         in comments or local variable names.
67864         * lib/basename.c: Likewise.
67865         * lib/canonicalize.c, canonicalize.h: Likewise.
67866         * lib/dirname.c, dirname.h: Likewise.
67867         * lib/euidaccess.c: Likewise.
67868         * lib/exclude.c: Likewise
67869         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
67870         * lib/fsusage.c, fsuage.h: Likewise.
67871         * lib/fts.c, fts_.h: Likewise.
67872         * lib/getcwd.c: Likewise.
67873         * lib/getloadavg.c: Likewise.
67874         * lib/mkstemp.c: Likewise.
67875         * lib/mountlist.c, mountlist.h: Likewise.
67876         * lib/openat.c, openat.h: Likewise.
67877         * lib/readlink-stub.c: Likewise.
67878         * lib/readutmp.c, readutmp.h: Likewise.
67879         * lib/rename.c: Likewise.
67880         * lib/rmdir.c: Likewise.
67881         * lib/same.c: Likewise.
67882         * lib/savedir.c: Likewise.
67883         * lib/stripslash.c: Likewise.
67884         * lib/tempname.c: Likewise.
67885         * lib/xreadlink.c: Likewise.
67886         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
67887         All uses changed.
67888         * lib/exclude.h: Likewise.
67889
67890         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
67891         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67892         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
67893         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67894         * lib/pathmax.h: Include <limits.h> unconditionally, since other
67895         files have been getting away with it for years (MORE/BSD 4.3
67896         is extinct now).
67897         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
67898         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
67899
67900         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
67901         Define to 256, not 255, as per modern POSIX.
67902
67903 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67904
67905         Sync from coreutils.
67906         Use "file name" when talking about file names, instead of "filename"
67907         or "path", as per the GNU coding standards.
67908         * MODULES.html.sh: mkdir-p renamed from makepath.
67909         filenamecat renamed from path-concat.
67910         * modules/filenamecat: Renamed from modules/path-concat.
67911         (Files): filenamecat.h and filenamecat.c renamed from
67912         path-concat.h and path-concat.c.
67913         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
67914         (Include): filenamecat.h, not path-concat.h.
67915         * modules/mkdir-p: Renamed from modules/makepath.
67916         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
67917         makepath.c.
67918         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
67919         (Include): mkdir-p.h, not makepath.h.
67920
67921 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
67922
67923         Sync from coreutils.
67924         * m4/mkdir-p.m4: Renamed from makepath.m4.
67925         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
67926         Rename files from makepath.c to mkdir-p.c, and from
67927         makepath.h to mkdir-p.h.
67928         * m4/filenamecat.m4: Renamed from path-concat.m4.
67929         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
67930         Rename files from path-concat.c to filenamecat.c,
67931         and from path-concat.h to filenamecat.h.
67932         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
67933         "file name" in local variables or comments.
67934         * m4/rename.m4: Likewise.
67935
67936 2005-06-01  Bruno Haible  <bruno@clisp.org>
67937
67938         * modules/csharpexec: New file.
67939         * MODULES.html.sh (C#): New section.
67940
67941 2005-06-01  Bruno Haible  <bruno@clisp.org>
67942
67943         * m4/csharp.m4: New file, from GNU gettext.
67944         * m4/csharpexec.m4: New file, from GNU gettext.
67945
67946 2005-06-01  Bruno Haible  <bruno@clisp.org>
67947
67948         * lib/csharpexec.h: New file, from GNU gettext.
67949         * lib/csharpexec.c: New file, from GNU gettext.
67950         * lib/csharpexec.sh.in: New file, from GNU gettext.
67951
67952 2005-05-31  Derek Price  <derek@ximbiot.com>
67953             Paul Eggert  <eggert@cs.ucla.edu>
67954
67955         Sync from cvs.
67956         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67957
67958 2005-05-31  Derek Price  <derek@ximbiot.com>
67959             Paul Eggert  <eggert@cs.ucla.edu>
67960
67961         Sync from cvs.
67962         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
67963
67964 2005-05-29  Derek Price  <derek@ximbiot.com>
67965
67966         * config/srclist.txt (glob_.h, glob.c): Add these files.
67967
67968 2005-05-29  Derek Price  <derek@ximbiot.com>
67969
67970         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
67971         * modules/glob: New file.
67972         * modules/getlogin_r: Add link to POSIX spec in description.
67973
67974 2005-05-29  Derek Price  <derek@ximbiot.com>
67975             Paul Eggert  <eggert@cs.ucla.edu>
67976
67977         * m4/glob.m4: New file.
67978
67979 2005-05-29  Derek Price  <derek@ximbiot.com>
67980             Paul Eggert  <eggert@cs.ucla.edu>
67981
67982         * lib/glob_.h, lib/glob.c: New files.
67983
67984 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67985
67986         * modules/fts (Files): Remove m4/inttypes-pri.m4.
67987         * modules/fts-lgpl (Depends-on): Remove gettext.
67988
67989 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67990
67991         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
67992         and don't require gt_INTTYPES_PRI.
67993
67994 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
67995
67996         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
67997
67998         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
67999         the configuration hassle isn't worth it.
68000         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
68001         (LONGEST_MODIFIER, PRIuMAX): Remove.
68002
68003 2005-05-27  Bruno Haible  <bruno@clisp.org>
68004
68005         * lib/getlogin_r.h: Remove second include of <stddef.h>.
68006
68007 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
68008
68009         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
68010         _POSIX_PTHREAD_SEMANTICS for Solaris.
68011
68012 2005-05-25  Derek Price  <derek@ximbiot.com>
68013
68014         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
68015
68016 2005-05-25  Derek Price  <derek@ximbiot.com>
68017             Paul Eggert  <eggert@cs.ucla.edu>
68018
68019         * modules/getlogin_r, m4/getlogin_r.m4: New files.
68020         * lib/getlogin_r.c, getlogin_r.h: New files.
68021
68022 2005-05-25  Bruno Haible  <bruno@clisp.org>
68023             Derek Price  <derek@ximbiot.com>
68024
68025         * lib/getlogin_r.h: Simplify API documentation.
68026
68027 2005-05-23  Derek Price  <derek@ximbiot.com>
68028
68029         * modules/minmax (Files): Add m4/minmax.m4.
68030         (configure.ac): Add gl_MINMAX.
68031
68032 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
68033
68034         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
68035         so that unistd-safer.h (GPL'ed code) need not be included.
68036
68037 2005-05-22  Bruno Haible  <bruno@clisp.org>
68038
68039         * m4/minmax.m4: New file.
68040         Based on a patch by Derek Price <derek@ximbiot.com>.
68041
68042 2005-05-22  Bruno Haible  <bruno@clisp.org>
68043
68044         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
68045         (INT64_MIN): Fix definition.
68046         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
68047
68048         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
68049         NEED_SIGNED_INT_TYPES.
68050
68051         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
68052         HAVE_SYSTEM_INTTYPES.
68053
68054 2005-05-22  Bruno Haible  <bruno@clisp.org>
68055
68056         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
68057         Also include <sys/param.h> if it defines MIN, MAX.
68058         Based on a patch by Derek Price <derek@ximbiot.com>.
68059
68060 2005-05-21  Jim Meyering  <jim@meyering.net>
68061
68062         * modules/fts (Files): Add m4/inttypes-pri.m4.
68063         (Depends-on): Add lstat and remove gettext.  Alphabetize.
68064
68065 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68066
68067         New fts module.
68068         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
68069         (setup_dir, free_dir): New functions.
68070         (enter_dir, leave_dir): Define trivial
68071         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
68072         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
68073         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
68074         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
68075         Move to fts-cycle.c.
68076         (fts_open): Use setup_dir.
68077         (fts_close): Use free_dir.
68078         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
68079         This adds a label and some gotos, but the alternatives were messier.
68080         Check for memory allocation failure when entering a dir.
68081         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
68082         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
68083         (FTS): New member fts_cycle, that is a union that contains the
68084         old active_dir_ht and cycle_state.  All uses changed to mention
68085         fts_cycle.ht and fts_cycle.state.
68086         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
68087         fts.c, with the following changes:
68088         (setup_dir, free_dir): New functions.
68089         (enter_dir): Now returns bool.  Return true if successful, false
68090         if memory exhausted.  All callers changed.
68091         Do not bother partly cleaning up on
68092         memory allocation failure; that is free_dir's job.
68093         However, free ad if hash_insert fails, to avoid memory leak.
68094         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
68095         fts->fts_options to see which union member to use.
68096
68097 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68098
68099         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
68100         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
68101
68102 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
68103
68104         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
68105
68106 2005-05-20  Jim Meyering  <jim@meyering.net>
68107
68108         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
68109         Now a macro, to pacify GCC.
68110
68111 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
68112
68113         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
68114         of -1.
68115
68116 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
68117
68118         * lib/chown.c (rpl_chown): Return -1 on failure.
68119
68120 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
68121
68122         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
68123         Don't check for stddef.h.
68124         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
68125         don't use its results.
68126         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
68127         since we include them unconditionally.  Don't require
68128         AM_STDBOOL_H, since stdbool is a prerequisite.
68129         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
68130         since we assume C89 or better.
68131         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
68132         as we don't use their results.
68133         Don't check for fchdir, memmove, memset, strrchr, as we use
68134         them unconditionally.
68135         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
68136         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
68137
68138 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
68139
68140         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
68141         Include <stddef.h> unconditionally, since we assume C89 now.
68142         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
68143         * lib/fts.c: Include fts_.h first, to check interface.
68144         Do not include intprops.h; no longer needed.
68145         Include cycle-check.h and hash.h, since fts_.h no longer does.
68146         Remove unnecessary casts of closedir to void.
68147         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
68148         decide whether to decrement nlinks.
68149         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
68150         (FTS): Use struct hash_table * instead of Hash_table, so that
68151         we no longer need to include hash.h here.
68152
68153 2005-05-18  Jim Meyering  <jim@meyering.net>
68154
68155         * modules/dirfd (License): Change to LGPL.  Most of the code
68156         is already in the public domain.
68157
68158 2005-05-18  Jim Meyering  <jim@meyering.net>
68159
68160         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
68161         Reported by Yoann Vandoorselaere.
68162
68163 2005-05-17  Jim Meyering  <jim@meyering.net>
68164
68165         * m4/fts.m4: New file, from coreutils.
68166
68167 2005-05-17  Jim Meyering  <jim@meyering.net>
68168
68169         * lib/fts.c, lib/fts_.h: New files, from coreutils.
68170
68171 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68172
68173         Sync from coreutils.
68174         * m4/unlinkdir.m4: New file.
68175
68176 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68177
68178         Sync from coreutils.
68179         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
68180         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
68181         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
68182         White space changes only.
68183         * lib/makepath.c (make_path): Port to hosts where leading "//" is
68184         special.
68185         * lib/yesno.c: Include getline.h, not ctype.h.
68186         (yesno): Don't remove leading white space; POSIX doesn't allow it.
68187         Use getline to remove arbitrary restriction on response length.
68188
68189 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68190
68191         * config/srclist-update: Spell out "Street" in FSF postal
68192         mail address; this is the style the FSF seems to prefer.
68193
68194         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
68195         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
68196         this updates FSF postal mail address.
68197
68198         Sync from coreutils.
68199         * modules/unlinkdir: New file.
68200         * modules/yesno (Depends-on): Add getline.
68201         * MODULES.html.sh (File system functions): Add unlinkdir.
68202
68203 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68204
68205         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
68206         lib/strsep.h:
68207         Change the initial comment to refer to GPL, not LGPL.
68208         gnulib-tool will change it to LGPL as needed.
68209
68210         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
68211         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
68212         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
68213         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
68214         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
68215         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
68216         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
68217         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
68218         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
68219         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
68220         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
68221         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
68222         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
68223         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
68224         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
68225         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
68226         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
68227         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
68228         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
68229         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
68230         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
68231         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
68232         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
68233         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
68234         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
68235         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
68236         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
68237         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
68238         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
68239         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
68240         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
68241         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
68242         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
68243         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
68244         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
68245         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
68246         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
68247         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
68248         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
68249         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
68250         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
68251         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
68252         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
68253         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
68254         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
68255         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
68256         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
68257         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
68258         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
68259         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
68260         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
68261         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
68262         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
68263         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
68264         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
68265         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
68266         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
68267         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
68268         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
68269         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
68270         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
68271         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
68272         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
68273         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
68274         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
68275         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
68276         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
68277         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
68278         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
68279         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
68280         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
68281         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
68282         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
68283         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
68284         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
68285         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
68286         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
68287         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
68288         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
68289         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
68290         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
68291         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
68292         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
68293         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
68294         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
68295         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
68296         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
68297         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
68298         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
68299         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
68300         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
68301         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
68302         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
68303         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
68304         lib/yesno.c, lib/yesno.h:
68305         Update FSF postal mail address.
68306
68307 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
68308
68309         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
68310         tests/test-memmem.c, tests/test-stpncpy.c:
68311         Update FSF postal mail address.
68312
68313 2005-05-13  Bruno Haible  <bruno@clisp.org>
68314
68315         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
68316         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
68317         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
68318         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
68319         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
68320         Add support for 64-bit integers in the MSVC compiler.
68321
68322 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
68323
68324         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
68325
68326 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
68327
68328         * gnulib-tool (func_import): Sort and uniquify recommended includes.
68329
68330 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
68331
68332         * doc/getdate.texi (General date syntax): Don't say that date
68333         date --iso-8601=ns generates acceptable dates; it doesn't yet.
68334         Problem reported by Nic Ferrier.
68335
68336 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68337
68338         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
68339         specified in ai_socktype. Fix invalid ai_protocol
68340         check. ai_protocol is usually set to 0 or depending on
68341         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
68342         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
68343         ai_socktype / ai_protocol in the returned addrinfo structure.
68344
68345 2005-05-10  Simon Josefsson  <jas@extundo.com>
68346
68347         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
68348         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
68349
68350 2005-05-10  Karl Berry  <karl@gnu.org>
68351
68352         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
68353         (from http://www.gnu.org/licenses).
68354         * doc/COPYING.LIB: also rename to COPYING.LESSER.
68355         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
68356         fdl.texi suffices.
68357
68358 2005-05-10  Karl Berry  <karl@gnu.org>
68359
68360         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
68361         (COPYING.DOC): remove.
68362
68363         * config/srclist-update: new FSF address.
68364
68365 2005-05-10  Derek Price  <derek@ximbiot.com>
68366
68367         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
68368         possible.
68369
68370 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68371             Bruno Haible  <bruno@clisp.org>
68372
68373         * modules/inet_ntop: New file.
68374         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68375         inet_ntop.
68376
68377 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68378             Bruno Haible  <bruno@clisp.org>
68379
68380         * m4/inet_ntop.m4: New file.
68381
68382 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68383             Bruno Haible  <bruno@clisp.org>
68384
68385         * lib/inet_ntop.h: New file.
68386         * lib/inet_ntop.c: New file, from glibc with modifications.
68387
68388 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
68389
68390         * modules/time_r (License): Change to LGPL.
68391         * modules/extensions (License): Change to LGPL.  Actually,
68392         the license is more permissive than that, but currently gnulib-tool
68393         doesn't know how to handle more-permissive licenses.
68394
68395         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
68396         Problem reported by Dave Love.
68397
68398 2005-05-08  Jim Meyering  <jim@meyering.net>
68399
68400         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
68401         blank.
68402
68403 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
68404
68405         * modules/argmatch (Depends-on): Add stdbool.
68406         * modules/backupfile (Depends-on): Likewise.
68407         * modules/chdir-long (Depends-on): Likewise.
68408         * modules/closeout (Depends-on): Likewise.
68409         * modules/cycle-check (Depends-on): Likewise.
68410         * modules/dirname (Depends-on): Likewise.
68411         * modules/fnmatch (Depends-on): Likewise.
68412         * modules/fsusage (Depends-on): Likewise.
68413         * modules/fwriteerror (Depends-on): Likewise.
68414         * modules/getcwd (Depends-on): Likewise.
68415         * modules/getloadavg (Depends-on): Likewise.
68416         * modules/hard-locale (Depends-on): Likewise.
68417         * modules/makepath (Depends-on): Likewise.
68418         * modules/mountlist (Depends-on): Likewise.
68419         * modules/nanosleep (Depends-on): Likewise.
68420         * modules/posixtm (Depends-on): Likewise.
68421         * modules/quotearg (Depends-on): Likewise.
68422         * modules/readtokens (Depends-on): Likewise.
68423         * modules/readtokens0 (Depends-on): Likewise.
68424         * modules/readutmp (Depends-on): Likewise.
68425         * modules/save-cwd (Depends-on): Likewise.
68426         * modules/strftime (Depends-on): Likewise.
68427         * modules/userspec (Depends-on): Likewise.
68428         * modules/utimecmp (Depends-on): Likewise.
68429         * modules/xgetcwd (Depends-on): Likewise.
68430         * modules/xnanosleep (Depends-on): Likewise.
68431         * modules/xstrtod (Depends-on): Likewise.
68432         * modules/yesno (Depends-on): Likewise.
68433
68434 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
68435
68436         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
68437         needless checks.
68438
68439 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68440
68441         Merge from coreutils.  Among other things,
68442         add bulletproofing for cases where stdin, stdout, or stderr are closed.
68443         * lib/fd-safer.c: New file.
68444         * lib/fcntl-safer.h, open-safer.c: Remove.
68445         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
68446         * lib/dup-safer.c: Include unistd-safer.h first.
68447         Don't include errno.h.
68448         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
68449         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
68450         * lib/file-type.c: Rely on file-type.h change.
68451         * lib/getloadavg.c: Include unistd-safer.h.
68452         (getloadavg): Use safer open.
68453         * lib/getusershell.c: Include "stdio-safer.h".
68454         (getusershell): Use safer fopen.
68455         * lib/long-options.c (long_options): Use NULL rather than 0.
68456         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
68457         'free'.
68458         * lib/modechange.c: Likewise.
68459         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
68460         (MODE_DONE): New constant.
68461         (struct mode_change): Remove 'next' member.
68462         (make_node_op_equals): New function; like the old one of the
68463         same name, except it allocates an array.
68464         (mode_compile, mode_create_from_ref): Use it.
68465         (mode_compile): Allocate result as an array, not a linked list.
68466         Parse octal string ourself, so that we catch mistakes like "+0".
68467         (mode_adjust): Arg is an array, not a linked list.
68468         * lib/modechange.c: Include stat-macros.h, xalloc.h.
68469         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
68470         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
68471         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
68472         Remove.  This is now stat-macros.h's job.
68473         (talloc): Remove.  All callers replaced by xalloc, so that
68474         our invokers don't have to worry about reporting memory failures.
68475         (make_node_op_equals): Remove.
68476         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68477         New constants.
68478         (struct mode_change): Moved here from modechange.h.
68479         (mode_append_entry): Remove.
68480         (mode_compile): Remove MASKED_OPS arg, since it encouraged
68481         apps to have incorrect behavior.  Use simpler algorithm for head
68482         and tail.  Don't futz with umask; that's now the job of mode_adjust.
68483         Detect more invalid usages rather than having somewhat-random behavior.
68484         Don't insert an "a=" action, as that leads to incorrect behavior.
68485         (mode_compile, mode_create_from_ref): Return NULL on error instead
68486         of an enum, since now there's only one way to have an error.  All
68487         callers changed.
68488         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
68489         at the correct time.  Simplify calculation of "+u" and its ilk.
68490         Don't mishandle "+X".
68491         (mode_free): Remove "register" and localize decls.
68492         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
68493         (struct mode_change): Move to modechange.c; callers don't
68494         need to see this stuff.
68495         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
68496         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
68497         (mode_change, mode_adjust): Reflect the new signatures noted above.
68498         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
68499         that might redefine system include files.
68500         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
68501         (my_usleep): Use NULL rather than (void *) 0.
68502         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
68503         Use siginterrupt to specify that system calls should be interrupted.
68504         (rpl_nanosleep): Move initialization of suspended closer to call of
68505         my_usleep.
68506         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
68507         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
68508         (desirable_utmp_entry): New function.
68509         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
68510         using x2nrealloc, to simplify logic.
68511         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
68512         size calculation.  Do not assume utmp file is a regular file.
68513         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
68514         (READ_UTMP_CHECK_PIDS): New constant.
68515         * lib/save-cwd.c: Include unistd-safer.h.
68516         (save_cwd): Use fd_safer.
68517         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
68518         [!_LIBC] Include "stat-macros.h" instead.
68519         * lib/unistd-safer.h (fd_safer): New decl.
68520
68521 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68522
68523         * modules/getloadavg (Depends-on): Add unistd-safer.
68524         * modules/getusershell (Depends-on): Add stdio-safer.
68525         * modules/lstat (Depends-on): Remove xalloc.
68526         * modules/mkstemp (Depends-on): Add stat-macros.
68527         * modules/modechange (Depends-on): Remove xstrtol.
68528         Add stat-macros, xalloc.
68529         * modules/save-cwd (Depends-on): Add unistd-safer.
68530         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
68531         * modules/unistd-safer (Files): Add lib/fd-safer.c
68532         (Makefile.am): Remove lib_SOURCES.
68533
68534         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
68535         Remove fcntl-safer; unistd-safer supersedes it.
68536
68537 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68538
68539         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
68540         AC_HEADER_STAT.
68541         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
68542         (gl_PREREQ_CHOWN): Remove.
68543         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
68544         it.  Don't require AC_HEADER_STAT.
68545         (gl_PREREQ_LSTAT): Remove.
68546         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
68547         Don't require AC_HEADER_STAT.
68548         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
68549         (gl_PREREQ_RMDIR): Remove.
68550         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
68551         mention stat-macros.h or AC_HEADER_STAT, since we'll make
68552         the stat-macros module a prerequisite.
68553         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
68554         * m4/filemode.m4 (gl_FILEMODE): Likewise.
68555         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
68556         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
68557         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
68558         variable names.
68559         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
68560         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
68561         variable prefixes.
68562         * m4/fcntl-safer.m4: Remove.
68563         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
68564         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
68565         Invoke gl_PREREQ_FD_SAFER.
68566         (gl_PREREQ_FD_SAFER): New macro.
68567         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
68568         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
68569         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
68570         Remove duplicate call to AC_LIBOBJ(readutmp).
68571         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
68572
68573         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
68574         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
68575
68576 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
68577
68578         * MODULES.html.sh (Misc): Add byteswap.
68579
68580 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68581
68582         * modules/getcwd (Depends-on): Add extensions.
68583         * modules/openat (Depends-on): Likewise.
68584
68585 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68586
68587         * modules/byteswap: New file.
68588
68589 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68590
68591         * m4/byteswap.m4: New file.
68592
68593 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
68594
68595         * lib/byteswap_.h: New file.
68596
68597 2005-04-25  Karl Berry  <karl@gnu.org>
68598
68599         * m4/gettext.m4: Update from GNU gettext 0.14.4.
68600
68601 2005-04-25  Albert Chin  <china@thewrittenword.com>
68602
68603         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
68604         Toolkit C bug.
68605
68606 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
68607
68608         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
68609         (func_ln_if_changed): Remove forcibly for no error message
68610         in case file does not exist.
68611
68612 2005-04-19  Simon Josefsson  <jas@extundo.com>
68613
68614         * gnulib-tool (Options): Make --symlink mean --symbolic.
68615
68616 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
68617
68618         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
68619
68620 2005-04-16  Simon Josefsson  <jas@extundo.com>
68621
68622         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
68623
68624 2005-04-15  Simon Josefsson  <jas@extundo.com>
68625
68626         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
68627
68628 2005-04-15  Simon Josefsson  <jas@extundo.com>
68629
68630         * gnulib-tool: Rename --symlink to --symbolic.
68631
68632 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
68633
68634         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
68635         symbolic links to files instead of copying/moving.  Add --aux-dir,
68636         specifying directory relative --dir where auxiliary build tools
68637         are placed.
68638
68639 2005-04-14  Bruno Haible  <bruno@clisp.org>
68640
68641         * modules/allocsa (License): Change to LGPL.
68642         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
68643
68644 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68645
68646         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
68647         that "UTC +1 second" continues to work.  Problem reported
68648         by Dmitry V. Levin.
68649         (relunit_snumber): New rule.
68650         (relunit): Use it.
68651
68652 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
68653
68654         * lib/getdate.y (universal_time_zone_table): New constant.
68655         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
68656         universal_time_zone_table.
68657         (lookup_zone): Prefer universal_time_zone_table to
68658         local_time_zone_table, so that "GMT" time stamps are allowed in
68659         London during the summer.  Problem reported by Ian Abbott.
68660
68661 2005-04-12  Jim Meyering  <jim@meyering.net>
68662
68663         * lib/human.c (humblock): Set *options even when returning due to
68664         xstrtoumax conversion failure.  Thanks to a used-uninitialized
68665         warning from gcc-4.
68666
68667 2005-04-09  Jim Meyering  <jim@meyering.net>
68668
68669         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
68670         -Wuninitialized: initialize tm0.tm_year.
68671
68672 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
68673
68674         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
68675         count, since there's no maximum.  All uses changed.
68676         Add member dsts_seen.
68677         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
68678         not being INT_MAX.
68679         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
68680         Use pc_rels_seen to decide whther a date is absolute.
68681
68682         * lib/getdate.y (number): Don't overwrite year.
68683         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
68684         check.
68685
68686 2005-04-02  Simon Josefsson  <jas@extundo.com>
68687
68688         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
68689         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
68690
68691 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
68692
68693         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
68694         where no absolute path name can be longer than PATH_MAX.
68695
68696 2005-03-27  Jim Meyering  <jim@meyering.net>
68697
68698         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
68699
68700 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
68701
68702         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
68703         "one's complement" -> "ones' complement" in comment, as per Knuth.
68704         "value of type" -> "type or expression" in comment.
68705         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
68706
68707 2005-03-26  Jim Meyering  <jim@meyering.net>
68708
68709         Comment nits.
68710         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
68711         Correct typos: s/or/of/.
68712
68713 2005-03-26  Jim Meyering  <jim@meyering.net>
68714
68715         * modules/check-include-files: Move to ../ and rename to...
68716         * check-module: ...this.
68717
68718 2005-03-25  Jim Meyering  <jim@meyering.net>
68719
68720         * modules/xvasprintf (Files): Add xalloc.h.
68721
68722 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68723
68724         * modules/gettext (Files): config/config.rpath ->
68725         build-aux/config.rpath
68726         * modules/iconv (Files): Likewise.
68727         Problem reported by Oskar Liljeblad.
68728
68729 2005-03-23  Jim Meyering  <jim@meyering.net>
68730
68731         * modules/check-include-files: New script to check for
68732         missing dependencies, multiple includes, etc.
68733
68734         * modules/c-strtold (Depends-on): Add xalloc.
68735         * modules/c-strtod (Depends-on): Add xalloc.
68736         * modules/hash (Depends-on): Add xalloc.
68737         (Files): Remove lib/xalloc.h.
68738
68739         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
68740         * modules/userspec (Files): Add lib/inttostr.h.
68741
68742 2005-03-23  Jim Meyering  <jim@meyering.net>
68743
68744         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
68745
68746 2005-03-22  Jim Meyering  <jim@meyering.net>
68747
68748         * modules/stat-macros: New module.
68749         * modules/canonicalize, modules/euidaccess, modules/file-type,
68750         * modules/filemode, modules/lchown, modules/makepath,
68751         * modules/rmdir, modules/stat: Depend on new stat-macros module
68752         rather than listing lib/stat-macros.h manually.
68753         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
68754
68755 2005-03-22  Jim Meyering  <jim@meyering.net>
68756
68757         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
68758
68759 2005-03-22  Bruno Haible  <bruno@clisp.org>
68760
68761         * config/srclist.txt: Replace target directory 'config' with
68762         'build-aux'.
68763         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
68764         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
68765         ../build-aux/.
68766
68767 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
68768
68769         * modules/chdir-long (Depends-on): Add mempcpy.
68770
68771         * modules/acl, modules/backupfile, modules/c-strtod,
68772         modules/c-strtold, modules/canon-host, modules/canonicalize,
68773         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
68774         modules/exclude, modules/exitfail, modules/file-type,
68775         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
68776         modules/getdate, modules/getline, modules/getpagesize,
68777         modules/getpass, modules/getugroups, modules/group-member,
68778         modules/hard-locale, modules/hash, modules/human, modules/idcache,
68779         modules/inttostr, modules/long-options, modules/makepath,
68780         modules/md5, modules/memcasecmp, modules/memcoll,
68781         modules/modechange, modules/mountlist, modules/path-concat,
68782         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
68783         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
68784         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
68785         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
68786         modules/strftime, modules/strndup, modules/strverscmp,
68787         modules/timespec, modules/unlocked-io, modules/userspec,
68788         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
68789         modules/yesno:
68790         Remove lib_SOURCES line from Makefile.am section, as this is now
68791         done automatically by the corresponding Autoconf macro.
68792
68793 2005-03-21  Jim Meyering  <jim@meyering.net>
68794
68795         Changes imported from coreutils.
68796
68797         * lib/cycle-check.c: Don't include xalloc.h.
68798
68799         * lib/path-concat.c: Don't include assert.h.
68800         (path_concat): Remove assertion that would have triggered
68801         for ABASE starting with more than one slash.
68802         Reported by Andreas Schwab.
68803
68804         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
68805         properly when ABASE is an absolute file name.
68806         Correct the description of this function.
68807         Include <assert.h>.
68808         Add an assertion and a test driver.
68809         This fixes a bug introduced on 2004-07-02.
68810         Andreas Schwab reported the resulting failure of cp --parents:
68811         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
68812
68813 2005-03-21  Jim Meyering  <jim@meyering.net>
68814
68815         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
68816         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
68817
68818 2005-03-21  Jim Meyering  <jim@meyering.net>
68819         and  Paul Eggert  <eggert@cs.ucla.edu>
68820
68821         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
68822         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
68823         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
68824         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
68825         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
68826         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
68827         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
68828         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
68829         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
68830         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
68831         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
68832         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
68833         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
68834         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
68835         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
68836         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
68837         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
68838         for these modules.
68839
68840 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
68841
68842         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
68843         (which shouldn't happen), generate nothing instead of returning 0
68844         immediately, so that nstrftime (NULL, ...) doesn't return 0.
68845
68846 2005-03-16  Bruno Haible  <bruno@clisp.org>
68847
68848         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
68849         HAVE_LONGLONG_64BIT.
68850
68851 2005-03-16  Bruno Haible  <bruno@clisp.org>
68852
68853         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
68854         HAVE_LONGLONG_64BIT.
68855
68856 2005-03-16  Bruno Haible  <bruno@clisp.org>
68857
68858         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
68859         HAVE_LONGLONG_64BIT.
68860
68861 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
68862
68863         * lib/strftime.c (my_strftime): Prepend space to format so that we can
68864         reliably distinguish strftime failure from empty output on POSIX
68865         hosts.
68866
68867 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
68868
68869         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
68870         (iconv_string): Don't guess a size-zero buffer, as that might cause
68871         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
68872         result would be 'too large', where 'too large' is (heuristically)
68873         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
68874         overflow concerns.  This will prevent some unwanted malloc failures
68875         when the inputs are very large.
68876
68877 2005-03-15  Karl Berry  <karl@gnu.org>
68878
68879         * config/srclist.txt (config.rpath): from gettext.
68880         * config/config.rpath: update.
68881
68882 2005-03-15  Bruno Haible  <bruno@clisp.org>
68883
68884         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
68885         to 'negate'.
68886
68887         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
68888         variable.
68889
68890         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
68891         results.
68892
68893 2005-03-14  Simon Josefsson  <jas@extundo.com>
68894
68895         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
68896         <fx@gnu.org>.
68897
68898 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
68899
68900         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
68901         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
68902         intprops.h.
68903         * lib/strtol.c: Likewise.
68904
68905 2005-03-14  Jim Meyering  <jim@meyering.net>
68906
68907         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
68908         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
68909         to be nonzero so that we (and caller) can detect the difference
68910         between a valid zero-length expansion and an error return, even
68911         when the underlying strftime fails before writing anything into
68912         that location.
68913
68914 2005-03-14  Bruno Haible  <bruno@clisp.org>
68915
68916         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
68917         Update from GNU gettext 0.14.3.
68918
68919 2005-03-10  Jim Meyering  <jim@meyering.net>
68920
68921         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
68922
68923 2005-03-10  Jim Meyering  <jim@meyering.net>
68924
68925         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
68926         so that this module works on systems without fchdir.
68927
68928 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
68929
68930         Factor int-properties macros into a single file, except for
68931         glibc-related files.
68932         * lib/intprops.h: New file.
68933         * lib/getloadavg.c: Include it instead of limits.h.
68934         (INT_STRLEN_BOUND): Remove.
68935         * lib/human.c: Include intprops.h.
68936         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
68937         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
68938         302/1000.
68939         * lib/inttostr.h: Include intprops.h instead of limits.h.
68940         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
68941         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
68942         for consistency with intprops.h.
68943         (time_t_is_integer, twos_complement_arithmetic): Use them.
68944         * lib/sig2str.h: Include <signal.h>, intprops.h.
68945         (INT_STRLEN_BOUND): Remove.
68946         * lib/strftime.c (TYPE_SIGNED): Remove.
68947         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
68948         * lib/strtol.c: Adjust comments to match intprops.h.
68949         * lib/userspec.c: Include intprops.h.
68950         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
68951         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
68952         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
68953         instead of rolling our own expressions.
68954         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
68955
68956         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
68957         instead of int.
68958         (my_strftime): Do not mishandle years close to INT_MAX, by doing
68959         the right thing even if adding 1900 would overflow.  Similarly
68960         for tm_mon + 1 and tm_yday + 1.
68961         Make %Y always equivalent to %C%y, and similarly for %G and %g.
68962         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
68963         (DO_SIGNED_NUMBER): New macro.
68964         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
68965
68966 2005-03-07  Bruno Haible  <bruno@clisp.org>
68967
68968         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
68969
68970 2005-03-07  Bruno Haible  <bruno@clisp.org>
68971
68972         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
68973
68974 2005-03-04  Derek R. Price  <derek@ximbiot.com>
68975
68976         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
68977         (func_import): Only replace files via --import when they have actually
68978         changed.
68979
68980 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68981
68982         * m4/mmap-anon.m4: New file.
68983         * m4/pagealign_alloc.m4: New file.
68984
68985 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68986             Bruno Haible  <bruno@clisp.org>
68987
68988         * modules/pagealign_alloc: New file.
68989         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
68990
68991 2005-03-03  Derek R. Price  <derek@ximbiot.com>
68992             Bruno Haible  <bruno@clisp.org>
68993
68994         * lib/pagealign_alloc.h: New file.
68995         * lib/pagealign_alloc.c: New file.
68996
68997 2005-03-03  Bruno Haible  <bruno@clisp.org>
68998
68999         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
69000         Use an all-permissive copyright notice, recommended by RMS.
69001
69002 2005-03-02  Bruno Haible  <bruno@clisp.org>
69003
69004         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
69005         of AIX, the replacement has to be done only after <string.h> is
69006         included, therefore not in config.h. stpncpy.h does the replacement,
69007         and stpncpy.c uses it.
69008
69009 2005-03-02  Bruno Haible  <bruno@clisp.org>
69010
69011         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
69012         stpncpy.c uses it.
69013
69014 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69015
69016         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
69017         The workaround isn't strictly needed for POSIX conformance, and
69018         it's too much of a pain to configure and maintain.  We'll ask
69019         people to fix their kernels instead.
69020         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
69021         (NANOSLEEP_BUG_WORKAROUND): Remove.
69022         (xnanosleep): Remove the workaround.
69023
69024 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69025
69026         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
69027         Reported by Derek Price.
69028         (Include): Add "timespec.h".
69029
69030         * modules/xnanosleep (Depends-on): Remove gethrxtime.
69031
69032 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69033
69034         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
69035         to detect nanosleep bug.
69036
69037 2005-03-01  Bruno Haible  <bruno@clisp.org>
69038
69039         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
69040
69041 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
69042
69043         * modules/gethrxtime: New file.
69044         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
69045         (Depends-on): Add gethrxtime.
69046         (configure.ac): Add gl_XNANOSLEEP.
69047         (Makefile.am): Remove lib_SOURCES line.
69048
69049 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69050
69051         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
69052         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
69053
69054 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69055
69056         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
69057         * lib/timespec.h (gettime): Return void, since it always
69058         succeeds now.  All uses changed.
69059         * lib/gettime.c (gettime): Likewise.
69060         [HAVE_NANOTIME]: Prefer nanotime.
69061         Assume gettimeofday succeeds, as POSIX requires.
69062         Assime time () succeeds, since other code already does.
69063         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
69064         (timespec_subtract): Remove.
69065         (NANOSLEEP_BUG_WORKAROUND): New constant.
69066         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
69067         things considerably.  Use it only on GNU/Linux hosts, since the
69068         workaround shouldn't be needed elsewhere.
69069
69070 2005-02-24  Bruno Haible  <bruno@clisp.org>
69071
69072         * modules/gettext (Files): Add m4/glibc2.m4.
69073
69074 2005-02-24  Bruno Haible  <bruno@clisp.org>
69075
69076         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
69077         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
69078         * m4/progtest.m4:
69079         Update from GNU gettext 0.14.2.
69080         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
69081
69082 2005-02-24  Bruno Haible  <bruno@clisp.org>
69083
69084         * lib/localcharset.c: Update from GNU gettext 0.14.2.
69085         * lib/config.charset: Update from GNU gettext 0.14.2.
69086
69087 2005-02-24  Bruno Haible  <bruno@clisp.org>
69088
69089         * lib/gettext.h: Update from GNU gettext 0.14.2.
69090
69091 2005-02-23  Simon Josefsson  <jas@extundo.com>
69092
69093         * m4/iconvme.m4: New file.
69094
69095 2005-02-23  Jim Meyering  <jim@meyering.net>
69096
69097         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
69098         change.
69099         Thanks to Bruno Haible for catching it.
69100
69101 2005-02-22  Simon Josefsson  <jas@extundo.com>
69102
69103         * modules/iconvme: New file.
69104
69105         * MODULES.html.sh: Add iconvme.
69106
69107 2005-02-22  Simon Josefsson  <jas@extundo.com>
69108
69109         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
69110
69111 2005-02-22  Simon Josefsson  <jas@extundo.com>
69112
69113         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
69114
69115 2005-02-22  Jim Meyering  <jim@meyering.net>
69116
69117         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
69118         s/ifndef/ifdef/.
69119
69120 2005-02-20  Neil Conway  <neilc@samurai.com>
69121
69122         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
69123         returned by OSX/Darwin if the specified buffer is not large
69124         enough for the hostname.
69125
69126 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69127
69128         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
69129         pass it to _help, otherwise the latter coredumps trying to
69130         dereference state.root_argp.
69131
69132 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69133
69134         * modules/chdir-long (Depends-on): Add memrchr.
69135         * modules/memrchr (Files): Add lib/memrchr.h.
69136         (Include): "memrchr.h".
69137
69138 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69139
69140         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
69141
69142 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
69143
69144         * lib/memrchr.h: New file.
69145         * lib/chdir-long.c: Include it.
69146         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
69147         Don't bother including stddef.h.
69148
69149 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
69150
69151         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
69152         inclusion.
69153         Include <sys/types.h>, for dev_t.
69154         (ME_DUMMY, ME_REMOTE): Move from here....
69155         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
69156         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
69157         Dmitry V. Levin.
69158         Include mountlist.h first, to test the interface.
69159
69160 2005-01-29  Bruno Haible  <bruno@clisp.org>
69161
69162         * lib/progname.c (program_name): Initialize.
69163         Needed when linking statically on MacOS X.
69164
69165 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69166
69167         Sync from coreutils.
69168         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
69169         (Depends-on): Add c-strtod.
69170         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
69171
69172 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69173
69174         Sync from coreutils.
69175         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
69176
69177         Remove files that are specific to coreutils.
69178         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
69179
69180 2005-01-28  Bruno Haible  <bruno@clisp.org>
69181
69182         * modules/javacomp: New file.
69183         * MODULES.html.sh (Java): Add javacomp.
69184
69185 2005-01-28  Bruno Haible  <bruno@clisp.org>
69186
69187         * m4/javacomp.m4: New file, from GNU gettext.
69188
69189 2005-01-28  Bruno Haible  <bruno@clisp.org>
69190
69191         * lib/javacomp.sh.in: New file, from GNU gettext.
69192         * lib/javacomp.h: New file, from GNU gettext.
69193         * lib/javacomp.c: New file, from GNU gettext.
69194
69195 2005-01-26  Simon Josefsson  <jas@extundo.com>
69196
69197         * lib/gai_strerror.c: Use GPL in header.
69198
69199 2005-01-26  Bruno Haible  <bruno@clisp.org>
69200
69201         * modules/javaexec: New file.
69202         * MODULES.html.sh (Java): Add javaexec.
69203
69204 2005-01-26  Bruno Haible  <bruno@clisp.org>
69205
69206         * m4/javaexec.m4: New file, from GNU gettext.
69207
69208 2005-01-26  Bruno Haible  <bruno@clisp.org>
69209
69210         * lib/javaexec.sh.in: New file, from GNU gettext.
69211         * lib/javaexec.h: New file, from GNU gettext.
69212         * lib/javaexec.c: New file, from GNU gettext.
69213
69214 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69215
69216         * modules/lchown (Depends-on): Remove lchown.h
69217
69218 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69219
69220         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
69221         must be defined if the header file was not found, in order
69222         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
69223
69224 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69225
69226         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
69227         initializers for struct pentry_state.
69228         (__argp_error): Check return value of __asprintf
69229         (__argp_failure): Translate error message
69230
69231         * lib/argp-parse.c: Removed braces around the expansion of N_()
69232
69233 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69234
69235         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
69236         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
69237         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
69238         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
69239         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
69240         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
69241         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
69242         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
69243         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
69244         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
69245         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
69246         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
69247         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
69248         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
69249         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
69250         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
69251         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
69252         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
69253         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
69254         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
69255         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
69256         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
69257         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
69258         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
69259         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
69260         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
69261         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
69262         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
69263         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
69264         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
69265         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
69266         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
69267         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
69268         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
69269         xstrtol.m4, xstrtoumax.m4, yesno.m4:
69270         Use an all-permissive copyright notice, recommended by RMS.
69271
69272 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
69273
69274         * modules/chdir-long (Depends-on): Remove mempcpy.
69275
69276 2005-01-21  Jim Meyering  <jim@meyering.net>
69277
69278         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
69279         same value as for Solaris 9.
69280
69281         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
69282         component length.  This included changing the parameter to be
69283         of type `char *' rather than `char const *'.
69284         * lib/chdir-long.h (chdir_long): Update prototype.
69285
69286         * lib/openat.c (fdopendir, fstatat): New functions.
69287         * lib/openat.h: Include headers required for use of DIR and struct
69288         stat.
69289         [AT_SYMLINK_NOFOLLOW]: Define.
69290         (fdopendir, fstatat): Add prototypes.
69291
69292 2005-01-21  Bruno Haible  <bruno@clisp.org>
69293
69294         * modules/classpath: New file.
69295         * MODULES.html.sh (Java): Add classpath.
69296
69297 2005-01-21  Bruno Haible  <bruno@clisp.org>
69298
69299         * lib/classpath.h: New file, from GNU gettext.
69300         * lib/classpath.c: New file, from GNU gettext.
69301
69302 2005-01-20  Simon Josefsson  <jas@extundo.com>
69303
69304         * modules/version-etc-fsf: New file.
69305
69306 2005-01-20  Simon Josefsson  <jas@extundo.com>
69307
69308         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
69309         * lib/version-etc.c: Remove version_etc_copyright.
69310         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
69311         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
69312
69313 2005-01-20  Simon Josefsson  <jas@extundo.com>
69314
69315         * lib/base64.h (isbase64): Add.
69316
69317         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
69318         using a unsigned prototype, don't inline.
69319         (base64_decode): Use it.
69320
69321 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69322
69323         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
69324         it.
69325
69326 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69327
69328         * lib/save-cwd.c (save_cwd): Remove code to support the case
69329         where fchdir is missing or flaky.
69330
69331 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69332
69333         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
69334
69335 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69336
69337         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
69338         AC_LIBSOURCES now does this.
69339         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
69340         with new ullong_max module.
69341
69342 2005-01-19  Bruno Haible  <bruno@clisp.org>
69343
69344         * modules/sh-quote: New file.
69345         * MODULES.html.sh (Executing programs): Add sh-quote.
69346
69347 2005-01-19  Bruno Haible  <bruno@clisp.org>
69348
69349         * lib/sh-quote.h: New file, from GNU gettext.
69350         * lib/sh-quote.c: New file, from GNU gettext.
69351
69352 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69353
69354         Merge from coreutils.
69355         * m4/ullong_max.m4: New file.
69356         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
69357         (gl_MACROS): Assume localeconv exists.
69358
69359 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69360
69361         Merge changes from coreutils, as described below in several
69362         changelogs dated today.
69363
69364         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
69365         (O_DIRECTORY): Remove; not needed here, since "." must be
69366         a directory.  All uses removed.
69367         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
69368         universal on Suns, and we also need to test for IRIX.
69369         Revamp code to use 'if' rather than '#if'.
69370         Avoid unnecessary comparison of cwd->desc to 0.
69371
69372         * lib/utimens.c (futimens): Robustify the previous patch, by checking
69373         for known valid error numbers rather than observed invalid ones.
69374
69375 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
69376
69377         * modules/ullong_max: New file.
69378
69379         * modules/chdir-long, modules/openat: New files.
69380         * modules/save-cwd (Depends-on): Depend on chdir-long.
69381         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
69382
69383 2005-01-18  Jim Meyering  <jim@meyering.net>
69384
69385         Merge from coreutils.
69386         * m4/chdir-long.m4, m4/openat.m4: New files.
69387         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
69388         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
69389         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
69390         is sane and DOES follow symlinks.  Besides, testing 20 different
69391         systems found no broken chown implementations.
69392         Prompted by a change in rsync's copy of this macro.
69393         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
69394
69395         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
69396
69397         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
69398         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
69399         NULL-means-set-to-current-time semantics.
69400         Remove temporary file immediately, rather than waiting
69401         for configure's at-exit trap code to do it.
69402
69403 2005-01-18  Jim Meyering  <jim@meyering.net>
69404
69405         * lib/version-etc.c (version_etc_copyright): Update copyright date.
69406
69407         * lib/utimens.c (futimens): Account for the fact that futimes
69408         can also fail with errno == ENOSYS or errno == ENOENT.
69409         Patch from Dmitry V. Levin.
69410
69411         Change the name of the robust chdir function from chdir to chdir_long.
69412         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
69413         (restore_cwd): Use chdir_long, not chdir.
69414         * lib/chdir-long.c: Renamed from chdir.c.
69415         * lib/chdir-long.h: Renamed from chdir.h.
69416         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
69417         Hurd.
69418
69419 2005-01-18  Bruno Haible  <bruno@clisp.org>
69420
69421         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
69422         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
69423         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
69424         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
69425         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
69426         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
69427         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
69428         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
69429         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
69430         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
69431         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
69432         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
69433         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
69434         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
69435         Use an all-permissive copyright notice, recommended by RMS.
69436
69437 2005-01-18  Bob Proulx  <bob@proulx.com>
69438
69439         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
69440         simplify offsetof() macro construct to avoid compile failure with
69441         native HP-UX 11.0 ANSI C compiler.
69442
69443 2005-01-17  Bruno Haible  <bruno@clisp.org>
69444
69445         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
69446         redundant because stpncpy.m4 takes care of it.
69447
69448 2005-01-17  Bruno Haible  <bruno@clisp.org>
69449
69450         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
69451
69452 2005-01-17  Bruno Haible  <bruno@clisp.org>
69453
69454         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
69455         used.
69456
69457 2005-01-17  Bruno Haible  <bruno@clisp.org>
69458
69459         * lib/fwriteerror.h (fwriteerror): Change specification to include
69460         fclose.
69461         * lib/fwriteerror.c: Include <stdbool.h>.
69462         (fwriteerror): At the end, close the file stream. Record whether
69463         stdout was already closed.
69464
69465 2005-01-17  Bruno Haible  <bruno@clisp.org>
69466
69467         * lib/execute.c (environ): Declare if needed.
69468         * lib/pipe.c (environ): Likewise.
69469         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
69470
69471 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69472
69473         * modules/argp: Depend on vsnprintf
69474
69475 2005-01-10  Jim Meyering  <jim@meyering.net>
69476
69477         * modules/closeout (Depends-on): Add atexit.
69478
69479 2005-01-06  Bruno Haible  <bruno@clisp.org>
69480
69481         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
69482
69483 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69484
69485         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
69486         definitions to be after all include files, to avoid collisions.
69487         Problem reported by Bob Proulx.
69488
69489 2005-01-04  Jim Meyering  <jim@meyering.net>
69490
69491         Changes imported from coreutils.
69492         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
69493         as the mkstemp template, use a temporary directory and an
69494         8.3-friendly template to avoid trouble on systems like DJGPP.
69495         Reported by Juan M. Guerrero via Stepan Kasal.
69496         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
69497         close. Remove the temporary directory right away, rather than waiting
69498         for configure's at-exit trap code to do it.
69499         Suggestion from Stepan Kasal.
69500
69501 2005-01-01  Simon Josefsson  <jas@extundo.com>
69502
69503         * gnulib-tool: Print #include directives when --import'ing.
69504
69505 2004-12-28  Simon Josefsson  <jas@extundo.com>
69506
69507         * tests/test-base64.c: Include required header files.  Remove
69508         unused variables.
69509
69510 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69511
69512         * modules/error (Depends-on): Remove gettext.
69513
69514 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69515
69516         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
69517         not needed.  This removes a dependency on the gettext module.
69518         [defined _LIBC]: Do not include <libintl.h>; not needed.
69519
69520 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69521
69522         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
69523         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
69524
69525 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
69526
69527         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
69528         HAVE_DECL_STRTOLD.
69529
69530 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69531
69532         * modules/getdate (Depends-on): Remove alloca-opt.
69533
69534 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69535
69536         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
69537
69538 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69539
69540         * lib/argp-parse.c: Include <stddef.h>.
69541         (alignof, alignto): New macros.
69542         (parser_init): Don't assume that void * is aligned sufficiently
69543         for struct option.
69544
69545         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
69546         need to extend the stack.
69547         (YYINITDEPTH): New macro, so that the initial stack isn't overly
69548         large.
69549
69550 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69551
69552         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
69553
69554 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69555
69556         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
69557         (2004-10-24) change.  Apparently this was a false alarm.
69558
69559         * modules/getdate: Depend on alloca-opt, not alloca.
69560
69561 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
69562
69563         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
69564         Remove now-obsolete comment about AIX.
69565         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
69566         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
69567         (YYMAXDEPTH): New macro.
69568
69569 2004-12-18  Simon Josefsson  <jas@extundo.com>
69570
69571         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
69572
69573 2004-12-18  Bruno Haible  <bruno@clisp.org>
69574
69575         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
69576
69577 2004-12-18  Bruno Haible  <bruno@clisp.org>
69578
69579         * lib/fatal-signal.c (fatal_signals): Make non-const.
69580         (init_fatal_signals): New function.
69581         (uninstall_handlers, install_handlers): Ignore signals that were set to
69582         SIG_IGN.
69583         (at_fatal_signal): Call init_fatal_signals.
69584         (init_fatal_signal_set): Likewise. Ignore signals that were set to
69585         SIG_IGN.
69586         Reported by Paul Eggert.
69587
69588 2004-12-18  Bruno Haible  <bruno@clisp.org>
69589
69590         * doc/alloca.texi: New file.
69591         * doc/alloca-opt.texi: New file.
69592
69593 2004-12-17  Jim Meyering  <jim@meyering.net>
69594
69595         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
69596         Otherwise, install-sh could exit with improper exit status when
69597         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
69598
69599 2004-12-16  Simon Josefsson  <jas@extundo.com>
69600
69601         * tests/test-base64.c: Add license.
69602
69603 2004-12-15  Stepan Kasal  <address@hidden>
69604
69605         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
69606
69607 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
69608
69609         * modules/getcwd (Files): Add m4/d-ino.m4.
69610         Suggested by Mark D. Baushke.
69611
69612 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69613
69614         * lib/getdate.y (textint): New member "negative".
69615         (time_zone_hhmm): New function.
69616         Expect 14 shift-reduce conflicts, not 13.
69617         (o_colon_minutes): New rule.
69618         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
69619         (yylex): Set the "negative" member of signed numbers.
69620
69621 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
69622
69623         * doc/getdate.texi (Time of day items, Time zone items):
69624         Describe new formats +00:00, UTC+00:00.
69625
69626 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69627
69628         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
69629         spurious "-l"s.  Problem reported by Stepan Kasal.
69630
69631 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
69632
69633         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
69634         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
69635
69636 2004-12-04  Simon Josefsson  <jas@extundo.com>
69637
69638         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
69639         Vandoorselaere <yoann@prelude-ids.org>.
69640
69641 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69642
69643         Changes imported from coreutils.
69644         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
69645         exist.
69646         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
69647
69648 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69649
69650         Changes imported from coreutils.
69651         * lib/hard-locale.c: Assume <locale.h> exists.
69652         Include "strdup.h".
69653         (GLIBC_VERSION): New macro.
69654         (hard_locale): Assume setlocale exists.
69655         Rewrite to avoid #ifdef.
69656         Use strdup rather than malloc + strcpy.
69657         * lib/human.c: Assume <locale.h> exists.
69658         (human_readable): Assume localeconv exists.
69659
69660 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
69661
69662         * modules/hard-locale (Depends-on): Add strdup.
69663
69664 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69665
69666         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
69667         convert T2, not T.  (Imported from libc.)
69668
69669 2004-11-30  Simon Josefsson  <jas@extundo.com>
69670
69671         * modules/restrict (License): Change to LGPL.
69672
69673 2004-11-30  Simon Josefsson  <jas@extundo.com>
69674
69675         * m4/restrict.m4: Add copyright and copying conditions.
69676
69677 2004-11-30  Simon Josefsson  <jas@extundo.com>
69678
69679         * m4/base64.m4: New file.
69680
69681 2004-11-30  Simon Josefsson  <jas@extundo.com>
69682
69683         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
69684         base64.
69685
69686         * tests/test-base64.c: New file.
69687
69688         * modules/base64: New file.
69689
69690 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69691
69692         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
69693         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
69694
69695         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
69696
69697 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
69698
69699         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
69700         (__getcwd.c): Don't restore errno; glibc doesn't.
69701         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
69702         first, falling back to our code only if its results look suspicious.
69703         Ensure that the resulting buffer is only as large as necessary.
69704
69705         * lib/readutmp.c: Include readutmp.h first.
69706         Include <errno.h>, since readutmp.h no longer does that.
69707         * lib/readutmp.h: Don't include <errno.h>,
69708         <sys/param.h>, <time.h>; not needed to establish interface.
69709         (errno): Remove decl.
69710         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
69711         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
69712         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
69713
69714 2004-11-28  Simon Josefsson  <jas@extundo.com>
69715
69716         * lib/base64.h, base64.c: New file.
69717
69718 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
69719
69720         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
69721
69722 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
69723
69724         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
69725         (Depends-on): Remove pathmax, same.  Add mempcpy.
69726         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
69727         (Makefile.am): Append getcwd.h to lib_SOURCES.
69728         (Include): Add getcwd.h.
69729         (Maintainer): Change from Jim Meyering to "all, glibc",
69730         since getdate now uses intended-for-glibc code.
69731         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
69732         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
69733
69734 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69735
69736         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
69737         HP's ANSI C compiler.
69738         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
69739         Declaring int functions causes warnings on some modern systems and
69740         shouldn't be needed to compile on ancient ones.
69741         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
69742         defined.
69743
69744         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
69745         with the following changes.
69746         (__set_errno): Parenthesize properly.
69747         Include <stdbool.h>.
69748         (MIN, MAX, MATCHING_INO): New macros.
69749         (__getcwd): Define with prototype, not K&R form.
69750         Use heuristics to allocate default buffer on stack if possible.
69751         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
69752         behavior, and to avoid the PATH_MAX limit when computing
69753         ../../../../...
69754         Use MATCHING_INO to compare inode number to file.
69755         Check for arithmetic overflow in size calculations.
69756         Fix bug in reallocation of dot array that caused getcwd to fail
69757         on directories nested deeper than 75.
69758         Be more careful about saving errno on error.
69759         Do not use realloc; use only free+malloc, as this is a bit
69760         more flexible and avoids a needless copy operation.
69761         Do not inspect st_dev and st_ino for symbolic links; POSIX
69762         doesn't specify the latter.
69763         Check for closedir errors.
69764         Avoid needless casts.
69765         Use "#ifdef weak_alias" around weak_alias, to be like other
69766         glibc code.
69767         The following changes to getcwd.c have effect only when used in
69768         gnulib; they have no effect inside glibc proper.
69769         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
69770         as alloca isn't used.
69771         (alloca, __alloca): Likewise.
69772         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
69773         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
69774         unconditionally, as gnulib assumes C89 or better.
69775         Do not include <sys/param.h>.
69776         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
69777         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
69778         better.
69779         (NULL) [!defined NULL]: Remove; we assume C89 or better.
69780         Include <dirent.h> in a way that is compatible with modern Autoconf.
69781         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
69782         New macros, if not already defined.
69783         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
69784         Use "_LIBC", not "defined _LIBC", for consistency.
69785         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
69786         a mempcpy module.
69787         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
69788         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
69789         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
69790         credit only to Jim Meyering and adjust the copyright dates.
69791         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
69792         <stdlib.h>, <unistd.h>, "pathmax.h".
69793         Instead, include "xgetcwd.h" (first) and "getcwd.h".
69794         (INITIAL_BUFFER_SIZE): Remove.
69795         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
69796
69797 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69798
69799         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
69800         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
69801         Use the _ONCE methods, for efficiency.
69802         Check for fcntl.h.  In test program, include <errno.h>
69803         and <fcntl.h> if available.  Remove old K&R cruft from
69804         test program.  Check for common errors in GNU/Linux,
69805         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
69806         don't do AC_LIBOBJ, as that's getcwd.m4's job.
69807         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
69808         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
69809         name accordingly.
69810         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
69811         accommodate new getcwd.c.
69812         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
69813         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
69814         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
69815         that's all we need now.
69816
69817 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69818
69819         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
69820         argp-parse.c depends on getopt internals, that means we should
69821         always use our getopt, to be on the safe side.
69822         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
69823         order not to spoil the result of an eventual previous invocation
69824         of gl_GETOPT_SUBSTITUTE.
69825
69826 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
69827
69828         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
69829         redefinition warnings. To avoid them, include the defines
69830         in `#if !defined __need_getopt ... #endif'. The only place
69831         where __getopt_argv_const is used is in definitions
69832         of getopt_long and getopt_long_only below, which are as well
69833         protected by `#ifndef __need_getopt'.
69834         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
69835         __need_getopt after including <stdio.h> and <unistd.h> These
69836         headers might have defined it.
69837
69838 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
69839
69840         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
69841
69842 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
69843
69844         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
69845         (futimens): New function, which uses futimes if available.
69846         (futimens, utimens): Support timespec==NULL, with same semantics
69847         as utime and utimens.
69848         * lib/utimens.h (futimens): New decl.
69849
69850 2004-11-23  Jim Meyering  <jim@meyering.net>
69851
69852         * lib/getopt_.h: Remove trailing blanks.
69853
69854 2004-11-23  Jim Meyering  <jim@meyering.net>
69855
69856         * lib/__fpending.c: Add comment.
69857
69858 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
69859
69860         * modules/canonicalize (Depends-on): Add xreadlink.
69861         Problem reported by James Youngman.
69862
69863 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
69864
69865         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
69866         New macros.
69867         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
69868         optopt): Use them instead of invoking ## directly; otherwise, the
69869         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
69870
69871 2004-11-19  Bruno Haible  <bruno@clisp.org>
69872
69873         * lib/strtok_r.c: Move comments from here...
69874         * lib/strtok_r.h: ... to here.
69875
69876 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69877
69878         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
69879         implementations that mishandle size_t overflow.
69880
69881 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
69882
69883         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
69884         might fail.  Problem reported by Yoann Vandoorselaere.
69885         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
69886         implementations that mishandle size_t overflow.
69887
69888 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69889
69890         * modules/canon-host (Depends-on): Add strdup.
69891
69892 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69893
69894         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
69895
69896 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69897
69898         * lib/canon-host.c: Include "strdup.h".
69899         (canon_host): Use getaddrinfo if available, so that IPv6 works.
69900         Use strdup instead of malloc/strcpy to duplicate strings.
69901
69902         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
69903         (human_space_before_unit): New constant.
69904         * lib/human.c (human_readable): Support it.
69905
69906         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
69907         (xgetcwd): Set errno correctly when failing.
69908         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
69909         the failure is actually due to a PATH_MAX problem.
69910
69911         Further getopt changes to make it more likely that glibc will
69912         buy the changes back.
69913         * lib/getopt.c (POSIXLY_CORRECT): New constant.
69914         (getopt): Use it, so to preserve glibc semantic
69915         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
69916         when compiling for libc.
69917         * lib/getopt_.h (__getopt_argv_const): Bring it back.
69918         (getopt_long, getopt_long_only): Use it.
69919
69920         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69921         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
69922         (getopt): Argv is now char * const *, as per standard.
69923         (_getopt_internal_r, _getopt_internal): Argv is now char **,
69924         not char *__getopt_argv_const *.
69925         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69926         _getopt_long_only_r): Likewise.
69927         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
69928         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
69929         _getopt_long_r, _getopt_long_only_r): Likewise.
69930         * lib/getopt_.h (__getopt_argv_const): Remove.
69931         (getopt): Argv is now char * const *, as per standard.
69932
69933         * lib/getdate.y (tORDINAL): New token.
69934         (day, relunit): Allow it for relative times.
69935         (relative_time_table): Use tORDINAL for ordinals.
69936
69937 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
69938
69939         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
69940         Document that "second" isn't allowed as an ordinal number.
69941
69942 2004-11-16  Jim Meyering  <jim@meyering.net>
69943
69944         * modules/closeout (Depends-on): Add fpending.
69945
69946 2004-11-15  Jim Meyering  <jim@meyering.net>
69947
69948         * lib/closeout.c: Include "__fpending.h" once again.
69949         Include <stdbool.h>.
69950         (close_stdout): Don't fail just because stdout was closed initially,
69951         since some programs don't write to stdout in the normal course of
69952         operation (other than --version and --help), and we don't want this
69953         function to make e.g. `touch file >&-' fail.
69954         But do fail if it was closed and someone has tried to write to it.
69955         E.g., `printf foo >&-' must fail.
69956
69957 2004-11-13  Jim Meyering  <jim@meyering.net>
69958
69959         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
69960
69961 2004-11-12  Simon Josefsson  <jas@extundo.com>
69962
69963         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
69964         small doc fix is still pending.
69965
69966 2004-11-11  Simon Josefsson  <jas@extundo.com>
69967
69968         * modules/strtok_r: New file.
69969
69970         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
69971         strtok_r.
69972
69973 2004-11-11  Simon Josefsson  <jas@extundo.com>
69974
69975         * m4/strtok_r.m4: New file.
69976
69977         * m4/getopt.m4: Replace opterr.
69978
69979 2004-11-11  Simon Josefsson  <jas@extundo.com>
69980
69981         * lib/strtok_r.h, strtok_r.c: New file.
69982
69983 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69984
69985         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
69986         of replacing opterr, getopt, etc.  This should handle the
69987         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
69988
69989 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
69990
69991         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
69992         we can stop lying to compilers about the constness of argv when we
69993         are compiled outside glibc.
69994         (getopt, getopt_long, getopt_long_only): Use it.
69995         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
69996         _getopt_internal, getopt): Likewise.
69997         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
69998         _getopt_long_only_r): Likewise.
69999         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
70000         _getopt_long_r, _getopt_long_only_r): Likewise.
70001
70002         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
70003         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
70004         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
70005         the other external symbols.
70006         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
70007         declaration, since the above renaming now works around collisions.
70008
70009 2004-11-11  Jim Meyering  <jim@meyering.net>
70010
70011         * lib/linebreak.c: Remove trailing blanks.
70012         * lib/alloca_.h: Likewise.
70013         * lib/acosl.c: Likewise.
70014         * lib/euidaccess.c: Likewise.
70015         * lib/allocsa.h: Likewise.
70016
70017 2004-11-10  Simon Josefsson  <jas@extundo.com>
70018
70019         * m4/getaddrinfo.m4: New file.
70020
70021 2004-11-10  Simon Josefsson  <jas@extundo.com>
70022
70023         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
70024
70025 2004-11-10  Simon Josefsson  <jas@extundo.com>
70026
70027         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70028         getaddrinfo.
70029
70030         * modules/getaddrinfo: New file.
70031
70032 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70033
70034         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
70035
70036 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70037
70038         * lib/mktime.c (SHR): New macro, which is a portable
70039         substitute for >> that should work even on Crays.
70040         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
70041         Problem reported by Mark D. Baushke in
70042         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
70043         * lib/getdate.y (SHR): Likewise.
70044         (tm_diff): Use it.
70045         * lib/strftime.c (SHR): Likewise.
70046         (tm_diff): Use it.
70047         * lib/quotearg.c (struct quoting_options): Use unsigned int for
70048         quote_these_too, so that right shifts are well defined.  All uses
70049         changed.
70050
70051 2004-11-10  Jim Meyering  <jim@meyering.net>
70052
70053         Ensure that no close failure goes unreported.
70054         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
70055         return early when it seems there's nothing to flush.
70056         Don't include __fpending.h.
70057
70058 2004-11-10  Jim Meyering  <jim@meyering.net>
70059
70060         * modules/closeout (Depends-on): Remove fpending.
70061
70062 2004-11-10  Jim Meyering  <jim@meyering.net>
70063
70064         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
70065
70066 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70067
70068         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
70069         gl_FUNC_STRFTIME.
70070         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
70071         and AC_REQUIRE when possible, to avoid duplicate checks.
70072         Check for <wchar.h>.
70073
70074 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70075
70076         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
70077
70078 2004-11-09  Bruno Haible  <bruno@clisp.org>
70079
70080         * m4/sockpfaf.m4: New file.
70081
70082 2004-11-05  Bruno Haible  <bruno@clisp.org>
70083
70084         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
70085         Reported by Mark D. Baushke <mdb@cvshome.org>.
70086
70087 2004-11-04  Bruno Haible  <bruno@clisp.org>
70088
70089         2004-09-11  Bruno Haible  <bruno@clisp.org>
70090                 * allocsa.valgrind: New file.
70091         2004-02-06  Bruno Haible  <bruno@clisp.org>
70092                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
70093                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
70094                 Reported by Christopher Seip <chris.seip@hp.com>.
70095
70096 2004-11-04  Bruno Haible  <bruno@clisp.org>
70097
70098         * modules/allocsa (Files): Add lib/allocsa.valgrind.
70099         (Makefile.am): Distribute it.
70100
70101 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
70102
70103         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
70104         with errno == ERANGE if the buffer is too small.
70105         Problem reported by Mark D. Baushke.
70106
70107 2004-11-03  Albert Chin  <china@thewrittenword.com>
70108             Paul Eggert  <eggert@cs.ucla.edu>
70109
70110         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
70111         equivalent, substitute $ac_type for equivalent type rather than
70112         blindly using uint32_t *always* which won't work if uint32_t is not
70113         available.  Define _UINT32_T to work around typedef of uint32_t if
70114         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
70115         2.5.1.
70116
70117 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70118
70119         * m4/jm-macros.m4: Sync from coreutils.
70120         (gl_MACROS): Check for mbrlen, for pathchk.
70121         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
70122
70123 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70124
70125         * lib/xreadlink.c (MAXSIZE): New macro.
70126         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
70127         size does not exceed MAXSIZE.  Avoid cast.
70128         As suggested by Mark D. Baushke in
70129         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
70130         if readlink fails with buffer size just under MAXSIZE, try again
70131         with MAXSIZE.
70132
70133 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
70134
70135         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
70136
70137 2004-11-02  Derek R. Price  <derek@ximbiot.com>
70138         and  Paul Eggert  <eggert@cs.ucla.edu>
70139
70140         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
70141         (get_date): Overparenthesize to avoid GCC warning.
70142
70143 2004-11-02  Bruno Haible  <bruno@clisp.org>
70144
70145         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
70146         returns void.
70147
70148 2004-11-02  Bruno Haible  <bruno@clisp.org>
70149
70150         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
70151         function returns void.
70152
70153 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
70154
70155         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
70156         fflush_unlocked, flockfile, funlockfile, funlockfile,
70157         fputs_unlocked, putc_unlocked.
70158
70159 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
70160
70161         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70162         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
70163         already declared.
70164
70165 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70166
70167         * modules/getdate (Files): Add doc/getdate.texi.
70168         (Depends-on): Add setenv, xalloc.
70169
70170 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70171
70172         * lib/getdate.y: Add support for TZ="foo" within a date string.
70173         Fix some bugs near time_t boundaries.  Reject dates with
70174         out-of-range components, e.g., "Sept 31".
70175         Include <stdlib.h>, "setenv.h", "xalloc.h".
70176         (ISDIGIT_LOCALE): Remove; unused.
70177         Note that the TZ and time functions used here are not reentrant.
70178         (mktime_ok, get_tz): New functions.
70179         (TZBUFSIZE): New constant.
70180         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
70181         This requires that we sometimes generate our own TZ="XXX..." setting.
70182
70183 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70184
70185         * doc/getdate.texi: New file, from coreutils with modifications for
70186         the new TZ parsing.
70187
70188 2004-10-27  Derek R. Price  <derek@ximbiot.com>
70189
70190         * lib/mktime.c (not_equal_tm): Remove redundant check.
70191
70192 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70193
70194         * modules/regex (lib_SOURCES): Add regex.c.
70195         Reported by James Youngman in
70196         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
70197
70198 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70199
70200         * lib/getdate.y: Use Bison 1.875 features, and some minor
70201         code cleanups.  This change does not affect semantics.
70202         Don't include <stdlib.h>; no longer needed.
70203         Don't include unlocked-io.h; only the "#if TEST" code uses
70204         stdio, and performance isn't crucial there.
70205         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
70206         Bison 1.875 features as described below.
70207         All uses of "PC." replaced by "pc->".
70208         (YYSTYPE): Add a forward declaration.
70209         (yylex, yyerror): Use full prototypes in forward decls.
70210         Use "%pure-parser" rather than obsolescent "%pure_parser".
70211         Use %parse-param and %lex-param instead of obsolescent
70212         YYPARSE_PARAM and YYLEX_PARAM.
70213         (meridian_table, month_and_day_table, time_units_table,
70214         relative_time_table, time_zone_table, military_table,
70215         lookup_zone, lookup_word, get_date):
70216         Use NULL instead of 0 where appropriate.
70217         (to_hour): Avoid abort (), to avoid a dependency on
70218         stdlib.h.
70219         (yyerror, yylex): Now accepts parser_control * arg.
70220         (main) [TEST]: Use '\0' rather than 0 for char.
70221
70222 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70223
70224         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
70225
70226 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
70227
70228         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
70229         It's now the caller's responsibility to handle the case where
70230         !HAVE_GETPAGESIZE && !defined getpagesize.
70231
70232         * lib/mktime.c (leapyear): Arg is long int, not int.
70233
70234 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
70235
70236         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
70237
70238 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
70239
70240         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
70241         missing.  Problem reported by James Youngman.
70242
70243 2004-10-16  Simon Josefsson  <jas@extundo.com>
70244
70245         * gnulib-tool: Fix comments.  Fix parse problem.
70246         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
70247
70248 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
70249
70250         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
70251         implementation of getopt_long.  Problem reported by Alexander Taler in:
70252         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
70253
70254 2004-10-15  Bruno Haible  <bruno@clisp.org>
70255
70256         * gnulib-tool: Untabify. Initialize supplied_libname.
70257         (func_usage): More homogenous output.
70258         (func_modules_transitive_closure, func_modules_to_filelist,
70259         func_emit_lib_Makefile_am): New functions.
70260         (func_import): New function, extracted from big case statement. Use
70261         func_get_license, func_modules_transitive_closure,
70262         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
70263         opt_lgpl. Don't use test -a, as it's not portable.
70264         (func_create_testdir): Use func_modules_transitive_closure,
70265         func_modules_to_filelist, func_emit_lib_Makefile_am.
70266
70267 2004-10-15  Bruno Haible  <bruno@clisp.org>
70268
70269         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
70270
70271 2004-10-15  Bruno Haible  <bruno@clisp.org>
70272
70273         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
70274         the portions belonging to each module.
70275         Suggested by Derek Robert Price <derek@ximbiot.com>.
70276
70277 2004-10-12  Simon Josefsson  <jas@extundo.com>
70278
70279         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
70280         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
70281         to real functions.
70282
70283 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70284
70285         * modules/vsnprintf: New file.
70286
70287 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70288
70289         * m4/vsnprintf.m4: New file.
70290
70291 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70292
70293         * lib/vsnprintf.h: New file.
70294         * lib/vsnprintf.c: New file.
70295
70296 2004-10-11  Bruno Haible  <bruno@clisp.org>
70297
70298         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
70299         vsnprintf.
70300
70301 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70302
70303         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
70304
70305 2004-10-07  Bruno Haible  <bruno@clisp.org>
70306
70307         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
70308         fits into the provided buffer.
70309
70310 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70311
70312         * lib/diacrit.c, diacrit.h: Add GPL notice.
70313
70314         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
70315         notice.
70316         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
70317         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
70318         This avoids a potential constant-folding bug.
70319
70320 2004-10-05  Bruno Haible  <bruno@clisp.org>
70321
70322         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
70323         for the declaration of strsep.
70324
70325 2004-10-05  Bruno Haible  <bruno@clisp.org>
70326
70327         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
70328
70329 2004-10-04  Simon Josefsson  <jas@extundo.com>
70330
70331         * modules/memmem: New file.
70332         * tests/test-memmem.c: New file.
70333         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
70334
70335 2004-10-04  Simon Josefsson  <jas@extundo.com>
70336
70337         * m4/memmem.m4: New file.
70338
70339 2004-10-04  Simon Josefsson  <jas@extundo.com>
70340
70341         * lib/memmem.h: New file.
70342         * lib/memmem.c: New file, taken from glibc.
70343
70344 2004-10-04  Simon Josefsson  <jas@extundo.com>
70345
70346         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
70347         '#ifdef USE_UNLOCKED_IO'.
70348
70349 2004-10-04  Simon Josefsson  <jas@extundo.com>
70350
70351         * config/srclist.txt: Add memmem from glibc.
70352
70353 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70354
70355         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
70356
70357         * modules/argmatch, modules/argp, modules/closeout, modules/error,
70358         modules/exclude, modules/getdate, modules/getline,
70359         modules/getndelim2, modules/getpass, modules/getpass-gnu,
70360         modules/getusershell, modules/linebuffer, modules/md5,
70361         modules/mountlist, modules/posixtm, modules/readtokens,
70362         modules/readutmp, modules/regex, modules/sha1,
70363         modules/version-etc, modules/yesno:
70364         Remove dependency on unlocked-io.
70365
70366 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70367
70368         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
70369
70370         * m4/unlocked-io.m4: Add copyright notice.
70371         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
70372
70373 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70374
70375         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
70376         * lib/xmalloc.c (xmemdup): Likewise.
70377         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
70378         XFREE): Remove these long-obsolescent macros.
70379         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
70380         * lib/xstrdup.c: Remove.
70381
70382         * lib/regex.c (re_comp): Cast gettext return value to char *,
70383         Problem reported by Martin Neitzel via Mark D. Baushke.
70384
70385 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
70386
70387         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
70388         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
70389         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
70390         regex.c, sha1.c, version-etc.c, yesno.c:
70391         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
70392         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
70393         the includer's responsibility.
70394
70395         Sync from coreutils.
70396
70397         * lib/modechange.c (mode_compile): Don't decrement a pointer that
70398         points to the start of a string, as the C Standard says the
70399         resulting behavior is undefined.
70400
70401         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
70402         simple -> simple_backups, numbered_existing ->
70403         numbered_existing_backups, numbered -> numbered_backups
70404         to avoid shadowing problems.  All uses changed.
70405         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
70406         * lib/backupfile.c (check_extension, numbered_backup):
70407         Rename locals to avoid shadowing 'basename'.
70408         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
70409         once.
70410
70411         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
70412         * lib/.cvsignore: Add getopt.h.
70413
70414 2004-10-04  Bruno Haible  <bruno@clisp.org>
70415
70416         * modules/README: New file.
70417         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
70418         not a module.
70419
70420 2004-10-02  Jim Meyering  <jim@meyering.net>
70421
70422         * lib/dirfd.h, getpagesize.h: Add copyright notice.
70423
70424 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70425
70426         * modules/strsep: New file.
70427
70428 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70429
70430         * m4/strsep.m4: New file.
70431
70432 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
70433
70434         * lib/strsep.h: New file.
70435         * lib/strsep.c: New file.
70436
70437 2004-10-01  Simon Josefsson  <jas@extundo.com>
70438
70439         * lib/snprintf.c (snprintf): Handle size==0.
70440
70441 2004-10-01  Simon Josefsson  <jas@extundo.com>
70442             Bruno Haible  <bruno@clisp.org>
70443
70444         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
70445         (snprintf): Declare 'args'.
70446
70447 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
70448
70449         * lib/snprintf.c: Remove comments as to why each header is needed.
70450
70451 2004-10-01  Bruno Haible  <bruno@clisp.org>
70452
70453         * MODULES.html.sh: Add strsep.
70454
70455 2004-09-30  Simon Josefsson  <jas@extundo.com>
70456
70457         * modules/snprintf: New file.
70458
70459 2004-09-30  Simon Josefsson  <jas@extundo.com>
70460
70461         * m4/snprintf.m4: New file.
70462
70463 2004-09-30  Simon Josefsson  <jas@extundo.com>
70464
70465         * lib/snprintf.h, lib/snprintf.c: New files.
70466
70467 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
70468
70469         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
70470         (hol_entry_help): Never translate an empty string.
70471         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
70472         * lib/argp.h (OPTION_NO_TRANS): New option.
70473
70474 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70475
70476         * modules/argp (Maintainer): Replace Simon Josefsson
70477         by Sergey Poznyakoff.
70478
70479 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70480
70481         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
70482         changes merged back into glibc.
70483
70484 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
70485
70486         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
70487
70488 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
70489
70490         * lib/xvasprintf.c: Include xalloc.h.
70491         (xvasprintf): Use xalloc_die, not xmalloc_die.
70492
70493 2004-09-29  Bruno Haible  <bruno@clisp.org>
70494
70495         * modules/alloca-opt: New file, derived from modules/alloca.
70496         * modules/allocsa: Depend on alloca-opt instead of alloca.
70497         * modules/setenv: Likewise.
70498         * modules/vasnprintf: Likewise.
70499         * MODULES.html.sh: Add alloca-opt.
70500
70501 2004-09-28  Simon Josefsson  <jas@extundo.com>
70502
70503         * gnulib-tool: New parameter --lgpl, to asseert that modules are
70504         LGPL, and to replace license template from GPL to LGPL.
70505
70506 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70507
70508         * modules/dummy: Change license to LGPL.
70509
70510 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
70511
70512         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
70513
70514 2004-09-24  Simon Josefsson  <jas@extundo.com>
70515
70516         * modules/minmax (License): Change from GPL to LGPL.
70517
70518 2004-09-23  Simon Josefsson  <jas@extundo.com>
70519
70520         * gnulib-tool (--import): Typo.
70521
70522 2004-09-23  Simon Josefsson  <jas@extundo.com>
70523
70524         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
70525
70526 2004-09-22  Bruno Haible  <bruno@clisp.org>
70527
70528         * modules/*: Add 'License' field.
70529         * gnulib-tool: Accept --extract-license option.
70530         (func_get_license): New function.
70531
70532 2004-09-21  Bruno Haible  <bruno@clisp.org>
70533
70534         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
70535         Reported by Simon Josefsson.
70536
70537 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70538
70539         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
70540         gl_AC_TYPE_LONG_LONG.
70541
70542 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70543
70544         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
70545
70546 2004-09-18  Simon Josefsson  <jas@extundo.com>
70547         and  Paul Eggert  <eggert@cs.ucla.edu>
70548
70549         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
70550         calls with autoreconf.  Define GL_LIB.
70551
70552 2004-09-14  Karl Berry  <karl@gnu.org>
70553
70554         * config/srclist.txt: unsync setenv.c, sigh.
70555
70556 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70557
70558         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
70559         Problem reported by Bruno Haible in:
70560         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
70561
70562 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70563
70564         * config/srclist.txt: Comment out argp-pvh.c.
70565
70566 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
70567
70568         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
70569         in case some system header has #define'd it.  Problem reported by
70570         Soeren D. Schulze in
70571         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
70572
70573 2004-09-09  Karl Berry  <karl@gnu.org>
70574
70575         * regex.[ch]: delete from the root.  These were supposed to be
70576                 synced with emacs cvs, but this has not happened for about
70577                 a year, and anyway nothing else uses emacs regex.[ch].
70578                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
70579                 lib/regex[.ch] is untouched.
70580
70581 2004-09-09  Bruno Haible  <bruno@clisp.org>
70582
70583         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
70584
70585 2004-09-09  Bruno Haible  <bruno@clisp.org>
70586
70587         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
70588         modifications.
70589         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
70590
70591 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70592
70593         * modules/xvasprintf: New file.
70594         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
70595
70596 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
70597
70598         * lib/xvasprintf.h: New file.
70599         * lib/xvasprintf.c: New file.
70600         * lib/xasprintf.c: New file.
70601
70602 2004-09-08  Bruno Haible  <bruno@clisp.org>
70603
70604         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
70605
70606 2004-09-08  Bruno Haible  <bruno@clisp.org>
70607
70608         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
70609         length is > INT_MAX.
70610         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
70611         more.
70612
70613 2004-09-08  Bruno Haible  <bruno@clisp.org>
70614
70615         * lib/stdint_.h: New file, taken from GNU clisp.
70616
70617 2004-09-08  Bruno Haible  <bruno@clisp.org>
70618             Oskar Liljeblad  <oskar@osk.mine.nu>
70619
70620         * modules/stdint: New file.
70621         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
70622
70623 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70624
70625         Import from coreutils.
70626         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
70627         strings on unbounded length.  alloca's performance benefits aren't
70628         that important here.
70629         (V_STRDUP): Remove.
70630         (parse_with_separator): New function, with most of the internals
70631         of the old parse_user_spec.  Allow user to omit both user and group,
70632         for compatibility with FreeBSD.
70633         Clone only the user name, not the entire spec.
70634         Do not set *uid, *gid unless entirely successful.
70635         Avoid memory leak in some failing cases.
70636         Fix regression for USER.GROUP reported by Dmitry V. Levin in
70637         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
70638         (parse_user_spec): Rewrite to use parse_with_separator.
70639
70640 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70641
70642         * modules/userspec: Don't depend on alloca.
70643
70644 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70645
70646         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
70647
70648 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70649
70650         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
70651         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
70652         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
70653
70654 2004-08-16  Simon Josefsson  <jas@extundo.com>
70655
70656         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
70657         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
70658         Add --dry-run for --import.
70659         Let user provided command line parameters override configure.ac
70660         settings.
70661
70662 2004-08-12  Simon Josefsson  <jas@extundo.com>
70663
70664         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
70665         as discussed with Paul Eggert in threads rooted at
70666         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
70667         and
70668         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
70669         Before, the test was empty, and relied on ELIDE_CODE in source
70670         code.)
70671         (gl_PREREQ_GETOPT): New macro.
70672         (gl_GETOPT): Use them.
70673
70674 2004-08-12  Simon Josefsson  <jas@extundo.com>
70675
70676         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
70677         * lib/getopt_.h: Renamed from getopt.h.
70678
70679 2004-08-12  Simon Josefsson  <jas@extundo.com>
70680
70681         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
70682         Change default library name from libfoo to libgnu.
70683         Now, if you have a configure.ac that says:
70684                 gl_SOURCE_BASE(gl)
70685                 gl_M4_BASE(gl/m4)
70686                 gl_MODULES(error getopt etcetera)
70687                 gl_INIT
70688         you can import all you need by running:
70689                 ../gnulib/gnulib-tool --import
70690
70691         * modules/getopt (Files): Rename getopt.h to getopt_.h.
70692         (Makefile.am): Rewrite, use logic from argz.
70693         (Include): Use <getopt.h> instead of "getopt.h".
70694
70695 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70696
70697         * modules/argp (Files): Add m4/unlocked-io.m4.
70698         (Depends-on): Add extensions.
70699
70700 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70701
70702         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
70703         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
70704         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
70705         Check for program_invocation_name, program_invocation_short_name,
70706         flockfile, funlockfile, features.h, _getopt_long_only_r.
70707
70708 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70709
70710         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
70711         its complicated substitute.
70712         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
70713         and program_invocation_name.
70714         (__argp_basename) [!_LIBC]: Remove; the only use was
70715         replaced by its body.
70716         (__argp_short_program_name): Change condition from
70717         !defined __argp_short_program_name to
70718         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
70719         to match argp-namefrob.h.
70720         (__argp_failure): Don't assume strerror_r returns char *.
70721         * lib/argp-parse.c (N_): Define unconditionally.
70722         (argp_default_options): Fill out initializers with 0 to avoid
70723         gcc warnings.
70724
70725 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
70726
70727         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
70728         getopt1.c.
70729
70730 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70731
70732         Merge from coreutils.
70733
70734         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
70735
70736         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
70737         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
70738
70739 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70740
70741         Merge from coreutils.
70742
70743         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
70744         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
70745         for Reliant Unix 5.43.
70746
70747         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
70748         (union fooround): Use uintmax_t, not long int.
70749         The rest is a merge from libc:
70750         [defined _LIBC]: Include <shlib-compat.h>.
70751         (_obstack) [defined _LIBC]: Remove after 2.3.4.
70752
70753         * lib/settime.c (settime): Recode to avoid warning with
70754         Sun Forte C 6U2.
70755
70756         * lib/strverscmp.c: Convert to UTF-8.
70757
70758 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
70759
70760         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
70761         m4/uintmax_t.m4.
70762
70763 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70764
70765         * modules/xalloc-die: New file.
70766         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
70767
70768         * modules/md5 (Files): Add m4/uint32_t.m4.
70769         * modules/sha1: Renamed from modules/sha.
70770         (Files):
70771         Rename lib/sha.h to lib/sha1.h.
70772         Rename lib/sha.c to lib/sha1.c.
70773         Rename m4/sha.m4 to m4/sha1.m4.
70774         (lib_SOURCES): Likewise.
70775         (configure.ac): Rename gl_SHA to gl_SHA1.
70776         (Include): sha.h -> sha1.h.
70777
70778 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70779
70780         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
70781         * m4/sha1.m4: Renamed from sha.m4.
70782         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
70783
70784 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
70785
70786         * lib/obstack.h (obstack_empty_p):
70787         Don't assume that chunk->contents is suitably aligned.
70788         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
70789         Likewise. Problem reported by Benno in
70790         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
70791
70792         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
70793         readable.  This could be improved further but it'd take some work.
70794
70795 2004-08-08  Simon Josefsson  <jas@extundo.com>
70796
70797         * modules/xgethostname (Depends-on): Remove exit and error (not
70798         used).
70799
70800         * modules/getpass-gnu: Add getpass.h.
70801         (Depends-on): Add stdbool.
70802         * modules/getpass: Add getpass.h.
70803
70804 2004-08-08  Simon Josefsson  <jas@extundo.com>
70805
70806         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
70807         Check getpass declaration.
70808
70809 2004-08-08  Simon Josefsson  <jas@extundo.com>
70810
70811         * lib/xgethostname.c: Don't include error.h (not used).
70812
70813         * lib/getpass.h: Add.
70814         * lib/getpass.c: Include getpass.h first.
70815
70816 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
70817
70818         * lib/xalloc-die.c: New file.
70819         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
70820         All uses removed.
70821         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
70822         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
70823         xalloc-die.c.
70824         (_, N_, xalloc_die): Move to xalloc-die.c.
70825         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
70826         so that we needn't mess with xalloc_msg_memory_exhausted.
70827
70828         * lib/sha1.h: Renamed from sha.h.
70829         (SHA1_H): Renamed from _SHA_H.
70830         (sha1_ctx): Renamed from sha_ctx.
70831         (sha1_init_ctx): Renamed from sha_init_ctx.
70832         (sha1_process_block): Renamed from sha_process_block.
70833         (sha1_process_bytes): Renamed from sha_process_bytes.
70834         (sha1_finish_ctx): Renamed from sha_finish_ctx.
70835         (sha1_read_ctx): Renamed from sha_read_ctx.
70836         (sha1_stream): Renamed from sha_stream.
70837         (sha1_buffer): Renamed from sha_buffer.
70838         * lib/sha1.c: Likewise; renamed from sha.c.
70839         Do not include <sys/types.h>.
70840         Include <stddef.h> rather than <stdlib.h>.
70841
70842 2004-08-08  Bruno Haible  <bruno@clisp.org>
70843
70844         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
70845         FILESYSTEM_PREFIX_LEN.
70846         * lib/progreloc.c: Likewise.
70847         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
70848
70849 2004-08-06  Simon Josefsson  <jas@extundo.com>
70850
70851         * modules/progname (Depends-on): Don't depend on stdbool.
70852
70853 2004-08-06  Simon Josefsson  <jas@extundo.com>
70854
70855         * modules/getsubopt: New file.
70856         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
70857         getsubopt.
70858
70859 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70860
70861         More merge from coreutils.
70862
70863         * m4/utimens.m4, m4/utimecmp.m4: New files.
70864         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
70865         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
70866         prereq.m4, sha.m4: Import changes from coreutils.
70867
70868 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70869
70870         More merge from coreutils.
70871         * modules/raise, modules/readtokens0, modules/utimens:
70872         * modules/utimecmp, module/xnanosleep: New files.
70873         * modules/strftime: Add lib/strftime.h.
70874         Change include from <time.h> to "strftime.h".
70875         * modules/yesno: Add lib/yesno.h.
70876         * modules/backupfile: Remove lib/addext.c.
70877         * modules/euidaccess: Add stat-macros.h.
70878         * modules/canonicalize, modules/euidaccess,
70879         modules/filemode, modules/lchown, modules/makepath,
70880         modules/rmdir, modules/stat: Likewise.
70881
70882 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
70883
70884         Merge from tar.
70885         * lib/argp-help.c (make_hol, hol_append): Don't assume that
70886         SIZE_MAX is a valid preprocessor constant.
70887         (__argp_basename): Change from "#ifndef _LIBC"
70888         to "#ifndef __argp_short_program_name", so that
70889         we don't compile these functions for tar.
70890
70891         More merges from coreutils.
70892         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
70893         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
70894         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
70895         * lib/addext.c: Remove; no longer needed.
70896         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
70897         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
70898         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
70899         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
70900         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
70901         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
70902         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
70903         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
70904         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
70905         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
70906         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
70907         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
70908         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
70909         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
70910         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
70911         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
70912         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
70913         Import changes from coreutils.
70914
70915 2004-08-05  Simon Josefsson  <jas@extundo.com>
70916
70917         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
70918
70919 2004-08-05  Simon Josefsson  <jas@extundo.com>
70920
70921         * m4/getsubopt.m4: New file.
70922
70923 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70924
70925         Merge from coreutils.
70926
70927         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
70928         * m4/getcwd-path-max.m4: New files.
70929
70930         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
70931         FILESYSTEM_PREFIX_LEN ->
70932         FILE_SYSTEM_PREFIX_LEN.
70933         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
70934         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
70935         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
70936         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
70937
70938         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
70939         prerequisite modules now handle the DOS stuff.
70940         Don't check for unistd.h.
70941
70942 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70943
70944         Merge from coreutils.
70945
70946         * lib/.gdb-history: Remove; this doesn't belong here.
70947
70948         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
70949         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
70950         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
70951         * lib/getcwd.c: New files.
70952
70953         * lib/dirname.h: Include <stdbool.h>.
70954         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
70955         for consistency with POSIX terminology.  All uses changed.
70956         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
70957         (strip_trailing_slashes): Use bool for booleans.
70958         * lib/stripslash.c (strip_trailing_slashes): Likewise.
70959
70960         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
70961         sometimes returns a positive errno value even when it succeeds.
70962         (print_errno_message) [!LIBC]: Fall back on strerror if
70963         __strerror_r fails.
70964
70965         * lib/path-concat.c (mempcpy): Don't define if a system header defines
70966         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
70967         (longest_relative_suffix): New function.
70968         (path_concat): Use it.  Assume first argument is not NULL.
70969         Port to DOS.  Omit redundant separators.
70970         Report an error instead of returning NULL.
70971         Use mempcpy instead of memcpy.
70972         (xpath_concat): Remove: not declared or used.
70973
70974         * lib/same.h: Include <stdbool.h>
70975         (same_name): Return bool, not int.
70976         * lib/same.c (same_name): Likewise.
70977         (errno): Don't declare; we assume C89 or better now.
70978
70979         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
70980         if not already defined.
70981
70982         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
70983         * lib/dup-safer.c (errno): Likewise.
70984
70985 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
70986
70987         Merge from coreutils.
70988         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
70989         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
70990         * modules/path-concat: Don't depend on strdup.
70991
70992 2004-08-03  Simon Josefsson  <jas@extundo.com>
70993
70994         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
70995         * lib/progname.h: Don't include stdbool.h.
70996
70997 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
70998
70999         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
71000         * MODULES.html.sh (func_all_modules): Remove fatal.
71001
71002 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71003
71004         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
71005
71006 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
71007
71008         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
71009         working.
71010
71011 2004-08-02  Simon Josefsson  <jas@extundo.com>
71012
71013         * lib/getsubopt.h: New file, with comments from Bruno Haible.
71014         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
71015         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
71016
71017 2004-08-01  Simon Josefsson  <jas@extundo.com>
71018
71019         * lib/xgetdomainname.c: Include stdlib.h, for free().
71020
71021 2004-07-19  Bruno Haible  <bruno@clisp.org>
71022
71023         * MODULES.html.sh (func_all_modules): Add dummy.
71024
71025 2004-07-16  Simon Josefsson  <jas@extundo.com>
71026
71027         * modules/dummy: New file.
71028
71029 2004-07-16  Simon Josefsson  <jas@extundo.com>
71030
71031         * lib/dummy.c: New file.
71032
71033 2004-07-16  Bruno Haible  <bruno@clisp.org>
71034
71035         * lib/backupfile.h: Add extern "C" for C++.
71036         * lib/closeout.h: Likewise.
71037         * lib/copy-file.h: Likewise.
71038         * lib/findprog.h: Likewise.
71039         * lib/full-write.h: Likewise.
71040         * lib/pathname.h: Likewise.
71041         * lib/progname.h: Likewise.
71042         * lib/stpcpy.h: Likewise.
71043         * lib/stpncpy.h: Likewise.
71044         * lib/strcase.h: Likewise.
71045         * lib/strstr.h: Likewise.
71046         * lib/xalloc.h: Likewise.
71047
71048         * lib/mbswidth.h: Add extern "C" for C++.
71049         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
71050
71051 2004-07-13  Robert Millan  <robertmh@gnu.org>
71052
71053         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
71054
71055 2004-07-09  Simon Josefsson  <jas@extundo.com>
71056
71057         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
71058         failed without this.)
71059
71060 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71061
71062         * modules/chown (Files): Add lib/fchown-stub.c, since
71063         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
71064
71065 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71066
71067         * lib/fchown-stub.c: New file.
71068
71069 2004-06-24  Jim Meyering  <jim@meyering.net>
71070
71071         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
71072
71073 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71074
71075         * modules/argz: Omit "#include".
71076
71077         * MODULES.html.sh (func_all_modules): Add calloc, to match
71078         2004-06-01 addition of calloc module.
71079
71080 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71081
71082         * m4/argz.m4: New file, which is autoupdated from libtool.
71083
71084 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71085
71086         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
71087         libtool.
71088
71089 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
71090
71091         * config/srclist-update: Don't insist on "USA." before the
71092         close-comment, as libtool omits the period and puts the */ on a
71093         separate line.
71094         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
71095         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
71096
71097 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
71098
71099         * modules/argz: New file.
71100         * MODULES.html.sh (func_all_modules): Add argz.
71101
71102 2004-06-12  Jim Meyering  <jim@meyering.net>
71103         and  Paul Eggert  <eggert@cs.ucla.edu>
71104
71105         * modules/hash (Files): Add lib/xalloc.h.
71106         * modules/pipe (Depends-on): Add wait-process.
71107         * modules/stat (Depends-on): Add xalloc.
71108         * modules/userspec (Files): Add lib/userspec.h.
71109         * modules/xstrto
71110
71111         Upgrade from gettext-0.13.
71112         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
71113         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
71114         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
71115
71116 2004-06-10  Jim Meyering  <jim@meyering.net>
71117
71118         * lib/calloc.c: New file.
71119
71120 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
71121
71122         * lib/getdate.y (yylex): Allow space between sign and number.
71123         Problem reported by Dan Jacobson.
71124
71125 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
71126
71127         Merge from coreutils CVS.
71128
71129         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
71130         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
71131         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
71132         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
71133         xstrtol.m4: Fix copyright date and/or serial number.
71134
71135         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
71136         See if we need an fchown replacement.
71137         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
71138         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
71139         and use the replacement function if we detect either defect.
71140
71141         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
71142         gl_UTIMECMP.
71143
71144 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
71145         and  Jim Meyering  <jim@meyering.net>
71146
71147         Merge from coreutils CVS.
71148
71149         * lib/stat-macros.h: New file, with contents from file-type.h
71150         and coreutils' system.h.
71151         * lib/file-type.c: Include "stat-macros.h".
71152         * lib/file-type.h (file_type): Move all macro definitions to new file,
71153         stat-macros.h.
71154
71155         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
71156         Wrap old code with this conditional.
71157         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
71158         function that does not dereference symlinks.
71159         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
71160
71161         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
71162         dependency problems.
71163         (xreadlink): Accept new arg SIZE, for efficiency.
71164         All decls and uses changed.
71165         * lib/xreadlink.h: Include <stddef.h>, for size_t.
71166
71167         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
71168         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
71169
71170         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
71171         sysexits.h.
71172
71173 2004-06-01  Jim Meyering  <jim@meyering.net>
71174
71175         * m4/calloc.m4: New file.
71176
71177 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
71178
71179         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
71180         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
71181         Also, fix a typo in a diagnostic.
71182
71183 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
71184
71185         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
71186         or AC_FUNC_REALLOC.
71187
71188 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
71189
71190         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
71191         macros to be defined.
71192         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
71193         the allocator returns NULL because the requested size is zero.
71194
71195 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
71196
71197         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
71198         var.  Add comment explaining why libc still defines it.  This
71199         merges the following patch from glibc:
71200         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
71201
71202 2004-05-20  Andreas Schwab  <schwab@suse.de>
71203
71204         * m4/free.m4: Replace free if it not known to work, not the other
71205         way round.
71206
71207 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
71208
71209         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
71210         present in glibc since revision 1.1 of this file.
71211         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
71212         obstack_alignment_mask, obstack_alloc, obstack_base,
71213         obstack_blank, obstack_blank_fast, obstack_chunk_size,
71214         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
71215         obstack_grow0, obstack_init, obstack_int_grow,
71216         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
71217         obstack_next_free, obstack_object_size, obstack_ptr_grow,
71218         obstack_ptr_grow_fast, obstack_room): Remove declarations of
71219         nonexistent functions.
71220
71221 2004-05-18  Karl Berry  <karl@gnu.org>
71222
71223         * config/srclist.txt: break link for vasnprintf.c.
71224
71225 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71226
71227         Port obstack to the AS/400, where pointers are 16 bytes wide and
71228         you cannot cast an integer to a valid pointer.  This patch is
71229         currently waiting to be integrated into glibc; see
71230         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
71231
71232         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
71233         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
71234         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
71235         (struct obstack): temp member is now a union of a pointer and
71236         an integer, instead of an integer.  All integer uses changed.
71237         This does not affect the physical layout of struct obstack,
71238         except on hosts (like the AS/400) where the size or alignment of
71239         void * is greater than that of ptrdiff_t.
71240         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
71241         __STDC__)]: Store temporary in pointer member of union, not
71242         integer member.
71243         * lib/obstack.c: Include <stddef.h>, for offsetof.
71244         (struct fooalign): Remove; it doesn't need a name.
71245         (union fooround): Change double to long double, and add void *.
71246         (DEFAULT_ALIGNMENT): Use offsetof to compute.
71247         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
71248         not a macro.  Hence the values are always int; so remove all
71249         casts-to-int in uses.
71250
71251 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
71252
71253         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
71254         we can get this patch merged into glibc.
71255
71256 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71257             Paul Eggert  <eggert@cs.ucla.edu>
71258
71259         * m4/argp: Depend on alloca.
71260
71261 2004-05-17  Derek R. Price  <derek@ximbiot.com>
71262             Paul Eggert  <eggert@cs.ucla.edu>
71263
71264         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
71265         freecoding.
71266
71267 2004-05-17  Bruno Haible  <bruno@clisp.org>
71268
71269         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
71270         precision that consists of a '.' followed by an empty digit string.
71271         Patch by Tor Lillqvist <tml@iki.fi>.
71272
71273 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71274
71275         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
71276         for backward compatibility with older code.  We need our own
71277         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
71278         it under some other name, and our alloca.h will define it.
71279
71280 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
71281             Derek Price  <derek@ximbiot.com>
71282
71283         * lib/alloca.c: Include <alloca.h>, to get our interface.
71284         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
71285         include <alloca.h> first.  Use C89 prototype for alloca; this
71286         requires including <stddef.h> for size_t.  Use extern "C" if C++.
71287         Use #elif for simplicity, since we can assume C89 now.
71288         Don't try to source the system alloca.h since it will not be found
71289         and to prevent recursively including its replacement.
71290         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
71291         * lib/regex.c: Likewise.
71292
71293 2004-05-16  Derek Price  <derek@ximbiot.com>
71294             Paul Eggert  <eggert@cs.ucla.edu>
71295
71296         getline cleanup.  This changes the getndelim2 API: both order of
71297         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
71298         no delimiter).
71299
71300         * lib/getline.c: Don't include stddef.h or stdio.h, since our
71301         interface does that.
71302         (getline): Always use getdelim, so that we don't have two
71303         copies of this code.
71304         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
71305         if available.
71306         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
71307         (GETNDELIM2_MAXIMUM): New macro.
71308         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
71309         instead of the old practice of delim2==0.  All callers changed.
71310         Return -1 on overflow, instead of returning junk.
71311         Do not set *linesize unless allocation succeeds.
71312         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
71313         that we include sys/types.h.
71314         * lib/getnline.h: Likewise.
71315         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
71316         (getndelim2): Reorder arguments.
71317         * lib/getnline.c (getnline, getndelim):
71318         Don't discard the NMAX argument.
71319         (getnline): Invoke getndelim, to avoid code duplication.
71320         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
71321         of (size_t) -1 by callers of the getnline family.
71322
71323 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71324
71325         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
71326         Check for gettimeofday.
71327         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
71328         Check for settimeofday, stime.
71329
71330 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
71331
71332         * lib/nanosleep.c (suspended): Change its type from int to
71333         sig_atomic_t volatile.
71334         (first_call): Make it private to rpl_nanosleep, and have it
71335         be zero initially as that's a bit faster.
71336         (my_usleep): Round up fractional times instead of truncating them,
71337         as this is the usual meaning for 'sleep'.
71338
71339         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
71340         doesn't work.
71341         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
71342         (ENOSYS): Define if not defined.
71343         (settime): Fall back on stime if it exists and settimeofday fails.
71344         But don't bother with fallbacks if a method fails with errno == EPERM.
71345
71346 2004-05-11  Jim Meyering  <jim@meyering.net>
71347
71348         Prior to this change, the save_cwd caller required read access to the
71349         current directory on most systems (ones with the fchdir function).
71350
71351         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
71352         fails, try write-only, and finally, resort to using xgetcwd.
71353
71354 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
71355
71356         * lib/obstack.c, obstack.h: Import changes from libc.
71357
71358 2004-04-28  Bruno Haible  <bruno@clisp.org>
71359
71360         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
71361         also implicitly appends .exe to executables.
71362         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
71363         accepts Windows pathnames.
71364         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71365         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71366         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
71367         Treat Cygwin like Windows, since it now accepts Windows pathnames.
71368         Reported by Derek Robert Price <derek@ximbiot.com>.
71369
71370 2004-04-21  Karl Berry  <karl@gnu.org>
71371
71372         * config/srclist.txt (localcharset.c): break sync.
71373
71374 2004-04-20  Paul Eggert  <eggert@twinsun.com>
71375
71376         * m4/host-os.m4: Add a copyright notice.
71377
71378 2004-04-20  Jim Meyering  <jim@meyering.net>
71379
71380         Change UTILS_ to gl_ in AC_DEFINE'd names.
71381         Change utils_- and jm_-prefixed variables, too.
71382         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
71383         UTILS_FUNC_MKDIR_TRAILING_SLASH.
71384         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
71385
71386         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
71387         Don't emit trailing blanks.
71388         Also rename jm_-prefixed variables to have gl_ prefix.
71389
71390         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
71391         Also rename jm_-prefixed variables to have gl_ prefix.
71392
71393         * m4/jm-macros.m4: Reflect the renamings.
71394         * m4/prereq.m4: Likewise.
71395
71396 2004-04-20  Jim Meyering  <jim@meyering.net>
71397
71398         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
71399         memory.
71400
71401 2004-04-20  Jim Meyering  <jim@meyering.net>
71402             Bruno Haible  <bruno@clisp.org>
71403
71404         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
71405         memory when realloc fails.
71406
71407 2004-04-19  Jim Meyering  <jim@meyering.net>
71408
71409         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
71410         now that readutmp.c may call `free (0)'.
71411
71412 2004-04-19  Bruno Haible  <bruno@clisp.org>
71413
71414         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
71415         * m4/inttypes_h.m4: Likewise.
71416         * m4/stdint_h.m4: Likewise.
71417         * m4/intmax_t.m4: Likewise.
71418         * m4/uintmax_t.m4: Likewise.
71419
71420 2004-04-18  Jim Meyering  <jim@meyering.net>
71421
71422         * m4/prereq.m4: Don't forbid jm_ prefix.
71423
71424         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
71425         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
71426         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
71427         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
71428         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
71429         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
71430         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
71431         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
71432         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
71433         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
71434         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
71435         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
71436         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
71437         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
71438         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
71439         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
71440         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
71441         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
71442         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
71443
71444 2004-04-18  Jim Meyering  <jim@meyering.net>
71445
71446         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
71447         failure, don't leak memory and do call END_UTMP_ENT.
71448
71449 2004-04-16  Jim Meyering  <jim@meyering.net>
71450
71451         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
71452         coreutils' stat program.
71453         (gl_PREREQ): Don't require jm_PREREQ_STAT.
71454
71455 2004-04-11  Paul Eggert  <eggert@twinsun.com>
71456
71457         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
71458         C89.
71459         (CHAR_BIT): Remove, since we assume C89.
71460         Include <stdint.h> if available, as per current Autoconf CVS advice.
71461
71462 2004-03-31  Jim Meyering  <jim@meyering.net>
71463
71464         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
71465         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
71466         * m4/xalloc.m4: Likewise.
71467
71468 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71469
71470         Merge from coreutils.
71471
71472         * m4/inttostr.m4: New file.
71473         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
71474         Require AM_STDBOOL_H and gl_TIMESPEC instead.
71475         Require gl_CLOCK_TIME.
71476         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
71477
71478 2004-03-30  Paul Eggert  <eggert@twinsun.com>
71479
71480         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
71481         not bool, to be more consistent with Unix conventions.
71482         Suggested by Bruno Haible.
71483
71484         Merge from coreutils.
71485
71486         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
71487         * lib/umaxtostr.c: New files.
71488
71489         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
71490         the usual <time.h> dance.
71491         (get_date): Change signature to support fractional time stamps.
71492         All callers changed.
71493         * lib/getdate.y: Include "getdate.h" first, as we can now
71494         assume C89 and don't need to worry about 'const'.
71495         Similarly, include "unlocked-io.h" near start, not in middle.
71496         Include <limits.h>.
71497         (textint.value): Use long int rather than int.
71498         (textint.digits): Use size_t rather than int.
71499         (BILLION, LOG10_BILLION): New constants.
71500         (parser_control): New member rel_ns.  Members day_ordinal,
71501         time_zone, month, day, hour, minutes, rel_year, rel_month,
71502         rel_day, rel_hour, rel_minutes, rel_seconds
71503         are now long int, not int.  Member seconds is now struct timespec,
71504         not int.  New member timespec_seen.  Members dates_seen, days_seen,
71505         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
71506         not int.
71507         (%union.intval): Now long int, not int.
71508         New member timespec.
71509         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
71510         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
71511         (spec): Now is a timespec or an item list.
71512         (timespec, items): New nonterminals.
71513         (time, rel, relunit, number, get_date):
71514         Add support for fractional seconds.
71515         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
71516         (gmtime, localtime, mktime): Remove decls; not needed with C89.
71517         (to_hour): First arg is now long int, not int.
71518         (to_year): Returns long int, not int.
71519         Don't treat year -70 like 70.
71520         (tm_diff): Returns long int, not int.
71521         (lookup_word): Use bool instead of int when appropriate.
71522         (yylex): Use size_t for count, not int.
71523         Detect overflow when parsing large integer constants.
71524         Add support for fractions.
71525         (get_date): Make pointers 'const' if possible.
71526         Use more-portable code to detect integer overflow.
71527         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
71528         Don't use ctime; it's not reliable if the year has >4 digits.
71529
71530         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
71531         This is for compatibility with BSD.
71532
71533         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
71534         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
71535         From coreutils' system.h.
71536
71537         * lib/userspec.c: Don't include "posixver.h".
71538         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
71539         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
71540         compatible extension.  Simplify code by removing a boolean int
71541         that was always nonzero if a string was nonnull.
71542
71543 2004-03-30  Jim Meyering  <jim@meyering.net>
71544
71545         Merge from coreutils.
71546
71547         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
71548         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
71549         on some systems one must include <grp.h> before it.
71550         Reported by Christian Krackowizer.
71551
71552 2004-03-30  Jim Meyering  <jim@meyering.net>
71553
71554         Merge from coreutils.
71555
71556         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
71557
71558         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
71559         an empty input stream.
71560
71561         * lib/readtokens.c: Include <stdbool.h>.
71562         (readtoken): Use `size_t' rather than int/long.
71563         All callers adjusted.
71564         Use `bool' rather than `int' where appropriate.
71565         Use memset rather than an explicit loop.
71566         Use x2nrealloc rather than xrealloc.
71567         Allow the use of `\0' as a delimiter.
71568         (readtokens): Likewise.
71569         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
71570
71571 2004-03-30  Jim Meyering  <jim@meyering.net>
71572
71573         * m4/realloc.m4: Remove file, since now it does no more than
71574         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
71575         the `configure.ac' section of module/realloc.
71576         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
71577
71578 2004-03-30  Bruno Haible  <bruno@clisp.org>
71579
71580         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
71581         nonnull.
71582
71583 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71584
71585         Merge changes to getloadavg.c from coreutils and Emacs.
71586
71587         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
71588         Define to an expression, not to the empty string.
71589         Include cloexec.h and xalloc.h.
71590         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
71591         Use set_cloexec_flag rather than rolling our own.
71592         * lib/cloexec.c, lib/cloexec.h: New files.
71593
71594 2004-03-29  Paul Eggert  <eggert@twinsun.com>
71595
71596         * m4/cloexec.m4: New file.
71597
71598 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71599
71600         * lib/getopt.h: Sync with libc CVS.
71601
71602 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71603             Bruno Haible  <bruno@clisp.org>
71604
71605         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
71606         mbswidth.
71607
71608 2004-03-18  Paul Eggert  <eggert@twinsun.com>
71609             Bruno Haible  <bruno@clisp.org>
71610
71611         * lib/mbswidth.h: Include <wchar.h> only if
71612         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
71613         <wchar.h>.
71614         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
71615
71616 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71617
71618         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
71619         Sync with libc CVS.
71620         * lib/getopt_int.h: New file, also synced from libc.
71621
71622 2004-03-09  Paul Eggert  <eggert@twinsun.com>
71623
71624         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
71625         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
71626         Bring back getopt.c, getopt.h, getopt1.c.
71627
71628 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71629
71630         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
71631         All uses changed.  Check for sa_sigaction member; this fixes
71632         a bug first reported by Jason Andrade in
71633         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71634
71635 2004-03-07  Paul Eggert  <eggert@twinsun.com>
71636
71637         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
71638         '#if' expressions.  Unlike the code it replaces, it does not
71639         depend on (defined _SC_PAGESIZE).  However, it does depend on
71640         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
71641         first reported by Jason Andrade in
71642         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
71643
71644 2004-02-25  Simon Josefsson  <jas@extundo.com>
71645
71646         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
71647
71648 2004-02-25  Simon Josefsson  <jas@extundo.com>
71649
71650         * lib/strdup.h: New file.
71651         * lib/strdup.c: Include it.
71652         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
71653         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
71654
71655 2004-02-23  Karl Berry  <karl@gnu.org>
71656
71657         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
71658         (from fencepost.gnu.org:/gd/gnuorg).
71659
71660 2004-02-23  Karl Berry  <karl@gnu.org>
71661
71662         * config/srclistvars.sh (GNUORG) [karl]: redefine.
71663         * config/srclist.txt: add maintain/standards documents.
71664
71665 2004-02-18  Bruno Haible  <bruno@clisp.org>
71666
71667         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
71668         Reported by Derek Robert Price <derek@ximbiot.com>.
71669
71670 2004-02-16  Karl Berry  <karl@gnu.org>
71671
71672         * config/mkinstalldirs, install-sh: update from automake.
71673
71674 2004-02-06  Karl Berry  <karl@gnu.org>
71675
71676         * m4/po.m4: update from gettext 0.14.1.
71677
71678 2004-02-06  Karl Berry  <karl@gnu.org>
71679
71680         * lib/config.charset: update from gettext 0.14.1.
71681
71682 2004-02-05  Paul Eggert  <eggert@twinsun.com>
71683
71684         Add comments and code, prompted by suggestions from Bruno Haible
71685         for sh-quote.
71686         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
71687         describing the enum quoting_style values.
71688         * lib/quotearg.c (quotearg_alloc): New function.
71689         (quotearg_buffer_restyled): Treat lone { and } as special.
71690         Treat = as special.  Work around bug with older shells
71691         that "see" a '\' that is really the 2nd byte of a multibyte char.
71692         Quote empty string with shell_quoting_style.
71693
71694 2004-02-03  Bruno Haible  <bruno@clisp.org>
71695
71696         * m4/pipe.m4: New file, from GNU gettext.
71697
71698 2004-02-03  Bruno Haible  <bruno@clisp.org>
71699
71700         * lib/pipe.h: New file, from GNU gettext.
71701         * lib/pipe.c: New file, from GNU gettext.
71702
71703 2004-01-27  Bruno Haible  <bruno@clisp.org>
71704
71705         * m4/execute.m4: New file, from GNU gettext.
71706
71707 2004-01-27  Bruno Haible  <bruno@clisp.org>
71708
71709         * lib/execute.h: New file, from GNU gettext.
71710         * lib/execute.c: New file, from GNU gettext.
71711         * lib/w32spawn.h: New file, from GNU gettext.
71712
71713 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71714
71715         Merge from diffutils.
71716
71717         * lib/file-type.c (file_type): Add typed memory objects.
71718         * lib/file-type.h (S_TYPEISTMO): New macro.
71719
71720         * lib/c-stack.h (c_stack_action): Remove argv argument.
71721         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
71722         (die): Don't calculate message unless segv_action returns.
71723         (get_stack_location, min_address_from_argv, max_address_from_argv,
71724         volatile stack_base, volatile_stack_size): Remove.
71725         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
71726         that every segmentation violation is a stack overflow.  (Ouch!)
71727         See Debian bug 136249 (still outstanding) for more info about why
71728         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
71729
71730 2004-01-24  Paul Eggert  <eggert@twinsun.com>
71731
71732         Exit-status fix from coreutils.
71733
71734         Use exit_failure consistently in place of EXIT_FAILURE,
71735         so that program exit statuses are consistent on failure.
71736
71737         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
71738         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
71739         * lib/argmatch.h: Comment fix to match the above.
71740         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
71741         Now a macro referring to exit_failure, instead of a separate
71742         variable.  Include "exitfail.h" to get it.
71743         * lib/xstrtol.h: Include "exitfail.h".
71744         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
71745
71746         * lib/long-options.c (parse_long_options): Use prototype
71747         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
71748         for clarity.
71749
71750 2004-01-21  Jim Meyering  <jim@meyering.net>
71751
71752         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
71753         so as not to conflict with a different-sized __mktime_internal
71754         function in GNU libc.
71755         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
71756         Problem building statically-linked `ls' reported by Michael Brunnbauer.
71757
71758 2004-01-20  Karl Berry  <karl@gnu.org>
71759
71760         * config/config.guess: update from config.
71761
71762         * config/srclistvars.sh: GNUWWWLICENSES for karl.
71763
71764 2004-01-20  Bruno Haible  <bruno@clisp.org>
71765
71766         Safer stack allocation.
71767         * lib/setenv.c: Include allocsa.h.
71768         (alloca): Remove fallback definition.
71769         (freea): Remove macro.
71770         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
71771         instead of freea.
71772
71773 2004-01-20  Bruno Haible  <bruno@clisp.org>
71774
71775         * m4/eealloc.m4: New file, from GNU gettext.
71776
71777 2004-01-20  Bruno Haible  <bruno@clisp.org>
71778
71779         * m4/allocsa.m4: New file, from GNU gettext.
71780
71781 2004-01-20  Bruno Haible  <bruno@clisp.org>
71782
71783         * lib/xallocsa.h: New file, from GNU gettext.
71784         * lib/xallocsa.c: New file, from GNU gettext.
71785
71786 2004-01-20  Bruno Haible  <bruno@clisp.org>
71787
71788         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
71789
71790 2004-01-20  Bruno Haible  <bruno@clisp.org>
71791
71792         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
71793         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
71794         specially.
71795
71796 2004-01-20  Bruno Haible  <bruno@clisp.org>
71797
71798         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
71799         patch.
71800
71801 2004-01-20  Bruno Haible  <bruno@clisp.org>
71802
71803         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
71804
71805 2004-01-20  Bruno Haible  <bruno@clisp.org>
71806
71807         * lib/eealloc.h: New file.
71808
71809 2004-01-20  Bruno Haible  <bruno@clisp.org>
71810
71811         * lib/binary-io.h: Avoid warnings on Cygwin.
71812
71813 2004-01-20  Bruno Haible  <bruno@clisp.org>
71814
71815         * lib/allocsa.h: New file, from GNU gettext.
71816         * lib/allocsa.c: New file, from GNU gettext.
71817
71818 2004-01-18  Karl Berry  <karl@gnu.org>
71819
71820         * doc/gpl.texi, doc/lgpl.texi: new files.
71821
71822 2004-01-18  Karl Berry  <karl@gnu.org>
71823
71824         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
71825         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
71826
71827 2004-01-15  Paul Eggert  <eggert@twinsun.com>
71828
71829         Merge from coreutils.
71830
71831         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
71832         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
71833         (gl_DEFAULT_POSIX2_VERSION): Move
71834         the documentation from 'configure' into 'config.hin',
71835         so that 'configure --help' isn't burdened by it and
71836         we don't have to worry about its formatting there.
71837         Reword the documentation so that it's more succinct
71838         and can be run together into a single paragraph.
71839         * m4/same.m4 (gl_SAME): Check for pathconf.
71840
71841 2004-01-15  Paul Eggert  <eggert@twinsun.com>
71842
71843         Merge from coreutils.
71844
71845         * lib/posixver.c: Include posixver.h.
71846
71847         * lib/same.c: Include <stdbool.h>, <limits.h>.
71848         (_POSIX_NAME_MAX): Define if not defined.
71849         (MIN): New macro.
71850         (same_name): If file names are silently truncated, report
71851         that the file names are the same if they are the same after
71852         the silent truncation.
71853
71854         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
71855         conversion function.
71856         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
71857         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
71858         longer needed.
71859
71860 2004-01-15  Jim Meyering  <jim@meyering.net>
71861
71862         Merge from coreutils.
71863
71864         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
71865         if no library is required.
71866         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
71867         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
71868         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
71869         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
71870         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
71871         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
71872         value, $ac_cv_search_crypt, if it's "none required".
71873         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
71874         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
71875         not gl_FUNC_GETLOADAVG.
71876         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
71877         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
71878
71879 2004-01-15  Jim Meyering  <jim@meyering.net>
71880
71881         Merge from coreutils.
71882
71883         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
71884         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
71885         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
71886
71887         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
71888         optional configure-time default.
71889
71890         * lib/version-etc.c (version_etc_copyright): Update copyright date.
71891
71892         * lib/xreadlink.c (xreadlink): Correct outdated comment.
71893
71894 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
71895
71896         Merge from coreutils.
71897
71898         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
71899         value, $ac_cv_search_nanosleep, if it's "none required".
71900
71901 2004-01-14  Paul Eggert  <eggert@twinsun.com>
71902
71903         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
71904         with like-named macro in fnmatch.c.
71905         (EXT): Use an internal constant instead.
71906
71907         Merge fnmatch patches from glibc.
71908         * lib/fnmatch.c (mbsinit): Remove define.
71909         Add libc_hidden_ver (__fnmatch, fnmatch).
71910         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
71911         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
71912
71913 2004-01-14  Karl Berry  <karl@gnu.org>
71914
71915         * config/install-sh: update from automake.
71916
71917 2004-01-13  Karl Berry  <karl@gnu.org>
71918
71919         * config/install-sh: update from automake.
71920
71921 2004-01-09  Karl Berry  <karl@gnu.org>
71922
71923         * config/install-sh: update from automake.
71924
71925 2004-01-05  Karl Berry  <karl@gnu.org>
71926
71927         * config/config.{sub,guess}: update from config.
71928
71929 2003-12-31  Karl Berry  <karl@gnu.org>
71930
71931         * config/depcomp: update from automake.
71932
71933 2003-12-14  Karl Berry  <karl@gnu.org>
71934
71935         * lib/config.charset: update from gettext-runtime.
71936
71937 2003-12-03  Paul Eggert  <eggert@twinsun.com>
71938
71939         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
71940         Bug reported by Alfred M. Szmidt.
71941
71942 2003-12-03  Bruno Haible  <bruno@clisp.org>
71943
71944         * m4/gettext.m4: Upgrade from gettext-0.13.
71945         * m4/po.m4: Upgrade from gettext-0.13.
71946         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
71947         * m4/intmax.m4: New file, from gettext-0.13.
71948         * m4/printf-posix.m4: New file, from gettext-0.13.
71949
71950 2003-11-29  Karl Berry  <karl@gnu.org>
71951
71952         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
71953
71954 2003-11-25  Paul Eggert  <eggert@twinsun.com>
71955             Bruno Haible  <bruno@clisp.org>
71956
71957         * lib/printf-parse.h: Don't include sys/types.h.
71958         (ARG_NONE): New macro.
71959         (char_directive): Change type of *arg_index fields to size_t.
71960         * lib/printf-parse.c: Don't include sys/types.h.
71961         (SSIZE_MAX): Remove macro.
71962         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
71963         Remove unnecessary overflow check.
71964         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
71965         fields.
71966
71967 2003-11-25  Bruno Haible  <bruno@clisp.org>
71968
71969         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
71970
71971 2003-11-25  Bruno Haible  <bruno@clisp.org>
71972
71973         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
71974         gt_TYPE_SSIZE_T.
71975
71976 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71977
71978         * modules/alloca: Remove dependency on xalloc.
71979
71980 2003-11-24  Paul Eggert  <eggert@twinsun.com>
71981
71982         * lib/alloca.c: Remove dependency on xalloc module.
71983         (xalloc_die): Remove.
71984         (memory_full) [!defined emacs]: New macro.
71985         [!defined emacs]: Don't include xalloc.h.
71986         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
71987         address arithmetic overflows.  Change datatypes a bit to avoid
71988         unnecessary casts.
71989
71990 2003-11-22  Jim Meyering  <jim@meyering.net>
71991
71992         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
71993         s/size/size_t/.
71994
71995 2003-11-21  Karl Berry  <karl@gnu.org>
71996
71997         * config/config.{sub,guess}: update from config.
71998
71999 2003-11-18  Karl Berry  <karl@gnu.org>
72000
72001         * config/config.{sub,guess}: update from config.
72002
72003         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
72004
72005 2003-11-17  Paul Eggert  <eggert@twinsun.com>
72006
72007         * README: Mention that S+T cannot overflow if S is the size of
72008         an existing object and T is sufficiently small.
72009
72010 2003-11-17  Jim Meyering  <jim@meyering.net>
72011
72012         On systems without utime and without a utimes function capable of
72013         dealing with a NULL struct utimbuf* argument, this utime replacement
72014         could -- in unusual circumstances -- leak a file descriptor.
72015         * lib/utime.c: Include <unistd.h> and <errno.h>.
72016         (utime_null): Be sure to close `fd' and to preserve errno.
72017         Reported by Geoff Collyer via Arnold Robbins.
72018
72019 2003-11-17  Bruno Haible  <bruno@clisp.org>
72020
72021         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
72022         (Depends-on): Add xsize.
72023
72024 2003-11-17  Bruno Haible  <bruno@clisp.org>
72025
72026         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
72027
72028 2003-11-17  Bruno Haible  <bruno@clisp.org>
72029
72030         * lib/vasnprintf.c (alloca): Remove fallback definition.
72031         (freea): Remove definition.
72032         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
72033         Reported by Paul Eggert.
72034
72035 2003-11-16  Paul Eggert  <eggert@twinsun.com>
72036             Bruno Haible  <bruno@clisp.org>
72037
72038         Protect against address arithmetic overflow.
72039         * lib/printf-args.h: Include stddef.h.
72040         (arguments): Change type of field 'count' to size_t.
72041         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
72042         'unsigned int' where appropriate.
72043         * lib/printf-parse.h: Include sys/types.h.
72044         (char_directive): Change type of *arg_index fields to ssize_t.
72045         (char_directives): Change type of fields 'count', max_*_length to
72046         size_t.
72047         * lib/printf-parse.c: Include sys/types.h and xsize.h.
72048         (SSIZE_MAX): Define fallback value.
72049         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
72050         instead of 'int' where appropriate. Check a_allocated, d_allocated
72051         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
72052         * lib/vasnprintf.c: Include xsize.h.
72053         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
72054         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
72055         overflow. Avoid wraparound when converting a width or precision from
72056         decimal to binary.
72057
72058 2003-11-16  Bruno Haible  <bruno@clisp.org>
72059
72060         Update from GNU gettext.
72061         * lib/printf-parse.c: Generalize to it can be compiled for wide
72062         strings.
72063         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
72064         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
72065         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
72066         SNPRINTF): New macros.
72067         Don't include <alloca.h> if the file is used inside libintl.
72068         (local_wcslen): New function, for Solaris 2.5.1.
72069         (VASNPRINTF): Use it instead of wcslen.
72070
72071 2003-11-16  Bruno Haible  <bruno@clisp.org>
72072
72073         * lib/xsize.h (xmax): New function.
72074         (xsum, xsum3, xsum4): Declare as "pure" functions.
72075
72076 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72077
72078         * modules/xalloc (Files): Undo latest change, since xalloc.h
72079         no longer needs SIZE_MAX or PTRDIFF_MAX.
72080
72081 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72082
72083         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
72084         gl_PTRDIFF_MAX.
72085
72086 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72087
72088         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
72089         "return", to pacify some unknown compiler.  Problem reported
72090         by Joerg Schilling.
72091
72092 2003-11-12  Paul Eggert  <eggert@twinsun.com>
72093
72094         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
72095         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
72096         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
72097         heuristic is just as accurate as far as we know, and it removes a
72098         dependency on size_max.m4 and ptrdiff_max.m4.
72099
72100 2003-11-11  Bruno Haible  <bruno@clisp.org>
72101
72102         * modules/xsize (Files): Add m4/size_max.m4.
72103         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
72104
72105 2003-11-11  Bruno Haible  <bruno@clisp.org>
72106
72107         * m4/size_max.m4: New file.
72108         * m4/ptrdiff_max.m4: New file.
72109         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
72110         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
72111         (gl_XALLOC): Invoke it.
72112
72113 2003-11-11  Bruno Haible  <bruno@clisp.org>
72114
72115         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
72116         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
72117         defined.
72118
72119 2003-11-10  Paul Eggert  <eggert@twinsun.com>
72120
72121         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
72122         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
72123         rejected some allocations of exactly SIZE_MAX - 2 bytes.
72124         From Bruno Haible.
72125         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
72126         not (size_t) -1, since it's defined here.
72127
72128 2003-11-09  Karl Berry  <karl@gnu.org>
72129
72130         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
72131
72132 2003-11-06  Paul Eggert  <eggert@twinsun.com>
72133
72134         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
72135         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
72136         Reject sizes of exactly SIZE_MAX bytes.
72137         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
72138         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
72139
72140 2003-11-05  Bruno Haible  <bruno@clisp.org>
72141
72142         * lib/xsize.h: Include limits.h, to avoid a possible collision with
72143         SIZE_MAX defined in <limits.h> on Solaris.
72144
72145 2003-11-04  Jim Meyering  <jim@meyering.net>
72146
72147         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
72148         variable names, rather than @VAR@.
72149         * modules/poll: Likewise.
72150
72151 2003-11-04  Bruno Haible  <bruno@clisp.org>
72152
72153         * modules/xsize: New file.
72154         * modules/linebreak: Depend on xsize.
72155         * MODULES.html.sh (func_all_modules): Add xsize.
72156
72157 2003-11-04  Bruno Haible  <bruno@clisp.org>
72158
72159         * m4/xsize.m4: New file.
72160
72161 2003-11-04  Bruno Haible  <bruno@clisp.org>
72162
72163         * lib/xsize.h: New file.
72164         * lib/linebreak.c: Include xsize.h.
72165         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
72166         argument for overflow.
72167         Suggested by Paul Eggert.
72168
72169 2003-11-03  Karl Berry  <karl@gnu.org>
72170
72171         * config/config.{guess,sub}: update from config.
72172
72173 2003-11-03  Jim Meyering  <jim@meyering.net>
72174
72175         * modules/userspec (lib_SOURCES): Add userspec.h.
72176         (Include): Add "userspec.h".
72177         Improve description.
72178
72179 2003-11-03  Jim Meyering  <jim@meyering.net>
72180
72181         * lib/userspec.c: Include "userspec.h".
72182         * lib/userspec.h: New file.
72183
72184 2003-11-03  Bruno Haible  <bruno@clisp.org>
72185
72186         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
72187
72188 2003-11-03  Bruno Haible  <bruno@clisp.org>
72189
72190         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
72191         available, to avoid (extremely rare) race condition.
72192         Suggested by Paul Eggert.
72193
72194 2003-11-02  Karl Berry  <karl@gnu.org>
72195
72196         * config/srclist.txt (vasprintf.c): sync broken, sigh.
72197
72198 2003-10-31  Paul Eggert  <eggert@twinsun.com>
72199
72200         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
72201         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
72202         (read_filesystem_list): Set and use me_type_malloced.
72203         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
72204         whatever the type happens to be), for brevity and consistency.
72205         Check for size calculation overflow on Alphas running OSF/1.
72206
72207 2003-10-31  Jim Meyering  <jim@meyering.net>
72208
72209         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
72210
72211         * lib/linebuffer.c: Include <string.h> for declaration of memset.
72212
72213 2003-10-30  Paul Eggert  <eggert@twinsun.com>
72214             Bruno Haible  <bruno@clisp.org>
72215
72216         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
72217         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
72218
72219 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
72220
72221         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
72222         netbsd*-gnu*.  Suggested by Robert Millan.
72223
72224 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72225
72226         * modules/group-member: Depend on stdbool.
72227
72228 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72229
72230         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
72231
72232 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72233
72234         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
72235         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
72236         after the 'gnu' in these cases.  This fixes some bugs in the
72237         previous change, and is based on suggestions by Robert Millan.
72238
72239 2003-10-29  Paul Eggert  <eggert@twinsun.com>
72240
72241         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
72242         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
72243         no longer needed.
72244         * lib/quotearg.c (quotearg_n_options): Use it.
72245         * lib/group-member.c: Include <stdbool.h>.
72246         (free_group_info): Arg is now const *; don't free arg.
72247         (get_group_info): Now returns bool and accepts struct group_info *,
72248         rather than returning a malloc'ed struct group_info *.
72249         All uses changed.  Check for overflow in internal size calculation.
72250
72251         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
72252         rather than xmalloc/xrealloc.
72253         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
72254         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
72255         conformance bug: the old code used a pointer after freeing the
72256         storage that it addressed.
72257         * lib/hash.c (hash_initialize): Simplify the code by using
72258         xalloc_oversized rather than doing it by hand.
72259         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
72260         the buffer preserved.  Use free and xmalloc instead.
72261         * lib/quotearg.c (quotearg_n_options): Likewise.
72262         Use a simpler test for size overflow.  Don't use xalloc_oversized
72263         because unsigned int might be wider than size_t (!); this suggests
72264         that we should switch from unsigned int to size_t for slot numbers.
72265
72266 2003-10-28  Paul Eggert  <eggert@twinsun.com>
72267
72268         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
72269         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
72270         NetBSD kernels.  Requested by Richard Stallman.
72271
72272 2003-10-27  Paul Eggert  <eggert@twinsun.com>
72273
72274         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
72275         to allocate the returned structure.  Do not allocate a subarray,
72276         as x2nrealloc will do that.
72277         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
72278         instead of xnrealloc.
72279         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
72280
72281 2003-10-27  Bruno Haible  <bruno@clisp.org>
72282
72283         * lib/stdbool_.h: Better support for BeOS.
72284
72285 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72286
72287         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
72288         now uses inline.
72289
72290 2003-10-26  Paul Eggert  <eggert@twinsun.com>
72291
72292         * lib/xalloc.h (xalloc_oversized): New static inline function, for
72293         callers that want to do their own size-overflow checking.  Include
72294         <stdbool.h>, since xalloc_oversized returns bool.
72295         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
72296         to use xalloc_oversized.
72297
72298         Add two functions x2realloc, x2nrealloc, for programs that grow
72299         arrays dynamically by doubling their sizes.
72300         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
72301         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
72302         New functions.
72303
72304         Port to C99 semantics for 'inline' of external functions.
72305         Bug reported by Bruno Haible.
72306         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
72307         with the old contents of xnmalloc.
72308         (xnmalloc, xmalloc): Use it.
72309         (xnrealloc_inline): New static inline function,
72310         with the old contents of xnrealloc.
72311         (xnrealloc, xrealloc): Use it.
72312
72313         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
72314         that.
72315
72316 2003-10-26  Karl Berry  <karl@gnu.org>
72317
72318         * config/srclist.txt (COPYING.DOC): no longer available from
72319         /gd/gnuorg; don't know where the ultimate source is.
72320
72321 2003-10-25  Paul Eggert  <eggert@twinsun.com>
72322
72323         Fix several address-calculation bugs in the hash modules,
72324         plus some minor code cleanup.
72325
72326         * lib/hash.h: Include <stdbool.h>, for bool.
72327         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
72328         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
72329         hash_get_n_entries, hash_get_max_bucket_length,
72330         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
72331         hash_rehash): Use size_t rather than unsigned.
72332         * lib/hash.c (struct hash_table, hash_get_n_buckets,
72333         hash_get_n_buckets_used, hash_get_n_entries,
72334         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
72335         hash_get_entries, hash_do_for_each, hash_string, is_prime,
72336         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
72337         Likewise.
72338         (SIZE_MAX): Define if not defined.
72339         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
72340         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
72341         hash_print):
72342         Use const * when possible.
72343         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
72344         (check_tuning): Fix bug: if tuning parameters were very close to
72345         0 or 1, rounding errors could have caused subscript violations.
72346         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
72347         (hash_initialize): Add 'fail:' label
72348         to free table and return NULL, and use it to simplify code.
72349         Use calloc rather than clearing the storage ourself.
72350         (hash_initialize, hash_rehash): Check for arithmetic overflow in
72351         buffer size calculations.
72352         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
72353         Include <stddef.h>, for size_t.
72354         * lib/hash-pjw.c (hash_pjw): Likewise.
72355         Switch to method described by Bruno Haible.
72356         Include <limits.h>, for CHAR_BIT.
72357         (SIZE_BITS): New macro.
72358
72359 2003-10-23  Paul Eggert  <eggert@twinsun.com>
72360
72361         * m4/getline.m4 (AM_FUNC_GETLINE):
72362         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
72363         hosts.  Problem reported by Derek Robert Price in
72364         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
72365         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
72366         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
72367
72368 2003-10-21  Paul Eggert  <eggert@twinsun.com>
72369
72370         * lib/getndelim2.c (getndelim2): When size calculation overflows,
72371         ceiling the allocation at NMAX bytes rather than silently
72372         discarding input bytes before NMAX is reached.  This makes
72373         a difference only if NMAX exceeds SIZE_MAX / 2.
72374
72375         * lib/obstack.c: Merge from glibc.
72376         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
72377         Add libc_hidden_def (_obstack_newchunk).
72378         (_obstack_free) [! defined _LIBC]: Remove.
72379         [defined _LIBC]: Make a strong alias from obstack_free, rather than
72380         a clone of the function body.
72381         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
72382         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
72383
72384         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
72385         glibc.
72386         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
72387         arg to memcpy.
72388
72389         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
72390         (obstack_ptr_grow_fast, obstack_int_grow_fast):
72391         Don't use lvalue casts, as GCC plans to remove support for them
72392         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
72393         was also present in the non-GCC version, indicating that this
72394         code had always been buggy and had never been widely used.
72395         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
72396         Use the fast variant of each macro, rather than copying the
72397         definiens of the fast variant; that way, we'll be more likely to
72398         catch future bugs in the fast variants.
72399
72400 2003-10-20  Bruno Haible  <bruno@clisp.org>
72401
72402         * modules/wait-process: New file.
72403         * MODULES.html.sh (func_all_modules): Add wait-process.
72404
72405 2003-10-20  Bruno Haible  <bruno@clisp.org>
72406
72407         * m4/wait-process.m4: New file.
72408
72409 2003-10-20  Bruno Haible  <bruno@clisp.org>
72410
72411         * lib/wait-process.h: New file, from GNU gettext.
72412         * lib/wait-process.c: New file, from GNU gettext.
72413
72414 2003-10-19  Jim Meyering  <jim@meyering.net>
72415
72416         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
72417         HPUX 10.20.
72418
72419 2003-10-18  Karl Berry  <karl@gnu.org>
72420
72421         * config/config.guess: update from config.
72422
72423 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72424
72425         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
72426         (getgroups): First arg is int, not size_t.
72427         Don't let 'free' mangle errno.
72428
72429 2003-10-16  Paul Eggert  <eggert@twinsun.com>
72430
72431         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
72432
72433 2003-10-16  Karl Berry  <karl@gnu.org>
72434
72435         * config/config.{guess,sub}: update from config.
72436
72437 2003-10-16  Jim Meyering  <jim@meyering.net>
72438
72439         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
72440         memcpy.
72441
72442 2003-10-15  Paul Eggert  <eggert@twinsun.com>
72443
72444         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
72445         (SIZE_MAX): Remove.
72446         (new_exclude, add_exclude_file): Initial size no longer needs to
72447         be a power of 2.
72448         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
72449         our own address arithmetic overflow checking.
72450
72451         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
72452         (fnmatch): Do not alloca more than 2000 wide characters;
72453         instead, use malloc for large buffers.
72454         Check for address arithmetic overflow, and return -1
72455         with errno set to ENOMEM in that case.
72456         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
72457         (NEW_PATTERN): Do not alloca more than 8000 bytes;
72458         instead, return -1.  Check for address arithmetic overflow.
72459
72460 2003-10-14  Paul Eggert  <eggert@twinsun.com>
72461
72462         Handle invalid suffixes and overflow independently, so that
72463         callers can treat them independently as needed.  Fix some bugs in
72464         suffix handling, e.g., "100k@" was not diagnosed as an invalid
72465         suffix for a human-readable blocksize.  The major caller-visible
72466         change is the addition of a new
72467         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
72468         that both overflow and suffix chars were found.
72469
72470         * lib/human.c (humblock): Don't check separately for invalid suffix
72471         char; that is xstrtoumax's job (now that its bug is fixed).
72472         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
72473         INTMAX_MAX]: New macros.
72474         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
72475         TYPE_MAXIMUM): New macros.
72476         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
72477         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
72478         if overflow occurs, as it's what __strtol does and it's more useful
72479         in practice.
72480         (__xstrtol): If __strtol reports some error other than ERANGE,
72481         reflect it to the caller as LONGINT_INVALID.  If it reports
72482         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
72483         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
72484         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
72485         value.
72486         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
72487         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
72488         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
72489         [defined UINTMAX_MAX]: New macros.
72490
72491 2003-10-14  Bruno Haible  <bruno@clisp.org>
72492
72493         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
72494
72495 2003-10-14  Bruno Haible  <bruno@clisp.org>
72496
72497         * m4/sig_atomic_t: New file, from GNU gettext.
72498         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
72499
72500 2003-10-14  Bruno Haible  <bruno@clisp.org>
72501
72502         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
72503         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
72504         Also use volatile where needed.
72505
72506 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72507
72508         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
72509         Change maintainer from Bruno Haible to 'all'.
72510
72511 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72512
72513         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
72514
72515 2003-10-12  Paul Eggert  <eggert@twinsun.com>
72516
72517         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
72518         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
72519         and define in terms of the other primitives.
72520         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
72521         (SIZE_MAX): Define if not already defined.
72522         (array_size_overflow): New function.
72523         (xalloc_die): Abort instead of exiting if 'error' returns.
72524         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
72525         (xmalloc, xrealloc): Use them.
72526         (xcalloc): Check for address arithmetic overflow.
72527         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
72528         a bit faster than strcpy.
72529
72530 2003-10-10  Simon Josefsson  <jas@extundo.com>
72531
72532         * modules/argp (Depends-on): Add restrict and strcase.
72533
72534 2003-10-10  Simon Josefsson  <jas@extundo.com>
72535
72536         * m4/argp.m4: Add AC_C_INLINE.
72537
72538 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72539
72540         Merge getpass from libc, plus a few fixes.
72541
72542         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
72543         Include <stdbool.h>.
72544         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
72545         __fsetlocking to empty.
72546         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
72547         do include <bits/libc-lock.h>.
72548         Do not include <fcntl.h>; not needed.
72549         [_LIBC]: Include <wchar.h>.
72550         (NOTCANCEL_MODE): New macro.
72551         (flockfile, funlockfile) [_LIBC]: New macros.
72552         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
72553         [!_LIBC]: New macros.
72554         (call_fclose): New function.
72555         (getpass): Use it.  Save tty stream separately; this simplifies the
72556         code and makes it more reliable if stdin happens to equal stdout.
72557         Invoke __fsetlocking on tty.
72558         Handle thread cancellation if needed.
72559         Namespace cleanup (use __tcgetattr, __getline).
72560         Use bool for Booleans.
72561         [USE_IN_LIBIO]: Handle wide streams.
72562         [!_LIBC]: Unconditionally do the fseek, since we don't know what
72563         stream might go where.
72564
72565         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
72566         doesn't have to include <stdio.h> before us.
72567         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
72568         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
72569         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
72570         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
72571         if not declared, so that we can use getpass.c code from libc without
72572         rewriting it.
72573         (flockfile, ftrylockfile, funlockfile): New macros.
72574
72575 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72576
72577         * modules/getpass: Depend on stdbool.
72578
72579 2003-10-08  Paul Eggert  <eggert@twinsun.com>
72580
72581         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
72582
72583 2003-10-07  Karl Berry  <karl@gnu.org>
72584
72585         * config/config.{guess,sub}: update from config.
72586
72587 2003-10-06  Jim Meyering  <jim@meyering.net>
72588             Bruno Haible  <bruno@clisp.org>
72589
72590         This lets translators provide better translations for the
72591         "Written by ..." part of --version output.
72592         * lib/version-etc.h: Include stdarg.h.
72593         (version_etc_copyright): Declare as readonly.
72594         (version_etc): Make this function variadic with a NULL-terminated list
72595         of author name strings.
72596         (version_etc_va): New declaration.
72597         * lib/version-etc.c: Include stdarg.h, stdlib.h.
72598         (version_etc_copyright): Declare as readonly.
72599         (version_etc_va): New function. Provide a different translatable string
72600         for each possible number of authors < 10. Abbreviate when there are 10
72601         authors or more.
72602         (version_etc): Make this function variadic. Call version_etc_va.
72603         Suggestion from Gary V. Vaughan.
72604
72605         * lib/long-options.h (parse_long_options): Change prototype: the
72606         authors string is moved to the end and becomes variadic.
72607         * lib/long-options.c: Include stdarg.h.
72608         (parse_long_options): Make this function variadic, too.
72609         Call version_etc_va, not version_etc.
72610
72611 2003-10-06  Bruno Haible  <bruno@clisp.org>
72612
72613         * modules/version-etc-2: Remove file.
72614         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
72615
72616 2003-10-06  Bruno Haible  <bruno@clisp.org>
72617
72618         * modules/fatal-signal: New file.
72619         * MODULES.html.sh (func_all_modules): Add fatal-signal.
72620
72621 2003-10-06  Bruno Haible  <bruno@clisp.org>
72622
72623         * m4/fatal-signal.m4: New file.
72624         * m4/signalblocking.m4: New file, from GNU gettext.
72625
72626 2003-10-06  Bruno Haible  <bruno@clisp.org>
72627
72628         * lib/version-etc-2.h: Remove file.
72629         * lib/version-etc-2.c: Remove file.
72630
72631 2003-10-06  Bruno Haible  <bruno@clisp.org>
72632
72633         * lib/fatal-signal.h: New file, from GNU gettext.
72634         * lib/fatal-signal.c: New file, from GNU gettext.
72635
72636 2003-10-05  Paul Eggert  <eggert@twinsun.com>
72637
72638         * README: Rework advice for preventing empty .o files.
72639         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
72640         not <sys/types.h>.
72641
72642 2003-10-04  Karl Berry  <karl@gnu.org>
72643
72644         * lib/argp*: update from libc.
72645
72646 2003-10-04  Karl Berry  <karl@gnu.org>
72647
72648         * config/config.{guess,sub}: update from config.
72649
72650 2003-10-02  Bruno Haible  <bruno@clisp.org>
72651
72652         * modules/lchown (Include): Add lchown.h.
72653         * modules/time_r (Include): Use "..." syntax.
72654         * modules/xgetdomainname (Include): Add xgetdomainname.h.
72655
72656 2003-10-01  Simon Josefsson  <jas@extundo.com>
72657
72658         * MODULES.html.sh (func_all_modules): Move gethostname from section
72659         'based on' to section 'lacking' POSIX:2001.
72660
72661 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
72662
72663         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
72664         to output mode on the same stream.
72665
72666 2003-09-29  Paul Eggert  <eggert@twinsun.com>
72667
72668         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
72669         Fix arg typo in previous patch.
72670
72671 2003-09-28  Jim Meyering  <jim@meyering.net>
72672
72673         * lib/error.c: Correct cpp indentation.
72674
72675 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72676
72677         * modules/free: New file.
72678
72679 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72680
72681         * m4/free.m4: New file.
72682
72683 2003-09-27  Paul Eggert  <eggert@twinsun.com>
72684
72685         * lib/minmax.h (MIN, MAX)
72686         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
72687         Omit the special code that used __typeof__, since we worry that
72688         it could be more trouble than it's worth.  See:
72689         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
72690         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
72691
72692         * lib/free.c: New file.
72693
72694 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
72695
72696         Trivial fixes to Makefile.am parts of module listings.
72697         * modules/strstr: Append strstr.h to lib_SOURCES.
72698         * modules/strcase: Likewise, for strcase.h.
72699
72700 2003-09-27  Karl Berry  <karl@gnu.org>
72701
72702         * config/mkinstalldirs: update from automake.
72703
72704 2003-09-26  Paul Eggert  <eggert@twinsun.com>
72705
72706         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
72707         (error_tail): Do not loop, reallocating temporary buffer, since
72708         the output cannot contain more wide characters than the input
72709         contains bytes, the size must be big enough already.  This avoids
72710         one potential size overflow calculation.  Check for size overflow
72711         when calculating temporary buffer size.  Free temporary buffer
72712         when done, if it was allocated with malloc; this plugs a memory
72713         leak.  Remove casts from void * to pointers, that are no longer
72714         needed now that we're assuming C89 or better.
72715
72716         Merge error changes from glibc.
72717
72718         * lib/error.c, error.h: Update copyright notice header to match glibc.
72719         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
72720         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
72721         Disable cancellation while printing error.
72722         * lib/error.h: Prepend __ to parameter names.
72723
72724 2003-09-26  Jim Meyering  <jim@meyering.net>
72725
72726         * lib/error.c (error_tail): Move some declarations
72727         into inner scope where the local variables are used.
72728
72729 2003-09-26  Bruno Haible  <bruno@clisp.org>
72730
72731         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
72732         stpncpy().
72733         Don't define stpncpy through config.h; it's now done through stpncpy.h.
72734
72735 2003-09-26  Bruno Haible  <bruno@clisp.org>
72736
72737         * lib/stpncpy.h (gnu_stpncpy): New declaration.
72738         (stpncpy): Define as alias for gnu_stpncpy.
72739         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
72740
72741 2003-09-25  Simon Josefsson  <jas@extundo.com>
72742
72743         * lib/xgetdomainname.h: New file.
72744         * lib/xgetdomainname.c: New file.
72745
72746 2003-09-25  Simon Josefsson  <jas@extundo.com>
72747             Bruno Haible  <bruno@clisp.org>
72748
72749         * modules/getdomainname: New file.
72750         * modules/xgetdomainname: New file.
72751         * MODULES.html.sh (func_all_modules): Add getdomainname,
72752         xgetdomainname.
72753
72754 2003-09-25  Simon Josefsson  <jas@extundo.com>
72755             Bruno Haible  <bruno@clisp.org>
72756
72757         * m4/getdomainname.m4: New file.
72758
72759 2003-09-25  Simon Josefsson  <jas@extundo.com>
72760             Bruno Haible  <bruno@clisp.org>
72761
72762         * lib/getdomainname.h: New file.
72763         * lib/getdomainname.c: New file.
72764
72765 2003-09-25  Karl Berry  <karl@gnu.org>
72766
72767         * lib/argp-fmtstream.c, argp-help.c: update from libc.
72768
72769 2003-09-25  Karl Berry  <karl@gnu.org>
72770
72771         * config/install-sh: update from automake.
72772
72773 2003-09-25  Bruno Haible  <bruno@clisp.org>
72774
72775         * modules/version-etc-2: New file, from modules/version-etc with
72776         modifications.
72777         * MODULES.html.sh (func_all_modules): Add version-etc-2.
72778
72779 2003-09-25  Bruno Haible  <bruno@clisp.org>
72780
72781         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
72782         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
72783
72784 2003-09-24  Simon Josefsson  <jas@extundo.com>
72785
72786         * modules/xgethostname: Add xgethostname.h.
72787
72788 2003-09-24  Paul Eggert  <eggert@twinsun.com>
72789
72790         * lib/linebuffer.c (freebuffer): Don't free the argument, just
72791         the buffer associated with the argument.  Bug reported by
72792         Simon Josefsson.
72793
72794 2003-09-24  Paul Eggert  <eggert@twinsun.com>
72795
72796         * README: Document assumptions that 'int' is at least 32 bits
72797         wide, that integer arithmetic is 2's complement without overflow,
72798         that there are no holes in integer values, that adding sizes of
72799         two nonoverlapping objects can't overflow, and that all-bits-zero
72800         yields scalar zero.  Fix spelling and capitalization typos.
72801
72802 2003-09-19  Karl Berry  <karl@gnu.org>
72803
72804         * lib/argp.h: update from libc.
72805
72806 2003-09-17  Paul Eggert  <eggert@twinsun.com>
72807
72808         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
72809         to avoid spurious warnings like "AC_RUN_IFELSE was called before
72810         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
72811
72812 2003-09-17  Paul Eggert  <eggert@twinsun.com>
72813
72814         * gnulib-tool: Use "test -h", not "test -L", for portability
72815         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
72816         (tags_regexp): Remove, since \| doesn't conform to POSIX.
72817         (sed_extract_prog): Issue s commands one-by-one, rather than
72818         using \| in one s command.
72819
72820 2003-09-16  Paul Eggert  <eggert@twinsun.com>
72821
72822         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
72823         input error, instead of returning NULL the next time we are called
72824         (and therefore losing track of errno).
72825
72826 2003-09-16  Bruno Haible  <bruno@clisp.org>
72827
72828         * gnulib-tool (func_create_testdir): Warn about duplicated
72829         dependencies.
72830
72831 2003-09-15  Paul Eggert  <eggert@twinsun.com>
72832
72833         * modules/argmatch, modules/fatal, modules/obstack,
72834         modules/xalloc, modules/xgethostname: Sort dependencies by
72835         importance, not alphabetically.
72836
72837 2003-09-15  Paul Eggert  <eggert@twinsun.com>
72838
72839         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
72840         fails, so that the caller gets the proper errno.
72841
72842         * lib/readutmp.c (read_utmp): Likewise.
72843         Check for fstat error.  Close stream and free storage
72844         when failing.
72845
72846 2003-09-14  Karl Berry  <karl@gnu.org>
72847
72848         * config/srclist.txt (strdup.c): disable for c89 changes.
72849
72850 2003-09-14  Jim Meyering  <jim@meyering.net>
72851
72852         * lib/getloadavg.c: Correct cpp indentation.
72853         * lib/strdup.c: Likewise.
72854         * lib/vasnprintf.c: Likewise.
72855
72856 2003-09-14  Bruno Haible  <bruno@clisp.org>
72857
72858         * modules/fwriteerror: New file.
72859         * MODULES.html.sh (func_all_modules): Add fwriteerror.
72860
72861 2003-09-14  Bruno Haible  <bruno@clisp.org>
72862
72863         * lib/fwriteerror.h: New file.
72864         * lib/fwriteerror.c: New file.
72865
72866 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72867
72868         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
72869         modules/xgethostname, modules/xalloc: Depend on exit.
72870
72871 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72872
72873         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
72874
72875         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
72876         and AC_MINIX, too, so that their extensions are available.
72877
72878         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
72879         This macro has been superseded by gl_BACKUPFILE.
72880
72881         More patches to assume C89 or better.
72882
72883         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
72884
72885         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
72886         unconditionally.
72887         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
72888         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
72889         Include <string.h>, <stdlib.h> unconditionally.
72890         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
72891         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
72892         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
72893         headers or for string.h.
72894         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
72895         or strtoul.
72896
72897         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
72898         headers.
72899         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
72900         * m4/userspec.m4 (gl_USERSPEC): Likewise.
72901         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
72902         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
72903         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72904         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
72905         memcpy, memset.
72906         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
72907         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
72908         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
72909         strtol.
72910         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
72911         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
72912         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
72913         strtoul.
72914
72915 2003-09-12  Paul Eggert  <eggert@twinsun.com>
72916
72917         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
72918         * lib/obstack.c [!defined _LIBC]: Likewise.
72919         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
72920         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
72921         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
72922
72923         More changes to assume C89 or better.
72924
72925         * lib/error.c (error_tail): Assume vprintf.
72926
72927         * lib/argmatch.c (getenv): Remove decl.
72928         * lib/progreloc.c (get_full_program_name): Define via prototype.
72929         * lib/setenv.c (clearenv): Likewise.
72930         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
72931         needed.
72932         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
72933         (malloc, memcpy): Remove decls.
72934         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
72935         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
72936         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72937         (memcpy): Remove macro.
72938         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
72939         (__P): Remove.  All uses removed.
72940         (PTR): Remove.  All uses changed to void *.
72941         (CHAR_BIT, NULL): Remove.
72942         (spaces, zeros, memset_space, memset_zero)
72943         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
72944         Remove.
72945         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
72946         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
72947         Define with prototype.
72948         Remove now-unnecessary prototype decl.
72949         (extra_args_spec): Assume ANSI C.  All uses changed.
72950         (extra_args_spec_iso): Remove.
72951         (my_strftime, emacs_strftimeu): Define via prototype.
72952         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
72953         unconditionally.
72954         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
72955         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
72956         (strtoul, strtol): Remove decls.
72957         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
72958         LONG_MAX): Remove.
72959         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
72960         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
72961         (LOCALE_PARAM_PROTO): New macro.
72962         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
72963         (INTERNAL (strtol), strtol): Define with a prototype.
72964         (PARAMS): Remove.  All uses removed.
72965         * lib/tempname.c: Include <string.h> unconditionally.
72966         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
72967         * lib/xgethostname.c (main): Define with a prototype.
72968         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
72969         Include <stdlib.h> unconditionally.
72970         (calloc, malloc, realloc, free): Remove decls.
72971         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
72972         Include <stdlib.h> unconditionally.  Sort include file names.
72973         (strtod): Remove.
72974         (xstrtod): Define with a prototype.
72975         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
72976         (strtol, strtoul): Remove decls.
72977
72978 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72979
72980         More patches to assume C89 or better.
72981         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
72982         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
72983         string.h, memchr, STDC_HEADERS.
72984
72985 2003-09-11  Paul Eggert  <eggert@twinsun.com>
72986
72987         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
72988         Include <stdlib.h>, <string.h> unconditionally.
72989         Remove now-unnecessary cast to char *.
72990         * lib/strnlen.c: Include <string.h> unconditionally.
72991         * lib/yesno.c (yesno): Define with a prototype.
72992
72993 2003-09-11  Bruno Haible  <bruno@clisp.org>
72994
72995         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
72996
72997 2003-09-10  Jim Meyering  <jim@meyering.net>
72998
72999         * lib/error.c: Correct indentation of cpp directives.
73000
73001 2003-09-10  Bruno Haible  <bruno@clisp.org>
73002
73003         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
73004         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
73005         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
73006         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
73007         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
73008         <stdlib.h> and <string.h> checks.
73009         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
73010         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
73011
73012 2003-09-10  Bruno Haible  <bruno@clisp.org>
73013
73014         * lib/strcspn.c: Include <string.h> unconditionally.
73015         * lib/strpbrk.c: Include <string.h> unconditionally.
73016         * lib/strstr.c: Include <string.h> unconditionally.
73017         * lib/unicodeio.c: Include <string.h> unconditionally.
73018         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
73019         * lib/unsetenv.c: Likewise.
73020         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
73021         * lib/yesno.c: Include <stdlib.h> unconditionally.
73022         (rpmatch): Add prototype.
73023
73024 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73025
73026         More patches to assume C89 or better.
73027         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
73028         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
73029         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
73030         or for string.h.
73031         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
73032         stdlib.h.
73033         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
73034         C headers.
73035         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
73036         string.h.
73037         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
73038         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
73039         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
73040         or for string.h.
73041         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
73042         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
73043         C headers.
73044         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
73045         memcpy.
73046         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
73047         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
73048         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
73049         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
73050         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
73051         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
73052         string.h, free.
73053         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
73054         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
73055         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
73056         C headers, or for string.h.
73057         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
73058         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
73059         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
73060         headers, memory.h, stdlib.h, string.h, strings.h.
73061         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
73062         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
73063         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
73064         strchr.
73065         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
73066         headers, memory.h, string.h.
73067         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
73068         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
73069         free.
73070         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
73071         headers.
73072         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
73073         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
73074         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
73075         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
73076         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
73077
73078 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73079
73080         More K&R removal.
73081
73082         * lib/acosl.c (main): Use a prototype.
73083         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
73084         tanl.c: Likewise.
73085
73086         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
73087
73088         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
73089         (getopt, etopt_long, getopt_long_only, _getopt_internal)
73090         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
73091         with a prototype.
73092         * lib/getopt.c (const): Remove macro.
73093         Include <string.h> unconditionally.
73094         (my_index): Remove; all uses changed to strchr.
73095         (strlen): Remove decl.
73096         (exchange): Remove forward decl; no longer needed.
73097         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
73098         Define with prototype.
73099         * lib/getopt1.c (const): Remove macro.
73100         (getopt_long, getopt_long_only, main): Define with prototype.
73101
73102         * lib/getugroups.c: Include <string.h> unconditionally.
73103
73104         * lib/getusershell.c: Include <stdlib.h> unconditionally.
73105         (getusershell, setusershell, endusershell, readname, main):
73106         Define with prototypes.
73107
73108         * lib/group-member.c: Include group-member.h first.
73109         Include <stdlib.h> unconditionally.
73110
73111         * lib/hard-locale.c: Include hard-locale.h first.
73112         Include <stdlib.h>, <string.h> unconditionally.
73113
73114         * lib/hash.c (free, malloc): Remove decls.
73115         Include <stdlib.h> unconditionally.
73116
73117         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
73118         (getenv): Do not declare.
73119
73120         * lib/idcache.c: Include <string.h> unconditionally.
73121
73122         * lib/long-options.c: Include long-options.h first, to test interface.
73123         Include <stdlib.h> unconditionally.
73124
73125         * lib/makepath.c: Include makepath.h first, to test interface.
73126         Include <stdlib.h> and <string.h> unconditionally.
73127
73128         * lib/linebuffer.c: Include <stdlib.h>.
73129         (free): Remove decl.
73130
73131         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
73132         stddef.h. rpl_malloc returns void *, not char *.
73133         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
73134         prototype.
73135
73136         * lib/md5.h: Include <limits.h> unconditionally.
73137         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
73138         (__P): Remove; all uses removed.
73139         * lib/md5.c: Include "md5.h" first.
73140         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
73141         md5_buffer, md5_process_bytes, md5_process_block):
73142         Define with prototypes.
73143         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
73144         * lib/sha.c: Include "sha.h" first.
73145         Include <stdlib.h>, <string.h> unconditionally.
73146
73147         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
73148         * lib/memcmp.c (__ptr_t): Likewise.
73149         * lib/memrchr.c (__ptr_t): Likewise.
73150         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
73151         Include <string.h> unconditionally.
73152         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
73153         * lib/memchr.c: Include <stdlib.h> unconditionally.
73154         * lib/memchr.c (LONG_MAX): Remove.
73155         * lib/memrchr.c (LONG_MAX): Likewise.
73156         * lib/memchr.c (__memchr): Define via a prototype.
73157         * lib/memrchr.c (__memrchr): Likewise.
73158         * lib/memcmp.c (__P): Remove, and remove all uses.
73159         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
73160         Remove forward decls; no longer needed.
73161         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
73162         Use types required by C89 in prototype.
73163
73164         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
73165         * lib/savedir.c: Likewise.
73166         * lib/mkdir.c (free): Remove decl.
73167         * lib/rmdir.c (rmdir): Define with a prototype.
73168         * lib/savedir.c: Include savedir.h first, to test interface.
73169
73170         * lib/mktime.c (STDC_HEADERS): Remove.
73171         Include <stdlib.h>, <string.h> unconditionally.
73172
73173         * lib/modechange.c: Include <stdlib.h> unconditionally.
73174         (malloc): Remove decl.
73175
73176         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
73177         (free): Remove decl.
73178
73179         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
73180         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
73181         (This type really should be intptr_t, but that's a C99ism.)
73182         (_obstack_memcpy): Remove: all uses changed to memcpy.
73183         Include <string.h> unconditionally.
73184         (struct obstack): Assume __STDC__ for types of members
73185         chunkfun, freefun, extra_arg.
73186         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
73187         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
73188         obstack_begin, obstack_specify_allocation,
73189         obstack_specify_allocation_with_arg, obstack_chunkfun,
73190         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
73191         Remove unprototyped decls and the macros that use them.
73192         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
73193         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
73194         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
73195         (defined __STDC__ && __STDC__)]:
73196         Remove nonprototyped code.
73197         Include <stdlib.h> unconditionally.
73198         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
73199         _obstack_allocated_p, _obstack_free, obstack_free,
73200         _obstack_memory_used, print_and_abort):
73201         Define using prototypes.
73202         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
73203         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
73204         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
73205         obstack_next_free, obstack_object_size, obstack_room) [0]:
73206         Remove unused, unprototyped code.
73207
73208         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
73209
73210         * lib/physmem.c (physmem_total, physmem_available, main): Define
73211         with prototypes.
73212
73213         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
73214         (main): Define with a prototype.
73215
73216         * lib/posixver.c (getenv): Remove decl.
73217
73218         * lib/putenv.c (malloc): Returns void *, not char *.
73219         Include <string.h> unconditionally.
73220         (strchr, memcpy, NULL): Do not define.
73221
73222         * lib/readtokens.c: Include readtokens.h first, to test interface.
73223         Include <stdlib.h>, <string.h> unconditionally.
73224         (init_tokenbuffer): Define with a prototype.
73225
73226         * lib/regex.c (PARAMS): Remove.  All uses removed.
73227         All uses of _RE_ARGS removed, too.
73228         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
73229         unconditionally.
73230         (bzero): Assume memset exists.
73231         (memcmp, memcpy, NULL): Remove.
73232         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
73233         char, or assignments to local vars of type signed char.
73234         (init_syntax_once, PREFIX(extract_number_and_incr),
73235         PREFIX(print_partial_compiled_pattern),
73236         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
73237         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
73238         PREFIX(regex_grow_registers), PREFIX(regex_compile),
73239         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
73240         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
73241         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
73242         wcs_compile_range, byte_compile_range, truncate_wchar,
73243         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
73244         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
73245         count_mbs_length, wcs_re_match_2_internal,
73246         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
73247         PREFIX(alt_match_null_string_p),
73248         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
73249         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
73250         regfree, PREFIX(extract_number)): Define with prototype.  Remove
73251         now-unnecessary declaration, if any.
73252         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
73253         regcomp, regexec):
73254         Remove now-unnecessary casts among pointer types.
73255         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
73256
73257         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
73258         (free): Remove decl.
73259
73260         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
73261
73262         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
73263         (free): Remove decl.
73264
73265         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
73266         * lib/xgetcwd.c: Likewise.
73267
73268         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
73269         (free): Remove decl.
73270
73271         * lib/strchrnul.c (strchrnul): Define with a prototype.
73272         Fix bug: c_in was not converted to char before searching.
73273
73274         The following changes are not K&R related:
73275
73276         * lib/group-member.h: Include <sys/types.h>, so that this file is
73277         self-contained.
73278         * lib/makepath.h: Likewise.
73279
73280         * lib/getusershell.c (readname, default_index, line_size, readname):
73281         Use size_t, not int, for sizes.
73282         (readname): If the size overflows, report an error instead of
73283         looping forever.
73284
73285 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73286
73287         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
73288         libc.
73289
73290 2003-09-09  Paul Eggert  <eggert@twinsun.com>
73291
73292         * README: New section: portability guidelines.
73293
73294 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73295
73296         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
73297         C89 spec.
73298
73299 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
73300
73301         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
73302
73303 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73304
73305         Assume C89 or better; remove K&R cruft.
73306         A few of these changes were first proposed by Derek Robert Price
73307         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
73308
73309         * lib/addext.c: Include <string.h> unconditionally.
73310         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
73311         Don't declare getenv or malloc.
73312
73313         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
73314         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
73315         (NULL): Remove.
73316         (find_stack_direction, alloca): Use prototypes.
73317
73318         * lib/atexit.c (atexit): Define using a prototype.
73319
73320         * lib/basename.c, dirname.c, stripslash.c:
73321         Include <string.h> unconditionally.
73322
73323         * lib/bcopy.c: Include <stddef.h>.
73324         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
73325
73326         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
73327
73328         * lib/error.h (error, error_at_line, error_print_progname)
73329         [! (defined (__STDC__) && __STDC__)]: Remove decls.
73330         * lib/error.c: Include error.h first, to check interface.
73331         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73332         (VA_START): Remove; all uses changeed to va_start.
73333         (exit, strerror): Remove decls.
73334         (error_print_progname): Prototype uncondionally.
73335         Don't include <errno.h>; no longer needed.
73336         (private_strerror): Remove.
73337         (error_tail): Always define.
73338         (error, error_at_line): Assume C89 or better; always use prototypes.
73339         * lib/fatal.c: Include "fatal.h" first, to test interface.
73340         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
73341         (VA_START): Remove; all uses changed to va_start.
73342         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
73343         this case.
73344         (exit): Remove decl.
73345         (fatal): Prototype unconditionally.  Assume va_start works.
73346         Abort at end, to pacify gcc.
73347
73348         * lib/euidaccess.c (main): Define with a prototype.
73349
73350         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
73351
73352         * lib/exitfail.c: Include <stdlib.h> unconditionally.
73353
73354         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
73355         prototypes.
73356         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
73357         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
73358         (getenv): Remove decl.
73359         (fnmatch): Define using a prototype.
73360         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
73361         (FCT): Define using a prototype.
73362
73363         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
73364
73365         * lib/gethostname.c: Include <stddef.h>.
73366         (gethostname): Define with prototype.  Length is size_t, not int.
73367
73368 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73369
73370         Assume C89 or better; remove K&R cruft.
73371         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
73372         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
73373         string.h, getenv, malloc.
73374         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
73375         headers.
73376         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
73377         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
73378         do not check for strerror.
73379         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
73380         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
73381         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
73382         do not check for doprnt or vprintf.
73383         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
73384         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
73385
73386 2003-09-08  Paul Eggert  <eggert@twinsun.com>
73387
73388         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
73389         getversion.c should have been removed then, but was accidentally
73390         preserved.
73391
73392         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
73393         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
73394
73395 2003-09-08  Karl Berry  <karl@gnu.org>
73396
73397         * config/config.sub, config.guess, srclistvars.sh: update from savannah
73398                 config, forget about prep.
73399
73400         * config/depcomp, missing: update from automake.
73401
73402 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73403
73404         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
73405         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73406
73407 2003-09-07  Paul Eggert  <eggert@twinsun.com>
73408
73409         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
73410         copy_tm_result.  Bug reported by Simon Josefsson in
73411         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
73412
73413 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73414
73415         * m4/time_r.m4: New file.
73416         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
73417         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
73418         is. Check for timegm declaration.
73419         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
73420         Do not check for gmtime_r.
73421         Replace mktime if __mktime_internal does not exist and if mktime
73422         hasn't been replaced already.
73423
73424 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73425
73426         * lib/time_r.c, lib/time_r.h: New files.
73427
73428         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
73429         __localtime_r.
73430         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
73431         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
73432
73433         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
73434         __gmtime_r.
73435         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
73436         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
73437         Include <time_r.h>.
73438
73439         * lib/timegm.c: Switch to glibc implementation, with the following
73440         changes:
73441         [defined HAVE_CONFIG_H]: Include <config.h>.
73442         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
73443         (__mktime_internal) [!defined _LIBC]: New decl.
73444         (__gmtime_r) [!defined _LIBC]: New macro and function.
73445         (timegm): Use a prototype, since gnulib assumes C89.
73446         Do not bother declaring tmp to be const, as it's not really usefu.
73447         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
73448         (timegm): Declare only if HAVE_DECL_TIMEGM.
73449
73450 2003-09-06  Paul Eggert  <eggert@twinsun.com>
73451
73452         * MODULES.html.sh (func_all_modules): Add time_r.
73453         * modules/time_r: New file.
73454         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
73455         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
73456
73457 2003-09-03  Paul Eggert  <eggert@twinsun.com>
73458
73459         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
73460         Bug reported by Lute Kamstra in
73461         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
73462
73463         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
73464         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
73465         course with correspondingly smaller numbers for tomorrow and
73466         yesterday.  From Tadayoshi Funaba.  Originally installed into
73467         sh-utils on 1999-08-07, but the patch got lost (I guess during the
73468         coreutils merge?).
73469
73470 2003-08-31  Simon Josefsson  <jas@extundo.com>
73471
73472         * modules/timegm: New file.
73473         * MODULES.html.sh (func_all_modules): Add timegm.
73474
73475 2003-08-31  Simon Josefsson  <jas@extundo.com>
73476
73477         * m4/timegm.m4: New file.
73478
73479 2003-08-31  Simon Josefsson  <jas@extundo.com>
73480
73481         * lib/timegm.h: New file.
73482         * lib/timegm.c: New file.  Based on
73483         wget-1.8.2/src/http.c:mktime_from_utc.
73484
73485 2003-08-31  Karl Berry  <karl@gnu.org>
73486
73487         * lib/argp.h: update from libc.
73488
73489 2003-08-28  Bruno Haible  <bruno@clisp.org>
73490
73491         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
73492         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
73493         followed by '#define fnmatch fnmatch_posix' gives an error.
73494
73495 2003-08-28  Bruno Haible  <bruno@clisp.org>
73496
73497         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
73498         warning on QNX, which defines O_BINARY to 000000.
73499
73500 2003-08-27  Jim Meyering  <jim@meyering.net>
73501
73502         * m4/mkstemp.m4: Require that the system mkstemp be able to create
73503         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
73504         would fail after 32.  Reported by Danny Levinson.  Details here:
73505         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
73506
73507 2003-08-24  Bruno Haible  <bruno@clisp.org>
73508
73509         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
73510         MSVC7 <stdio.h> is included later.
73511
73512 2003-08-22  Simon Josefsson  <jas@extundo.com>
73513
73514         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
73515
73516 2003-08-20  Karl Berry  <karl@gnu.org>
73517
73518         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
73519
73520 2003-08-20  Bruno Haible  <bruno@clisp.org>
73521
73522         * modules/progname: New file.
73523         * MODULES.html.sh (func_all_modules): Add progname.
73524
73525 2003-08-20  Bruno Haible  <bruno@clisp.org>
73526
73527         * lib/progname.h: New file, from GNU gettext.
73528         * lib/progname.c: New file, from GNU gettext.
73529         * lib/progreloc.c: New file, from GNU gettext.
73530
73531 2003-08-19  Jim Meyering  <jim@meyering.net>
73532
73533         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
73534         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
73535
73536 2003-08-19  Bruno Haible  <bruno@clisp.org>
73537
73538         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
73539         more.
73540
73541 2003-08-19  Bruno Haible  <bruno@clisp.org>
73542
73543         * lib/xstrdup.c: Assume <string.h> exists.
73544
73545 2003-08-18  Paul Eggert  <eggert@twinsun.com>
73546
73547         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
73548         in makefile rules.
73549
73550 2003-08-18  Jim Meyering  <jim@meyering.net>
73551
73552         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
73553         * m4/lib-ld.m4: Likewise.
73554
73555 2003-08-18  Jim Meyering  <jim@meyering.net>
73556
73557         * lib/setenv.h: Indent nested cpp directive.
73558         * lib/vasnprintf.c: Remove trailing blanks.
73559
73560 2003-08-17  Simon Josefsson  <jas@extundo.com>
73561
73562         * modules/xstrndup: New file.
73563         * MODULES.html.sh (func_all_modules): Add xstrndup.
73564
73565 2003-08-17  Simon Josefsson  <jas@extundo.com>
73566
73567         * modules/argp: Fix autoconf macro name. Add more dependencies.
73568
73569 2003-08-17  Simon Josefsson  <jas@extundo.com>
73570
73571         * m4/xstrndup.m4: New file.
73572
73573 2003-08-17  Simon Josefsson  <jas@extundo.com>
73574
73575         * m4/argp.m4: New file.
73576
73577 2003-08-17  Simon Josefsson  <jas@extundo.com>
73578             Bruno Haible  <bruno@clisp.org>
73579
73580         * lib/xstrndup.h: New file.
73581         * lib/xstrndup.c: New file.
73582
73583 2003-08-17  Bruno Haible  <bruno@clisp.org>
73584
73585         * modules/strndup (Files, Include): Add lib/strndup.h.
73586
73587 2003-08-17  Bruno Haible  <bruno@clisp.org>
73588
73589         * modules/euidaccess (Files): Add lib/euidaccess.h.
73590
73591 2003-08-17  Bruno Haible  <bruno@clisp.org>
73592
73593         * lib/strndup.h: New file.
73594
73595 2003-08-17  Bruno Haible  <bruno@clisp.org>
73596
73597         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
73598         like AC_GNU_SOURCE.
73599         * modules/extensions (configure.ac): Comment out the invocation of
73600         gl_USE_SYSTEM_EXTENSIONS.
73601
73602 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73603
73604         Merges from coreutils, etc.
73605         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
73606         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
73607         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
73608         fixing a typo.
73609         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
73610         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
73611
73612 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73613
73614         Document merge from coreutils.
73615         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
73616         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
73617         * modules/utime: Add m4/utimes-null.m4.
73618
73619 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73620
73621         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
73622         space, undoing this 2003-08-12 change:
73623         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73624
73625 2003-08-16  Paul Eggert  <eggert@twinsun.com>
73626
73627         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
73628         strtoul.c from libc, undoing this 2003-08-12 change:
73629         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
73630
73631 2003-08-16  Jim Meyering  <jim@meyering.net>
73632
73633         Merges from coreutils.
73634         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
73635         prefix.  Adjust cache variables similarly.  Create 500 rather than
73636         just 300 files, to exercise bug on Darwin6.5, too.
73637         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
73638         $missing_dir.
73639         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
73640         AM_SYS_POSIX_TERMIOS.
73641         Reported by mkc@mathdogs.com.
73642         Also change use of $am_cv_sys_posix_termios
73643         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
73644         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
73645         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
73646         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
73647         in /proc/mounts until it finds one with matching device number.  This
73648         is unnecessary when the FILE argument *is* a mount point.  No stat call
73649         is necessary in that case.  So, disable the statvfs-testing code on
73650         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
73651         as RedHat bug# 84846.
73652         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73653         to 1MB, so as not to render systems with no stack size limit (e.g.,
73654         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73655         Include <unistd.h>.  On some systems,
73656         it is required for the definition of _SC_PAGESIZE.
73657
73658 2003-08-16  Jim Meyering  <jim@meyering.net>
73659
73660         Merge from coreutils.
73661         * lib/xstrtoimax.c: #else #if -> #elif.
73662         * lib/xstrtoumax.c: Likewise.
73663
73664 2003-08-16  Jim Meyering  <jim@meyering.net>
73665
73666         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
73667         * m4/utimes.m4: Removed.
73668         * m4/utimes-null.m4: Renamed from utimes.m4.
73669
73670         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
73671         to 1MB, so as not to render systems with no stack size limit (e.g.,
73672         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
73673         Include <unistd.h>.  On some systems,
73674         it is required for the definition of _SC_PAGESIZE.
73675
73676 2003-08-16  Jim Meyering  <jim@meyering.net>
73677         and Paul Eggert  <eggert@cs.ucla.edu>
73678
73679         Merges from coreutils, etc.
73680
73681         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
73682         using the latest version from cvs.  This avoids problems with #line
73683         directives using a vendor (Sun) compiler.
73684         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
73685         Don't set GETGROUPS_LIB here; now it's
73686         done via getgroups.m4's wrapper function.
73687         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
73688         rather than just in sh-util/configure.in, so that the
73689         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
73690         same.
73691         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
73692         AC_FUNC_GETLOADAVG where to find getloadavg.c.
73693         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
73694         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
73695         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
73696         Remove code that is now done by the newly-required macros.
73697         Append $(EXEEXT) to DF_PROG.
73698         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
73699         Do not invoke or require the following here,
73700         since prereq.m4 or some gnulib .m4 now does this for us:
73701         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
73702         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
73703         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
73704         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
73705         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
73706         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
73707         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
73708         AC_FUNC_OBSTACK.
73709         Do not replace the following functions, as this is now the job
73710         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
73711         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
73712         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
73713         atexit getpass, strdup, getpagesize.
73714         Replace 'raise'.
73715         Do not check for the following functions, as this is now the job
73716         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
73717         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
73718         setregid.
73719         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
73720         Check for sys/sysctl.h.
73721         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
73722         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
73723         of checking for ssize_t ourselves.
73724
73725         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
73726         Require every macro that gnulib/modules/* suggests for us.
73727         (jm_PREREQ_ADDEXT): New macro.
73728         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
73729         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
73730
73731         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
73732         (gl_PHYSMEM): Use it.
73733         Also check for `table' function.
73734         Check for new headers and functions.
73735         Add check for sys/sysmp.h.
73736         With suggestions from Kaveh Ghazi.
73737         Ignore headers that are present but cannot be compiled.  This
73738         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
73739         C 5.4.
73740
73741 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73742
73743         Document merge from coreutils.
73744         * modules/userspec: Depend on posixver.
73745         * modules/strftime: Depend on tzset.
73746
73747 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73748
73749         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
73750         rather than tab, after '#' in shell-script copyright notices.
73751         Suggested by Bruno Haible.
73752
73753 2003-08-15  Paul Eggert  <eggert@twinsun.com>
73754
73755         * config/srclist-update: Use three spaces, rather than tab, after '#'
73756         in shell-script copyright notices.  Suggested by Bruno Haible.
73757         Remove unnecessary parenthesization in regular expression.
73758
73759 2003-08-15  Jim Meyering  <jim@meyering.net>
73760
73761         Merge from coreutils.
73762         * lib/xgethostname.c: Include <stdlib.h>.
73763         (xghostname): Don't exit for anything other than memory-related
73764         failure; just return NULL.
73765         * lib/userspec.c: Include "posixver.h".
73766         (parse_user_spec): Accept `.' as a separator only
73767         in pre-POSIX-200112 mode.
73768         * lib/strtoimax.c: Use #elif rather than #else #if.
73769         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
73770         Remove function, now that we can rely on a working tzset function.
73771         [!_LIBC]: Ensure that the required autoconf test has been run.
73772         [!defined _NL_CURRENT && HAVE_STRFTIME]:
73773         Use underlying_strftime for %r.
73774         * lib/sha.c: Merge in some clean-up and optimization changes from
73775         glibc.
73776         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
73777         Ensure that it is a multiple of 64.
73778         Rearrange loop exit tests so as to avoid performing an
73779         additional fread after encountering an error or EOF.
73780         * lib/realloc.c: Update copyright date.
73781
73782 2003-08-15  Jim Meyering  <jim@meyering.net>
73783         and Paul Eggert  <eggert@twinsun.com>
73784
73785         Merge from coreutils.
73786         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
73787         member but strut utmpx does not.  Needed for AIX 4.3.3.
73788         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
73789
73790 2003-08-15  Jim Meyering  <jim@meyering.net>
73791         and Paul Eggert  <eggert@cs.ucla.edu>
73792
73793         Merges from coreutils, etc.
73794         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
73795         Require gl_FUNC_TZSET_CLOBBER.
73796         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
73797         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
73798         members.
73799
73800 2003-08-14  Paul Eggert  <eggert@twinsun.com>
73801
73802         Help the merge from coreutils.
73803         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
73804         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
73805         * m4/tzset.m4: Use it too.
73806
73807 2003-08-14  Paul Eggert  <eggert@twinsun.com>
73808
73809         * modules/tzset: New file.
73810
73811 2003-08-14  Jim Meyering  <jim@meyering.net>
73812
73813         Merges from coreutils.
73814         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
73815         variable names, rather than @FNMATCH_H@.
73816         * modules/alloca: Likewise for $(ALLOCA_H).
73817
73818         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
73819         the three copies of the literal target, `fnmatch.h'.
73820         * modules/alloca (alloca.h): Likewise.
73821
73822 2003-08-14  Jim Meyering  <jim@meyering.net>
73823
73824         Merge from coreutils.
73825         * m4/tzset.m4: New file.
73826         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
73827         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
73828         otherwise, AIX 5.1 systems would end up using the latter.
73829         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
73830         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
73831         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
73832         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
73833
73834 2003-08-14  Jim Meyering  <jim@meyering.net>
73835
73836         Merge from coreutils.
73837         * lib/obstack.h: Whitespace changes.
73838         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
73839         and xcalloc return values.
73840         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
73841         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
73842         hang on OSF/1 5.1 for DIR on both local and remote file systems.
73843         Reported by (and fix confirmed by) Nelson H. F. Beebe.
73844         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
73845         error from mntctl.
73846         Use mntctl's return value to drive the entry-processing loop, since
73847         we can't rely on the value of the vmt_length member in the last
73848         entry.  On some systems doing so could result in exhausting
73849         virtual memory.  Based in part on a patch from Mike Jetzer.
73850
73851 2003-08-14  Jim Meyering  <jim@meyering.net>
73852         and Paul Eggert  <eggert@twinsun.com>
73853
73854         Merges from coreutils, plus other fixes.
73855         * lib/physmem.c: Merge in portability changes from gcc/libiberty
73856         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
73857         for credits and details.  Thanks to Kaveh Ghazi for helping
73858         to keep these files in sync.
73859         (ARRAY_SIZE): Define it.
73860         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
73861         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
73862         (memcasecmp): Don't assume size_t fits in unsigned int.
73863         Remove casts and duplicate code.
73864         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
73865         (memcpy): Remove definition.
73866         Merge in some clean-up and optimization changes from glibc.
73867         [BLOCKSIZE]: Move definition to top of file.
73868         Ensure that it is a multiple of 64.
73869         Rearrange loop exit tests so as to avoid performing an
73870         additional fread after encountering an error or EOF.
73871         * lib/md5.h (md5_uintptr): Define.
73872         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
73873         return to the initial working directory.  Preserve errno
73874         for caller.
73875         * lib/idcache.c: Include "xalloc.h".
73876         (xmalloc, xrealloc): Remove decls.
73877         (getuser): Remove casts no longer required in C89.
73878         * lib/human.c: Include stdio.h, for sprintf.
73879         * lib/group-member.c: Include "xalloc.h".
73880         (xmalloc, xrealloc): Remove decls.
73881         (get_group_info): Remove casts no longer required in C89.
73882         * lib/getusershell.c (readname): Remove casts no longer required in
73883         C89.
73884         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
73885         * lib/getline.c: Whitespace fix, from coreutils.
73886
73887 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73888
73889         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
73890         Check for isascii.
73891
73892         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73893         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73894         Undo previous (whitespace-only) change.
73895
73896 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73897
73898         * lib/exclude.c: Include <ctype.h>
73899         (IN_CTYPE_DOMAIN): New macro.
73900         (is_space): New fn.
73901         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
73902         and empty lines.
73903
73904         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73905         Undo previous (whitespace-only) change.
73906
73907 2003-08-13  Paul Eggert  <eggert@twinsun.com>
73908
73909         * config/srclist-update: Change update back to the old behavior,
73910         leaving whitespace alone.  Use one 'sed' command rather than a
73911         pipeline.
73912         (fixlicense): Now a variable, not a function.
73913         (remove_trailing_blanks): Remove.
73914         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
73915         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73916         Undo previous (whitespace-only) change.
73917
73918 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73919
73920         Merge from coreutils.
73921         * modules/euidaccess: Add lib_SOURCES, include for new
73922         file euidaccess.h
73923
73924 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73925
73926         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
73927         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
73928         Normalize leading white space and remove trailing white space.
73929
73930         Merge from coreutils
73931         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
73932
73933         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
73934         0.12.1.  These files are now being upgraded automatically by
73935         ../config/srclist-update.
73936
73937 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73938
73939         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
73940         Normalize leading white space and remove trailing white space.
73941         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
73942         notice, as per ../config/srclist-update.
73943
73944         Merge from coreutils.
73945         * lib/euidaccess.h: New file.
73946         * lib/euidaccess.c: Include it.
73947         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
73948         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
73949         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
73950
73951 2003-08-12  Paul Eggert  <eggert@twinsun.com>
73952
73953         * config/srclist-update: Add copyright notice.
73954         (remove_id_lines, remove_trailing_blanks): New constants.
73955         (fixfile): Use them to normalize spacing a bit in copied files.
73956         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
73957         Normalize leading white space and remove trailing white space.
73958
73959         * config/texinfo.tex: Sync with texinfo.
73960
73961         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
73962         strtoul.c from libc, to merge coreutils whitespace changes.
73963
73964         * config/srclist.txt: Get the following m4 files from gettext:
73965         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
73966         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
73967         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
73968         wint_t.m4.
73969
73970 2003-08-12  Karl Berry  <karl@gnu.org>
73971
73972         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
73973         been made.
73974
73975 2003-08-11  Paul Eggert  <eggert@twinsun.com>
73976
73977         * modules/gnu-source, m4/gnu-source.m4:
73978         Remove; we're assuming Autoconf 2.54 or later now.
73979         Suggested by Bruno Haible.
73980         * MODULES.html.sh (func_all_modules): Remove gnu-source.
73981
73982 2003-08-11  Bruno Haible  <bruno@clisp.org>
73983
73984         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
73985
73986 2003-08-11  Bruno Haible  <bruno@clisp.org>
73987
73988         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
73989         (vasnprintf): Use it instead of wcslen.
73990
73991 2003-08-11  Bruno Haible  <bruno@clisp.org>
73992
73993         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
73994         value to ensure that _Bool promotes to int. Use #define for _Bool when
73995         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
73996
73997 2003-08-10  Karl Berry  <karl@gnu.org>
73998
73999         * lib/regex.h: update from libc (whitespace fix).
74000
74001 2003-08-09  Paul Eggert  <eggert@twinsun.com>
74002
74003         Merge some files from coreutils.  These changes were
74004         originally made by Jim Meyering.
74005         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
74006         many older Unixes require this.
74007         * lib/alloca.c (alloca): Remove cast to argument of free;
74008         no longer needed in C89.
74009         * lib/alloca_.h, regex.h: Fix white space to match
74010         what GNU indent does.
74011
74012 2003-08-09  Paul Eggert  <eggert@twinsun.com>
74013
74014         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
74015         apparently Emacs's Unicode mode got confused before my 2003-08-05
74016         checkin.
74017
74018 2003-08-08  Paul Eggert  <eggert@twinsun.com>
74019
74020         * m4/extensions.m4: New file.
74021         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
74022         Require gl_USE_SYSTEM_EXTENSIONS.
74023         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
74024         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
74025
74026 2003-08-08  Paul Eggert  <eggert@twinsun.com>
74027
74028         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
74029         * modules/extensions, modules/gnu-source: New files.
74030         * modules/timespec, modules/unlocked-io: Depend on extensions.
74031
74032 2003-08-07  Paul Eggert  <eggert@twinsun.com>
74033
74034         * modules/restrict: New file.
74035         * MODULES.html.sh (func_all_modules): Add restrict.
74036         * modules/regex: Depend on restrict.
74037
74038 2003-08-07  Paul Eggert  <eggert@twinsun.com>
74039
74040         * m4/restrict.m4: New file.
74041         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
74042
74043 2003-08-07  Bruno Haible  <bruno@clisp.org>
74044
74045         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
74046         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
74047
74048 2003-08-07  Bruno Haible  <bruno@clisp.org>
74049
74050         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
74051         makes the module 'getndelim2' compatible with the module 'getline'.
74052
74053 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74054
74055         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
74056         byte with "\201" to avoid glitches when editing that source file
74057         with multi-gnome-terminal.
74058
74059 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74060
74061         * lib/bumpalloc.h: Remove.
74062
74063 2003-08-05  Paul Eggert  <eggert@twinsun.com>
74064
74065         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
74066         * modules/bumpalloc: Remove.
74067
74068 2003-08-04  Paul Eggert  <eggert@twinsun.com>
74069
74070         * lib/getloadavg.c: Change copyright notice and spacing to conform to
74071         GNU coding style.
74072
74073         Merge from coreutils.
74074         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
74075         1. From glibc.
74076         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
74077         from Karl Berry, implemented by Jim Meyering.
74078         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
74079         from Dmitry V. Levin.
74080         Remove anachronistic cast of xrealloc.
74081         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
74082         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
74083         type. Otherwise, it wouldn't compile with at least /bin/cc on
74084         ymp-cray-unicos9.0.2.X.
74085         Combine two mostly-identical uses of alloca into one.
74086         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
74087
74088 2003-08-04  Dave Love  <d.love@dl.ac.uk>
74089
74090         [From Emacs.]
74091
74092         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
74093         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
74094         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
74095         obsolete NLIST_NAME_UNION.
74096         [__GNU__]: Undef BSD and FSCALE.
74097         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
74098
74099 2003-08-03  Paul Eggert  <eggert@twinsun.com>
74100
74101         * lib/stdbool_.h (_Bool): Make it signed char, instead of
74102         an enum type, so that it's guaranteed to promote to int.  See:
74103         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
74104
74105 2003-08-03  Karl Berry  <karl@gnu.org>
74106
74107         * config/depcomp: update from automake.
74108
74109 2003-07-31  Paul Eggert  <eggert@twinsun.com>
74110
74111         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
74112         (strerror): Don't assume that a printable int fits in 14 bytes.
74113
74114 2003-07-31  Bruno Haible  <bruno@clisp.org>
74115
74116         * modules/getpass-gnu: New file.
74117         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
74118
74119 2003-07-31  Bruno Haible  <bruno@clisp.org>
74120
74121         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
74122
74123 2003-07-24  Karl Berry  <karl@gnu.org>
74124
74125         * config/missing: update from automake.
74126
74127 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
74128             Bruno Haible  <bruno@clisp.org>
74129
74130         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
74131         * lib/getline.c (getline, getdelim): Likewise.
74132         Remove _GNU_SOURCE define; now it's defined in config.h through
74133         m4/getline.m4.
74134
74135 2003-07-23  Karl Berry  <karl@gnu.org>
74136
74137         * config/config.sub: update from prep.
74138
74139 2003-07-22  Paul Eggert  <eggert@twinsun.com>
74140
74141         * modules/xalloc (Depends-on): Add exitfail.
74142         * modules/xmemcoll: Likewise.
74143
74144 2003-07-22  Paul Eggert  <eggert@twinsun.com>
74145
74146         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
74147         over-parenthesization in macros.
74148
74149         Sync with coreutils.
74150
74151         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
74152         required by C99.
74153
74154         Use `exit_failure' for xalloc and xmemcoll instead of their own
74155         private exit-failure variables.
74156         * lib/xalloc.h (xalloc_exit_failure): Remove.
74157         * lib/xmalloc.c: Likewise.  Include exitfail.h.
74158         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
74159         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
74160         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
74161         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
74162
74163 2003-07-20  Jim Meyering  <jim@meyering.net>
74164
74165         * modules/closeout (Depends-on): Add exitfail.
74166         Suggestion from Bruno Haible.
74167
74168 2003-07-19  Karl Berry  <karl@gnu.org>
74169
74170         * config/config.sub: update from prep.
74171
74172 2003-07-18  Paul Eggert  <eggert@twinsun.com>
74173
74174         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
74175         Remove.
74176         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
74177         to test that it can stand by itself.  Include "exitfail.h".
74178         Clients should set exit_failure instead.
74179         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
74180
74181 2003-07-18  Bruno Haible  <bruno@clisp.org>
74182
74183         * modules/getndelim2: New file.
74184         * modules/getline: Share files with module getndelim2.
74185         * modules/getnline: Depend on getndelim2 instead of sharing files with
74186         it. Add getnline.c to lib_SOURCES.
74187         * MODULES.html.sh (func_all_modules): Add getndelim2.
74188
74189 2003-07-18  Bruno Haible  <bruno@clisp.org>
74190
74191         * m4/getndelim2.m4: New file.
74192         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
74193         invoke gl_PREREQ_GETNDELIM2.
74194         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
74195         gl_PREREQ_GETNDELIM2.
74196         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
74197         gl_GETNDELIM2.
74198
74199 2003-07-18  Bruno Haible  <bruno@clisp.org>
74200
74201         * lib/getndelim2.h: New file.
74202         * lib/getndelim2.c: Make into a module of its own. Include config.h,
74203         getndelim2.h.
74204         (getndelim2): Make non-static. Change return type to ssize_t.
74205         * lib/getline.h: Change argument names.
74206         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
74207         * lib/getnline.c: Include getndelim2.h.
74208
74209 2003-07-18  Andreas Schwab  <schwab@suse.de>
74210
74211         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
74212
74213 2003-07-17  Karl Berry  <karl@gnu.org>
74214
74215         * config/config.sub: update from prep.
74216
74217 2003-07-17  Bruno Haible  <bruno@clisp.org>
74218
74219         * modules/getnline: New file.
74220         * modules/getline: Add lib/getndelim2.c to source file list.
74221         * MODULES.html.sh (func_all_modules): Add getnline.
74222
74223 2003-07-17  Bruno Haible  <bruno@clisp.org>
74224
74225         * m4/getnline.m4: New file.
74226
74227 2003-07-17  Bruno Haible  <bruno@clisp.org>
74228
74229         * m4/Makefile.am.in: Remove file.
74230         * m4/Makefile.am: Remove file.
74231         * m4/Makefile.in: Remove file.
74232
74233 2003-07-17  Bruno Haible  <bruno@clisp.org>
74234
74235         * lib/getnline.h: New file.
74236         * lib/getnline.c: New file.
74237         * lib/getndelim2.c: New file, extracted from getline.c.
74238         (getndelim2): Renamed from getdelim2, with added nmax argument.
74239         * lib/getline.c: Include getndelim2.c.
74240         (getdelim2): Moved out to getndelim2.c.
74241         (getline, getdelim): Update.
74242
74243 2003-07-17  Bruno Haible  <bruno@clisp.org>
74244
74245         * lib/Makefile.am: Remove file.
74246         * lib/Makefile.in: Remove file.
74247
74248 2003-07-17  Bruno Haible  <bruno@clisp.org>
74249
74250         * configure.in: Remove file.
74251         * Makefile.in: Remove file.
74252
74253 2003-07-17  Bruno Haible  <bruno@clisp.org>
74254
74255         * MODULES.html.sh: Put the </BODY> right before </HTML>.
74256
74257 2003-07-16  Karl Berry  <karl@gnu.org>
74258
74259         * config/srclist-update: was running fixlicense twice, which caused
74260                 texinfo.tex to be nullified for some reason.  Simplify,
74261                 $gplsrc is no longer needed as far as I can see?
74262
74263 2003-07-16  Jim Meyering  <jim@meyering.net>
74264
74265         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
74266
74267 2003-07-15  Paul Eggert  <eggert@twinsun.com>
74268
74269         * config/srclist.txt: Get the following files from gettext-runtime/intl
74270         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
74271         ref-del.sin.  From Bruno Haible.
74272         * config/srclist-update (fixfile): Change grep pattern again, since the
74273         previous fix didn't work (there was another trailing $).  Use
74274         '[$]' to escape the $s.
74275
74276 2003-07-15  Karl Berry  <karl@gnu.org>
74277
74278         * lib/vasnprintf.c: update from gettext.
74279
74280 2003-07-15  Karl Berry  <karl@gnu.org>
74281
74282         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
74283         gets expanded when surrounded by '$'.
74284
74285 2003-07-15  Jim Meyering  <jim@meyering.net>
74286
74287         * modules/save-cwd: Don't depend on error.  From Derek Price.
74288
74289 2003-07-15  Jim Meyering  <jim@meyering.net>
74290
74291         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
74292
74293 2003-07-14  Simon Josefsson  <jas@extundo.com>
74294
74295         * modules/mempcpy: New file.
74296         * MODULES.html.sh (func_all_modules): Add mempcpy.
74297
74298 2003-07-14  Simon Josefsson  <jas@extundo.com>
74299
74300         * m4/mempcpy.m4: New file.
74301
74302 2003-07-14  Simon Josefsson  <jas@extundo.com>
74303
74304         * lib/mempcpy.h: New file.
74305         * lib/mempcpy.c: New file.
74306
74307 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74308
74309         * modules/getdate, modules/posixtm: Depend on mktime.
74310
74311 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74312
74313         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
74314         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
74315         unicodeio.c, unicodeio.h, unlocked-io.h:
74316         Switch from LGPL to GPL.
74317
74318 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74319
74320         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
74321         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
74322         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
74323         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
74324         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
74325         updated automatically by ../config/srclist-update.  This changes
74326         their license from LPGL to GPL.
74327
74328 2003-07-14  Paul Eggert  <eggert@twinsun.com>
74329
74330         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
74331         assumed to refer to the root of the most recent stable gettext version.
74332         * config/srclistvars.sh: Add defaults for eggert.
74333         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
74334         Match "This program" as well as "The program".  This is needed
74335         for gettext.
74336
74337 2003-07-14  Jim Meyering  <jim@meyering.net>
74338
74339         Don't emit diagnostics.  Let callers do that.
74340         * lib/save-cwd.c: Don't include "error.h".
74341         (save_cwd): Don't call error.  Ensure that errno is valid
74342         when returning nonzero.
74343
74344         * lib/save-cwd.h (restore_cwd): Update prototype.
74345         * lib/save-cwd.c (restore_cwd): Remove two parameters.
74346         Simplify.  Don't call error upon failure.  Let callers do that.
74347         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
74348         when auditing is enabled.  But don't bother updating the #if.
74349
74350 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
74351
74352         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
74353         it breaks C++ compilation.
74354         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
74355
74356 2003-07-10  Simon Josefsson  <jas@extundo.com>
74357
74358         * modules/strchrnul (Makefile.am): Add strchrnul.h.
74359
74360 2003-07-10  Jim Meyering  <jim@meyering.net>
74361
74362         * m4/clock_time.m4: Remove trailing blank.
74363         * m4/intmax_t.m4: Likewise.
74364
74365 2003-07-10  Jim Meyering  <jim@meyering.net>
74366
74367         * lib/vasnprintf.c: Remove trailing blanks.
74368         Make cpp indentation consistent.
74369
74370 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74371
74372         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
74373         posixver.c, strftime.c, strnlen.c, strverscmp.c:
74374         Switch from LGPL to GPL.
74375
74376 2003-07-09  Paul Eggert  <eggert@twinsun.com>
74377
74378         * config/srclist.txt: Sort sublists.  Add
74379         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
74380         that differ from gnulib for one reason or another; we'd like this list
74381         to be smaller but for now let's document what we have.
74382
74383 2003-07-08  Paul Eggert  <eggert@twinsun.com>
74384
74385         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
74386         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
74387         and sweeter "eval x=$x".
74388         * config/srclist.txt: Get lib/argp* from glibc.
74389
74390 2003-07-07  Paul Eggert  <eggert@twinsun.com>
74391
74392         * lib/mktime.c: Fix some boundary cases and remove need for floating
74393         point.
74394
74395         Issue a compile-time diagnostic if time_t is floating point, or if
74396         two's complement arithmetic is not in effect, or if arithmetic
74397         right shift does not propagate the sign.  These assumptions were
74398         all in the original code but they weren't checked.
74399
74400         (TIME_T_MIDPOINT, verify): New macros.
74401         (__isleap): Remove; it has integer overflow problems.
74402         (leapyear): New function, without those problems.
74403         (ydhms_tm_diff): Remove; splitting into two parts.
74404         (ydhms_diff): New function, containing the arithmetic part of
74405         the old ydhms_tm_diff function.  Issue a compile-time
74406         diagnostic if we are not using C99 integer division.
74407         Avoid casts when possible.
74408         (guess_time_tm): New function, containing the checking part of
74409         the old ydhms_tm_diff function.  Return the new value, rather than
74410         the difference between it and the old.  Accept a new argument T
74411         so that *T specifies the old value.  Check for overflow in the result.
74412
74413         (__mktime_internal): Use a time_t offset, not a long int offset.
74414         This undoes the 2003-06-04 change, which is no longer needed now
74415         that we have better overflow checking.
74416         (localtime_offset): Likewise.
74417
74418         (__mktime_internal): Avoid harmful overflow on hosts where time_t
74419         and long are 64-bit but int is only 32-bit.
74420         (ydhms_diff): Use long int to store year1 and yday1.
74421         Issue a compile-time diagnostic if long int is not wide enough.
74422
74423         (__mktime_internal): Use long int to store adjusted year and yday.
74424         Use plain C rather than preprocessor commands, if that doesn't
74425         affect efficiency.
74426         Check for overflow (and try to repair) after each probe
74427         rather than checking only at the very end.  This avoids some bugs
74428         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
74429         does not equal GMT offset at maximum time).
74430         Use integer to check for overflow rather than floating point; this
74431         is more portable to non-IEEE hosts, and is a tad faster.
74432         When we detect that we are oscillating between two values,
74433         don't check whether tm_isdst has the requested value, since
74434         we already know the answer.  When tm_isdst has the wrong value,
74435         use a different heuristic to find the right one, based on the
74436         extreme values actually observed in practice in tz2003a,
74437         rather than the (overly optimistic) "previous 3 calendar quarters".
74438
74439         (not_equal_tm, print_tm, check_result): Use "const T" rather than
74440         "T const" to accommodate glibc style.
74441         (check_result): Use less-confusing report format.  "long" -> "long int.
74442         (main): Likewise.
74443         Don't loop if the iteration overflows time_t.
74444         Allow a negative step in the iteration.
74445
74446 2003-07-06  Karl Berry  <karl@gnu.org>
74447
74448         * config/depcomp: update from automake.
74449         * config/config.sub: update from prep.
74450
74451 2003-07-03  Karl Berry  <karl@gnu.org>
74452
74453         * config/config.guess: update from prep.
74454
74455 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74456
74457         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
74458         xreadlink.c now includes it unconditionally.
74459
74460 2003-07-01  Paul Eggert  <eggert@twinsun.com>
74461
74462         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
74463         having it depend on HAVE_SYS_TYPES_H.
74464
74465 2003-07-01  Bruno Haible  <bruno@clisp.org>
74466
74467         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
74468         <sys/types.h> should be sufficient.
74469         Reported by Paul Eggert.
74470
74471 2003-06-26  Karl Berry  <karl@gnu.org>
74472
74473         * config/depcomp: update from automake.
74474
74475 2003-06-26  Bruno Haible  <bruno@clisp.org>
74476
74477         * modules/human: Depend on module stdbool.
74478
74479 2003-06-25  Bruno Haible  <bruno@clisp.org>
74480
74481         * modules/readlink: New file.
74482         * modules/xreadlink: Depend on it.
74483         * MODULES.html.sh (func_all_modules): Add readlink.
74484
74485 2003-06-25  Bruno Haible  <bruno@clisp.org>
74486
74487         * m4/readlink.m4: New file.
74488
74489 2003-06-25  Bruno Haible  <bruno@clisp.org>
74490
74491         * lib/readlink.c: New file.
74492
74493 2003-06-22  Karl Berry  <karl@gnu.org>
74494
74495         * config/srclist.txt: update mkinstalldirs from automake.
74496         * config/mkinstalldirs: update.
74497
74498 2003-06-22  Bruno Haible  <bruno@clisp.org>
74499
74500         Portability to mingw32.
74501         * m4/ssize_t.m4: New file, from GNU gettext.
74502         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
74503         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
74504
74505 2003-06-22  Bruno Haible  <bruno@clisp.org>
74506
74507         * modules/safe-read: Add m4/ssize_t.m4.
74508         * modules/xreadlink: Add m4/ssize_t.m4.
74509
74510 2003-06-20  Bruno Haible  <bruno@clisp.org>
74511
74512         Assume C89, so PARAMS isn't needed.
74513         * lib/unicodeio.h (PARAMS): Remove.
74514         * lib/unicodeio.c: Don't use PARAMS.
74515
74516 2003-06-18  Karl Berry  <karl@gnu.org>
74517
74518         * config/config.{guess,sub}: update from prep.
74519
74520 2003-06-18  Jim Meyering  <jim@meyering.net>
74521
74522         Merge changes from coreutils.
74523         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
74524         Remove explicit declarations of xmalloc and realloc.
74525         Include xalloc.h.
74526         (read_utmp): Remove anachronistic cast of xmalloc.
74527
74528 2003-06-17  Paul Eggert  <eggert@twinsun.com>
74529
74530         Assume C89, so PARAMS isn't needed.
74531         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
74532         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
74533         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
74534         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
74535         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
74536         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
74537         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
74538         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
74539         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
74540         lib/xstrtod.h, lib/xstrtol.h: Likewise.
74541         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
74542         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
74543         no longer needed. Anyway, config.h should always be included before any
74544         other file.
74545
74546 2003-06-11  Simon Josefsson  <jas@extundo.com>
74547
74548         * modules/sysexits: New file.
74549         * MODULES.html.sh (func_all_modules): Add sysexits.
74550
74551 2003-06-11  Simon Josefsson  <jas@extundo.com>
74552
74553         * lib/sysexit_.h: New file.
74554
74555 2003-06-11  Derek Price  <derek@ximbiot.com>
74556
74557         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
74558         necessary.
74559
74560 2003-06-11  Bruno Haible  <bruno@clisp.org>
74561
74562         * m4/sysexits.m4: New file.
74563
74564 2003-06-10  Simon Josefsson  <jas@extundo.com>
74565
74566         * lib/argp.h: New file, from glibc.
74567         * lib/argp-ba.c: New file, from glibc.
74568         * lib/argp-eexst.c: New file, from glibc.
74569         * lib/argp-fmtstream.c: New file, from glibc.
74570         * lib/argp-fmtstream.h: New file, from glibc.
74571         * lib/argp-fs-xinl.c: New file, from glibc.
74572         * lib/argp-help.c: New file, from glibc.
74573         * lib/argp-namefrob.h: New file, from glibc.
74574         * lib/argp-parse.c: New file, from glibc.
74575         * lib/argp-pv.c: New file, from glibc.
74576         * lib/argp-pvh.c: New file, from glibc.
74577         * lib/argp-xinl.c: New file, from glibc.
74578
74579 2003-06-10  Simon Josefsson  <jas@extundo.com>
74580
74581         * modules/strchrnul: New file.
74582
74583 2003-06-10  Simon Josefsson  <jas@extundo.com>
74584
74585         * modules/argp: New file.
74586
74587 2003-06-10  Simon Josefsson  <jas@extundo.com>
74588
74589         * m4/strchrnul.m4: New file.
74590
74591 2003-06-10  Simon Josefsson  <jas@extundo.com>
74592
74593         * lib/strchrnul.h: New file.
74594         * lib/strchrnul.c: New file.
74595
74596 2003-06-10  Bruno Haible  <bruno@clisp.org>
74597
74598         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
74599
74600 2003-06-07  Karl Berry  <karl@gnu.org>
74601
74602         * config/config.{guess,sub}: update from prep.
74603
74604 2003-06-07  Jim Meyering  <jim@meyering.net>
74605
74606         * modules/strtod: Use $(...) notation, not @...@ for
74607         AC_REPLACE'd variables.
74608         * modules/localcharset: Likewise.
74609
74610 2003-06-07  Jim Meyering  <jim@meyering.net>
74611
74612         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
74613         in place of my name in the copyright comment.
74614         Remove definition and uses of __P.
74615
74616         From coreutils.
74617         * lib/stat.c: Don't declare xmalloc explicitly.
74618         Instead, include "xalloc.h".
74619         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
74620         xrealloc, and xcalloc return values.
74621         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
74622         Improve comment.
74623         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
74624
74625 2003-06-07  Bruno Haible  <bruno@clisp.org>
74626
74627         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
74628         avoid AC_CONFIG_LINKS.
74629         * modules/fnmatch (Makefile.am): Use explicit creation rule for
74630         fnmatch.h, to avoid AC_CONFIG_LINKS.
74631         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
74632
74633 2003-06-07  Bruno Haible  <bruno@clisp.org>
74634
74635         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
74636         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
74637         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74638         directory.
74639         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
74640         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
74641         directory.
74642
74643 2003-06-06  Jim Meyering  <jim@meyering.net>
74644
74645         Merge from coreutils.
74646         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
74647         Consolidate declarations and initializations of *_base* locals.
74648
74649         Merge from coreutils.
74650         This avoids a core dump on systems without GNU putenv,
74651         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
74652         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
74653         (unsetenv): New static function, from GNU libc.
74654         (rpl_putenv): Use it.
74655
74656         * lib/modechange.c: Remove trailing blanks.
74657
74658         Merge from coreutils.
74659         * lib/fsusage.c: Remove declaration of statfs.
74660         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
74661
74662         * lib/posixtm.c: Include <stdbool.h> unconditionally.
74663
74664 2003-06-06  Jim Meyering  <jim@meyering.net>
74665
74666         * lib/stdbool_.h: Renamed from stdbool.h.in.
74667
74668 2003-06-06  Jim Meyering  <jim@meyering.net>
74669             Bruno Haible  <bruno@clisp.org>
74670
74671         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
74672         Adjust Makefile.am snippet not to redirect directly to target.
74673         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
74674
74675 2003-06-05  Paul Eggert  <eggert@twinsun.com>
74676
74677         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
74678         mismatch, look in future quarters as well as past.  This fixes a
74679         bug when processing fall-backwards gaps immediately after a long
74680         period of daylight-saving time.
74681
74682         * lib/mktime.c: Assume freestanding C89 or better.
74683         (HAVE_LIMITS_H): Remove.  Assume it's 1.
74684         (__P): Remove; not used.
74685         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
74686         (mktime, not_equal_tm, print_tm, check_result,
74687         main): Use prototypes.  Use const * where appropriate.
74688         (main): Fix typo in testing code that uncovered by above changes.
74689         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
74690
74691 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74692
74693         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
74694         locale.h, localeconv.  This merges changes from coreutils.
74695
74696         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
74697         It can be removed after the next Autoconf is released.
74698         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
74699         needed.
74700
74701 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74702
74703         * lib/mktime.c: Fix Debian bug 177940
74704         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
74705         (localtime_offset): Now long int, not time_t, because we want it
74706         to be guaranteed to be signed.  All uses changed.
74707         (__mktime_internal): If overflow would occur when adding offset,
74708         don't add it.
74709
74710         Merge 'human' changes from coreutils.  Rewrite to support
74711         locale-specific notations like thousands separators.
74712         * lib/human.c: Simplify authorship notice.
74713         Include human.h immediately after config.h.
74714         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
74715         <limits.h>: Do not include, since human.h does.
74716         (SIZE_MAX, UINTMAX_MAX): New macros.
74717         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
74718         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
74719         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
74720         (power_letter): Renamed from suffixes.
74721         (generate_suffix_backwards): Remove.
74722         (adjust_value): Now takes int style (because of human.h changes)
74723         and long double value (for greater precision on some platforms).
74724         (group_number): New function.
74725         (human_readable): Use it.  Use integer options, not enum.
74726         Put the options before the sizes in the arg list.
74727         Support all the new options.
74728         The old human_readable function has been removed;
74729         use inttostr.h instead.
74730         (human_readable, default_block_size, humblock):
74731         Use uintmax_t, not int, for block sizes.
74732         (human_readable_inexact, block_size_types): Remove.
74733         (block_size_opts): New constant.
74734         (human_options): Renamed from human_block_size, with new signature
74735         that allows block sizes up to UINTMAX_MAX.  All callers changed.
74736         * lib/human.h: Add copyright and authorship notice.
74737         Include <limits.h> and <stdbool.h> unconditionally.
74738         (PARAMS): Remove.  All uses removed.
74739         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
74740         (enum human_inexact_style): Remove tag; now a nameless enum.
74741         (human_floor, human_ceiling, human_round_to_even): Now have
74742         values 2, 0, 1 rather than -1, 1, 0.
74743         (human_group_digits, human_suppress_point_zero, human_autoscale,
74744         human_base_1024, human_SI, human_B): New constants.
74745         (human_readable_inexact, human_block_size): Remove.
74746         (human_readable): Size args are now uintmax_t, not int.
74747         (human_options): New decl.
74748
74749         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
74750         unnecessary now that we assume C89 or better.  This change
74751         imported from coreutils.
74752
74753         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
74754         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
74755         in the 2003-05-30 sync from glibc.
74756
74757         .h files should stand alone, but we shouldn't include <sys/types.h>
74758         if we can get away with just <stddef.h>.
74759
74760         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
74761         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
74762         rather than <sys/types.h>, as we merely need size_t.
74763         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
74764         to get size_t.
74765         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
74766         Include <stdio.h>, to get FILE.
74767         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
74768         memcasecmp.h has included <stddef.h> and all we need is size_t.
74769         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
74770         our interface, instead of including <sys/types.h>
74771
74772 2003-06-04  Paul Eggert  <eggert@twinsun.com>
74773
74774         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
74775         now, as glibc mktime is buggy on non-glibc systems.
74776
74777 2003-06-03  Karl Berry  <karl@gnu.org>
74778
74779         * config/config.sub: update from prep.
74780
74781 2003-06-02  Paul Eggert  <eggert@twinsun.com>
74782
74783         [from coreutils]
74784         Fix some minor time-related bugs with POSIX time arguments.
74785         Some valid time stamps were being rejected (notably -1, and
74786         time stamps before 1900 on 64-bit hosts).  And some invalid
74787         time stamps were being accepted, e.g. September 31.
74788
74789         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
74790         that we can return (time_t) -1 successfully.
74791         * lib/posixtm.c: Likewise.
74792         [HAVE_STDBOOL_H]: Include <stdbool.h>.
74793         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
74794         (t): Remove static var.
74795         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
74796         of static var.  All uses changed.
74797         (year): Do not reject years before 1900; they can occur with
74798         64-bit time_t.
74799         (posix_time_parse): Do not check for out-of-range components;
74800         that is now the caller's responsibility, since our checks were
74801         only approximations.
74802         (posixtime): Use mktime to check for out-of-range components,
74803         since it knows them exactly.
74804         If mktime returns (time_t) -1, check whether an error actually occurred
74805         by invoking localtime on -1.
74806         (main) [TEST_POSIXTIME]: Check for input data errors, and report
74807         posixtime failures better.
74808         Improve the test data (in comments only).
74809
74810 2003-06-02  Karl Berry  <karl@gnu.org>
74811
74812         * config/mkinstalldirs (version): new variable.
74813         (--version): new option.
74814         (usage): improve message.
74815
74816 2003-05-30  Karl Berry  <karl@gnu.org>
74817
74818         * lib/mktime.c: update from libc.
74819
74820 2003-05-30  Bruno Haible  <bruno@clisp.org>
74821
74822         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
74823         * config/config.rpath: Upgrade to gettext-0.12.1.
74824
74825 2003-05-30  Bruno Haible  <bruno@clisp.org>
74826
74827         * m4/gettext.m4: Upgrade to gettext-0.12.1.
74828         * m4/nls.m4: New file, from gettext-0.12.1.
74829         * m4/po.m4: New file, from gettext-0.12.1.
74830         * m4/progtest.m4: Upgrade to gettext-0.12.1.
74831
74832 2003-05-30  Bruno Haible  <bruno@clisp.org>
74833
74834         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
74835         * lib/localcharset.h: Likewise.
74836         * lib/localcharset.c: Likewise.
74837
74838 2003-05-29  Karl Berry  <karl@gnu.org>
74839
74840         * config/config.rpath: update from gettext.
74841
74842 2003-05-28  Paul Eggert  <eggert@twinsun.com>
74843
74844         Assume the headers required for C89 freestanding compilers.
74845         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
74846         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
74847         * m4/human.m4 (gl_HUMAN): Likewise.
74848         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
74849         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
74850         * m4/userspec.m4 (gl_USERSPEC): Likewise.
74851         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
74852         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
74853         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
74854
74855 2003-05-28  Paul Eggert  <eggert@twinsun.com>
74856
74857         Assume the headers required for C89 freestanding compilers.
74858         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
74859         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
74860         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
74861         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
74862         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
74863         define, since <limits.h> is guaranteed to do that.
74864         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
74865         * lib/exclude.c: Include <stdbool.h> unconditionally.
74866         * lib/tempname.c: Include <stddef.h> unconditionally.
74867         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
74868         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
74869         <stddef.h> does that.
74870         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
74871         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
74872         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
74873         needed.
74874         * lib/xstrtol.c: Likewise.
74875         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
74876         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
74877
74878         * lib/addext.c (addext): Use assignment rather than cast, to avoid
74879         warnings on some platforms.
74880
74881         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
74882         arbitrarily.
74883
74884 2003-05-26  Jim Meyering  <jim@meyering.net>
74885
74886         Merge in a change from coreutils:
74887         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
74888         that is guaranteed to be `no'.  Use `no_such_member' to indicate
74889         that condition, rather than `-1' which is slightly misleading.
74890         Change the name of the cache variable to have the gl_ prefix.
74891         Prompted by a patch from Richard Dawe for DJGPP.
74892
74893 2003-05-24  Karl Berry  <karl@gnu.org>
74894
74895         * config/config.guess: update from prep.
74896
74897 2003-05-22  Karl Berry  <karl@gnu.org>
74898
74899         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
74900
74901 2003-05-20  Karl Berry  <karl@gnu.org>
74902
74903         * config/config.guess: update from prep.
74904
74905 2003-05-18  Karl Berry  <karl@gnu.org>
74906
74907         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
74908         might actually be set by the user.
74909
74910         * config/depcomp, install-sh, mdate-sh: update from automake.
74911
74912 2003-05-17  Bruno Haible  <bruno@clisp.org>
74913
74914         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
74915         invalid expansion for AC_EGREP_CPP.
74916         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
74917         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
74918         Suggested by Akim Demaille <akim@epita.fr> in
74919         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
74920
74921 2003-05-12  Jim Meyering  <jim@meyering.net>
74922
74923         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
74924         the space-padded-by-default conversion specifiers, %e, %k, %l.
74925
74926 2003-05-12  Bruno Haible  <bruno@clisp.org>
74927
74928         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
74929         the string is longer than 4 KB.
74930
74931 2003-05-11  Karl Berry  <karl@gnu.org>
74932
74933         * config/config.{guess,sub}: update from prep.
74934
74935 2003-05-09  Bruno Haible  <bruno@clisp.org>
74936
74937         * modules/error: Add m4/strerror_r.m4 to file list.
74938
74939 2003-05-03  Bruno Haible  <bruno@clisp.org>
74940
74941         Upgrade to Unicode-4.0.
74942         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
74943         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
74944         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
74945         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
74946         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
74947         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
74948         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
74949         Change width of U+E0100..U+E01EF from 1 to 0.
74950
74951 2003-04-25  Jim Meyering  <jim@meyering.net>
74952
74953         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
74954         of type size_t, not int.
74955
74956 2003-04-25  Bruno Haible  <bruno@clisp.org>
74957
74958         * lib/copy-file.c: Include <stddef.h>, for size_t.
74959
74960 2003-04-21  Paul Eggert  <eggert@twinsun.com>
74961
74962         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
74963         code which expansion is under static control.  Patch imported from
74964         Akim Demaille's patch to Bison; see
74965         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
74966
74967 2003-04-14  Bruno Haible  <bruno@clisp.org>
74968
74969         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
74970
74971 2003-04-11  Jim Meyering  <jim@meyering.net>
74972
74973         Merge changes from Coreutils.
74974
74975         2003-03-22  Jim Meyering  <jim@meyering.net>
74976
74977         * lib/strftime.c (widen): Cast alloca return value to proper type.
74978
74979         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
74980
74981         From GNU libc.
74982         * lib/strftime.c (my_strftime): Handle very large width
74983         specifications for numeric values correctly.  Improve checks for
74984         overflow.
74985
74986         2003-01-19  Jim Meyering  <jim@meyering.net>
74987
74988         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
74989         definitions.
74990         (nl_get_alt_digit) [! defined my_strftime]: Define.
74991         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
74992         _nl_get_alt_digit and _nl_get_walt_digit.
74993
74994         * lib/strftime.c (my_strftime): Merge in locale-related changes from
74995         libc. These changes have no effect outside of _LIBC.
74996
74997 2003-04-10  Bruno Haible  <bruno@clisp.org>
74998
74999         * modules/findprog: New file.
75000         * MODULES.html.sh (func_all_modules): Add it.
75001
75002 2003-04-10  Bruno Haible  <bruno@clisp.org>
75003
75004         * m4/findprog.m4: New file.
75005         * m4/eaccess.m4: New file.
75006
75007 2003-04-10  Bruno Haible  <bruno@clisp.org>
75008
75009         * lib/findprog.h: New file, from GNU gettext.
75010         * lib/findprog.c: New file, from GNU gettext.
75011
75012 2003-04-05  Jim Meyering  <jim@meyering.net>
75013
75014         Merge changes from Coreutils.
75015
75016         * lib/exclude.h (PARAMS): Remove definition and uses.
75017         * lib/exclude.c: Remove uses of `PARAMS'.
75018
75019         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
75020         Add test-cases for DOS filenames. Declare program_name.
75021         (main): Set up program_name.  Patch by Rich Dawe.
75022
75023         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
75024         error from mntctl.
75025         Use mntctl's return value to drive the entry-processing loop, since
75026         we can't rely on the value of the vmt_length member in the last
75027         entry.  On some systems doing so could result in exhausting
75028         virtual memory.  Based in part on a patch from Mike Jetzer.
75029
75030 2003-04-04  Bruno Haible  <bruno@clisp.org>
75031
75032         * modules/linebreak: New file.
75033         * MODULES.html.sh (func_all_modules): Add it.
75034
75035 2003-04-04  Bruno Haible  <bruno@clisp.org>
75036
75037         * m4/linebreak.m4: New file.
75038
75039 2003-04-04  Bruno Haible  <bruno@clisp.org>
75040
75041         * lib/linebreak.h: New file, from GNU gettext.
75042         * lib/linebreak.c: New file, from GNU gettext with slight
75043         modifications.
75044         * lib/lbrkprop.h: New file, from GNU gettext.
75045
75046 2003-04-03  Bruno Haible  <bruno@clisp.org>
75047
75048         * modules/utf8-ucs4: New file.
75049         * modules/utf16-ucs4: New file.
75050         * modules/ucs4-utf8: New file.
75051         * modules/ucs4-utf16: New file.
75052         * MODULES.html.sh (func_all_modules): Add them.
75053
75054 2003-04-03  Bruno Haible  <bruno@clisp.org>
75055
75056         * m4/utf-ucs4.m4: New file.
75057         * m4/ucs4-utf.m4: New file.
75058
75059 2003-04-03  Bruno Haible  <bruno@clisp.org>
75060
75061         * lib/utf8-ucs4.h: New file, from GNU gettext.
75062         * lib/utf16-ucs4.h: New file, from GNU gettext.
75063         * lib/ucs4-utf8.h: New file, from GNU gettext.
75064         * lib/ucs4-utf16.h: New file, from GNU gettext.
75065
75066 2003-04-02  Bruno Haible  <bruno@clisp.org>
75067
75068         * modules/binary-io: New file.
75069         * MODULES.html.sh (func_all_modules): Add it.
75070
75071 2003-04-02  Bruno Haible  <bruno@clisp.org>
75072
75073         * lib/binary-io.h: New file, from GNU gettext.
75074
75075 2003-04-01  Bruno Haible  <bruno@clisp.org>
75076
75077         * modules/pathname: New file.
75078         * MODULES.html.sh (func_all_modules): Add it.
75079
75080 2003-04-01  Bruno Haible  <bruno@clisp.org>
75081
75082         * lib/pathname.h: New file, from GNU gettext.
75083         * lib/concatpath.c: New file, from GNU gettext.
75084
75085 2003-03-30  Bruno Haible  <bruno@clisp.org>
75086
75087         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
75088
75089 2003-03-30  Bruno Haible  <bruno@clisp.org>
75090
75091         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
75092         function chown() doesn't exist.
75093
75094 2003-03-28  Bruno Haible  <bruno@clisp.org>
75095
75096         * modules/copy-file: New file.
75097         * MODULES.html.sh (func_all_modules): Add it.
75098
75099 2003-03-28  Bruno Haible  <bruno@clisp.org>
75100
75101         * m4/copy-file.m4: New file.
75102
75103 2003-03-28  Bruno Haible  <bruno@clisp.org>
75104
75105         * lib/copy-file.h: New file, from GNU gettext.
75106         * lib/copy-file.c: New file, from GNU gettext.
75107
75108 2003-03-18  Jim Meyering  <jim@meyering.net>
75109
75110         * lib/quote.c (quote_n): Fix typo in comment.
75111
75112 2003-03-18  Bruno Haible  <bruno@clisp.org>
75113
75114         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
75115         checking.
75116         * m4/onceonly_2_57.m4: Likewise.
75117
75118 2003-03-17  Bruno Haible  <bruno@clisp.org>
75119
75120         * m4/onceonly.m4: Require autoconf 2.54 or newer.
75121         (m4_quote): Remove macro.
75122         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
75123
75124 2003-03-14  Jim Meyering  <jim@meyering.net>
75125
75126         Merge changes from Coreutils.
75127         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
75128         to be const, in order to avoid warnings.
75129         (obstack_room): Likewise.
75130         (obstack_empty_p): Likewise.
75131
75132 2003-03-14  Bruno Haible  <bruno@clisp.org>
75133
75134         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
75135         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
75136
75137 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75138
75139         Merge changes from Bison.
75140         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
75141         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
75142         when compiling Bison 1.875's `bitset bset = obstack_alloc
75143         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
75144         * lib/hash.c: Include <stdbool.h> unconditionally.
75145
75146 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75147
75148         * m4/onceonly.m4 (m4_quote): New macro.
75149         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
75150         Quote AC_FOREACH variable-expansions properly.
75151
75152 2003-03-13  Paul Eggert  <eggert@twinsun.com>
75153
75154         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
75155
75156 2003-03-09  Paul Eggert  <eggert@twinsun.com>
75157
75158         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
75159         Reported by Bruce Becker; see:
75160         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
75161
75162 2003-03-03  Paul Eggert  <eggert@twinsun.com>
75163             Bruno Haible  <bruno@clisp.org>
75164
75165         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
75166         Reported by John Hughes, see
75167         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
75168
75169 2003-02-20  Bruno Haible  <bruno@clisp.org>
75170
75171         * MODULES.html.sh (func_all_modules): Add poll.
75172
75173 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75174
75175         * modules/poll: New file.
75176
75177 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75178
75179         * lib/poll_.h: New file.
75180         * lib/poll.c: New file.
75181
75182 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
75183
75184         * m4/poll.m4: New file.
75185
75186 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75187
75188         * modules/mathl: New file.
75189
75190 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75191
75192         * lib/mathl.h: New file.
75193         * lib/acosl.c: New file.
75194         * lib/asinl.c: New file.
75195         * lib/atanl.c: New file.
75196         * lib/ceill.c: New file.
75197         * lib/cosl.c: New file.
75198         * lib/expl.c: New file.
75199         * lib/floorl.c: New file.
75200         * lib/frexpl.c: New file.
75201         * lib/ldexpl.c: New file.
75202         * lib/logl.c: New file.
75203         * lib/sincosl.c: New file.
75204         * lib/sinl.c: New file.
75205         * lib/sqrtl.c: New file.
75206         * lib/tanl.c: New file.
75207         * lib/trigl.c: New file.
75208         * lib/trigl.h: New file.
75209
75210 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
75211
75212         * m4/mathl.m4: New file.
75213
75214 2003-02-18  Bruno Haible  <bruno@clisp.org>
75215
75216         * MODULES.html.sh (func_all_modules): Add mathl.
75217
75218 2003-02-17  Bruno Haible  <bruno@clisp.org>
75219
75220         * modules/mkdtemp: New module.
75221         * MODULES.html.sh (func_all_modules): Add it.
75222
75223 2003-02-17  Bruno Haible  <bruno@clisp.org>
75224
75225         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
75226
75227 2003-02-17  Bruno Haible  <bruno@clisp.org>
75228
75229         * lib/mkdtemp.h: New file, from GNU gettext.
75230         * lib/mkdtemp.c: New file, from GNU gettext.
75231
75232 2003-02-02  Jim Meyering  <jim@meyering.net>
75233
75234         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
75235         e.g. glibc-2.2.93.
75236
75237 2003-01-31  Bruno Haible  <bruno@clisp.org>
75238
75239         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
75240         'rpl_rename'.
75241         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
75242         'rpl_strnlen'.
75243         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
75244         'rpl_strtod'.
75245         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
75246         'rpl_utime'.
75247
75248 2003-01-31  Bruno Haible  <bruno@clisp.org>
75249
75250         * lib/rename.c: #undef rename before defining rpl_rename.
75251         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
75252
75253 2003-01-30  Bruno Haible  <bruno@clisp.org>
75254
75255         * modules/vasnprintf, modules/vasprintf: New modules.
75256         * MODULES.html.sh (func_all_modules): Add them.
75257
75258 2003-01-30  Bruno Haible  <bruno@clisp.org>
75259
75260         * m4/signed.m4: New file, from GNU gettext.
75261         * m4/longdouble.m4: New file, from GNU gettext.
75262         * m4/wchar_t.m4: New file, from GNU gettext.
75263         * m4/wint_t.m4: New file, from GNU gettext.
75264         * m4/vasnprintf.m4: New file.
75265         * m4/vasprintf.m4: New file.
75266
75267 2003-01-30  Bruno Haible  <bruno@clisp.org>
75268
75269         * lib/printf-args.h: New file, from GNU gettext.
75270         * lib/printf-args.c: New file, from GNU gettext.
75271         * lib/printf-parse.h: New file, from GNU gettext.
75272         * lib/printf-parse.c: New file, from GNU gettext.
75273         * lib/vasnprintf.h: New file, from GNU gettext.
75274         * lib/vasnprintf.c: New file, from GNU gettext.
75275         * lib/asnprintf.c: New file, from GNU gettext.
75276         * lib/vasprintf.h: New file, from GNU gettext with modifications.
75277         * lib/vasprintf.c: New file, from GNU gettext.
75278         * lib/asprintf.c: New file, from GNU gettext.
75279
75280 2003-01-29  Bruno Haible  <bruno@clisp.org>
75281
75282         * modules/stpncpy: New module.
75283         * MODULES.html.sh (func_all_modules): Add it.
75284
75285 2003-01-29  Bruno Haible  <bruno@clisp.org>
75286
75287         * m4/stpncpy.m4: New file.
75288
75289 2003-01-29  Bruno Haible  <bruno@clisp.org>
75290
75291         * lib/stpncpy.h: New file, from GNU gettext with modifications.
75292         * lib/stpncpy.c: New file, from GNU gettext with modifications.
75293
75294 2003-01-28  Bruno Haible  <bruno@clisp.org>
75295
75296         * modules/c-ctype: New module.
75297         * MODULES.html.sh (func_all_modules): Add it.
75298
75299 2003-01-28  Bruno Haible  <bruno@clisp.org>
75300
75301         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
75302         Paul Eggert.
75303         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
75304         Paul Eggert.
75305
75306 2003-01-27  Bruno Haible  <bruno@clisp.org>
75307
75308         * modules/xsetenv: New module.
75309         * MODULES.html.sh (func_all_modules): Add it.
75310
75311 2003-01-27  Bruno Haible  <bruno@clisp.org>
75312
75313         * lib/xsetenv.h: New file, from GNU gettext.
75314         * lib/xsetenv.c: New file, from GNU gettext.
75315
75316 2003-01-23  Jim Meyering  <jim@meyering.net>
75317
75318         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
75319         from working on systems without dirfd (at least Irix and OSF1/Tru64).
75320
75321 2003-01-23  Bruno Haible  <bruno@clisp.org>
75322
75323         * modules/minmax: New module.
75324         * MODULES.html.sh (func_all_modules): Add it.
75325
75326 2003-01-23  Bruno Haible  <bruno@clisp.org>
75327
75328         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
75329         Eggert.
75330
75331 2003-01-22  Bruno Haible  <bruno@clisp.org>
75332
75333         * modules/exit: New module.
75334         * MODULES.html.sh (func_all_modules): Add it.
75335
75336 2003-01-22  Bruno Haible  <bruno@clisp.org>
75337
75338         * lib/exit.h: New file, from GNU gettext.
75339
75340 2003-01-19  Bruno Haible  <bruno@clisp.org>
75341
75342         * gnulib-tool: Recognize option --extract-maintainer.
75343         (func_get_maintainer): New function.
75344         * modules/*: Add Maintainer entry.
75345
75346 2003-01-16  Jim Meyering  <jim@meyering.net>
75347
75348         * m4/regex.m4: The `regex' struct is both input and output.
75349         Initialize it before each use.  Patch by Tim Waugh.
75350
75351 2003-01-16  Bruno Haible  <bruno@clisp.org>
75352
75353         * MODULES.html.sh: Add a table of contents. Add the module name as
75354         leftmost column. Add hyperlinks.
75355
75356 2003-01-15  Bruno Haible  <bruno@clisp.org>
75357
75358         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
75359
75360 2003-01-15  Bruno Haible  <bruno@clisp.org>
75361
75362         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
75363         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
75364         suffix.
75365
75366 2003-01-15  Bruno Haible  <bruno@clisp.org>
75367
75368         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
75369
75370 2003-01-15  Bruno Haible  <bruno@clisp.org>
75371
75372         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
75373         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
75374
75375 2003-01-14  Jim Meyering  <jim@meyering.net>
75376
75377         * lib/same.c (same_name): Tweak a comment.
75378
75379 2003-01-14  Bruno Haible  <bruno@clisp.org>
75380
75381         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
75382         when a string comparison is sufficient.
75383
75384 2003-01-14  Bruno Haible  <bruno@clisp.org>
75385
75386         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
75387         'unsigned int'.
75388
75389 2003-01-14  Bruno Haible  <bruno@clisp.org>
75390
75391         * lib/hash-pjw.c: Add comment about low quality of this function.
75392
75393 2003-01-13  Bruno Haible  <bruno@clisp.org>
75394
75395         * modules/stpcpy: Distribute lib/stpcpy.h.
75396         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
75397
75398 2003-01-13  Bruno Haible  <bruno@clisp.org>
75399
75400         * modules/*: Add a description.
75401         * modules/strpbrk: Fix Makefile.am snippet.
75402         * modules/strtoimax: Fix dependencies.
75403         * modules/strtoumax: Likewise.
75404
75405 2003-01-13  Bruno Haible  <bruno@clisp.org>
75406
75407         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
75408         * modules/alloca (Makefile.am): All object files depend on alloca.h.
75409         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
75410
75411 2003-01-13  Bruno Haible  <bruno@clisp.org>
75412
75413         * gnulib-tool (func_create_testdir): Store config/* files in the main
75414         directory.
75415         * config.rpath: Move to ...
75416         * config/config.rpath: ... here.
75417         * modules/gettext: Contains config/config.rpath, not config.rpath.
75418         * modules/iconv: Likewise.
75419
75420 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75421
75422         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75423         to avoid collisions with libcurses and libreadline.
75424
75425         * m4/getstr.m4: Remove.
75426         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
75427
75428 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75429
75430         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75431         to avoid collisions with libcurses and libreadline.
75432
75433         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
75434         * lib/getstr.h, getstr.c: Remove.
75435         * lib/getline.c: Include "getline.h", to check interface.
75436         Move body of old getstr.c here: this defines MIN_CHUNK and
75437         declares getdelim2, which is renamed from getstr.
75438         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
75439
75440         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
75441         All uses changed.
75442         * lib/linebuffer.h: Likewise.
75443         (readline): Remove backward-compatibility macro.
75444
75445 2003-01-12  Paul Eggert  <eggert@twinsun.com>
75446
75447         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
75448         to avoid collisions with libcurses and libreadline.
75449         * getstr: Remove.
75450         * MODULES.html.sh: Remove getstr.
75451         * modules/getline: Depend on unlocked-io, not getstr.
75452
75453 2003-01-12  Jim Meyering  <jim@meyering.net>
75454
75455         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
75456
75457 2003-01-10  Bruno Haible  <bruno@clisp.org>
75458
75459         * modules/alloca: Change Makefile.am requirements. Simplify Include
75460         requirements. Add lib/alloca_.h to file list.
75461
75462 2003-01-10  Bruno Haible  <bruno@clisp.org>
75463
75464         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
75465
75466 2003-01-10  Bruno Haible  <bruno@clisp.org>
75467
75468         * lib/alloca_.h: New file.
75469         * lib/getdate.y: Unconditionally include alloca.h.
75470         * lib/makepath.c: Likewise.
75471         * lib/setenv.c: Likewise.
75472         * lib/userspec.c: Likewise.
75473
75474 2003-01-09  Karl Berry  <karl@gnu.org>
75475
75476         * MODULES.html.sh: include `dirname $0` in PATH, to find
75477         gnulib-tool.
75478
75479 2003-01-09  Bruno Haible  <bruno@clisp.org>
75480
75481         * modules/stdbool: Change configure.ac, Makefile.am requirements.
75482         Simplify Include requirements. Add lib/stdbool.h.in to file list.
75483
75484 2003-01-09  Bruno Haible  <bruno@clisp.org>
75485
75486         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
75487
75488 2003-01-09  Bruno Haible  <bruno@clisp.org>
75489
75490         * lib/stdbool.h.in: New file.
75491
75492 2003-01-09  Bruno Haible  <bruno@clisp.org>
75493
75494         * gnulib-tool (func_all_modules): Ignore files ending in ~.
75495         * MODULES.html.sh: Likewise.
75496
75497 2003-01-08  Jim Meyering  <jim@meyering.net>
75498
75499         * lib/full-write.c: Undefine and define-away `const' after inclusion
75500         of errno.h, not before.  Suggestion from Bruno Haible.
75501
75502 2003-01-08  Bruno Haible  <bruno@clisp.org>
75503
75504         * modules/full-read: Depend on full-write.
75505
75506 2003-01-08  Bruno Haible  <bruno@clisp.org>
75507
75508         * lib/safe-read.c: Include specification header first, to ensure its
75509         selfcontainedness.
75510         * lib/full-write.c: Likewise.
75511
75512 2003-01-07  Jim Meyering  <jim@meyering.net>
75513
75514         * lib/full-write.c: Rework so that it may serve to define full_read,
75515         too.
75516         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
75517
75518 2003-01-07  Bruno Haible  <bruno@clisp.org>
75519
75520         * lib/strtoimax.c: Include <stdint.h> as an alternative to
75521         <inttypes.h>.
75522         * lib/xstrtol.h: Likewise.
75523         * lib/xstrtoimax.c: Likewise.
75524         * lib/xstrtoumax.c: Likewise.
75525         * lib/human.h: Likewise.
75526
75527         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
75528         on systems that have <inttypes.h> but not <stdint.h>.
75529
75530 2003-01-07  Bruno Haible  <bruno@clisp.org>
75531
75532         * MODULES.html.sh: Add copyright notice.
75533         (missed_files): Omit CVS directory entries.
75534         (func_module): Make it work with sed-3.02.
75535         * MODULES.txt: Remove file.
75536
75537 2003-01-06  Jim Meyering  <jim@meyering.net>
75538
75539         * lib/version-etc.c: Update year in translatable copyright string.
75540
75541 2003-01-03  Karl Berry  <karl@gnu.org>
75542
75543         * config/config.{guess,sub}: update from prep.
75544
75545 2003-01-02  Karl Berry  <karl@gnu.org>
75546
75547         * doc/COPYING.DOC: belatedly updated to 1.2.
75548
75549 2003-01-01  Karl Berry  <karl@gnu.org>
75550
75551         * gnulib-tool (func_verify_module): report module name $module in
75552         error message, not $1.
75553         * gnulib-tool (create-testdir): don't complain if destdir couldn't
75554         be created, only if it doesn't exist.
75555         * gnulib-tool (last_checkin_date): don't expand the $Date here.
75556
75557 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75558
75559         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
75560
75561 2002-12-31  Paul Eggert  <eggert@twinsun.com>
75562
75563         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
75564         memcmp if strcoll doesn't work.
75565
75566 2002-12-31  Bruno Haible  <bruno@clisp.org>
75567
75568         * lib/utime.c (utime_null): No need to call ftruncate if the file was
75569         nonempty.
75570
75571 2002-12-31  Bruno Haible  <bruno@clisp.org>
75572
75573         * lib/memcoll.c (STRCOLL): New macro.
75574         (memcoll): Use it.
75575
75576 2002-12-31  Bruno Haible  <bruno@clisp.org>
75577
75578         * lib/localcharset.h: New file.
75579         * lib/localcharset.c: Include it.
75580         * lib/unicodeio.c: Likewise.
75581
75582 2002-12-31  Bruno Haible  <bruno@clisp.org>
75583
75584         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
75585         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
75586
75587 2002-12-31  Bruno Haible  <bruno@clisp.org>
75588
75589         * lib/getline.h: Include <stddef.h>, for size_t.
75590
75591         * lib/unicodeio.h: Include <stddef.h>, for size_t.
75592         * lib/unicodeio.c: Don't include <stddef.h>.
75593
75594 2002-12-31  Bruno Haible  <bruno@clisp.org>
75595
75596         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
75597         HAVE_TM_ZONE.
75598
75599 2002-12-24  Karl Berry  <karl@gnu.org>
75600
75601         * config/config.guess: update from prep.
75602
75603 2002-12-24  Bruno Haible  <bruno@clisp.org>
75604
75605         General infrasructure.
75606         * m4/README: Rewritten.
75607         * m4/onceonly.m4: New file.
75608         * m4/onceonly_2_57.m4: New file.
75609
75610         Module atexit.
75611         * m4/atexit.m4: New file.
75612
75613         Module strtod.
75614         * m4/strtod.m4: New file.
75615
75616         Module strtol.
75617         * m4/strtol.m4: New file.
75618
75619         Module strtoul.
75620         * m4/strtoul.m4: New file.
75621
75622         Module memchr.
75623         * m4/memchr.m4: New file.
75624
75625         Module memcmp.
75626         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
75627         (jm_FUNC_MEMCMP): Invoke it.
75628
75629         Module memcpy.
75630         * m4/memcpy.m4: New file.
75631
75632         Module memmove.
75633         * m4/memmove.m4: New file.
75634
75635         Module memset.
75636         * m4/memset.m4: New file.
75637
75638         Module strcspn.
75639         * m4/strcspn.m4: New file.
75640
75641         Module strpbrk.
75642         * m4/strpbrk.m4: New file.
75643
75644         Module strstr.
75645         * m4/strstr.m4: New file.
75646
75647         Module strerror.
75648         * m4/strerror.m4: New file.
75649
75650         Module mktime.
75651         * m4/mktime.m4: Renamed from jm-mktime.m4.
75652         (gl_PREREQ_MKTIME): New macro.
75653         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
75654
75655         Module malloc.
75656         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
75657         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
75658         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
75659
75660         Module realloc.
75661         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
75662         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
75663         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
75664
75665         Module strftime.
75666         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
75667         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
75668         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
75669         gl_TM_GMTOFF.
75670         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
75671
75672         Module xalloc.
75673         * m4/xalloc.m4: New file.
75674
75675         Module alloca.
75676         * m4/alloca.m4: New file.
75677
75678         Module putenv.
75679         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
75680         (jm_FUNC_PUTENV): Invoke it.
75681
75682         Module setenv.
75683         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
75684         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
75685         when invoked twice.
75686         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
75687         gt_FUNC_SETENV.
75688
75689         Module memrchr.
75690         * m4/memrchr.m4: New file.
75691
75692         Module stpcpy.
75693         * m4/stpcpy.m4: New file.
75694
75695         Module strcase.
75696         * m4/strcase.m4: New file.
75697
75698         Module strdup.
75699         * m4/strdup.m4: New file.
75700
75701         Module strnlen.
75702         * m4/strnlen.m4: New file.
75703
75704         Module strndup.
75705         * m4/strndup.m4: New file.
75706
75707         Module xstrtod.
75708         * m4/xstrtod.m4: New file.
75709
75710         Module xstrtol.
75711         * m4/xstrtol.m4: New file.
75712
75713         Module getdate.
75714         * m4/getdate.m4: New file.
75715
75716         Module unlocked-io.
75717         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
75718         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
75719         * m4/jm-glibc-io.m4n: Remove file.
75720
75721         Module long-options.
75722         * m4/long-options.m4: New file.
75723
75724         Module md5.
75725         * m4/md5.m4: New file.
75726
75727         Module sha.
75728         * m4/sha.m4: New file.
75729
75730         Module getstr.
75731         * m4/getstr.m4: New file.
75732
75733         Module getline.
75734         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
75735         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
75736         <sys/types.h>, for size_t. Use the function name gnu_getline, not
75737         simply getline. Infoke gl_PREREQ_GETLINE.
75738
75739         Module obstack.
75740         * m4/obstack.m4: New file.
75741
75742         Module hash.
75743         * m4/hash.m4: New file.
75744
75745         Module readtokens.
75746         * m4/readtokens.m4: New file.
75747
75748         Module strverscmp.
75749         * m4/strverscmp.m4: New file.
75750
75751         Module stdbool.
75752         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
75753         OSF/1.
75754
75755         Module strtoll.
75756         * m4/strtoll.m4: New file.
75757
75758         Module strtoull.
75759         * m4/strtoull.m4: New file.
75760
75761         Module strtoimax.
75762         * m4/strtoimax.m4: New file.
75763
75764         Module strtoumax.
75765         * m4/strtoumax.m4: New file.
75766
75767         Module xstrtoimax.
75768         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
75769         jm_AC_PREREQ_XSTRTOIMAX.
75770         Moved the strtol prerequisites to strtol.m4.
75771         Moved the strtoll prerequisites to strtoll.m4.
75772         Moved the strtoimax prerequisites to strtoimax.m4.
75773
75774         Module xstrtoumax.
75775         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
75776         jm_AC_PREREQ_XSTRTOUMAX.
75777         Moved the strtoul prerequisites to strtoul.m4.
75778         Moved the strtoull prerequisites to strtoull.m4.
75779         Moved the strtoumax prerequisites to strtoumax.m4.
75780
75781         Module chown.
75782         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
75783         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
75784
75785         Module dup2.
75786         * m4/dup2.m4: New file.
75787
75788         Module ftruncate.
75789         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
75790         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
75791
75792         Module getgroups.
75793         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
75794         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
75795
75796         Module gettimeofday.
75797         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
75798         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
75799         gl_PREREQ_GETTIMEOFDAY.
75800
75801         Module mkdir.
75802         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
75803         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
75804
75805         Module mkstemp.
75806         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
75807         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
75808         jm_AC_TYPE_UINTMAX_T.
75809         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
75810
75811         Module stat.
75812         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
75813         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
75814
75815         Module lstat.
75816         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
75817         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
75818
75819         Module timespec.
75820         * m4/timespec.m4 (gl_TIMESPEC): New macro.
75821         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
75822         * m4/st_mtim.m4: Indentation.
75823
75824         Module nanosleep.
75825         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
75826         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
75827         gl_PREREQ_NANOSLEEP.
75828
75829         Module regex.
75830         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
75831         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
75832         (gl_REGEX): New macro.
75833
75834         Module rename.
75835         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
75836         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
75837
75838         Module rmdir.
75839         * m4/rmdir.m4: New file.
75840
75841         Module utime.
75842         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
75843         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
75844         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
75845
75846         Module dirname.
75847         * m4/dirname.m4: New file.
75848
75849         Module getopt.
75850         * m4/getopt.m4: New file.
75851
75852         Module unistd-safer.
75853         * m4/unistd-safer.m4: New file.
75854
75855         Module fnmatch.
75856         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
75857         declaration.
75858         (gl_PREREQ_FNMATCH_EXTRA): New macro.
75859         (gl_FUNC_FNMATCH_POSIX): New macro.
75860         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
75861         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
75862         simply fnmatch.
75863
75864         Module exclude.
75865         * m4/exclude.m4: New file.
75866
75867         Module human.
75868         * m4/human.m4: New file.
75869
75870         Module acl.
75871         * m4/acl.m4: Nop.
75872
75873         Module backupfile.
75874         * m4/backupfile.m4: New file.
75875         * m4/d-ino.m4: Indentation.
75876
75877         Module fsusage.
75878         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
75879         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
75880         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
75881
75882         Module dirfd.
75883         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
75884         requirements.
75885
75886         Module euidaccess.
75887         * m4/euidaccess.m4: New file.
75888
75889         Module file-type.
75890         * m4/file-type.m4: New file.
75891
75892         Module fileblocks.
75893         * m4/fileblocks.m4: New file.
75894
75895         Module filemode.
75896         * m4/filemode.m4: New file.
75897
75898         Module isdir.
75899         * m4/isdir.m4: New file.
75900
75901         Module lchown.
75902         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
75903         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
75904
75905         Module makepath.
75906         * m4/makepath.m4: New file.
75907
75908         Module modechange.
75909         * m4/modechange.m4: New file.
75910
75911         Module mountlist.
75912         * m4/mountlist.m4: New file.
75913         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
75914         Indentation.
75915
75916         Module path-concat.
75917         * m4/path-concat.m4: New file.
75918
75919         Module pathmax.
75920         * m4/pathmax.m4: New file.
75921
75922         Module same.
75923         * m4/same.m4: New file.
75924
75925         Module save-cwd.
75926         * m4/save-cwd.m4: New file.
75927
75928         Module savedir.
75929         * m4/savedir.m4: New file.
75930
75931         Module xgetcwd.
75932         * m4/xgetcwd.m4: New file.
75933         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
75934
75935         Module xreadlink.
75936         * m4/xreadlink.m4: New file.
75937
75938         Module safe-read.
75939         * m4/safe-read.m4: New file.
75940
75941         Module safe-write.
75942         * m4/safe-write.m4: New file.
75943
75944         Module closeout.
75945         * m4/closeout.m4: New file.
75946
75947         Module stdio-safer.
75948         * m4/stdio-safer.m4: New file.
75949
75950         Module getpass.
75951         * m4/getpass.m4: New file.
75952
75953         Module getugroups.
75954         * m4/getugroups.m4: New file.
75955
75956         Module group-member.
75957         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
75958         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
75959
75960         Module idcache.
75961         * m4/idcache.m4: New file.
75962
75963         Module userspec.
75964         * m4/userspec.m4: New file.
75965
75966         Module gettime.
75967         * m4/clock_time.m4: New file.
75968         * m4/gettime.m4: New file.
75969
75970         Module settime.
75971         * m4/settime.m4: New file.
75972
75973         Module posixtm.
75974         * m4/posixtm.m4: New file.
75975
75976         Module gethostname.
75977         * m4/gethostname.m4: New file.
75978
75979         Module canon-host.
75980         * m4/canon-host.m4: New file.
75981
75982         Module gettext.
75983         * m4/codeset.m4: New file, from gettext-0.11.5.
75984         * m4/gettext.m4: New file, from gettext-0.11.5.
75985         * m4/glibc21.m4: New file, from gettext-0.11.5.
75986         * m4/iconv.m4: New file, from gettext-0.11.5.
75987         * m4/intdiv0.m4: New file, from gettext-0.11.5.
75988         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
75989         * m4/inttypes.m4: New file, from gettext-0.11.5.
75990         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
75991         * m4/isc-posix.m4: New file, from gettext-0.11.5.
75992         * m4/lcmessage.m4: New file, from gettext-0.11.5.
75993         * m4/lib-ld.m4: New file, from gettext-0.11.5.
75994         * m4/lib-link.m4: New file, from gettext-0.11.5.
75995         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
75996         * m4/progtest.m4: New file, from gettext-0.11.5.
75997         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
75998         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
75999         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
76000
76001         Module localcharset.
76002         * m4/localcharset.m4: New file.
76003
76004         Module hard-locale.
76005         * m4/hard-locale.m4: New file.
76006
76007         Module mbswidth.
76008         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
76009         onceonly macros.
76010         * m4/mbrtowc.m4: Add comment.
76011
76012         Module memcasecmp.
76013         * m4/memcasecmp.m4: New file.
76014
76015         Module memcoll.
76016         * m4/memcoll.m4: New file.
76017
76018         Module unicodeio.
76019         * m4/unicodeio.m4: New file.
76020
76021         Module rpmatch.
76022         * m4/rpmatch.m4: New file.
76023
76024         Module yesno.
76025         * m4/yesno.m4: New file.
76026
76027         Module exitfail.
76028         * m4/exitfail.m4: New file.
76029
76030         Module c-stack.
76031         * m4/c-stack.m4 (gl_C_STACK): New macro.
76032         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
76033
76034         Module error.
76035         * m4/error.m4 (gl_ERROR): New macro.
76036         (jm_PREREQ_ERROR): Use onceonly macros.
76037
76038         Module fatal.
76039         * m4/fatal.m4: New file.
76040
76041         Module getloadavg.
76042         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
76043         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
76044
76045         Module getpagesize.
76046         * m4/getpagesize.m4: New file.
76047
76048         Module getusershell.
76049         * m4/getusershell.m4: New file.
76050
76051         Module physmem.
76052         * m4/physmem.m4: New file.
76053
76054         Module posixver.
76055         * m4/posixver.m4: New file.
76056
76057         Module quotearg.
76058         * m4/quotearg.m4: New file.
76059
76060         Module quote.
76061         * m4/quote.m4: New file.
76062
76063         Module readutmp.
76064         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
76065
76066         Module sig2str.
76067         * m4/sig2str.m4: New file.
76068
76069         Other.
76070         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
76071         ulonglong.m4.
76072         * m4/intmax_t.m4: New file.
76073         * m4/d-type.m4: Indentation.
76074         * m4/jm-macros.m4: Update.
76075         * m4/prereq.m4 (jm_PREREQ): Update.
76076         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
76077         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
76078         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
76079         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
76080         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
76081         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
76082         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
76083         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
76084         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
76085         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
76086         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
76087         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
76088         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
76089         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
76090         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
76091         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
76092         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
76093         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
76094         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
76095
76096 2002-12-24  Bruno Haible  <bruno@clisp.org>
76097
76098         * MODULES.txt: Update according to m4/ changes.
76099
76100         Module gettext.
76101         * config.rpath: New file, from gettext-0.11.5.
76102
76103         * modules/*: New module descriptions.
76104         * gnulib-tool: New file.
76105         * MODULES.html.sh: New file.
76106
76107 2002-12-21  Karl Berry  <karl@gnu.org>
76108
76109         * doc/fdl.texi: update to version 1.2.
76110
76111 2002-12-19  Karl Berry  <karl@gnu.org>
76112
76113         * config/config.guess: update from prep.
76114
76115 2002-12-18  Bruno Haible  <bruno@clisp.org>
76116
76117         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
76118         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
76119
76120 2002-12-17  Bruno Haible  <bruno@clisp.org>
76121
76122         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
76123         stdlib.h, string.h.
76124
76125 2002-12-17  Bruno Haible  <bruno@clisp.org>
76126
76127         * lib/canon-host.c (strdup): Remove unused declaration.
76128
76129         * lib/fsusage.c: Include full_read.h.
76130         (get_fs_usage): Use full_read instead of safe_read.
76131
76132         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
76133
76134 2002-12-12  Karl Berry  <karl@gnu.org>
76135
76136         * config/config.guess: update from prep.
76137
76138 2002-12-11  Bruno Haible  <bruno@clisp.org>
76139
76140         * m4/setenv.m4: New file, from gettext-0.11.5.
76141
76142 2002-12-11  Bruno Haible  <bruno@clisp.org>
76143
76144         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
76145         not unsetenv().
76146         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
76147         modifications:
76148
76149         2002-12-11  Bruno Haible  <bruno@clisp.org>
76150
76151                 * setenv.c (alloca): Fall back to malloc.
76152                 (freea): New macro.
76153                 (setenv): Use freea() to free memory allocated with alloca().
76154
76155         2002-11-13  Bruno Haible  <bruno@clisp.org>
76156
76157                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
76158                 function declarations.
76159                 * unsetenv.c (unsetenv): Likewise.
76160
76161         2002-03-04  Bruno Haible  <bruno@clisp.org>
76162
76163                 Portability to AIX 4.3.3.
76164                 * unsetenv.c: New file, extracted from setenv.c.
76165                 * setenv.c: Move the unsetenv() function to unsetenv.c.
76166
76167         2001-12-20  Bruno Haible  <bruno@clisp.org>
76168
76169                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
76170                 use malloc instead. For SunOS 4.
76171
76172         2001-12-11  Bruno Haible  <bruno@clisp.org>
76173
76174                 * setenv.c: Declare alloca.
76175                 (compar_fn_t): New typedef.
76176                 (KNOWN_VALUE, STORE_VALUE): Use it.
76177
76178         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
76179         setenv.h.
76180
76181 2002-12-10  Paul Eggert  <eggert@twinsun.com>
76182
76183         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
76184         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
76185         Choose values that are less likely to collide with system fnmatch
76186         options.
76187         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
76188         defined (e.g., a pure POSIX system).
76189         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
76190         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
76191
76192 2002-12-06  Paul Eggert  <eggert@twinsun.com>
76193
76194         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
76195         a pain in practice to deal with generated m4 files.  This change
76196         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
76197
76198         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
76199         and jm-glibc-io.m4, as they are no longer a special case.
76200         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
76201         kludge and the auto-generation stuff.  Check only whether the
76202         functions are declared, not whether they exist, since older hosts
76203         that don't declare the functions can't use the optimization anyway.
76204
76205 2002-12-06  Jim Meyering  <jim@meyering.net>
76206
76207         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
76208
76209         Merge in changes from libc's misc/error.c, in preparation
76210         for the merge of gnulib's changes back into libc.
76211
76212         * lib/error.c (_): Define only if not already defined.
76213         Move definition to follow all #include directives.
76214         Include unlocked-io.h only if !_LIBC.
76215         [_LIBC]: Include <libio/libioP.h>.
76216         [USE_IN_LIBIO]: Include <libio/iolibio.h>
76217         (fflush): Tweak definition to use INTUSE.
76218         (putc): Define.
76219
76220 2002-12-05  Paul Eggert  <eggert@twinsun.com>
76221
76222         * lib/alloca.c [defined emacs]: Include "lisp.h".
76223         (xalloc_die) [defined emacs]: New macro.
76224         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
76225         [! defined emacs]: Include <xalloc.h>.
76226         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
76227         (pointer): Typedef to POINTER_TYPE *.
76228         (malloc): Remove decl; we now always use xmalloc.
76229         (alloca): Use old-style definition, since Emacs needs this.
76230         Check for arithmetic overflow when computing combined size.
76231
76232 2002-12-04  Paul Eggert  <eggert@twinsun.com>
76233
76234         Do not generate unlocked-io.h automatically, since it's easier to
76235         maintain it by hand.
76236
76237         * lib/unlocked-io.h: New file, from GNU diffutils,
76238         but with proper copyright notice and attribution.
76239         * lib/gen-uio: Remove.
76240         * lib/Makefile.am: Add copyright notice.
76241         (libfetish_a_SOURCES): Add unlocked-io.h.
76242         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
76243         (DISTCLEANFILES, io_functions): Remove macros.
76244         (EXTRA_DIST): Remove gen_uio.
76245         (unlocked-io.h): Remove rule.
76246
76247 2002-12-04  Jim Meyering  <jim@meyering.net>
76248
76249         Reflect the fact that stat.c and lstat.c are no longer generated.
76250         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
76251         (DISTCLEANFILES): Likewise.
76252         (EXTRA_DIST): Likewise.
76253         (all_local): Don't depend on stat.c or lstat.c.
76254         (stat.c, lstat.c): Remove rules.
76255         (EXTRA_DIST): Remove xstat.in.
76256
76257         * lib/xstat.in: Remove file.  Contents moved into stat.c.
76258         * lib/stat.c: New file.  Contents mostly from xstat.in.
76259         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
76260         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
76261
76262         * lib/safe-read.c: Rework so that it may serve to define safe_write,
76263         too.
76264         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
76265
76266 2002-12-03  Jim Meyering  <jim@meyering.net>
76267
76268         * lib/safe-read.c, safe-write.c: Change variable names and comments,
76269         but not semantics, to minimize the differences between these two files.
76270         (safe_read): Change comment to mention SAFE_READ_ERROR.
76271
76272         * lib/safe-read.c (IS_EINTR): Define.
76273         (safe_read): Use IS_EINTR in place of in-function cpp directives.
76274
76275 2002-12-02  Jim Meyering  <jim@meyering.net>
76276
76277         * lib/safe-read.c (EINTR): Define.
76278         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
76279         (INT_MAX): Provide fallback.
76280         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
76281
76282         * lib/safe-read.h (SAFE_READ_ERROR): Define.
76283
76284 2002-12-02  Bruno Haible  <bruno@clisp.org>
76285
76286         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
76287         Define, taken from safe-read.c.
76288         (INT_MAX): Provide fallback.
76289         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
76290         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
76291
76292         * lib/safe-read.c (EINTR): Remove definition.
76293         (safe_read): Don't use EINTR if it is absent.
76294
76295 2002-12-01  Jim Meyering  <jim@meyering.net>
76296
76297         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
76298         zero.
76299         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
76300
76301 2002-11-27  Paul Eggert  <eggert@twinsun.com>
76302
76303         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
76304         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
76305         with `if (! (value < limit)) abort ();', for readability.
76306
76307 2002-11-26  Karl Berry  <karl@gnu.org>
76308
76309         * lib/strdup.c: copy from libc again, with jim's ok.
76310         * lib/.cppi-disable: re-add strdup.c
76311
76312 2002-11-25  Karl Berry  <karl@gnu.org>
76313
76314         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
76315         instead of "strtol.c".
76316
76317 2002-11-25  Karl Berry  <karl@gnu.org>
76318
76319         * config/install-sh: update from automake for variable quoting, $0 in
76320         error msgs, etc.
76321
76322         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
76323         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
76324         entry.
76325
76326 2002-11-25  Jim Meyering  <jim@meyering.net>
76327
76328         * lib/mktime.c: Sync from libc, now that it has the latest fix.
76329
76330 2002-11-24  Karl Berry  <karl@gnu.org>
76331
76332         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
76333         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
76334
76335 2002-11-24  Jim Meyering  <jim@meyering.net>
76336
76337         Update from coreutils:
76338
76339         * lib/mktime.c: Merge in changes from libc.
76340
76341         Avoid a link-time failure on some Linux systems.
76342         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
76343         (otherwise).
76344         (__mon_yday): Declare with the STATIC attribute.
76345         (__mktime_internal): Likewise.
76346         Based on a report from Greg Schafer.
76347
76348 2002-11-23  Jim Meyering  <jim@meyering.net>
76349
76350         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
76351         Use `unsigned', not `int', as type of index.
76352
76353         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
76354
76355         * lib/fsusage.c: Remove unneeded parentheses around operands of
76356         `defined'.
76357
76358 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76359
76360         * lib/quotearg.h: Allow multiple inclusion by surrounding with
76361         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
76362         so that we can be included first.
76363         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
76364         * lib/quotearg.c: Include quotearg.h immediately after config.h.
76365         No need to include stddef.h or sys/types.h any more.
76366         Surround local include files with "", not "<>".
76367         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
76368         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
76369         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
76370         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
76371         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
76372         (ISPRINT): Remove; no longer needed now that we assume C89.
76373
76374         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
76375         Preserve errno.
76376
76377         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
76378         quotearg_char): Use SIZE_MAX rather than
76379         (size_t) -1 when we are talking about "infinity".
76380
76381         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
76382
76383 2002-11-22  Paul Eggert  <eggert@twinsun.com>
76384
76385         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
76386         hint that one should use `if (! x) abort ();' rather than `assert
76387         (x);', and anyway it's one less thing to worry about configuring.
76388         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
76389         hash_rehash, hash_insert): Use abort rather than assert.
76390
76391 2002-11-22  Bruno Haible  <bruno@clisp.org>
76392
76393         * lib/safe-read.h: Assume C89. Add comments.
76394         (safe_read): Change return type to size_t.
76395         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
76396         byte counts > SSIZE_MAX correctly.
76397         * lib/safe-write.h: New file.
76398         * lib/safe-write.c: New file.
76399         * lib/full-read.h: New file.
76400         * lib/full-read.c: New file.
76401         * lib/full-write.h: Assume C89. Add comments.
76402         * lib/full-write.c: Include safe-write.h.
76403         (full_write): Rewritten to use safe_write.
76404         Suggested by Jim Meyering and Paul Eggert.
76405
76406 2002-11-21  Jim Meyering  <jim@meyering.net>
76407
76408         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
76409
76410         Merge in changes from the coreutils.
76411
76412         2002-09-25  Paul Eggert  <eggert@twinsun.com>
76413         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
76414         <stdint.h>.
76415         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
76416         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
76417         int.  Work more efficiently if X is the same width as uintmax_t.
76418         Do not compare X to -1, to avoid bogus compiler warning.
76419         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
76420         Don't assume that f_frsize and f_bsize are the same type.
76421
76422         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
76423         warning on FreeBSD.
76424
76425         * lib/makepath.c (make_path): Restore umask *before* creating the final
76426         component.
76427         (make_path): Minor reformatting.
76428
76429         * lib/xmalloc.c: Adjust to work with new autoconf macros,
76430         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
76431         HAVE_MALLOC/HAVE_REALLOC.
76432
76433         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
76434         dummy ones.  At least on GNU/Linux systems, `auto' means something
76435         else.
76436         From Michael Stone.
76437
76438 2002-11-21  Bruno Haible  <bruno@clisp.org>
76439
76440         Remove case insensitive option matching.
76441         * lib/argmatch.h (argcasematch): Remove declaration.
76442         (ARGCASEMATCH): Remove macro.
76443         (__xargmatch_internal): Remove case_sensitive argument.
76444         (XARGMATCH): Update.
76445         (XARGCASEMATCH): Remove macro.
76446         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
76447         case_sensitive argument.
76448         (argcasematch): Remove function.
76449         (__xargmatch_internal): Remove case_sensitive argument.
76450         (main): Use XARGMATCH instead of XARGCASEMATCH.
76451
76452         * lib/xmalloc.c: Change compile-time error message. Add comment about
76453         required autoconf version.
76454
76455 2002-11-20  Paul Eggert  <eggert@twinsun.com>
76456
76457         Merge argmatch cleanups from Bison.  Assume C89.
76458
76459         * lib/argmatch.c: Include config.h here, not in argmatch.h.
76460         Include stdlib.h, for EXIT_FAILURE.
76461         Always include <string.h>, since we assume C89.
76462         (EXIT_FAILURE): Remove pre-C89 bug workaround.
76463         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
76464         Include <stddef.h> instead, since it's all we need for size_t.
76465         (PARAMS): Remove.  All uses removed.
76466         (ARRAY_CARDINALITY): Do not bother to #undef.
76467         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
76468         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76469         Remove unnecessary parentheses.
76470         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
76471         Insert necessary parentheses.
76472         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
76473         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
76474
76475 2002-11-19  Bruno Haible  <bruno@clisp.org>
76476
76477         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
76478         * lib/mbswidth.h: Include <stddef.h>, for size_t.
76479
76480         * lib/mbswidth.h (PARAMS): Remove macro.
76481         (mbswidth, mbsnwidth): Use ANSI C function declarations.
76482         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
76483
76484         * lib/gcd.h (PARAMS): Remove macro.
76485         (gcd): Use ANSI C function declarations.
76486         * lib/gcd.c (gcd): Likewise.
76487
76488 2002-11-15  Bruno Haible  <bruno@clisp.org>
76489
76490         * lib/strcspn.c: Include <stddef.h>.
76491         (strcspn): Use ANSI C function declaration. Change return type to
76492         size_t. Use NULL.
76493         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
76494         (strpbrk): Use NULL.
76495         * lib/strpbrk.h (PARAMS): Remove macro.
76496         (strpbrk): Use ANSI C function declaration.
76497         * lib/strstr.c: Don't include <sys/types.h>.
76498         * lib/strstr.h (PARAMS): Remove macro.
76499         (strstr): Use ANSI C function declarations.
76500
76501 2002-11-14  Karl Berry  <karl@gnu.org>
76502
76503         * config/mkinstalldirs: `do' on separate line, instead of
76504         `for var; do'.
76505
76506 2002-11-06  Bruno Haible  <bruno@clisp.org>
76507
76508         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
76509         * lib/gcd.c (gcd): Likewise.
76510
76511 2002-11-05  Bruno Haible  <bruno@clisp.org>
76512
76513         * lib/gcd.h: New file, from gettext-0.11.5.
76514         * lib/gcd.c: New file, from gettext-0.11.5.
76515
76516 2002-11-05  Bruno Haible  <bruno@clisp.org>
76517
76518         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76519         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76520         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76521         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
76522
76523         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
76524         <libintl.h>.
76525         * lib/makepath.c: Include gettext.h instead of <locale.h> and
76526         <libintl.h>.
76527
76528         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
76529         * lib/human.c: Include gettext.h instead of <libintl.h>.
76530         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
76531         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
76532         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
76533         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
76534         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
76535         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
76536         (textdomain): Remove definition.
76537         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
76538
76539         * lib/long-options.c: Remove include of <libintl.h> and definition of
76540         _.
76541         * lib/same.c: Remove include of <libintl.h> and definition of _.
76542
76543 2002-11-04  Owen Taylor  <otaylor@redhat.com>
76544
76545         * lib/config.charset: A few additions for Solaris.
76546
76547 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76548
76549         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
76550         * lib/localcharset.c (locale_charset): Declare as extern "C".
76551
76552 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
76553
76554         * lib/config.charset: msdos in uk_UA uses CP1125.
76555
76556 2002-11-04  Bruno Haible  <bruno@clisp.org>
76557
76558         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
76559         * lib/strcase.h: New file, from GNU gettext-0.11.5.
76560         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
76561         * lib/strstr.h: New file, from GNU gettext-0.11.5.
76562         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
76563
76564 2002-11-04  Bruno Haible  <bruno@clisp.org>
76565
76566         * lib/localcharset.c (locale_charset): Don't return an empty string.
76567
76568 2002-11-04  Bruno Haible  <bruno@clisp.org>
76569
76570         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
76571         aliases.
76572
76573 2002-11-04  Bruno Haible  <bruno@clisp.org>
76574
76575         * lib/config.charset: Update for newest glibc. Add canonical names
76576         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
76577
76578 2002-11-04  Bruno Haible  <bruno@clisp.org>
76579
76580         * lib/config.charset: Add support for NetBSD.
76581
76582 2002-11-04  Bruno Haible  <bruno@clisp.org>
76583
76584         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
76585
76586 2002-11-01  Bruno Haible  <bruno@clisp.org>
76587
76588         * configure.in: Add AC_CONFIG_AUX_DIR call.
76589         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
76590         test/Makefile.
76591         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
76592
76593 2002-09-28  Karl Berry  <karl@gnu.org>
76594
76595         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
76596         installed automake until the next release, since changes have been
76597         made.
76598
76599 2002-09-25  Karl Berry  <karl@gnu.org>
76600
76601         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
76602         * lib/getopt*: copy from libc/posix.
76603         * lib/gettext.h: copy from gettext.
76604         * lib/.cppi-disable: add strdup.c, gettext.h.
76605
76606 2002-09-25  Karl Berry  <karl@gnu.org>
76607
76608         * config/srclist.txt: enable gettext.h check.
76609         * config/config.{guess,sub}: update from prep.
76610         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
76611                 from automake 1.6.3.
76612         See srclist*.
76613
76614 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
76615
76616         * regex.c (PATFETCH): Remove the translating fetch.
76617         (PATFETCH_RAW): Rename to PATFETCH.
76618         (set_image_of_range): New fun.
76619         (SET_RANGE_TABLE_WORK_AREA): Use it.
76620         (regex_compile): Don't translate the pattern chars so eagerly.
76621         Only do it when inserting an `exactn' bytecode or when handling
76622         a char-range.
76623         (mutually_exclusive_p): Avoid empty statement.
76624
76625 2002-07-06  Jim Meyering  <meyering@lucent.com>
76626
76627         * m4/README: Don't mention Makefile.am.in.
76628         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
76629
76630 2002-07-01  Jim Meyering  <meyering@lucent.com>
76631
76632         * lib/c-stack.c: Include sys/time.h.
76633         From Volker Borchert.
76634
76635 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76636
76637         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
76638
76639 2002-06-26  Paul Eggert  <eggert@twinsun.com>
76640
76641         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
76642         New macro.  Use it uniformly instead of
76643         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
76644         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
76645         reported by Vin Shelton.
76646
76647 2002-06-22  Paul Eggert  <eggert@twinsun.com>
76648
76649         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
76650         Do not assume SA_SIGINFO behavior.
76651         Bug reported by Jim Meyering on NetBSD 1.5.2.
76652
76653 2002-06-22  Jim Meyering  <meyering@lucent.com>
76654
76655         * m4/c-stack.m4: New file, from diffutils-2.8.2.
76656         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
76657
76658         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
76659         now that configure.ac uses AC_GNU_SOURCE.
76660         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
76661         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
76662
76663         Update to latest tools.  Suggestions from Paul Eggert.
76664         * m4/stdbool.m4: New file, from diffutils-2.8.2.
76665         * m4/gnu-source.m4: Update from diffutils-2.8.2.
76666         * m4/fnmatch.m4: Likewise.
76667         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
76668         to AC_HEADER_STDBOOL
76669
76670 2002-06-22  Jim Meyering  <meyering@lucent.com>
76671
76672         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
76673         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
76674
76675 2002-06-22  Jim Meyering  <meyering@lucent.com>
76676
76677         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
76678
76679         * lib/exitfail.c, exitfail.h: Likewise.
76680         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
76681
76682         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
76683         of fnmatch.h.
76684         (EXTRA_DIST): Add fnmatch_loop.c.
76685         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
76686
76687         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
76688         * lib/fnmatch.c: Update from diffutils-2.8.2.
76689         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
76690         * lib/fnmatch.h: Remove file.
76691
76692 2002-06-21  Jim Meyering  <meyering@lucent.com>
76693
76694         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
76695         * m4/mbrtowc.m4: Likewise.
76696
76697         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
76698         * m4/mbswidth.m4: Reflect name change:
76699         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
76700         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
76701
76702         * m4/lib-link.m4: Update from gettext-0.11.2.
76703         * m4/gettext.m4: Likewise.
76704
76705         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
76706         From Alfred M. Szmidt.
76707
76708 2002-06-18  Paul Eggert  <eggert@twinsun.com>
76709
76710         * lib/file-type.h: Report an error if neither S_ISREG nor
76711         S_IFREG is defined, instead of using a test specific to glibc
76712         2.2.  This should be safe, since POSIX requires S_ISREG and
76713         Unix Version 7 had S_IFREG.  We don't need to check for
76714         <sys/types.h> since we don't use any symbols that it defines.
76715
76716 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
76717
76718         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
76719         $@-t, so that each temporary file name is unique and valid in the first
76720         8 characters, for operation under DOS.
76721
76722 2002-06-15  Paul Eggert  <eggert@twinsun.com>
76723
76724         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
76725
76726 2002-06-15  Jim Meyering  <meyering@lucent.com>
76727
76728         Work even with DJGPP 2.03, which lacks support for symlinks.
76729         From Richard Dawe.
76730         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
76731         is defined.
76732         * lib/lchown.c (S_ISLNK): Likewise.
76733
76734 2002-06-15  Jim Meyering  <meyering@lucent.com>
76735
76736         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
76737         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
76738         have been included before this file.
76739
76740 2002-06-14  Jim Meyering  <meyering@lucent.com>
76741
76742         * lib/file-type.h: Use the version from diffutils-2.8.2.
76743         * lib/file-type.c: Likewise.
76744
76745 2002-06-07  Jim Meyering  <meyering@lucent.com>
76746
76747         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
76748         They're needed at least for NetBSD 1.5.2.
76749         ($statxfs_includes): Include those same headers.
76750         ($statxfs_includes): Include sys/vfs.h if available.
76751         ($statxfs_includes): Likewise for sys/statvfs.h.
76752         Check for the following members in both structs statfs and statvfs:
76753         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
76754
76755 2002-06-01  Jim Meyering  <meyering@lucent.com>
76756
76757         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
76758         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
76759
76760 2002-05-28  Jim Meyering  <meyering@lucent.com>
76761
76762         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
76763         Reported by Volker Borchert.
76764
76765 2002-05-27  Jim Meyering  <meyering@lucent.com>
76766
76767         Fix a problem seen only on nonconforming systems whereby ls.c's
76768         use of localtime, and then of gettimeofday would cause trouble:
76769         the localtime call used to initialize rpl_gettimeofday's save
76770         mechanism would clobber ls's current local time information so
76771         that in any long listing the first file would always be listed
76772         with date 1970-01-01.  Analysis by Volker Borchert.
76773
76774         * lib/gettimeofday.c (localtime): Undefine.
76775         (rpl_localtime): New function.
76776
76777 2002-05-27  Jim Meyering  <meyering@lucent.com>
76778
76779         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
76780         localtime.
76781
76782         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
76783         use the replacement function; it wouldn't resolve at link time.
76784         Reported by Volker Borchert.
76785
76786 2002-05-22  Jim Meyering  <meyering@lucent.com>
76787
76788         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
76789         file-type.h.
76790         * lib/file-type.h: New file.
76791         * lib/file-type.c (file_type): New file/function.  Extracted from
76792         diffutils.
76793
76794 2002-04-30  Jim Meyering  <meyering@lucent.com>
76795
76796         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
76797
76798 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76799
76800         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
76801
76802 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76803
76804         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
76805         Do not check for alloca.h (no longer used) or stdbool.h (was never
76806         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
76807
76808 2002-04-29  Paul Eggert  <eggert@twinsun.com>
76809
76810         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
76811
76812 2002-04-29  Jim Meyering  <meyering@lucent.com>
76813
76814         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
76815         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
76816         Use AC_FUNC_STRNLEN here instead.
76817
76818         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
76819         With autoconf-2.53a, it's part of AC_PROG_CC.
76820
76821 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76822
76823         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
76824         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
76825
76826 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76827
76828         * lib/sig2str.h, lib/sig2str.c: New files.
76829         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
76830
76831 2002-04-28  Paul Eggert  <eggert@twinsun.com>
76832
76833         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
76834         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
76835         of 127, since 64 is the largest conceivable number for ancient
76836         nonstandard hosts.
76837         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
76838
76839 2002-04-28  Jim Meyering  <meyering@lucent.com>
76840
76841         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
76842
76843 2002-04-24  Jim Meyering  <meyering@lucent.com>
76844
76845         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
76846         (jm_PREREQ): Use it.
76847
76848         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
76849         mach/mach.h fcntl.h.
76850         Check for this function: setlocale.
76851
76852 2002-04-24  Jim Meyering  <meyering@lucent.com>
76853
76854         * lib/gettext.h: New file, from Gettext.
76855         * lib/Makefile.am (INCLUDES): Remove -I../intl.
76856         (libfetish_a_SOURCES): Add gettext.h.
76857
76858 2002-04-16  Jim Meyering  <meyering@lucent.com>
76859
76860         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
76861         ut_pid, ut_id, ut_exit.
76862
76863 2002-04-16  Jim Meyering  <meyering@lucent.com>
76864
76865         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
76866         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
76867         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
76868
76869 2002-04-12  Jim Meyering  <meyering@lucent.com>
76870
76871         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
76872         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
76873         existence of the getmntinfo function.  Needed for Darwin 5.3.
76874
76875         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
76876         This is necessary at least on Darwin 5.3.
76877
76878         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
76879         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
76880         strnlen.o in the library, and that makes some versions of ranlib
76881         object.
76882
76883 2002-04-12  Jim Meyering  <meyering@lucent.com>
76884
76885         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
76886
76887 2002-04-09  Jim Meyering  <meyering@lucent.com>
76888
76889         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
76890         to be more precise.  Rather than saying we're checking whether the
76891         function `works', say what we're testing.
76892         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
76893         Reported by Bruno Haible.
76894
76895 2002-03-10  Jim Meyering  <meyering@lucent.com>
76896
76897         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
76898         Suggestion from Santiago Vila.
76899
76900 2002-03-08  Jim Meyering  <meyering@lucent.com>
76901
76902         * lib/rename.c: Mention that this wrapper is needed also on
76903         mips-dec-ultrix4.4 systems.
76904
76905 2002-03-02  Jim Meyering  <meyering@lucent.com>
76906
76907         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
76908         not HAVE_CLOCK_SETTIME.
76909
76910 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76911
76912         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
76913         Check for clock_settime.
76914
76915 2002-02-27  Paul Eggert  <eggert@twinsun.com>
76916
76917         * lib/nanosleep.h: Rename to....
76918         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
76919
76920         * lib/gettime.c: New file.
76921         * lib/settime.c: New file.
76922         * lib/stime.c: Remove.
76923
76924         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
76925         timespec.h.  Remove nanosleep.h.
76926
76927 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76928
76929         * m4/acl.m4: New file.
76930         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
76931         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
76932
76933 2002-02-25  Paul Eggert  <eggert@twinsun.com>
76934
76935         * lib/acl.c, lib/acl.h: New files.
76936         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
76937
76938 2002-02-24  Jim Meyering  <meyering@lucent.com>
76939
76940         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
76941         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
76942         cause trouble.  Reported by Nelson Beebe.
76943
76944 2002-02-23  Paul Eggert  <eggert@twinsun.com>
76945
76946         * lib/path-concat.c (xpath_concat): Reorder code to pacify
76947         compilers that don't know that xalloc_die never returns.
76948
76949 2002-02-20  Jim Meyering  <meyering@lucent.com>
76950
76951         * lib/getdate.c: Regenerate using bison-1.33.
76952
76953 2002-02-17  Jim Meyering  <meyering@lucent.com>
76954
76955         * config/config.guess (main): Don't use `head -1'; it's no longer
76956         portable. Use `sed 1q' instead.
76957
76958 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
76959
76960         * m4/codeset.m4: Upgrade to gettext-0.11.
76961         * m4/gettext.m4: Upgrade to gettext-0.11.
76962         * m4/glibc21.m4: Upgrade to gettext-0.11.
76963         * m4/iconv.m4: Upgrade to gettext-0.11.
76964         * m4/isc-posix.m4: Upgrade to gettext-0.11.
76965         * m4/lcmessage.m4: Upgrade to gettext-0.11.
76966         * m4/lib-ld.m4: New file, from gettext-0.11.
76967         * m4/lib-link.m4: New file, from gettext-0.11.
76968         * m4/lib-prefix.m4: New file, from gettext-0.11.
76969         * m4/progtest.m4: Upgrade to gettext-0.11.
76970
76971 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76972
76973         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
76974         (jm_PREREQ): Use it.
76975
76976 2002-02-15  Paul Eggert  <eggert@twinsun.com>
76977
76978         * lib/posixver.c, lib/posixver.h: New files.
76979         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
76980
76981 2002-02-02  Paul Eggert  <eggert@twinsun.com>
76982             Bruno Haible  <bruno@clisp.org>
76983
76984         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
76985         (fwrite_success_callback): New declaration.
76986         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
76987         print_unicode_char. Call failure callback instead of error.
76988         (fwrite_success_callback): New function.
76989         (exit_failure_callback): New function.
76990         (fallback_failure_callback): New function.
76991         (print_unicode_char): Call unicode_to_mb.
76992
76993 2002-01-26  Jim Meyering  <meyering@lucent.com>
76994
76995         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
76996         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
76997
76998 2002-01-26  Jim Meyering  <meyering@lucent.com>
76999
77000         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
77001
77002 2002-01-22  Paul Eggert  <eggert@twinsun.com>
77003
77004         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
77005
77006 2002-01-22  Jim Meyering  <meyering@lucent.com>
77007
77008         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
77009         Otherwise, some versions of automake would omit the rule that makes
77010         Makefile from Makefile.in.
77011
77012 2002-01-21  Paul Eggert  <eggert@twinsun.com>
77013
77014         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
77015         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
77016         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
77017         (memcoll): Set errno to zero if there is no error.
77018
77019         * lib/quotearg.c (quotearg_buffer_restyled):
77020         Fix bug with quoting buffers containing NUL when backslashing escapes.
77021         This bug was exposed by the other changes in this patch.
77022         (quotearg_n_options): New arg ARGSIZE.
77023         All callers changed.
77024         (quoting_options_from_style): New function.
77025         (quotearg_n_style): Use it.
77026         (quotearg_n_style_mem): New function.
77027
77028         * lib/quotearg.h (quotearg_n_style_mem): New function.
77029
77030 2002-01-19  Jim Meyering  <meyering@lucent.com>
77031
77032         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
77033         Remove useless quotes: DF_PROG="df".
77034         * m4/strnlen.m4: New file.
77035
77036 2002-01-16  Paul Eggert  <eggert@twinsun.com>
77037
77038         * lib/backupfile.c (ISDIGIT): Comment fix.
77039         * lib/getdate.y (ISDIGIT): Likewise.
77040         * lib/posixtm.c (ISDIGIT, year): Likewise.
77041         * lib/strverscmp.c (ISDIGIT): Likewise.
77042         * lib/userspec.c (ISDIGIT): Likewise.
77043
77044 2002-01-16  Jim Meyering  <meyering@lucent.com>
77045
77046         * lib/getdate.y: Add three semicolons, each just before a closing
77047         brace. Bison (as of version 1.31) no longer papers over that mistake.
77048
77049 2002-01-05  Jim Meyering  <meyering@lucent.com>
77050
77051         * lib/version-etc.c (version_etc_copyright): Update copyright year.
77052
77053 2001-12-19  Paul Eggert  <eggert@twinsun.com>
77054
77055         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
77056         not silently exit merely because the output buffer happens to
77057         have nothing pending.
77058
77059 2001-12-18  Paul Eggert  <eggert@twinsun.com>
77060
77061         See the big note in ../ChangeLog.
77062         * lib/human.c (suffixes): Prefer K to k for 1024.
77063         (generate_suffix_backwards): New function.
77064         (human_readable_inexact): Use it.
77065         * lib/xstrtol.c (__xstrtol): If there is no number but there
77066         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
77067         Accept 'K' as well as 'k'.
77068
77069 2001-12-15  Jim Meyering  <meyering@lucent.com>
77070
77071         * lib/regex.h (__restrict_arr): Update from libc.
77072
77073         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
77074         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
77075         (STREQ): Define.
77076
77077 2001-12-14  Jim Meyering  <meyering@lucent.com>
77078
77079         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
77080         Suggestion from Bruno Haible.
77081
77082 2001-12-10  Jim Meyering  <meyering@lucent.com>
77083
77084         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
77085         xrealloc, Instead, include "xalloc.h".
77086         (initbuffer): Don't cast xmalloc return value to char*.
77087         (readline): Reword comment.
77088         Don't cast xrealloc return value to char*
77089         Return NULL, not 0.
77090
77091 2001-12-09  Jim Meyering  <meyering@lucent.com>
77092
77093         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
77094         about `signed and unsigned type in conditional expression'.
77095         * lib/posixtm.c (posix_time_parse): Likewise.
77096
77097         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
77098
77099         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
77100         to avoid a pedantic warning.
77101
77102         * lib/getstr.c: Don't include assert.h.
77103         (getstr): Remove warning-evoking assertions.
77104         Return -1 if offset parameter is out of bounds.
77105         Change the type of a local from int to size_t.
77106
77107         * lib/strftime.c (my_strftime_localtime_r): Include this function
77108         definition in the `#if ! HAVE_TM_GMTOFF' block.
77109
77110         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
77111         Include xalloc.h instead.
77112
77113 2001-12-02  Jim Meyering  <meyering@lucent.com>
77114
77115         * lib/tempname.c: Don't declare getenv, thus reverting the change of
77116         2001-11-18.  It's no longer necessary, now that stdlib.h is always
77117         included.
77118
77119         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
77120         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
77121
77122 2001-11-30  Akim Demaille  <akim@epita.fr>
77123
77124         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
77125         before being defined.
77126
77127 2001-11-27  Paul Eggert  <eggert@twinsun.com>
77128
77129         * lib/quotearg.h (quotearg_n, quotearg_n_style):
77130         First arg is int, not unsigned.
77131         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
77132         (SIZE_MAX, UINT_MAX): New macros.
77133         (quotearg_n_options): Abort if N is negative.
77134         Avoid overflow check on hosts where size_t is 64 bits and int
77135         is 32 bits, as overflow is impossible there.
77136         Fix off-by-one typo that caused unnecessary reallocation.
77137
77138 2001-11-27  Jim Meyering  <meyering@lucent.com>
77139
77140         * lib/tempname.c: Merge with version from libc.
77141         * lib/regex.c: Likewise.
77142
77143         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
77144         systems for which STDC_HEADERS is 0, it was not included, resulting in
77145         a warning about an integer-to-pointer conversion problem with getenv.
77146         Reported by Volker Borchert.
77147
77148 2001-11-26  Jim Meyering  <meyering@lucent.com>
77149
77150         * lib/gtod.h: Remove file.
77151         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
77152         * lib/gettimeofday.c: Don't include gtod.h.
77153         (GTOD_init): Remove function.
77154         (rpl_gettimeofday): Do its job here instead, rather than aborting.
77155         Suggestion from Volker Borchert.
77156
77157 2001-11-23  Jim Meyering  <meyering@lucent.com>
77158
77159         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
77160         it.
77161         * lib/hash.c (struct hash_table): Define it here instead.
77162
77163 2001-11-22  Jim Meyering  <meyering@lucent.com>
77164
77165         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
77166
77167 2001-11-20  Jim Meyering  <meyering@lucent.com>
77168
77169         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
77170         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
77171
77172 2001-11-19  Jim Meyering  <meyering@lucent.com>
77173
77174         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
77175         directory.  Use "conftestXXXXXX" as the template.
77176         Suggestion from Paul Eggert.
77177
77178         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
77179         immediately, so the test doesn't mistakenly hit the max-open-files
77180         limit.
77181
77182 2001-11-18  Paul Eggert  <eggert@twinsun.com>
77183
77184         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
77185         (TEMPORARIES): New macro.
77186         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
77187         removes an artificial limitation (e.g. HP-UX 10.20, where
77188         TMP_MAX is 17576).
77189
77190 2001-11-18  Jim Meyering  <meyering@lucent.com>
77191
77192         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
77193
77194 2001-11-18  Jim Meyering  <meyering@lucent.com>
77195
77196         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
77197         on SunOS 4.
77198
77199         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
77200         files will be created before anything else.
77201
77202 2001-11-17  Paul Eggert  <eggert@twinsun.com>
77203
77204         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
77205         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
77206
77207 2001-11-17  Jim Meyering  <meyering@lucent.com>
77208
77209         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
77210         Prompted by a report from Bob Proulx.
77211
77212         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
77213         Instead, require UTILS_FUNC_MKSTEMP.
77214
77215 2001-11-17  Jim Meyering  <meyering@lucent.com>
77216
77217         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
77218         Now, that's done as part of AC_FUNC_STRTOD.
77219
77220 2001-11-17  Jim Meyering  <meyering@lucent.com>
77221
77222         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
77223         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
77224         rather than group writable.  Patch by Juan F. Codagnone.
77225
77226         * lib/readtokens.c: Remove explicit declarations of xmalloc and
77227         xrealloc, Instead, include "xalloc.h".
77228
77229         * lib/mountlist.c: Include unlocked-io.h after all system headers.
77230         Remove explicit declarations of xmalloc, xrealloc,
77231         and xstrdup.  Instead, include "xalloc.h".
77232
77233         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
77234         unlocked-io.h.
77235         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
77236         Likewise.
77237         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
77238
77239         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
77240         Reported by Padraig Brady.
77241
77242         * lib/mkstemp.c: #undef mkstemp.
77243         Include config.h.
77244         (rpl_mkstemp): Rename from mkstemp.
77245         Protoize.
77246
77247 2001-11-16  Jim Meyering  <meyering@lucent.com>
77248
77249         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
77250         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
77251         determine the amount of total physical memory, use pstat_getstatic.
77252         HPUX-11 doesn't define _SC_PHYS_PAGES.
77253         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
77254         If sysconf couldn't be used to determine the amount of available
77255         physical memory, use both pstat_getstatic and pstat_getdynamic.
77256         Based on a patch from Bob Proulx.
77257
77258 2001-11-10  Jim Meyering  <meyering@lucent.com>
77259
77260         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
77261         (jm_PREREQ): Use it.
77262
77263 2001-11-09  Jim Meyering  <meyering@lucent.com>
77264
77265         * m4/jm-macros.m4: Require autoconf-2.52f.
77266         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
77267         Use these AC_-prefixed names, not the AM_-prefixed ones.
77268
77269         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
77270
77271 2001-11-05  Jim Meyering  <meyering@lucent.com>
77272
77273         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
77274
77275 2001-11-04  Jim Meyering  <meyering@lucent.com>
77276
77277         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
77278         $DEFS.
77279
77280 2001-11-03  Jim Meyering  <meyering@lucent.com>
77281
77282         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
77283         of AC_DEFUN.
77284
77285         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
77286         know the name of the variable in the macro definition.
77287
77288 2001-11-03  Jim Meyering  <meyering@lucent.com>
77289
77290         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
77291         in argmatch_to_argument call.
77292
77293         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
77294         argument.
77295
77296         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
77297         e.g., a fault due to an attempt to free a NULL pointer.
77298
77299 2001-11-01  Jim Meyering  <meyering@lucent.com>
77300
77301         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
77302         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
77303
77304 2001-11-01  Jim Meyering  <meyering@lucent.com>
77305
77306         * lib/dirfd.c, lib/dirfd.h: New files.
77307         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
77308
77309         * lib/hash.c (hash_print) [TESTING]: Clean up.
77310
77311 2001-10-22  Paul Eggert  <eggert@twinsun.com>
77312
77313         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
77314         to avoid a warning if -Wall.
77315
77316 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
77317
77318         * README: New file
77319         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
77320         (per RMS's instructions, this is now the canonical source)
77321         * lgpl/, gpl/: New directories.
77322
77323 2001-10-21  Paul Eggert  <eggert@twinsun.com>
77324
77325         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
77326
77327 2001-10-21  Jim Meyering  <meyering@lucent.com>
77328
77329         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
77330         this code would end up calling gettext even in packages built
77331         with --disable-nls.
77332         * lib/getopt.c (_): Likewise.
77333         * lib/regex.c (_): Likewise.
77334
77335 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77336
77337         * m4/error.m4 (jm_PREREQ_ERROR):
77338         Do not invoke AC_CHECK_FUNCS with strerror_r, as
77339         AC_FUNC_STRERROR_R does that.
77340         Check for strerror declaration.
77341
77342         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
77343         are supposed to have them these days.
77344         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
77345         Merge changes from latest Autoconf CVS.
77346         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
77347         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
77348         POSIX decided to standardize on the int flavor of strerror_r.
77349
77350 2001-10-20  Paul Eggert  <eggert@twinsun.com>
77351
77352         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
77353         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
77354         Use strerror_r that is only a macro, even if it is not a function.
77355         (strerror): Check for HAVE_DECL_STRERROR before declaring.
77356         (private_strerror): Use prototypes, not old-style function definition.
77357         (print_errno_message): New function.
77358         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
77359         char*-flavored one.
77360         (error_tail, error, error_at_line): Use it.
77361
77362 2001-10-11  Jim Meyering  <meyering@lucent.com>
77363
77364         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
77365         and quote_n (1, ... to avoid clobbering a buffer.
77366
77367 2001-10-05  Jim Meyering  <meyering@lucent.com>
77368
77369         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
77370         hash-pjw.h.
77371         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
77372         * lib/hash-pjw.h: New file.
77373
77374 2001-09-30  Jim Meyering  <meyering@lucent.com>
77375
77376         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
77377         `struct fsstat' has the `f_fstypename' member.
77378         Use that to define FS_TYPE, which is now used to make
77379         the getfsstat link test tighter.
77380
77381 2001-09-30  Jim Meyering  <meyering@lucent.com>
77382
77383         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
77384         Include <sys/ucred.h>, for Apple Darwin.
77385         Include sys/mount.h and sys/fs_types.h only if available.
77386         (FS_TYPE): Define.
77387         (read_filesystem_list): Use FS_TYPE.
77388
77389 2001-09-29  Paul Eggert  <eggert@twinsun.com>
77390
77391         * lib/exclude.c (excluded_filename): 0 -> false, since it's
77392         a boolean context.
77393
77394 2001-09-29  Jim Meyering  <meyering@lucent.com>
77395
77396         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77397         [one-argument getmntent function]): Include stdio.h before mntent.h.
77398         SunOS 4.1.x needs it for the declaration of `FILE'.
77399         Patch by Volker Borchert.
77400
77401         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
77402         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
77403         sys/fs_types.h, and make the link-test for getfsstat guard #include
77404         directives with appropriate #if HAVE_*_H tests so that we can
77405         detect getfsstat on Apple Darwin1.3.7 systems.
77406         Reported by Nelson Beebe.
77407         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
77408
77409 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77410
77411         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77412         #defines strtoimax.  Also treat the other strto* functions
77413         like strtoimax.
77414
77415         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77416         Check for strtoul and strtoumax,
77417         as those declarations are made even in the signed case.
77418         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
77419         Likewise, for strtol and strtoimax.
77420
77421 2001-09-28  Paul Eggert  <eggert@twinsun.com>
77422
77423         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
77424         #defines strtoimax.  Also treat the other strto* functions
77425         like strtoimax.
77426
77427         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
77428         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
77429         (strtoimax, strtoumax): Do not declare if already defined as a macro.
77430
77431 2001-09-26  Jim Meyering  <meyering@lucent.com>
77432
77433         Most macros in unlocked-io.h had the wrong number of arguments.
77434         * lib/gen-uio: New script.
77435         (USE_UNLOCKED_IO): Define to 1 if not already defined.
77436         * lib/unlocked-io.hin: Remove file.
77437         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
77438         rather than trying to embed it here.
77439         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
77440         Reported by Padraig Brady.
77441
77442 2001-09-25  Volker Borchert  <bt@teknon.de>
77443
77444         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
77445         `result'.
77446
77447 2001-09-24  Jim Meyering  <meyering@lucent.com>
77448
77449         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
77450
77451 2001-09-23  Jim Meyering  <meyering@lucent.com>
77452
77453         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
77454         instead of the mere test for existence of mntent.h.  The latter
77455         would get a false-positive on AIX 3.4 systems.
77456         In the outer getmntent if-block, don't die if neither of the getmntent
77457         tests succeeds.  Instead, just fall through and continue with the
77458         remaining tests.
77459
77460 2001-09-23  Jim Meyering  <meyering@lucent.com>
77461
77462         * lib/mountlist.c: Remove useless parentheses in #if directives.
77463         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
77464         the deprecated MOUNTED symbol is no longer defined in mntent.h.
77465
77466 2001-09-22  Jim Meyering  <meyering@lucent.com>
77467
77468         * m4/gettext.m4: New file.  From gettext.
77469         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
77470         * m4/progtest.m4: Likewise
77471         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
77472         * m4/glibc21.m4: Likewise.
77473
77474         * m4/libintl.m4: Remove.  No longer used.
77475
77476 2001-09-22  Jim Meyering  <meyering@lucent.com>
77477
77478         * lib/localcharset.c: Update from latest gettext.
77479         * lib/config.charset: Likewise.
77480
77481 2001-09-20  Jim Meyering  <meyering@lucent.com>
77482
77483         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
77484         strtoimax.
77485         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
77486         strtoumax.
77487
77488 2001-09-20  Jim Meyering  <meyering@lucent.com>
77489
77490         * lib/xstrtol.c (strtoimax): Guard declaration with
77491         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
77492         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
77493         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
77494         (strtoumax): Likewise, for completeness (it wasn't necessary).
77495
77496 2001-09-17  Paul Eggert  <eggert@twinsun.com>
77497
77498         * lib/strtoimax.c (HAVE_LONG_LONG):
77499         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
77500         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
77501         to work around bug in IBM C compiler.
77502
77503 2001-09-17  Jim Meyering  <meyering@lucent.com>
77504
77505         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
77506         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
77507         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
77508         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
77509         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
77510         whenever the right hand side need not be expanded by the shell.
77511
77512 2001-09-16  Paul Eggert  <eggert@twinsun.com>
77513
77514         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
77515         library.  It's not correct, as some older glibcs are buggy.
77516         fnmatch wasn't fixed until glibc 2.2.
77517
77518         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
77519         special shell magic here.
77520
77521 2001-09-16  Jim Meyering  <meyering@lucent.com>
77522
77523         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
77524         * m4/jm-macros.m4: Require it.
77525
77526 2001-09-16  Jim Meyering  <meyering@lucent.com>
77527
77528         * lib/mkdir.c: New file.
77529
77530 2001-09-15  Jim Meyering  <meyering@lucent.com>
77531
77532         * m4/jm-macros.m4: Check for help2man.
77533
77534 2001-09-11  Jim Meyering  <meyering@lucent.com>
77535
77536         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
77537         The body, by Paul Eggert, was moved here from configure.in.
77538         * m4/jm-macros.m4: Require UTILS_HOST_OS.
77539
77540 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77541
77542         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
77543         (jm_PREREQ): Use it.
77544
77545 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77546
77547         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
77548         Use ssize_t, not int, to store result of readlink.
77549         Check for ssize_t overflow as well as size_t overflow,
77550         as POSIX says the result of readlink is implementation-defined
77551         when ssize_t overflows.
77552         Remove unnecessary cast to char*.
77553         Use free+malloc instead of realloc, as the storage doesn't need
77554         to be preserved and it's clearer and can be more efficient that way.
77555         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
77556         * lib/xreadlink.h (xreadlink): Update prototype.
77557
77558 2001-09-04  Paul Eggert  <eggert@twinsun.com>
77559
77560         * lib/xgetcwd.c: Revert some of the previous change; intead,
77561         fix the HAVE_GETCWD_NULL code to behave more like the
77562         !HAVE_GETCWD_NULL code used to.
77563
77564         Include "xalloc.h".
77565         (xgetcwd): Do not return NULL when memory is exhausted; instead,
77566         invoke xalloc_die.
77567
77568 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77569
77570         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
77571         sys/param.h, as pathmax.h includes them.
77572
77573 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77574
77575         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
77576         (jm_PREREQ_XGETCWD): New macro.
77577
77578         * m4/getcwd.m4: New file.
77579
77580 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77581
77582         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
77583         like the HAVE_GETCWD_NULL code.
77584         Include pathmax.h if not HAVE_GETCWD.
77585         Do not include xalloc.h.
77586         (INITIAL_BUFFER_SIZE): New symbol.
77587         Do not use xmalloc / xrealloc, since the caller is responsible for
77588         handling errors.  Preserve errno around `free' during failure.
77589         Do not overrun buffer when using getwd.
77590
77591 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77592
77593         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
77594         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
77595         getcwd (NULL, 0).
77596
77597 2001-09-03  Paul Eggert  <eggert@twinsun.com>
77598
77599         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
77600         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
77601         spotted by Jim Meyering.
77602
77603 2001-09-03  Jim Meyering  <meyering@lucent.com>
77604
77605         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
77606         failure.
77607
77608 2001-09-02  Jim Meyering  <meyering@lucent.com>
77609
77610         * lib/error.c: Update from GNU libc.
77611
77612 2001-09-01  Jim Meyering  <meyering@lucent.com>
77613
77614         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
77615         Used by df.
77616
77617 2001-09-01  Jim Meyering  <meyering@lucent.com>
77618
77619         * lib/xreadlink.c: New file.
77620         * lib/xreadlink.h: New file.
77621         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
77622         xreadlink.h.
77623
77624         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
77625         doesn't conflict with sparc Solaris 7's definition in
77626         /usr/include/sys/int_types.h.
77627
77628         * lib/exclude.c: Use `""', not `<>' to #include non-system header
77629         files.
77630         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
77631         and strncasecmp as r-values.  Unixware didn't have declarations.
77632
77633 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77634
77635         * lib/xstrtol.h: Add copyright notice.
77636         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
77637         LONGINT_INVALID_SUFFIX_CHAR.
77638
77639 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77640
77641         * lib/xstrtol.c (strtoimax): New decl.
77642
77643 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77644
77645         * lib/xgetcwd.c: Don't include pathmax.h.
77646         Include stdlib.h and unistd.h if available.
77647         Include xalloc.h.
77648         (xmalloc, xstrdup, free): Remove decls.
77649         (xgetcwd): Don't assume sizes fit in unsigned.
77650         Check for overflow when computing sizes.
77651         Simplify reallocation code.
77652
77653 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77654
77655         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
77656         a directory's st_size can have an arbitrary value, so the old
77657         usage could waste an arbitrary amount of memory.  All uses
77658         changed.
77659         * lib/savedir.h: Update prototype.
77660
77661 2001-08-31  Paul Eggert  <eggert@twinsun.com>
77662
77663         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
77664
77665         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
77666         old strtoimax.c.
77667
77668         Also, make the following further changes to make this file's
77669         configuration more similar to that of strtol.c:
77670         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
77671         (strtoumax, uintmax_t, strtoull, strtol): Remove.
77672         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
77673         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
77674         changed to signed values.
77675
77676         And make the following changes as well:
77677         Fix copyright notice, as 1999 was missing.
77678         (verify): New macro.
77679         (strtoimax): Check sizes at compile-time, not run-time.
77680         Prefer strtol to strtoll if both work.
77681         (main): Remove; it was not that useful and was a pain to maintain.
77682
77683         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
77684
77685 2001-08-31  Jim Meyering  <meyering@lucent.com>
77686
77687         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
77688         Use an initial, malloc'd, buffer of length 128 rather than
77689         a statically allocated one of length 1024.
77690
77691 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77692
77693         Simplify code, partly by assuming autoconf 2.52 semantics.
77694
77695         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
77696
77697         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
77698         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
77699         All uses removed.
77700         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
77701         Move AC_REQUIRE to next-to-top level, to avoid confusion.
77702         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
77703         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
77704         jm_AC_HEADER_INTTYPES_H.
77705         * m4/jm-macros.m4 (jm_MACROS): Likewise.
77706
77707         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
77708
77709         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
77710         Quote first arg of AC_DEFUN.
77711         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
77712         since they are needed to parse the include file even if we need
77713         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
77714         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
77715         but with opposite signedness.
77716
77717 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77718
77719         Merge 'exclude' changes from tar 1.13.22.
77720         This fixes one or two unlikely storage allocation overflow bugs,
77721         but doesn't change user-visible behavior otherwise.
77722
77723 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77724
77725         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
77726         (jm_PREREQ_EXCLUDE): New macro.
77727
77728 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77729
77730         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
77731         tm to be declared.
77732
77733 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77734
77735         * lib/hash.c: Remove '2001' from copyright notice.
77736
77737 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77738
77739         * lib/full-write.h: New file.
77740         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
77741         * lib/full-write.c: Correct credits, as cccp.c no longer
77742         exists and anyway it was so heavily changed from the old cccp
77743         code as to be unrecognizable.  Include full-write.h.
77744         (full_write): Return size_t, with short writes meaning failure.
77745         All callers changed.  This fixes a bug with large buffers
77746         on 64-bit hosts.
77747         * lib/utime.c: Include full-write.h.
77748
77749 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77750
77751         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
77752         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
77753         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
77754         Include if available.
77755         (<xalloc.h>): Include
77756         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
77757         (verify): New macro.  Use it to verify that EXCLUDE macros do not
77758         collide with FNM macros.
77759         (struct patopts): New struct.
77760         (struct exclude): Use it, as exclude patterns now come with options.
77761         (new_exclude): Support above changes.
77762         (new_exclude, add_exclude_file):
77763         Initial size must now be a power of two to simplify overflow checking.
77764         (free_exclude, fnmatch_no_wildcards): New function.
77765         (excluded_filename): No longer requires options arg, as the options
77766         are determined by add_exclude.  Now returns bool, not int.
77767         (excluded_filename, add_exclude):
77768         Add support for the fancy new exclusion options.
77769         (add_exclude, add_exclude_file): Now takes int options arg.
77770         Check for arithmetic overflow when computing sizes.
77771         (add_exclude_file): xrealloc might modify errno, so don't
77772         realloc until after errno might be used.
77773
77774         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
77775         New macros.
77776         (free_exclude): New decl.
77777         (add_exclude, add_exclude_file): Now takes int options arg.
77778         (excluded_filename): No longer requires options arg, as the options
77779         are determined by add_exclude.  Now returns bool, not int.
77780
77781 2001-08-30  Paul Eggert  <eggert@twinsun.com>
77782
77783         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
77784
77785 2001-08-27  Jim Meyering  <meyering@lucent.com>
77786
77787         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
77788
77789         * lib/version-etc.c (N_): Remove definition.
77790         Revert most of last change.
77791         Instead, simply don't mark the `Copyright...' string for translation.
77792         Based on advice from Paul Eggert.
77793
77794         * lib/strtoxmax.c: Tweak comment.
77795
77796 2001-08-26  Jim Meyering  <meyering@lucent.com>
77797
77798         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
77799
77800         * m4/xstrtoimax.m4: New file.
77801         * m4/xstrtoumax.m4: Add comments explaining why we
77802         AC_REPLACE_FUNCS(strtol).
77803
77804 2001-08-26  Jim Meyering  <meyering@lucent.com>
77805
77806         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
77807         of copyright with `%s' so translators don't get an untranslated
77808         message in 2002.
77809         (COPYRIGHT_YEAR): Define.
77810         (version_etc): Use fprintf rather than fputs.
77811         Suggestion from Ulrich Drepper.
77812
77813         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
77814
77815         * lib/strtoll.c: New file, from GNU libc.
77816         * lib/xstrtoimax.c: New file.
77817
77818         * lib/xstrtol.h: Add xstrtoimax.
77819         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
77820         * lib/strtoimax.c: New file.  Likewise, but first define
77821         STRTOUXMAX_SIGNED.
77822
77823         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
77824         ...
77825         * lib/strtoxmax.c: ... then renamed to this.
77826
77827 2001-08-18  Paul Eggert  <eggert@twinsun.com>
77828
77829         * m4/inttypes.m4: Add AC_PREREQ(2.13).
77830         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
77831         (jm_AC_TYPE_INTMAX_T): New macro.
77832         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
77833
77834         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
77835
77836         * m4/longlong.m4: Renamed from ulonglong.m4.
77837         * m4/inttypes.m4: Renamed from inttypes_h.m4.
77838         * m4/uintmax_t.m4: Removed.
77839
77840 2001-08-13  Paul Eggert  <eggert@twinsun.com>
77841
77842         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
77843         Port to Solaris 8, where 'sed' requires a space after the 'r'
77844         command, and where sh dislikes "$/".  Clean up the spacing a bit.
77845         Redirect output to $tmp just once.
77846
77847 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
77848
77849         * lib/addext.c (<errno.h>): Include.
77850         (errno): Declare if not defined.
77851         (addext): Work correctly when pathconf returns -1 and leaves
77852         errno alone because there is no limit.  Also, work even if
77853         pathconf returns a value greater than SIZE_MAX.
77854
77855 2001-08-12  Jim Meyering  <meyering@lucent.com>
77856
77857         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
77858         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
77859         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
77860         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
77861         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
77862         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
77863         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
77864         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
77865         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
77866         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
77867         utime.m4, utimes.m4, xstrtoumax.m4:
77868         Quote the first argument in each use of AC_DEFUN.
77869
77870 2001-08-12  Jim Meyering  <meyering@lucent.com>
77871
77872         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
77873         Simply `return getcwd (NULL, 0);'.
77874         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
77875         Use 1300 as initial value for length, not PATH_MAX.
77876
77877         * lib/pathmax.h: Clean up cpp syntax.
77878
77879 2001-08-12  Jim Meyering  <meyering@lucent.com>
77880
77881         * lib/gettimeofday.c: New file.
77882         * lib/gtod.h: New file.
77883         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
77884
77885 2001-08-05  Jim Meyering  <meyering@lucent.com>
77886
77887         * m4/jm-macros.m4: Require autoconf-2.52.
77888
77889 2001-08-04  Jim Meyering  <meyering@lucent.com>
77890
77891         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
77892         stmt, to get in sync with glibc.
77893
77894 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77895
77896         The following changes are from gettext 0.10.39 as maintained by
77897         Bruno Haible.
77898
77899         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
77900         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
77901         with inverted sense.  All uses changed.
77902
77903         * lib/mbswidth.c: Don't include <limits.h>.
77904         Include <stdlib.h> and <string.h> unconditionally.
77905         (iswcntrl, mbsinit, ISCNTRL): New macros.
77906         (mbsnwidth): Use K&R style function declarations.
77907         Don't bother checking for MB_LEN_MAX == 1, since the compiler
77908         can optimize it when MB_CUR_MAX == 1.
77909         The width of control characters is zero, not 1.
77910
77911 2001-08-03  Paul Eggert  <eggert@twinsun.com>
77912
77913         The following changes are from gettext 0.10.39 as maintained by
77914         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
77915
77916         * m4/codeset.m4: Upgrade to serial AM1.
77917         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
77918         all uses changed.  Quote first arg of AC_DEFUN.
77919         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
77920
77921         * m4/iconv.m4: Upgrade to serial AM2.
77922         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
77923         Add --with-libconv-prefix.
77924         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
77925         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
77926         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
77927         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
77928         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
77929
77930         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
77931         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
77932         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
77933         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
77934         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
77935         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
77936         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
77937         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
77938         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
77939
77940         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
77941         string.h any more.
77942
77943         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
77944         not the default value.
77945
77946         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
77947         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
77948         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
77949         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
77950         Also check for iswcntrl, used for wcwidth fallback.
77951         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
77952         to Autoconf 2.13.
77953
77954 2001-08-03  Jim Meyering  <meyering@lucent.com>
77955
77956         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
77957         as it was in the original.  Reported by Paul Eggert.
77958
77959 2001-07-16  Jim Meyering  <meyering@lucent.com>
77960
77961         * m4/gettimeofday.m4: New file.
77962         Prompted by a report from Bernhard Baehr.
77963
77964 2001-07-15  Jim Meyering  <meyering@lucent.com>
77965
77966         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
77967         stuff. Now it's in ../Makefile.cfg.
77968
77969 2001-07-15  Jim Meyering  <meyering@lucent.com>
77970
77971         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
77972         (BUILT_SOURCES): Add unlocked-io.h.
77973         (io_functions): Define.
77974         (unlocked-io.h): New rule.
77975         (DISTCLEANFILES): Add unlocked-io.h.
77976         (all-local): Depend on unlocked-io.h, to ensure it is created.
77977
77978         * lib/unlocked-io.hin: New file
77979
77980         * lib/regex.c: Update from glibc.
77981
77982 2001-07-05  Jim Meyering  <meyering@lucent.com>
77983
77984         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
77985         recommendation.
77986         (libfetish_a_SOURCES): Put all .h files here instead.
77987         Remove a thus-exposed (better checks in automake) duplicate and
77988         two unnecessary .h files.
77989
77990 2001-07-04  Jim Meyering  <meyering@lucent.com>
77991
77992         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
77993         that generates jm-glibc-io.m4 so that it doesn't trigger any make
77994         distcheck failure.
77995
77996 2001-07-02  Jim Meyering  <meyering@lucent.com>
77997
77998         The following changes were prompted by suggestions from Bruno Haible.
77999
78000         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
78001         is now generated.
78002         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
78003         definition of EXTRA_DIST.
78004         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
78005         ensure that the generated file is created/updated whenever the list
78006         of $(unlocked_functions) is changed.
78007         (jm-glibc-io.m4): New rule.
78008         (unlocked-io.h): New rule -- currently unused.
78009
78010 2001-06-24  Jim Meyering  <meyering@lucent.com>
78011
78012         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
78013         unmatched right bracket, rather than kludging it with an extra,
78014         falsely-matching quote in a comment.  Patch by Akim Demaille.
78015
78016 2001-06-11  Jim Meyering  <meyering@lucent.com>
78017
78018         * lib/regex.c: Update from GNU libc.
78019
78020 2001-05-27  Jim Meyering  <meyering@lucent.com>
78021
78022         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
78023         Check for ut_type in struct utmp.
78024
78025 2001-05-27  Jim Meyering  <meyering@lucent.com>
78026
78027         * lib/readutmp.h (UT_TYPE): Define.
78028
78029 2001-05-24  Jim Meyering  <meyering@lucent.com>
78030
78031         * lib/argmatch.c: Include "quote.h".
78032         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
78033         quote function.  Reported by Göran Uddeborg.
78034
78035 2001-05-22  Jim Meyering  <meyering@lucent.com>
78036
78037         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
78038         now that we use the package-supplied version unconditionally.
78039         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
78040
78041 2001-05-21  Jim Meyering  <meyering@lucent.com>
78042
78043         * m4/regex.m4: Change a couple backticks to single quotes to avoid
78044         shell syntax errors.
78045
78046 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
78047
78048         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
78049
78050 2001-05-20  Paul Eggert  <eggert@twinsun.com>
78051
78052         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
78053         Don't bother to check library strftime, since
78054         we'll be using our own my_strftime function anyway.
78055         Define my_strftime instead of strftime.
78056
78057 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
78058
78059         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
78060         which is not yet declared.
78061
78062 2001-05-15  Jim Meyering  <meyering@lucent.com>
78063
78064         * m4/regex.m4: Use proper quoting so brackets appear in the test
78065         program.
78066         Reported by, and with help from, Bruno Haible.
78067
78068 2001-05-13  Jim Meyering  <meyering@lucent.com>
78069
78070         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
78071         undefined.
78072
78073 2001-05-11  Paul Eggert  <eggert@twinsun.com>
78074
78075         dirname code cleanup.  base_name now behaves more compatibly
78076         with POSIX basename when given file names that have trailing
78077         slashes, and similarly for dir_name.  Add new primitives
78078         base_len and dir_len.  Put the directory-name-related decls
78079         into dirname.h.
78080
78081         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
78082         * lib/backupfile.c (base_name): Likewise.
78083         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
78084         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
78085         * lib/makepath.c (strip_trailing_slashes): Likewise.
78086         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
78087         ISSLASH): Likewise.
78088         * lib/rename.c (strip_trailing_slashes): Likewise.
78089         * lib/same.c (base_name): Likewise.
78090         * lib/stripslash.c (ISSLASH): Likewise.
78091
78092         * lib/addext.c: Include <dirname.h> after size_t is defined.
78093         * lib/backupfile.c: Likewise.
78094
78095         * lib/addext.c (addext): Use base_len to trim redundant
78096         trailing slashes instead of doing it ourselves.
78097         But do not trim the last slash if it is not redundant.
78098
78099         * lib/backupfile.c (find_backup_file_name,
78100         max_backup_version): Use base_len instead of rolling it ourselves.
78101         Handle the case of "" and (on DOS) "C:" correctly.
78102
78103         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
78104         needed. Include <string.h>, <dirname.h>.
78105         (base_name): Allow file names ending in slashes, other than names
78106         that are all slashes.  In this case, return the basename followed
78107         by the slashes.  This is more general, and can be used in places
78108         where the original base_name purposely had an assertion failure.
78109         (base_len): New function.
78110
78111         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
78112         Do not include <assert.h>; no longer needed.
78113         Include xalloc.h.
78114         (memrchr): Remove decl.
78115         (dir_name_r): Remove.
78116         (dir_len): Renamed from dirlen.  All callers changed.
78117         Rewrite in terms of base_name, for simplicity and consistency.
78118         (dir_name): Never return NULL.  All callers changed.
78119         Do not include <stdlib.h> in test program; no longer needed.
78120         return 0; is fine for test program.
78121
78122         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
78123         New macros.
78124         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
78125
78126         * lib/path-concat.c (path_concat): Use base_len to compute
78127         base length, not strlen; this means we cannot rely on memcpy
78128         to null-terminate.
78129
78130         * lib/same.c (STREQ): Remove.
78131         (same_name): Handle the case where the basename ends in trailing '/'.
78132
78133         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
78134         a slash was stripped.  Do not strip the last slash after a
78135         file system prefix.
78136
78137 2001-05-11  Paul Eggert  <eggert@twinsun.com>
78138
78139         * lib/Makefile.am (libfetish_a_SOURCES):
78140         Add strftime.c, since we now compile it on all hosts.
78141
78142         * lib/strftime.c (my_strftime):
78143         Define to nstrftime if emacs, but only if my_strftime is not defined.
78144         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
78145         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
78146         Add one more extra argument: a nanoseconds value.
78147         All uses changed.
78148         (ns): New macro.
78149         (my_strftime function): Add %N format.
78150         (emacs_strftimeu): Renamed from emacs_strftime,
78151         with extra ut argument.
78152
78153 2001-05-09  Paul Eggert  <eggert@twinsun.com>
78154
78155         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
78156
78157 2001-04-21  Jim Meyering  <meyering@lucent.com>
78158
78159         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
78160         doesn't interfere.
78161
78162 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
78163
78164         * m4/ftruncate.m4: Check for chsize.
78165         Link with ftruncate.o unconditionally if ftruncate is missing.
78166         This was required when cross-compiling to i586-mingw32msvc.
78167
78168 2001-04-08  Jim Meyering  <meyering@lucent.com>
78169
78170         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
78171         recomputed; that's necessary when the offset spans a DST transition.
78172         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
78173
78174 2001-04-02  Jim Meyering  <meyering@lucent.com>
78175
78176         * lib/regex.h, regex.c: Update from GNU libc.
78177
78178 2001-03-24  Jim Meyering  <meyering@lucent.com>
78179
78180         * m4/jm-macros.m4: Require autoconf-2.49d.
78181
78182 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
78183
78184         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
78185
78186 2001-03-19  Paul Eggert  <eggert@twinsun.com>
78187
78188         * lib/version-etc.c (version_etc_copyright): Update to 2001.
78189
78190 2001-03-17  Jim Meyering  <meyering@lucent.com>
78191
78192         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
78193         now that the version in autoconf is equivalent.
78194         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
78195
78196         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
78197         Suggestion from Akim Demaille.
78198
78199         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
78200         (jm_PREREQ_TEMPNAME): New function.
78201
78202 2001-03-16  Paul Eggert  <eggert@twinsun.com>
78203
78204         * lib/tempname.c (uint64_t): Define to uintmax_t if
78205         not defined, and if UINT64_MAX is not defined.
78206         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
78207         Reported by John David Anglin.
78208
78209 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
78210
78211         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
78212         resolve alias if codeset is empty.
78213         * lib/config.charset (BeOS): Use wildcard syntax.
78214
78215 2001-03-13  Jim Meyering  <meyering@lucent.com>
78216
78217         * lib/path-concat.c (path_concat)
78218         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
78219         concatenating e.g., `C:' and `foo'.
78220         From Bruno Haible.
78221
78222 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78223
78224         * lib/localcharset.c (locale_charset): Don't use
78225         setlocale(LC_CTYPE,NULL). Don't return NULL.
78226         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
78227
78228 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
78229
78230         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
78231         support for DOS/DJGPP.
78232
78233 2001-03-01  Paul Eggert  <eggert@twinsun.com>
78234
78235         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
78236         lacks mkstemp.  Compile our own tempname.c if we compile our own
78237         mkstemp.c, as mkstemp relies on tempname.
78238
78239 2001-03-01  Jim Meyering  <meyering@lucent.com>
78240
78241         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
78242         AH_VERBATIM really does output its argument verbatim.
78243
78244 2001-02-28  Paul Eggert  <eggert@twinsun.com>
78245
78246         * lib/Makefile.am (libfetish_a_SOURCES):
78247         Add dup-safer.c, fopen-safer.c.
78248         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
78249
78250         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
78251         * lib/unistd-safer.h: New files.
78252
78253 2001-02-25  Paul Eggert  <eggert@twinsun.com>
78254
78255         The mkstemp replacement is taken from glibc 2.2.2, with some
78256         portability fixes for use outside glibc, as follows:
78257
78258         * lib/tempname.c (struct_stat64): New macro.
78259         (direxists, __gen_tempname): Use it.
78260         This avoids a portability problem with Solaris 8.
78261
78262         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
78263         (<stddef.h>, <stdint.h>, <string.h>):
78264         Include only if STDC_HEADERS || _LIBC.
78265         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
78266         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
78267         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
78268         (__set_errno): Define this macro if <errno.h> doesn't.
78269         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
78270         Define these macros if <stdio.h> doesn't.
78271         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
78272         Define these macros if <sys/stat.h>
78273         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
78274         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
78275         __xstat64): Define if not _LIBC.
78276         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
78277         (__gen_tempname): Invoke gettimeofday only if
78278         HAVE_GETTIMEOFDAY || _LIBC;
78279         otherwise, fall back on plain "time".
78280         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
78281
78282         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
78283
78284         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
78285
78286 2001-02-18  Paul Eggert  <eggert@twinsun.com>
78287
78288         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
78289
78290 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78291
78292         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
78293         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
78294         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
78295         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
78296
78297 2001-02-17  Paul Eggert  <eggert@twinsun.com>
78298
78299         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
78300         Remove workaround macros for hosts that have mbrtowc but not
78301         mbstate_t, as we now insist on proper declarations for both
78302         before using mbrtowc.
78303
78304 2001-02-17  Jim Meyering  <meyering@lucent.com>
78305
78306         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
78307         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
78308         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
78309         UnixWare 7.1.1.
78310
78311         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
78312         rather than AC_CACHE_VAL.
78313
78314 2001-02-17  Jim Meyering  <meyering@lucent.com>
78315
78316         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
78317         around included file name.
78318
78319         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
78320
78321         * lib/strftime.c: Update from GNU libc (the only changes were to
78322         comments).
78323
78324 2001-02-17  Jim Meyering  <meyering@lucent.com>
78325
78326         * lib/regex.c: Update from libc.
78327
78328 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
78329
78330         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
78331         clash.
78332
78333 2001-02-16  Paul Eggert  <eggert@twinsun.com>
78334
78335         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
78336         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
78337         Reported by Mark Hounschell via Paul Eggert.
78338
78339 2001-02-07  Jim Meyering  <meyering@lucent.com>
78340
78341         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
78342
78343 2001-02-05  Jim Meyering  <meyering@lucent.com>
78344
78345         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
78346         it includes the patch required for `large file' support with at least
78347         HP-UX's 10.20 /bin/cc.
78348
78349 2001-02-03  Jim Meyering  <meyering@lucent.com>
78350
78351         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
78352         AS_IF, now that it works once again (mysteriously).
78353         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78354
78355 2001-01-30  Jim Meyering  <meyering@lucent.com>
78356
78357         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
78358         * m4/chown.m4: Rename conftestchown to conftest.chown.
78359         * m4/rename.m4: s/conftestdir/conftest.d1/ and
78360         s/conftestdir2/conftest.d2/.
78361         * m4/utimes.m4: s/conftestdata/conftest.data/
78362         Inspired by Pavel Roskin's change in autoconf.
78363
78364 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
78365
78366         * lib/config.charset: Update for FreeBSD 4.2.
78367
78368 2001-01-27  Jim Meyering  <meyering@lucent.com>
78369
78370         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
78371         a use of AS_IF.
78372         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
78373
78374 2001-01-26  Jim Meyering  <meyering@lucent.com>
78375
78376         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
78377         quotearg.c includes it.
78378
78379 2001-01-26  Jim Meyering  <meyering@lucent.com>
78380
78381         * lib/quotearg.c: Include stddef.h.
78382         * lib/quote.c: Include stddef.h.
78383         Reported by Axel Kittenberger.
78384
78385         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
78386         line in double quotes so that it evokes a better diagnostic.
78387         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
78388         Reported by Axel Kittenberger.
78389
78390 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
78391
78392         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
78393         as if it was a `charset'.
78394
78395 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78396
78397         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
78398         has const.
78399
78400 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
78401
78402         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
78403         to avoid a warning.  Add back 'const' to inptr.
78404
78405 2001-01-20  Jim Meyering  <meyering@lucent.com>
78406
78407         Be sure that headers are checked before used in code compiled
78408         for the type checks.
78409         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
78410         In place of that, invoke jm_CHECK_ALL_TYPES.
78411         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
78412         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
78413         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
78414         The check for ssize_t was mistakenly run before the test for unistd.h.
78415
78416         The configure-time check for stdbool.h was missing.
78417         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
78418         (jm_PREREQ_HASH): New function.
78419
78420 2001-01-17  Jim Meyering  <meyering@lucent.com>
78421
78422         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
78423         for autoconf-2.49c.
78424         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
78425
78426 2001-01-16  Jim Meyering  <meyering@lucent.com>
78427
78428         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
78429         From Bruno Haible.
78430
78431 2001-01-14  Jim Meyering  <meyering@lucent.com>
78432
78433         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
78434         foo and bar.  Create conftestdir/ in the script, not in the C code.
78435         Remove directories in the script, not in the C code.
78436         Remove conftestdir{,2} before trying to create the directory.
78437         Make the entire configure script fail if the mkdir fails.
78438
78439 2001-01-14  Jim Meyering  <meyering@lucent.com>
78440
78441         * lib/rename.c: New file.  From Volker Borchert.
78442         Include stdlib.h, string.h or strings.h, and xalloc.h.
78443         Use strip_trailing_slashes rather than open-coding it.
78444
78445 2001-01-03  Paul Eggert  <eggert@twinsun.com>
78446
78447         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
78448
78449 2001-01-03  Jim Meyering  <meyering@lucent.com>
78450
78451         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
78452         of local `inptr' to avoid warning with some system declarations of
78453         iconv.
78454
78455 2001-01-02  Volker Borchert  <bt@teknon.de>
78456
78457         * m4/rename.m4: New file.
78458         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
78459
78460 2001-01-01  Jim Meyering  <meyering@lucent.com>
78461
78462         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
78463         even on systems with utmpx.h.  It's necessary for the declaration of
78464         utmp's ut_user member.  Reported by Andreas Jaeger.
78465
78466         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
78467         available. They are required for the declarations of getgrgid and
78468         getpwuid resp.
78469         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
78470         Reported by Andreas Jaeger.
78471
78472 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
78473
78474         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
78475         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
78476         so `make install' also works in VPATH builds.
78477
78478 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
78479
78480         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
78481         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
78482         can be used in subdirectories.
78483
78484 2000-12-29  Paul Eggert  <eggert@twinsun.com>
78485
78486         * lib/modechange.c: Do not assume that mode_t uses the
78487         traditional octal encoding.  E.g. "chmod 1 FOO" should set
78488         the other-execute bit of FOO even if S_IXOTH != 1.
78489
78490         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
78491         WOTH, XOTH, ALLM): New macros.
78492         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
78493          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
78494         Use them.
78495         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
78496         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
78497         (mode_compile):
78498         No need to use uintmax_t; unsigned long is long enough.
78499         Don't bother to get suffix since we don't use it.
78500
78501 2000-12-26  Jim Meyering  <meyering@lucent.com>
78502
78503         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
78504         better with autoheader.
78505
78506 2000-12-24  Jim Meyering  <meyering@lucent.com>
78507
78508         * lib/hash.c (is_prime): Return explicit boolean values.
78509         (hash_get_first): Return NULL to appease Irix5.6's 89.
78510         Reported by Nelson Beebe.
78511
78512 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
78513
78514         * lib/localcharset.c (locale_charset): Add support for Win32.
78515
78516 2000-12-18  Paul Eggert  <eggert@twinsun.com>
78517
78518         * lib/physmem.h, lib/physmem.c: New files.
78519
78520         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
78521         (noinst_HEADERS): Add physmem.h.
78522
78523         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
78524         't' for compatibility with Solaris 8 sort.
78525
78526 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
78527
78528         * lib/config.charset: Add support for BeOS.
78529
78530 2000-12-17  Jim Meyering  <meyering@lucent.com>
78531
78532         * m4/dos.m4 (jm_AC_DOS): New file and macro.
78533         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
78534
78535 2000-12-16  Jim Meyering  <meyering@lucent.com>
78536
78537         This bug had a serious impact on chown: `chown N:M FILE' (for integer
78538         N and M) would have treated it like `chown N:N FILE'.
78539
78540         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
78541
78542 2000-12-16  Jim Meyering  <meyering@lucent.com>
78543
78544         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
78545         SHELLS_FILE to a file name that's useful on djgpp systems.
78546         Include stdlib.h.
78547         (ADDITIONAL_DEFAULT_SHELLS): Define.
78548         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
78549         Based mostly on a patch from Prashant TR.
78550
78551 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
78552
78553         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
78554         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
78555         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
78556
78557 2000-12-08  Andreas Schwab  <schwab@suse.de>
78558
78559         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
78560         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
78561
78562 2000-12-07  Jim Meyering  <meyering@lucent.com>
78563
78564         * lib/stripslash.c (ISSLASH): Define.
78565         (strip_trailing_slashes): Use ISSLASH rather than comparing against
78566         `/'.
78567         From Prashant TR.
78568
78569         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
78570         (dir_name_r): Declare this function as static.
78571         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
78572         manifest itself on a name containing a mix of slashes and
78573         backslashes.
78574         Make this function work with names starting with a DOS-style
78575         drive letter and colon prefix.
78576         (dir_name): Append `.' if necessary.
78577         Based mostly on patches from Prashant TR and Eli Zaretskii.
78578
78579         * lib/dirname.h (dir_name_r): Remove prototype.
78580
78581 2000-12-06  Paul Eggert  <eggert@twinsun.com>
78582
78583         * m4/off_t-format.m4: Remove this file.
78584         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
78585
78586 2000-12-06  Jim Meyering  <meyering@lucent.com>
78587
78588         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
78589         replacement strtoull, we may well need the replacement strtoul, too.
78590         Check for declarations of strtoul and strtoull.
78591         Check for strtol.  Mainly as a cue to cause automake to include
78592         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
78593         Check for limits.h -- strtol.c needs it.
78594
78595 2000-12-05  Jim Meyering  <meyering@lucent.com>
78596
78597         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
78598
78599 2000-12-04  Jim Meyering  <meyering@lucent.com>
78600
78601         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
78602         Also include memory.h, stdlib.h, unistd.h if appropriate.
78603         Reported by Andreas Jaeger (conflicting declaration of malloc).
78604
78605 2000-12-02  Jim Meyering  <meyering@lucent.com>
78606
78607         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
78608         * m4/jm-macros.m4 (jm_MACROS): require it.
78609
78610 2000-12-02  Jim Meyering  <meyering@lucent.com>
78611
78612         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
78613
78614 2000-12-01  Paul Eggert  <eggert@twinsun.com>
78615
78616         * lib/memrchr.c: Include <config.h> before any system include file.
78617
78618 2000-11-30  Jim Meyering  <meyering@lucent.com>
78619
78620         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
78621
78622 2000-11-30  Jim Meyering  <meyering@lucent.com>
78623
78624         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
78625
78626 2000-11-29  Paul Eggert  <eggert@twinsun.com>
78627
78628         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
78629
78630 2000-11-26  Jim Meyering  <meyering@lucent.com>
78631
78632         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
78633
78634 2000-11-22  Paul Eggert  <eggert@twinsun.com>
78635
78636         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
78637         size of (size_t) -1; it's not portable.
78638
78639 2000-11-17  Jim Meyering  <meyering@lucent.com>
78640
78641         * lib/strstr.c: Update from GNU libc.
78642
78643 2000-11-17  Akim Demaille  <akim@epita.fr>
78644
78645         * lib/obstack.h: Formatting changes.
78646         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
78647         prevent type checking.
78648         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
78649         cast the value to (void *): assigning a `foo *' to a `void *'
78650         variable is valid.
78651         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
78652
78653 2000-11-16  Jim Meyering  <meyering@lucent.com>
78654
78655         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
78656
78657 2000-11-11  Jim Meyering  <meyering@lucent.com>
78658
78659         * lib/error.c: Add a couple #includes, merging from GNU libc version.
78660
78661 2000-11-10  Jim Meyering  <meyering@lucent.com>
78662
78663         * lib/obstack.h: Update from GNU libc.
78664         * lib/obstack.c: Likewise.
78665
78666 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
78667
78668         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
78669
78670 2000-11-06  Paul Eggert  <eggert@twinsun.com>
78671
78672         * lib/getusershell.c (setusershell): Use rewind rather than
78673         fseek/fseeko, to avoid configuration hassles with fseeko.
78674         Don't bother opening SHELLS_FILE if shellstream is NULL;
78675         it's not necessary.
78676
78677 2000-11-05  Jim Meyering  <meyering@lucent.com>
78678
78679         * lib/makepath.h (make_dir): Declare.
78680         * lib/makepath.c (make_dir): Remove `static' attribute.
78681         Tweak a comment.
78682
78683 2000-11-04  Jim Meyering  <meyering@lucent.com>
78684
78685         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
78686
78687 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
78688
78689         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
78690         last one in a bucket, advance to the next bucket.
78691
78692 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
78693
78694         * lib/fnmatch.c: Do not comment out all the code if we are using
78695         the GNU C library, because in some cases we are replacing buggy
78696         code in the GNU C library itself.
78697
78698 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
78699
78700         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
78701         (regex_compile): Catch bogus \(\1\).
78702
78703 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78704
78705         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
78706         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
78707         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
78708
78709 2000-10-30  Paul Eggert  <eggert@twinsun.com>
78710
78711         * lib/error.h, getline.h, modechange.h:
78712         Remove "2000" from Copyright line, as the file hasn't been
78713         changed this year other than in the copyright notice.
78714
78715         * lib/xalloc.h: Add "2000" to Copyright line, as this file
78716         was changed this year.
78717
78718 2000-10-29  Jim Meyering  <meyering@lucent.com>
78719
78720         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
78721         renaming.
78722         * m4/ls-mntd-fs.m4: Likewise
78723
78724 2000-10-29  Jim Meyering  <meyering@lucent.com>
78725
78726         * lib/xstat.in: Fix grammar in comment.
78727
78728 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
78729
78730         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
78731         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
78732         doesn't define __restrict_arr.
78733
78734 2000-10-28  Jim Meyering  <meyering@lucent.com>
78735
78736         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
78737         (jm_PREREQ_MEMCHR): New function.
78738
78739 2000-10-28  Jim Meyering  <meyering@lucent.com>
78740
78741         * lib/memchr.c: Update from libc.
78742         Adjust for portability:
78743         [HAVE_STDLIB_H]: Include stdlib.h.
78744         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
78745         Undef __memchr, too.
78746         [!weak_alias]: Define __memchr to memchr.
78747
78748         * lib/regex.c: Update from libc.
78749         * lib/regex.h: Likewise.
78750         * lib/getopt1.c: Likewise.
78751         * lib/memcmp.c: Likewise.
78752
78753         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
78754         Avoid using fseek, when possible -- it's broken by design.
78755         Patch by Ulrich Drepper.
78756
78757 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
78758
78759         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
78760         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
78761         Giving in to popular pressure to shut up the compiler with casts.
78762
78763 2000-10-26  Jim Meyering  <meyering@lucent.com>
78764
78765         * lib/strftime.c: Update from libc.
78766
78767 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
78768
78769         * regex.c: More `unsigned char' -> `re_char' changes.
78770         Also change several `int' into `re_wchar_t'.
78771         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
78772         (PUSH_FAILURE_POINTER): Don't cast any more.
78773         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
78774         We want GCC to complain, since this piece of code makes
78775         re_match non-reentrant, which *should* be fixed.
78776         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
78777         (EXTEND_BUFFER): Use RETALLOC.
78778         (SET_LIST_BIT): Don't cast.
78779         (re_wchar_t): New type.
78780         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
78781         that those two functions will always properly return.
78782         (IMMEDIATE_QUIT_CHECK): Cast to void.
78783         (analyse_first): Use recursion rather than an explicit stack.
78784         (re_compile_fastmap): Can't fail anymore.
78785         (re_search_2): Don't check re_compile_fastmap for failure.
78786         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
78787         Now also sets the new value (passed in a new argument).
78788         (re_match_2_internal): Use it.
78789         Also, use a new var `reg' of type size_t when looping through regs
78790         rather than reuse the inappropriate `mcnt'.
78791
78792 2000-10-25  Jim Meyering  <meyering@lucent.com>
78793
78794         * lib/obstack.c: Update from libc.
78795
78796 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
78797
78798         * regex.c (regex_compile): Change the way of handling a range from
78799         a char less than 256 to a char not less than 256.
78800
78801 2000-10-24  Andrew Innes  <andrewi@gnu.org>
78802
78803         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
78804         NT-Emacs only.
78805         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
78806         so that re_search functions only quit when callers expect them to.
78807
78808 2000-10-23  Jim Meyering  <meyering@lucent.com>
78809
78810         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
78811         wrong.  That set_locale call must not have any side effects.
78812         From Paul Eggert.
78813
78814 2000-10-22  Jim Meyering  <meyering@lucent.com>
78815
78816         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
78817         [CYCLIC]: Remove now-unused definition.
78818
78819         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
78820         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
78821         Suggestion from Ulrich Drepper.
78822
78823 2000-10-21  Jim Meyering  <meyering@lucent.com>
78824
78825         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
78826         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
78827         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
78828
78829 2000-10-21  Jim Meyering  <meyering@lucent.com>
78830
78831         * lib/dirname.c (memrchr): Declare if necessary.
78832         (dir_name): Remove the restriction that there be no
78833         trailing slashes.  Now, this code skips past them, effectively
78834         ignoring them.
78835         [TEST_DIRNAME] (main): New unit tests.
78836
78837         * lib/memrchr.c: New file from GNU libc.
78838         Undef __memrchr, too.
78839         [!weak_alias]: Define __memrchr to memrchr.
78840         Guard weak_alias use with `#ifdef weak_alias'.
78841
78842 2000-10-21  Jim Meyering  <meyering@lucent.com>
78843
78844         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
78845         (dir_name): Use dir_name_r.
78846         * lib/dirname.h (dir_name_r): Declare it.
78847
78848 2000-10-17  Jim Meyering  <meyering@lucent.com>
78849
78850         * lib/quote.h (PARAMS): Define and use.
78851         Reported by Akim Demaille.
78852
78853         * lib/getopt.c: Update from libc.
78854
78855 2000-10-16  Jim Meyering  <meyering@lucent.com>
78856
78857         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
78858         setlocale.
78859         From Jan Fedak.
78860
78861 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
78862
78863         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
78864
78865 2000-09-25  Jim Meyering  <meyering@lucent.com>
78866
78867         * lib/md5.h (rol): Define (from GnuPG).
78868
78869         * lib/sha.c: Give credit (GnuPG) where due.
78870         (M): Use rol rather than open-coding it.
78871         Add a FIXME comment.
78872
78873 2000-09-21  Jim Meyering  <meyering@lucent.com>
78874
78875         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
78876         Reported by Michael Stone.
78877
78878 2000-09-20  Jim Meyering  <meyering@lucent.com>
78879
78880         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
78881         (noinst_HEADERS): Add sha.h.
78882         Based on code from Scott G. Miller and from GnuPG.
78883
78884 2000-09-18  Jim Meyering  <meyering@lucent.com>
78885
78886         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
78887         LIBS. Otherwise, everyone ends up linking with -lelf for some
78888         configurations.
78889         Reported by Mike Stone.
78890
78891 2000-09-15  Jim Meyering  <meyering@lucent.com>
78892
78893         * lib/regex.c: Update from libc.
78894
78895 2000-09-10  Jim Meyering  <meyering@lucent.com>
78896
78897         * lib/getopt.c (_getopt_internal): Update from glibc.
78898
78899 2000-09-09  Jim Meyering  <meyering@lucent.com>
78900
78901         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
78902         think it should be used as a general replacement for isascii.
78903         * lib/fnmatch.c: Likewise.
78904         * lib/mbswidth.c: Likewise
78905         * lib/regex.c: Likewise.
78906
78907         Don't use atoi.
78908         * lib/userspec.c: Include sys/param.h and limits.h.
78909         Include xstrtol.h.
78910         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
78911         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
78912         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
78913         UID, GID.  Check range.
78914
78915 2000-09-06  Jim Meyering  <meyering@lucent.com>
78916
78917         * lib/getopt.c (_getopt_internal): Update from glibc.
78918
78919 2000-08-30  Jim Meyering  <meyering@lucent.com>
78920
78921         * lib/strftime.c: Merge in changes from GNU libc.
78922
78923 2000-08-26  Jim Meyering  <meyering@lucent.com>
78924
78925         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
78926         * m4/fpending.m4: New file.
78927
78928 2000-08-26  Jim Meyering  <meyering@lucent.com>
78929
78930         * lib/closeout.c: Include "__fpending.h".
78931         (close_stdout_status): Return right away if there's nothing to flush.
78932
78933         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
78934         * lib/__fpending.c: New file.
78935         * lib/__fpending.h: New file.
78936
78937 2000-08-20  Jim Meyering  <meyering@lucent.com>
78938
78939         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
78940         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
78941         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
78942
78943 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
78944
78945         Improve fileutils installation on systems where running
78946         programs (like install) can't be unlinked.
78947         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
78948         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
78949
78950 2000-08-07  Paul Eggert  <eggert@twinsun.com>
78951
78952         Standardize on "memory exhausted" instead of "Memory exhausted"
78953         or "virtual memory exhausted".
78954         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
78955         "virtual memory exhausted".
78956         * lib/same.c (same_name): Invoke xalloc_die instead of printing
78957         our own message.
78958         * lib/userspec.c (parse_user_spec): Likewise.
78959         * lib/bumpalloc.h: comment fix
78960         * lib/same.c, userspec.c: Include xalloc.h.
78961
78962         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
78963         not char *const and pointing to a constant array.
78964         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
78965         (xrealloc): Comment fix.
78966
78967         * lib/userspec.c (parse_user_spec):
78968         Don't translate a message until just before returning,
78969         to avoid unnecessary translation.
78970
78971 2000-08-07  Jim Meyering  <meyering@lucent.com>
78972
78973         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
78974         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
78975         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
78976         getgroups.c, gethostname.c, getopt.h, group-member.c,
78977         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
78978         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
78979         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
78980         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
78981         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
78982         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
78983         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
78984         yesno.c: Back out Copyright date changes for each file with no change
78985         this year.  This eases coordination with other programs using the same
78986         source code modules.  From Paul Eggert.
78987
78988 2000-08-06  Paul Eggert  <eggert@twinsun.com>
78989
78990         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
78991         not char, for compatibility with glibc 2.1.3 strftime.c.
78992
78993 2000-08-03  Greg McGary  <greg@mcgary.org>
78994
78995         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
78996         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
78997         (EXTEND_BUFFER): Use them.
78998
78999 2000-08-01  Jim Meyering  <meyering@lucent.com>
79000
79001         * lib/dirname.c (ISSLASH): Define.
79002         (BACKSLASH_IS_PATH_SEPARATOR): Define.
79003         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
79004         both `\' and `/' may be use as path separators.
79005         Based on a patch from Prashant TR.
79006
79007 2000-07-31  Paul Eggert  <eggert@twinsun.com>
79008
79009         * lib/quotearg.c (quotearg_n_options): Don't make the initial
79010         slot vector a constant, since it might get modified.
79011
79012 2000-07-31  Jim Meyering  <meyering@lucent.com>
79013
79014         * lib/xmalloc.c: Use `virtual memory exhausted', not
79015         `Memory exhausted'.
79016         * lib/obstack.c (print_and_abort): Likewise.
79017
79018 2000-07-30  Paul Eggert  <eggert@twinsun.com>
79019
79020         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
79021         buffer, so that the caller can always quote one small
79022         component of a "memory exhausted" message in slot 0.
79023         From a suggestion by Jim Meyering.
79024
79025 2000-07-30  Jim Meyering  <meyering@lucent.com>
79026
79027         * lib/makepath.c (make_path): Quote the other instance, too.
79028
79029         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
79030         (STATIC_BUF_SIZE): Define.
79031         (quotearg_n_options): Use only statically allocated storage when
79032         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
79033         than STATIC_BUF_SIZE.
79034
79035 2000-07-29  Jim Meyering  <meyering@lucent.com>
79036
79037         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
79038         * lib/dirname.c (dir_name): Likewise.
79039
79040         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
79041         `/'.
79042
79043         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
79044         (dir_name): Assert that there are no trailing slashes.
79045
79046 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
79047
79048         * lib/mbswidth.h (mbswidth): Add a flags argument.
79049         (mbswidth): New declaration.
79050         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
79051         * lib/mbswidth.c (mbswidth): Add a flags argument.
79052         (mbsnwidth): New function.
79053
79054 2000-07-24  Jim Meyering  <meyering@lucent.com>
79055
79056         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
79057
79058 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79059
79060         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
79061
79062 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79063
79064         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
79065         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
79066         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
79067         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
79068         invoke multibyte primitives.
79069
79070 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79071
79072         * lib/quotearg.c:
79073         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
79074         so that mbstate_t is always defined.
79075
79076         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
79077         be 1 in at least one GCC installation, and this configuration
79078         error is likely to be common.  Ignoring MB_LEN_MAX hurts
79079         performance on hosts that have mbrtowc but have only unibyte
79080         locales, but I assume these hosts are rare.
79081
79082 2000-07-23  Paul Eggert  <eggert@twinsun.com>
79083
79084         * lib/mbswidth.c (_XOPEN_SOURCE):
79085         Don't define; this causes problems on Solaris 7.
79086         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
79087
79088 2000-07-23  Jim Meyering  <meyering@lucent.com>
79089
79090         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
79091         too: getgrgid, getpwuid, getuid.
79092
79093 2000-07-23  Jim Meyering  <meyering@lucent.com>
79094
79095         * lib/basename.c (base_name): Add an assertion.
79096
79097 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
79098
79099         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
79100         shadow its mbsinit function.
79101
79102 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
79103
79104         * lib/mbswidth.h: New file.
79105         * lib/mbswidth.c: New file.
79106         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
79107         (noinst_HEADERS): Add mbswidth.h.
79108
79109 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
79110
79111         * lib/config.charset: Add support for FreeBSD. Improve support for
79112         HP-UX and IRIX 6.
79113
79114 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
79115
79116         * m4/mbswidth.m4: New file.
79117         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
79118
79119 2000-07-15  Jim Meyering  <meyering@lucent.com>
79120
79121         * lib/makepath.c: Include quote.h.
79122         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
79123         corresponding argument in a `quote (...)' call.
79124         Give better diagnostics.
79125
79126         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
79127         (noinst_HEADERS): Add quote.h.
79128
79129         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
79130         from tar's src/misc.c.
79131         * lib/quote.h: New file.  Prototypes for same.
79132
79133 2000-07-14  Paul Eggert  <eggert@twinsun.com>
79134
79135         From a suggestion by Bruno Haible.
79136         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
79137         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
79138         to decide whether to define the BeOS workaround macro;
79139         this adjusts to the change to AC_MBSTATE_T.
79140
79141 2000-07-14  Jim Meyering  <meyering@lucent.com>
79142
79143         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
79144         jm_AC_TYPE_UINTMAX_T.
79145
79146 2000-07-13  Paul Eggert  <eggert@twinsun.com>
79147
79148         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
79149
79150         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
79151         quotearg_buffer_restyled): Add support for
79152         clocale_quoting_style.  Undo previous change to
79153         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
79154         and "{RIGHT QUOTATION MARK}" msgids.
79155
79156 2000-07-10  Paul Eggert  <eggert@twinsun.com>
79157
79158         From a suggestion by Bruno Haible.
79159         * m4/mbstate_t.m4 (AC_MBSTATE_T):
79160         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
79161         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
79162         and mbstate_t, to a single-part test that simply defines mbstate_t.
79163         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
79164         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
79165
79166 2000-07-10  Jim Meyering  <meyering@lucent.com>
79167
79168         * m4/strerror_r.m4: Mirror the correction made in autoconf.
79169
79170         * m4/gnu-source.m4: Output to confdefs.h directly.
79171         Suggestion from Akim Demaille.
79172
79173 2000-07-09  Paul Eggert  <eggert@twinsun.com>
79174
79175         The old behavior of quoting `like this' doesn't look good with
79176         newer, ISO-style fonts.  See:
79177         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
79178
79179         Instead, quote "like this" by default.  Let the translator
79180         tailor the locale-specific quoting behavior by providing
79181         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
79182
79183         * lib/quotearg.c (N_): New macro.
79184         (gettext_default): New function.
79185         (quotearg_buffer_restyled): Use
79186         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
79187         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
79188
79189 2000-07-09  Jim Meyering  <meyering@lucent.com>
79190
79191         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
79192         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
79193
79194         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
79195         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
79196
79197 2000-07-09  Jim Meyering  <meyering@lucent.com>
79198
79199         * lib/Most files: Update copyright dates to include 2000.
79200
79201 2000-07-08  Jim Meyering  <meyering@lucent.com>
79202
79203         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
79204         if not defined.
79205         (xgethostname): Remove now-unnecessary #ifdef.
79206         Move declaration of `err' into loop where it's used.
79207
79208 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79209         and Bruno Haible  <haible@clisp.cons.org>
79210
79211         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
79212         only if the test for an object-type mbstate_t fails.  This
79213         prevents us from mistakenly reporting that mbstate_t is a
79214         system object type after we "#define mbstate_t int" to work
79215         around its lack.
79216
79217 2000-07-05  Paul Eggert  <eggert@twinsun.com>
79218         and Bruno Haible  <haible@clisp.cons.org>
79219
79220         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
79221
79222 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79223
79224         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
79225         to strerror_r.
79226         Include <ctype.h> for use of isalpha.
79227
79228 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79229
79230         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
79231         by allocating a larger buffer. Test the gethostname return value for
79232         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
79233         returns an error and ENAMETOOLONG isn't defined.
79234
79235 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
79236
79237         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
79238         dimension.
79239
79240 2000-07-04  Jim Meyering  <meyering@lucent.com>
79241
79242         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
79243         of the deprecated AC_CHECKING.
79244
79245 2000-07-04  Jim Meyering  <meyering@lucent.com>
79246
79247         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
79248         Reported by Bruno Haible.
79249
79250 2000-07-04  Jim Meyering  <meyering@lucent.com>
79251
79252         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
79253         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
79254         lacks mbrtowc.
79255
79256 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79257
79258         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
79259         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
79260
79261 2000-07-03  Paul Eggert  <eggert@twinsun.com>
79262         and Bruno Haible  <haible@clisp.cons.org>
79263
79264         * lib/quotearg.c (mbrtowc):
79265         Assign to *pwc, and return 1 only if result is nonzero.
79266         (iswprint): Use ISPRINT when substituting our own mbrtowc.
79267
79268 2000-07-03  Jim Meyering  <meyering@lucent.com>
79269
79270         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
79271
79272 2000-07-03  Jim Meyering  <meyering@lucent.com>
79273
79274         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
79275         This is necessary to get a definition of e.g., UTMP_FILE on
79276         HP-UX 10.20.
79277         From Bob Proulx.
79278
79279 2000-07-02  Jim Meyering  <meyering@lucent.com>
79280
79281         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
79282
79283         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
79284         AC_LIBOBJ(function_name).
79285         * m4/chown.m4: Likewise.
79286         * m4/fnmatch.m4: Likewise.
79287         * m4/ftruncate.m4: Likewise.
79288         * m4/getgroups.m4: Likewise.
79289         * m4/getline.m4: Likewise.
79290         * m4/group-member.m4: Likewise.
79291         * m4/jm-macros.m4: Likewise.
79292         * m4/lstat.m4: Likewise.
79293         * m4/malloc.m4: Likewise.
79294         * m4/memcmp.m4: Likewise.
79295         * m4/nanosleep.m4: Likewise.
79296         * m4/putenv.m4: Likewise.
79297         * m4/realloc.m4: Likewise.
79298         * m4/regex.m4: Likewise.
79299         * m4/stat.m4: Likewise.
79300         * m4/strftime.m4: Likewise.
79301
79302 2000-07-02  Jim Meyering  <meyering@lucent.com>
79303
79304         * lib/quotearg.c (mbstate_t): Don't define here.
79305
79306 2000-07-02  Jim Meyering  <meyering@lucent.com>
79307
79308         * lib/nanosleep.c (SIGCONT): Define if not already defined.
79309
79310 2000-07-01  Jim Meyering  <meyering@lucent.com>
79311
79312         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
79313
79314 2000-07-01  Jim Meyering  <meyering@lucent.com>
79315
79316         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
79317         problem.
79318
79319 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79320
79321         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
79322         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
79323
79324 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
79325
79326         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
79327         per change in ../m4/ls-mntd-fs.m4.
79328         (read_filesystem_list): Ignore symbolic links.
79329
79330 2000-06-29  Jim Meyering  <meyering@lucent.com>
79331
79332         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
79333         for declaration of strcmp.
79334
79335         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
79336
79337         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
79338         Avoid warning by casting result to `char *' to remove `const'.
79339
79340 2000-06-28  Jim Meyering  <meyering@lucent.com>
79341
79342         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
79343         included by quotearg.c, for which we perform this test.  From
79344         Bruno Haible.
79345
79346 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79347
79348         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
79349         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
79350         <utmpx.h> exists, put readutmp.o into LIBOBJS.
79351
79352 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
79353
79354         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
79355
79356 2000-06-26  Paul Eggert  <eggert@twinsun.com>
79357
79358         savedir now sets errno on failure and invokes xmalloc to get memory.
79359         Fix a couple of other minor bugs while we're at it.
79360
79361         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
79362         (NAMLEN): Remove macro.
79363         (malloc, realloc): Remove decls.
79364         (stpcpy): Likewise.
79365         ("xalloc.h"): Include.
79366         (NAME_SIZE_DEFAULT): New macro.
79367         (savedir): Use xmalloc / xrealloc to allocate memory.
79368         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
79369         Skip "" directory entries.
79370         Use strlen to calculate directory entry length, since the old method
79371         is rarely used these days and isn't worth supporting.
79372         Don't use a pointer after freeing it.
79373         Check for integer overflow when calculating allocation size.
79374         Use memcpy to copy entries, instead of stpcpy.
79375         Set errno properly when returning NULL.
79376         Check for readdir error.
79377
79378 2000-06-26  Jim Meyering  <meyering@lucent.com>
79379
79380         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
79381
79382 2000-06-25  Jim Meyering  <meyering@lucent.com>
79383
79384         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
79385         Linux header bug when _XOPEN_SOURCE is defined to 500.
79386
79387 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79388
79389         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
79390         deficiency.
79391
79392 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
79393
79394         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
79395         Include xalloc.h.
79396         Don't include <stdlib.h>.  Don't declare malloc, realloc.
79397
79398 2000-06-24  Jim Meyering  <meyering@lucent.com>
79399
79400         * m4/strerror_r.m4: Revive this file -- to try out an experimental
79401         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
79402         for which strerror does return char*, but which lacks a conveniently
79403         accessible declaration of the function.  If the compile-test says
79404         strerror_r doesn't work, then resort to a `run'-test that works on
79405         BeOS and segfaults on DEC Unix.
79406
79407 2000-06-24  Jim Meyering  <meyering@lucent.com>
79408
79409         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
79410
79411 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79412
79413         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
79414         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
79415
79416 2000-06-23  Paul Eggert  <eggert@twinsun.com>
79417
79418         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
79419         (mbrtowc, mbstate_t): Define substitutes if
79420         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
79421         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
79422         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
79423
79424 2000-06-23  Jim Meyering  <meyering@lucent.com>
79425
79426         * m4/afs.m4: Add missing AC_MSG_RESULT.
79427         Reported by Bruno Haible.
79428
79429         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
79430         Suggestion from Bruno Haible.
79431
79432 2000-06-23  Jim Meyering  <meyering@lucent.com>
79433
79434         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
79435
79436 2000-06-21  Jim Meyering  <meyering@lucent.com>
79437
79438         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
79439
79440 2000-06-21  Jim Meyering  <meyering@lucent.com>
79441
79442         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
79443         (noinst_HEADERS): Add getstr.h.
79444
79445         * lib/getline.c (getstr): Move into a separate file.
79446         * lib/getstr.c (getstr): New file, extracted from getline.c, with
79447         the following changes: new parameter, delim2; both delim[12]
79448         parameters have type `int', not `char'.  The latter would lose
79449         with 8-bit delimiters.
79450         * lib/getstr.h: New file.
79451
79452 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79453
79454         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
79455         than 1024, return a memory chunk of least possible size, instead
79456         of size PATH_MAX + 2. In the loop, increment the size proportionally.
79457         Use free/xmalloc instead of xrealloc to avoid copying for very long
79458         paths.
79459
79460 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79461
79462         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
79463         the empty string.
79464
79465 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
79466
79467         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
79468         address, not strdup.  Include <stdlib.h> and don't declare free().
79469
79470 2000-06-19  Jim Meyering  <meyering@lucent.com>
79471
79472         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
79473
79474 2000-06-18  Jim Meyering  <meyering@lucent.com>
79475
79476         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
79477
79478         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
79479         `checking whether...' message to be consistent with that of the
79480         lstat test.
79481
79482 2000-06-18  Jim Meyering  <meyering@lucent.com>
79483
79484         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
79485         Besides, these days every porting target provides a mkdir function.
79486
79487         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
79488         needed. (this snippet comes from src/system.h).
79489
79490 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
79491
79492         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
79493
79494 2000-06-15  Paul Eggert  <eggert@twinsun.com>
79495
79496         * lib/human.c (adjust_value): New function.
79497         (human_readable_inexact): Apply rounding style even when
79498         printing approximate values.
79499
79500 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79501
79502         * lib/human.c (human_readable_inexact): Allow an input block
79503         size that is not a multiple of the output block size, and vice versa.
79504         Reported by Piergiorgio Sartor.
79505
79506 2000-06-14  Paul Eggert  <eggert@twinsun.com>
79507
79508         * lib/getdate.y (get_date): Apply relative times after time
79509         zone indicator, not before.  Reported by Todd A. Jacobs.
79510
79511 2000-06-13  Jim Meyering  <meyering@lucent.com>
79512
79513         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
79514
79515         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
79516
79517 2000-06-12  Paul Eggert  <eggert@twinsun.com>
79518
79519         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
79520
79521 2000-06-12  Jim Meyering  <meyering@lucent.com>
79522
79523         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
79524         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
79525         optional argument.
79526         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
79527         the optional argument, `lib'.
79528
79529 2000-06-08  Jim Meyering  <meyering@lucent.com>
79530
79531         * m4/largefile.m4: Remove file (now that it's part of autoconf).
79532
79533 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79534
79535         Rewrite largefile configuration so that we don't need to run
79536         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
79537         AC_CANONICAL_HOST in configure.in -- jmm]
79538
79539         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
79540         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
79541         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
79542         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
79543         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
79544         All uses changed.
79545         Instead of inspecting the output of getconf, try to compile the
79546         test program without and with the macro definition.
79547         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
79548         for getconf.  Instead, check for the needed flags by compiling
79549         test programs.
79550
79551 2000-06-04  Paul Eggert  <eggert@twinsun.com>
79552
79553         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
79554
79555 2000-06-04  Jim Meyering  <meyering@lucent.com>
79556
79557         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
79558         SunOS 4.1.4 for which gid_t is an unsigned type.
79559
79560 2000-06-03  Jim Meyering  <meyering@lucent.com>
79561
79562         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
79563         now that autoconf requires that.
79564
79565         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
79566         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
79567         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
79568
79569 2000-06-03  Jim Meyering  <meyering@lucent.com>
79570
79571         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
79572
79573 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79574
79575         * m4/glibc21.m4: New file.
79576         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
79577
79578 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
79579
79580         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
79581         newer, don't install charset.alias.
79582         * lib/config.charset: Change the Linux/glibc rules so they become empty
79583         on glibc-2.1 or newer.
79584
79585 2000-06-02  Jim Meyering  <meyering@lucent.com>
79586
79587         * lib/mountlist.c: Back out last change.  Instead, do this...
79588         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
79589         me_dummy member using the same `ignore'-testing code.
79590         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
79591         fs_type strings.
79592         From Mark D. Roth.
79593
79594 2000-05-29  Jim Meyering  <meyering@lucent.com>
79595
79596         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
79597         mounts with the `ignore' attribute.  Based on a patch from
79598         Mark D. Roth.
79599
79600 2000-05-28  Jim Meyering  <meyering@lucent.com>
79601
79602         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
79603         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79604         * m4/stat.m4: Likewise.
79605         * m4/lstat.m4: Likewise.
79606         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
79607
79608         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
79609         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
79610
79611 2000-05-26  Jim Meyering  <meyering@lucent.com>
79612
79613         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
79614
79615 2000-05-24  Jim Meyering  <meyering@lucent.com>
79616
79617         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
79618         autoconf requires that.
79619         * m4/lib-check.m4: Likewise.
79620         * m4/jm-macros.m4: Likewise.
79621         * m4/strftime.m4: Likewise.
79622
79623         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
79624         AC_CHECK_DECLS, now that autoconf requires that.
79625
79626 2000-05-22  Jim Meyering  <meyering@lucent.com>
79627
79628         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
79629         * m4/lstat.m4: Likewise.
79630
79631 2000-05-22  Jim Meyering  <meyering@lucent.com>
79632
79633         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
79634
79635 2000-05-20  Jim Meyering  <meyering@lucent.com>
79636
79637         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
79638         (jm_PREREQ): Use it.
79639
79640 2000-05-18  Jim Meyering  <meyering@lucent.com>
79641
79642         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
79643         back, too, since it may have been modified by allocate_entry.
79644         (hash_delete): Rewrite to use neither the assignment operator
79645         nor the comma operator in an if-expression.
79646
79647 2000-05-15  Paul Eggert  <eggert@twinsun.com>
79648
79649         * lib/closeout.c:
79650         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
79651         Remove; no longer needed.
79652         "quotearg.h": Add include.
79653         (file_name): Do not bother to explicitly initialize to NULL; it's less
79654         efficient on some hosts.
79655         (close_stdout_status): Remove test as to whether stdout was already
79656         closed; it breaks for the case "echo x | sort >&-".
79657         Quote file name colons.
79658         Do not assume that _("write error") lacks format strings.
79659
79660 2000-05-15  Jim Meyering  <meyering@lucent.com>
79661
79662         * lib/version-etc.c (version_etc_copyright): Update the copyright
79663         string used in all --version output.
79664
79665 2000-05-14  Jim Meyering  <meyering@lucent.com>
79666
79667         * lib/closeout.c (close_stdout_set_file_name): New function.
79668         (close_stdout_status): Use new file-scoped global.
79669         Return right away if fstat says the stdout file descriptor is invalid.
79670         * lib/closeout.h (close_stdout_set_file_name): Declare.
79671
79672 2000-05-10  Jim Meyering  <meyering@lucent.com>
79673
79674         * lib/closeout.c [default_exit_status]: New file-scoped variable.
79675         (close_stdout_set_status): New function.
79676         * lib/closeout.h (close_stdout_set_status): Declare.
79677
79678 2000-05-09  Jim Meyering  <meyering@lucent.com>
79679
79680         * m4/gettext.m4: Rename this...
79681         * m4/libintl.m4: ...to this.
79682
79683 2000-05-08  Jim Meyering  <meyering@lucent.com>
79684
79685         * lib/long-options.c: Don't include closeout.h.
79686         (parse_long_options): Don't call close_stdout for --version.
79687
79688 2000-05-06  Paul Eggert  <eggert@twinsun.com>
79689
79690         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
79691         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
79692         2.1.3 bug.  This avoids a clash when files like regex.c define
79693         _GNU_SOURCE.
79694
79695 2000-05-06  Jim Meyering  <meyering@lucent.com>
79696
79697         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
79698         (AC_REPLACE_FUNCS): Add strnlen.
79699
79700         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
79701         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
79702
79703         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
79704         AC_SEARCH_LIBS call for nanosleep.
79705         (LIB_NANOSLEEP): Set and AC_SUBST.
79706
79707 2000-05-06  Jim Meyering  <meyering@lucent.com>
79708
79709         * lib/strnlen.c: Undefine __strnlen and strnlen.
79710         [!weak_alias]: Define __strnlen to strnlen.
79711
79712         * lib/atexit.c: New file, from libiberty.
79713
79714 2000-05-06  Jim Meyering  <meyering@lucent.com>
79715
79716         * lib/closeout.c (close_stdout_status): Also check for errors on the
79717         stderr stream.
79718
79719 2000-05-05  Jim Meyering  <meyering@lucent.com>
79720
79721         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
79722         AC_SEARCH_LIBS call for clock_gettime.
79723         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
79724
79725         * m4/search-libs.m4: Update from autoconf.
79726
79727         su doesn't work on Solaris 2.6.
79728         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
79729         <shadow.h>.  Reported by Dragos Harabor.
79730
79731 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
79732
79733         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
79734         memcpy instead of xmalloc, xrealloc, path_concat.
79735         (locale_charset): Treat empty environment variables as absent.
79736         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
79737
79738 2000-05-04  Jim Meyering  <meyering@lucent.com>
79739
79740         * lib/getopt.c: Update from glibc.
79741         * lib/obstack.c: Likewise.
79742         * lib/obstack.h: Likewise.
79743         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
79744         file
79745
79746         * lib/regex.h: Likewise.
79747         * lib/strndup.c: Likewise.
79748         * lib/strnlen.c: New file, from glibc.
79749
79750 2000-05-03  Jim Meyering  <meyering@lucent.com>
79751
79752         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
79753
79754 2000-05-02  Paul Eggert  <eggert@twinsun.com>
79755
79756         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
79757         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
79758         compile-time test, rather than inspecting host and OS, to
79759         decide whether to define _LARGEFILE_SOURCE.
79760
79761 2000-05-01  Jim Meyering  <meyering@lucent.com>
79762
79763         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
79764
79765         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
79766         Based on a patch from Bruno Haible.
79767
79768 2000-05-01  Jim Meyering  <meyering@lucent.com>
79769
79770         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
79771
79772 2000-04-29  Jim Meyering  <meyering@lucent.com>
79773
79774         * lib/path-concat.c: Declare strdup only if it's not defined.
79775         * lib/canon-host.c: Likewise.
79776
79777 2000-04-28  Jim Meyering  <meyering@lucent.com>
79778
79779         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
79780         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
79781         is included first, then limits.h is included by locale.h by libintl.h.
79782         From John David Anglin.
79783
79784 2000-04-25  Jim Meyering  <meyering@lucent.com>
79785
79786         * lib/makepath.c (S_IRWXUGO): Define.
79787         (make_path): Always perform explicit chmod if MODE specifies any
79788         of the `special' permission bits.  Prompted by a bug report against
79789         install from Mate Wierdl and Joost van Baal.
79790
79791 2000-04-18  Jim Meyering  <meyering@lucent.com>
79792
79793         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
79794         (jm_PREREQ): Use it.
79795
79796 2000-04-18  Jim Meyering  <meyering@lucent.com>
79797
79798         * lib/README: New file.
79799
79800         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
79801         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
79802
79803 2000-04-17  Jim Meyering  <meyering@lucent.com>
79804
79805         Get it right :-)
79806         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
79807         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
79808         Suggestion from Akim Demaille.
79809
79810 2000-04-17  Jim Meyering  <meyering@lucent.com>
79811
79812         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
79813         the definition of it to rpl_strftime also defined-away the system's
79814         declaration.
79815
79816 2000-04-15  Jim Meyering  <meyering@lucent.com>
79817
79818         Use `C' to denote so-called `contiguous' files, the same way
79819         that tar does.
79820         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
79821         (ftypelet): Use S_ISCTG.
79822         From Michael Deutschmann.
79823
79824 2000-04-14  Jim Meyering  <meyering@lucent.com>
79825
79826         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
79827         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
79828         clobbered.
79829
79830 2000-04-14  Jim Meyering  <meyering@lucent.com>
79831
79832         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
79833
79834 2000-04-13  Jim Meyering  <meyering@lucent.com>
79835
79836         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
79837         AH_VERBATIM to insert required #ifndef into config.h.in.
79838         Suggestion from Akim Demaille.
79839
79840 2000-04-12  Jim Meyering  <meyering@lucent.com>
79841
79842         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
79843         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
79844         Christian Krackowizer.
79845
79846         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
79847         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
79848         (AC_SYS_LARGEFILE): Require.
79849         (AM_C_PROTOTYPES): Require.
79850
79851 2000-04-08  Jim Meyering  <meyering@lucent.com>
79852
79853         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
79854         names don't conflict.  Reported by Eli Zaretskii.
79855
79856 2000-04-07  Jim Meyering  <meyering@lucent.com>
79857
79858         * lib/putenv.c: Move inclusion of errno.h so it follows that of
79859         sys/types.h, to work around system header problems on AIX 3.2.5.
79860         From Bruno Haible.
79861
79862 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
79863
79864         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
79865         bug.  Deal with the different error behavior of Irix iconv.
79866
79867 2000-04-05  Paul Eggert  <eggert@twinsun.com>
79868
79869         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
79870         IRIX if the installer said otherwise.
79871
79872 2000-04-05  Jim Meyering  <meyering@lucent.com>
79873
79874         Portability tweaks required for ultrix4.3.
79875         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
79876         (jm_CHECK_DECLS): Add getutent to the list of functions.
79877         (_jm_DECL_HEADERS): Add utmpx.h.
79878         From John David Anglin.
79879
79880         * m4/strftime.m4: Back out the 2000-04-02 change.
79881         Instead of that change, simply undefine putenv in the test program.
79882
79883 2000-04-05  Jim Meyering  <meyering@lucent.com>
79884
79885         Portability tweaks required for ultrix4.3.
79886         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
79887         getutent.
79888         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
79889         * lib/canon-host.c: Declare strdup.
79890         * lib/path-concat.c: Likewise.
79891         From John David Anglin.
79892
79893 2000-04-04  Jim Meyering  <meyering@lucent.com>
79894
79895         Be more DOS 8.3-friendly.
79896         * lib/ref-add.sin: Renamed from ref-add.sed.in.
79897         * lib/ref-del.sin: Renamed from ref-del.sed.in.
79898         * lib/Makefile.am: Reflect renaming.
79899         Reported by Eli Zaretskii.
79900
79901         Use a temporary file name that won't clash with `charset.alias'
79902         in the DOS 8.3 name space.
79903         * lib/Makefile.am (charset_tmp): Define.
79904         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
79905         (uninstall-local): Likewise.
79906         Reported by Eli Zaretskii.
79907
79908 2000-04-03  Jim Meyering  <meyering@lucent.com>
79909
79910         * m4/gettext.m4: Fix typo in comment.
79911
79912         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
79913         textutils/configure.in).  Suggestion from Paul Eggert.
79914         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
79915
79916 2000-04-02  Paul Eggert  <eggert@twinsun.com>
79917
79918         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
79919         variable in the shell rather than using putenv, which isn't
79920         portable.  This avoids the configure-time inter-test dependency
79921         on the potentially-renamed putenv function.
79922
79923 2000-03-30  Paul Eggert  <eggert@twinsun.com>
79924
79925         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
79926         before checking struct stat.st_blksize, so that
79927         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
79928
79929 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79930
79931         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
79932         since strftime.c uses HAVE_STRFTIME to decide whether to use
79933         the underlying strftime.
79934
79935 2000-03-29  Paul Eggert  <eggert@twinsun.com>
79936
79937         * lib/time/strftime.c (my_strftime): Make sure we call the system
79938         strftime, not ourselves, when invoking the underlying strftime.
79939
79940 2000-03-24  Jim Meyering  <meyering@lucent.com>
79941
79942         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
79943         (charset_alias): Define.
79944         (install-exec-local): Factor out common code.
79945         (uninstall-local): Split lines longer than 80.
79946         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
79947         (SUFFIXES): Define.
79948         (.sed.in.sed): New rule.  Don't redirect directly to $@.
79949         (CLEANFILES): Add ref-add.sed and ref-del.sed.
79950
79951 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
79952
79953         * lib/config.charset: Output a line containing "Packages using this
79954         file".
79955         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
79956         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
79957         ref-del.sed): New rules.
79958
79959 2000-03-17  Jim Meyering  <meyering@lucent.com>
79960
79961         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
79962         Otherwise, include <strings.h>
79963
79964 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
79965
79966         * lib/unicodeio.c (utf8_wctomb): New function.
79967         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
79968         format instead of in UCS-4 with platform dependent endianness.
79969
79970 2000-03-10  Jim Meyering  <meyering@lucent.com>
79971
79972         * m4/lib-check.m4: Look for getspnam in -lgen, too.
79973         From Marco Franzen.
79974
79975 2000-03-07  Paul Eggert  <eggert@twinsun.com>
79976
79977         * lib/savedir.c (savedir): Work even if directory size is
79978         negative; this can happen with some screwy NFS configurations.
79979
79980 2000-03-06  Jim Meyering  <meyering@lucent.com>
79981
79982         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
79983         if it's NULL (because we ran out of memory).  From Bruno Haible.
79984
79985 2000-03-05  Jim Meyering  <meyering@lucent.com>
79986
79987         * lib/localcharset.c ("path-concat.h"): Include.
79988         (get_charset_aliases): Use path_concat instead of ANSI string
79989         concatenation.
79990
79991         * lib/unicodeio.h (PARAMS): Define.
79992         Use it to guard prototype.
79993
79994 2000-03-04  Jim Meyering  <meyering@lucent.com>
79995
79996         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
79997         for lib/localcharset.c.
79998
79999 2000-03-04  Jim Meyering  <meyering@lucent.com>
80000
80001         * lib/Makefile.am (install-exec-local): Create $(libdir) before
80002         installing into it.
80003         (uninstall-local): Uncomment this rule so `make distcheck' works
80004         once again.
80005
80006         * lib/unicodeio.c (<errno.h>): Include it.
80007         (errno): Declare if not defined.
80008
80009         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
80010
80011         * lib/config.charset: New version, incorporating remarks from a linux
80012         i18n mailing list.  From Bruno Haible.
80013
80014 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
80015
80016         * m4/codeset.m4: New file.
80017         * m4/iconv.m4: New file.
80018         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
80019
80020 2000-03-03  Jim Meyering  <meyering@lucent.com>
80021
80022         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
80023
80024 2000-03-02  Jim Meyering  <meyering@lucent.com>
80025
80026         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
80027         the messages come out on separate lines.
80028
80029         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
80030         rather than jm_CHECK_DECLARATIONS.
80031         * m4/decl.m4: Remove now-unused file.
80032
80033         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
80034         geteuid.
80035
80036 2000-03-02  Jim Meyering  <meyering@lucent.com>
80037
80038         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
80039
80040 2000-03-01  Jim Meyering  <meyering@lucent.com>
80041
80042         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
80043         * lib/unicodeio.c: Likewise.
80044
80045 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
80046
80047         * lib/config.charset: New file.
80048         * lib/localcharset.c: New file.
80049         * lib/unicodeio.h, lib/unicodeio.c: New files.
80050         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
80051         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
80052         (noinst_HEADERS): Add unicodeio.h.
80053         (all-local, install-exec-local, charset.alias): New targets.
80054
80055 2000-02-28  Paul Eggert  <eggert@twinsun.com>
80056
80057         * lib/quotearg.c (ALERT_CHAR): New macro.
80058         (quotearg_buffer_restyled): Use it.
80059
80060 2000-02-27  Jim Meyering  <meyering@lucent.com>
80061
80062         * m4/check-decl.m4: Add getenv to the list.
80063
80064 2000-02-27  Jim Meyering  <meyering@lucent.com>
80065
80066         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
80067         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
80068
80069         * lib/backupfile.c: Guard inclusion of stdlib.h with
80070         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
80071         Declare malloc if needed.
80072
80073         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
80074         `#ifndef HAVE_DECL..'
80075         now that autoconf always defines the HAVE_DECL_ symbols.
80076         * lib/human.c: Likewise.
80077         * lib/same.c: Likewise.
80078         * lib/strtoumax.c: Likewise.
80079
80080         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
80081         declaration check was not run.
80082         * lib/hash.c: Likewise.
80083         * lib/human.c: Likewise.
80084         * lib/same.c: Likewise.
80085         * lib/strtoumax.c: Likewise.
80086
80087         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
80088         `.', then first look up the entire `.'-containing string as a login
80089         name.
80090
80091 2000-02-23  Jim Meyering  <meyering@lucent.com>
80092
80093         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
80094         in place of my hack.
80095
80096 2000-02-18  Paul Eggert  <eggert@twinsun.com>
80097
80098         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
80099         (textint): New typedef.
80100         (parser_control): Member year changed from int to textint.
80101         All uses changed.
80102         (YYSTYPE): Removed; replaced by %union with int and textint members.
80103         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
80104         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
80105         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
80106         (tSNUMBER, tUNUMBER): Now of type <textintval>.
80107         (date, number, to_year): Use width of number in digits, not its value,
80108         to determine whether it's a 2-digit year, or a 2-digit time.
80109         (yylex): Store number of digits of numeric tokens.
80110         Reported by John Kendall.
80111
80112         (parser_control): Changed from struct parser_control to typedef (for
80113         consistency).  All uses changed.
80114
80115         (tID): Removed; not used.
80116         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
80117
80118 2000-02-14  Paul Eggert  <eggert@twinsun.com>
80119
80120         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
80121         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
80122
80123 2000-02-12  Jim Meyering  <meyering@lucent.com>
80124
80125         * lib/userspec.c (ISDIGIT): Define it.
80126         (isdigit): Remove definition.
80127         (is_number): Use ISDIGIT, not isdigit.
80128         <libintl.h>: Include.
80129         (_ and N_): Define.
80130         (parse_user_spec): Mark translatable strings.
80131
80132 2000-02-10  Jim Meyering  <meyering@lucent.com>
80133
80134         With these changes, nanosleep.[ch] are finally enough like the other
80135         lib/* replacement files to compile on a few more losing systems.
80136
80137         * lib/nanosleep.h: Don't include config.h.
80138         Remove prototype from declaration of nanosleep.
80139         (PARAMS): Remove now-unneeded definition.
80140         * lib/nanosleep.c: #undef nanosleep.
80141         (rpl_nanosleep): Rename from nanosleep.
80142
80143 2000-02-10  Jim Meyering  <meyering@lucent.com>
80144
80145         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
80146         gnu_nanosleep to rpl_nanosleep.
80147
80148 2000-02-09  Jim Meyering  <meyering@lucent.com>
80149
80150         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
80151         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
80152
80153 2000-02-08  Akim Demaille  <akim@epita.fr>
80154
80155         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
80156         `[' and `]' and remove uses of `changequote'.
80157         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
80158         (AC_SYS_LARGEFILE): Likewise.
80159         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
80160         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
80161         of changequote.
80162         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
80163         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
80164         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
80165         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
80166
80167 2000-02-05  Jim Meyering  <meyering@lucent.com>
80168
80169         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
80170         Remove explicit use of AC_HEADER_TIME.  It is required by
80171         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
80172         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
80173         in autoconf whereby the expansion of the latter ended up preceding
80174         the expansion of its prerequisite, AC_HEADER_TIME.
80175         Reported by Volker Borchert.
80176
80177 2000-02-03  Jim Meyering  <meyering@lucent.com>
80178
80179         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
80180
80181 2000-02-03  Jim Meyering  <meyering@lucent.com>
80182
80183         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
80184         rather than with `#if HAVE_UTMPNAME'.
80185
80186 2000-02-02  Jim Meyering  <meyering@lucent.com>
80187
80188         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
80189         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
80190         Reported by Eli Zaretskii.
80191
80192 2000-02-01  Jim Meyering  <meyering@lucent.com>
80193
80194         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
80195
80196 2000-01-31  Jim Meyering  <meyering@lucent.com>
80197
80198         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
80199         functions.  Add the time.h and sys/time.h headers along with the
80200         AC_REQUIRE'ment of AC_HEADER_TIME.
80201
80202 2000-01-31  Jim Meyering  <meyering@lucent.com>
80203
80204         * lib/nanosleep.h (nanosleep): Guard declaration with
80205         `#if ! HAVE_DECL_NANOSLEEP'.
80206         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
80207         the declaration in that vendor's sys/timers.h.
80208         Reported by Christian Krackowizer.
80209
80210         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
80211         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
80212         (ISPRINT): Likewise.
80213         Reported by Tom Tromey.
80214
80215 2000-01-30  Jim Meyering  <meyering@lucent.com>
80216
80217         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
80218
80219         * m4/prereq.m4 (utmp_includes): Define.
80220         Check for ut_user and ut_name members in both struct utmpx
80221         and struct utmp.
80222
80223 2000-01-30  Jim Meyering  <meyering@lucent.com>
80224
80225         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
80226         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
80227         header files where only utmpx.ut_user is declared.
80228
80229         * lib/readutmp.h (UT_USER): Define.
80230
80231 2000-01-29  Jim Meyering  <meyering@lucent.com>
80232
80233         * m4/lib-check.m4: New file containing library-related checks from
80234         fileutils and sh-utils (textutils had none).
80235
80236 2000-01-28  Jim Meyering  <meyering@lucent.com>
80237
80238         * m4/perl.m4: Change format of warning message to look more like that
80239         from the missing script.  Suggestion from François Pinard.
80240
80241 2000-01-25  Jim Meyering  <meyering@lucent.com>
80242
80243         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
80244         well as time.h in the compile check.
80245         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
80246         Fix typo in cross-compiling case: s/yes/no/.
80247
80248 2000-01-23  Jim Meyering  <meyering@lucent.com>
80249
80250         * m4/jm-macros.m4: Move df-related tests here from
80251         fileutils/configure.in
80252
80253         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
80254         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
80255
80256         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
80257         s/space/ac_fsusage_space/.
80258         (jm_FILE_SYSTEM_USAGE): Take two parameters.
80259
80260         * m4/ftruncate.m4: New file (derived from part of
80261         fileutils/configure.in).
80262         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
80263         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
80264
80265         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
80266         AC_SUBST these here, rather than just in sh-util/configure.in, so
80267         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
80268         all the same.
80269         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
80270         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
80271         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
80272         (AC_SUBST(POW_LIBM)): Likewise.
80273         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
80274
80275 2000-01-23  Jim Meyering  <meyering@lucent.com>
80276
80277         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
80278         obstack.c.
80279
80280 2000-01-22  Jim Meyering  <meyering@lucent.com>
80281
80282         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
80283
80284         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
80285
80286         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
80287         configure.in
80288         (AC_CHECK_HEADERS): Likewise for sh-utils.
80289         (AC_CHECK_HEADERS): Likewise for textutils.
80290         Merge the three lists of headers.
80291
80292         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
80293         from fileutils' configure.in.
80294
80295         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
80296         code. Moved tests into their own function (_jm_DECL_HEADERS) in
80297         check-decl.m4.
80298
80299         * m4/check-decl.m4: Use #if rather than #ifdef.
80300         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
80301         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
80302         (_jm_DECL_HEADERS): Define new function.
80303         (jm_CHECK_DECLARATIONS): Require it.
80304
80305 2000-01-22  Jim Meyering  <meyering@lucent.com>
80306
80307         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
80308         [! HAVE_DECL_STRTOULL]: Declare strtoull.
80309         Required for some AIX systems.  Reported by Christian Krackowizer.
80310         [TESTING] (main): New function.
80311
80312         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
80313         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
80314         letters.
80315
80316         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
80317         iswprint.
80318
80319         * lib/strverscmp.c (ISDIGIT): Define.
80320         (strverscmp): Use ISDIGIT, not isdigit.
80321
80322 2000-01-19  Jim Meyering  <meyering@lucent.com>
80323
80324         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
80325         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
80326         defines `struct timespec' in <sys/time.h>
80327
80328         * m4/c-bs-a.m4: Remove uses of changequote altogether.
80329         Thanks to Akim for explaining.
80330
80331 2000-01-17  Paul Eggert  <eggert@twinsun.com>
80332
80333         * lib/nanosleep.c (nanosleep):
80334         Don't use SA_INTERRUPT to decide whether to call sigaction, as
80335         POSIX.1 doesn't require SA_INTERRUPT and some systems
80336         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
80337         it's been part of POSIX.1 since day 1 (in 1988).
80338
80339 2000-01-17  Jim Meyering  <meyering@lucent.com>
80340
80341         * lib/interlock: Remove unused file.  Reported by François Pinard.
80342
80343 2000-01-16  Paul Eggert  <eggert@twinsun.com>
80344
80345         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
80346         alert, backslash, formfeed, and vertical tab unnecessarily in
80347         shell quoting style.
80348
80349 2000-01-16  Jim Meyering  <meyering@lucent.com>
80350
80351         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
80352         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
80353         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
80354         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
80355
80356 2000-01-16  Jim Meyering  <meyering@lucent.com>
80357
80358         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
80359         because the latter didn't work.
80360
80361 2000-01-15  Jim Meyering  <meyering@lucent.com>
80362
80363         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
80364         (AC_REPLACE_FUNCS): Add memcpy and memset.
80365         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
80366         Add strpbrk.
80367         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
80368
80369 2000-01-12  Jim Meyering  <meyering@lucent.com>
80370
80371         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
80372         (jm_PREREQ): Use it.
80373         (jm_PREREQ_READUTMP): New macro.
80374         (jm_PREREQ): Use it.
80375
80376 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80377
80378         Quote multibyte characters correctly.
80379         * m4/c-bs-a.m4: New file.
80380         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
80381         (jm_PREREQ): Use it.
80382
80383 2000-01-11  Paul Eggert  <eggert@twinsun.com>
80384
80385         * m4/uintmax_t.m4: Port to autoconf 2.13.
80386
80387 2000-01-08  Jim Meyering  <meyering@ascend.com>
80388
80389         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
80390         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
80391
80392 2000-01-04  Jim Meyering  <meyering@ascend.com>
80393
80394         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
80395         jm_STRUCT_DIRENT_D_TYPE.
80396         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
80397         jm_STRUCT_DIRENT_D_INO.
80398         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
80399         jm_STRUCT_UTIMBUF.
80400         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
80401         renamings.
80402         * m4/utime.m4: Likewise.
80403
80404         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
80405         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
80406
80407 2000-01-03  Paul Eggert  <eggert@twinsun.com>
80408
80409         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
80410         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
80411
80412 2000-01-02  Jim Meyering  <meyering@ascend.com>
80413
80414         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
80415         remember if this is necessary.
80416
80417 1999-12-26  Jim Meyering  <meyering@ascend.com>
80418
80419         * m4/jm-macros.m4: Use it here.
80420         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
80421
80422 1999-12-23  Jim Meyering  <meyering@ascend.com>
80423
80424         * m4/jm-macros.m4: Check for clock_gettime (moved from
80425         fileutils/configure.in)
80426         Check for gettimeofday.
80427
80428 1999-12-20  Jim Meyering  <meyering@ascend.com>
80429
80430         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
80431         autoconf-2.14a-1999-12-20.
80432
80433 1999-12-19  Jim Meyering  <meyering@ascend.com>
80434
80435         * m4/lstat-slash.m4: New file.
80436         * m4/jm-macros.m4: Use the new macro:
80437         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80438
80439 1999-12-07  Jim Meyering  <meyering@ascend.com>
80440
80441         * m4/perl.m4: Require that File::Compare be available, too.
80442         Too many systems seem to lack it.
80443
80444         * m4/strftime.m4: Add checks for most of the cpp macros tested in
80445         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
80446
80447 1999-11-18  Paul Eggert  <eggert@twinsun.com>
80448
80449         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
80450         problem with the QNX 4.25 shell, which doesn't propagate exit
80451         status of failed commands inside shell assignments.
80452
80453 1999-11-17  Jim Meyering  <meyering@ascend.com>
80454
80455         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
80456
80457 1999-11-07  Jim Meyering  <meyering@ascend.com>
80458
80459         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
80460
80461 1999-11-06  Jim Meyering  <meyering@ascend.com>
80462
80463         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
80464         * m4/jm-macros.m4 (jm_MACROS): Use it here.
80465
80466 1999-11-05  Jim Meyering  <meyering@ascend.com>
80467
80468         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
80469         configure.in of textutils, fileutils, and sh-utils into this one
80470         (shared between those packages) file.
80471         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
80472         AC_STRUCT_ST_BLKSIZE.
80473
80474 1999-11-03  Jim Meyering  <meyering@ascend.com>
80475
80476         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
80477         of AC_CHECK_TYPE checks includes unistd.h.
80478         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
80479         Suggestion from Akim Demaille.
80480
80481 1999-10-30  Jim Meyering  <meyering@ascend.com>
80482
80483         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
80484         m4-quoted string.
80485         * m4/ls-mntd-fs.m4: Likewise.
80486         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
80487         * m4/jm-winsz1.m4: Likewise.
80488
80489         * m4/const.m4: Remove file, since the fix made it into the experimental
80490         version of autoconf.
80491         * m4/mktime.m4: Likewise.
80492
80493         * m4/check-type.m4: Remove file, now that the latest version of
80494         AC_CHECK_TYPE takes a third arg to specify additional #includes.
80495
80496         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
80497         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
80498         AC_CHECK_TYPE.
80499
80500 1999-10-04  Jim Meyering  <meyering@ascend.com>
80501
80502         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
80503
80504 1999-09-22  Paul Eggert  <eggert@twinsun.com>
80505
80506         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
80507         2.95.1 bug with HP-UX 10.20.
80508
80509 1999-09-17  Jim Meyering  <meyering@ascend.com>
80510
80511         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
80512         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
80513         due to missing strdup (against sh-utils-2.0).
80514
80515 1999-08-29  Jim Meyering  <meyering@ascend.com>
80516
80517         * m4/jm-macros.m4: Require jm_BISON.
80518         * m4/bison.m4: New file.
80519
80520 1999-08-17  Paul Eggert  <eggert@twinsun.com>
80521
80522         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
80523         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
80524
80525 1999-08-05  Jim Meyering  <meyering@ascend.com>
80526
80527         * m4/getline.m4: Rename test file from conftestdata to conftest.data
80528         to avoid conflicts with `conftest' on 8+3 filesystems.
80529         Suggestion from Eli Zaretskii.
80530
80531 1999-08-04  Jim Meyering  <meyering@ascend.com>
80532
80533         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
80534         fileutils and sh-utils (textutils's getline test was inadequate).
80535         (AM_FUNC_GETLINE): Run this test.
80536         (AC_CHECK_FUNCS): Check for getdelim.
80537         Reported by Bob Proulx.
80538
80539 1999-08-02  Jim Meyering  <meyering@ascend.com>
80540
80541         * m4/jm-macros.m4: Add a comment.
80542
80543 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80544
80545         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
80546         <inttypes.h> defines strtoumax as a macro (and not as a
80547         function).
80548
80549 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80550
80551         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
80552         that we can shift, multiply and divide unsigned long long
80553         values; Ultrix cc can't do it.
80554
80555 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80556
80557         * m4/mktime.m4: New file, which is a preview of what should appear
80558         in the next public autoconf release.
80559
80560 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80561
80562         * m4/lfs.m4: Remove this file.
80563         * m4/largefile.m4: New file.  It contains the old contents of
80564         lfs.m4, except that all names with prefix AC_LFS have been
80565         changed to use the prefix AC_SYS_LARGEFILE instead, to be
80566         compatible with future autoconf versions.  Also, some minor m4
80567         quoting problems have been fixed.
80568
80569 1999-08-01  Paul Eggert  <eggert@twinsun.com>
80570
80571         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
80572         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
80573         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
80574         and simplify the shell code.
80575
80576 1999-08-01  Jim Meyering  <meyering@ascend.com>
80577
80578         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
80579         m4.
80580
80581 1999-07-20  Jim Meyering  <meyering@ascend.com>
80582
80583         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
80584
80585 1999-07-15  Jim Meyering  <meyering@ascend.com>
80586
80587         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
80588
80589 1999-05-22  Jim Meyering  <meyering@ascend.com>
80590
80591         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
80592
80593 1999-05-20  Jim Meyering  <meyering@ascend.com>
80594
80595         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
80596         Add a colon after each `then' in case $4 is empty.
80597
80598 1999-05-16  Jim Meyering  <meyering@ascend.com>
80599
80600         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
80601
80602 1999-05-10  Jim Meyering  <meyering@ascend.com>
80603
80604         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
80605
80606         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
80607         AC_FUNC_MKTIME.
80608
80609 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
80610
80611         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
80612
80613 1999-05-04  Paul Eggert  <eggert@twinsun.com>
80614
80615         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
80616         not CPPFLAGS, so that linking works correctly in IRIX.
80617
80618 1999-04-30  Paul Eggert  <eggert@twinsun.com>
80619
80620         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
80621
80622 1999-04-20  Paul Eggert  <eggert@twinsun.com>
80623
80624         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
80625         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
80626         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
80627         jm_AC_TYPE_UNSIGNED_LONG_LONG.
80628         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
80629
80630         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
80631
80632 1999-04-20  Jim Meyering  <meyering@ascend.com>
80633
80634         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
80635         AC_REPLACE xstroull if necessary.  From Paul Eggert.
80636         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
80637
80638 1999-04-18  Jim Meyering  <meyering@ascend.com>
80639
80640         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
80641         * m4/jm-macros.m4: Use it.
80642
80643 1999-04-06  Jim Meyering  <meyering@ascend.com>
80644
80645         * m4/strftime.m4: Remove test for %f.
80646
80647 1999-03-29  Jim Meyering  <meyering@ascend.com>
80648
80649         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
80650         superset of the AC_TYPE_* checks in the textutils, fileutils,
80651         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
80652         AC_TYPE_PID_T.
80653
80654 1999-03-28  Jim Meyering  <meyering@ascend.com>
80655
80656         * m4/jm-macros.m4: Define GNU_PACKAGE here.
80657         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
80658         replaced e.g., in the *.sh files of the sh-utils.
80659
80660 1999-03-20  Jim Meyering  <meyering@ascend.com>
80661
80662         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
80663         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
80664         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
80665
80666 1999-03-19  Jim Meyering  <meyering@ascend.com>
80667
80668         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
80669
80670 1999-03-12  Jim Meyering  <meyering@ascend.com>
80671
80672         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
80673
80674 1999-03-07  Jim Meyering  <meyering@ascend.com>
80675
80676         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
80677         declared.
80678
80679 1999-02-17  Jim Meyering  <meyering@ascend.com>
80680
80681         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
80682         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
80683
80684 1999-02-07  Jim Meyering  <meyering@ascend.com>
80685
80686         * m4/group-member.m4: New file -- extracted from sh-utils'
80687         configure.in.
80688
80689         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
80690         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
80691
80692 1999-02-06  Jim Meyering  <meyering@ascend.com>
80693
80694         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
80695         * m4/fnmatch.m4: Likewise.
80696         * m4/getgroups.m4: Likewise.
80697         * m4/lstat.m4: Likewise.
80698         * m4/malloc.m4: Likewise.
80699         * m4/putenv.m4: Likewise.
80700         * m4/realloc.m4: Likewise.
80701         * m4/regex.m4: Likewise.
80702         * m4/stat.m4: Likewise.
80703         * m4/strftime.m4: Likewise.
80704         Suggestion from Alain Magloire.
80705
80706         * m4/chown.m4: Use `.$ac_objext', not `.o'.
80707         * m4/fnmatch.m4: Likewise.
80708         * m4/getgroups.m4: Likewise.
80709         * m4/getline.m4: Likewise.
80710         * m4/lstat.m4: Likewise.
80711         * m4/malloc.m4: Likewise.
80712         * m4/memcmp.m4: Likewise.
80713         * m4/putenv.m4: Likewise.
80714         * m4/realloc.m4: Likewise.
80715         * m4/regex.m4: Likewise.
80716         * m4/stat.m4: Likewise.
80717         * m4/strftime.m4: Likewise.
80718         Suggestion from Alain Magloire.
80719
80720         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
80721         an argument.
80722
80723         * m4/regex.m4: Add a run-time Test for proper operation of
80724         re_compile_pattern.
80725
80726 1999-01-31  Jim Meyering  <meyering@ascend.com>
80727
80728         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
80729
80730 1999-01-30  Jim Meyering  <meyering@ascend.com>
80731
80732         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
80733
80734         * m4/jm-mktime.m4: Make this a wrapper around the official
80735         AM_FUNC_MKTIME rather than my private copy, now that the official one
80736         is up to date.
80737         * m4/mktime.m4: Remove file.
80738
80739         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
80740         * m4/uptime.m4: Likewise.
80741         * m4/uintmax_t.m4: Likewise.
80742
80743 1999-01-28  Jim Meyering  <meyering@ascend.com>
80744
80745         * m4/jm-macros.m4: Use jm_AFS.
80746         * m4/afs.m4: New file (from fileutils' configure.in).
80747
80748         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
80749         * m4/chown.m4: Likewise.
80750         * m4/d-ino.m4: Likewise.
80751         * m4/d-type.m4: Likewise.
80752         * m4/fnmatch.m4: Likewise.
80753         * m4/getgroups.m4: Likewise.
80754         * m4/gettext.m4: Likewise.
80755         * m4/jm-mktime.m4: Likewise.
80756         * m4/jm-winsz2.m4: Likewise.
80757         * m4/lcmessage.m4: Likewise.
80758         * m4/ls-mntd-fs.m4: Likewise.
80759         * m4/malloc.m4: Likewise.
80760         * m4/memcmp.m4: Likewise.
80761         * m4/putenv.m4: Likewise.
80762         * m4/realloc.m4: Likewise.
80763         * m4/st_mtim.m4: Likewise.
80764         * m4/strftime.m4: Likewise.
80765
80766 1999-01-16  Jim Meyering  <meyering@ascend.com>
80767
80768         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
80769         (ARGMATCH_DIE_DECL): Define.
80770
80771 1999-01-12  Jim Meyering  <meyering@ascend.com>
80772
80773         * m4/Makefile.am.in: Rewrite to avoid using fmt.
80774         Reported by Lars Hecking.
80775
80776 1999-01-10  Jim Meyering  <meyering@ascend.com>
80777
80778         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
80779         gross kludge.
80780         * m4/inttypes_h.m4: Likewise.
80781         * m4/lstat.m4: Likewise.
80782         * m4/malloc.m4: Likewise.
80783         * m4/readdir.m4: Likewise.
80784         * m4/realloc.m4: Likewise.
80785         * m4/st_dm_mode.m4: Likewise.
80786         * m4/stat.m4: Likewise.
80787         * m4/utimbuf.m4: Likewise.
80788         * m4/utimes.m4: Likewise.
80789
80790         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
80791         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
80792         comments in config.h.in are meaningful.
80793
80794         * m4/jm-macros.m4: Require autoconf-2.13 here.
80795
80796         * m4/regex.m4: By default, don't use the included regex.c on systems
80797         with glibc 2.  Suggestion from Uli Drepper.
80798
80799 1999-01-02  Jim Meyering  <meyering@ascend.com>
80800
80801         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
80802
80803 1998-12-18  Jim Meyering  <meyering@ascend.com>
80804
80805         * m4/Makefile.am.in (Makefile.am): Simplify rule.
80806         Based on a suggestion from Lars Hecking.
80807
80808 1998-11-16  Paul Eggert  <eggert@twinsun.com>
80809
80810         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
80811
80812 1998-11-16  Jim Meyering  <meyering@ascend.com>
80813
80814         * m4/lfs.m4: Double-quote the `uname...` expression.
80815
80816 1998-11-14  Jim Meyering  <meyering@ascend.com>
80817
80818         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
80819         * m4/stat.m4: Likewise.
80820
80821 1998-11-03  Jim Meyering  <meyering@ascend.com>
80822
80823         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
80824         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
80825
80826 1998-10-18  Jim Meyering  <meyering@ascend.com>
80827
80828         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
80829
80830 1998-10-17  Jim Meyering  <meyering@ascend.com>
80831
80832         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
80833         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
80834         calls for those previously hard-coded headers.  Instead, take a new
80835         parameter.
80836         (jm_CHECK_DECLARATIONS): Reflect interface change.
80837         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
80838         (jm_CHECK_DECL_LOCALTIME_R): New macro.
80839
80840         * m4/mktime.m4: Test for spring-forward gap before long-running test.
80841
80842 1998-10-14  Jim Meyering  <meyering@ascend.com>
80843
80844         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
80845         instead of "TZ=America/Vancouver".  From Paul Eggert.
80846
80847 1998-10-11  Jim Meyering  <meyering@ascend.com>
80848
80849         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
80850         This adds a test for a recently added compatibility fix for mktime.c.
80851         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
80852
80853 1998-09-27  Jim Meyering  <meyering@ascend.com>
80854
80855         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
80856
80857         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
80858         ../configure.in, including a change from Gordon Matzigkeit to allow
80859         cross-compiling for the Hurd.
80860
80861         * m4/glibc.m4: New file/macro to test for the GNU C Library
80862         versions 1 and 2.  From Gordon Matzigkeit.
80863         Indent.
80864
80865 1998-09-21  Jim Meyering  <meyering@ascend.com>
80866
80867         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
80868
80869 1998-08-18  Paul Eggert  <eggert@twinsun.com>
80870
80871         Port nanosecond-resolution times to UnixWare 2.1.2 and
80872         pedantic Solaris 2.6.
80873
80874         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
80875         AC_STRUCT_ST_MTIM.
80876         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
80877         Generate name of ns member, instead of just 1 or undef.
80878         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
80879
80880 1998-08-15  Jim Meyering  <meyering@ascend.com>
80881
80882         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
80883         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
80884         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
80885         instead of jm_TYPE_SSIZE_T.
80886
80887 1998-08-12  Jim Meyering  <meyering@ascend.com>
80888
80889         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
80890
80891 1998-08-02  Jim Meyering  <meyering@ascend.com>
80892
80893         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
80894         in acconfig.h manually.
80895
80896 1998-07-31  Paul Eggert  <eggert@twinsun.com>
80897
80898         * m4/st_mtim.m4: New file.
80899
80900 1998-07-28  Jim Meyering  <meyering@ascend.com>
80901
80902         * m4/utimes.m4: Undef stat.
80903
80904 1998-07-25  Jim Meyering  <meyering@ascend.com>
80905
80906         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
80907         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
80908
80909 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
80910
80911         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
80912         uid and gid actually remain unchanged.
80913
80914 1998-07-07  Jim Meyering  <meyering@ascend.com>
80915
80916         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
80917
80918 1998-07-04  Jim Meyering  <meyering@ascend.com>
80919
80920         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
80921         to prove that this macro can be used in packages without regex.c.
80922
80923 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
80924
80925         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
80926         is to be used.
80927
80928 1998-07-03  Jim Meyering  <meyering@ascend.com>
80929
80930         * m4/gettext.m4: Add -lintl if it's found to be necessary.
80931
80932         * m4/gettext.m4: New file -- from gettext-0.10.35.
80933         * m4/lcmessage.m4: Likewise.
80934         * m4/progtest.m4: Likewise.
80935
80936         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
80937         * m4/jm-macros.m4: Require the new macro.
80938
80939 1998-06-29  Jim Meyering  <meyering@ascend.com>
80940
80941         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
80942         for the definition of NGROUPS (used in a system header included
80943         by sys/mount.h).
80944
80945 1998-06-28  Jim Meyering  <meyering@ascend.com>
80946
80947         * m4/ls-mntd-fs.m4: New file.
80948         * m4/fstypename.m4: New file.
80949
80950         * m4/jm-macros.m4: Require the new macro.
80951         * m4/jm-glibc-io.m4: New file.
80952
80953 1998-05-19  Jim Meyering  <meyering@ascend.com>
80954
80955         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
80956         * m4/lchown.m4: New file.
80957
80958         * m4/Makefile.am.in: New file.
80959         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
80960
80961 1998-05-14  Jim Meyering  <meyering@ascend.com>
80962
80963         * m4/Makefile.am (EXTRA_DIST): Add them.
80964         * m4/jm-macros.m4: New file.
80965         * m4/utimbuf.m4: New file.
80966
80967 1998-05-12  Jim Meyering  <meyering@ascend.com>
80968
80969         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
80970
80971 1998-05-11  Jim Meyering  <meyering@ascend.com>
80972
80973         * m4/isc-posix.m4: New file.
80974
80975 1998-05-10  Jim Meyering  <meyering@ascend.com>
80976
80977         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
80978
80979 1998-05-09  Jim Meyering  <meyering@ascend.com>
80980
80981         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
80982         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
80983         with automake.
80984
80985         * m4/ssize_t.m4: New file.
80986         * m4/mktime.m4: Remove file -- the new automake has this now.
80987
80988 1998-04-26  Jim Meyering  <meyering@ascend.com>
80989
80990         * m4/assert.m4: New file.
80991         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
80992
80993 1998-04-05  Jim Meyering  <meyering@ascend.com>
80994
80995         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
80996         (jm_PREREQ): Use it here.
80997
80998 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
80999
81000         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
81001         in acconfig.h.
81002
81003 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
81004
81005         * m4/prereq.m4: New file.
81006         * m4/error.m4: New file.
81007         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
81008
81009 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
81010
81011         * m4/getline.m4: Don't set am_cv_func_working_getline before the
81012         cache-check for the same variable -- that defeated the purpose of
81013         the test; the test program was never run.  This was a problem only
81014         on systems with losing getline functions -- HP-UX 10.20 is one.
81015         Reported by Bjorn Helgaas.
81016
81017 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
81018
81019         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
81020
81021 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
81022
81023         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
81024
81025         * m4/const.m4: New file.  Use an initializer in this declaration
81026         typedef int charset[2]; const charset x;
81027         Reported by Bob Glickstein.
81028
81029 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
81030
81031         * m4/chown.m4: Fix reversed types on -1 args to chown.
81032         From Kaveh Ghazi.
81033
81034 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
81035
81036         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
81037         Add lseek and memchr.
81038
81039         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
81040         T.E.Dickey <dickey@clark.net> said that some older preprocessors
81041         have a 20-character limit on names.
81042
81043 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
81044
81045         * m4/inttypes_h.m4: New file.
81046         * m4/uintmax_t.m4: New file.
81047         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
81048
81049
81050         -----
81051
81052         Local Variables:
81053         coding: utf-8
81054         End:
81055
81056         Copyright (C) 1997-2011 Free Software Foundation, Inc.
81057
81058         Copying and distribution of this file, with or without
81059         modification, are permitted provided the copyright notice
81060         and this notice are preserved.